/* ==========================================================================
   Fin2you UG (haftungsbeschränkt) – Witten
   Konzept „Kassenrolle“: Die Navigation ist ein Papierstreifen, der oben
   rechts von einer Rechenmaschinen-Rolle hängt. Jeder Abschnitt ist eine
   gedruckte Position; die aktive bekommt einen roten Haken, die Rolle läuft mit.
   Blöcke: Tokens → Basis → Komponenten → Kopf/Rolle → Abschnitte →
   Rechtstexte → Fuß (Bonende) → Einwilligung → Hilfsklassen → Bewegung → Druck
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plusjakartasans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plusjakartasans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourcesans3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/sourcesans3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Papier und Tinte */
  --page: #f1ece2;        /* Schreibtischunterlage */
  --paper: #fdfaf3;       /* Kassenrolle */
  --paper-edge: #e4dccb;
  --ink: #1e1d26;         /* Farbband schwarz */
  --muted: #55504a;       /* 6,6 : 1 auf --page */
  --red: #ad231b;         /* Farbband rot: 6,5 : 1 auf --paper, Weiß 6,7 : 1 */
  --red-deep: #8a1a14;
  /* Ruhrtal */
  --river: #2c5a70;       /* Weiß 7,3 : 1 */
  --river-deep: #1d3e4f;
  --moss: #46613a;
  --line: #cdc3b0;
  --white: #ffffff;

  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --step--1: clamp(0.88rem, 0.85rem + 0.12vw, 0.95rem);
  --step-0: clamp(1.06rem, 1.02rem + 0.2vw, 1.18rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.05rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.1vw, 3.3rem);

  --space-m: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-l: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --space-xl: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --radius: 6px;
  --shadow: 0 1px 0 rgba(30, 29, 38, 0.06), 0 10px 28px -14px rgba(30, 29, 38, 0.35);
  --gutter: clamp(16px, 4vw, 40px);
  --roll-space: 0px;      /* Platz für die Rolle rechts, ab 1180 px gesetzt */
  --zigzag: 9px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; }

a { color: var(--red); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }

img, svg { max-width: 100%; }
address { font-style: normal; }
code { font-size: 0.92em; overflow-wrap: anywhere; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: calc(1120px + var(--roll-space)); margin-inline: auto; padding-inline: var(--gutter) calc(var(--gutter) + var(--roll-space)); }
.nobr { white-space: nowrap; }

/* ---------- Komponenten ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.35em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--ink); background: var(--white); transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); box-shadow: 0 3px 0 var(--ink); }

/* Gedruckte Positionsüberschrift: „01 ········ Versicherung“ */
.pos {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.pos::after { content: ''; flex: 1; border-bottom: 2px dotted currentColor; transform: translateY(-0.25em); }
.pos-no { font-size: 1.5em; letter-spacing: 0.02em; }

/* Papierstreifen mit Abrisskante, für Belege und Kassenzettel */
.slip {
  position: relative;
  background: var(--paper);
  padding: var(--space-m);
  box-shadow: var(--shadow);
}
.slip-torn {
  --tear: var(--zigzag);
  margin-bottom: var(--tear);
}
.slip-torn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--tear) * -1);
  height: var(--tear);
  background: linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / calc(var(--tear) * 2) 100%,
              linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / calc(var(--tear) * 2) 100%;
  background-repeat: repeat-x;
}

.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-variant-numeric: tabular-nums;
}
.lines li:last-child { border-bottom: 0; }
.lines .amount { white-space: nowrap; font-weight: 600; text-align: right; }

.note {
  border-left: 4px solid var(--red);
  background: var(--paper);
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}
.note p:last-child { margin-bottom: 0; }

.ticklist { list-style: none; padding: 0; margin: 0 0 1em; }
.ticklist li { position: relative; padding-left: 1.7rem; margin-bottom: 0.45rem; }
.ticklist li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.4em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--red);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.crosslist { list-style: none; padding: 0; margin: 0 0 1em; }
.crosslist li { position: relative; padding-left: 1.7rem; margin-bottom: 0.45rem; }
.crosslist li::before,
.crosslist li::after {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.75em;
  width: 0.9rem;
  height: 2.5px;
  background: var(--muted);
  transform: rotate(45deg);
}
.crosslist li::after { transform: rotate(-45deg); }

/* ---------- Kopf und Kassenrolle ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--page); border-bottom: 1px solid var(--line); }
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(1120px + var(--roll-space));
  min-height: 64px;
  margin-inline: auto;
  padding: 8px calc(var(--gutter) + var(--roll-space)) 8px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand-word b span { color: var(--red); }
.brand-word small { margin-top: 3px; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; }

.bar-cta { min-height: 44px; padding: 0.5em 1em; font-size: 0.95rem; }

.roll-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 700 0.95rem var(--font-head);
  cursor: pointer;
}
.roll-toggle:hover { background: var(--white); }
.roll-toggle-icon {
  position: relative;
  width: 18px;
  height: 20px;
  border-top: 5px solid var(--ink);
  border-radius: 3px 3px 0 0;
}
.roll-toggle-icon::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(var(--ink) 0 2px, transparent 2px 5px);
  transition: transform 0.2s ease;
}
.roll-toggle[aria-expanded="true"] .roll-toggle-icon::after { transform: scaleY(0.4); transform-origin: top; }

/* Die Rolle selbst: Spule + Papier */
.roll { --feed: 0; }
.roll-spool {
  display: block;
  height: 30px;
  margin: 0 -10px;
  border-radius: 15px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 3px, transparent 3px 11px) calc(var(--feed) * 14px) 0 / auto,
    linear-gradient(#4a4752, #1e1d26 55%, #3a3842);
  box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.45);
  transition: background-position 0.5s ease;
}
.roll-paper {
  position: relative;
  margin-top: -8px;
  padding: 22px 16px 16px;
  background: var(--paper);
  border-inline: 1px solid var(--paper-edge);
  box-shadow: 0 14px 24px -16px rgba(30, 29, 38, 0.5);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  padding-top: calc(22px + var(--feed) * 4px);
  transition: padding-top 0.5s ease;
}
.roll-paper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--zigzag) * -1);
  height: var(--zigzag);
  background: linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / calc(var(--zigzag) * 2) 100%,
              linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / calc(var(--zigzag) * 2) 100%;
  background-repeat: repeat-x;
}
.roll-head {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}
.roll-lines { list-style: none; margin: 0; padding: 0; }
.roll-lines a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.roll-no { font-weight: 700; color: var(--red); }
.roll-name { flex: 1; display: flex; align-items: baseline; gap: 6px; font-weight: 600; }
.roll-name::after { content: ''; flex: 1; min-width: 12px; border-bottom: 2px dotted var(--line); }
.roll-tick {
  flex: none;
  width: 9px;
  height: 16px;
  margin: 0 5px 4px 3px;
  border: solid var(--red);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.roll-lines a:hover .roll-name { color: var(--red); }
.roll-lines a[aria-current] .roll-name { color: var(--red); }
.roll-lines a[aria-current] .roll-tick { transform: rotate(45deg) scale(1); }
.roll-sum {
  display: flex;
  flex-direction: column;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--ink);
  font-size: 0.9rem;
  text-align: center;
}
.roll-sum a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 700; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.roll-sum span { color: var(--muted); white-space: nowrap; }

/* Unter 1180 px: Die Rolle klappt als Bon unter dem Kopf auf */
@media (max-width: 1179.98px) {
  .roll {
    position: fixed;
    top: 72px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 0 10px 14px;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.35s ease, visibility 0s linear 0.35s;
  }
  .roll.is-open {
    visibility: visible;
    clip-path: inset(0 -20px -20px -20px);
    transition: clip-path 0.35s ease;
  }
  .roll-paper { padding-top: 22px; }
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 64px 0 0;
    z-index: 30;
    background: rgba(30, 29, 38, 0.35);
  }
}
@media (max-width: 419.98px) {
  .roll-toggle { padding: 0; justify-content: center; }
  .roll-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .brand-word small { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .bar { gap: 8px; }
}

/* Ab 1180 px hängt die Rolle fest oben rechts */
@media (min-width: 1180px) {
  :root { --roll-space: 250px; }
  .site-header { position: static; border-bottom: 0; background: transparent; }
  .roll-toggle { display: none; }
  .roll {
    position: fixed;
    top: 0;
    right: 26px;
    z-index: 45;
    width: 212px;
  }
  .roll-spool { border-radius: 0 0 15px 15px; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space-xl); }
.section-intro { max-width: 46rem; }
.lead { font-size: var(--step-1); line-height: 1.5; }

/* Hero */
.hero { padding-block: var(--space-l) var(--space-xl); }
.hero-grid { display: grid; gap: var(--space-l); align-items: center; }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 2.2rem; }
.hero-slip { max-width: 360px; padding: 16px 20px 14px; font-variant-numeric: tabular-nums; text-align: center; }
.hero-slip p { margin: 0; font-size: 0.95rem; }
.hero-slip .slip-firm { font-family: var(--font-head); font-weight: 700; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px dashed var(--ink); }
.hero-slip .slip-addr { font-weight: 700; letter-spacing: 0.04em; }
.hero-slip .slip-meta { color: var(--muted); }
.hero-art { position: relative; margin: 0; }
.hero-art svg { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.hero-art figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--muted); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.steam path { animation: steam 4s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.steam path:nth-child(2) { animation-delay: -1.3s; }
.steam path:nth-child(3) { animation-delay: -2.6s; }
@keyframes steam {
  0%, 100% { opacity: 0.15; transform: translateY(4px) scaleY(0.9); }
  50% { opacity: 0.75; transform: translateY(-4px) scaleY(1.05); }
}
.train { animation: train 26s linear infinite; }
@keyframes train {
  from { transform: translateX(-160px); }
  to { transform: translateX(900px); }
}

/* Vier Positionen auf einen Blick */
.overview { padding-block: 0 var(--space-l); }
.overview-strip {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.overview-strip li { padding: 1.1rem 0; border-bottom: 1px dashed var(--line); }
.overview-strip li:last-child { border-bottom: 0; }
.overview-strip a { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; color: var(--ink); text-decoration: none; }
.overview-strip a:hover h3 { color: var(--red); }
.overview-strip .ov-no { grid-row: span 2; font: 800 var(--step-2) / 1 var(--font-head); color: var(--red); font-variant-numeric: tabular-nums; }
.overview-strip h3 { margin: 0; font-size: var(--step-1); }
.overview-strip p { margin: 0; color: var(--muted); font-size: var(--step--1); }
@media (min-width: 820px) {
  .overview-strip { grid-template-columns: repeat(4, 1fr); }
  .overview-strip li { padding: 1.2rem 1.2rem 1.2rem 0; border-bottom: 0; }
  .overview-strip li + li { padding-left: 1.2rem; border-left: 1px dashed var(--line); }
  .overview-strip a { grid-template-columns: 1fr; }
  .overview-strip .ov-no { grid-row: auto; }
}

/* 01 Versicherung */
.ins { background: var(--paper); border-block: 1px solid var(--paper-edge); }
.ins-grid { display: grid; gap: var(--space-l); }
.status-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-m);
  background: var(--white);
}
.status-card h3 { display: flex; flex-direction: column; gap: 0.25rem; }
.status-card h3 small { font: 700 var(--step--1) var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.status-card dl { margin: 0 0 1rem; }
.status-card dt { font-weight: 700; margin-top: 0.8rem; }
.status-card dd { margin: 0.15rem 0 0; }
.ins-fields { display: grid; gap: 1rem; margin: 1.5rem 0; }
.ins-field { border-top: 2px solid var(--ink); padding-top: 0.8rem; }
.ins-field h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.ins-field p { margin: 0; color: var(--muted); }
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.8rem; align-items: start; }
.steps li::before {
  content: 'Pos. ' counter(step);
  font: 700 0.8rem / 1.9 var(--font-head);
  color: var(--red);
  white-space: nowrap;
  border-bottom: 2px solid var(--red);
}
.steps strong { display: block; font-family: var(--font-head); }
@media (min-width: 720px) {
  .ins-fields { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .ins-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
}

/* 02 Buchhaltung: Kassenzettel mit Preisbeispielen */
.books-grid { display: grid; gap: var(--space-l); align-items: start; }
.receipt { max-width: 440px; font-variant-numeric: tabular-nums; }
.receipt h3 {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--ink);
}
.receipt .lines li { font-size: 0.98rem; }
.receipt-foot { margin: 0.8rem 0 0; padding-top: 0.6rem; border-top: 1px dashed var(--ink); font-size: var(--step--1); color: var(--muted); }
.calendar { display: grid; gap: 0; margin: 1.4rem 0; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.calendar div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.2rem 1rem; align-items: baseline; padding: 0.8rem 1rem; }
.calendar div + div { border-top: 1px dashed var(--line); }
.calendar dt { font: 800 1.4rem / 1.1 var(--font-head); color: var(--red); font-variant-numeric: tabular-nums; }
.calendar dd { margin: 0; }
.limits { display: grid; gap: var(--space-m); margin-top: var(--space-l); }
.limits h3 { font-size: 1.1rem; }
@media (min-width: 640px) {
  .limits { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .books-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .books-grid .receipt { position: sticky; top: 40px; }
}

/* 03 Energie: dunkler Abschnitt (Abendstimmung über der Ruhr) */
.energy { background: var(--river-deep); color: var(--white); }
.energy a { color: var(--white); }
.energy .pos { color: #f3c9a1; }
.energy-grid { display: grid; gap: var(--space-l); align-items: start; }
.meter {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: meter;
  border: 2px solid #8fb0bf;
  border-radius: var(--radius);
}
.meter li { padding: 1rem 1.2rem; }
.meter li + li { border-top: 1px dashed #5f8394; }
.meter strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.2rem; }
.meter span { color: #dfe9ee; }
.energy .note { background: rgba(255, 255, 255, 0.08); border-left-color: #f3c9a1; }
.energy-figure { margin: 0; }
.energy-figure svg { display: block; width: 100%; height: auto; max-width: 240px; margin-inline: auto; }
@media (min-width: 1000px) {
  .energy-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .energy-figure svg { max-width: 380px; }
}

/* 04 Gründung */
.found-grid { display: grid; gap: var(--space-m); margin-top: var(--space-m); }
.found-card { padding: 1rem 0 0; border-top: 2px solid var(--ink); }
.found-card h3::before { content: '+ '; color: var(--moss); }
.found-card h3 { font-size: 1.15rem; }
.found-card p:last-child, .found-card ul:last-child { margin-bottom: 0; }
.partner {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
  padding: var(--space-m);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
}
.partner h3 { margin-bottom: 0.4rem; }
.partner p:last-child { margin-bottom: 0; }
@media (min-width: 720px) {
  .found-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .found-grid { grid-template-columns: repeat(4, 1fr); }
  .partner { grid-template-columns: 1fr 1fr; }
}

/* Klartext: Rückfragen als Durchschreibeblock */
.qa { background: var(--paper); border-block: 1px solid var(--paper-edge); }
.qa-list { margin: var(--space-m) 0 0; border-top: 2px solid var(--ink); }
.qa-list div { display: grid; gap: 0.3rem 2rem; padding: 1.1rem 0; border-bottom: 1px dashed var(--line); }
.qa-list dt { font-family: var(--font-head); font-weight: 700; color: var(--red); }
.qa-list dd { margin: 0; }
@media (min-width: 820px) {
  .qa-list div { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
}

/* 05 Kontakt: Rückrufzettel */
.contact-grid { display: grid; gap: var(--space-l); align-items: start; }
.contact-aside dl { margin: 0 0 1.4rem; }
.contact-aside dt { font: 700 var(--step--1) var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.contact-aside dd { margin: 0.2rem 0 0; }
.contact-aside .big { font: 800 var(--step-1) var(--font-head); color: var(--ink); text-decoration: none; }
.contact-aside .big:hover { color: var(--red); }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}

.callback { padding: var(--space-m); }
.callback-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--ink);
}
.callback-title h3 { margin: 0; }
.callback-title p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.callback fieldset { margin: 0 0 1.3rem; padding: 0; border: 0; min-width: 0; }
.callback legend { padding: 0; margin-bottom: 0.5rem; font-family: var(--font-head); font-weight: 700; }
.req { color: var(--red); font-weight: 700; font-size: 0.85em; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}
.choice:hover { border-color: var(--ink); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); flex: none; }
.choice:has(input:checked) { border-color: var(--red); background: #fbefe9; }
.choice:has(input:focus-visible) { outline: 3px solid var(--river); outline-offset: 2px; }
.choice:has(input[aria-invalid="true"]) { border-color: var(--red); }
.field-grid { display: grid; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 4px 4px 0 0;
  background: #f6f1e6;
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--river); outline-offset: 1px; }
.field [aria-invalid="true"] { border-bottom-color: var(--red); background: #fbefe9; }
.field-full { grid-column: 1 / -1; }
.hint { font-size: var(--step--1); color: var(--muted); margin: 0; }
.field-error { margin: 0.3rem 0 0; color: var(--red); font-weight: 600; font-size: 0.95rem; }
.field-error:empty { display: none; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.callback-submit { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.callback-submit p { margin: 0; flex: 1 1 16rem; font-size: var(--step--1); color: var(--muted); }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); }
.form-status:empty { display: none; }
.form-status.is-success { background: #e8efe3; border-left: 4px solid var(--moss); }
.form-status.is-error { background: #fbefe9; border-left: 4px solid var(--red); }
@media (min-width: 640px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Rechtstexte ---------- */
.doc { padding-block: var(--space-l) var(--space-xl); }
.doc-sheet { max-width: calc(52rem + var(--roll-space)); }
.doc-kicker { font: 700 var(--step--1) var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 0.4rem; }
.doc h1 { font-size: var(--step-3); hyphens: auto; }
.prose { background: var(--paper); padding: var(--space-m); box-shadow: var(--shadow); hyphens: auto; overflow-wrap: break-word; }
.prose h2 { font-size: var(--step-1); margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.08rem; margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.prose address { margin-bottom: 1em; }
.prose dl { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0 0 1em; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }
.prose .highlight { border: 2px solid var(--ink); padding: 1rem 1.2rem; margin: 1.4rem 0; background: var(--white); }
.prose .highlight > :last-child { margin-bottom: 0; }
.toc { background: var(--page); padding: 1rem 1.2rem; margin: 0 0 1.5rem; }
.toc h2 { margin: 0 0 0.5rem; padding: 0; border: 0; font-size: 1rem; }
.toc ol { margin: 0; columns: 2 16rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }
.table-wrap { margin: 1rem 0 1.4rem; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); }
.table-wrap thead th { border-bottom: 2px solid var(--ink); font-family: var(--font-head); }
@media (max-width: 719.98px) {
  .prose dl { grid-template-columns: 1fr; gap: 0; }
  .prose dd { margin-bottom: 0.6rem; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap tr { display: block; padding: 0.6rem 0; border-bottom: 2px solid var(--ink); }
  .table-wrap td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.6rem; border: 0; padding: 0.25rem 0; }
  .table-wrap td::before { content: attr(data-label); font-weight: 700; }
}

/* 404 */
.lost { text-align: left; }
.lost svg { width: 220px; height: auto; display: block; margin-bottom: 1rem; }
.lost-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; padding: 0; list-style: none; margin: 0 0 1.6rem; }
.lost-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Fuß: das Bonende ---------- */
.site-footer { padding: var(--space-l) calc(var(--gutter) + var(--roll-space)) var(--space-m) var(--gutter); }
.bon {
  --tear: var(--zigzag);
  position: relative;
  max-width: 560px;
  margin: var(--tear) auto 0;
  padding: 1.6rem clamp(1rem, 4vw, 2rem) 1.4rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.bon::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--tear) * -1);
  height: var(--tear);
  background: linear-gradient(45deg, var(--paper) 50%, transparent 50%) 0 0 / calc(var(--tear) * 2) 100%,
              linear-gradient(-45deg, var(--paper) 50%, transparent 50%) 0 0 / calc(var(--tear) * 2) 100%;
  background-repeat: repeat-x;
}
.bon-firm { font: 800 1.15rem var(--font-head); margin: 0 0 0.2rem; }
.bon-meta { margin: 0 0 0.2rem; font-size: 0.95rem; color: var(--muted); }
.bon-meta a { color: var(--ink); }
.bon-rule { border: 0; border-top: 1px dashed var(--ink); margin: 1rem 0; }
.bon-links ul { list-style: none; margin: 0; padding: 0; text-align: left; }
.bon-links li { display: flex; align-items: baseline; gap: 8px; }
.bon-links li::after { content: ''; order: 1; flex: 1; border-bottom: 2px dotted var(--line); }
.bon-links li::before { content: attr(data-pos); order: 2; color: var(--muted); font-size: 0.85rem; }
.bon-links a,
.bon-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 1rem var(--font-body);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.bon-links a:hover,
.bon-links button:hover { color: var(--red); text-decoration-color: currentColor; }
.bon-links a[aria-current="page"] { color: var(--red); text-decoration: none; }
.bon-address { margin: 0; font-weight: 800; font-family: var(--font-head); letter-spacing: 0.06em; }
.bon-address span { color: var(--red); }
.bon-small { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- Einwilligung (Banner und Dialog) ---------- */
.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  max-width: 640px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 1.2rem 1.3rem;
  background: var(--paper);
  border-top: 6px solid var(--red);
  box-shadow: 0 18px 40px -12px rgba(30, 29, 38, 0.55);
}
.consent-title { font-size: 1.15rem; margin: 0 0 0.4rem; }
.consent-text { font-size: 0.95rem; margin: 0 0 0.9rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.consent-btn {
  flex: 1 1 10rem;
  min-height: 46px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: 700 0.95rem var(--font-head);
  cursor: pointer;
}
.consent-btn:hover { background: var(--ink); color: var(--white); }
.consent-link {
  min-height: 44px;
  padding: 0 0.4rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 0.95rem var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}
.consent-link:hover { color: var(--red); }
.consent-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-top: 6px solid var(--red);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 40px -12px rgba(30, 29, 38, 0.55);
}
.consent-dialog::backdrop { background: rgba(30, 29, 38, 0.55); }
.consent-dialog-inner { padding: 1.3rem; }
.consent-categories { list-style: none; margin: 0 0 1rem; padding: 0; }
.consent-category { padding: 0.8rem 0; border-top: 1px dashed var(--line); }
.consent-category h3 { margin: 0; font-size: 1rem; }
.consent-category p { margin: 0.3rem 0 0; font-size: 0.92rem; color: var(--muted); }
.consent-category-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.consent-always { font-size: 0.85rem; font-weight: 700; color: var(--moss); }
.consent-switch { position: relative; display: inline-flex; width: 52px; height: 44px; align-items: center; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-switch-track { position: relative; width: 52px; height: 28px; border-radius: 14px; background: #8d867c; transition: background-color 0.2s ease; }
.consent-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: transform 0.2s ease; }
.consent-switch input:checked + .consent-switch-track { background: var(--red); }
.consent-switch input:checked + .consent-switch-track::after { transform: translateX(24px); }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--river); outline-offset: 2px; }
.consent-btn-save { background: var(--red); border-color: var(--red); color: var(--white); }
.consent-btn-save:hover { background: var(--red-deep); border-color: var(--red-deep); }

/* ---------- Hilfsklassen ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .consent, .skip-link { display: none; }
  body { padding: 0; background: #fff; }
  .prose, .slip { box-shadow: none; }
}
