/* TRAI Startseite. Dieselbe Schrift und dasselbe Petrol wie Studio und Widget.
   Aufbau: Variablen → Grundlagen → Navigation → Abschnitte von oben nach unten → Handy → Bewegung. */

@font-face {
  font-family: "Geist";
  src: url("/static/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --petrol: #0b6e69;
  --petrol-hover: #095a56;
  --deep: #102221;          /* dunkle Flächen: hervorgehobene Kachel und Tarif */
  --deep-2: #0a3532;
  --mint: #8fe3d6;          /* Akzent auf dunklem Grund */
  --page: #f6f7f6;
  --surface: #ffffff;
  --surface-muted: #eef1f0;
  --text: #121b1a;
  --text-muted: #56625f;
  --on-dark: #e9f3f1;
  --on-dark-muted: #9fb7b3;
  --border: #e3e7e5;
  --border-strong: #cfd6d4;
  --radius: 22px;
  --radius-small: 12px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text);
  background: var(--page); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
p { margin: 0; }
a { color: var(--petrol); }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* --- Knöpfe ------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-hover); color: #fff; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: #eef6f4; color: var(--text); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--petrol); color: #fff; }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-large { padding: 17px 32px; font-size: 18px; }

/* --- Navigation: klassische Leiste, bleibt oben stehen ------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px max(24px, calc((100% - 1232px) / 2));
  background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 18px rgba(20, 30, 30, 0.06); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-muted); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

/* --- Hero: links die Aussage, rechts eine dichte Szene ---------------------------- */

.hero {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 72px 24px 112px;
}
.hero h1 { font-size: clamp(2.7rem, 5vw, 4.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.hero-lead { max-width: 520px; margin-top: 24px; font-size: 19px; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 32px 0 0; padding: 0; font-size: 14px; color: var(--text-muted); }
.hero-proof li { position: relative; padding-left: 20px; }
.hero-proof li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 5px;
  border-left: 2px solid var(--petrol); border-bottom: 2px solid var(--petrol); transform: rotate(-45deg);
}

/* Die Szene: Kundenshop hinten, Fortschritt links, Chatfenster vorne rechts. */
.hero-stage { position: relative; height: 600px; margin: 0; }
.hero-stage figcaption { position: absolute; left: 0; bottom: -30px; font-size: 13px; color: var(--text-muted); }
.shop {
  position: absolute; inset: 0 80px 56px 0; overflow: hidden;
  background: #fff; border: 1px solid #e6e6e2; border-radius: 16px; box-shadow: 0 20px 50px rgba(20, 30, 30, 0.07);
}
.shop-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #f1f1ee; }
.shop-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #d3d3cd; }
.shop-url { margin-left: 10px; flex: 1; min-width: 0; padding: 4px 12px; border-radius: 999px; background: #fff; color: #8a8a84; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Holztöne stehen für die Produktfotos des Kunden. */
.shop-hero {
  height: 200px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 24px;
  background: linear-gradient(120deg, #c9a87b, #8b6740); color: #fff;
}
.shop-logo { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.shop-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.shop-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.shop-tile { border: 1px solid #eeeeea; border-radius: 10px; overflow: hidden; }
.shop-img { height: 96px; }
.shop-img.one { background: #b98b5c; }
.shop-img.two { background: #6f8f6a; }
.shop-img.three { background: #d9c3a0; }
.shop-tile p { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; font-size: 12.5px; color: #3b3b37; }
.shop-tile span { color: #8a8a84; }

.stage-badge {
  position: absolute; left: -28px; top: 240px; z-index: 2; display: flex; flex-direction: column; gap: 2px;
  padding: 13px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 32px rgba(20, 30, 30, 0.08); font-size: 13px; color: var(--text-muted);
}
.stage-badge strong { font-size: 15px; color: var(--text); }
.stage-bar { width: 180px; height: 6px; margin-top: 8px; border-radius: 9px; background: #e7ecea; overflow: hidden; }
.stage-bar i { display: block; height: 100%; width: 87%; background: var(--petrol); transition: width 2.2s var(--ease); }


.demo-chat {
  position: absolute; right: 0; bottom: 0; z-index: 3; width: 350px; height: 480px;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #e3e7e6; border-radius: 16px; box-shadow: 0 30px 70px rgba(20, 30, 30, 0.16);
}
.demo-head { padding: 15px 18px; background: var(--petrol); color: #fff; font-weight: 600; font-size: 15px; }
.demo-messages { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px; background: #f6f7f7; overflow: hidden; }
.demo-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.demo-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #e3e8e7; border-bottom-left-radius: 4px; }
.demo-msg.user { align-self: flex-end; background: var(--petrol); color: #fff; border-bottom-right-radius: 4px; }
.demo-msg sup { color: var(--petrol); font-weight: 650; margin-left: 2px; }
.demo-source { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #dfe5e4; color: var(--petrol); font-size: 13px; }
.demo-source span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e3f1ef; font-size: 11px; font-weight: 650; }
.demo-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; background: #fff; border: 1px solid #e3e8e7; border-radius: 14px; }
.demo-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa8a6; animation: typing 1s infinite; }
.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }
.demo-input { margin: 12px; padding: 11px 14px; border: 1px solid #dfe5e4; border-radius: 12px; color: #93a19f; font-size: 14px; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* --- Allgemeine Abschnitte ------------------------------------------------------ */

.section { max-width: 1160px; margin: 0 auto; padding: 144px 24px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2, .steps-sticky h2, .trust h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--text-muted); }

/* --- Funktionen: lückenloses Raster ----------------------------------------------
   3 Spalten × 2 Zeilen = 6 Felder: breit (2) + hoch (2) + klein (1) + klein (1) = 6. */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 18px; }
.tile {
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(6, 37, 35, 0.09); }
.tile h3 { font-size: 24px; }
.tile p { color: var(--text-muted); }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 32px; }
.tile-wide .tile-text { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.tile-tall { grid-row: span 2; }
.tile-tall .tile-text { display: flex; flex-direction: column; gap: 14px; }
.tile-dark { background: var(--deep); border-color: var(--deep); color: var(--on-dark); }
.tile-dark h3 { color: #fff; }
.tile-dark p { color: var(--on-dark-muted); }
.tile-visual { transition: transform 0.7s var(--ease); }
.tile:hover .tile-visual { transform: scale(1.03); }

.scan { flex: 1; padding: 20px; border-radius: var(--radius-small); background: var(--surface-muted); font-size: 14px; }
.scan-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-weight: 600; white-space: nowrap; }
.scan-head span:first-child { color: var(--text-muted); font-weight: 500; }
.scan-bar { height: 8px; margin: 12px 0 16px; border-radius: 99px; background: #dce3e1; overflow: hidden; }
.scan-bar span { display: block; height: 100%; width: 87%; border-radius: inherit; background: var(--petrol); transition: width 2.2s var(--ease); }
.scan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.scan-list li { display: flex; align-items: center; gap: 10px; }
.scan-list .ok, .scan-list .run { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.scan-list .ok { background: var(--petrol); box-shadow: inset 0 0 0 3px #d5ebe8; }
.scan-list .run { border: 2px solid var(--petrol); border-right-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.proof { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius-small); background: var(--deep-2); font-size: 14.5px; }
.tile-dark .proof p { color: var(--on-dark); }
.proof .proof-quote { padding-left: 12px; border-left: 2px solid var(--mint); color: var(--on-dark-muted); font-style: italic; }
.proof .proof-quote.no { border-left-color: #e0a95e; font-style: normal; }
.proof .proof-source { color: var(--mint); font-size: 13px; }
.proof .muted-fact { margin-top: 14px; color: #fff; font-weight: 600; }

.mini-attrs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: auto 0 0; padding: 16px 18px; border-radius: var(--radius-small); background: var(--surface-muted); font-size: 14.5px; }
.mini-attrs dt { color: var(--text-muted); }
.mini-attrs dd { margin: 0; font-weight: 600; }
.mini-code {
  display: block; margin-top: auto; padding: 16px 18px; border-radius: var(--radius-small); background: var(--deep); color: var(--mint);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; line-height: 1.5; word-break: break-all;
}

/* --- Aussage -------------------------------------------------------------------- */

.statement { max-width: 1160px; margin: 0 auto; padding: 48px 24px 32px; }
.statement p { font-size: clamp(1.8rem, 3.9vw, 3.3rem); font-weight: 600; line-height: 1.22; letter-spacing: -0.03em; }
.statement .word { transition: opacity 0.25s linear; }

/* --- Ablauf: Überschrift bleibt stehen, Schritte ziehen vorbei ------------------- */

.steps-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.steps-sticky { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.steps-sticky p { font-size: 19px; color: var(--text-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.step {
  position: relative; padding: 36px 36px 36px 104px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); min-height: 200px;
}
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--text-muted); }
.step-number {
  position: absolute; left: 32px; top: 32px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 650; font-size: 19px; background: var(--petrol); color: #fff;
}

/* --- Grenzen und Datenschutz ---------------------------------------------------- */

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trust-col { padding: 44px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.trust-col h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 28px; }
.no-list, .yes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.no-list li, .yes-list li { position: relative; padding-left: 36px; color: var(--text-muted); }
.no-list li strong, .yes-list li strong { color: var(--text); }
.no-list li::before, .yes-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
}
.no-list li::before { background: #fbe9e6 linear-gradient(45deg, transparent 45%, #b42318 45%, #b42318 55%, transparent 55%); }
.yes-list li::before { background: #e3f1ef; box-shadow: inset 0 0 0 6px #e3f1ef, inset 0 0 0 20px var(--petrol); }

/* --- Preise --------------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 44px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.plan h3 { font-size: 28px; }
.plan-for { color: var(--text-muted); }
.plan-price { font-size: 17px; color: var(--text-muted); }
.plan-price strong { display: block; font-size: 48px; font-weight: 650; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.plan-price span { display: block; font-size: 15px; }
.plan-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-list li { position: relative; padding-left: 28px; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 11px; height: 6px; border-left: 2px solid var(--petrol); border-bottom: 2px solid var(--petrol); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-featured { background: var(--deep); border-color: var(--deep); color: var(--on-dark); }
.plan-featured h3, .plan-featured .plan-price strong { color: #fff; }
.plan-featured .plan-for, .plan-featured .plan-price { color: var(--on-dark-muted); }
.plan-featured .plan-list li::before { border-color: var(--mint); }
.plans-note { margin-top: 24px; font-size: 14px; color: var(--text-muted); max-width: 760px; }

/* --- Fragen --------------------------------------------------------------------- */

.faq-section { padding-top: 0; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 28px; font-weight: 400; color: var(--petrol); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 760px; padding-bottom: 26px; color: var(--text-muted); }

/* --- Abschluss und Fußzeile ------------------------------------------------------ */

.final {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1160px; margin: 0 auto 24px; padding: 128px 32px; border-radius: 32px; text-align: center; color: var(--on-dark);
  background: var(--petrol);
}
.final h2 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); color: #fff; letter-spacing: -0.04em; }
.final p { max-width: 560px; margin: 22px auto 40px; font-size: 19px; color: #d6ebe8; }

.footer {
  max-width: 1160px; margin: 0 auto; padding: 32px 24px 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--text-muted); font-size: 15px;
}
.footer nav { display: flex; gap: 24px; }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* --- Rechtliche Seiten ----------------------------------------------------------- */

.legal { max-width: 760px; margin: 0 auto; padding: 136px 24px 96px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal-draft { padding: 16px 20px; border-radius: var(--radius-small); background: #fff4dc; color: #6b4600; font-size: 15px; }
.legal-page { background: var(--page); }

/* --- Handy und Tablet ------------------------------------------------------------ */

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .tile-tall { grid-column: span 2; grid-row: auto; }
  .steps-layout { grid-template-columns: 1fr; gap: 40px; }
  .steps-sticky { position: static; }
  .hero { grid-template-columns: 1fr; gap: 64px; padding-top: 56px; }
  .nav { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 12px 16px; }
  .nav-actions .btn-outline { display: none; }
  .hero { padding: 40px 16px 80px; }
  .hero-stage { height: 500px; }
  .shop { inset: 0 0 150px 0; }
  .shop-hero { height: 150px; }
  .shop-tiles { grid-template-columns: repeat(2, 1fr); }
  .shop-tile:nth-child(3) { display: none; }
  .stage-badge { display: none; }
  .demo-chat { left: 24px; width: auto; height: 380px; }
  .section { padding: 96px 16px; }
  .section-head { margin-bottom: 36px; }
  .bento, .trust, .plans { grid-template-columns: 1fr; }
  .tile-wide, .tile-tall { grid-column: auto; }
  .tile-wide { flex-direction: column; align-items: stretch; }
  .tile, .trust-col, .plan { padding: 26px; }
  .step { padding: 28px 24px 28px 88px; min-height: 0; }
  .step-number { left: 24px; top: 26px; width: 44px; height: 44px; }
  .statement { padding: 24px 16px; }
  .faq summary { font-size: 18px; padding: 22px 0; }
  .final { margin: 0 12px 16px; padding: 88px 20px; border-radius: 24px; }
  .footer { padding: 24px 16px 40px; }
}

/* --- Bewegung (nur mit JavaScript und ohne Wunsch nach reduzierter Bewegung) ------
   site.js setzt die Klasse "motion" auf <html>. Ohne sie ist alles sofort sichtbar. */

.motion [data-reveal] { opacity: 0; transform: translateY(28px) scale(0.98); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.motion [data-reveal].is-visible { opacity: 1; transform: none; }
.motion .hero-stage[data-reveal] { transform: translateY(40px); transition-duration: 1.1s; }
.motion .hero-stage.is-visible { transform: none; }
.motion .stage-bar i { width: 0; }
.motion .is-visible .stage-bar i { width: 87%; }
.motion .bento [data-reveal]:nth-child(2), .motion .steps [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.motion .bento [data-reveal]:nth-child(3), .motion .steps [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.motion .bento [data-reveal]:nth-child(4), .motion .steps [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.motion .scan-bar span { width: 0; }
.motion .is-visible .scan-bar span { width: 87%; }
.motion [data-step] { display: none; }
.motion [data-step].shown { display: block; animation: pop 0.45s var(--ease); }
.motion [data-typing].shown { display: flex; }
.motion [data-scrub] .word { opacity: 0.14; }
.motion [data-scrub] .word.lit { opacity: 1; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
