/* ==========================================================================
   Tusche & Siegel – Unterseiten
   Baut auf base.css auf und übernimmt die Bausteine der bisherigen
   Unterseiten (sub-hero, sub-section, sub-rows, Formulare …), damit Texte,
   Formulare und Skripte unverändert bleiben: Der Seitenkopf ist eine dunkle
   Filmszene, gelesen wird auf Cremepapier, der Abschluss ist wieder dunkel.
   Die seitenbezogenen Stylesheets (assets/rf/sub-*.css, film.css) bleiben
   für die Anordnung zuständig. Sie lesen ihre Farben aus denselben Namen
   (--ink, --paper, --red …), die hier je Fläche auf Papier oder Tusche
   gesetzt werden.
   ========================================================================== */

:root { --hdr: 76px; }
html { scroll-padding-top: calc(var(--hdr) + 16px); }
@media (max-width: 600px) { :root { --hdr: 68px; } }

/* ---------- Farbräume ---------- */
/* Papier: Inhalt */
.sub main {
  --ink: #141210;
  --ink-2: #3a352f;
  --muted: #5e574d;
  --gray: #8f877a;
  --mist: #e4dbcb;
  --paper: #eee7da;
  --red: #bf2e1c;
  --red-deep: #8f1f10;
  --line: rgba(20, 18, 16, .16);
  --bone: #141210;
  --bone-dim: #5e574d;
  --sub-bg: var(--paper);
  --sub-max: 78rem;
  --measure: 62ch;
  --sub-inline: max(var(--gutter), calc((100% - var(--sub-max)) / 2));
  --h1: clamp(52px, min(8.4vw, 14vh), 150px);
  --h1-photo: clamp(48px, min(6.6vw, 12.5vh), 124px);
  --h1-paper: var(--h1);
  display: block;
  position: relative;
  z-index: 4;
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
}
/* Tusche: Filmszenen am Anfang und am Ende */
.sub .sub-hero, .sub .sub-cta, .sub .is-dark {
  --ink: #eee7da;
  --ink-2: #d2c9b9;
  --muted: #a29a8c;
  --gray: #6f685e;
  --mist: #1a1815;
  --paper: #0d0c0b;
  --red: #e0402c;
  --red-deep: #ff7a66;
  --line: rgba(238, 231, 218, .16);
  --bone: #eee7da;
  --bone-dim: #a29a8c;
  --sub-bg: var(--paper);
  color-scheme: dark;
  background: var(--paper);
  color: var(--ink);
}
/* Die Stimme (Instrument Serif) gibt es nur in einem Schnitt: kein künstliches Fett */
.sub { font-synthesis-weight: none; --tear-paper: #eee7da; --tear-mist: #e4dbcb; }
/* Bilder behalten ihr Seitenverhältnis wie bisher (Seitenregeln mit Klasse gehen vor) */
:where(.sub) img { height: auto; }
.sub main ::selection { background: var(--red); color: var(--paper); }
.sub [hidden] { display: none !important; }
.sub main :focus-visible { outline-color: var(--red); }

/* Der rote Faden der alten Gestaltung entfällt; Zeitachsen zeichnet CSS. */
.sub .sub-thread, .sub .sub-hero__line, .sub .sub-underline, .sub .sub-rows__thread { display: none !important; }

/* ---------- Typografie ---------- */
/* Lange Kicker brechen im Text um, der Strich bleibt vor der ersten Zeile */
.kicker {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 6px 14px;
  margin: 0 0 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.kicker::before { content: ''; flex: none; width: 24px; height: 1px; margin-top: calc(.725em - .5px); background: var(--red); }
.display, .title {
  margin: 0 0 22px;
  font-family: var(--f-voice);
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.title em, .display em { font-style: italic; color: var(--red); }
.title--xl { font-size: clamp(44px, 5.6vw, 96px); }
.lead {
  max-width: 38rem;
  margin: 0 0 1.4rem;
  font-size: clamp(17px, .4vw + 15.5px, 20px);
  line-height: 1.62;
  color: var(--ink);
  text-wrap: pretty;
}
.note {
  max-width: 44rem;
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--red);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.hint { margin-top: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
@media (hover: none) { [data-fine-only] { display: none; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; }
.sub h3, .sub h4 { margin: 0; }
.sub code { padding: .05em .35em; border-radius: 3px; background: var(--mist); font-family: var(--f-mono); font-size: .86em; }
.anchor { display: block; width: 4.5rem; height: 1px; margin: .4rem 0 1.4rem; background: var(--red); }

/* ---------- Schaltflächen ---------- */
.btn, .sub .button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), background-size .45s var(--ease-out);
}
.btn--primary, .sub .button { background: var(--red); color: var(--paper); box-shadow: none; }
.btn--primary:hover, .sub .button:hover { background: var(--ink); color: var(--paper); }
.btn--primary::after, .sub .button::after { content: none; }
.sub .button { justify-self: start; }
.sub .button:disabled, .sub .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--ghost, .btn--light { border-color: color-mix(in srgb, var(--ink) 42%, transparent); background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover, .btn--light:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
/* Textlinks bleiben so breit wie ihr Text, auch in gestreckten Rastern (Unterstrich!) */
.btn--text {
  width: fit-content;
  min-height: 44px;
  padding: 0 1px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 100% 1px no-repeat;
}
.btn--text:hover { color: var(--ink); background-size: 0 1px; background-position: 100% calc(100% - 9px); }
.btn--xl { min-height: 62px; padding: 0 36px; font-size: 16.5px; }

/* ---------- Listen ---------- */
.promises { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.promises li {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; align-items: baseline; counter-increment: s; text-wrap: pretty; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--red); }
.steps li > * { grid-column: 2; }
.steps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 44px); margin: 1.6rem 0 2.8rem; }
.steps--row li { align-items: start; padding-top: 16px; border-top: 1px solid var(--ink); }
.steps--row li::before { padding-top: .35em; }
.steps--row strong, .steps--row h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.steps--row span, .steps--row p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 760px) { .steps--row { grid-template-columns: 1fr; } }

/* ---------- Kopf der Seite: Filmszene ---------- */
.sub-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(76vh, 780px);
  padding: calc(var(--hdr) + clamp(56px, 12vh, 140px)) var(--sub-inline) clamp(64px, 10vh, 120px);
}
.sub-hero--photo { min-height: min(94vh, 920px); }
.sub-hero--paper { min-height: 0; padding-top: calc(var(--hdr) + clamp(48px, 10vh, 112px)); padding-bottom: clamp(64px, 9vh, 104px); }
.sub-hero--paper:only-child { min-height: min(86vh, 840px); }
/* Rechtsseiten: Platz für die Papierkante unter Anschrift und Kontakt */
.sub .legal-hero { padding-bottom: clamp(56px, 8vh, 88px); }
.sub-hero__copy { position: relative; z-index: 2; max-width: 52rem; }
.sub-hero__aside { position: relative; z-index: 2; margin-top: 2rem; }
.sub-hero__aside .sub-figure { margin-left: auto; }
@media (min-width: 901px) {
  .sub-hero--paper.has-aside { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 1fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: end; align-content: end; }
}

/* Überschrift: Plakatschrift, die zweite Zeile als Stimme in Rot.
   Zeilenabstand nicht unter .96: sonst stoßen die Punkte von Ä, Ö, Ü an die Zeile darüber. */
.sub .sub-hero .title {
  margin: 0 0 28px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--h1);
  line-height: .96;
  letter-spacing: -.004em;
  text-transform: uppercase;
  text-wrap: balance;
  hyphens: manual;
}
.sub .sub-hero--photo .title, .sub .sub-hero.has-aside .title { font-size: var(--h1-photo); }
.sub .sub-hero .title > span { display: block; }
.sub .sub-hero .title > span:last-child:not(:first-child) {
  margin-top: .14em;
  font-family: var(--f-voice);
  font-weight: 400;
  font-style: italic;
  font-size: .56em;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--red);
}
.sub-hero .lead { max-width: 36rem; color: var(--ink-2); }
.sub-hero .actions { margin-top: 30px; }
.sub-hero .note { max-width: 40rem; }

/* Riesiges Hohlwort im Hintergrund, wie bei den Kapiteln der Startseite */
.sub-hero[data-word]::after {
  content: attr(data-word);
  content: attr(data-word) / "";
  position: absolute;
  left: -.04em;
  bottom: -.13em;
  z-index: -1;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(120px, 24vw, 470px);
  line-height: .8;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 231, 218, .1);
  pointer-events: none;
  user-select: none;
}
/* Papierkanten: gerissenes Papier in der Farbe der angrenzenden Fläche */
.sub-hero::before, .sub-cta::before, .sub-cta::after, .sub main::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 26px;
  background: var(--tear-paper);
  -webkit-mask: url(img/kante.svg) repeat-x 0 0 / 1400px 26px;
  mask: url(img/kante.svg) repeat-x 0 0 / 1400px 26px;
  pointer-events: none;
}
/* Der Inhalt beginnt wie auf der Startseite mit gerissenem Papier */
.sub-hero::before { bottom: -1px; z-index: 3; }
.sub-hero:has(+ .sub-section--mist)::before { background: var(--tear-mist); }
.sub-hero:last-child::before, .sub-hero:has(+ :is(.sub-cta, .is-dark))::before { display: none; }
/* Unsichtbare Nachzügler (z. B. das versteckte Formular für Netlify) zählen nicht */
.sub-hero:nth-last-child(1 of :not([hidden], script, template))::before { display: none; }

/* Bild im Kopf: Filmstill in Schwarzweiß, weich in die Tusche auslaufend. Nie
   höher als der erste Bildschirm, damit Bild und KI-Zeichen ohne Scrollen
   ganz zu sehen sind; darunter läuft der Kopf auf Papier aus. */
.sub-hero__media {
  position: absolute;
  inset: 0 0 auto 40%;
  height: 100%;
  height: min(100%, 100svh);
  z-index: 0;
  margin: 0;
}
.sub-hero__media img {
  --mx0: 30%;
  --mx1: 96%;
  --my0: 18%;
  --my1: 78%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  filter: grayscale(1) contrast(1.16) brightness(.74);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 var(--mx0), #000 var(--mx1), transparent 100%), linear-gradient(180deg, transparent 0%, #000 var(--my0), #000 var(--my1), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 var(--mx0), #000 var(--mx1), transparent 100%), linear-gradient(180deg, transparent 0%, #000 var(--my0), #000 var(--my1), transparent 100%);
  mask-composite: intersect;
}
.sub-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 62%, transparent) 20%, transparent 46%);
  pointer-events: none;
}
.sub-hero__media.is-focus-left img { object-position: 30% 50%; }
.sub-hero__media.is-focus-right img { object-position: 78% 50%; }
.sub-hero--photo .sub-hero__copy { max-width: min(40rem, 50%); }
@media (min-width: 761px) and (max-width: 1000px) {
  .sub-hero--photo .sub-hero__media { left: 44%; }
  .sub-hero--photo .sub-hero__copy { max-width: min(30rem, 54%); }
}

/* KI-Kennzeichnung: rundes Zeichen „KI“ direkt im Bild. Der Wortlaut
   „Illustrative KI-Darstellung“ steht für Screenreader in der Bildzeile und
   ausgeschrieben im Fuß der Seite. */
.ai-note { position: absolute; right: var(--ai-r, 12px); bottom: var(--ai-b, 12px); z-index: 2; margin: 0; line-height: 0; opacity: .72; }
.ai-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  text-indent: .04em;
  text-transform: uppercase;
}
.ftr__ai { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.ftr__ai .ai-mark { width: 24px; height: 24px; font-size: 9px; letter-spacing: .04em; --paper: #0d0c0b; --ink: #eee7da; }
.ftr__ai a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .3em; }

/* Auftritt des Kopfes */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.calm) .sub-hero .kicker { animation: sub-fade .9s var(--ease-out) .05s backwards; }
  html.js:not(.calm) .sub-hero .title > * , html.js:not(.calm) .sub-hero .title:not(:has(> *)) { animation: sub-rise 1.15s var(--ease-out) .1s backwards; }
  html.js:not(.calm) .sub-hero .title > :nth-child(2) { animation-delay: .24s; }
  html.js:not(.calm) .sub-hero .title > :nth-child(3) { animation-delay: .34s; }
  html.js:not(.calm) .sub-hero__copy > :not(.kicker):not(.title) { animation: sub-fade 1s var(--ease-out) .5s backwards; }
  html.js:not(.calm) .sub-hero__media { animation: sub-still 1.8s var(--ease-out) backwards; }
}
@keyframes sub-rise { from { clip-path: inset(100% 0 0 0); transform: translateY(32%); } to { clip-path: inset(-10% 0 -10% 0); transform: none; } }
@keyframes sub-fade { from { opacity: 0; transform: translateY(16px); } }
@keyframes sub-still { from { opacity: 0; transform: scale(1.04); } }

/* ---------- Abschnitte auf Papier ---------- */
.sub-section {
  position: relative;
  padding: clamp(72px, 12vh, 136px) var(--sub-inline);
  background: var(--sub-bg);
}
.sub-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--sub-inline);
  right: var(--sub-inline);
  height: 1px;
  background: var(--line);
}
.sub-hero + .sub-section::before, .sub-section--flush::before, .sub-section--mist::before, .sub-section--mist + .sub-section::before { display: none; }
.sub-section--mist { --sub-bg: var(--mist); }
.sub-section__head { max-width: 52rem; margin-bottom: clamp(32px, 5vh, 52px); }
.sub-section__head .lead:last-child { margin-bottom: 0; }
.sub-section > * + .sub-section__head { margin-top: clamp(56px, 9vh, 88px); }
.sub-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
@media (max-width: 900px) { .sub-split { grid-template-columns: 1fr; } }

.sub-prose { max-width: var(--measure); color: var(--ink-2); }
.sub-prose > * + * { margin-top: 1em; }
.sub-prose h3 { margin: 2.2rem 0 0; font-family: var(--f-voice); font-size: clamp(24px, 2vw, 30px); font-weight: 400; line-height: 1.15; color: var(--ink); }
.sub-prose h3 + * { margin-top: .6rem; }
.sub-prose ul { display: grid; gap: .5rem; margin: 1em 0 0; padding: 0; list-style: none; }
.sub-prose ul li { display: flex; align-items: baseline; gap: .8rem; }
.sub-prose ul li::before { flex: none; width: 1rem; height: 1px; background: var(--red); content: ''; transform: translateY(-.32em); }
.sub-prose ol { padding-left: 1.4rem; }
.sub-prose ol li::marker { color: var(--red); font-family: var(--f-mono); font-size: .86em; }
.sub-prose strong { color: var(--ink); font-weight: 600; }
.sub-prose a, .sub-notice a, .sub-faq__a a, .sub-form a, .sub-aside a:not(.btn):not(.button), .sub .sensitive-note a {
  color: var(--red);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

/* Zeitachse: nummerierte Reihen an einer feinen Linie */
.sub-timeline { position: relative; max-width: 62rem; }
.sub-timeline::before { content: ''; position: absolute; left: 1.6rem; top: 1.6rem; bottom: 1.6rem; width: 1px; background: var(--line); }
.sub-rows { position: relative; display: grid; gap: clamp(30px, 4.4vh, 48px); max-width: 62rem; margin: 0; padding: 0; list-style: none; counter-reset: row; }
.sub-row { position: relative; z-index: 1; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: clamp(16px, 2.4vw, 30px); counter-increment: row; }
.sub-row__n {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 50%;
  background: var(--sub-bg);
  color: var(--red);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.sub-row__n::before { content: counter(row, decimal-leading-zero); }
/* Reihen ohne echte Reihenfolge (Fragen, Impulse, Zeitplan mit Uhrzeiten): kleines Siegelquadrat statt Nummer */
.sub-rows--plain .sub-row__n { border-color: transparent; background: transparent; }
.sub-rows--plain .sub-row__n::before { content: ''; width: 9px; height: 9px; background: var(--red); box-shadow: 0 0 0 6px var(--sub-bg); transform: rotate(9deg); }
.sub-row__body { max-width: var(--measure); padding-top: .5rem; }
.sub-row__body > * + * { margin-top: .7rem; }
.sub-row__title { margin: 0; font-family: var(--f-voice); font-size: clamp(25px, 2.3vw, 34px); font-weight: 400; line-height: 1.1; letter-spacing: -.005em; }
/* Kurze Reihen in Listen: Grotesk statt Stimme, damit kleine Titel lesbar bleiben */
.care-chain .sub-row__title, .price-steps .sub-row__title, .nl-steps .sub-row__title { font-family: var(--f-body); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.sub-row__text { color: var(--ink-2); }

/* Hinweise und Randnotizen */
.sub-notice, .sub .sensitive-note, .sub .contact-form__status {
  max-width: var(--measure);
  margin: 0;
  padding: 18px 22px 19px;
  border-left: 2px solid var(--red);
  border-radius: 0;
  background: var(--mist);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
.sub-notice > * + * { margin-top: .5rem; }
.sub-notice strong, .sub .sensitive-note strong { font-weight: 600; }
.sub-section--mist .sub-notice, .sub-section--mist .sensitive-note { background: var(--paper); }
.sub-notice--alert, .sub-section--mist .sub-notice--alert { background: color-mix(in srgb, var(--red) 10%, var(--paper)); }
* + .sub-notice, * + .sensitive-note { margin-top: 1.4rem; }
.sub-form form > .sub-notice, .sub-form form > .sensitive-note { margin-top: 0; }
.sub .contact-form__status[data-state="pending"] { border-left-color: var(--muted); }
.sub .contact-form__status[data-state="warning"], .sub .contact-form__status[data-state="error"] { background: color-mix(in srgb, var(--red) 10%, var(--paper)); }
.sub .contact-form__status[data-state="success"] { border-left-color: #3d6e50; background: color-mix(in srgb, #3d6e50 12%, var(--paper)); }

.sub-aside { max-width: 40rem; padding: 22px 0 0; border-top: 1px solid var(--ink); }
.sub-aside > * + * { margin-top: .8rem; }
.sub-aside h2, .sub-aside h3 { margin: 0; font-family: var(--f-voice); font-size: clamp(26px, 2.2vw, 32px); font-weight: 400; line-height: 1.12; }
.sub-aside .kicker { margin-bottom: .4rem; }

.sub-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); max-width: 46rem; margin: 0; border-top: 1px solid var(--ink); }
.sub-facts dt, .sub-facts dd { margin: 0; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.sub-facts dt { padding-top: 1.1rem; padding-right: 1.8rem; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sub-facts dd { font-weight: 500; }

/* Häufige Fragen wie auf der Startseite */
.sub-faq { max-width: 56rem; border-top: 1px solid var(--ink); }
.sub-faq details { border-bottom: 1px solid var(--line); }
.sub-faq summary {
  position: relative;
  padding: 20px 46px 20px 0;
  font-family: var(--f-voice);
  font-size: clamp(21px, 1.75vw, 28px);
  font-weight: 400;
  line-height: 1.22;
  list-style: none;
  cursor: pointer;
  transition: color .3s;
}
.sub-faq summary::-webkit-details-marker { display: none; }
.sub-faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .45s var(--ease-out);
}
.sub-faq details[open] > summary::after { transform: translateY(6px) rotate(-135deg); }
.sub-faq summary:hover { color: var(--red); }
.sub-faq__a { max-width: var(--measure); padding: 0 0 26px; color: var(--ink-2); }
.sub-faq__a > * + * { margin-top: .7rem; }

/* Tabellen */
.sub-table { max-width: 100%; margin: 1.6rem 0; overflow-x: auto; }
.sub-table table, .sub-prose table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.sub-table caption, .sub-prose caption { padding-bottom: .8rem; color: var(--muted); font-size: 15px; text-align: left; caption-side: top; }
.sub-table th, .sub-table td, .sub-prose th, .sub-prose td { padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sub-table thead th, .sub-prose thead th { border-bottom: 1px solid var(--ink); font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sub-table tbody th, .sub-prose tbody th { font-weight: 600; }
.sub-table .num, .sub-prose .num { padding-right: 0; text-align: right; white-space: nowrap; }
.sub-table tfoot td, .sub-prose tfoot td { color: var(--muted); font-size: 14.5px; }
.sub-table--wide table { min-width: 36rem; }

/* ---------- Formulare ---------- */
.sub-form { position: relative; max-width: 50rem; }
.sub-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 22px; }
.sub-form form > .field--wide, .sub-form form > .sensitive-note, .sub-form form > .sub-notice,
.sub-form form > details, .sub-form form > .consent, .sub-form form > [role="status"],
.sub-form form > .sub-frame, .sub-form form > [type="submit"] { grid-column: 1 / -1; }
.sub .bot-field { display: none; }
.sub-form .field { display: grid; gap: 8px; align-content: start; font-weight: 500; }
.sub-form .field > span:first-child, .sub-form .field__label { font-size: 15px; font-weight: 600; }
.sub-form .field small { color: var(--ink-2); font-size: 14.5px; font-weight: 400; line-height: 1.5; }
.sub-form .field > span small { margin-left: .4rem; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sub-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, #fff 42%, var(--paper));
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  transition: border-color .2s, background-color .2s;
}
.sub-form textarea { min-height: 9rem; line-height: 1.5; resize: vertical; }
.sub-form select {
  padding-right: 2.8rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23141210' stroke-width='1.6' stroke-linecap='square'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  -webkit-appearance: none;
  appearance: none;
}
.sub-form :where(input, select, textarea):hover { border-color: var(--ink); }
.sub-form :where(input, select, textarea):user-invalid,
.sub-form :where(input, select, textarea)[aria-invalid="true"] { border-color: var(--red); background-color: color-mix(in srgb, var(--red) 6%, var(--paper)); }
.sub-form :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-color: var(--ink); border-radius: 4px; }
.sub-form .field__error { color: var(--red); font-size: 14px; font-weight: 600; }
.sub-form form > .field__error, .sub-form details > div > .field__error { grid-column: 1 / -1; margin-top: -.85rem; }
.sub-form .field__error::before { content: "! "; content: "! " / ""; }
.sub-form :where(input, select, textarea):user-invalid:focus-visible,
.sub-form :where(input, select, textarea)[aria-invalid="true"]:focus-visible { outline-color: var(--ink); }
.sub-form .consent { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.sub-form .consent input { flex: none; width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--red); cursor: pointer; }
.sub-form .consent input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sub-form .consent small { margin-left: .4rem; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sub-form form > .consent-note { margin: -.7rem 0 0; padding-left: 34px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.sub-form form > .form-legend { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sub-form .req { color: var(--red); font-weight: 600; }
.sub-form form > .consent--newsletter { margin-top: .4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.sub-form details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sub-form details > summary { position: relative; padding: 16px 40px 16px 0; font-weight: 600; list-style: none; cursor: pointer; }
.sub-form details > summary::-webkit-details-marker { display: none; }
.sub-form details > summary::after { position: absolute; right: .3rem; top: 50%; color: var(--red); font-size: 1.4rem; font-weight: 300; line-height: 1; content: "+"; content: "+" / ""; transform: translateY(-50%); }
.sub-form details[open] > summary::after { content: "–"; content: "–" / ""; }
.sub-form details > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.4rem; padding: .4rem 0 1.4rem; }
.sub-form details > div > .field--wide { grid-column: 1 / -1; }
.sub-form [type="submit"] { justify-self: start; }

/* ---------- Rahmen, Abschluss, Bilder ---------- */
.sub-frame { position: relative; display: flex; justify-content: center; padding: 14px 0; }
.sub-frame--start { justify-content: flex-start; }
.sub-frame > [data-frame-target] { position: relative; z-index: 1; }
/* Der gezeichnete Rahmen um den Knopf entfällt, also auch sein seitlicher Platz */
.sub main .sub-frame { padding-inline: 0; margin-inline: 0; }

/* Abschluss: wieder dunkel, mit Siegel */
.sub-cta {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(110px, 18vh, 200px) var(--sub-inline);
  background: var(--paper);
  text-align: center;
}
.sub-cta::before { top: -1px; z-index: 1; transform: scale(-1, -1); }
.sub-cta::after { bottom: -1px; z-index: 1; }
.sub-section--mist + .sub-cta::before { background: var(--tear-mist); }
.sub-cta:has(+ .sub-section--mist)::after { background: var(--tear-mist); }
.sub-cta:last-child::after, .sub-hero + .sub-cta::before { display: none; }
.sub-cta:nth-last-child(1 of :not([hidden], script, template))::after { display: none; }
.sub-cta__inner { position: relative; z-index: 2; display: grid; justify-items: center; max-width: 54rem; margin: 0 auto; }
.sub-cta__inner > .sub-media:first-child { order: -1; }
.sub-cta__inner::before {
  content: '';
  width: clamp(64px, 6vw, 88px);
  aspect-ratio: 1;
  margin-bottom: 30px;
  background: url(img/siegel.svg) center / contain no-repeat;
  transform: rotate(-6deg);
}
.sub .sub-cta .title { font-family: var(--f-display); font-weight: 900; line-height: .96; letter-spacing: -.004em; text-transform: uppercase; }
.sub-cta .title { font-size: clamp(42px, 5vw, 88px); }
.sub-cta .lead, .sub-cta .note { margin-inline: auto; }
.sub-cta .lead { color: var(--ink-2); }
.sub-cta .sub-frame { justify-self: stretch; margin: .8rem 0 .4rem; }

.sub-media { position: relative; margin: 0 calc(var(--sub-inline) * -1) 0 0; }
.sub-media img {
  --mx0: 20%;
  --mx1: 84%;
  --my0: 18%;
  --my1: 76%;
  --mdir: 90deg;
  width: 100%;
  -webkit-mask-image: linear-gradient(var(--mdir), transparent 0%, #000 var(--mx0), #000 var(--mx1), transparent 100%), linear-gradient(180deg, transparent 0%, #000 var(--my0), #000 var(--my1), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(var(--mdir), transparent 0%, #000 var(--mx0), #000 var(--mx1), transparent 100%), linear-gradient(180deg, transparent 0%, #000 var(--my0), #000 var(--my1), transparent 100%);
  mask-composite: intersect;
}
.sub-media--left { margin: 0 0 0 calc(var(--sub-inline) * -1); }
.sub-media--left img { --mdir: 270deg; }
/* Lage des KI-Zeichens (Fabian 29. 10. 2026): immer dezent in der Ecke unten
   rechts. Abstand vom Rand des Bildes; bei auslaufenden Bildern so weit innen,
   dass es noch auf dem sichtbaren Bild sitzt. */
.sub-hero__media { --ai-r: calc(var(--gutter) + 4px); --ai-b: 38px; }
.sub-media { --ai-r: 9%; --ai-b: 12%; }

/* Bilder auf Papier: wie gedruckt, in Schwarzweiß und ins Papier gemischt */
.sub main img:not([src$=".svg"]) { filter: grayscale(1) contrast(1.06); }
.sub main :is(.sub-section, .sub-hero--paper) img:not([src$=".svg"]) { mix-blend-mode: multiply; }
.sub .sub-hero__media img { mix-blend-mode: normal; }

.sub-portrait { width: min(240px, 60vw); margin: 0; overflow: hidden; border-radius: 0; aspect-ratio: 4 / 5; }
.sub-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.sub-frame--portrait { padding: 26px 0; }

.sub-figure { width: clamp(180px, 24vw, 300px); height: auto; }
.sub-motifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.4rem 2rem; align-items: end; }
.sub-motif { display: grid; justify-items: center; gap: .6rem; margin: 0; text-align: center; }
.sub-motif .sub-figure { width: auto; max-width: 100%; height: 110px; }

/* ---------- Finanzbildung und Webinar-Rückblick ---------- */
/* Drei kurze Sätze als Stimme statt als Aufzählung */
.steps--voice { margin: 0; }
/* Themenliste ohne Nummern: Die Haarlinie darüber gliedert schon */
.steps--plain li { display: block; }
.steps--plain li::before { content: none; }
.steps--voice h3 { font-family: var(--f-voice); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; }
/* Uhrzeit über dem Programmpunkt */
.sub-row__label { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* Porträt neben einem kurzen Satz */
.sub-person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 60rem; }
.sub-person .sub-portrait { width: clamp(150px, 16vw, 220px); }
.sub-person .lead { margin-bottom: 0; }
/* Anmeldestatus auf der Filmszene; Inhalt kommt teils vom Anmeldeskript */
.wb-card { display: grid; justify-items: center; gap: 12px; width: min(100%, 38rem); margin: 1.4rem auto 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); text-align: center; }
.wb-card h3 { margin: 0; font-family: var(--f-voice); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; text-wrap: balance; }
.wb-card p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.wb-card__meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wb-card__actions { justify-content: center; margin-top: 8px; }
.wb-message:empty { display: none; }
.wb-message { margin: 1rem auto 0; color: var(--ink-2); }
.wb-message.is-error { color: var(--red-deep); }
.sub-cta .wb-card + .wb-message + .note { margin-top: 1.4rem; }
.fin-paths { display: grid; gap: clamp(24px, 3vh, 36px); }
@media (max-width: 760px) {
  .sub-person { grid-template-columns: 1fr; justify-items: start; }
}

/* Papierkante zum Fuß, wenn die Seite auf Papier endet */
.sub main::after { bottom: -25px; transform: scale(-1, -1); }
.sub main:has(> .sub-section--mist:last-child)::after { background: var(--tear-mist); }
.sub main:has(> .sub-section--mist:nth-last-child(1 of :not([hidden], script, template)))::after { background: var(--tear-mist); }
.sub main:has(> :is(.sub-cta, .sub-hero, .is-dark):last-child)::after { display: none; }
.sub main:has(> :is(.sub-cta, .sub-hero, .is-dark):nth-last-child(1 of :not([hidden], script, template)))::after { display: none; }
.sub .ftr { z-index: 3; }

/* ---------- Einblenden beim Scrollen (sub.js setzt sub-ready) ---------- */
html.sub-ready:not(.calm) [data-reveal] { transition: opacity .9s ease, transform 1.1s var(--ease-out); }
html.sub-ready:not(.calm) [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 22px, 0); }

/* ---------- Filme: Knopf im neuen Stil ---------- */
.sub .film-btn {
  gap: 12px;
  min-height: 48px;
  padding: 5px 20px 5px 5px;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  background: transparent;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sub .film-btn:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.sub .film-btn__icon { width: 36px; height: 36px; background: var(--red); box-shadow: none; }
.sub .film-btn__icon::before { background: var(--paper); }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 760px) {
  .sub-hero { min-height: 0; padding-top: calc(var(--hdr) + 48px); padding-bottom: 72px; }
  .sub-hero--photo { min-height: 0; padding-top: var(--hdr); }
  .sub-hero__media { position: relative; inset: auto; order: -1; height: min(44vh, 360px); margin: 0 calc(var(--gutter) * -1) 28px; }
  .sub-hero__media img { --mx0: 0%; --mx1: 100%; --my0: 14%; --my1: 62%; }
  .sub-hero__media::after { display: none; }
  .sub-hero--photo .sub-hero__copy { max-width: none; }
  .sub-hero .lead { font-size: 17px; line-height: 1.55; }
  .sub-hero--paper.has-aside { display: flex; flex-direction: column; }
  .sub-media, .sub-media--left { margin-inline: calc(var(--gutter) * -1); }
  .sub-media--left img { --mdir: 90deg; }
  /* KI-Zeichen: unten rechts im sichtbaren Teil des Handy-Ausschnitts */
  .sub-hero__media { --ai-r: calc(var(--gutter) + 4px); --ai-b: 40%; }
  .sub-row { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .sub-row__n { width: 2.6rem; height: 2.6rem; font-size: 11px; }
  .sub-row__body { padding-top: .3rem; }
  .sub-timeline::before { left: 1.3rem; }
  .sub-facts { grid-template-columns: 1fr; }
  .sub-facts dt { padding-bottom: 0; border-bottom: 0; }
  .sub-facts dd { padding-top: .25rem; }
  .sub-form form, .sub-form details > div { grid-template-columns: 1fr; }
  .btn:not(.btn--text) { min-height: 50px; padding: 0 22px; }
  .btn.btn--xl { min-height: 56px; padding: 0 28px; font-size: 16px; }
}

/* ==========================================================================
   Feinschliff: Seitenlayouts aus „Der rote Faden“ in Tusche übersetzen.
   Die Regeln tragen .sub vorn, damit sie die später geladenen Seiten-
   Stylesheets (assets/rf/sub-*.css) bei Schrift und Farbe übersteuern;
   Anordnung und Abstände bleiben bei den Seiten.
   ========================================================================== */
/* Große Zwischentitel in der Stimme statt fetter Grotesk */
.sub :is(.person-offer__title, .person-cta h3, .person-project h3) { font-family: var(--f-voice); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; }
.sub .person-offer__title { font-size: clamp(34px, 3.4vw, 52px); }
.sub .person-cta h3 { font-size: clamp(32px, 3.2vw, 48px); }
.sub .person-project h3 { font-size: clamp(28px, 2.5vw, 38px); }
.sub .legal-text > h2 { font-family: var(--f-voice); font-weight: 400; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -.01em; }
/* Zahlen und Leitworte wie auf Plakaten */
.sub :is(.price-sum__value, .price-zones__value) { font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, min(5.6vw, 10vh), 84px); line-height: .9; letter-spacing: 0; }
.sub .ki-principles span { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, min(5.4vw, 9vh), 76px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
/* Newsletter-Knopf wie alle Knöpfe */
.sub .nl-form .newsletter-form__submit { background: var(--red); color: var(--paper); font-size: 15px; font-weight: 500; box-shadow: none; }
.sub .nl-form .newsletter-form__submit::after { content: none; }
.sub .nl-form .newsletter-form__submit:hover:not(:disabled) { background: var(--ink); }

/* ---------- Druck ---------- */
@media print {
  .hdr, .menu, .grain, .skip { display: none !important; }
  .sub main, .sub .sub-hero, .sub .sub-cta { --ink: #000; --ink-2: #222; --muted: #444; --paper: #fff; --red: #8f1f10; background: #fff; color: #000; }
  .sub-hero { min-height: 0; padding-top: 1rem; }
  .sub-hero::before, .sub-hero::after, .sub-hero__media::after, .sub-cta::before, .sub-cta::after, .sub main::after, .sub-cta__inner::before { display: none !important; }
  .sub-hero__media { position: relative; inset: auto; height: 7cm; }
  .sub-hero--photo .sub-hero__copy { max-width: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .sub-section, .sub-row, .sub-notice, .sub-faq details, .sub-aside, tr { break-inside: avoid; }
  .sub-prose a[href^="http"]::after { color: #444; font-size: .85em; content: " (" attr(href) ")"; }
  .ftr { background: none; color: #000; }
}
