/* Dachdecker-Innung Vechta/Cloppenburg
   Gestaltung: Logo-Rot und Anthrazit, kühles Schiefergrau als Grund.
   Überschriften in Barlow Condensed (Bauschild), Text in Barlow.
   Motive: Biberschwanz-Traufe als Trenner, gekreuzter Giebel aus dem Logo,
   Dachmaterialien als Muster. Alle Farben als Variablen, Dunkelmodus unten. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --papier: #f2f3f3;     /* Grund */
  --flaeche: #ffffff;    /* Karten, Kopfzeile */
  --grau: #e6e9ea;       /* abgesetzte Abschnitte */
  --tinte: #1c1c1b;      /* Text, Logo-Schwarz */
  --text2: #4b5156;
  --linie: #d3d8db;
  --rot: #d8231e;        /* Logo-Rot, etwas dunkler für Lesbarkeit */
  --rot-text: #c41f1a;
  --rot-tief: #9e1a16;
  --zink: #8b949a;
  --nacht: #27323b;      /* dunkle Abschnitte: Schiefergrau */
  --nacht-tief: #1c252c; /* Infoleiste, Fußzeile */
  --nacht-hell: #34424d;
  --nacht-text: #eceeee;
  --nacht-text2: #aab1b6;
  --himmel: #e8eff3;
  --boden: #d9dee1;
  --f-disp: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --r: 4px;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #131517; --flaeche: #1b1e21; --grau: #181b1d; --tinte: #eceeef; --text2: #a9b0b5; --linie: #31363a;
    --rot: #d8231e; --rot-text: #ff6a5f; --rot-tief: #b81f1b; --nacht: #18212a; --nacht-tief: #0f151a; --nacht-hell: #23303a; --nacht-text: #eceeee; --nacht-text2: #a3aaaf;
    --himmel: #1a2228; --boden: #23282c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #131517; --flaeche: #1b1e21; --grau: #181b1d; --tinte: #eceeef; --text2: #a9b0b5; --linie: #31363a;
  --rot: #d8231e; --rot-text: #ff6a5f; --rot-tief: #b81f1b; --nacht: #18212a; --nacht-tief: #0f151a; --nacht-hell: #23303a; --nacht-text: #eceeee; --nacht-text2: #a3aaaf;
  --himmel: #1a2228; --boden: #23282c; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 400 1.0625rem/1.65 var(--f-text); }
img { max-width: 100%; height: auto; }
a { color: var(--rot-text); text-underline-offset: .18em; }
a:hover { color: var(--tinte); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 800; line-height: 1; margin: 0; text-wrap: balance; letter-spacing: .005em; hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.rot { color: var(--rot-text); }
.skip { position: absolute; left: -9999px; }
a.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--flaeche); padding: 10px 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 .9rem/1.2 var(--f-disp); text-transform: uppercase; letter-spacing: .14em; color: var(--rot-text); margin-bottom: 14px; }
.giebel { width: 30px; height: 18px; flex: none; }
.giebel path { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--text2); max-width: 62ch; }
.note, .hint { color: var(--text2); font-size: .95rem; }
.pf { display: inline-block; transition: transform .2s; }
a:hover .pf, button:hover .pf { transform: translateX(4px); }

/* ----- Kopf ----- */
.topbar { background: var(--nacht-tief); color: var(--nacht-text2); font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-block: 7px; }
.topbar a { color: var(--nacht-text); text-decoration: none; }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--flaeche); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tinte); }
.brand img { height: 46px; width: auto; display: block; }
.brand-txt { font: 600 .85rem/1.1 var(--f-disp); text-transform: uppercase; letter-spacing: .08em; padding-left: 14px; border-left: 2px solid var(--linie); color: var(--text2); }
.dunkel-logo { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hell-logo { display: none !important; } :root:not([data-theme="light"]) .dunkel-logo { display: block !important; } }
:root[data-theme="dark"] .hell-logo { display: none !important; }
:root[data-theme="dark"] .dunkel-logo { display: block !important; }
.menu { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.menu a { display: block; white-space: nowrap; padding: 10px 10px; font: 600 1.05rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .04em; color: var(--tinte); text-decoration: none; border-bottom: 3px solid transparent; }
.menu a:hover { color: var(--rot-text); }
.menu a[aria-current="page"] { border-bottom-color: var(--rot); }
.menu a.cta { background: var(--rot); color: #fff; padding: 12px 16px; margin-left: 8px; border: 0; border-radius: 2px; }
.menu a.cta:hover { background: var(--rot-tief); color: #fff; }
.burger { display: none; font: 600 1rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .08em; background: none; color: var(--tinte); border: 2px solid var(--tinte); border-radius: 2px; padding: 10px 14px; cursor: pointer; }
@media (max-width: 1260px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); }
  .menu.open { display: flex; }
  .menu a { padding: 14px 4px; border-bottom: 1px solid var(--linie); }
  .menu a[aria-current="page"] { color: var(--rot-text); border-bottom-color: var(--linie); }
  .menu a.cta { margin: 12px 0 0; text-align: center; }
}
@media (max-width: 520px) { .brand-txt { display: none; } .brand img { height: 40px; } .topbar .wrap > span:first-child { display: none; } }

/* ----- Biberschwanz-Traufe ----- */
.biber { height: 30px; margin-top: -1px; position: relative; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='30'%3E%3Cpath d='M17 0h14v10a7 7 0 0 1-14 0z' fill='%239e1a16'/%3E%3Cpath d='M1 0h14v10a7 7 0 0 1-14 0z' fill='%239e1a16'/%3E%3Cpath d='M9 6h14v14a7 7 0 0 1-14 0z' fill='%23d8231e'/%3E%3Cpath d='M25 6h14v14a7 7 0 0 1-14 0zM-7 6h14v14a7 7 0 0 1-14 0z' fill='%23d8231e'/%3E%3C/svg%3E") repeat-x 0 0 / 32px 30px; }

/* ----- Abschnitte ----- */
section { padding-block: clamp(64px, 9vw, 112px); }
section.grau { background: var(--grau); }
section.dunkel { background: radial-gradient(120% 140% at 85% 0%, var(--nacht-hell), var(--nacht) 60%); color: var(--nacht-text); position: relative; overflow: hidden; }
section.dunkel::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 520px; height: 320px; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath d='M2 22 26 2M38 22 14 2' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
section.dunkel .wrap { position: relative; z-index: 1; }
section.dunkel .lead, section.dunkel p { color: var(--nacht-text2); }
section.dunkel h2, section.dunkel h3 { color: var(--nacht-text); }
section.dunkel .eyebrow { color: #ff6a5f; }
section.dunkel a { color: #ff8a80; }
.sec-head { margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head h2 { margin-bottom: 16px; }
.sec-head.zeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.sec-head.zeile > div { min-width: 0; flex: 1 1 520px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split > * { min-width: 0; }
.split h2 { margin-bottom: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.grid { display: grid; gap: 20px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid.g2, .grid.g3 { grid-template-columns: 1fr; } }
.grid > * { min-width: 0; }
.schmal { max-width: 800px; }

/* Erscheinen beim Scrollen: Inhalt bleibt immer sichtbar */
.js .rv { transform: translateY(14px); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.js .rv.da { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { transform: none; transition: none; } .pf { transition: none; } }

/* ----- Knöpfe ----- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--rot); color: #fff; border: 2px solid var(--rot); border-radius: 2px; padding: 13px 22px; font: 600 1.05rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--rot-tief); border-color: var(--rot-tief); color: #fff; }
.btn.ghost { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.btn.ghost:hover { background: var(--tinte); color: var(--papier); }
section.dunkel .btn.ghost { color: var(--nacht-text); border-color: var(--nacht-text); }
section.dunkel .btn.ghost:hover { background: var(--nacht-text); color: var(--nacht); }
.btn.hell { background: #fff; color: #1c1c1b; border-color: #fff; }
.btn.hell:hover { background: #e6e9ea; border-color: #e6e9ea; color: #1c1c1b; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ----- Startbereich ----- */
.hero { background: var(--papier); padding-block: clamp(40px, 6vw, 72px) clamp(36px, 5vw, 56px); }
.hero-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .hero-in { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(4.2rem, 11vw, 8.6rem); line-height: .84; text-transform: uppercase; letter-spacing: -.005em; }
.hero h1 .z { display: block; }
.hero .unter { font: 600 clamp(1.4rem, 2.6vw, 1.9rem)/1.1 var(--f-disp); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 20px; }
.suche { display: flex; max-width: 520px; margin-top: 26px; border: 2px solid var(--tinte); border-radius: 2px; background: var(--flaeche); }
.suche label { flex: 1; min-width: 0; }
.suche input { width: 100%; border: 0; background: transparent; color: var(--tinte); font: inherit; padding: 14px 16px; }
.suche input:focus { outline: none; }
.suche:focus-within { outline: 3px solid var(--rot); outline-offset: 2px; }
.suche button { border: 0; background: var(--tinte); color: var(--papier); font: 600 1rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .06em; padding: 0 18px; cursor: pointer; }
.suche button:hover { background: var(--rot); color: #fff; }
.kreise { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.kreise a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 2px; color: var(--tinte); text-decoration: none; font-weight: 600; font-size: .95rem; }
.kreise a:hover { border-color: var(--rot); color: var(--rot-text); }
.kreise b { font: 800 1rem/1 var(--f-disp); background: var(--tinte); color: var(--papier); padding: 4px 7px; border-radius: 2px; font-variant-numeric: tabular-nums; }

/* ----- Dach-Probierer ----- */
.probier { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: clamp(14px, 2vw, 22px); display: grid; gap: 14px; box-shadow: 0 18px 40px -28px rgba(28,28,27,.45); }
.probier-kopf { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.probier-kopf .eyebrow { margin: 0; }
.probier-kopf .hinweis { font-size: .9rem; color: var(--text2); }
.haus { width: 100%; height: auto; display: block; background: linear-gradient(var(--himmel), var(--flaeche)); border-radius: 2px; }
.haus .schlag { fill: #1c252c; opacity: .28; }
.haus .schlag.kern { opacity: .45; }
.haus .stufe { fill: #8e9499; }
.haus .schatten { fill: #000; opacity: .22; }
.haus .fen { fill: #bcd3e0; stroke: #f4f6f7; stroke-width: 3; }
.haus .tuer { fill: #3b2b22; stroke: #1c1c1b; stroke-width: 2.5; }
.haus .ortgang { fill: #2a2a29; }
.haus .ortgang-linie { stroke: #2a2a29; stroke-width: 3; fill: none; stroke-linecap: round; }
.haus .rinne { stroke: #9aa3a9; stroke-width: 4; fill: none; stroke-linecap: round; }
.haus .sockel { fill: #4a4f55; opacity: .55; }
.haus .traufschatten { fill: #000; opacity: .22; }
.haus .sprosse { stroke: #f4f6f7; stroke-width: 2.5; fill: none; }
.haus .kamin-seite { fill: #6e3324; }
.haus .kappe { fill: #2a2a29; }
.haus .hilfe { stroke: var(--text2); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.haus .winkel { stroke: var(--rot); stroke-width: 3; fill: none; }
.haus .grad { fill: var(--rot-text); font: 800 22px var(--f-disp); paint-order: stroke; stroke: var(--flaeche); stroke-width: 5px; stroke-linejoin: round; }
.probier[data-stoff="reet"] .ortgang { fill: #8d6c35; }
.probier[data-stoff="metall"] .ortgang { fill: #5f676d; }
.stoffe { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.stoffe button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border: 1px solid var(--linie); background: var(--papier); color: var(--tinte); border-radius: 2px; font: 600 .95rem/1 var(--f-text); cursor: pointer; }
.stoffe button:hover { border-color: var(--tinte); }
.stoffe button[aria-pressed="true"] { border-color: var(--rot); box-shadow: inset 0 0 0 1px var(--rot); background: var(--flaeche); }
.stoffe i { width: 22px; height: 22px; border-radius: 2px; display: block; }
.regler { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px; }
.regler label { font: 600 1rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.regler output { display: inline-block; min-width: 3.2ch; color: var(--rot-text); font-variant-numeric: tabular-nums; }
.regler input { width: 100%; accent-color: var(--rot); }
.regler input:disabled { opacity: .4; }
@media (max-width: 420px) { .regler { grid-template-columns: 1fr; } }
.werte dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.werte dl > div { background: var(--papier); padding: 10px 12px; border-radius: 2px; }
.werte dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.werte dd { margin: 2px 0 0; font: 600 1.1rem/1.2 var(--f-disp); }
.werte b { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.werte small { display: block; margin-top: 6px; color: var(--text2); font-size: .82rem; }
.probier .info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; border-top: 1px solid var(--linie); padding-top: 12px; }
.probier .info p { margin: 0; flex: 1 1 260px; color: var(--text2); }
.mehr { font: 600 1rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .06em; color: var(--rot-text); text-decoration: none; white-space: nowrap; }

/* ----- Materialmuster (Karten, Kopf der Abschnitte, Knöpfe) ----- */
.m-steildach, .m-ziegel { background: repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 1.5px, transparent 1.5px 22px), repeating-linear-gradient(0deg, #7c2a1c 0 3px, #c9573e 3px 6px, #b4442f 6px 17px); }
.m-klempner, .m-metall { background: repeating-linear-gradient(90deg, #c3cacf 0 3px, #5f676d 3px 5px, #99a2a8 5px 12px, #8b949a 12px 30px); }
.m-dachstuhl { background: repeating-linear-gradient(90deg, transparent 0 34px, #7a4c22 34px 46px), repeating-linear-gradient(0deg, #c79358 0 4px, #b98349 4px 9px); }
.m-reet { background: linear-gradient(0deg, rgba(110,80,30,.35), transparent 40%), repeating-linear-gradient(90deg, #b8955a 0 2px, #8d6c35 2px 3px, #d9bb7f 3px 4px, #a9874b 4px 7px); }
.m-flachdach, .m-flach { background: repeating-linear-gradient(0deg, #6b7178 0 2px, #3a3e43 2px 3px, #4a4f55 3px 36px); }
.m-fassade, .m-schiefer { background: repeating-linear-gradient(45deg, #24282d 0 1.5px, transparent 1.5px 14px), repeating-linear-gradient(-45deg, #24282d 0 1.5px, transparent 1.5px 14px), #3c4249; }
.m-solar { background: linear-gradient(90deg, #9fb3cf 0 1.5px, transparent 1.5px) 0 0 / 30px 22px, linear-gradient(0deg, #9fb3cf 0 1.5px, transparent 1.5px) 0 0 / 30px 22px, #1d2b44; }
.m-begruenung, .m-gruen { background: radial-gradient(circle at 30% 30%, #d9b43a 0 2px, transparent 2.5px) 0 0 / 22px 20px, radial-gradient(circle at 70% 70%, #8bab4c 0 5px, transparent 5.5px) 0 0 / 18px 16px, #6b8a3b; }
.m-daemmung { background: repeating-linear-gradient(170deg, #e7c867 0 6px, #d2a944 6px 9px, #e0bd57 9px 14px); }

/* ----- Karten Startseite ----- */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--linie); border: 2px solid var(--linie); }
@media (max-width: 760px) { .karten { grid-template-columns: 1fr; } }
.karte { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto 1fr auto; column-gap: 18px; padding: 22px; background: var(--flaeche); color: var(--tinte); text-decoration: none; min-width: 0; }
.karte::before { content: ""; grid-row: 1 / 4; width: 72px; height: 72px; border-radius: 2px; background: inherit; }
.karte:nth-child(1)::before { background: repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 1.5px, transparent 1.5px 22px), repeating-linear-gradient(0deg, #7c2a1c 0 3px, #c9573e 3px 6px, #b4442f 6px 17px); }
.karte:nth-child(2)::before { background: repeating-linear-gradient(90deg, #c3cacf 0 3px, #5f676d 3px 5px, #99a2a8 5px 12px, #8b949a 12px 30px); }
.karte:nth-child(3)::before { background: repeating-linear-gradient(90deg, transparent 0 34px, #7a4c22 34px 46px), repeating-linear-gradient(0deg, #c79358 0 4px, #b98349 4px 9px); }
.karte:nth-child(4)::before { background: linear-gradient(0deg, rgba(110,80,30,.35), transparent 40%), repeating-linear-gradient(90deg, #b8955a 0 2px, #8d6c35 2px 3px, #d9bb7f 3px 4px, #a9874b 4px 7px); }
.karte:nth-child(5)::before { background: repeating-linear-gradient(0deg, #6b7178 0 2px, #3a3e43 2px 3px, #4a4f55 3px 36px); }
.karte:nth-child(6)::before { background: repeating-linear-gradient(45deg, #24282d 0 1.5px, transparent 1.5px 14px), repeating-linear-gradient(-45deg, #24282d 0 1.5px, transparent 1.5px 14px), #3c4249; }
.karte:nth-child(7)::before { background: linear-gradient(90deg, #9fb3cf 0 1.5px, transparent 1.5px) 0 0 / 30px 22px, linear-gradient(0deg, #9fb3cf 0 1.5px, transparent 1.5px) 0 0 / 30px 22px, #1d2b44; }
.karte:nth-child(8)::before { background: radial-gradient(circle at 30% 30%, #d9b43a 0 2px, transparent 2.5px) 0 0 / 22px 20px, radial-gradient(circle at 70% 70%, #8bab4c 0 5px, transparent 5.5px) 0 0 / 18px 16px, #6b8a3b; }
.karte:nth-child(9)::before { background: repeating-linear-gradient(170deg, #e7c867 0 6px, #d2a944 6px 9px, #e0bd57 9px 14px); }
.karte:hover { background: var(--papier); }
.karte:hover .k-titel { color: var(--rot-text); }
.k-titel { font: 800 1.6rem/1 var(--f-disp); text-transform: uppercase; }
.k-kurz { color: var(--text2); margin: 6px 0 12px; }
.karte .mehr { align-self: end; }

/* ----- Landkreise ----- */
.landkreise { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .landkreise { grid-template-columns: 1fr; } }
.lk { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 24px 24px 12px; min-width: 0; }
.lk h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.6rem; font-weight: 800; padding-bottom: 14px; border-bottom: 3px solid var(--tinte); }
.lk h3 small { font: 600 .95rem/1 var(--f-text); text-transform: none; letter-spacing: 0; color: var(--text2); white-space: nowrap; }
.lk ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
@media (max-width: 420px) { .lk ul { columns: 1; } }
.lk li { break-inside: avoid; }
.lk a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--linie); color: var(--tinte); text-decoration: none; font-weight: 600; }
.lk a:hover { color: var(--rot-text); }
.lk b { font: 800 1.15rem/1 var(--f-disp); color: var(--rot-text); font-variant-numeric: tabular-nums; }

/* ----- Gründe (dunkel) ----- */
.gruende { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.gruende.eins { grid-template-columns: 1fr; }
@media (max-width: 960px) { .gruende { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gruende { grid-template-columns: 1fr; } }
.gruende > div { min-width: 0; padding-top: 34px; position: relative; }
.gruende > div::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath d='M2 22 26 2M38 22 14 2' fill='none' stroke='%23ff4a40' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / contain; }
.gruende h3 { margin-bottom: 10px; font-size: 1.6rem; font-weight: 800; }
.gruende p { margin: 0; }

/* ----- Meldungen ----- */
.meldungen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .meldungen { grid-template-columns: 1fr; } }
.meldung { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); color: var(--tinte); text-decoration: none; min-width: 0; }
.meldung:hover { border-color: var(--tinte); }
.meldung:hover h3 { color: var(--rot-text); }
.meldung time, .artikel time { font: 600 .9rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .1em; color: var(--text2); }
.meldung p { color: var(--text2); margin: 0; flex: 1; }

/* ----- Ausbildung: Leiter ----- */
.leiter { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; display: grid; gap: 0; }
.leiter::before, .leiter::after { content: ""; position: absolute; top: 0; bottom: 0; width: 5px; background: var(--zink); border-radius: 3px; }
.leiter::before { left: 0; } .leiter::after { left: 44px; }
.leiter li { position: relative; padding: 18px 0 18px 70px; display: grid; gap: 4px; }
.leiter li::before { content: ""; position: absolute; left: 0; width: 49px; top: 50%; height: 5px; margin-top: -2.5px; background: var(--rot); border-radius: 3px; }
.leiter b { font: 800 1.7rem/1 var(--f-disp); text-transform: uppercase; }
.leiter span { color: var(--text2); }
section.dunkel .leiter span { color: var(--nacht-text2); }

/* ----- Geschäftsstelle ----- */
.plate { background: var(--flaeche); border: 1px solid var(--linie); border-top: 4px solid var(--tinte); border-radius: var(--r); padding: 22px 24px; min-width: 0; }
.plate p { margin: 8px 0 0; }
.plate-kopf { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.plate-kopf .eyebrow { margin: 0; }
.plate dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px 16px; margin: 0; }
.plate dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); padding-top: 3px; }
.plate dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .plate dl { grid-template-columns: 1fr; gap: 2px; } .plate dd { margin-bottom: 8px; } }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--text2); }
.open-now i { width: 10px; height: 10px; border-radius: 50%; background: var(--zink); }
.open-now.auf i { background: #2f9e44; box-shadow: 0 0 0 4px rgba(47,158,68,.18); }

/* ----- Fragen ----- */
.faq { border-bottom: 1px solid var(--linie); max-width: 880px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 600 1.35rem/1.2 var(--f-disp); text-transform: uppercase; letter-spacing: .02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 800 1.8rem/1 var(--f-disp); color: var(--rot-text); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--text2); max-width: 70ch; margin: -4px 0 20px; }

/* ----- Unterseiten ----- */
.page-hero { background: radial-gradient(110% 160% at 90% 0%, var(--nacht-hell), var(--nacht) 65%); color: var(--nacht-text); padding-block: clamp(48px, 7vw, 92px) clamp(96px, 11vw, 140px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -40px; top: 20px; width: 460px; height: 280px; opacity: .08; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath d='M2 22 26 2M38 22 14 2' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #ff6a5f; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6rem); text-transform: uppercase; line-height: .9; max-width: 15ch; }
.page-hero h1 .rot { color: #ff4a40; }
.page-hero p { color: var(--nacht-text2); font-size: 1.2rem; max-width: 60ch; margin: 22px 0 0; }

.sprung { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.sprung a { padding: 9px 14px; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 2px; color: var(--tinte); text-decoration: none; font: 600 1rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .05em; }
.sprung a:hover { border-color: var(--rot); color: var(--rot-text); }
.gebiet { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 48px; border-top: 3px solid var(--tinte); }
.gebiet:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .gebiet { grid-template-columns: 1fr; } }
.gebiet-kopf { display: grid; gap: 18px; align-content: start; }
.gebiet-kopf .muster { width: 100%; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r); }
@media (max-width: 860px) { .gebiet-kopf { grid-template-columns: 96px 1fr; align-items: end; } .gebiet-kopf .muster { aspect-ratio: 1; } }
.gebiet-kopf > * { min-width: 0; }
.gebiet-kopf .eyebrow { margin-bottom: 8px; }
.gebiet h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.gebiet-text { max-width: 70ch; }
.gebiet-text p { color: var(--text2); }
.gebiet-text .lead { color: var(--tinte); }
.punkte { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
@media (max-width: 560px) { .punkte { grid-template-columns: 1fr; } }
.punkte li { position: relative; padding-left: 26px; }
.punkte li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath d='M4 22 20 4 36 22' fill='none' stroke='%23d8231e' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 0 / contain; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
@media (max-width: 760px) { .kacheln { grid-template-columns: 1fr; } }
.kacheln > div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; min-width: 0; }
.kacheln b { font: 800 1.25rem/1.1 var(--f-disp); text-transform: uppercase; }
.kacheln span { color: var(--text2); font-size: .97rem; }

/* ----- Sparrechner ----- */
.rechner { margin-top: 28px; background: var(--flaeche); border: 2px solid var(--tinte); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.r-kopf .eyebrow { margin-bottom: 6px; }
.r-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
@media (max-width: 640px) { .r-felder { grid-template-columns: 1fr; } }
.r-felder > label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font: 600 1rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .06em; }
.r-felder output { color: var(--rot-text); font-variant-numeric: tabular-nums; margin-left: 6px; }
.r-felder input[type=range] { width: 100%; accent-color: var(--rot); }
.r-felder fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.r-felder legend { font: 600 1rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.r-felder fieldset label { display: flex; gap: 8px; align-items: baseline; }
.r-felder input[type=radio] { accent-color: var(--rot); }
.r-ergebnis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.r-ergebnis > div { background: var(--papier); border-radius: 2px; padding: 14px 16px; display: grid; gap: 4px; }
.r-ergebnis b { font: 800 clamp(2rem, 5vw, 2.8rem)/1 var(--f-disp); color: var(--rot-text); font-variant-numeric: tabular-nums; }
.r-ergebnis span { color: var(--text2); font-size: .95rem; }
.rechner .note { margin: 0; font-size: .88rem; }

/* ----- Karten allgemein ----- */
.card { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); min-width: 0; }
.card h3 { margin-bottom: 14px; }
.card .muster.klein { height: 56px; border-radius: 2px; margin-bottom: 18px; }
.card.zahl .gross { display: block; font: 800 3.4rem/1 var(--f-disp); color: var(--rot-text); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.card.zahl h3 { margin-bottom: 6px; }
.card.zahl p { color: var(--text2); margin: 0; }
.haken { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.haken li { position: relative; padding-left: 28px; }
.haken li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 10px; border-left: 3px solid var(--rot); border-bottom: 3px solid var(--rot); transform: rotate(-45deg); }
.callout { background: var(--flaeche); border: 2px solid var(--tinte); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); min-width: 0; }
.callout h3 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.callout p { color: var(--text2); }
.ablauf { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.ablauf li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.ablauf li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 64px; background: var(--rot); color: #fff; font: 800 1.8rem/1 var(--f-disp); border-radius: 3px 3px 26px 26px; }
.ablauf h3 { margin: 6px 0 6px; }
.ablauf p { margin: 0; color: var(--text2); }
.vorteile { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
@media (max-width: 900px) { .vorteile { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vorteile { grid-template-columns: 1fr; } }
.vorteile li { padding: 16px 0 16px 34px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; color: var(--nacht-text); }
.vorteile li::before { content: ""; position: absolute; left: 0; top: 21px; width: 20px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath d='M4 22 20 4 36 22' fill='none' stroke='%23ff4a40' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 0 / contain; }

/* ----- Personen ----- */
.personen { gap: 18px; }
.person { display: grid; grid-template-columns: 60px 1fr; gap: 18px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 20px; min-width: 0; }
.person > div { min-width: 0; }
.person.lead-p { border-color: var(--tinte); border-width: 2px; }
.ziegel { width: 60px; height: 76px; background: var(--rot); border-radius: 3px 3px 30px 30px; display: grid; place-items: center; color: #fff; font: 800 1.5rem/1 var(--f-disp); }
.ziegel.grau { background: #5f676d; }
.ziegel.gold { background: #a9874b; }
.role { font: 600 .9rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .1em; color: var(--rot-text); margin-bottom: 6px; }
.person h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.person address { font-style: normal; color: var(--text2); overflow-wrap: anywhere; }
.person .co { color: var(--tinte); font-weight: 600; }

/* ----- Betriebssuche ----- */
.filter { display: grid; grid-template-columns: auto 1.4fr 1fr 1fr auto; gap: 12px; align-items: center; }
@media (max-width: 1000px) { .filter { grid-template-columns: 1fr 1fr; } .filter .segment, .filter .f-q { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filter { grid-template-columns: 1fr; } }
.filter > * { min-width: 0; }
.filter input[type=search], .filter select { width: 100%; font: inherit; color: var(--tinte); background: var(--flaeche); border: 2px solid var(--linie); border-radius: 2px; padding: 11px 12px; }
.filter input[type=search]:focus, .filter select:focus { border-color: var(--tinte); outline: none; }
.filter .chk { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.segment { display: flex; border: 2px solid var(--tinte); border-radius: 2px; overflow: hidden; }
.segment button { flex: 1; border: 0; background: var(--flaeche); color: var(--tinte); font: 600 .98rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .05em; padding: 12px 12px; cursor: pointer; white-space: nowrap; }
.segment button + button { border-left: 2px solid var(--tinte); }
.segment button[aria-pressed="true"] { background: var(--tinte); color: var(--papier); }
.count { display: flex; align-items: center; gap: 16px; margin: 22px 0 16px; font-weight: 600; color: var(--text2); }
.count button { background: none; border: 0; color: var(--rot-text); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.betrieb { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.betrieb .kopf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ortl { font: 800 1.05rem/1 var(--f-disp); text-transform: uppercase; letter-spacing: .06em; color: var(--rot-text); margin-right: 4px; }
.lkr, .bad { font-size: .78rem; font-weight: 600; padding: 3px 7px; border-radius: 2px; border: 1px solid var(--linie); color: var(--text2); }
.bad { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.bad.aus { background: #2f7d43; border-color: #2f7d43; color: #fff; }
.betrieb h3 { font-size: 1.35rem; font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 1.1; }
.betrieb .adr { color: var(--text2); }
.betrieb .kon { display: grid; gap: 2px; overflow-wrap: anywhere; }
.betrieb .kon a { text-decoration: none; }
.betrieb .kon a:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .8rem; background: var(--papier); padding: 3px 8px; border-radius: 2px; }
.empty { grid-column: 1 / -1; background: var(--flaeche); border: 1px dashed var(--linie); padding: 28px; border-radius: var(--r); color: var(--text2); }
.hint { margin-top: 28px; }

/* ----- Aktuelles ----- */
.artikel { padding-block: 40px; border-top: 3px solid var(--tinte); }
.artikel:first-child { border-top: 0; padding-top: 0; }
.artikel h2 { margin: 12px 0 18px; font-size: clamp(2rem, 4vw, 2.8rem); }
.artikel p { color: var(--text2); max-width: 68ch; }
.artikel .lead { color: var(--tinte); }

/* ----- Formular ----- */
.formular { display: grid; gap: 16px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); min-width: 0; }
.formular label { display: grid; gap: 6px; font-weight: 600; }
.formular input:not([type=checkbox]), .formular select, .formular textarea { width: 100%; font: inherit; font-weight: 400; color: var(--tinte); background: var(--papier); border: 2px solid var(--linie); border-radius: 2px; padding: 11px 12px; }
.formular input:focus, .formular select:focus, .formular textarea:focus { border-color: var(--tinte); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.pflicht { color: var(--rot-text); }
.formular .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text2); font-size: .95rem; }
.formular .check input { margin-top: 5px; accent-color: var(--rot); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { background: #fde8e7; color: #8f1611; border-left: 4px solid var(--rot); padding: 12px 14px; }
.ok-box { background: #e3f4e7; color: #1d5b2c; border-left: 4px solid #2f9e44; padding: 14px 16px; font-weight: 600; }
.result { display: grid; gap: 10px; }
.result pre { white-space: pre-wrap; background: var(--papier); padding: 14px; border-radius: 2px; overflow-x: auto; font-size: .9rem; }

/* ----- Rechtliches ----- */
.doc { max-width: 820px; }
.doc h2 { font-size: 1.8rem; margin: 40px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.25rem; margin: 24px 0 10px; }
.doc p, .doc li { color: var(--text2); }
.doc strong { color: var(--tinte); }

/* ----- Fuß ----- */
footer { background: var(--nacht-tief); color: var(--nacht-text2); padding-block: 0 24px; position: relative; overflow: hidden; }
footer .wrap { padding-top: 64px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.fgrid > * { min-width: 0; }
.flogo { width: 206px; height: auto; margin-bottom: 16px; display: block; }
footer h2 { font-size: 1.15rem; color: var(--nacht-text); margin-bottom: 14px; letter-spacing: .08em; }
footer address { font-style: normal; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--nacht-text); text-decoration: none; }
footer a:hover { color: #ff6a5f; }
.zeiten { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-top: 12px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.legal nav { display: flex; gap: 20px; }

/* ===== Bewegung ===== */
/* Dachlandschaft im Kopf der Unterseiten */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(70px, 9vw, 120px); overflow: hidden; pointer-events: none; }
.skyline svg { position: absolute; left: 50%; bottom: 0; width: 2400px; height: 150px; transform: translateX(-50%); }
.sk-hinten { fill: #fff; opacity: .05; }
.sk-vorn { fill: #fff; opacity: .09; }
.js .skyline .sk-hinten, .js .skyline .sk-vorn { animation: steigen 1.1s cubic-bezier(.2,.7,.2,1) both; }
.js .skyline .sk-vorn { animation-delay: .15s; }
@keyframes steigen { from { transform: translateY(60px); } to { transform: none; } }
/* Überschriften erscheinen */
.js .page-hero h1, .js .page-hero p, .js .page-hero .eyebrow { animation: auftauchen .7s cubic-bezier(.2,.7,.2,1) both; }
.js .page-hero h1 { animation-delay: .08s; }
.js .page-hero p { animation-delay: .18s; }
.js .hero h1 .z { animation: auftauchen .8s cubic-bezier(.2,.7,.2,1) both; }
.js .hero h1 .z.rot { animation-name: reinschieben; animation-delay: .15s; }
.js .hero .unter, .js .hero .lead { animation: auftauchen .7s .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes auftauchen { from { transform: translateY(22px); opacity: .01; } to { transform: none; opacity: 1; } }
@keyframes reinschieben { from { transform: translateX(-40px); opacity: .01; } to { transform: none; opacity: 1; } }
/* Biberschwanz-Traufe: Ziegel fallen beim Laden ein */
.js .biber { animation: decken 1s steps(8) both; }
@keyframes decken { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* Laufband */
.band { background: var(--rot); color: #fff; overflow: hidden; padding-block: 16px; }
.band .lauf { display: flex; width: max-content; animation: laufen 55s linear infinite; }
.band:hover .lauf { animation-play-state: paused; }
.band ul { list-style: none; display: flex; margin: 0; padding: 0; }
.band li { display: flex; align-items: center; gap: 26px; padding-right: 26px; font: 800 clamp(1.5rem, 3vw, 2.2rem)/1 var(--f-disp); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.band li::after { content: ""; width: 34px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath d='M2 22 26 2M38 22 14 2' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; opacity: .7; }
@keyframes laufen { to { transform: translateX(-50%); } }
/* Karten: Muster bewegt sich beim Überfahren */
.karte::before { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.karte:hover::before { transform: rotate(-4deg) scale(1.06); }
.btn { transition: transform .15s, background-color .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.meldung, .lk a, .sprung a { transition: border-color .15s, color .15s, transform .2s; }
.meldung:hover { transform: translateY(-3px); }
/* Dach-Probierer: Hinweis, dass er sich selbst vorführt */
.probier .hinweis.spielt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rot); margin-right: 8px; animation: puls 1.4s ease-in-out infinite; vertical-align: 1px; }
@keyframes puls { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  .js .skyline .sk-hinten, .js .skyline .sk-vorn, .js .page-hero h1, .js .page-hero p, .js .page-hero .eyebrow, .js .hero h1 .z, .js .hero .unter, .js .hero .lead, .js .biber { animation: none; }
  .band .lauf { animation: none; }
  .karte::before, .btn, .meldung { transition: none; }
}

/* ===== Weitere Animationen ===== */
/* Himmel im Dach-Probierer */
.haus .wolke { fill: #fff; opacity: .9; }
.haus .w1 { animation: ziehen 46s linear infinite; }
.haus .w2 { animation: ziehen 64s -30s linear infinite; opacity: .7; }
@keyframes ziehen { from { transform: translate(-80px, 70px); } to { transform: translate(640px, 70px); } }
.haus .w2 { animation-name: ziehen2; }
@keyframes ziehen2 { from { transform: translate(-60px, 120px); } to { transform: translate(640px, 104px); } }
.haus .voegel path { fill: none; stroke: var(--text2); stroke-width: 1.6; stroke-linecap: round; }
.haus .voegel { animation: fliegen 28s -6s linear infinite; }
@keyframes fliegen { 0% { transform: translate(-60px, 60px); } 50% { transform: translate(300px, 30px); } 100% { transform: translate(640px, 50px); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .haus .wolke { fill: #3a4650; } }
:root[data-theme="dark"] .haus .wolke { fill: #3a4650; }
/* Eindecken beim Materialwechsel: Dach legt sich Reihe für Reihe von der Traufe zum First */
.haus .eindecken { animation: eindecken .7s steps(7) both; }
@keyframes eindecken { from { clip-path: inset(0 0 0 0 round 0); opacity: .25; } to { clip-path: inset(0); opacity: 1; } }
.stoffe button[aria-pressed="true"] i { animation: wippen .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes wippen { 40% { transform: scale(1.25) rotate(-8deg); } }
.werte b { display: inline-block; transition: color .3s; }
.werte b.neu { animation: tick .4s ease-out; }
@keyframes tick { 40% { transform: translateY(-4px); color: var(--rot-text); } }
/* Giebel-Zeichen zeichnet sich */
.giebel path { stroke-dasharray: 34; stroke-dashoffset: 0; }
.js .sec-head .giebel path, .js .split .giebel path { stroke-dashoffset: 34; transition: stroke-dashoffset .7s .1s ease-out; }
.js .da .giebel path, .js .da.giebel path { stroke-dashoffset: 0; }
/* Gestaffeltes Einblenden (Verzögerung setzt main.js) */
.js .rv { transition-delay: var(--v, 0s); }
.js .karten .karte.rv { transform: translateY(24px) scale(.98); }
.js .karten .karte.rv.da { transform: none; }
.js .vorteile li.rv { transform: translateX(-18px); }
.js .vorteile li.rv.da { transform: none; }
/* Leiter: Sprossen fahren aus */
.js .leiter li.rv::before { transform: scaleX(0); transform-origin: left; transition: transform .5s var(--v, 0s) cubic-bezier(.2,.7,.2,1); }
.js .leiter li.rv.da::before { transform: scaleX(1); }
/* Ablauf: Ziegel fallen ein */
.js .ablauf li.rv::before { transform: translateY(-30px) rotate(-12deg); transition: transform .6s var(--v, 0s) cubic-bezier(.3,1.5,.5,1); }
.js .ablauf li.rv.da::before { transform: none; }
/* Gründe: Giebel-Symbol schwingt ein */
.js .gruende > .rv::before { transform: rotate(-20deg) scale(.6); transform-origin: 50% 100%; transition: transform .6s var(--v, 0s) cubic-bezier(.3,1.6,.5,1); }
.js .gruende > .rv.da::before { transform: none; }
/* Vorstand: Ziegel wackeln beim Überfahren */
.person:hover .ziegel { animation: wippen .6s cubic-bezier(.3,1.6,.5,1); }
.lk a:hover b { animation: tick .4s; }
/* Dunkle Abschnitte: Giebel-Wasserzeichen schwebt */
section.dunkel::after, .page-hero::after { animation: schweben 9s ease-in-out infinite alternate; }
@keyframes schweben { to { transform: translate(-24px, -10px) rotate(-3deg); } }
/* Hero: Pfeil im Suchknopf und Landkreis-Zahlen */
.kreise a:hover b { animation: tick .4s; }
@media (prefers-reduced-motion: reduce) {
  .haus .w1, .haus .w2, .haus .voegel, .haus .eindecken, .stoffe button i, .werte b.neu, .person:hover .ziegel, section.dunkel::after, .page-hero::after { animation: none !important; }
  .js .sec-head .giebel path, .js .split .giebel path { stroke-dashoffset: 0; transition: none; }
  .js .leiter li.rv::before, .js .ablauf li.rv::before, .js .gruende > .rv::before { transform: none; transition: none; }
}
@media (max-width: 1440px) and (min-width: 1261px) { .brand-txt { display: none; } }
