/* ZANE Funnel-Prototyp v2: Tokens, Grundlagen, gemeinsame Bausteine
   Verfeinert mit impeccable (craft floor), emil-design-eng (Motion) und design-taste-frontend (Redesign, Marke bleibt). */
:root {
  /* Flächen: fast schwarz statt #000, damit Ebenen Tiefe bekommen */
  --bg: #08080A;
  --s1: #101013;
  --s2: #16161A;
  --s3: #1D1D22;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  /* Text */
  --t1: #F5F4F0;
  --t2: #B9B8B2;
  --t3: #8A8984;
  /* Marke */
  --yellow: #FFC921;
  --yellow-2: #FFD54D;
  --yellow-ink: #1C1500;
  --yellow-wash: rgba(255, 201, 33, .085);
  --yellow-line: rgba(255, 201, 33, .55);
  --orange: #FF8100;
  --green: #5BD394;
  --red: #FF6B5F;
  /* Typo */
  --display: 'Bebas Neue', 'Oswald', sans-serif;
  --sans: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  /* Radius-System: Knöpfe und Chips voll rund, Karten 18, Optionen und Felder 16, Bilder 20 */
  --r-card: 18px;
  --r-opt: 16px;
  --r-img: 20px;
  /* Bewegung (Emil): kräftiges ease-out, UI unter 250 ms */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --d-press: 160ms;
  --d-ui: 220ms;
  --app: 440px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scrollbar-color: #2C2C33 var(--bg); scrollbar-width: thin; }
body { background: var(--bg); color: var(--t1); font-family: var(--sans); font-size: 16.5px; line-height: 1.55; font-weight: 500; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'ss01'; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: var(--yellow); text-underline-offset: 3px; text-decoration-thickness: 1px; }
input { font: inherit; caret-color: var(--yellow); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--yellow-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2C2C33; border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: var(--bg); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }
.yl { color: var(--yellow); }
.disp { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .92; }
.num { font-variant-numeric: tabular-nums; }

/* Icons: Phosphor, eine Familie, eine Strichstärke */
.ic { font-size: 21px; line-height: 1; display: inline-flex; flex: none; }

/* Hauptknopf: Pille, Druck-Feedback, Hover nur mit Maus */
.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px; padding: 0 24px; border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); font-weight: 800; font-size: 15.5px; letter-spacing: .02em; transition: transform var(--d-press) var(--ease-out), background-color var(--d-ui) ease, opacity var(--d-ui) ease, box-shadow var(--d-ui) ease; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 20px -10px rgba(0, 0, 0, .7); }
.btn:active { transform: scale(.975); }
.btn .ic { font-size: 18px; transition: transform var(--d-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--yellow-2); } .btn:hover .ic { transform: translateX(3px); } }
.btn[disabled] { background: var(--s3); color: #66656F; box-shadow: none; cursor: default; }
.btn[disabled]:active { transform: none; }
.link { color: var(--t2); font-size: 14.5px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; padding: 10px 6px; }

/* Sterne */
.stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.stars .ph-fill { font-size: 15px; }

/* Testimonial-Karte: Foto, Ergebnis als Überschrift, kurzes Zitat, langes Zitat aufklappbar */
.tcard { background: var(--s1); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 0 0 1px var(--line) inset; }
.tcard .ph { aspect-ratio: 5 / 4; background: #111 center / cover no-repeat; }
.tcard .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Icons: SVG im <i> (js/icons.js), Größe über font-size wie zuvor beim Webfont */
i.ph, i.ph-fill { display: inline-block; line-height: 1; font-style: normal; vertical-align: -0.125em; }
i.ph > svg, i.ph-fill > svg { display: block; width: 1em; height: 1em; fill: currentColor; }
.tcard.compact .ph { aspect-ratio: 16 / 11; }
.tcard .bd { padding: 18px 18px 20px; }
.tcard .res { font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--t1); margin-top: 10px; }
.tcard q { display: block; quotes: none; font-size: 15.5px; line-height: 1.55; color: var(--t2); margin-top: 8px; }
.tcard .who { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tcard .who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tcard .nm { font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.tcard .meta { font-size: 13px; color: var(--t3); line-height: 1.35; }
.tcard .ver { margin-left: auto; color: var(--green); font-size: 18px; }
.tcard details { margin-top: 10px; }
.tcard summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--yellow); display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.tcard summary::-webkit-details-marker { display: none; }
.tcard summary .ic { font-size: 15px; transition: transform var(--d-ui) var(--ease-out); }
.tcard details[open] summary .ic { transform: rotate(180deg); }
.tcard details p { color: var(--t2); font-size: 15px; line-height: 1.6; margin-top: 8px; }

/* Telefon mit App-Screen */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ''; position: absolute; inset: 12% 2% 4%; background: radial-gradient(closest-side, rgba(255, 201, 33, .26), transparent 75%); filter: blur(28px); z-index: -1; }

/* Akkordeon */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--t3); transition: transform var(--d-ui) var(--ease-out), color var(--d-ui) ease; }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--yellow); }
.faq details p { color: var(--t2); padding: 0 32px 22px 0; font-size: 15.5px; }

/* Chat-Vorschau des Coaches */
.chatbox { border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #142338, #0A111D 70%); box-shadow: 0 0 0 1px rgba(160, 190, 230, .12) inset, 0 30px 60px -30px rgba(0, 0, 0, .8); }
.ch-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ch-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ch-head b { display: block; font-size: 16px; }
.ch-head span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9FB2C8; }
.ch-head span i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ch-body { padding: 18px 16px 16px; min-height: 200px; }
.bub { max-width: 90%; background: #F5F7FA; color: #0B1220; border-radius: 20px 20px 20px 6px; padding: 12px 15px; font-size: 15.5px; line-height: 1.45; font-weight: 500; }
.bub.typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.bub.typing.off { display: none; }
.bub.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8896A8; animation: dot 1s infinite; }
.bub.typing i:nth-child(2) { animation-delay: .15s; } .bub.typing i:nth-child(3) { animation-delay: .3s; }
.bub.msg { display: none; transform-origin: 0 100%; }
.bub.msg.on { display: block; animation: bubIn 260ms var(--ease-out) both; }
.ch-time { font-size: 11.5px; color: #6F8297; margin-top: 8px; opacity: 0; transition: opacity 300ms ease; }
.ch-time.on { opacity: 1; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes bubIn { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }

@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; } }

/* Stoffwechsel-Grafik (Z.metabChart): baut sich auf, sobald .on gesetzt ist */
.mchart { width: 100%; height: auto; display: block; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.mchart .mc-dots circle { fill: #fff; fill-opacity: .17; }
.mchart .mc-dots circle.in { fill: #FFC921; fill-opacity: .42; }
.mchart .mc-under { stroke: var(--s1); }
.mchart .mc-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mchart .mc-dots, .mchart .mc-area, .mchart .mc-lab { opacity: 0; }
.mchart.on .mc-dots { animation: mcFade 900ms ease both; }
.mchart.on .mc-line { animation: mcDraw 1400ms var(--ease-out) 200ms both; }
.mchart.on .mc-area { animation: mcFade 700ms ease 900ms both; }
.mchart.on .mc-lab { animation: mcFade 500ms ease 1100ms both; }
@keyframes mcDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mcFade { from { opacity: 0; } to { opacity: 1; } }

/* Einheit neben einer großen Zahl (z.B. "2 inches") */
.disp small { margin-left: .14em; font-family: var(--sans); font-size: .34em; font-weight: 800; letter-spacing: 0; text-transform: none; }
