/* HeRo Solutions, Unterseiten der Fassung hero-v3 (15.11.2026).
   Gemeinsame Grundlage: Tokens, Navigation, Knöpfe, Seitenkopf, Rechtstext, Sektionen, Fußbereich.
   Formensprache wie hero-v3: Interaktives = Pille (999px), Karten 32px, Sektionen 40px, warmer Grund #F4F2EE,
   weiches Blau-Anthrazit statt Schwarz, DM Sans 330 in großen Größen, Bewegung cubic-bezier(0.22, 1, 0.36, 1). */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-normal-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --hero-blue: #00418A; --hero-blue-deep: #002C61; --hero-blue-bright: #1F6FD0; --hero-blue-tint: #E6EEF8;
  --bg: #F4F2EE; --surface: #FFFFFF; --ink: #1D2330; --muted: #5B6372; --line: #E6E1D9; --anthrazit: #25272B;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--hero-blue-bright); outline-offset: 3px; border-radius: 999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--hero-blue); color: #fff; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Navigation: schwebende Pille, mittig, passt sich dem Inhalt an */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 16px clamp(12px, 2.5vw, 40px) 0; }
.nav__in { width: max-content; max-width: 100%; margin: 0 auto; min-height: 64px; padding: 10px 10px 10px 28px; display: flex; align-items: center; gap: 36px; background: var(--surface); border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(29, 35, 48, .28); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { display: block; height: 34px; width: auto; }
.links { display: flex; gap: 32px; font-size: 1rem; }
.links a { text-decoration: none; color: var(--ink); padding: 12px 0; }
.links a:hover, .links a[aria-current] { color: var(--hero-blue); }
.nav .btn { margin-left: 12px; }
.menu-btn { display: none; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--hero-blue-tint); color: var(--hero-blue-deep); cursor: pointer; transition: filter .25s var(--ease); }
.menu-btn:hover { filter: brightness(.96); }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.panel { position: absolute; left: clamp(12px, 2.5vw, 40px); right: clamp(12px, 2.5vw, 40px); top: 88px; background: var(--surface); border-radius: 28px; padding: 10px; display: grid; box-shadow: 0 16px 40px -10px rgba(29, 35, 48, .16); }
.panel[hidden] { display: none; }
.panel a { padding: 16px 20px; border-radius: 18px; text-decoration: none; font-size: 1.125rem; }
.panel a:hover { background: var(--bg); }
@media (min-width: 861px) { .panel { display: none; } }
@media (max-width: 860px) { .links { display: none; } .menu-btn { display: grid; } .nav__in { gap: 12px; } }
@media (max-width: 480px) { .nav { padding-top: 12px; } .nav__in { min-height: 56px; padding: 8px 6px 8px 20px; } .panel { top: 76px; } .nav .btn--small { padding: 0 1.1rem; min-height: 40px; } .menu-btn { width: 40px; height: 40px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: 0 1.75rem; border-radius: 999px; background: var(--hero-blue); color: #fff; font: inherit; font-weight: 500; font-size: 1.125rem; text-decoration: none; border: 0; cursor: pointer; transition: filter .25s var(--ease), box-shadow .35s var(--ease); }
.btn:hover { filter: brightness(1.18); box-shadow: 0 12px 28px -10px rgba(29, 35, 48, .38); }
.btn:active { filter: brightness(.9); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--small { min-height: 44px; padding: 0 1.4rem; font-size: 1rem; }
.btn--line { background: transparent; color: var(--hero-blue); box-shadow: inset 0 0 0 1.5px var(--hero-blue); }
.btn--line:hover { background: var(--hero-blue-tint); filter: none; box-shadow: inset 0 0 0 1.5px var(--hero-blue); }
.btn--white { background: #fff; color: var(--hero-blue-deep); }
.btn--white:hover { filter: brightness(.95); box-shadow: none; }

/* Seiten-Layout */
.wrap { max-width: 1360px; margin: 0 auto; padding-inline: clamp(16px, 2.5vw, 40px); }
.pg-head { padding-top: clamp(120px, 17vh, 176px); padding-bottom: clamp(32px, 5vw, 64px); }
.pg-title { margin: 0; font-weight: 330; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; }
.pg-lead { margin: 20px 0 0; max-width: 40ch; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.4; color: var(--muted); }
.pg-stand { margin: 16px 0 0; font-size: .9375rem; color: var(--muted); }
.sec-title { margin: 0; font-weight: 330; font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.06; letter-spacing: -0.03em; }
.sec-lead { margin: 16px 0 0; max-width: 46ch; font-size: 1.125rem; line-height: 1.45; color: var(--muted); }
.sec { padding-block: clamp(56px, 9vw, 120px); }
.sec--white { background: var(--surface); border-radius: 40px; }
.sec--tint { background: var(--hero-blue-tint); border-radius: 40px; }
.sec--dark { background: var(--anthrazit); color: #fff; border-radius: 40px; }
.sec--dark .sec-lead { color: rgba(255, 255, 255, .72); }
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.split--rev { grid-template-columns: 5fr 7fr; }
.card { padding: clamp(22px, 2.6vw, 36px); border-radius: 32px; background: var(--surface); }
.card--bg { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.checks svg { flex-shrink: 0; margin-top: 3px; color: var(--hero-blue); }
.ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--hero-blue-tint); color: var(--hero-blue); }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: 1fr; } }

/* Wort-Maske für Überschriften (Skript v3.js), nur ohne reduzierte Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
  .w > span { display: inline-block; transform: translateY(112%); }
  .in-view .w > span, .w.in-view > span { animation: rise .9s var(--ease) calc(var(--wi) * 70ms + 120ms) both; }
  .rv { opacity: 0; transform: translateY(18px); }
  .rv.in-view { animation: fade .9s var(--ease) both; animation-delay: var(--d, 0s); }
}
@keyframes rise { from { transform: translateY(112%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Rechtstext: Gliederung links, Text in Lesebreite rechts */
.legal { padding-bottom: clamp(72px, 9vw, 130px); }
.doc { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
.doc-toc { position: sticky; top: 112px; padding: clamp(20px, 2vw, 28px); border-radius: 28px; background: var(--surface); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-toc li { margin: 0; }
.doc-toc a { display: flex; gap: 12px; padding: 8px 10px; border-radius: 14px; text-decoration: none; font-size: .9375rem; line-height: 1.35; color: var(--muted); transition: background .2s var(--ease), color .2s var(--ease); }
.doc-toc a:hover { background: var(--bg); color: var(--ink); }
.doc-body { max-width: 70ch; }
.doc-body h2 { margin: 2.4em 0 .6em; font-weight: 500; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; scroll-margin-top: 112px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin: 1.8em 0 .5em; font-weight: 500; font-size: 1.125rem; scroll-margin-top: 112px; }
.doc-body p, .doc-body li { color: #3A4150; }
.doc-body p { margin: 0 0 1em; }
.doc-body ul, .doc-body ol { margin: 0 0 1em; padding-left: 1.3em; }
.doc-body li { margin-bottom: .4em; }
.doc-body a { color: var(--hero-blue); text-underline-offset: 3px; }
.doc-body a:hover { color: var(--hero-blue-deep); }
.doc-body strong { font-weight: 500; color: var(--ink); }
.doc-body .doc-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .doc-toc { position: static; } }

/* Fußbereich: tiefes Markenblau, oben rund */
.site-foot { margin-top: clamp(56px, 8vw, 110px); background: var(--hero-blue-deep); color: #fff; border-radius: 40px 40px 0 0; overflow: hidden; }
.site-foot :focus-visible { outline-color: #fff; }
.foot__in { max-width: 1400px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(20px, 3vw, 48px) 32px; display: grid; gap: clamp(32px, 5vw, 64px); }
.foot__ask { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; }
.foot__ask h2 { margin: 0; font-weight: 330; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; }
.foot__ask p { margin: 12px 0 0; max-width: 34ch; font-size: 1.125rem; color: rgba(255, 255, 255, .78); }
.foot__links { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18); }
.foot__links div { display: grid; align-content: start; gap: 4px; }
.foot__links .foot__h { margin: 0 0 8px; font-weight: 500; font-size: 1rem; color: rgba(255, 255, 255, .6); }
.foot__links a { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; color: #fff; text-decoration: none; font-size: 1.0625rem; transition: opacity .2s var(--ease); }
.foot__links a:hover { opacity: .72; }
.foot__brand img { display: block; height: 34px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.foot__brand address { font-style: normal; font-size: .9375rem; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.foot__slogan { margin: 0; font-weight: 330; font-size: clamp(2rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -0.035em; color: rgba(255, 255, 255, .5); }
.foot__legal { margin: 0; font-size: .9375rem; color: rgba(255, 255, 255, .62); }
@media (max-width: 800px) { .foot__links { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* AGB: nummerierte Absätze */
.doc-body .abs { position: relative; padding-left: 2.25em; }
.doc-body .abs-n { position: absolute; left: 0; font-variant-numeric: tabular-nums; color: var(--ink); }

.legal .pg-title { font-size: clamp(1.75rem, 4.6vw, 4.25rem); overflow-wrap: anywhere; hyphens: auto; }
/* Stapel (27.11.2026): Logik und Begründung in v3.js. Nur Desktop, die Klassen setzt das Skript. */
@media (min-width: 801px) {
  html.stk-on .site-foot { margin-top: -40px; }   /* Footer greift über die letzte Fläche, sonst zeigen seine runden Ecken den dunklen Grund */
  .stk { position: sticky !important; }
  main > section.stk, main > section.stk-next { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
  main > section.stk:first-child { border-radius: 0 !important; }
  .stk-next { border-top-left-radius: 40px !important; border-top-right-radius: 40px !important; box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .45); }
  .stk::after { content: ""; position: absolute; inset: 0; z-index: 50; border-radius: inherit; background: #000; opacity: calc(var(--cover, 0) * .4); pointer-events: none; }
}
