/* efflab.de - Nachtwald. Hell/dunkel nach Systemeinstellung, Hero und Fuss bleiben dunkel.
   Eine Datei, kein Build. Farben nur hier (Tokens). Bewegung nur transform/opacity. */
@font-face { font-family: "Krona One"; src: url("marke/schrift/KronaOne.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("marke/schrift/Montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --seite: #F3F5F1; --bg: #F3F5F1; --flaeche: #E9EEE5; --linie: #D3DAD0; --text: #16181D; --leise: #4A574D;
  --akz: #2E7D32; --knopf: #2E7D32; --knopf-text: #FFFFFF; --knopf-hover: #164B2D;
  --glas: rgba(243,245,241,.72); --glas-linie: rgba(22,24,29,.10); --kamm: #9DB09A;
  --marke: "Krona One", "Montserrat", sans-serif;
  --schrift: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rand: max(20px, 5vw);
  --kopf-h: 64px;
  --aus: cubic-bezier(.23, 1, .32, 1);
  --tag: 1; --nacht: 0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --seite: #0B0F0C; --bg: #0B0F0C; --flaeche: #111813; --linie: #223026; --text: #E8EEE6; --leise: #9AA79B;
    --akz: #9BCD3C; --knopf: #58B844; --knopf-text: #0B0F0C; --knopf-hover: #9BCD3C;
    --glas: rgba(11,15,12,.62); --glas-linie: rgba(232,238,230,.10); --kamm: #2F4A35; --tag: 0; --nacht: 1; }
}
.nacht { --bg: #0B0F0C; --flaeche: #111813; --linie: #223026; --text: #E8EEE6; --leise: #9AA79B;
  --akz: #9BCD3C; --knopf: #58B844; --knopf-text: #0B0F0C; --knopf-hover: #9BCD3C; --kamm: #2F4A35;
  background: var(--bg); color: var(--text); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--schrift); overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--akz); text-underline-offset: 3px; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--akz); outline-offset: 3px; border-radius: 4px; }
.breite { max-width: 1120px; margin-inline: auto; padding-inline: var(--rand); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--knopf); color: var(--knopf-text); padding: 12px 18px; border-radius: 10px; }
.skip:focus { top: 12px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.etikett { font: 500 14px/1.3 var(--schrift); letter-spacing: .3em; text-transform: uppercase; color: var(--akz); }
.etikett b { font-weight: 500; color: var(--akz); }
h1 { font: 400 clamp(25px, 4.6vw, 56px)/1.18 var(--marke); letter-spacing: .01em; text-wrap: balance; }
h2 { font: 400 clamp(22px, 3.2vw, 36px)/1.2 var(--marke); letter-spacing: .01em; text-wrap: balance; }
h3 { font: 500 19px/1.3 var(--schrift); }

/* ---------- Kopfleiste ---------- */
/* Grundzustand = ohne JS: Menue als Zeile unter dem Logo. Mit JS (Klasse .js): feste Glasleiste, am Handy Vollbild-Menue. */
.kopfleiste { position: relative; z-index: 50; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
.kopfleiste .breite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-block: 10px; position: relative; }
.logo-link { display: flex; align-items: center; min-height: 44px; flex: none; }
.logo-link img { height: 30px; width: auto; }
.l-dunkel { display: none !important; }
@media (prefers-color-scheme: dark) { .l-hell { display: none !important; } .l-dunkel { display: block !important; } }
.kopf-tel { display: none; width: 44px; height: 44px; margin-left: auto; place-items: center; color: var(--text); border-radius: 12px; touch-action: manipulation; }
.kopf-tel .ico { width: 24px; height: 24px; }
.js .kopf-tel { display: grid; }
.menuknopf { display: none; position: relative; z-index: 70; width: 48px; height: 48px; margin-right: -10px; border: 0; background: none; color: var(--text); cursor: pointer; touch-action: manipulation; border-radius: 12px; }
.menuknopf i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--aus), opacity .2s; }
.menuknopf i:nth-child(1) { top: 18px; } .menuknopf i:nth-child(2) { top: 29px; }
.menuknopf[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menuknopf[aria-expanded="true"] i:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }
.menue ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.menue a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; font: 500 16px/1 var(--schrift); color: var(--text); text-decoration: none; border-radius: 999px; }
.menue a[aria-current="page"] { color: var(--akz); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--knopf); color: var(--knopf-text);
  font: 600 17px/1 var(--schrift); text-decoration: none; border: 0; cursor: pointer; transition: transform .16s var(--aus), background-color .2s; touch-action: manipulation; }
.knopf:active { transform: scale(.97); }
.knopf.gross { min-height: 60px; padding: 0 34px; font-size: 19px; }
.menue li:last-child a { background: var(--knopf); color: var(--knopf-text); padding: 0 22px; font-weight: 600; }

.js .kopfleiste { position: fixed; inset: 0 0 auto; background: none; height: calc(var(--kopf-h) + env(safe-area-inset-top, 0px)); }
.js .kopfleiste::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glas);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--glas-linie); }
.js .kopfleiste .breite { flex-wrap: nowrap; height: var(--kopf-h); padding-block: 0; }
.js .menuknopf { display: block; margin-left: 0; }
.js .menue { position: fixed; inset: 0; z-index: 60; background: var(--bg); color: var(--text); display: grid; align-content: center; padding: 88px var(--rand) 48px;
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--aus), transform .25s var(--aus), visibility 0s .25s; }
.js .menue.offen { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.js .menue ul { display: grid; gap: 4px; }
.js .menue a { min-height: 56px; padding: 0; font-size: 24px; border-radius: 0; border-bottom: 1px solid var(--linie); }
.js .menue li:last-child a { justify-content: center; margin-top: 20px; border: 0; border-radius: 999px; padding: 0 28px; font-size: 19px; width: max-content; }
body.menue-auf { overflow: hidden; }
/* Ueber dem dunklen Hero: dunkles Glas, helle Schrift; danach sanft in den Seitenmodus */
.js .kopfleiste::before { transition: background-color .18s ease, border-color .18s ease; }
.js .kopfleiste .menuknopf, .js .kopfleiste .kopf-tel, .menue a { transition: color .18s ease, background-color .2s; }
.kopfleiste.ueber::before { background: rgba(11,15,12,.45); border-bottom-color: rgba(232,238,230,.10); }
.kopfleiste.ueber .l-hell { display: none !important; } .kopfleiste.ueber .l-dunkel { display: block !important; }
body:not(.menue-auf) .kopfleiste.ueber .menuknopf, body:not(.menue-auf) .kopfleiste.ueber .kopf-tel { color: #E8EEE6; }
@media (min-width: 960px) {
  .kopfleiste.ueber .menue a { color: #E8EEE6; }
  .kopfleiste.ueber .menue a[aria-current="page"] { color: #9BCD3C; }
  .kopfleiste.ueber .menue li:last-child a { background: #58B844; color: #0B0F0C; }
  .start .kopfleiste.ueber .menue li:last-child a { background: transparent; color: #E8EEE6; box-shadow: inset 0 0 0 1.5px rgba(232,238,230,.7); }
}

@media (min-width: 960px) {
  .js .kopf-tel { display: none; }
  .js .menuknopf { display: none; }
  .js .menue { position: static; display: block; padding: 0; background: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  .js .menue ul { display: flex; align-items: center; gap: 2px; }
  .js .menue a { min-height: 44px; padding: 0 14px; font-size: 16px; border: 0; border-radius: 999px; transition: background-color .2s; }
  .js .menue li:last-child a { margin: 0 0 0 10px; padding: 0 22px; }
}
@media (hover: hover) and (pointer: fine) {
  .menue a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
  .knopf:hover, .menue li:last-child a:hover { background: var(--knopf-hover); color: var(--knopf-text); }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Wald / Hero ---------- */
.held, .kopf-klein { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 55% at 50% 22%, rgba(40,86,46,.55), transparent 70%), linear-gradient(#0F1611, #0B0F0C); }
.held { min-height: 100svh; display: grid; align-content: center; padding: calc(var(--kopf-h) + 48px) 0 min(34vw, 300px); }
.held .breite, .kopf-klein .breite { position: relative; z-index: 2; }
.held::after, .kopf-klein::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(56px, 8vw, 100px); z-index: 1; pointer-events: none; background: var(--seite);
  -webkit-mask: url("marke/waldkante.svg") center bottom / 100% 100% no-repeat, linear-gradient(#000, #000) left bottom / 100% 12px no-repeat; mask: url("marke/waldkante.svg") center bottom / 100% 100% no-repeat, linear-gradient(#000, #000) left bottom / 100% 12px no-repeat; }
.held-text { display: grid; gap: 22px; justify-items: start; max-width: 880px; }
.held h1 { max-width: 15em; font-size: clamp(25px, 5.2vw, 60px); }
.held .unterzeile { font: 400 clamp(18px, 2vw, 22px)/1.4 var(--schrift); color: var(--leise); }
.held .knopf { margin-top: 10px; }
.wald { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lage { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform: translate3d(0, calc(var(--sy, 0) * var(--k, 0) * 1px), 0); }
.lage img { position: absolute; bottom: 0; left: 50%; width: max(135%, 1500px); max-width: none; height: auto; transform: translateX(-50%);
  animation: ziehen var(--d, 90s) ease-in-out infinite alternate; }
.lage.berg { --k: .03; } .lage.fern { --k: .07; --d: 140s; } .lage.mitte { --k: .13; --d: 110s; } .lage.nah { --k: .22; --d: 80s; }
.lage.berg img { bottom: -3%; opacity: .75; }
.lage.fern img { bottom: 6%; }
@keyframes ziehen { from { transform: translateX(-50%); } to { transform: translateX(calc(-50% - 56px)); } }
.nebel { position: absolute; left: -10%; right: -10%; height: 26%; bottom: 14%; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(155,205,60,.10), transparent 70%); animation: nebel 26s ease-in-out infinite alternate; }
.nebel.zwei { bottom: 30%; height: 22%; animation-duration: 34s; animation-direction: alternate-reverse; opacity: .7; }
@keyframes nebel { from { transform: translateX(-4%); opacity: .4; } to { transform: translateX(5%); opacity: 1; } }

.kopf-klein { padding: calc(var(--kopf-h) + 40px) 0 clamp(120px, 20vw, 190px); }
.kopf-klein .lage img { width: max(130%, 1100px); }
.kopf-klein .nah, .kopf-klein .fern, .kopf-klein .berg { display: none; }
.kopf-klein-text { display: grid; gap: 18px; max-width: 840px; }
.krumen ol { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 16px; color: var(--leise); }
.krumen li + li::before { content: "\203A"; margin-right: 10px; color: var(--akz); }
.krumen a { color: var(--leise); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.krumen [aria-current] { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.kopf-klein .unterzeile { font-size: clamp(18px, 2vw, 22px); color: var(--leise); }

/* ---------- Abschnitte ---------- */
.abschnitt { position: relative; padding-block: clamp(64px, 11vh, 128px); }
.abschnitt-kopf { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.kamm { display: block; height: 28px; background: var(--kamm); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 28' width='600' height='28'%3E%3Cpath d='M0,24 C50,24 80,8 130,10 S200,22 250,18 S320,4 370,7 S450,20 500,16 S570,22 600,22' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x left bottom / 600px 28px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 28' width='600' height='28'%3E%3Cpath d='M0,24 C50,24 80,8 130,10 S200,22 250,18 S320,4 370,7 S450,20 500,16 S570,22 600,22' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x left bottom / 600px 28px; }
.kamm.hoch { height: 28px; margin-top: -28px; position: relative; z-index: 3; }
main { position: relative; }
main > section, main > .kamm { position: relative; z-index: 1; }

/* Kacheln (Start) */
.kacheln { display: grid; gap: 14px; grid-template-columns: 1fr; }
.kachel { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 18px; padding: 22px 22px; min-height: 96px;
  background: transparent; border: 1px solid var(--linie); border-radius: 18px; color: var(--text); text-decoration: none; transition: transform .2s var(--aus), border-color .2s; touch-action: manipulation; }
.kachel .ico { width: 36px; height: 36px; color: var(--akz); grid-row: span 2; }
.kachel h3 { font-size: 20px; }
.kachel p { color: var(--leise); grid-column: 2; }
.kachel .pf { width: 22px; height: 22px; color: var(--akz); grid-row: span 2; grid-column: 3; transition: transform .2s var(--aus); }
.kachel:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .kachel:hover { border-color: var(--akz); background: var(--flaeche); transform: translateY(-2px); } .kachel:hover .pf { transform: translateX(4px); } }
@media (min-width: 760px) {
  .kacheln { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .kachel { grid-column: span 2; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start; gap: 12px; padding: 30px 28px 28px; min-height: 230px; }
  .kachel .ico { grid-row: auto; width: 40px; height: 40px; }
  .kachel p { grid-column: auto; }
  .kachel .pf { position: absolute; right: 24px; top: 28px; grid: none; }
  .kachel:nth-child(4), .kachel:nth-child(5) { grid-column: span 3; }
}

/* Raster (Leistungsseiten) */
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.raster:has(> li:nth-child(4):last-child), .karten-3:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; }
@media (min-width: 600px) { .raster:has(> li:nth-child(4):last-child), .karten-3:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .raster:has(> li:nth-child(4):last-child), .karten-3:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
.raster li { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-content: start; padding: 22px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; }
.raster .ico { width: 32px; height: 32px; color: var(--akz); grid-row: span 3; }
.raster h3 { font-weight: 500; }
.raster p { color: var(--leise); }
.raster .ab { font-size: 16px; color: var(--akz); } /* Platz fuer spaetere "ab ..."-Zeile */
.raster a { color: var(--text); text-decoration-color: var(--akz); }

/* Schritte entlang des S-Wegs */
.schritte { position: relative; display: grid; gap: 28px; counter-reset: s; }
.schritte li { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 18px; }
.schritte .kreis { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche); border: 1.5px solid var(--akz); color: var(--akz); z-index: 1; }
.schritte .kreis .ico { width: 28px; height: 28px; }
.schritte .kreis::after { counter-increment: s; content: counter(s); position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--knopf); color: var(--knopf-text); font: 600 13px/24px var(--schrift); text-align: center; }
.schritte h3 { font: 500 20px/1.3 var(--schrift); }
.schritte li:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 64px; height: 28px; border-left: 1.5px dashed var(--akz); opacity: .5; }
.schritte-zeile { margin-top: 28px; color: var(--leise); }
@media (min-width: 760px) {
  .schritte { grid-template-columns: repeat(3, 1fr); gap: 0; padding-block: 8px 20px; }
  .schritte li { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .schritte li:nth-of-type(2) { margin-top: 56px; }
  .schritte li:not(:last-child)::after { display: none; }
  .schritte .pfad { display: block; position: absolute; left: 16%; right: 16%; top: 28px; height: 110px; z-index: 0; }
}
.schritte .pfad { display: none; }
.schritte .pfad path { fill: none; stroke: var(--akz); stroke-width: 1.5; stroke-dasharray: 5 7; opacity: .6; vector-effect: non-scaling-stroke; }

/* snapshtr */
.snap { display: grid; gap: 36px; }
.snap-gross { font: 400 clamp(30px, 6vw, 72px)/1.1 var(--marke); letter-spacing: .01em; }
.snap-klein { color: var(--leise); }
.snap-schritte { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; max-width: 560px; }
.snap-schritte li { display: grid; justify-items: center; gap: 10px; text-align: center; font: 500 16px/1.2 var(--schrift); }
.snap-schritte .kreis { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--akz); color: var(--akz); background: var(--flaeche); }
.snap-schritte .kreis .ico { width: 28px; height: 28px; }
.snap-schritte .pf { width: 22px; height: 22px; color: var(--leise); }
@media (min-width: 900px) { .snap { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; } }

/* Karten */
.karte { display: grid; gap: 8px; padding: 28px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 18px; max-width: 560px; }
.karte h3 { font-size: 21px; }
.karte .leise { color: var(--leise); }
.link-pf { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--akz); font-weight: 500; text-decoration: none; }
.link-pf .ico { width: 20px; height: 20px; transition: transform .2s var(--aus); }
@media (hover: hover) and (pointer: fine) { .link-pf:hover { text-decoration: underline; } .link-pf:hover .ico { transform: translateX(3px); } }
.karten-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.karten-3 .karte { max-width: none; }

/* Effringen */
.effringen { text-align: left; display: grid; gap: 16px; }
.effringen .notiz { font: 500 clamp(18px, 2.4vw, 22px)/1.4 var(--schrift); }
.orte { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.orte li { padding: 8px 16px; border: 1px solid var(--linie); border-radius: 999px; font-size: 16px; }
.effringen .kamm { margin-top: 12px; }
.orte-zeile { color: var(--leise); }

/* Fragen */
.fragen { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 20px; font: 500 18px/1.35 var(--schrift); touch-action: manipulation; }
summary::-webkit-details-marker { display: none; }
summary .ico { width: 22px; height: 22px; flex: none; color: var(--akz); transition: transform .25s var(--aus); }
details[open] summary .ico { transform: rotate(45deg); }
details p { padding: 0 20px 18px; color: var(--leise); }

/* Kontakt */
.kontakt-raster { display: grid; gap: 28px; }
.wege { display: flex; flex-wrap: wrap; gap: 12px; }
.wege .knopf .ico { width: 22px; height: 22px; }
@media (max-width: 559px) { .wege .knopf { width: 100%; } }
.mailtext { display: flex; align-items: center; gap: 4px; font: 500 18px/1 var(--schrift); }
.mailtext span { user-select: all; -webkit-user-select: all; }
.kopier { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--akz); display: none; place-items: center; cursor: pointer; touch-action: manipulation; transition: transform .16s var(--aus); }
.js .kopier { display: inline-grid; }
.kopier:active { transform: scale(.94); }
.kopier .ico { width: 22px; height: 22px; }
.kopier .ja { display: none; } .kopier.ok .ja { display: block; } .kopier.ok .nein { display: none; }
.adresse { font-style: normal; display: grid; gap: 4px; color: var(--text); }
.adresse .leise, .ansprech { color: var(--leise); }
.kontakt-karte { display: grid; gap: 22px; padding: clamp(24px, 4vw, 44px); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 22px; }
.kontakt-karte h2 { font-size: clamp(22px, 2.6vw, 30px); }

/* Querverweise */
.quer { display: flex; flex-wrap: wrap; gap: 10px; }
.quer a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--linie); border-radius: 999px; color: var(--text); text-decoration: none; background: var(--flaeche); transition: border-color .2s; }
.quer .ico { width: 22px; height: 22px; color: var(--akz); }
@media (hover: hover) and (pointer: fine) { .quer a:hover { border-color: var(--akz); } }
.kurz { color: var(--leise); margin-bottom: 8px; }

/* Smart-Home-Bild */
.bild-haus { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--linie); background: var(--flaeche); }
.hs-himmel { fill: color-mix(in srgb, var(--akz) calc(var(--tag) * 8%), var(--bg)); }
.hs-linie { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.hs-wald { fill: none; stroke: var(--akz); stroke-width: 1.5; stroke-linejoin: round; opacity: .7; }
.hs-fenster { fill: var(--akz); opacity: calc(.15 + var(--nacht) * .75); }
.hs-sonne { fill: none; stroke: var(--akz); stroke-width: 1.5; opacity: var(--tag); }
.hs-mond { fill: none; stroke: var(--akz); stroke-width: 1.5; opacity: var(--nacht); }
.hs-stern { fill: var(--akz); opacity: calc(var(--nacht) * .7); }
.hs-fluss { fill: none; stroke: var(--akz); stroke-width: 1.5; opacity: .35; stroke-dasharray: 2 8; stroke-linecap: round; }
.hs-punkt { fill: var(--akz); opacity: 0; animation: punkt 4.8s ease-in-out infinite; }
.hs-punkt:nth-child(2) { animation-delay: .6s; } .hs-punkt:nth-child(3) { animation-delay: 1.2s; } .hs-punkt:nth-child(4) { animation-delay: 1.8s; } .hs-punkt:nth-child(5) { animation-delay: 2.4s; } .hs-punkt:nth-child(6) { animation-delay: 3s; } .hs-punkt:nth-child(7) { animation-delay: 3.6s; }
@keyframes punkt { 0%, 100% { opacity: 0; } 35%, 55% { opacity: 1; } }

/* Event-Zeitleiste */
.zeit { display: grid; gap: 0; max-width: 900px; margin-inline: auto; width: 100%; }
.zeit + .kurz { margin-top: 40px; text-align: center; }
.zeit li { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: center; min-height: 56px; font: 500 19px/1.3 var(--schrift); }
.zeit li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--knopf); justify-self: center; position: relative; z-index: 1; }
.zeit li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50%; height: 100%; border-left: 1.5px solid var(--akz); opacity: .5; }
@media (min-width: 700px) {
  .zeit { grid-template-columns: repeat(5, 1fr); }
  .zeit li { grid-template-columns: 1fr; justify-items: center; gap: 14px; text-align: center; min-height: 0; padding-top: 0; }
  .zeit li:not(:last-child)::after { left: 50%; top: 7px; height: 0; width: 100%; border-left: 0; border-top: 1.5px solid var(--akz); }
}

/* Projekte: Portal-Schaubild (HTML, echte Beschriftung) */
.portal { --stamm: 30px; display: grid; justify-items: center; max-width: 920px; margin-inline: auto; }
.pt-login { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 30px; border: 1.5px solid var(--akz); border-radius: 18px; background: var(--flaeche); font: 600 19px/1 var(--schrift); }
.pt-login .ico { width: 28px; height: 28px; color: var(--akz); }
.pt-login::after { content: ""; position: absolute; left: 50%; top: 100%; height: var(--stamm); border-left: 1.5px solid var(--akz); opacity: .45; }
.pt-kacheln { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; margin-top: var(--stamm); }
.pt-kacheln li { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 96px; padding: 14px 8px; border: 1px solid var(--linie); border-radius: 16px; background: var(--flaeche); font: 500 17px/1.2 var(--schrift); }
.pt-kacheln .ico { width: 30px; height: 30px; color: var(--akz); }
.pt-kacheln li::after { content: ""; position: absolute; inset: -1px; border-radius: 16px; border: 1.5px solid var(--akz); background: color-mix(in srgb, var(--akz) 14%, transparent); opacity: 0; animation: leucht 8.4s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 1.1s); pointer-events: none; }
.pt-kacheln li:nth-child(2) { --n: 1; } .pt-kacheln li:nth-child(3) { --n: 2; } .pt-kacheln li:nth-child(4) { --n: 3; } .pt-kacheln li:nth-child(5) { --n: 4; } .pt-kacheln li:nth-child(6) { --n: 5; }
@keyframes leucht { 0%, 22%, 100% { opacity: 0; } 5%, 14% { opacity: 1; } }
@media (min-width: 760px) {
  .portal { --stamm: 28px; }
  .pt-kacheln { grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: calc(var(--stamm) + 20px); }
  .pt-login::after { height: calc(var(--stamm) + 20px); }
  .pt-kacheln::before { content: ""; position: absolute; top: -20px; left: calc(100% / 12); right: calc(100% / 12); border-top: 1.5px solid var(--akz); opacity: .45; }
  .pt-kacheln li::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 20px; border-left: 1.5px solid var(--akz); opacity: .45; }
}
.systeme { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.system { display: grid; gap: 6px; padding: 24px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; align-content: start; }
.system .ico { width: 32px; height: 32px; color: var(--akz); }
.system p { color: var(--leise); }
.stich { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px; }
.stich li { max-width: 100%; padding: 4px 12px; border: 1px solid var(--linie); border-radius: 17px; font-size: 16px; color: var(--leise); overflow-wrap: anywhere; }
.stichgross { gap: 10px; margin: 0; }
.stichgross li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; color: var(--text); background: var(--flaeche); border-color: transparent; }
.stichgross .ico { width: 22px; height: 22px; color: var(--akz); }

/* Fuss */
.fuss { position: relative; margin-top: clamp(80px, 12vw, 140px); }
@media (prefers-color-scheme: dark) { .fuss { background: #0F1611; } }
.fuss-wald { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(70px, 10vw, 120px); color: #0B0F0C; }
@media (prefers-color-scheme: dark) { .fuss-wald { color: #0F1611; } }
.fuss-wald svg { width: 100%; height: 100%; fill: currentColor; }
.fuss-innen { padding-block: 40px calc(36px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 32px; }
.fuss-logo { height: 34px; width: auto; }
.fuss-spalten { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); font-size: 16px; }
.fuss h2 { font: 500 14px/1.3 var(--schrift); letter-spacing: .24em; text-transform: uppercase; color: var(--akz); margin-bottom: 8px; }
.fuss ul { display: grid; gap: 0; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.fuss .adresse { gap: 2px; line-height: 1.6; }
.fuss-ende { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--linie); color: var(--leise); font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .fuss a:hover { color: var(--akz); } }

/* Rechtstexte / 404 */
.recht { padding: calc(var(--kopf-h) + 56px) 0 0; }
.recht h1 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 28px; }
.recht h2 { font: 500 19px/1.3 var(--schrift); letter-spacing: 0; margin: 32px 0 8px; }
.recht p, .recht address { font-style: normal; max-width: 68ch; }
.recht p + p { margin-top: 10px; }
.entwurf { margin-bottom: 24px; padding: 10px 16px; border-left: 3px solid var(--akz); background: var(--flaeche); color: var(--leise); font-size: 16px; }
.leer { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 22px; }

/* Einblenden */
.ein:nth-child(2) { --i: 1; } .ein:nth-child(3) { --i: 2; } .ein:nth-child(4) { --i: 3; } .ein:nth-child(5) { --i: 4; } .ein:nth-child(6) { --i: 5; } .ein:nth-child(n+7) { --i: 6; }
.js .ein { opacity: 0; transform: translateY(12px); transition: opacity .28s var(--aus) calc(var(--i, 0) * 40ms), transform .28s var(--aus) calc(var(--i, 0) * 40ms); animation: zeig .01s 1.6s forwards; }
.js .ein.da { opacity: 1; transform: none; animation: none; }
.js .ein.sofort { transition: none; }
@keyframes zeig { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lage { transform: none; }
  .hs-punkt { opacity: .8; }
  .pt-kacheln li::after { opacity: 0; }
  .js .ein { opacity: 1; transform: none; }
}

.kontakt-links { display: grid; gap: 20px; align-content: start; }
#gebaut .breite { display: grid; gap: 28px; }
#gebaut .abschnitt-kopf, #gebaut .quer, #gebaut .schritte-zeile { margin: 0; }
.etikett-h { font: 400 clamp(15px, 2vw, 18px)/1.3 var(--marke); color: var(--akz); letter-spacing: .02em; margin-bottom: 18px; }
.snap > div:first-child { display: grid; gap: 14px; justify-items: start; }
.snap > div:first-child .etikett-h { margin-bottom: 8px; }
.snap-knopf { margin-top: 8px; }
.snap-band { padding-block: clamp(72px, 12vh, 140px); }
.karte.klein { max-width: 560px; }
.portal-zeile { margin: 22px 0 36px; text-align: center; }
.abschluss { display: grid; gap: 22px; justify-items: start; }
.kurz-abschnitt { padding-block: 24px; }
.kurz-abschnitt .kamm { margin-bottom: 14px; }
.orte-zeile + .orte-zeile { margin-top: 6px; }
.raster + .kurz { margin-top: 24px; }
.kopier .ico { width: 20px; height: 20px; }

@media (min-width: 760px) { .schritte .pfad { display: block; } }

.recht a[href^="mailto"], .recht a[href^="tel"] { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
main:focus { outline: none; }
.nacht.abschnitt { background: linear-gradient(#0F1611, #0B0F0C); }
.nacht.abschnitt .kamm { --kamm: #2F4A35; }
