/* NQ-Anlagentechnik – Stylesheet der neuen Webseite */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-wght-italic.woff2) format('woff2-variations'); }

:root {
  --teal: #13797d; --teal-600: #0f6569; --teal-700: #0b5255; --teal-900: #073b3d;
  --teal-50: #eaf5f5; --teal-100: #d3ebeb;
  --lime: #bac75d; --lime-600: #93a32b; --lime-700: #6f7d18; --lime-50: #f6f8e4;
  --ink: #17222b; --ink-2: #41535a; --muted: #6b7c80; --line: #dcdfd6; --line-2: #ebebe3;
  --bg: #f4f2ec; --card: #ffffff; --paper: #faf8f3; --night: #0b1320; --night-2: #101c2b; --raster: rgba(15, 120, 125, .11); --raster-fein: rgba(15, 120, 125, .05);
  --shadow: 0 10px 30px rgba(7, 59, 61, .08), 0 2px 6px rgba(7, 59, 61, .06);
  --shadow-lg: 0 24px 60px rgba(7, 59, 61, .16);
  --radius: 16px; --radius-sm: 10px;
  --wrap: 1200px; --gutter: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); font-feature-settings: 'cv11', 'ss01'; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4, .titel { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ic, .chev { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.ic svg, .chev svg, .step-icon svg, button svg { width: 100%; height: 100%; fill: currentColor; }
.kicker { display: inline-flex; align-items: center; gap: .45em; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal); margin: 0 0 .6em; }
.kicker .ic { color: var(--lime-600); }
small { font-size: .85em; }
.small { font-size: .9rem; color: var(--muted); }
.note { background: var(--teal-50); border-left: 4px solid var(--teal); padding: .8em 1em; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; text-decoration: none; font-family: inherit; }
.btn .ic { transition: transform .15s ease; }
.btn:hover .ic { transform: translateX(3px); }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(19, 121, 125, .3); }
.btn-primary:hover { background: var(--teal-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal-100); }
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-50); color: var(--teal-700); }
.btn-light { background: #fff; color: var(--teal-700); }
.btn-light:hover { background: var(--lime-50); color: var(--teal-900); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--night); color: #cfe5e5; font-size: .82rem; }
.topbar .emergency span, .facts strong { font-variant-numeric: tabular-nums; }
.topbar .wrap { display: flex; gap: 1.4em; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #e4f1f1; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: #fff; }
.topbar .emergency { color: #e3eaa6; }
.topbar .spacer { flex: 1; }
.navbar .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 78px; }
.brand img { height: 44px; width: auto; }
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: .25rem; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: .25em; padding: .7em .85em; color: var(--ink); font-weight: 600; font-size: .98rem; border-radius: 10px; }
.main-nav > ul > li > a .chev { width: 1em; height: 1em; opacity: .55; transition: transform .2s; }
.main-nav > ul > li:hover > a, .main-nav > ul > li.open > a, .main-nav > ul > li.active > a { color: var(--teal); background: var(--teal-50); }
.main-nav > ul > li.open > a .chev { transform: rotate(180deg); }
.nav-mobile-extra { display: none; }
.sub { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; border: 1px solid var(--line-2); }
.main-nav li:hover > .sub, .main-nav li.open > .sub, .main-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(4px); }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub a { display: block; padding: .55em .8em; border-radius: 8px; color: var(--ink-2); font-size: .95rem; }
.sub a:hover { background: var(--teal-50); color: var(--teal-700); }
.navbar .wrap { position: relative; }
.main-nav > ul > li.mega { position: static; }
.mega-panel { left: 0; right: 0; width: 100%; padding: 1.25rem; }
.mega-inner { display: grid; grid-template-columns: repeat(4, 1fr) 180px; gap: 1.2rem; }
.mega-col .titel { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: .4em .8em .5em; }
.mega-all { display: flex; align-items: flex-end; }
.nav-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 8px; color: var(--teal-900); cursor: pointer; border-radius: 10px; }
.nav-toggle .close { display: none; }
.nav-toggle[aria-expanded="true"] .open { display: none; }
.nav-toggle[aria-expanded="true"] .close { display: block; }

/* Hero (Start) */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; padding-top: clamp(4.5rem, 9vw, 8rem); background: var(--night); min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: flex-end; }
/* Scroll-Reise der Startseite: feststehende Bühne, Kamera fährt beim Scrollen in die Szene (js/site.js) */
.reise { position: relative; background: #07120b; color: #fff; }
.buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: linear-gradient(#050b17 40%, #07120b 60%); }
.szene-box { --bw: max(100vw, 177.78vh); position: absolute; left: 50%; bottom: 0; width: var(--bw); height: calc(var(--bw) * .5625); margin-left: calc(var(--bw) / -2); }
@supports (height: 100svh) { .szene-box { --bw: max(100vw, 177.78svh); } }
.ebene { position: absolute; inset: 0; transform-origin: 0 0; }
.ebene > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; display: block; }
.ebene.breit > img { left: -50%; width: 200%; }
.ebene .schnitt { opacity: 0; transition: opacity .7s ease; }
.ebene .schnitt.an { opacity: 1; }
/* Bewegte Teile der Schnittbilder (Rührwerk, Gasblasen, Membran, Strömung, Wärmefluss, Abgasfahne): kleine eigene Flächen,
   bewegt nur über transform/opacity und nur an der aktiven Station – die große Szene wird dafür nicht neu gezeichnet. */
.trick { position: absolute; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s ease, visibility 0s .7s; }
.trick.an { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.trick > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; display: block; }
.trick.blasen { overflow: hidden; }
.trick.blasen > img { height: 200%; }
.trick.membran > img { transform-origin: 50% 100%; }
.trick.punkt > img, .trick.rauch > img { opacity: 0; }
.trick.an.dreh > img { animation: nq-dreh 3.6s ease-in-out infinite; }
.trick.an.blasen > img { animation: nq-steig 9s linear infinite; }
.trick.an.blasen > img + img { animation-duration: 6.5s; }
.trick.an.membran > img { animation: nq-atem 9s ease-in-out infinite; }
.trick.an.strom > img { animation: nq-strom 2.6s linear infinite; }
.trick.an.auf > img { animation: nq-auf 2.4s linear infinite; }
.trick.an.rot > img { animation: nq-rot 3.2s linear infinite; }
.trick.an.blau > img { animation: nq-blau 3.2s linear infinite; }
.trick.an.rauch > img { animation: nq-rauch 6s linear infinite; }
@keyframes nq-dreh { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes nq-steig { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes nq-atem { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.86); } }
@keyframes nq-strom { 0% { transform: translate3d(-5%, 0, 0); opacity: 0; } 25%, 70% { opacity: 1; } 100% { transform: translate3d(5%, 0, 0); opacity: 0; } }
@keyframes nq-auf { 0% { transform: translate3d(0, 30%, 0); opacity: 0; } 25%, 65% { opacity: 1; } 100% { transform: translate3d(0, -35%, 0); opacity: 0; } }
@keyframes nq-rot { 0% { transform: translate(0, 0); opacity: 0; } 5% { opacity: 1; } 13.8% { transform: translate(0, -600%); } 66.2% { transform: translate(2266.67%, -600%); } 94% { opacity: 1; } 100% { transform: translate(2266.67%, 866.67%); opacity: 0; } }
@keyframes nq-blau { 0% { transform: translate(0, 0); opacity: 0; } 5% { opacity: 1; } 38.2% { transform: translate(0, -1300%); } 87.3% { transform: translate(-1666.67%, -1300%); } 94% { opacity: 1; } 100% { transform: translate(-1666.67%, -866.67%); opacity: 0; } }
@keyframes nq-rauch { 0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate3d(90%, -420%, 0) scale(2.6); opacity: 0; } }
/* Die kleinen Animationen laufen bewusst auch bei „reduzierte Bewegung“; nur die Kamerafahrt wird dann zum Sprung (js/site.js). */
.zeiger { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity .5s ease; transform: scale(calc(1 / var(--z, 1))); }
.zeiger.an { opacity: 1; transition-delay: .25s; }
.zeiger::before { content: ''; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(186, 199, 93, .28); }
.zeiger::after { content: ''; position: absolute; left: 5px; top: -.5px; width: 16px; height: 1px; background: rgba(255, 255, 255, .7); }
.zeiger i { position: absolute; left: 22px; top: 0; transform: translateY(-50%); white-space: nowrap; font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: #fff; background: rgba(8, 15, 27, .78); border: 1px solid rgba(255, 255, 255, .22); padding: .28em .75em; border-radius: 999px; }
.zeiger.links::after { left: auto; right: 5px; }
.zeiger.links i { left: auto; right: 22px; }
.schleier { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 15, 27, .3) 0%, rgba(8, 15, 27, 0) 28%, rgba(8, 15, 27, .25) 100%); }
.schleier::before { content: ''; position: absolute; inset: 0; opacity: var(--kopf, 1); background: linear-gradient(90deg, rgba(8, 15, 27, .8) 0%, rgba(8, 15, 27, .48) 42%, rgba(8, 15, 27, 0) 78%); }
.reise .hero { background: none; margin-top: -100vh; margin-top: -100svh; min-height: calc(100vh - 115px); min-height: calc(100svh - 115px); }
.reise .hero::before { display: none; }
.tafel { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 4rem 0; }
.tafel:last-child { margin-bottom: 0; padding-bottom: 45vh; min-height: 145vh; }
.tafel .wrap { display: flex; }
.tafel.rechts .wrap { justify-content: flex-end; }
.tafel-karte { width: min(420px, 100%); padding: 1.8rem 1.9rem 1.9rem; border-radius: var(--radius); background: rgba(8, 15, 27, .7); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); color: #d9e6e6; }
.tafel-karte .kicker { color: var(--lime); }
.tafel-karte h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .5em; }
.tafel-karte p { margin: 0 0 1.2em; }
@media (max-width: 760px) { .tafel { align-items: flex-end; padding-bottom: 9vh; } .tafel:last-child { padding-bottom: 50vh; } .tafel-karte { padding: 1.3rem 1.3rem 1.4rem; } .zeiger i { font-size: .72rem; } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 15, 27, .78) 0%, rgba(8, 15, 27, .46) 42%, rgba(8, 15, 27, 0) 78%), linear-gradient(180deg, rgba(8, 15, 27, .3) 0%, rgba(8, 15, 27, 0) 30%, rgba(8, 15, 27, .3) 100%); }
.hero-content { max-width: 760px; padding-bottom: clamp(3rem, 7vw, 6rem); margin-left: max(var(--gutter), (100% - var(--wrap)) / 2); }
.hero .kicker { color: var(--lime); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: #e2efef; max-width: 60ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.facts-bar { background: rgba(8, 14, 24, .55); border-top: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.facts { list-style: none; margin: 0 auto; padding: 1.3rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; color: #fff; }
.facts li { display: flex; flex-direction: column; gap: .15em; padding-left: 1rem; border-left: 2px solid var(--lime); }
.facts strong { font-size: 1.35rem; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts span { font-size: .86rem; color: #b8c6cf; }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* Hintergrundgrafiken: technische Zeichnungen, Landschaften mit Biogasanlage, Verfahrensschema und Raster */
.deco { position: relative; isolation: isolate; overflow: hidden; }
.deco::before { content: ''; position: absolute; inset: -14% 0; z-index: -1; pointer-events: none; background-repeat: no-repeat; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.deco-boden::before { background-image: url(../img/grafik/anlage.svg); background-size: min(46%, 680px) auto; background-position: right -2% top 4%; opacity: .26; }
.deco-wand::before { background-image: url(../img/grafik/fermenter.svg); background-size: min(40%, 560px) auto; background-position: left -3% bottom 4%; opacity: .2; }
.deco-oben::before { background-image: url(../img/grafik/gasspeicher.svg); background-size: min(42%, 540px) auto; background-position: right -2% center; opacity: .22; }
.deco-oben-hell::before { background-image: url(../img/grafik/gasspeicher-hell.svg); background-size: min(46%, 640px) auto; background-position: right -4% top 8%; opacity: .12; }
.deco-wand-hell::before { background-image: url(../img/grafik/fermenter-hell.svg); background-size: min(36%, 480px) auto; background-position: right 4% bottom -8%; opacity: .16; }
.deco-boden-hell::before { background-image: url(../img/grafik/anlage-hell.svg); background-size: min(50%, 760px) auto; background-position: right -8% top -8%; opacity: .07; }
.raster { position: relative; isolation: isolate; }
.raster::after { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; background-image: linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px), linear-gradient(var(--raster-fein) 1px, transparent 1px), linear-gradient(90deg, var(--raster-fein) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.raster-page { position: relative; isolation: isolate; }
.raster-page::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--raster-fein) 1px, transparent 1px), linear-gradient(90deg, var(--raster-fein) 1px, transparent 1px); background-size: 24px 24px; }
/* Gemalte Landschaften (hintergrund.py): am unteren Rand verankert, laufen nach unten transparent aus */
.szene::before { inset: 0 0 -40px; background-position: center bottom; background-size: max(100%, 1100px) auto; transform: translate3d(0, calc(var(--py, 0px) * .3), 0); }
.szene-tag::before { background-image: url(../img/grafik/landschaft-tag.svg); }
.szene-nacht::before { background-image: url(../img/grafik/landschaft-nacht.svg); }
.section.szene { padding-bottom: clamp(9rem, 19vw, 17rem); }
.site-footer.szene::before { opacity: .3; }
.page-hero.szene::before { background-size: auto 150%; background-position: right bottom; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 62%); mask-image: linear-gradient(90deg, transparent 22%, #000 62%); }
.deco-linien::before, .deco-linien-hell::before { inset: 0; transform: translate3d(0, calc(var(--py, 0px) * .25), 0); }
.deco-linien::before { background-image: url(../img/grafik/schema.svg); background-size: auto 74%; background-position: center 55%; opacity: .15; }
.deco-linien-hell::before { background-image: url(../img/grafik/schema-hell.svg); background-size: auto 96%; background-position: right 6% center; opacity: .24; }
.page-hero .wrap { position: relative; z-index: 1; }
@media (max-width: 960px) { .deco:not(.szene)::before { opacity: .14 !important; background-size: 80% auto !important; background-position: right -20% bottom -10% !important; } .page-hero.szene::before { background-size: auto 100%; -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 80%); mask-image: linear-gradient(90deg, transparent 5%, #000 80%); opacity: .6; } }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-dark { background: linear-gradient(160deg, var(--night), #0c3a3e 70%, var(--teal-700)); color: #dcebeb; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: var(--lime); }
.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.05rem; }
.section-head.light p:last-child { color: #cfe3e3; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.section-foot { margin-top: 2rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.section-foot.left { justify-content: flex-start; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.plant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.plant-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; transition: transform .2s, box-shadow .2s; border: 1px solid var(--line-2); }
.plant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.plant-img { aspect-ratio: 16 / 10; overflow: hidden; }
.plant-img img, .ref-img img, .card-img img, .tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.plant-card:hover img, .ref-card:hover img, .teaser:hover img, .tile:hover img { transform: scale(1.04); }
.plant-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.badge { display: inline-flex; align-items: center; gap: .4em; background: var(--lime-50); color: var(--lime-700); font-weight: 700; font-size: .8rem; padding: .3em .8em; border-radius: 999px; align-self: flex-start; }
.badge .ic { color: var(--lime-600); }
.plant-body p { color: var(--ink-2); flex: 1; }
.more { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--teal); font-size: .95rem; }
.more .ic { transition: transform .15s; }
a:hover .more .ic { transform: translateX(3px); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.steps li { position: relative; background: rgba(255, 255, 255, .78); backdrop-filter: blur(4px); border-radius: var(--radius); padding: 1.6rem 1.4rem 1.4rem; border: 1px solid var(--line-2); }
.step-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--teal); color: #fff; padding: 12px; margin-bottom: 1rem; }
.step-no { position: absolute; top: 1.2rem; right: 1.3rem; font-weight: 800; font-size: 1.6rem; color: var(--teal-100); letter-spacing: -.04em; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-2); font-size: .95rem; margin: 0; }

.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tile { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-2); color: inherit; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.tile-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-50); }
.tile h3 { font-size: 1.02rem; margin: .9rem 1rem .25rem; color: var(--teal-900); }
.tile p { font-size: .88rem; color: var(--muted); margin: 0 1rem 1rem; line-height: 1.45; }

.ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.ref-card { border-radius: var(--radius-sm); overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #e6f1f1; display: flex; flex-direction: column; }
.ref-card:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.ref-img { aspect-ratio: 4 / 3; overflow: hidden; }
.ref-body { padding: 1rem 1.1rem 1.2rem; }
.ref-body h3 { color: #fff; font-size: 1.05rem; }
.ref-body p { font-size: .9rem; color: #c6dcdc; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .5rem; }
.check-list li { display: flex; gap: .6em; align-items: flex-start; }
.check-list .ic { color: var(--lime-600); margin-top: .2em; }
.calc-demo { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.4rem; display: grid; gap: .6rem; max-width: 420px; margin-inline: auto; transform: rotate(-1.5deg); }
.calc-row { display: flex; justify-content: space-between; padding: .7em 1em; background: var(--bg); border-radius: 10px; }
.calc-result { margin-top: .4rem; padding: 1em 1.1em; background: var(--teal); color: #fff; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; }
.calc-result strong { font-size: 1.6rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.prose .hub-grid { margin: 0 0 2.5rem; }
.prose .hub-grid h3 { margin-top: 0; }
.prose .hub-grid a { text-decoration: none; }
.prose .hub-grid p { font-size: .92rem; }
.prose h2 + .hub-grid, .prose p + .hub-grid { margin-top: 2rem; }
.teaser { display: flex; flex-direction: column; overflow: hidden; color: inherit; transition: transform .2s, box-shadow .2s; }
.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-50); }
.card-img.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-50), var(--lime-50)); }
.card-img.placeholder img { width: 38%; height: auto; opacity: .9; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body time { font-size: .82rem; color: var(--muted); font-weight: 600; }
.card-body h3 { font-size: 1.1rem; }
.card-body p { color: var(--ink-2); font-size: .95rem; flex: 1; }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--teal-700), var(--teal)); color: #fff; padding: 3.2rem 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #d7eaea; max-width: 60ch; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Footer */
.site-footer { background: linear-gradient(180deg, #0c2b2e, var(--night)); color: #b9d3d3; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer .titel { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.site-footer a { color: #d6e7e7; }
.site-footer a:hover { color: var(--lime); }
.about img { height: 40px; width: auto; margin-bottom: 1rem; }
.about address { font-style: normal; display: grid; gap: .5em; margin-top: 1.2em; }
.about address p { display: flex; gap: .6em; margin: 0; }
.about address .ic { color: var(--lime); margin-top: .2em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 1.2em; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

/* Unterseiten */
.page-hero { position: relative; padding: 2.4rem 0 2.8rem; background: linear-gradient(135deg, var(--teal-50), var(--paper) 55%, var(--lime-50)); border-bottom: 1px solid var(--line); isolation: isolate; }
.page-hero.has-image { color: #fff; padding: 3.5rem 0 4rem; min-height: 380px; display: flex; align-items: flex-end; }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 59, 61, .55), rgba(7, 59, 61, .85)); }
.page-hero.has-image h1, .page-hero.has-image .lead { color: #fff; }
.page-hero.has-image .lead { color: #dcecec; }
.page-hero.has-image .breadcrumb a, .page-hero.has-image .breadcrumb li { color: #cfe3e3; }
.page-hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 70ch; margin: 0; }
.page-hero .meta { display: inline-flex; gap: .5em; align-items: center; margin-top: 1rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
.page-hero .wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.page-hero h1 { margin-bottom: .4em; max-width: 24ch; }
.breadcrumb ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3em; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: '›'; margin-right: .3em; opacity: .6; }
.breadcrumb a { color: var(--teal); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding: 3rem 0 4rem; align-items: start; }
.page-grid.wide { grid-template-columns: minmax(0, 1fr); }
.content { min-width: 0; }
.sidebar { display: grid; gap: 1.4rem; position: sticky; top: 100px; }
.side-nav, .contact-card, .ds-box { padding: 1.3rem 1.4rem; }
.side-nav h3, .contact-card h3, .ds-box h3, .side-nav .titel, .contact-card .titel { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .8em; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li a { display: block; padding: .45em .6em; border-radius: 8px; color: var(--ink-2); font-size: .95rem; }
.side-nav li a:hover { background: var(--teal-50); color: var(--teal-700); }
.side-nav li.current a { background: var(--teal); color: #fff; font-weight: 600; }
.contact-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55em; }
.contact-list li { display: flex; gap: .6em; align-items: flex-start; }
.contact-list .ic { color: var(--teal); margin-top: .18em; }
.contact-list.big { font-size: 1.05rem; gap: .9em; }
.contact-card p { color: var(--ink-2); font-size: .95rem; }
.file-list, .file-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.file-list a, .file-cards a.file { display: flex; gap: .7em; align-items: center; padding: .7em .9em; border-radius: 10px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); }
.file-list a:hover, .file-cards a.file:hover { border-color: var(--teal); background: var(--teal-50); }
.file-list .ic, .file-cards .ic { color: var(--teal); flex: none; }
.file-list span, .file-cards span { display: flex; flex-direction: column; line-height: 1.3; }
.file-list small, .file-cards small { color: var(--muted); font-size: .78rem; }
.file-cards b { font-weight: 600; }
.file-cards em { font-style: normal; color: var(--ink-2); font-size: .86rem; margin: .15em 0; }
.file-cards a.file { align-items: flex-start; }
.file-cards a.file .ic { margin-top: .2em; }
.file-cards { grid-template-columns: repeat(2, 1fr); margin: 0 0 1.5rem; gap: .7rem; }

/* Fließtext */
.prose { font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose h2 + h2, .prose h2 + h3 { margin-top: .6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose a { text-decoration: underline; text-decoration-color: var(--teal-100); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--teal); }
.prose a.btn { text-decoration: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--lime); background: var(--lime-50); border-radius: 0 10px 10px 0; }
.prose .linkcard a { display: inline-flex; padding: .6em 1em; background: var(--teal-50); border-radius: 10px; text-decoration: none; font-weight: 600; }
.fig { margin: 1.6rem 0; }
.fig img { border-radius: var(--radius-sm); width: 100%; box-shadow: var(--shadow); }
.fig.klein img { width: auto; max-width: 100%; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.fig figcaption { font-size: .88rem; color: var(--muted); margin-top: .5em; }
.fig.video { margin: 1.6rem 0; }
.fig.video video { width: 100%; border-radius: var(--radius-sm); background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.gallery { display: grid; gap: 1rem; margin: 1.6rem 0; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery .fig { margin: 0; }
.gallery .fig img { aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }
.gallery .fig[data-w][data-h] img { aspect-ratio: 4 / 3; }
.lightbox { cursor: zoom-in; display: block; }
.table-wrap { overflow-x: auto; margin: 1.4rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .97rem; }
.prose td, .prose th { padding: .55em .8em; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose tr:first-child td { border-top: 1px solid var(--line); }
.cell-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin: 1.6rem 0; }
.cell-grid .cell { background: #fff; border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; border: 1px solid var(--line-2); }
.cell-grid .cell .fig { margin: 0 0 .8rem; }
.cell-grid .cell .fig img { box-shadow: none; }
.cell-grid .cell a { text-decoration: none; font-weight: 600; }
.cta-inline { display: flex; gap: .7rem; flex-wrap: wrap; margin: 2rem 0 0; }
.anchor-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.anchor-nav a { padding: .45em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.anchor-nav a:hover { border-color: var(--teal); background: var(--teal-50); }
.comp-group { padding: 2rem 0 1rem; }
.comp-group h2 { margin-bottom: 1.2rem; }
.page-komponenten .wrap > .comp-group:last-of-type { padding-bottom: 4rem; }
.page-aktuelles .card-grid { padding: 3rem 0 4rem; }

/* Personen */
.dept { margin-top: 2.5rem; }
.dept > p { color: var(--muted); margin-top: -.3em; }
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 1.2rem; margin-top: 1rem; }
.person { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--radius-sm); padding: 1rem; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none; background: var(--teal-50); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar.initials { display: grid; place-items: center; font-weight: 700; color: var(--teal-700); font-size: 1.3rem; background: linear-gradient(135deg, var(--teal-50), var(--lime-50)); }
.person-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15em; font-size: .92rem; min-width: 0; flex: 1; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
.person-body h3 { font-size: 1.05rem; margin: 0; }
.person-body .role { color: var(--teal); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; order: -1; }
.person-body .title { color: var(--muted); }
.person-body a { display: flex; gap: .4em; align-items: flex-start; min-width: 0; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.person-body a .ic { color: var(--teal); margin-top: .15em; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; padding: 3rem 0 4rem; align-items: start; }
.contact-grid.anreise { padding: 0 0 2rem; }
.contact-info, .contact-form { padding: 1.8rem 2rem 2rem; }
.contact-info h2 { font-size: 1.4rem; }
.contact-form h2 { font-size: 1.4rem; }
.contact-form > p { color: var(--muted); font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin-top: 1.2rem; }
.form-grid label { display: grid; gap: .35em; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input:not([type=checkbox]), .form-grid textarea, .form-grid select, .calc-add select, .calc-add input { font: inherit; font-weight: 400; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
.form-grid input:focus, .form-grid textarea:focus, .calc-add select:focus, .calc-add input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-50); }
.form-grid .check { display: block; position: relative; padding-left: calc(18px + .7em); font-weight: 400; }
.form-grid .check input { position: absolute; left: 0; top: .3em; margin: 0; width: 18px; height: 18px; accent-color: var(--teal); }
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.rechner-box > span { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.rechner-box button { font: inherit; font-size: .85rem; font-weight: 400; color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.rechner-box button:hover { color: #b3261e; }
.form-grid .rechner-box textarea { background: var(--teal-50); border-color: var(--teal-100); resize: none; }
.rechner-box small { font-weight: 400; color: var(--muted); }
.form-status { font-size: .92rem; color: var(--muted); }
.form-status.err { color: #b3261e; }
.form-status.ok { color: var(--lime-700); }
.hp { position: absolute; left: -9999px; }
input:invalid.touched, textarea:invalid.touched { border-color: #d0463c; }
.map-card { overflow: hidden; min-height: 360px; display: grid; }
.map-consent { display: grid; place-content: center; text-align: center; gap: 1rem; padding: 2rem; background: linear-gradient(135deg, var(--teal-50), var(--lime-50)); min-height: 360px; }
.map-consent p { margin: 0; color: var(--ink-2); }
.map-card iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Stellen */
.jobs { margin-top: 3rem; }
.job-grid { display: grid; gap: 1rem; margin-top: 1.2rem; }
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 1.5rem; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: inherit; transition: transform .15s, border-color .15s; text-decoration: none !important; }
.job-card:hover { transform: translateX(4px); border-color: var(--teal); color: inherit; }
.job-card .kicker { margin-bottom: .2em; }
.job-card h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.job-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.job-card .more { white-space: nowrap; }

/* Rechner */
.calc { padding: 2rem; margin-bottom: 2.5rem; }
.calc-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.calc-head h2 { margin: 0; font-size: 1.5rem; }
.calc-head img { width: 72px; height: auto; }
.calc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.calc-col { background: var(--bg); border-radius: var(--radius-sm); padding: 1.2rem; border: 1px solid var(--line-2); }
.calc-col h3 { display: flex; gap: .5em; align-items: center; font-size: 1.05rem; }
.calc-col h3 .ic { color: var(--lime-600); }
.calc-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.calc-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; background: #fff; padding: .55em .8em; border-radius: 8px; border: 1px solid var(--line-2); font-size: .95rem; }
.calc-list li strong { white-space: nowrap; }
.calc-list button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: .2em .4em; border-radius: 6px; }
.calc-list button:hover { background: #fde8e6; color: #b3261e; }
.calc-list:empty::before { content: 'Noch keine Einsatzstoffe hinzugefügt.'; color: var(--muted); font-size: .9rem; }
.calc-add { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; }
.calc-add select { grid-column: 1 / -1; min-width: 0; }
.calc-add label { position: relative; display: flex; align-items: center; }
.calc-add label span { position: absolute; right: .8em; font-size: .85rem; color: var(--muted); }
.calc-add input { padding-right: 2.6em; }
.calc-foot { margin-top: 1.6rem; display: grid; gap: 1.2rem; justify-items: center; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .8rem; width: 100%; background: transparent; color: inherit; padding: 0; }
.calc .calc-result > div { background: var(--teal-50); border-radius: var(--radius-sm); padding: 1rem 1.2rem; display: grid; gap: .1em; text-align: center; }
.calc .calc-result > div.main { background: var(--teal); color: #fff; }
.calc .calc-result span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.calc .calc-result strong { font-size: 1.9rem; letter-spacing: -.02em; }
.calc .calc-result small { opacity: .8; }
.calc-cta { margin: 0; }

/* Zeitstrahl */
.timeline { list-style: none; margin: 1rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 92px; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--teal), var(--lime)); border-radius: 3px; }
.tl-item { display: grid; grid-template-columns: 80px 1fr; gap: 2.2rem; margin-bottom: 1.4rem; position: relative; }
.tl-year { font-weight: 800; font-size: 1.4rem; color: var(--teal-700); text-align: right; letter-spacing: -.02em; padding-top: .8rem; }
.tl-item::after { content: ''; position: absolute; left: 85px; top: 1.35rem; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.tl-item .tl-year:empty ~ .tl-card { margin-top: -.6rem; }
.tl-card { display: grid; grid-template-columns: 200px 1fr; gap: 1.3rem; padding: 1.1rem 1.3rem; align-items: center; }
.tl-card:not(:has(.tl-img)) { grid-template-columns: 1fr; }
.tl-img img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tl-img img[src$='.png'] { object-fit: contain; background: #fff; padding: .6rem; border: 1px solid var(--line-2); }
.tl-card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.tl-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Logos */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; margin: 1.6rem 0 2rem; }
.logo-card { display: flex; flex-direction: column; align-items: center; gap: .8rem; background: #fff; border-radius: var(--radius-sm); padding: 1.3rem 1rem; border: 1px solid var(--line-2); text-align: center; color: var(--ink-2); font-size: .92rem; font-weight: 600; text-decoration: none !important; }
a.logo-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.logo-img { height: 90px; display: grid; place-items: center; width: 100%; }
.logo-img img { max-height: 90px; width: auto; max-width: 100%; object-fit: contain; box-shadow: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(5, 30, 31, .94); z-index: 500; display: grid; place-items: center; padding: 2rem; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(1400px, 96vw); max-height: 92vh; display: grid; gap: .6rem; justify-items: center; }
.lb img { background: #fff; max-height: 84vh; max-width: 96vw; width: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb figcaption { color: #cfe3e3; font-size: .95rem; text-align: center; }
.lb button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; padding: 10px; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1rem; }
.lb-prev svg { transform: rotate(90deg); }
.lb-next { right: 1rem; }
.lb-next svg { transform: rotate(-90deg); }

/* Reveal-Animation */
@media (prefers-reduced-motion: reduce) {
  .deco::before { transform: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* Responsiv */
@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mega-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; padding: 90px 1.2rem 2rem; box-shadow: var(--shadow-lg); z-index: 90; }
  body.nav-open .main-nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .site-header .nav-toggle, .site-header .brand { position: relative; z-index: 95; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { padding: .9em .6em; font-size: 1.05rem; justify-content: space-between; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .main-nav > ul > li:hover > a { background: none; }
  .sub, .mega-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: .3rem 0 .6rem; display: none; background: var(--bg); border-radius: 0; }
  .main-nav li.open > .sub { display: block; }
  .main-nav li:hover > .sub:not(.x) { }
  .mega-inner { grid-template-columns: 1fr; gap: .4rem; }
  .mega-col .titel { margin-top: .6em; }
  .mega-all .btn { margin: .4rem .8rem; }
  .nav-mobile-extra { display: grid; gap: .8rem; margin-top: 1.5rem; padding: 0 .4rem; }
  .nav-mobile-extra a { display: inline-flex; gap: .5em; align-items: center; }
  .topbar .tb-link, .topbar .tb-mail, .topbar .spacer { display: none; }
  .topbar .wrap { justify-content: center; gap: 1.2rem; min-height: 32px; font-size: .78rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 0; }
  .plant-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .split-media { order: 0; }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .calc-cols { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 36px; }
  .navbar .wrap { min-height: 66px; }
  .hero { padding-top: 3rem; }
  .hero-content { margin-left: auto; }
  .facts { grid-template-columns: 1fr 1fr; padding: 1rem 0; gap: .8rem; }
  .facts strong { font-size: 1.1rem; }
  .plant-grid, .card-grid, .tile-grid, .ref-grid, .steps, .form-grid, .file-cards { grid-template-columns: 1fr; }
  .gallery.cols-2, .gallery.cols-3 { grid-template-columns: 1fr 1fr; }
  .calc-add { grid-template-columns: 1fr; }
  .calc .calc-result { grid-template-columns: 1fr; }
  .timeline::before { left: 10px; }
  .tl-item { grid-template-columns: 1fr; gap: .4rem; padding-left: 2.2rem; }
  .tl-year { text-align: left; padding-top: 0; }
  .tl-item::after { left: 3px; }
  .tl-card { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .contact-info, .contact-form, .calc { padding: 1.3rem 1.2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
/* Hohe Auflösung (Klasse .hires setzt js/site.js ab ca. 3000 Gerätepixeln Breite, z. B. 4K):
   keine Hintergrund-Unschärfen über der bewegten Szene, Beschriftungen und Schleier als eigene Flächen.
   Kleinere Auflösungen bleiben unverändert. */
.hires .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .97); }
.hires .tafel-karte { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 15, 27, .88); }
.hires .facts-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 14, 24, .8); }
.hires .btn-glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .16); }
.hires .steps li { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .92); }
.zeiger { transform: translateZ(0) scale(calc(1 / var(--z, 1))); }
.schleier::before { will-change: opacity; }

@media print {
  .site-header, .site-footer, .cta-band, .sidebar, .lb, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .page-grid { display: block; }
}
