/* Novagreen Energy – Designsystem „Fließbild“
   Die Seite ist aufgebaut wie ein Anlagenschema: Leitungen verbinden die Abschnitte, Knoten tragen Kennungen,
   und fünf Farben bedeuten überall dasselbe (Solarstrom, Netzstrom, Wärme, Kühlung, Frischluft).
   Zwei Schriften: Bricolage Grotesque für Aussagen und Lesetext, DM Mono für Kennungen, Werte und Beschriftungen. */

:root {
  /* Erdtöne: Waldgrün statt Nachtblau, Salbei und Stein statt Weiß (Philipps Wunsch vom 20.11.2026) */
  --tinte: #12291c; --tinte-2: #1a3326; --tinte-3: #2b4637;
  --papier: #dfe7d9; --blatt: #f6f8f1; --salbei: #ebf0e4; --nebel: #d5d9cf; --wald-tief: #0e2116;
  --linie: #bccab9; --grau: #4f6155; --grau-hell: #87998b;
  --gruen: #18a558; --gruen-d: #0d7a3f; --gruen-hell: #d9f3e4;
  --solar: #f5a800; --netz: #7b61ff; --waerme: #e8452c; --kuehl: #1e88e5; --luft: #12b5a6; --gas: #9a7b4f;
  --buehne: #e2ebe3;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gut: clamp(20px, 4.6vw, 88px);
  --max: 1560px;
  --kopf-h: 68px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 16px); }
body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--font); font-size: clamp(1rem, 0.94rem + 0.26vw, 1.19rem); line-height: 1.5;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--gruen); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gruen); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--tinte); color: #fff; padding: 10px 16px; border-radius: 8px; }
.sprung:focus { top: 12px; }

/* ---------- Schrift ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.028em; line-height: 1.02; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
h1, .aussage { font-size: clamp(2.5rem, 1.1rem + 5.4vw, 6.6rem); font-weight: 750; letter-spacing: -0.04em; line-height: 0.94; }
h2 { font-size: clamp(1.9rem, 1.1rem + 3vw, 4.1rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.75vw, 1.85rem); line-height: 1.12; letter-spacing: -0.02em; }
h4 { font-size: 1.05em; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem); line-height: 1.36; letter-spacing: -0.012em; max-width: 34em; }
.mono, .kennung { font-family: var(--mono); font-size: 0.74em; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.klein { font-size: 0.86em; color: var(--grau); }
.schmal { max-width: 40em; }
strong, b { font-weight: 650; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.35em; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 2.5rem 0; }

/* ---------- Raster ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.abschnitt { position: relative; padding-block: clamp(64px, 9vw, 150px); }
.abschnitt.eng { padding-block: clamp(44px, 6vw, 96px); }
.weiss { background: var(--salbei); }
.nebel { background: var(--nebel); }
.dunkel { background: var(--tinte); color: #eef3ec; --linie: #2e4a3a; --grau: #a3b6a8; }
.dunkel a:hover { text-decoration-color: var(--solar); }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.zwei.breit-links { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.zwei.breit-rechts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.vier { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); }
.fuenf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 36px); }
.mitte { align-items: center; }
.stapel > * + * { margin-top: 1.1em; }
.luft-oben { margin-top: clamp(28px, 4vw, 64px); }

/* Abschnittskopf: Kennung an einer Leitung, darunter die Überschrift */
.tag { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); margin-bottom: clamp(18px, 2.4vw, 34px); }
.tag::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gruen) 22%, transparent); flex: none; }
.tag::after { content: ""; height: 1.5px; flex: 1; background: linear-gradient(90deg, var(--linie), transparent); }
.tag[data-m="solar"]::before { background: var(--solar); box-shadow: 0 0 0 4px color-mix(in srgb, var(--solar) 25%, transparent); }
.tag[data-m="waerme"]::before { background: var(--waerme); box-shadow: 0 0 0 4px color-mix(in srgb, var(--waerme) 22%, transparent); }
.tag[data-m="kuehl"]::before { background: var(--kuehl); box-shadow: 0 0 0 4px color-mix(in srgb, var(--kuehl) 22%, transparent); }
.tag[data-m="luft"]::before { background: var(--luft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--luft) 22%, transparent); }
.tag[data-m="netz"]::before { background: var(--netz); box-shadow: 0 0 0 4px color-mix(in srgb, var(--netz) 22%, transparent); }
.kopfzeile { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 90px); align-items: end; margin-bottom: clamp(32px, 5vw, 80px); }
.kopfzeile .lead { color: var(--grau); }
.dunkel .kopfzeile .lead { color: #bccbbf; }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px; border-radius: 999px; border: 1.5px solid var(--tinte);
  background: transparent; color: var(--tinte); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s; }
.btn:hover { background: var(--tinte); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.haupt { background: var(--gruen); border-color: var(--gruen); color: #04200f; }
.btn.haupt:hover { background: var(--gruen-d); border-color: var(--gruen-d); color: #fff; }
.btn.klein { min-height: 42px; padding: 8px 18px; font-size: 0.92rem; }
.btn { white-space: nowrap; flex: none; }
.btn.hell { border-color: currentColor; color: inherit; }
.dunkel .btn:not(.haupt), .nacht .btn:not(.haupt) { border-color: #eef3ec; color: #eef3ec; }
.dunkel .btn:not(.haupt):hover, .nacht .btn:not(.haupt):hover { background: #eef3ec; color: var(--tinte); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 2px; }

/* ---------- Kopfzeile ---------- */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--kopf-h); color: var(--tinte); transition: background .25s, color .25s, box-shadow .25s; }
.kopf > .in { height: 100%; max-width: calc(var(--max) + 40px); margin-inline: auto; padding-inline: clamp(16px, 3vw, 44px); display: flex; align-items: center; gap: 14px; }
.kopf.fest { background: color-mix(in srgb, var(--papier) 88%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--linie); }
.kopf.nacht:not(.fest) { color: #f1f5ef; }
.marke { display: inline-flex; align-items: center; text-decoration: none; padding: 5px 9px; margin-left: -9px; border-radius: 11px; background: transparent; transition: background .25s; flex: none; }
.marke .logo { height: 44px; width: auto; display: block; }
/* Das Logo hat dunkelblaue Schrift: auf dunklem Grund (Nacht, Fuß) bekommt es eine weiße Fläche */
.kopf.nacht:not(.fest):not(.auf) .marke, .fuss .marke { background: #fff; }
.entwurf { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border: 1.5px dashed currentColor; border-radius: 6px; opacity: 0.75; }
.menue { margin-left: auto; display: flex; align-items: center; gap: clamp(8px, 1.6vw, 26px); }
.menue ul.haupt { display: flex; align-items: center; gap: clamp(2px, 1vw, 16px); list-style: none; margin: 0; padding: 0; }
.menue ul.haupt > li { margin: 0; position: relative; }
.menue ul.haupt > li > a, .menue ul.haupt > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px; border: 0; background: none; cursor: pointer; text-decoration: none; font-weight: 550; font-size: 0.98rem; border-radius: 8px; color: inherit; }
.menue ul.haupt > li > a:hover, .menue ul.haupt > li > button:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.menue [aria-current="page"], .menue button.akt { box-shadow: inset 0 -2px 0 var(--gruen); border-radius: 8px 8px 0 0; }
.hat-sub > button::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.hat-sub > button[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.sub { position: absolute; top: calc(100% + 10px); left: -14px; min-width: 310px; list-style: none; margin: 0; padding: 10px; background: var(--blatt); color: var(--tinte); border-radius: var(--r); box-shadow: 0 24px 60px -18px rgba(18, 41, 28, .35), 0 0 0 1px var(--linie); display: none; }
.hat-sub > button[aria-expanded="true"] + .sub { display: block; }
.sub li { margin: 0; }
.sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.sub a:hover { background: var(--papier); }
.sub a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--linie); flex: none; }
[data-m="solar"]::before { background: var(--solar) !important; } [data-m="netz"]::before { background: var(--netz) !important; } [data-m="waerme"]::before { background: var(--waerme) !important; }
[data-m="kuehl"]::before { background: var(--kuehl) !important; } [data-m="luft"]::before { background: var(--luft) !important; } [data-m="gruen"]::before { background: var(--gruen) !important; }
.menue-knopf { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; border-radius: 10px; }
.menue-knopf span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2.2px; background: currentColor; border-radius: 2px; transition: transform .25s, top .25s; }
.menue-knopf span:nth-child(1) { top: 17px; } .menue-knopf span:nth-child(2) { top: 27px; }
.menue-knopf[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menue-knopf[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Bühne: das 3D-Haus ---------- */
.buehne { position: relative; background: var(--buehne); color: var(--tinte); overflow: hidden; isolation: isolate; }
.buehne.nacht { color: #eef3ec; --linie: #2e4a3a; --grau: #a3b6a8; }
.buehne canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; opacity: 0; transition: opacity .8s; outline-offset: -4px; }
.buehne.bereit canvas.gl { opacity: 1; }
.buehne .ersatz { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: 62% 50%; opacity: 1; transition: opacity .8s; }
.buehne.bereit .ersatz { opacity: 0; pointer-events: none; }
.buehne.ohne3d .ersatz { opacity: 1; }
.buehne.ohne3d canvas.gl { display: none; }
.buehne > .ueber { position: relative; z-index: 2; pointer-events: none; }
.buehne > .ueber :is(a, button, input, select, label, .zeig) { pointer-events: auto; }
.lade { position: absolute; right: 18px; bottom: 16px; z-index: 3; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); transition: opacity .5s; }
.bereit .lade, .ohne3d .lade { opacity: 0; }
/* Beschriftungen am Modell */
.marken { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.m3 { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .35s; will-change: transform; }
.m3.an { opacity: 1; }
.m3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--farbe, var(--gruen)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--farbe, var(--gruen)) 30%, transparent); margin-left: -4.5px; flex: none; }
.m3 span { padding: 4px 9px; border-radius: 6px; background: color-mix(in srgb, var(--blatt) 90%, transparent); color: var(--tinte); box-shadow: 0 2px 10px -4px rgba(18, 41, 28, .4); }
.m3.links { flex-direction: row-reverse; } .m3.links::before { margin-left: 0; margin-right: -4.5px; }
button.m3 { pointer-events: auto; cursor: pointer; border: 0; background: none; padding: 0; }
button.m3:hover span, button.m3.akt span { background: var(--tinte); color: #fff; }

/* Schalter, Auswahl, Legende */
.schalter { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 12px; border-radius: 12px; border: 1.5px solid var(--linie); background: color-mix(in srgb, var(--blatt) 82%, transparent); color: var(--tinte); cursor: pointer; text-align: left; transition: border-color .18s, background .18s; }
.schalter:hover { border-color: var(--tinte); }
.schalter .knebel { width: 40px; height: 24px; border-radius: 99px; background: #b8c2c8; position: relative; flex: none; transition: background .2s; }
.schalter .knebel::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.schalter[aria-pressed="true"] .knebel { background: var(--farbe, var(--gruen)); }
.schalter[aria-pressed="true"] .knebel::after { transform: translateX(16px); }
.schalter .name { font-weight: 600; font-size: 0.98rem; line-height: 1.15; }
.schalter .kz { margin-left: auto; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--grau); }
.wahl { display: inline-flex; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--blatt) 78%, transparent); border: 1.5px solid var(--linie); gap: 2px; }
.wahl { max-width: 100%; }
@media (max-width: 520px) { .wahl { flex-wrap: wrap; border-radius: 24px; } .wahl button { flex: 1 1 auto; } }
.wahl button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--tinte); min-height: 38px; }
.wahl button[aria-pressed="true"] { background: var(--tinte); color: #fff; }
.nacht .wahl { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.nacht .wahl button { color: #eef3ec; } .nacht .wahl button[aria-pressed="true"] { background: #eef3ec; color: var(--tinte); }
.nacht .schalter { background: rgba(18, 41, 28, .6); color: #eef3ec; border-color: rgba(255, 255, 255, .22); } .nacht .schalter:hover { border-color: #fff; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.legende li, .legende-klein span { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.legende li::before, .legende-klein span::before { content: ""; width: 18px; height: 5px; border-radius: 3px; background: var(--linie); }
.legende-klein { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }

/* ---------- Einstieg der Startseite ---------- */
.start { min-height: 100svh; display: grid; align-items: end; }
.start::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--buehne) 0%, color-mix(in srgb, var(--buehne) 86%, transparent) 24%, color-mix(in srgb, var(--buehne) 0%, transparent) 52%); }
.start > .ueber { padding: calc(var(--kopf-h) + 4vh) var(--gut) clamp(28px, 6vh, 70px); max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; width: 100%; }
.start h1 { max-width: 9.5em; }
.start .lead { margin-top: clamp(16px, 2.2vw, 30px); max-width: 21.5em; }
.wege { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(26px, 4.5vh, 56px); max-width: 980px; border-radius: 18px; background: color-mix(in srgb, var(--blatt) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 70px -30px rgba(18, 41, 28, .45), 0 0 0 1px color-mix(in srgb, var(--tinte) 10%, transparent); overflow: hidden; }
.wege { --grau: #4f6155; --linie: #bccab9; }   /* die Tafel bleibt hell, auch wenn die Bühne Nacht zeigt */
.wege a { display: grid; gap: 6px; padding: 20px 22px 22px; text-decoration: none; color: var(--tinte); position: relative; transition: background .2s; }
.wege a + a { border-left: 1px solid var(--linie); }
.wege a:hover { background: var(--blatt); }
.wege .kennung { color: var(--grau); display: flex; align-items: center; gap: 8px; }
.wege .kennung::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--farbe, var(--gruen)); }
.wege strong { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.wege span.t { font-size: 0.92rem; color: var(--grau); line-height: 1.35; }
.wege a:first-child { background: var(--gruen); color: #04200f; } .wege a:first-child .kennung, .wege a:first-child span.t { color: #0b3a1f; } .wege a:first-child .kennung::before { background: #04200f; }
.wege a:first-child:hover { background: #20b765; }
.start .steuer { position: absolute; z-index: 3; right: clamp(16px, 3vw, 44px); top: calc(var(--kopf-h) + 14px); display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hinweis-modell { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--grau); margin-top: 16px; }

/* ---------- Bausteine der Inhaltsseiten ---------- */
/* Seitenkopf ohne 3D */
.seitenkopf { --baum-h: clamp(48px, 6.5vw, 104px); padding: calc(var(--kopf-h) + clamp(44px, 8vw, 120px)) 0 calc(clamp(40px, 6vw, 90px) + var(--baum-h)); background: var(--papier); position: relative; }
/* Baumreihe am unteren Rand jedes Seitenkopfs (Zeichnung aus tools/baumreihe.py) */
.seitenkopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--baum-h); background: url(../img/baumreihe-hell.svg) repeat-x left bottom / auto 100%; pointer-events: none; }
.seitenkopf h1 { max-width: 12em; }
.seitenkopf .lead { margin-top: clamp(18px, 2.4vw, 34px); color: var(--tinte-3); }
.seitenkopf .btns { margin-top: clamp(22px, 3vw, 40px); }
.krume { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); margin-bottom: clamp(18px, 2.6vw, 36px); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.krume a { text-decoration: none; } .krume a:hover { text-decoration: underline; } .krume i { width: 18px; height: 1.5px; background: var(--linie); }

/* Zeilenliste: Kennung, Titel, Text an einer durchlaufenden Leitung */
.zeilen { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--tinte); }
.dunkel .zeilen { border-top-color: #eef3ec; }
.zeilen > li { display: grid; grid-template-columns: minmax(64px, 0.16fr) minmax(0, 0.9fr) minmax(0, 1.2fr); gap: clamp(14px, 3vw, 56px); padding: clamp(18px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--linie); margin: 0; align-items: baseline; }
.zeilen .nr { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--grau); }
.zeilen p { color: var(--tinte-3); margin: 0; }
.dunkel .zeilen p { color: #bccbbf; }
.zeilen a.zeig { text-decoration: none; display: block; }
.zeilen a.zeig:hover h3 { text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 3px; }

/* Schritte auf einer Leitung */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); position: relative; counter-reset: s; }
.schritte::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: linear-gradient(90deg, var(--solar), var(--gruen) 45%, var(--kuehl)); border-radius: 2px; transform-origin: left; }
.js .schritte::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); } .js .schritte.in::before { transform: scaleX(1); }
.schritte > li { counter-increment: s; padding: 44px clamp(12px, 1.6vw, 28px) 0 0; position: relative; margin: 0; }
.schritte > li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--blatt); border: 3px solid var(--tinte); }
.dunkel .schritte > li::before { background: var(--tinte); border-color: #eef3ec; }
.schritte > li::after { content: "0" counter(s); position: absolute; left: 30px; top: 0; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--grau); }
.schritte h3 { margin-bottom: 10px; hyphens: manual; }
.schritte p { font-size: 0.95em; color: var(--tinte-3); }
.dunkel .schritte p { color: #bccbbf; }

/* Felder: ruhige Blöcke mit Kopflinie statt Karten mit Schatten */
.feld { border-top: 3px solid var(--farbe, var(--tinte)); padding-top: 18px; }
.feld h3 { margin-bottom: 10px; }
.feld p { color: var(--tinte-3); font-size: 0.97em; }
.dunkel .feld p { color: #bccbbf; }
.feld .kennung { display: block; color: var(--grau); margin-bottom: 12px; }
.feld ul { padding-left: 1.05em; color: var(--tinte-3); font-size: 0.97em; }
a.feld { text-decoration: none; display: block; transition: transform .2s; } a.feld:hover { transform: translateY(-3px); } a.feld:hover h3 { text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 3px; }

/* Datenblatt */
.daten { margin: 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); border-top: 1.5px solid var(--tinte); }
.daten dt, .daten dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.daten dt { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grau); padding-right: 16px; align-self: stretch; display: flex; align-items: center; }
.dunkel .daten { border-top-color: #eef3ec; }

/* Hinweis und Quelle */
.hinweis { border-left: 4px solid var(--farbe, var(--solar)); background: color-mix(in srgb, var(--farbe, var(--solar)) 9%, var(--blatt)); padding: 18px 22px; border-radius: 0 12px 12px 0; font-size: 0.96em; }
.hinweis strong { display: block; margin-bottom: 4px; }
.dunkel .hinweis { background: rgba(255, 255, 255, .06); }
.quelle { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--grau); line-height: 1.5; margin-top: 12px; }
.quelle a { word-break: break-word; }
.todo { background: repeating-linear-gradient(-45deg, #fff3c4, #fff3c4 8px, #ffe9a0 8px, #ffe9a0 16px); color: #5a4300; padding: 1px 7px; border-radius: 5px; font-size: 0.92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.schaetzung { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; border: 1.5px dashed var(--grau-hell); color: var(--grau); }

/* Leitsatz, dessen Wörter in den Farben der Medien aufleuchten */
.leitsatz { font-size: clamp(1.9rem, 1rem + 3.6vw, 4.6rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.04; max-width: 17em; text-wrap: balance; }
.leitsatz .w { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 0.11em no-repeat; transition: background-size .9s cubic-bezier(.2, .7, .2, 1); padding-bottom: 0.04em; }
.leitsatz.in .w { background-size: 100% 0.11em; }
.leitsatz .w[data-m="solar"] { background-image: linear-gradient(var(--solar), var(--solar)); transition-delay: .1s; }
.leitsatz .w[data-m="waerme"] { background-image: linear-gradient(var(--waerme), var(--waerme)); transition-delay: .35s; }
.leitsatz .w[data-m="kuehl"] { background-image: linear-gradient(var(--kuehl), var(--kuehl)); transition-delay: .6s; }
.leitsatz .w[data-m="luft"] { background-image: linear-gradient(var(--luft), var(--luft)); transition-delay: .85s; }
.leitsatz .w[data-m="gruen"] { background-image: linear-gradient(var(--gruen), var(--gruen)); transition-delay: 1.1s; }

/* Matrix: Bereiche × Leistungen */
.matrix { width: 100%; border-collapse: collapse; font-size: 0.98em; }
.matrix th, .matrix td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.matrix thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); font-weight: 500; border-bottom: 1.5px solid var(--tinte); }
.matrix tbody th { font-weight: 650; font-size: 1.08em; letter-spacing: -0.015em; }
.matrix tbody th a { text-decoration: none; display: inline-flex; align-items: center; gap: 12px; } .matrix tbody th a:hover { text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 3px; }
.matrix tbody th a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--farbe, var(--linie)); flex: none; }
.matrix td .p { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--tinte); }
.matrix td .p.o { background: none; border: 2px solid var(--grau-hell); }
.matrix tr:hover td, .matrix tr:hover th { background: color-mix(in srgb, var(--gruen) 6%, transparent); }
.rollbar { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Türen: drei Einstiege nach Kundengruppe */
.tueren { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); }
.tuer { display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(240px, 26vw, 380px); padding: clamp(20px, 2.4vw, 36px); border-radius: 20px; text-decoration: none; background: var(--tinte-2); color: #eef3ec; position: relative; overflow: hidden; transition: transform .25s; }
.tuer:hover { transform: translateY(-4px); }
.tuer svg { position: absolute; right: -4%; top: 8%; bottom: auto; width: 52%; height: auto; opacity: 0.85; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tuer:hover svg { transform: translate(-3%, -3%) scale(1.03); }
.tuer .kennung { color: #a3b6a8; position: relative; }
.tuer h3 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem); position: relative; max-width: 8em; }
.tuer p { font-size: 0.95rem; color: #c5d3c8; max-width: 17em; position: relative; margin-top: 10px; }

/* Kontaktband */
.band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: end; }
.band .gross { font-size: clamp(1.7rem, 1rem + 2.7vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-decoration: none; display: block; }
.band .gross:hover { text-decoration: underline; text-decoration-color: var(--gruen); }

/* Fünf Angaben */
.angaben { list-style: none; margin: 0; padding: 0; counter-reset: a; display: grid; gap: 0; border-top: 1.5px solid currentColor; }
.angaben li { counter-increment: a; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--linie); margin: 0; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }
.angaben li::before { content: "0" counter(a); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--grau); font-weight: 500; }
.angaben li i { font-style: normal; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grau); font-weight: 500; }

/* Formulare */
.formular { display: grid; gap: 18px; }
.formular .reihe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.formular label, .formular legend { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grau); margin-bottom: 7px; font-weight: 500; padding: 0; }
.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular input[type="number"], .formular select, .formular textarea {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--tinte); background: var(--blatt); border: 1.5px solid var(--linie); border-radius: 11px; padding: 13px 14px; min-height: 52px; transition: border-color .15s, box-shadow .15s; }
.formular textarea { min-height: 170px; resize: vertical; line-height: 1.45; }
.formular :is(input, select, textarea):hover { border-color: var(--grau); }
.formular :is(input, select, textarea):focus { outline: none; border-color: var(--gruen); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gruen) 22%, transparent); }
.formular :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--waerme); }
.formular fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.formular .fehler { color: #b3261e; font-size: 0.88rem; margin-top: 6px; min-height: 1.2em; }
.haken { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.95rem; }
.haken input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gruen); }
.haken label { font: inherit; letter-spacing: 0; text-transform: none; color: var(--tinte); margin: 0; }
.kacheln { display: flex; flex-wrap: wrap; gap: 8px; }
.kacheln label { margin: 0; font: inherit; letter-spacing: 0; text-transform: none; color: var(--tinte); cursor: pointer; }
.kacheln input { position: absolute; opacity: 0; pointer-events: none; }
.kacheln span { display: inline-flex; align-items: center; min-height: 46px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--linie); background: var(--blatt); font-weight: 550; font-size: 0.97rem; transition: border-color .15s, background .15s, color .15s; }
.kacheln label:hover span { border-color: var(--tinte); }
.kacheln input:checked + span { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.kacheln input:focus-visible + span { outline: 3px solid var(--gruen); outline-offset: 2px; }
.status { padding: 16px 18px; border-radius: 12px; background: var(--nebel); font-size: 0.96rem; border-left: 4px solid var(--grau-hell); }
.status[data-art="ok"] { background: var(--gruen-hell); border-left-color: var(--gruen); }
.status[data-art="fehler"] { background: #fde7e3; border-left-color: var(--waerme); }
.status[data-art="offen"] { background: #fff5d6; border-left-color: var(--solar); }
.status:empty { display: none; }

/* Texte der Rechtsseiten */
.recht { max-width: 46em; }
.recht h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); margin: 2.2em 0 0.6em; letter-spacing: -0.02em; }
.recht h3 { font-size: 1.12em; margin: 1.6em 0 0.4em; }
.recht p, .recht li { color: var(--tinte-2); }

/* Bild mit Unterzeile */
.bild { margin: 0; border-radius: 18px; overflow: hidden; background: var(--nebel); position: relative; }
.bild img { width: 100%; height: auto; }
.bild figcaption { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase; background: color-mix(in srgb, var(--blatt) 88%, transparent); color: var(--tinte); padding: 5px 9px; border-radius: 6px; }

/* Werkzeug-Flächen der Bereichsseiten (Diagramme zum Bedienen) */
.werk { border-radius: 22px; background: var(--blatt); box-shadow: 0 0 0 1px var(--linie); padding: clamp(16px, 2.4vw, 36px); position: relative; }
.dunkel .werk { background: var(--tinte-2); box-shadow: 0 0 0 1px #2e4a3a; }
.werk svg { width: 100%; height: auto; max-height: min(58svh, 540px); overflow: visible; }
.werk .steuer { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 18px; }
.werk .sagt { margin-top: 16px; font-size: 1.02em; min-height: 3.2em; }
.regler { display: grid; gap: 6px; flex: 1; min-width: 220px; }
.regler label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grau); display: flex; justify-content: space-between; gap: 12px; }
.regler label b { color: var(--tinte); font-weight: 500; } .dunkel .regler label b { color: #fff; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: none; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--linie); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--linie); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--farbe, var(--gruen)); border: 4px solid var(--blatt); box-shadow: 0 1px 6px rgba(18, 41, 28, .4); margin-top: -10px; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--farbe, var(--gruen)); border: 4px solid var(--blatt); box-shadow: 0 1px 6px rgba(18, 41, 28, .4); }


/* Reiter: Liste links, Text rechts (Service, Elektro, Heizflächen, Für wen) */
.legende li[data-f]::before { background: var(--f); }
.reiter { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 70px); align-items: start; }
.reiter [role="tablist"] { display: grid; border-top: 1.5px solid var(--tinte); }
.reiter [role="tab"] { text-align: left; padding: 17px 10px 17px 0; border: 0; border-bottom: 1px solid var(--linie); background: none; cursor: pointer; font-weight: 650; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); letter-spacing: -0.018em; display: flex; gap: 14px; align-items: center; color: var(--grau); transition: color .2s, padding .2s; }
.reiter [role="tab"]::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--farbe, var(--grau-hell)); flex: none; transition: background .2s; }
.reiter [role="tab"]:hover { color: var(--tinte); }
.reiter [role="tab"][aria-selected="true"] { color: var(--tinte); padding-left: 10px; }
.reiter [role="tab"][aria-selected="true"]::before { background: var(--farbe, var(--gruen)); }
.reiter-feld { display: flex; gap: clamp(18px, 3vw, 44px); align-items: stretch; min-height: 250px; }
.reiter-feld > div:last-child { flex: 1; }
.reiter [role="tabpanel"] h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); margin-bottom: 16px; }
.pruefliste { list-style: none; margin: 0; padding: 0; }
.pruefliste li { position: relative; padding: 11px 0 11px 38px; border-bottom: 1px solid var(--linie); margin: 0; opacity: 0; transform: translateX(-10px); transition: opacity .45s, transform .45s; transition-delay: calc(var(--i, 0) * 110ms + 80ms); }
.in > .pruefliste li, html:not(.js) .pruefliste li { opacity: 1; transform: none; }
.pruefliste li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--farbe, var(--gruen)); }
.pruefliste li::after { content: ""; position: absolute; left: 8px; top: 18px; width: 8px; height: 5px; border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(-45deg); }
.pruefliste .quelle { margin-top: 4px; }
.thermo { display: grid; justify-items: center; gap: 10px; flex: none; text-align: center; color: var(--grau); }
.thermo-rohr { width: 26px; height: 210px; border-radius: 13px; border: 2.5px solid var(--tinte); padding: 3px; display: flex; align-items: flex-end; background: var(--blatt); }
.thermo-rohr i { display: block; width: 100%; border-radius: 9px; height: calc(var(--stand, 0.5) * 100%); background: linear-gradient(0deg, var(--gruen), #f5a800 55%, var(--waerme)); background-size: 100% 204px; background-position: bottom; transition: height .7s cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 860px) { .reiter { grid-template-columns: minmax(0, 1fr); } .reiter-feld { min-height: 0; } .thermo-rohr { height: 150px; } .thermo-rohr i { background-size: 100% 144px; } }
@media (prefers-reduced-motion: reduce) { .pruefliste li { opacity: 1; transform: none; } }

/* ---------- Fotos echter Anlagen (tools/fotos.py) ---------- */
.wald { background: var(--wald-tief); }
/* Waldrand wie über dem Fuß; der Abschnitt davor bekommt unten Platz dafür */
.waldrand { position: relative; z-index: 1; }
.waldrand::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(44px, 6vw, 96px); background: url(../img/baumreihe-dunkel.svg) repeat-x left bottom / auto 100%; pointer-events: none; }
.abschnitt:has(+ .waldrand) { padding-bottom: calc(clamp(64px, 9vw, 150px) + clamp(44px, 6vw, 96px)); }
.start:has(+ .waldrand) > .ueber { padding-bottom: calc(clamp(28px, 6vh, 70px) + clamp(44px, 6vw, 96px)); }
.mosaik img, .galerie img, .fotoband img, .karte .bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
/* Startseite: neun Fotos, das erste groß */
.mosaik { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 250px); gap: clamp(8px, 1vw, 14px); }
.mosaik a { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--tinte-2); }
.mosaik a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaik a:hover img, .karte:hover .bild img { transform: scale(1.03); }
.mosaik .etikett { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; background: rgba(14, 33, 22, .8); color: #eef3ec; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mosaik .etikett::before, .karte .kennung::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--farbe, var(--gruen)); flex: none; }
/* Bereichsseiten: drei Fotos */
.galerie { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(8px, 1vw, 14px); }
.galerie > figure, .fotoband > figure { margin: 0; overflow: hidden; border-radius: 14px; background: var(--tinte-2); height: clamp(260px, 32vw, 520px); }
.fotoband { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); margin-bottom: clamp(36px, 5vw, 72px); }
.fotoband > figure { height: clamp(150px, 20vw, 320px); }
/* Startseite: Bereiche als Karten mit Foto */
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.karte { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--blatt); color: var(--tinte); text-decoration: none; box-shadow: 0 0 0 1px var(--linie); transition: transform .25s, box-shadow .25s; }
.karte:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--linie), 0 26px 50px -30px rgba(18, 41, 28, .5); }
.karte .bild { display: grid; grid-template-rows: minmax(0, 1fr); aspect-ratio: 4 / 3; overflow: hidden; background: var(--nebel); }   /* Zeile fest, sonst bestimmt das Foto die Höhe */
.karte .bild.doppel { grid-template-columns: 1fr 1fr; gap: 3px; }
.karte .text { display: grid; align-content: start; gap: 8px; padding: 18px 20px 22px; }
.karte .kennung { display: flex; align-items: center; gap: 8px; color: var(--grau); }
.karte p { margin: 0; color: var(--tinte-3); font-size: 0.95em; }
.karte .zeichnung { place-items: center; background: color-mix(in srgb, var(--farbe) 14%, var(--salbei)); }
.zeichnung svg { width: 78%; height: auto; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.zeichnung .h { stroke: var(--tinte-3); } .zeichnung .l { stroke: var(--farbe); stroke-dasharray: 10 12; animation: laufen 2.6s linear infinite; }
@keyframes laufen { to { stroke-dashoffset: -44; } }
/* Bereichsseiten: Foto im Seitenkopf, steht vor der Baumreihe */
.seitenkopf.mit-foto .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 90px); align-items: end; }
.kopf-foto { position: relative; z-index: 1; margin: 0 0 calc(-0.6 * var(--baum-h)); overflow: hidden; border-radius: 20px; box-shadow: 0 34px 70px -34px rgba(18, 41, 28, .55); }
.kopf-foto img { width: 100%; height: auto; max-height: min(68vh, 600px); object-fit: cover; }
@media (max-width: 1100px) { .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .mosaik { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 40vw; }
  .mosaik a:nth-child(n+8) { display: none; }   /* am Handy sieben Fotos: das große und sechs kleine */
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie > figure { height: 46vw; } .galerie > figure:first-child { grid-column: 1 / -1; height: 62vw; }
  .seitenkopf.mit-foto .wrap { grid-template-columns: minmax(0, 1fr); }
  .kopf-foto img { max-height: 62vh; }
}
@media (max-width: 560px) {
  .karten { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .karte { flex-direction: row; }
  .karte .bild { flex: 0 0 34%; aspect-ratio: auto; min-height: 118px; }
  .karte .text { padding: 14px 16px 16px; gap: 5px; }
  .karte h3 { font-size: 1.15rem; }
  .karte p { font-size: 0.88rem; }
}
/* ---------- Fuß ---------- */
.fuss { background: var(--wald-tief); color: #d6e2d7; padding: clamp(48px, 7vw, 110px) 0 28px; font-size: 0.95rem; position: relative; }
/* Waldrand über dem Fuß: wächst in den unteren Rand des letzten Abschnitts, nicht höher als dessen Innenabstand */
.fuss::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(44px, 6vw, 96px); background: url(../img/baumreihe-dunkel.svg) repeat-x left bottom / auto 100%; pointer-events: none; }
.fuss-oben { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); }
.fuss h3 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #92a797; font-weight: 500; margin-bottom: 16px; }
.fuss ul { list-style: none; margin: 0; padding: 0; } .fuss li { margin-bottom: 9px; }
.fuss a { text-decoration: none; } .fuss a:hover { text-decoration: underline; text-decoration-color: var(--gruen); }
.fuss .marke { margin: 0 0 18px; } .fuss .marke .logo { height: 50px; }
.fuss-marke p { color: #adbfb1; max-width: 24em; } .fuss-marke .adr { color: #d6e2d7; line-height: 1.6; margin-top: 18px; }
.fuss-unten { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid #2e4a3a; margin-top: clamp(32px, 5vw, 70px); padding-top: 22px; color: #92a797; }
.fuss-unten p { margin: 0; }

/* ---------- Einblenden ---------- */
.js [data-r] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-r].in { opacity: 1; transform: none; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1180px) {
  .menue-knopf { display: block; }
  .menue { position: fixed; inset: var(--kopf-h) 0 0 0; background: var(--papier); color: var(--tinte); flex-direction: column; align-items: stretch; padding: 12px clamp(16px, 4vw, 40px) 40px; overflow-y: auto; gap: 18px; display: none; margin: 0; }
  .menue.offen { display: flex; }
  .menue ul.haupt { flex-direction: column; align-items: stretch; gap: 0; }
  .menue ul.haupt > li { border-bottom: 1px solid var(--linie); }
  .menue ul.haupt > li > a, .menue ul.haupt > li > button { width: 100%; justify-content: space-between; padding: 17px 4px; font-size: 1.2rem; font-weight: 650; border-radius: 0; }
  .menue [aria-current="page"], .menue button.akt { box-shadow: none; color: var(--gruen-d); }
  .sub { position: static; box-shadow: none; background: none; padding: 0 0 12px; min-width: 0; }
  .menue .btn { min-height: 54px; font-size: 1.05rem; }
  .kopf.auf { background: var(--papier); color: var(--tinte); }
  .fuss-oben { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fuss-marke { grid-column: 1 / -1; }
}
@media (max-width: 1240px) and (min-width: 861px) {
  .start h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
  .start .lead { max-width: 19.5em; font-size: 1.12rem; }
  .start::before { background: linear-gradient(90deg, var(--buehne) 0%, color-mix(in srgb, var(--buehne) 90%, transparent) 34%, color-mix(in srgb, var(--buehne) 0%, transparent) 60%); }
}
@media (max-width: 1100px) {
  h1, h2, h3 { hyphens: manual; }
  .kopfzeile, .band { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .vier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuenf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schritte { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .schritte::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--solar), var(--gruen) 45%, var(--kuehl)); transform-origin: top; }
  .js .schritte::before { transform: scaleY(0); } .js .schritte.in::before { transform: scaleY(1); }
  .schritte > li { padding: 0 0 30px 44px; } .schritte > li::before { top: 2px; } .schritte > li::after { left: 44px; top: -22px; position: static; display: block; margin-bottom: 4px; }
}
@media (max-width: 860px) {
  :root { --kopf-h: 60px; }
  .zwei, .zwei.breit-links, .zwei.breit-rechts, .drei, .tueren { grid-template-columns: minmax(0, 1fr); }
  .fuenf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zeilen > li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wege { grid-template-columns: minmax(0, 1fr); } .wege a + a { border-left: 0; border-top: 1px solid var(--linie); } .wege a { padding: 15px 18px 16px; }
  .formular .reihe { grid-template-columns: minmax(0, 1fr); }
  .daten { grid-template-columns: minmax(0, 1fr); } .daten dt { border-bottom: 0; padding-bottom: 0; } .daten dd { padding-top: 4px; }
  .tuer { min-height: 210px; }
  /* Startseite: Modell oben, Text darunter */
  .start { display: block; min-height: 0; }
  .start::before { display: none; }
  .start canvas.gl, .start .ersatz, .start .marken { position: absolute; inset: 0 0 auto 0; height: 58svh; }
  .start > .ueber { padding: calc(58svh + 6px) var(--gut) 36px; }
  .start .steuer { top: calc(58svh - 62px); right: 12px; left: 12px; justify-content: space-between; }
  .entwurf { font-size: 0.6rem; padding: 3px 7px; }
}
@media (max-width: 520px) {
  .marke .logo { height: 36px; } .marke { padding: 4px 7px; margin-left: -7px; }
  .vier, .fuenf { grid-template-columns: minmax(0, 1fr); }
  .fuss-oben { grid-template-columns: minmax(0, 1fr); }
  .btns .btn { width: 100%; }
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js [data-r] { opacity: 1; transform: none; }
  .js .schritte::before { transform: none; }
  .leitsatz .w { background-size: 100% 0.11em; }
}
@media print {
  .kopf, .fuss, .buehne canvas, .steuer { display: none !important; }
  body { background: #fff; }
}
