/* ==========================================================================
   refine.css — Frontend-Überarbeitung für v10 (aus v8) und v11 (aus v9).
   Lädt NUR in v10/v11 (body[data-refine]). v8/v9 bleiben unverändert.
   Prinzipien:
   1. Ein Moment Bewegung: Hero-Auftakt + Wachstumskurve (Monate). Abschnitte
      faden nicht mehr einzeln rein, Überschriften stehen sofort.
   2. Der goldene Schreibschrift-Akzent gehört nur dem Hero. Überall sonst
      trägt die Schrift selbst (Größe, Gewicht, Laufweite) die Überschrift.
   3. Struktur = Information: keine Etiketten über jeder Überschrift,
      Nummern nur wo es eine echte Reihenfolge gibt (Ablauf, Monate).
   4. Hierarchie der Rundungen: Bühne 40 · Karte 18 · Knopf/Chip rund.
   ========================================================================== */

/* ---------- 1. Ruhe: Abschnitte ohne Einblende-Animation ---------- */
body[data-refine] section:not(.hero) .rv,
body[data-refine] section:not(.hero) .rv.l,
body[data-refine] section:not(.hero) .rv.r,
body[data-refine] section:not(.hero) .rv.pop{opacity:1;transform:none;filter:none;transition:none}
body[data-refine] section:not(.hero) .wr .w>span{transform:none;transition:none}

/* ---------- 2. Typo-Skala (≈ 4:3) ---------- */
body[data-refine] h2{font-size:clamp(34px,4.3vw,58px);line-height:1.03;letter-spacing:-.028em;text-wrap:balance}
body[data-refine] .center h2{max-width:18ch}
body[data-refine] .center h2,body[data-refine] .center>h2{margin-left:auto;margin-right:auto}
body[data-refine] .lede{max-width:58ch;line-height:1.65;text-wrap:pretty}
body[data-refine] h3{letter-spacing:-.01em;text-wrap:balance}
body[data-refine] p{text-wrap:pretty}
body[data-refine] .wr .it .w>span,body[data-refine] .it{padding-right:.08em}

/* übrig gebliebene Etiketten (Case Study, Gratis, Unsere Antwort): normale Schreibweise */
body[data-refine] .eyebrow{text-transform:none;letter-spacing:0;font-size:14px;font-weight:600}

/* ---------- 3. Karten: eine Ebene, kein Einheits-Schatten ---------- */
body[data-refine] .bx,body[data-refine] .tcard,body[data-refine] .w3{border-radius:18px;box-shadow:none}
body[data-refine] .gl .bx,body[data-refine] .gl .tcard,body[data-refine] .gl .w3{box-shadow:none}
body[data-refine] .w3:after{display:none}

/* ---------- 4. Bedienbarkeit ---------- */
body[data-refine] :focus-visible{outline:2px solid var(--a2);outline-offset:3px;border-radius:8px}
body[data-refine] .btn:focus-visible{border-radius:999px}

/* ==========================================================================
   v10 · Noir & Ivory · Refined — redaktionell: Köpfe links, Text daneben
   ========================================================================== */
@media(min-width:900px){
  body[data-refine=v10] section:not(.hero):not(#monate):not(#bewerben):not(#faq):not(:has(.orbit)) .center{text-align:left}
  body[data-refine=v10] section:not(.hero):not(#monate):not(#bewerben):not(#faq):not(:has(.orbit)) .center h2{margin-left:0;max-width:14ch}
  body[data-refine=v10] section:not(.hero):not(#monate):not(#bewerben):not(#faq):not(:has(.orbit)) .center .lede{margin-left:0}
  body[data-refine=v10] h2{font-size:clamp(40px,4.8vw,66px);letter-spacing:-.034em}
  body[data-refine=v10] .w3{text-align:left}
  body[data-refine=v10] .w3 .wi{margin-left:0;margin-right:auto}
}

/* ==========================================================================
   v11 · Glow · Refined — Glow nur an zwei Stellen: Hero und Bewerbungsformular
   ========================================================================== */
body[data-refine=v11] .gb:not(#bewerben){background:linear-gradient(180deg,var(--bg2),var(--bg))}
body[data-refine=v11] .gb.gl{background:#F7F1E8}
body[data-refine=v11] .gb:not(#bewerben):before{opacity:.35}
body[data-refine=v11] .solve{box-shadow:none}
body[data-refine=v11] .fcard{box-shadow:0 60px 120px -50px var(--a1)}

@media (prefers-reduced-motion:reduce){body[data-refine] *{scroll-behavior:auto}}

/* ---------- 5. Kleine Labels in normaler Schreibweise ---------- */
body[data-refine] .road .st .when,body[data-refine] .mo .mn,body[data-refine] .fcols nav b,body[data-refine] .ph .tag{text-transform:none;letter-spacing:.01em;font-size:13px}
body[data-refine] .fcols nav b{font-size:14px;color:var(--ink)}

/* ---------- 6. Mobil: Deko darf die Seite nicht verbreitern (v9-Altlast) ---------- */
html:has(body[data-refine]),body[data-refine]{overflow-x:clip}
body[data-refine] .hero{overflow:clip}

/* ==========================================================================
   Runde 2 (29.11.) — Feinschliff
   ========================================================================== */
/* Deko, die nichts erzählt: Funkel-Sterne raus */
body[data-refine] .twk{display:none}
/* Restliche Kleinlabels in normaler Schreibweise */
body[data-refine] .pill b{letter-spacing:0;font-size:12px}
body[data-refine] .tag{text-transform:none;letter-spacing:0;font-size:12px;font-weight:600}
/* Hover nur, wo man klickt: Knöpfe heben sich, Karten nicht */
body[data-refine] .bx:hover,body[data-refine] .tcard:hover,body[data-refine] .w3:hover{transform:none}
/* Zahlen in Beweisen: Tabellenziffern, damit sie beim Hochzählen nicht springen */
body[data-refine] .dstats b,body[data-refine] .cph .lab,body[data-refine] [data-count]{font-variant-numeric:tabular-nums}

/* v10: Case Study — die echte Zahl ist das Bild. Einziger lauter Moment unterhalb des Heros. */
body[data-refine=v10] .cs-h{display:flex;flex-direction:column;max-width:none;margin:14px 0 22px}
body[data-refine=v10] .cs-a,body[data-refine=v10] .cs-b{font:500 clamp(22px,2.1vw,30px)/1.2 var(--fd);letter-spacing:-.01em;color:var(--muted)}
body[data-refine=v10] .cs-b{color:var(--ink)}
body[data-refine=v10] .cs-n{font:600 clamp(96px,11vw,176px)/.86 var(--fd);letter-spacing:-.055em;margin:6px 0 10px -.04em;font-variant-numeric:tabular-nums;
  background:linear-gradient(180deg,var(--a2),var(--a1) 70%);-webkit-background-clip:text;background-clip:text;color:transparent}
/* Mobil: Case-Study-Raster darf nicht breiter als der Bildschirm werden */
@media(max-width:900px){body[data-refine] .wrap.res{grid-template-columns:minmax(0,1fr)}body[data-refine] .wrap.res>*{min-width:0}}
