/* HD-Terrassenshop GmbH – Landingpage */
:root {
  --bg: #0a0b0d;
  --bg-2: #111316;
  --surface: #16181c;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --accent: #6cc24a;      /* Markengrün #338D14, aufgehellt für dunkle Flächen */
  --accent-2: #b8e6a0;
  --brand: #185429;       /* Header-Grün hd-terrassenshop.de */
  --brand-2: #338d14;     /* Akzentgrün hd-terrassenshop.de */
  --cta: #ed900d;         /* Button-Orange hd-terrassenshop.de */
  --cta-hover: #f5a130;
  --anthracite: #383e42;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
main { overflow-x: clip; } /* Einblend-Animationen dürfen die Seite nicht verbreitern */
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.h-xl { font-size: clamp(44px, 8.4vw, 120px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; }
.h-lg { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.h-md { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 650; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 40ch; }
.grad {
  background: linear-gradient(100deg, #d4f2c2, var(--accent) 50%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .4s var(--ease), background .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cta); color: #222021; }
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost { border-color: rgba(255,255,255,.28); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 60px;
  display: flex; align-items: center;
  background: rgba(24, 84, 41, 0.92);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .5s var(--ease);
}
.nav.hide { transform: translateY(-100%); }
.nav { height: 64px; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.logo img { height: 38px; width: auto; }
.logo small { font-weight: 500; color: var(--muted); }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.nav-links a:hover { color: var(--text); }
.nav .btn { min-height: 38px; padding: 0 18px; font-size: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } }
.nav .btn, .logo { white-space: nowrap; }
@media (max-width: 480px) { .logo img { height: 32px; } }

/* ---------- Zubehör-Shop-Link + mobiles Menü ---------- */
.nav-shop {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45);
  color: #fff !important; font-weight: 600;
  transition: background .25s, border-color .25s;
}
.nav-shop:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.nav-shop .ext { flex: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3);
  background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  display: grid; gap: 4px; padding: 12px var(--gutter) 20px;
  background: rgba(24, 84, 41, .98); border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 4px; font-size: 17px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-menu .nav-shop { justify-content: center; margin-top: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .45); }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .nav-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 200vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero-media {
  position: absolute; inset: 0; overflow: hidden; clip-path: inset(0% 0% 0% 0% round 0px); will-change: clip-path;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,.6) 100%);
}
.hero-copy { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.hero-copy .eyebrow { margin-bottom: 20px; color: #fff; display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(24, 84, 41, 0.85); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.1em; }
.hero-title .grad { padding-bottom: .12em; } /* Unterlänge (g) nicht abschneiden */
.hero-title .line > span { display: inline-block; transform: translateY(110%); }
.hero-sub { margin: 28px auto 36px; color: rgba(255,255,255,.82); max-width: 34ch; font-size: clamp(18px, 1.7vw, 22px); opacity: 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--text), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Statement (word reveal) ---------- */
.statement { padding: clamp(120px, 20vh, 220px) 0; }
.statement p { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 650; max-width: 22ch; }
.statement .w { opacity: .14; transition: none; }

/* ---------- 3D Build ---------- */
.build { position: relative; height: 1300vh; }
.build-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.build-progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 2px;
  background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; z-index: 3;
}
.build-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.build-steps { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.step {
  position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%;
  max-width: 420px; opacity: 0;
}
.step .num { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; display: block; }
.step h3 { font-size: clamp(30px, 4vw, 54px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 14px; }
.step p { color: rgba(255,255,255,.78); font-size: 18px; }
.mat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mat-chips span {
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .6);
  transition: background .35s, color .35s, border-color .35s;
}
.mat-chips span.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.build-sticky::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,11,13,.7) 0%, rgba(10,11,13,.25) 38%, transparent 60%);
}
.mount-toggle {
  position: absolute; top: 76px; right: var(--gutter); z-index: 4;
  display: flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: rgba(22, 24, 28, .72); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.mount-toggle button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 600;
  transition: background .25s, color .25s;
}
.mount-toggle button[aria-pressed="true"] { background: var(--text); color: #000; }
.mount-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.no-webgl .mount-toggle { display: none; }
.build-fallback { position: absolute; inset: 0; background: url(assets/img/real/hero.jpg) center/cover; }
.webgl-ready .build-fallback { display: none; }
.no-webgl .build-fallback { display: block; }
@media (max-width: 760px) {
  .step { top: auto; bottom: 64px; translate: 0 0; right: var(--gutter); }
  .step p { font-size: 16px; }
  .build-sticky::before { background: linear-gradient(0deg, rgba(10,11,13,.85) 0%, rgba(10,11,13,.3) 45%, transparent 65%); }
}

/* ---------- Products (horizontal) ---------- */
.products { position: relative; }
.products-head { padding: clamp(100px, 16vh, 180px) 0 48px; }
.products-head .h-lg { margin-top: 14px; max-width: 16ch; }
.hscroll { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); will-change: transform; }
.card {
  position: relative; flex: 0 0 auto; width: min(78vw, 560px); height: min(72vh, 680px);
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  isolation: isolate;
}
.card img { position: absolute; inset: -6% -12%; width: 124%; height: 112%; object-fit: cover; will-change: transform; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78) 100%);
}
.card-body { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 2; }
.card-body .tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.card-body h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1.05; margin: 8px 0 8px; }
.card-body p { color: rgba(255,255,255,.8); font-size: 16px; max-width: 36ch; }
.card.wide { width: min(88vw, 900px); }
.card.intro { background: none; width: min(80vw, 420px); display: flex; align-items: flex-end; }
.card.intro::after { display: none; }
.card.intro p { color: var(--muted); font-size: 20px; }
.card.intro p strong { color: var(--text); font-weight: 600; }

/* ---------- Day / Night ---------- */
.daynight { position: relative; height: 260vh; }
.dn-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.dn-sticky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dn-night { clip-path: inset(0 0 0 100%); will-change: clip-path; }
.dn-label {
  position: absolute; top: 90px; z-index: 3; padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(0,0,0,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.dn-label.day { left: var(--gutter); }
.dn-label.night { right: var(--gutter); }
.dn-divider { position: absolute; top: 0; bottom: 0; left: 100%; width: 2px; background: rgba(255,255,255,.85); z-index: 2; box-shadow: 0 0 24px rgba(255,217,160,.8); }
.dn-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 120px var(--gutter) 64px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
}
.dn-copy .h-lg { max-width: 14ch; }

/* ---------- Detail / Specs ---------- */
.detail { padding: clamp(120px, 18vh, 200px) 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.detail-media { border-radius: var(--radius); overflow: hidden; clip-path: inset(18% 18% 18% 18% round 28px); will-change: clip-path; }
.detail-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transform: scale(1.3); }
.detail-copy .h-lg { margin: 14px 0 22px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: 44px; }
.spec { border-top: 1px solid var(--line); padding-top: 18px; }
.spec b { display: block; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1; font-weight: 700; }
.spec > span { color: var(--muted); font-size: 15px; }
.spec b .count { font: inherit; color: inherit; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

/* ---------- Glass room reveal ---------- */
.glassroom { position: relative; height: 220vh; }
.gr-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.gr-media { position: absolute; inset: 0; clip-path: circle(12% at 50% 55%); will-change: clip-path; }
.gr-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.gr-title { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); text-shadow: 0 4px 40px rgba(0,0,0,.45); }
.gr-caption {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 56px; max-width: 460px; opacity: 0;
  background: rgba(10,11,13,.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px;
}
.gr-caption h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 6px; }
.gr-caption p { color: var(--muted); font-size: 16px; }

/* ---------- Process ---------- */
.process { padding: clamp(120px, 18vh, 200px) 0; background: var(--bg-2); }
.process .h-lg { margin: 14px 0 64px; max-width: 14ch; }
.timeline { position: relative; display: grid; gap: 56px; padding-left: 56px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline .bar { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -51px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--dim); transition: border-color .4s, background .4s;
}
.tl-item.on::before { border-color: var(--accent); background: var(--accent); }
.tl-item h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; margin-bottom: 6px; }
.tl-item p { color: var(--muted); max-width: 52ch; }

/* ---------- CTA / Contact ---------- */
.contact { position: relative; padding: clamp(120px, 18vh, 200px) 0; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(10,11,13,.6) 50%, var(--bg) 100%); }
.contact .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact .h-lg { margin: 14px 0 22px; }
.contact-info { margin-top: 36px; display: grid; gap: 14px; color: var(--muted); }
.contact-info a { color: var(--text); font-weight: 600; }
form.quote {
  background: rgba(22,24,28,.72); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px);
  display: grid; gap: 16px;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; }
select option { background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); color: var(--text); font-size: 14px; transition: all .25s;
}
.chips input:checked + span { background: var(--text); color: #000; border-color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--dim); }
form.quote .btn { justify-content: center; }
.form-or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.form-or::before, .form-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-config { border-color: var(--brand-2); }
.btn-config:hover { background: rgba(51, 141, 20, .18); border-color: var(--accent); }
@media (max-width: 860px) { .contact .wrap, .row2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer nav { display: flex; gap: 24px; }
footer a:hover { color: var(--text); }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed; right: var(--gutter); bottom: 24px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-2); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); }
.to-top:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }

/* ---------- Reveal helper ---------- */
.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero, .build, .daynight, .glassroom { height: auto; }
  .hero-sticky, .build-sticky, .dn-sticky, .gr-sticky { position: relative; }
  .hero-title .line > span, .hero-sub, .hero-cta, .reveal, .step, .gr-caption { transform: none !important; opacity: 1 !important; }
  .statement .w { opacity: 1; }
  .build-sticky { height: auto; min-height: 100vh; }
  .build-steps { position: relative; display: grid; gap: 40px; padding: 120px var(--gutter); }
  .step { position: relative; top: auto; left: auto; translate: none; bottom: auto; }
  .hscroll { height: auto; overflow-x: auto; padding: 20px 0 60px; }
  .dn-night { clip-path: inset(0 0 0 50%); }
  .dn-divider { left: 50%; }
  .gr-media { clip-path: none; }
  .detail-media { clip-path: none; }
  .scroll-hint i { animation: none; }
}

/* =====================================================================
   Untermenüs (Dropdowns) in der Menüzeile
   ===================================================================== */
.nav-links { align-items: center; }
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 500; padding: 8px 0;
}
.dd-btn:hover, .dd.open .dd-btn { color: #fff; }
.dd-btn svg { transition: transform .25s var(--ease); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 260px;
  display: grid; padding: 8px; border-radius: 16px;
  background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* Hover-Brücke */
.dd.open .dd-panel, .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .dd:hover .dd-panel { opacity: 1; visibility: visible; transform: none; } }
.dd-panel a { padding: 10px 14px; border-radius: 10px; color: #222021; font-size: 15px; font-weight: 500; white-space: nowrap; }
.dd-panel a:hover { background: #eef5ea; color: var(--brand); }
.dd-panel a small { display: block; color: #6e6e73; font-size: 12.5px; font-weight: 400; }
.dd-panel .dd-all { margin-top: 4px; border-top: 1px solid #ececec; border-radius: 0 0 10px 10px; color: var(--brand-2); font-weight: 600; }

/* mobiles Menü: Gruppen */
.mobile-menu .mm-group { padding: 10px 4px 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.mobile-menu .mm-sub { padding-left: 16px; font-weight: 500; font-size: 16px; }
.mobile-menu { max-height: calc(100vh - 64px); overflow-y: auto; }

/* =====================================================================
   Unterseiten (Leistungen, Projekte, Standorte)
   ===================================================================== */
.page-hero {
  position: relative; min-height: 72vh; display: flex; align-items: flex-end;
  padding: 140px 0 72px; overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 40%, rgba(10,11,13,.95) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin: 14px 0 18px; max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 52ch; }
.page-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.section { padding: clamp(72px, 12vh, 130px) 0; }
.section.alt { background: var(--bg-2); }
.section h2 { margin: 12px 0 22px; max-width: 20ch; }
.prose { color: var(--muted); max-width: 68ch; font-size: 18px; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--text); font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.feature { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.feature h3 { font-size: 19px; letter-spacing: -.01em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.feature .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(51,141,20,.18); color: var(--accent); margin-bottom: 16px; }

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 30px; }
.link-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 600;
  transition: border-color .25s, transform .3s var(--ease);
}
.link-card:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.link-card span { color: var(--accent); }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 28px; }
.filters button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent;
  color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; border-radius: 16px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--surface); }
.gallery img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(10,11,13,.7); backdrop-filter: blur(8px);
}
.gallery figure[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(5,6,8,.92); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; border-radius: 14px; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 22px; display: grid; place-items: center;
}
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 18px; top: 50%; translate: 0 -50%; }

/* CTA-Band */
.cta-band { padding: clamp(64px, 10vh, 110px) 0; background: linear-gradient(120deg, var(--brand) 0%, #0f3a1c 100%); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { max-width: 20ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Karten-Link auf der Startseite */
.card-link { display: inline-flex; margin-top: 12px; font-weight: 600; font-size: 15px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.card-link:hover { border-color: #fff; }

/* Fußbereich mit Einsatzgebiet */
footer .foot-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 36px; margin-bottom: 28px; border-bottom: 1px solid var(--line); width: 100%; }
footer h4 { color: var(--text); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
footer .foot-links { display: grid; gap: 8px; }
footer .regions { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
footer .regions a:hover, footer .foot-links a:hover { color: var(--text); }
@media (max-width: 860px) { footer .foot-top { grid-template-columns: 1fr; } }

/* ---------- Konfigurator-Bereich (ersetzt das Kontaktformular) ---------- */
.contact.konfig .wrap { display: block; text-align: center; }
.contact.konfig .h-lg, .contact.konfig .lead { margin-left: auto; margin-right: auto; }
.contact.konfig .lead { margin-bottom: 40px; }
.konfig-preview {
  position: relative; display: block; max-width: 1040px; margin: 0 auto 32px;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #111;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.konfig-preview:hover { transform: translateY(-4px); box-shadow: 0 40px 90px rgba(0, 0, 0, .6); }
.konfig-preview video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; }
.konfig-badge {
  position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(24, 84, 41, .92); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em;
}
.btn-konfig { min-height: 56px; padding: 0 34px; font-size: 17px; }

/* ---------- Über uns: Firmenfoto füllt die Höhe neben dem Text ---------- */
.detail-media.firma { align-self: stretch; min-height: 420px; }
.detail-media.firma img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 60% center; filter: saturate(.9) brightness(.92); }
@media (max-width: 860px) { .detail-media.firma { min-height: 0; } .detail-media.firma img { aspect-ratio: 4 / 3; height: auto; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 900px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.faq-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; }
.faq-nav a:hover { color: var(--text); border-color: var(--accent); }
.faq-cat { margin: 56px 0 18px; font-size: clamp(24px, 2.6vw, 30px); scroll-margin-top: 100px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; font-size: 17px; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .25s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-a { padding: 0 22px 22px; color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 72ch; }
.faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-a strong { color: var(--text); font-weight: 600; }
.faq-hinweis { margin-top: 48px; color: var(--dim); font-size: 13.5px; }

/* ---------- Übersichtlichere Unterseiten ---------- */
.page-hero { min-height: 60vh; }
.page-hero.compact { min-height: 0; padding: 150px 0 48px; }
.page-hero.compact h1 { max-width: 24ch; }
.page-hero.compact .hero-actions { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.88); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--accent); color: #fff; }
.chip[href="einsatzgebiet.html"], .chip[href="faq.html"] { color: var(--accent); border-color: rgba(108,194,74,.35); }
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 28px; }
.region-card { padding: 24px; border-radius: 22px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.region-card[hidden] { display: none; }
.region-card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.region-card h3 small, .filters button small { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--muted); }
.filters button[aria-pressed="true"] small { background: rgba(255,255,255,.22); color: #fff; }
.region-card .chips { margin-top: 14px; gap: 6px; }
.region-card .chip { padding: 7px 12px; font-size: 14px; }
.chip[hidden] { display: none; }
.ort-suche input { width: 100%; max-width: 460px; padding: 14px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.ort-suche input:focus { outline: none; border-color: var(--accent); }
.ort-suche p { margin-top: 14px; color: var(--muted); }
.ort-suche a, .region-note a { color: var(--accent); }
.region-note { margin-top: 32px; color: var(--muted); }
.filters.sticky { position: sticky; top: 72px; z-index: 5; margin: 0 -8px 24px; padding: 12px 8px; background: rgba(10,11,13,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; }
footer .foot-top { grid-template-columns: repeat(3, 1fr); }
footer .foot-more { color: var(--accent); }
@media (max-width: 860px) {
  footer .foot-top { grid-template-columns: 1fr 1fr; }
  footer .foot-top > div:first-child { grid-column: 1 / -1; }
  .filters.sticky { top: 64px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters.sticky button { flex: none; }
  .region-grid { grid-template-columns: 1fr; }
}
