/* ============================================================
   Onterion AI — Landingpage (nur Startseite geladen)
   Dunkles Fundament, Neon Cyan/Violett, Glassmorphism, 3D-Tiefe
   ============================================================ */
:root {
  --fx-bg: #04060D;
  --fx-bg-2: #060A16;
  --fx-panel: rgba(255, 255, 255, .045);
  --fx-panel-2: rgba(255, 255, 255, .07);
  --fx-border: rgba(148, 163, 216, .16);
  --fx-border-soft: rgba(148, 163, 216, .09);
  --fx-cyan: #22D3EE;
  --fx-violet: #A855F7;
  --fx-grad: linear-gradient(115deg, #22D3EE 0%, #818CF8 52%, #A855F7 100%);
  --fx-ink: #EDF1FA;
  --fx-mute: #97A3C0;
  --fx-mute-2: #7C89A8;
  --fx-glow-c: rgba(34, 211, 238, .16);
  --fx-glow-v: rgba(139, 92, 246, .18);
}

/* ---------- Fundament ---------- */
body.home {
  background: var(--fx-bg);
  color: var(--fx-ink);
  overflow-x: clip;
}
body.home h1, body.home h2, body.home h3, body.home h4 { color: #F4F7FE; }
body.home .eyebrow { color: #67E8F9; }
body.home .eyebrow::before { background: var(--fx-grad); }
body.home .lead { color: var(--fx-mute); }
body.home .grad-text {
  background: var(--fx-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body.home .btn-primary {
  background: var(--fx-grad); color: #050810;
  box-shadow: 0 12px 36px rgba(99, 102, 241, .38), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
body.home .btn-primary:hover { box-shadow: 0 18px 50px rgba(34, 211, 238, .42); color: #04070F; }
body.home .btn-ghost { color: #E8EDF8; }

.fx-section { position: relative; padding: clamp(76px, 9vw, 118px) 0; }
.fx-section--panel { background: var(--fx-bg-2); border-top: 1px solid var(--fx-border-soft); border-bottom: 1px solid var(--fx-border-soft); }
.fx-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.fx-head .section-title { max-width: none; }
.fx-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.fx-head--center .eyebrow { justify-content: center; }

.fx-grid { display: grid; gap: 22px; }
.fx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fx-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Hero ---------- */
.fx-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(150px, 16vw, 196px) 0 clamp(84px, 9vw, 128px);
  background:
    radial-gradient(1000px 620px at 12% -12%, var(--fx-glow-c), transparent 62%),
    radial-gradient(1100px 720px at 88% 4%, var(--fx-glow-v), transparent 60%),
    var(--fx-bg);
}
.fx-net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.fx-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--fx-bg));
  pointer-events: none;
}
.fx-hero-wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }

.fx-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border: 1px solid var(--fx-border); border-radius: 999px;
  background: var(--fx-panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .84rem; font-weight: 600; color: #C6D1E8; margin-bottom: 26px;
}
.fx-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fx-cyan); box-shadow: 0 0 14px var(--fx-cyan); animation: fxPulse 2.4s infinite; }
@keyframes fxPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.fx-hero h1 { font-size: clamp(2.15rem, 5.4vw, 3.85rem); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 22px; }
.fx-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.19rem); max-width: 54ch; margin-bottom: 34px; }
.fx-hero .lead a { color: #7DD3FC; font-weight: 600; }

.fx-trust { display: flex; gap: 12px 24px; flex-wrap: wrap; margin: 42px 0 0; padding: 0; list-style: none; }
.fx-trust li { display: flex; align-items: center; gap: 9px; color: #8FA0C2; font-size: .92rem; font-weight: 600; }
.fx-trust svg { width: 17px; height: 17px; color: var(--fx-cyan); flex: none; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .6)); }

/* Hero-Konsole (Glass, 3D) */
.fx-scene { perspective: 1300px; position: relative; }
.fx-scene::before {
  content: ""; position: absolute; inset: 8% -6% -10% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(129, 140, 248, .22), transparent 72%);
  filter: blur(28px);
}
.fx-console {
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .028) 58%);
  border: 1px solid var(--fx-border); border-radius: 22px; padding: 24px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 34px 90px rgba(2, 6, 18, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform .5s cubic-bezier(.22, .8, .26, .99);
  will-change: transform;
}
.fx-console-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.fx-dots { display: inline-flex; gap: 6px; }
.fx-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.fx-dots i:first-child { background: rgba(34, 211, 238, .55); }
.fx-console-title { font-size: .84rem; font-weight: 700; color: #C6D1E8; letter-spacing: .04em; }
.fx-live {
  margin-left: auto; font-size: .74rem; font-weight: 700; color: #67E8F9;
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .32);
  padding: 4px 12px; border-radius: 999px;
}
.fx-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.fx-flow li { display: flex; align-items: flex-start; gap: 13px; }
.fx-flow-ico {
  flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; color: #051013;
  background: var(--fx-grad); box-shadow: 0 0 16px rgba(34, 211, 238, .4);
}
.fx-flow li.run .fx-flow-ico { background: rgba(255, 255, 255, .06); border: 1px solid var(--fx-border); box-shadow: none; }
.fx-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(167, 139, 250, .35); border-top-color: #A78BFA; animation: fxSpin 1s linear infinite; }
@keyframes fxSpin { to { transform: rotate(360deg); } }
.fx-flow b { display: block; color: #E4EAF7; font-size: .92rem; font-weight: 700; line-height: 1.35; }
.fx-flow small { color: #7C89A8; font-size: .78rem; }
.fx-console-foot { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.fx-chip {
  font-size: .73rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .13); color: #A9B6D2; background: rgba(255, 255, 255, .04);
}
.fx-chip--ok { color: #67E8F9; border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08); }

/* ---------- Kennzahlen-Band ---------- */
.fx-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fx-stat {
  text-align: center; padding: 26px 16px; border-radius: 16px;
  background: var(--fx-panel); border: 1px solid var(--fx-border-soft);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.fx-stat b { display: block; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.fx-stat span { color: var(--fx-mute-2); font-size: .88rem; font-weight: 600; }

/* ---------- Leistungs-Karten (Glass + 3D-Tilt) ---------- */
.fx-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: linear-gradient(165deg, var(--fx-panel-2), var(--fx-panel) 60%);
  border: 1px solid var(--fx-border-soft); border-radius: 20px; padding: 30px 28px;
  position: relative; transform-style: preserve-3d; will-change: transform;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(2, 6, 18, .35);
  transition: transform .35s cubic-bezier(.22, .8, .26, .99), box-shadow .35s, border-color .3s;
}
.fx-card:hover { box-shadow: 0 30px 80px rgba(2, 6, 18, .55); border-color: rgba(148, 163, 216, .28); }
.fx-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: 20px; padding: 1px;
  background: var(--fx-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.fx-card:hover::after { opacity: .8; }
.fx-card h3 { font-size: 1.17rem; margin-bottom: 9px; }
.fx-card p { color: var(--fx-mute); margin: 0; font-size: .96rem; flex: 1; }
.fx-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: .93rem; color: #7DD3FC; min-height: 44px; }
.fx-card .more:hover { color: #BAE6FD; text-decoration: none; }
.fx-ico {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; color: #67E8F9;
  background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .16));
  border: 1px solid rgba(34, 211, 238, .25);
  box-shadow: 0 0 22px rgba(34, 211, 238, .12) inset;
}
.fx-ico svg { width: 24px; height: 24px; }

/* Festpreis-Banner (Money-Page) */
.fx-offer {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 26px;
  padding: 32px 34px; border-radius: 20px; position: relative; overflow: hidden;
  background:
    radial-gradient(560px 220px at 8% 0%, rgba(34, 211, 238, .14), transparent 65%),
    radial-gradient(560px 260px at 95% 110%, rgba(168, 85, 247, .16), transparent 65%),
    var(--fx-panel);
  border: 1px solid var(--fx-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.fx-offer h3 { font-size: 1.3rem; margin-bottom: 6px; }
.fx-offer p { color: var(--fx-mute); margin: 0; max-width: 58ch; }
.fx-offer .btn { flex: none; }
.fx-sublinks { margin-top: 20px; color: var(--fx-mute-2); font-size: .93rem; }
.fx-sublinks a { color: #A5B4FC; font-weight: 600; }

/* ---------- Prozess ---------- */
.fx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: fxstep; position: relative; }
.fx-steps::before {
  content: ""; position: absolute; top: 44px; left: 4%; right: 4%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .4), rgba(168, 85, 247, .4), transparent);
}
.fx-step {
  position: relative; padding: 26px 22px; border-radius: 18px;
  background: var(--fx-panel); border: 1px solid var(--fx-border-soft);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.fx-step::before {
  counter-increment: fxstep; content: "0" counter(fxstep);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  font-size: .92rem; font-weight: 800; color: #051013;
  background: var(--fx-grad); box-shadow: 0 0 24px rgba(99, 102, 241, .38);
}
.fx-step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.fx-step p { color: var(--fx-mute); font-size: .93rem; margin: 0; }

/* ---------- Branchen / Use-Cases ---------- */
.fx-case {
  display: flex; align-items: center; gap: 14px; min-height: 64px;
  padding: 18px 20px; border-radius: 16px; font-weight: 700; color: #E4EAF7;
  background: var(--fx-panel); border: 1px solid var(--fx-border-soft);
  transition: transform .3s cubic-bezier(.22, .8, .26, .99), border-color .25s, background .25s;
}
.fx-case:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .38); background: var(--fx-panel-2); text-decoration: none; color: #fff; }
.fx-case .fx-ico { width: 42px; height: 42px; margin: 0; border-radius: 12px; flex: none; }
.fx-case .fx-ico svg { width: 20px; height: 20px; }
.fx-case small { display: block; font-weight: 500; color: var(--fx-mute-2); font-size: .84rem; }
.fx-case .fx-arrow { margin-left: auto; color: #67E8F9; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.fx-case:hover .fx-arrow { opacity: 1; transform: none; }
.fx-more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; color: #7DD3FC; min-height: 44px; }
.fx-more-link:hover { color: #BAE6FD; text-decoration: none; }

/* ---------- Trust ---------- */
.fx-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fx-trust-card {
  padding: 28px 24px; border-radius: 18px;
  background: linear-gradient(165deg, var(--fx-panel-2), var(--fx-panel) 65%);
  border: 1px solid var(--fx-border-soft);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.fx-trust-card h3 { font-size: 1.04rem; margin: 0 0 7px; }
.fx-trust-card p { color: var(--fx-mute); font-size: .93rem; margin: 0; }
.fx-address { margin-top: 30px; text-align: center; color: var(--fx-mute-2); font-size: .92rem; }
.fx-address a { color: #A5B4FC; font-weight: 600; }

/* ---------- FAQ ---------- */
.fx-faq { max-width: 840px; margin: 0 auto; }
.fx-faq details {
  background: var(--fx-panel); border: 1px solid var(--fx-border-soft); border-radius: 16px;
  padding: 0 24px; margin-bottom: 13px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s, background .25s;
}
.fx-faq details[open] { border-color: rgba(34, 211, 238, .38); background: var(--fx-panel-2); }
.fx-faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.02rem; color: #E8EDF8;
  padding: 20px 0; min-height: 44px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--fx-border); display: flex; align-items: center; justify-content: center;
  color: #67E8F9; font-size: 1.25rem; font-weight: 600;
  transition: transform .3s cubic-bezier(.22, .8, .26, .99), background .25s;
}
.fx-faq details[open] summary::after { content: "–"; transform: rotate(180deg); background: rgba(34, 211, 238, .12); }
.fx-faq details p { color: var(--fx-mute); margin: 0 0 22px; }
.fx-faq details a { color: #7DD3FC; font-weight: 600; }

/* ---------- Abschluss-CTA ---------- */
.fx-cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 8vw, 84px) clamp(24px, 5vw, 64px); border-radius: 26px;
  background:
    radial-gradient(700px 320px at 20% -20%, rgba(34, 211, 238, .16), transparent 62%),
    radial-gradient(700px 360px at 85% 120%, rgba(168, 85, 247, .18), transparent 62%),
    var(--fx-bg-2);
  border: 1px solid var(--fx-border);
  box-shadow: 0 34px 90px rgba(2, 6, 18, .55);
}
.fx-cta h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 22ch; margin: 0 auto .45em; }
.fx-cta p { color: var(--fx-mute); max-width: 58ch; margin: 0 auto 34px; font-size: 1.1rem; }
.fx-cta .cta-row { justify-content: center; }
.fx-cta-contact { margin-top: 26px; color: var(--fx-mute-2); font-size: .93rem; }
.fx-cta-contact a { color: #A5B4FC; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .fx-hero-wrap { grid-template-columns: 1fr; gap: 48px; }
  .fx-scene { max-width: 560px; margin: 0 auto; width: 100%; }
  .fx-console { transform: none; }
  .fx-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .fx-steps { grid-template-columns: repeat(2, 1fr); }
  .fx-steps::before { display: none; }
  .fx-band { grid-template-columns: repeat(2, 1fr); }
  .fx-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .fx-grid--3, .fx-grid--2 { grid-template-columns: 1fr; }
  .fx-steps { grid-template-columns: 1fr; }
  .fx-trust-grid { grid-template-columns: 1fr; }
  .fx-offer { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .fx-hero { padding-top: 132px; }
  .fx-console { padding: 20px 16px; }
  .fx-cta { border-radius: 20px; }
}
@media (max-width: 420px) {
  .fx-band { grid-template-columns: 1fr; }
  .fx-hero .cta-row .btn { width: 100%; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-badge .dot, .fx-spin { animation: none !important; }
  .fx-console { transform: none; }
  .fx-card, .fx-case { transition: none; }
}
