/* Runde 1 (Adrian, 01.12.2026): Sektionen neu gestaltet, Stimmungsfotos durch Grafiken ersetzt.
   Tokens (Farben, Schrift, Radius, Kurve) kommen unverändert aus pavlidis-bestand.css.
   Bewegungsart je Sektion: Akten wandern (Leer), Anzeige klappt auf (Vergleich, scrollgebunden),
   Säule wächst und Bon druckt (Für dich), Zähler füllt Plätze (Referenz), Seite dreht ein (Plan),
   Porträt deckt auf (Konstantin), Einblenden (Fragen), Blätter kippen (Schluss). */
:root { --p-kurve-weg: cubic-bezier(.77, 0, .175, 1); --p-grau: #c9d6e0; }

/* ---------- Hero am Handy: weniger auf einmal (Adrian: „Mobile ein bisschen vollgeklatscht“) ---------- */
@media (max-width: 767px) {
  .hero.n-hero h1 { margin-top: 4px; }
  .hero.n-hero .fv3-heft .hero-sub { margin-top: 4px; }
  .hero.n-hero .n-hero-cta { margin-top: 20px; }
  .p-hero-vertrauen { margin-top: 20px; }
}

/* ---------- Eine Stelle bleibt leer: Grundriss mit leerem Platz ---------- */
.p-leer-raster { display: grid; gap: 32px; }
.p-leer-kopf { display: grid; gap: 14px; }
.p-leer-kopf h2 { margin: 0; }
.p-leer-kopf .lead { margin: 0; max-width: 52ch; color: var(--text-2); }
.p-arten { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.p-arten li { padding: 6px 14px; border: 1px solid var(--linie); border-radius: 999px; background: var(--weiss); color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.4; }
.p-buero { margin: 0; padding: 20px; border-radius: var(--r); background: var(--blau-zart); }
.p-buero-raster { --g: 12px; container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.p-tisch { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--weiss); box-shadow: 0 1px 2px rgb(1 38 65 / .08), 0 12px 20px -16px rgb(1 38 65 / .45); }
.p-platz { position: absolute; left: 12%; bottom: 14%; display: grid; place-items: center; width: 32%; aspect-ratio: 1; border-radius: 50%; background: var(--marine); color: var(--weiss); }
.p-platz svg { width: 58%; height: 58%; }
.p-stapel { position: absolute; right: 10%; bottom: 14%; display: flex; flex-direction: column-reverse; gap: 3px; width: 36%; }
.p-stapel i { display: block; height: 7px; border-radius: 2px; background: var(--p-grau); }
.p-stapel .p-akte-neu { --zb: calc((100cqw - 2 * var(--g)) / 3); --zh: calc(var(--zb) * .75); background: var(--blau); }
.p-tisch-leer { background: transparent; border: 2px dashed #8ea5b6; box-shadow: none; }
.p-frei { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; color: var(--blau-text); font-size: 12px; font-weight: 800; line-height: 1.25; text-align: center; text-wrap: balance; }
.p-buero figcaption { margin-top: 16px; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.5; }
.p-leer-folgen { display: grid; gap: 24px; }
.p-folge { display: grid; gap: 8px; padding-top: 18px; border-top: 2px solid var(--marine); }
.p-folge-wer { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--blau-text); font-size: var(--t5); font-weight: 800; }
.p-folge-wer .reihe-ic { flex: none; width: 22px; height: 22px; color: var(--blau); }
.p-folge h3 { margin: 0; color: var(--marine); font-size: var(--t3); line-height: 1.25; }
.p-folge > p:last-child { margin: 0; max-width: 46ch; color: var(--text-2); line-height: 1.55; }
@media (min-width: 640px) { .p-leer-folgen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 960px) {
  .p-leer-raster { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; row-gap: 40px; align-items: start; }
  .p-leer-kopf { grid-column: 1; grid-row: 1; }
  .p-leer-folgen { grid-column: 1 / -1; grid-row: 2; }
  .p-buero { grid-column: 2; grid-row: 1; padding: 28px; }
  .p-buero-raster { --g: 16px; }
  .p-frei { font-size: 14px; }
  .p-stapel i { height: 9px; }
}

/* ---------- Vergleich: Bühne in Marine, die Anzeigen als weiße Blätter darauf ---------- */
.p-wende { width: var(--panel); margin: 0 auto; border-radius: var(--r); background: var(--marine); color: var(--weiss); }
.p-wende .p-wende-kopf h2 { color: var(--weiss); }
.p-wende .p-wende-kopf .lead { color: var(--marine-text-2); }
.p-wende .sa-vorher { border-color: transparent; background: #f3f6f8; }
.p-wende .p-wende-kopf .p-zeile { display: block; }
.p-wende .sa-vorher .sa-tag { background: var(--weiss); }
.p-wende .sa-vorher .sa-liste-titel { border-top-color: #cfd9e1; }
.p-wende .sa-nachher { border-color: var(--hellblau); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55); }
.p-wende .sa-pfeil { background: var(--blau); }
.p-wende .p-wende-fazit { color: var(--weiss); }
.p-wende .knopf { background: var(--weiss); color: var(--marine); }
@media (hover: hover) and (pointer: fine) { .p-wende .knopf:hover { background: var(--blau-zart); } }
.p-wende .sa-plus-betrag { font-size: 20px; }
@media (min-width: 960px) {
  .p-wende .wende-raster > .p-wende-fazit { border-top-color: var(--hellblau); }
  .p-wende { padding-block: 88px; }
}

/* ---------- Für dich: Schalter zwischen Team und Kanzlei ---------- */
.p-blick-kopf { display: grid; gap: 12px; }
.p-blick-kopf h2, .p-blick-kopf .lead { margin: 0; }
.p-blick-kopf .lead { max-width: 54ch; color: var(--text-2); }
.p-schalter { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; margin: 24px 0 16px; padding: 5px; border: 1px solid var(--linie); border-radius: 999px; background: var(--weiss); }
html:not(.nf-js) .p-schalter { display: none; }
.p-schalter button { min-height: 48px; padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 700 15px/1.2 var(--schrift); text-wrap: balance; cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 160ms var(--ease); }
.p-schalter button[aria-selected="true"] { background: var(--marine); color: var(--weiss); }
.p-schalter button:active { transform: scale(.97); }
.p-schalter button:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
.p-blick-flaechen { display: grid; gap: 16px; }
.p-blick-flaeche { display: grid; gap: 28px; padding: 24px 20px; border: 1px solid var(--linie); border-radius: var(--r); background: var(--weiss); box-shadow: var(--schatten); }
.p-blick-flaeche[hidden] { display: none; }
.p-blick-flaeche:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; }
.p-blick-text { display: grid; gap: 20px; align-content: start; }
.p-blick-text h3 { margin: 0; color: var(--marine); font-size: var(--t3); line-height: 1.25; }
.p-vorteile { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.p-vorteile li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.p-v-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blau-zart); color: var(--blau-text); }
.p-v-ic svg { width: 24px; height: 24px; }
.p-vorteile b { display: block; color: var(--marine); font-size: 18px; font-weight: 800; line-height: 1.3; }
.p-vorteile li span:not(.p-v-ic) { display: block; margin-top: 4px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.p-blick-cta { margin-top: 28px; }
@media (min-width: 640px) { .p-schalter { display: inline-grid; width: auto; grid-template-columns: auto auto; } .p-schalter button { padding: 8px 22px; font-size: 16px; } }
@media (min-width: 960px) {
  .p-blick-flaeche { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .p-blick-flaeche.p-wechsel { animation: p-wechsel 280ms var(--ease) both; }
}
@keyframes p-wechsel { from { transform: translateY(10px); } to { transform: none; } }

/* Säule Gehalt plus Extras (Team) */
.p-paket, .p-bon { margin: 0; padding: 20px; border-radius: 14px; background: var(--blau-zart); }
.p-paket-saeulen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; height: 300px; overflow: hidden; }
.p-saeule { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; }
.p-block { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 12px; font-size: 14px; font-weight: 800; line-height: 1.2; text-align: center; }
.p-block svg { flex: none; width: 18px; height: 18px; }
.p-block-gehalt { height: 110px; background: var(--p-grau); color: var(--marine); }
.p-block-gesund { height: 64px; background: var(--blau-text); color: var(--weiss); }
.p-block-alter { height: 76px; background: var(--marine); color: var(--weiss); }
.p-saeule-name { margin-top: 6px; color: var(--text-2); font-size: 13px; font-weight: 700; text-align: center; }
.p-saeule-neu .p-saeule-name { color: var(--marine); }
.p-paket figcaption, .p-bon figcaption { margin-top: 14px; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.5; }

/* Bon: was ein Extra wirklich kostet (Zahlen nur im Plan) */
.p-bon-papier { position: relative; max-width: 380px; margin: 0 auto 10px; padding: 20px 20px 22px; border-radius: 6px 6px 0 0; background: var(--weiss); font-variant-numeric: tabular-nums; box-shadow: 0 14px 26px -20px rgb(1 38 65 / .5); }
.p-bon-papier::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 6px 0, var(--weiss) 6px, transparent 6.5px) 0 0 / 12px 10px repeat-x; }
.p-bon-kopf { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px dashed #b9c6d0; color: var(--marine); font-size: 15px; font-weight: 800; }
.p-bon-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px dashed #d5dee5; color: var(--text); font-size: 15px; font-weight: 600; }
.p-bon-minus span::before { content: "− "; color: var(--blau-text); font-weight: 800; }
.p-bon-wert { flex: none; width: 64px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--p-grau), #e3eaf0); filter: blur(1.5px); }
.p-bon-summe { border-top: 2px solid var(--marine); border-bottom: 0; margin-top: 4px; color: var(--marine); font-weight: 800; }
.p-bon-summe .p-bon-wert { width: 30px; background: var(--blau); filter: blur(1px); }
.p-bon-fuss { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--blau-text); font-size: 14px; font-weight: 700; }
.p-bon-fuss svg { flex: none; width: 18px; height: 18px; }

/* ---------- Referenz: 20 Plätze statt Foto ---------- */
.p-ref-grafik { display: grid; gap: 16px; align-content: center; margin: 0; padding: 24px; border-radius: var(--r); background: var(--marine); color: var(--weiss); }
/* Runde 3 (#153, 92234): Die Zahl führt die Überschrift als große Ziffer in eigener Zeile (Bestand: Zahl vorn, gleich groß
   wie der Satz). Rest der Überschrift in der Größe der übrigen Titel. Die Grafik trägt nur ein Etikett, keine zweite Zahl. */
.referenz h2 .p-ref-titelzahl { display: block; margin-bottom: 4px; color: var(--blau-text); font-size: 64px; font-weight: 800; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.referenz h2 .p-ref-titelrest { display: block; text-wrap: balance; }
.p-ref-etikett { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--weiss); font-size: 14px; font-weight: 700; line-height: 1.3; }
.p-ref-etikett svg { flex: none; width: 20px; height: 20px; fill: currentColor; color: var(--marine-text-2); }
.p-ref-plaetze { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.p-ref-plaetze li { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; background: var(--blau); color: var(--weiss); transition: background-color 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease); }
.p-ref-plaetze svg { width: 64%; height: 64%; }
.p-ref-grafik.p-zaehlt .p-ref-plaetze li:not(.p-voll) { background: rgb(255 255 255 / .08); color: rgb(255 255 255 / .35); transform: scale(.9); }
.p-ref-grafik figcaption { color: var(--marine-text-2); font-size: 14px; line-height: 1.45; }
@media (min-width: 960px) { .p-ref-grafik { padding: 28px 32px; } .referenz h2 .p-ref-titelzahl { font-size: 80px; } }
/* R49: Im Beweis-Bildschirm am Handy drei Größen: Ziffer 64 px, Überschrift rund 22 px, Text 15 px wie Karte und Adresse. */
@media (max-width: 767px) { .p-ref-etikett, .p-ref-grafik figcaption { font-size: 15px; } }

/* ---------- Plan: die echten Seiten auf ruhiger Fläche statt Schreibtischfoto ---------- */
.n-rep.p-plan .n-rep-buehne { background: var(--blau-zart) none; box-shadow: none; }

/* ---------- Konstantin: echtes Porträt vor Fläche, ohne Stimmungsraum ---------- */
.ueber .p-ueber-portraet-feld { display: grid; place-items: end center; margin: 0; padding: 32px 24px 0; overflow: hidden; border-radius: var(--r); background: var(--blau-zart); aspect-ratio: auto; }
.ueber .p-ueber-portraet-feld img.p-ueber-portraet { position: static; display: block; width: min(100%, 300px); height: auto; aspect-ratio: 432 / 540; object-fit: cover; border: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px -24px rgb(1 38 65 / .5); }
@media (max-width: 959px) { .ueber .p-ueber-portraet-feld { margin-bottom: 28px; } .ueber .p-ueber-portraet-feld img.p-ueber-portraet { width: min(100%, 240px); } }

/* ---------- Fragen: Überschrift und Knopf links, Liste rechts, ohne Foto ---------- */
.p-fragen-kopf { display: grid; justify-items: start; gap: 14px; align-content: start; }
.p-fragen-kopf h2, .p-fragen-kopf .lead { margin: 0; }
.p-fragen-kopf .lead { color: var(--text-2); }
.p-fragen .faq-liste { margin-top: 24px; }
@media (min-width: 960px) {
  .p-fragen .fragen-raster { align-items: start; }
  .p-fragen .p-fragen-kopf { grid-column: 1 / span 5; grid-row: 1; position: sticky; top: 112px; }
  .p-fragen h2.p-fragen-titel { grid-column: auto; grid-row: auto; }
  .p-fragen .faq-liste { grid-column: 6 / span 7; grid-row: 1; margin-top: 0; }
}

/* ---------- Schluss: echter Plan statt Türfoto ---------- */
.p-schluss .schluss-raster { display: grid; gap: 32px; justify-items: stretch; }
.p-schluss-plan { position: relative; height: 220px; }
.p-schluss-plan img { position: absolute; top: 0; width: 150px; height: auto; border-radius: 4px; box-shadow: 0 24px 40px -20px rgb(0 0 0 / .6); }
.p-schluss-s2 { left: calc(50% - 20px); transform: rotate(7deg); }
.p-schluss-s1 { left: calc(50% - 140px); transform: rotate(-6deg); border: 1px solid rgb(255 255 255 / .55); }
@media (min-width: 960px) {
  .p-schluss .schluss-raster { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; }
  .p-schluss-plan { height: 340px; }
  .p-schluss-plan img { width: 210px; }
  .p-schluss-s2 { left: calc(50% - 10px); }
  .p-schluss-s1 { left: calc(50% - 190px); top: 20px; }
}

/* ---------- Bewegung (nur mit Skript, nur ohne reduzierte Bewegung) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Akten wandern vom leeren Platz zu den Kollegen (FLIP über Container-Einheiten) */
  .p-stapel .p-akte-neu { transition: transform 900ms var(--p-kurve-weg) calc(450ms + var(--n) * 260ms); }
  html.p-reveal .p-buero:not(.p-da) .p-akte-neu { transform: translate(calc(var(--dx) * (var(--zb) + var(--g))), calc(var(--dy) * (var(--zh) + var(--g)))); }
  /* Die Säule wächst: erst Gesundheit, dann Alter, von unten auf das Gehalt */
  .p-paket .p-saeule-neu :is(.p-block-alter, .p-block-gesund) { transition: clip-path 620ms var(--ease); clip-path: inset(0 0 0 0 round 12px); }
  .p-paket .p-saeule-neu .p-block-gesund { transition-delay: 260ms; }
  .p-paket .p-saeule-neu .p-block-alter { transition-delay: 480ms; }
  html.p-reveal .p-paket:not(.p-da) .p-saeule-neu :is(.p-block-alter, .p-block-gesund) { clip-path: inset(100% 0 0 0 round 12px); }
  /* Der Bon druckt von oben nach unten */
  .p-bon .p-bon-papier { transition: clip-path 1100ms var(--ease) 200ms; clip-path: inset(0 -20px -14px -20px); }
  html.p-reveal .p-bon:not(.p-da) .p-bon-papier { clip-path: inset(0 -20px 100% -20px); }
  /* Porträt deckt sich von unten auf */
  .ueber .p-ueber-portraet-feld img.p-ueber-portraet { transition: clip-path 900ms var(--ease) 120ms; clip-path: inset(0 0 0 0); }
  html.p-reveal .ueber .p-ueber-portraet-feld:not(.p-da) img.p-ueber-portraet { clip-path: inset(100% 0 0 0); }
  /* Schluss: die Blätter kippen in ihre Lage */
  .p-schluss-plan img { transition: transform 800ms var(--ease) 150ms; }
  html.p-reveal .p-schluss-plan:not(.p-da) .p-schluss-s1 { transform: rotate(4deg) translateY(40px); }
  html.p-reveal .p-schluss-plan:not(.p-da) .p-schluss-s2 { transform: rotate(-2deg) translateY(56px); }
}

/* Referenz: Karte und Grafik nebeneinander (ab 960 px) */
.p-ref-raster { display: grid; gap: 16px; }
@media (min-width: 960px) { .p-ref-raster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; } }

/* ---------- Rückgabe 2 der Nacharbeit 2 ---------- */
/* R63 (81482): Am Handy trägt die Kopfleiste rechts den Hauptknopf, kurz „Plan holen“ (voller Wortlaut als aria-label). */
@media (max-width: 959px) {
  .kopf-innen { gap: 12px; }
  .kopf-marke { gap: 10px; }
  .kopf-logo { height: 30px; }
  .kopf-gesellschaft { height: 20px; }
  .kopf-linie { height: 24px; }
  .kopf .knopf { display: inline-flex; flex: none; min-height: 44px; padding: 8px 16px; font-size: 14px; }
  .kopf .p-kopf-lang { display: none; }
}
/* 50-visual-interaction 9.3 (360 px bei engem Mobile-Verdacht): bei 360 px stieß das Gesellschaftslogo an den Kopfknopf,
   darum gilt die schmale Kopfleiste jetzt bis 379 px. */
@media (max-width: 379px) {
  .kopf-logo { height: 26px; }
  .kopf-gesellschaft { height: 18px; }
  .kopf .knopf { padding: 8px 12px; }
}
/* Review Checklist (emil-design-eng Z. 678): Die feste Leiste geht schneller (180 ms), als sie kommt (260 ms),
   weil sie jetzt öfter wechselt (Kopfknopf im Bild oder nicht). Safe Area (Mobil 9.1): Kopfleiste rückt im Querformat von der Kamera ab. */
.haft:not(.nf-sichtbar) { transition-duration: 180ms; }
@media (max-width: 959px) { .kopf-innen { padding-left: max(var(--rand), env(safe-area-inset-left, 0px)); padding-right: max(var(--rand), env(safe-area-inset-right, 0px)); } }
/* R49 (81485): Im ersten Bildschirm am Handy genau drei Schriftgrößen: 28 px Titel, 16 px Text und Knöpfe, 14 px Nebenzeilen. */
@media (max-width: 767px) {
  :root { --t-knopf: 16px; }
  .fv-frage1__schritt { font-size: 14px; line-height: 20px; }
  .fv-frage1__text { font-size: 16px; line-height: 22px; }
  .fv-frage1 .fv-kachel { font-size: 16px; }
}
/* R9 (81486, 81480): Das Etikett „Seit Monaten frei“ liegt über den wandernden Akten; sie kommen darunter hervor. */
.p-tisch-leer { z-index: 2; }
.p-frei { border-radius: 10px; background: var(--blau-zart); }

/* Nacharbeit 2, Rückgabe (P3 84468): Nach dem Absenden führt kein Kopfknopf am Desktop zurück an den Anfang. */
@media (min-width: 960px) {
  html[data-nf-lead="ok"] .kopf .knopf { opacity: 0; visibility: hidden; }
  /* emil-design-eng Review Checklist „Same enter/exit transition speed“: der Kopfknopf geht in 160 ms, er kommt in 220 ms (Bestand). */
  html:not(.nach-hero) .kopf .knopf, html[data-nf-lead="ok"] .kopf .knopf { transition-duration: 160ms; }
}

/* 50-visual-interaction 9.1 „Inhalt darf nicht von fixierten Elementen verdeckt werden“: Solange der Cookie-Hinweis
   unten offen ist, bleibt die feste Knopfleiste weg; zwei feste Leisten am unteren Rand überdecken sich sonst. */
html:has(#nf-consent:not([hidden])) [data-nf-sticky] { visibility: hidden; }

/* Nacharbeit 2, Rückgabe (P3 84466, Messfall klickziele_390): Das Auswahlfeld selbst ist 44 x 44 px groß,
   sieht aber aus wie bisher (Kreis 22 px, Rand 2 px). Der negative Rand hält den Platz in der Kachel gleich. */
.q-opt input[type=radio] {
  width: 44px; height: 44px; margin: -11px; border: 0; border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--weiss) 0 9px, rgb(1 38 65 / .45) 9px 11px, transparent 11px);
}
.q-opt input[type=radio]:checked {
  background: radial-gradient(circle closest-side, var(--marine) 0 11px, transparent 11px);
}
.q-opt input[type=radio]:focus-visible { outline: 2px solid var(--marine); outline-offset: -9px; }

/* ---------- Runde 2 (Adrian: „holt mich noch nicht ab“, Befunde 86617 bis 86619): erster Bildschirm mit Zielzustand ---------- */
/* Betonung in derselben Schrift und demselben Gewicht, nur Farbe (Hellblau auf Marine 6,0:1) */
.p-h1-akzent { font-style: normal; color: var(--hellblau); }
/* Beleg am Claim: echte Referenz mit Zahl statt Schmerz-Meldung */
.n-karte[data-art="beleg"] .n-karte-text { font-weight: 800; }
/* Die zwei Extras als Angebot, gleiche Bildsprache wie die Zukunftskanzlei-Anzeige weiter unten */
.p-hero-extras { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.p-hero-extras li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; margin: 0; color: var(--weiss); font-size: 17px; font-weight: 800; line-height: 1.25; }
.p-hx-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); color: var(--hellblau); }
.p-hx-ic svg { width: 20px; height: 20px; }
.hero.n-hero .p-hero-extras + .fv3-heft { margin-top: 14px; }
.hero.n-hero .p-hero-extras + .fv3-heft .hero-sub { font-size: 16px; line-height: 1.5; }
@media (min-width: 960px) {
  .p-hero-extras { gap: 12px; margin-top: 24px; }
  .p-hero-extras li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; font-size: 21px; }
  .p-hx-ic { width: 44px; height: 44px; }
  .p-hx-ic svg { width: 24px; height: 24px; }
  .hero.n-hero .p-hero-extras + .fv3-heft { margin-top: 18px; }
  .hero.n-hero .p-hero-extras + .fv3-heft .hero-sub { font-size: 17px; }
  .hero.n-hero .n-hero-cta { margin-top: 26px; }
}
/* Vordergrund der Szene: Bewerbungen kommen an. Ersetzt das Punktraster (Schmuck ohne Aussage). */
.hero.n-hero .n-szene::before { display: none; }
.p-eingang { position: absolute; z-index: 3; right: 8px; top: 30%; display: grid; justify-items: end; gap: 10px; pointer-events: none; }
.p-bw { display: grid; grid-template-columns: 36px auto; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 8px 8px; border-radius: 16px; background: var(--weiss); color: var(--marine); box-shadow: inset 0 -1px 0 rgb(1 38 65 / .08), 0 18px 30px -16px rgb(0 0 0 / .7); }
.p-bw-2 { margin-right: 28px; }
.p-bw-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blau-zart); color: var(--blau-text); }
.p-bw-ic svg { width: 20px; height: 20px; }
.p-bw-text { display: grid; gap: 1px; line-height: 1.25; }
.p-bw-text b { font-size: 14px; font-weight: 800; }
.p-bw-text span { color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
@media (min-width: 960px) {
  .p-eingang { right: -20px; top: 36%; }
  /* Der erste Bildschirm hält die Beweisleiste ganz im Bild: weniger Luft über der Meldung */
  .hero.n-hero .n-hero-text { padding-top: 40px; }
}
@media (max-width: 767px) {
  /* Mobil eigene Komposition: die Meldung sitzt neben der Brust, nicht vor dem Gesicht, und fährt mit Konstantin */
  .p-eingang { top: 52%; right: 10px; }
  .p-bw-2 { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Einmal beim Laden, gestaffelt nach dem Text: die Bewerbungen treffen ein (Erzählung, keine Schleife) */
  /* Nur Bewegung und Ausschnitt, keine Deckkraft: der Text ist in jedem Zwischenstand voll kontrastreich (Messung kontrast_1440).
     fill backwards, damit nach dem Eintreffen kein clip-path den Schatten beschneidet */
  html.nf-js .p-bw { animation: p-bw-ein 560ms var(--ease) backwards; }
  html.nf-js .p-bw-1 { animation-delay: 620ms; }
  html.nf-js .p-bw-2 { animation-delay: 1180ms; }
  html.nf-js .p-hero-extras.p-auftritt { animation-delay: 140ms; }
  html.p-reveal .n-hero .n-szene .p-eingang { will-change: translate; }
}
@keyframes p-bw-ein { from { clip-path: inset(0 0 0 100% round 16px); transform: translateX(24px); } to { clip-path: inset(0 0 0 0 round 16px); transform: none; } }

/* ---------- Rückgabe 2 der Runde 2 ---------- */
/* R49 (87342, 87346): Im ersten Bildschirm am Handy wieder genau drei Schriftgrößen, 28 px Titel, 16 px Text, 14 px Nebenzeilen.
   Die Extras gehen von 17 auf 16 px (Betonung bleibt über Gewicht 800 und Icon), die Bewerbungskarte trägt
   zwei Zeilen in 14 px, unterschieden über Gewicht und Farbe statt über eine eigene Größe. Etwas weniger Luft
   zwischen den Extras, damit Konstantin höher in den ersten Bildschirm rückt („Mobile vollgeklatscht“).
   Gilt bis 959 px, also überall dort, wo die Extras nicht die Desktop-Größe 21 px tragen (Hinweis Z-0c93513b). */
@media (max-width: 959px) {
  .p-hero-extras { gap: 8px; margin-top: 16px; }
  .p-hero-extras li { font-size: 16px; line-height: 22px; }
  .p-bw-text b { font-size: 14px; line-height: 18px; }
  .p-bw-text span { font-size: 14px; line-height: 18px; font-weight: 500; }
}
/* 87344 (aus 86069, 86082): Nach der Anfrage fordert kein Knopf mehr zur erledigten Handlung auf,
   in jeder Breite; der Kopfknopf behält seinen Platz, damit die Kopfleiste nicht springt. */
html[data-nf-lead="ok"] .kopf .knopf { opacity: 0; visibility: hidden; }
/* Runde 3 (#153, 92207, R63): Der Platz rechts bleibt nach der Anfrage belegt, als ruhiger Zustand „Plan unterwegs“
   mit Haken (heller Grund, Rand statt voller Fläche: keine erneute Aufforderung). Ein Tipp öffnet die Bestätigung. */
html[data-nf-lead="ok"] .kopf .knopf.p-kopf-erledigt { display: inline-flex; align-items: center; gap: 8px; opacity: 1; visibility: visible; transform: none;
  border: 1px solid var(--linie); background: var(--weiss); color: var(--marine); box-shadow: none; }
.kopf .knopf.p-kopf-erledigt .p-kopf-haken { flex: none; width: 18px; height: 18px; fill: var(--blau-text); }
/* Am Handy ist rechts nur Platz für ein Wort (sonst läge der Knopf über dem Gesellschaftslogo); der volle Zustand steht im aria-label. */
.kopf .knopf.p-kopf-erledigt .p-kopf-kurz { display: none; }
@media (max-width: 959px) {
  html[data-nf-lead="ok"] .kopf .knopf.p-kopf-erledigt { gap: 6px; padding: 8px 12px; }
  .kopf .knopf.p-kopf-erledigt .p-kopf-kurz { display: inline; }
}
@media (hover: hover) and (pointer: fine) { html[data-nf-lead="ok"] .kopf .knopf.p-kopf-erledigt:hover { background: var(--blau-zart); } }
html[data-nf-lead="ok"] a.knopf[data-nf-check-start]:not(.kopf .knopf),
html[data-nf-lead="ok"] .nach-cta,
html[data-nf-lead="ok"] .p-blick-cta { display: none; }
/* P01 und N02 (Funnel-Bibliothek) mit 50-visual-interaction 9.2 „kein irreführend abgeschlossen wirkender Viewport“:
   Nach der Anfrage kündigt der Schluss keine drei Fragen mehr an, sondern bestätigt den verarbeiteten Zustand. */
.p-nach-lead { display: none; }
html[data-nf-lead="ok"] .p-vor-lead { display: none; }
html[data-nf-lead="ok"] .p-nach-lead { display: inline; }

/* ---------- Rückgabe 3 der Runde 2 ---------- */
/* 87779 (Hero-Test am Handy, vi-hero 6 „Social Proof am Claim“): Die echte Referenz steht auch unter 960 px über der Überschrift,
   in der dritten vorhandenen Größe 14 px (R49: 28 / 16 / 14 px), Gewicht 800 wie am Desktop. */
@media (max-width: 959px) {
  .hero.n-hero .p-meldung .n-karte-text { font-size: 14px; line-height: 20px; }
  /* Der Satz zum Ablauf bricht, wenn überhaupt, in zwei gleich lange Zeilen, nie mit einem Einzelwort */
  .fv-frage1__schritt { display: block; text-wrap: balance; }
}
/* 87781: Das Porträt lädt sofort (kein lazy mehr) und seine Fläche ist in der Fotofarbe vorbelegt,
   damit nach einem schnellen Sprung keine leere Bühne steht; das Aufdecken geht in 700 statt 900 ms. */
.ueber .p-ueber-portraet-feld img.p-ueber-portraet { background-color: rgb(65 59 58); }
@media (prefers-reduced-motion: no-preference) {
  .ueber .p-ueber-portraet-feld img.p-ueber-portraet { transition-duration: 700ms; transition-delay: 60ms; }
}
/* 87760 mit R56 (Station Formular nie schwächer als der Bestand): Nach dem einen Tipp steht über der Erklärung eine
   große Aussage im Zielzustand je Rolle, wie im Bestand. Größe des Formulartitels (24 px am Handy, R49: 15 / 16 / 24 px). */
.erg-aussage p.p-erg-gross { color: var(--marine); font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 960px) { .erg-aussage p.p-erg-gross { font-size: 26px; } }

/* ---------- Adrian 02.12.: eine Strecke im Vollbild-Blatt ---------- */
/* „Zwei Quiz-Knöpfe, unten ein billiger Funnel“: Befund, Formular und Danke stehen im Blatt #check.
   Schritt 1 Frage, Schritt 2 Befund mit Formular (html[data-p-schritt="formular"]); die Seite springt nicht mehr nach unten. */
html.nf-js #check #formular { display: none; }
html.nf-js[data-p-schritt="formular"] #check #formular { display: block; }
html.nf-js[data-p-schritt="formular"] #check :is(.blatt-start, [data-nf-frage]) { display: none; }
#check .p-blatt-funnel { padding: 0; }
#check .p-blatt-funnel .funnel-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: none; margin: 0; padding: 0; }
#check .p-blatt-funnel :is(.ergebnis-karte, .form-karte) { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
/* Im Blatt trägt der Befund nur die Aussage; Cover, Nutzenliste und zweiter Knopf stehen schon im Blatt bzw. sind das Formular selbst */
#check .p-blatt-funnel .erg-nutzen { display: none; }
#check .p-blatt-funnel .form-karte { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--linie); }
#check .p-blatt-funnel .form-karte:has([data-nf-danke]:not([hidden])) { margin-top: 0; padding-top: 0; border-top: 0; }
#check .p-blatt-funnel .ergebnis-karte:has(~ .form-karte [data-nf-danke]:not([hidden])) { display: none; }
/* Im Blatt trägt am Desktop die Seitenspalte Konstantins Gesicht; am Formular bleibt in jeder Breite nur die Bewertung,
   in einer Zeile und in der Textgröße 15 px (R49: 15 / 16 / 24 px), damit der Absendeknopf am Handy ohne Scrollen im Bild steht */
@media (min-width: 960px) {
  #check .p-blatt-funnel .form-karte > :is(.form-foto, .fv6-absender) { display: none; }
}
#check .p-blatt-funnel .form-karte > .fv-bewertung { margin: 0 0 6px; font-size: var(--t5); }
#check .p-blatt-funnel .form-karte > .fv-bewertung .fv-bewertung__link { min-height: 44px; }
/* Am Handy bleibt Konstantins Gesicht am Formular (wie im Bestand, P09), kompakt: rund 48 px neben Name und Bewertung */
@media (max-width: 959px) {
  #check .p-blatt-funnel .form-karte { grid-template-columns: 48px minmax(0, 1fr); }
  #check .p-blatt-funnel .form-karte > .form-foto { grid-row: 2 / span 2; width: 48px; height: 48px; margin: 12px 0 0; border-radius: 50%; overflow: hidden; }
  #check .p-blatt-funnel .form-karte > .form-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
  #check .p-blatt-funnel .form-karte > .fv6-absender { margin-top: 12px; font-size: var(--t5); line-height: 1.3; }
  #check .p-blatt-funnel .form-karte > .fv6-absender span { display: none; }
  #check .p-blatt-funnel .form-karte > .fv-bewertung { grid-column: 2; grid-row: 3; }
  /* Sterne über dem Text, damit die Zeile links bündig unter dem Namen steht statt in drei Stufen umzubrechen */
  #check .p-blatt-funnel .form-karte > .fv-bewertung .fv-bewertung__link { flex-wrap: wrap; row-gap: 2px; align-content: center; }
  #check .p-blatt-funnel .form-karte > .fv-bewertung .fv-bewertung__link > span:last-child { flex: 1 0 100%; }
  #check .p-blatt-funnel .ergebnis-kopf { display: none; }
}

/* Fortschritt: zwei Schritte, Rolle und Nummer (Zustandsanzeige, Farbe wechselt in 220 ms) */
.p-fortschritt { display: none; }
html.nf-js[data-nf-check="offen"] .p-fortschritt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--text-2); font-size: var(--t5); font-weight: 700; line-height: 1.3; }
.p-fortschritt li { display: grid; gap: 8px; }
.p-fortschritt li::before { content: ""; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--marine) 14%, transparent); transition: background-color 220ms var(--ease); }
.p-fortschritt li.p-fs-frage,
html[data-p-schritt="formular"] .p-fortschritt li.p-fs-nummer { color: var(--marine); }
.p-fortschritt li.p-fs-frage::before,
html[data-p-schritt="formular"] .p-fortschritt li.p-fs-nummer::before { background: var(--blau); }
/* Runde 3 (#153, 92206 aus 91909): Im Danke stand der Fortschritt noch, weil die Regel oben mit .nf-js spezifischer ist. */
html.nf-js[data-nf-lead="ok"] .p-fortschritt { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Schrittwechsel: Schritt 2 gleitet von rechts nach (nur Bewegung, keine Deckkraft; ease-out, 220 ms) */
  html.nf-js[data-p-schritt="formular"] #check #formular { animation: p-schritt-ein 220ms var(--ease) both; }
}
@keyframes p-schritt-ein { from { transform: translateX(24px); } to { transform: none; } }

/* 90451, 90457 (Adrian Runde 1 „Mobile vollgeklatscht“): Am Handy steht im Hero kein Kosten-Satz mehr; er steht
   im Vergleich („keine teuren Extras … gefördert … absetzbar“) und in der Chef-Sicht. So rücken Konstantin,
   das Plan-Cover und die Karte „Neue Bewerbung“ in den ersten Bildschirm. */
@media (max-width: 959px) {
  .hero.n-hero .p-heft { display: none; }
}
/* 90454: Grafik-Unterschrift ohne Einzelwort in der letzten Zeile */
#buero-text { text-wrap: balance; }
/* Adrian 02.12. „zwei Quiz-Knöpfe“: Unter den Hero-Kacheln steht kein eigener Knopf mehr. Damit der Desktop oben trotzdem
   einen Knopf trägt (R68, Befund 90598 „bei 1440 fehlt er oben“), zeigt die Kopfleiste ihn ab dem ersten Bildschirm.
   Er öffnet dasselbe Blatt wie die Kacheln. */
@media (min-width: 960px) {
  html:not(.nach-hero):not([data-nf-lead="ok"]) .kopf .knopf { opacity: 1; visibility: visible; transform: none; }
}
/* 90453: Die Plan-Sektion klebte am Desktop mit 16 px oben am Beweis-Kasten; jetzt derselbe Takt wie die übrigen Sektionen (56 px) */
@media (min-width: 960px) {
  .sektion.n-rep.p-plan { padding-top: var(--abstand); padding-bottom: var(--abstand); }
}

/* ---------- Runde 1 der Gesamt-Prüfung (Anforderung 13): Danke-Ansicht nicht mehr fast leer ----------
   Aufbau nach konzept/strategie.md Teil D (Z-f04da3a1): D4 Cover und Absender am Handy über der Überschrift,
   Bestätigung mit Haken-Zeichen, Zustellkarte, D3 Knopf „Zukunftskanzlei-Plan öffnen“ (verborgen ohne Link),
   Folgekontakt, D5 ein nächster Schritt je Rolle, Weg zurück zur Seite.
   Schriftgrößen wie im Blatt (R49): 27 px Titel, 16 px Text (--t4), 15 px Nebenzeilen (--t5). */
.p-danke { gap: 0; color: var(--text); }
/* Der Fokus springt nach dem Absenden für Screenreader auf die Bestätigung; ein Rahmen um die ganze Karte wäre nur Lärm */
.p-danke:focus { outline: none; }
.p-danke p { margin: 0; }
.p-danke [hidden] { display: none !important; }
.p-danke-absender { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 0 22px; }
.p-danke-cover { width: 72px; height: auto; border-radius: 4px; box-shadow: 0 12px 24px -12px rgb(1 38 65 / .6); transform: rotate(-3deg); }
.p-danke-von { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--text-2); font-size: var(--t5); line-height: 1.4; }
.p-danke-von img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.p-danke-von strong { display: block; color: var(--marine); font-weight: 800; }
.p-danke-kopf { display: flex; align-items: center; gap: 14px; }
.p-danke-kopf h2 { margin: 0; }
.p-danke-zeichen { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blau); color: var(--weiss); }
.p-danke-zeichen svg { width: 24px; height: 24px; fill: currentColor; }
.p-danke-post { display: grid; gap: 8px; margin-top: 20px; padding: 16px 18px; border: 1px solid var(--linie); border-radius: var(--r); background: var(--blau-zart); font-size: var(--t4); line-height: 1.45; }
.p-danke-weg { display: flex; align-items: flex-start; gap: 10px; color: var(--marine); font-weight: 700; }
.p-danke-weg svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: var(--blau-text); }
.p-danke-oeffnen { justify-self: start; }
.p-danke-fragen { margin-top: 18px !important; font-size: var(--t4); line-height: 1.45; }
.p-danke-weiter { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 18px !important; padding-top: 18px; border-top: 1px solid var(--linie); font-size: var(--t4); line-height: 1.45; color: var(--text); }
.p-danke-weiter strong { color: var(--marine); font-weight: 800; }
.p-danke-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blau-zart); color: var(--blau-text); }
.p-danke-icon svg { width: 20px; height: 20px; fill: currentColor; }
.p-danke .p-danke-zu { justify-self: start; margin-top: 12px; font-size: var(--t5); }
/* Am Desktop trägt die Seitenspalte des Blatts schon Konstantins Gesicht und das Cover (D4 gilt am Handy) */
@media (min-width: 960px) {
  .p-danke-absender { display: none; }
}
/* Auftritt nach dem Absenden: Zeichen springt kurz auf, die Teile folgen gestaffelt (ease-out, unter 300 ms je Teil, nur transform und opacity) */
@media (prefers-reduced-motion: no-preference) {
  .p-danke:not([hidden]) .p-danke-zeichen { animation: p-danke-zeichen 280ms var(--ease) both; }
  .p-danke:not([hidden]) :is(.p-danke-absender, .p-danke-post, .p-danke-fragen, .p-danke-weiter) { animation: p-danke-ein 260ms var(--ease) both; }
  .p-danke:not([hidden]) .p-danke-post { animation-delay: 80ms; }
  .p-danke:not([hidden]) .p-danke-fragen { animation-delay: 140ms; }
  .p-danke:not([hidden]) .p-danke-weiter { animation-delay: 200ms; }
}
@keyframes p-danke-zeichen { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes p-danke-ein { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Runde 1, Vorgabe D1 aus konzept/strategie.md: Vorfreude am Feld, kleines Cover links, Satz rechts, in jeder Breite */
.form-zeile.p-form-vorfreude { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; }
.p-form-cover { width: 40px; height: auto; border-radius: 3px; box-shadow: 0 6px 14px -8px rgb(1 38 65 / .6); }
/* D1-Prüfkriterium: Bei 390 x 844 steht der Absendeknopf nach dem Öffnen von Schritt 2 ohne Scrollen im Bild.
   Mit der Cover-Zeile passte er nicht mehr ganz; darum trägt der Befund am Handy nur den großen Satz (Vorgabe D1). */
@media (max-width: 959px) {
  #check .p-blatt-funnel .erg-aussage p:not(.p-erg-gross) { display: none; }
}
