/* =============================================================
   Elbkontor Residenz — Musterseite Immobilienvermarktung
   Ein Stylesheet, keine Fremdbibliothek.
   Hinweis: bewusst KEINE prefers-reduced-motion-Regel, die
   Animationen abschaltet — die Bewegung ist hier der Inhalt.
   ============================================================= */

:root {
  --ink:      #12161a;
  --ink-2:    #1a1f25;
  --ink-3:    #232a31;
  --sand:     #f5f1ea;
  --sand-2:   #e9e2d6;
  --paper:    #fbf9f5;
  --brass:    #ab8047;
  --brass-2:  #d7b586;
  --text:     #2b3137;
  --muted:    #6d757c;
  --line:     rgba(18, 22, 26, .14);
  --line-2:   rgba(245, 241, 234, .18);
  --serif:    "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:     "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease:     cubic-bezier(.2, .7, .2, 1);
  --pad:      clamp(20px, 5vw, 80px);
  /* Liquid Glass: helle und dunkle Fassung, jeweils Fläche, Kante, Schatten */
  --r-s:      16px;
  --r-m:      26px;
  --r-l:      36px;
  --glass-l:  linear-gradient(152deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .34));
  --glass-d:  linear-gradient(152deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .045));
  --edge-l:   inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .3),
              inset 1px 0 0 rgba(255, 255, 255, .45), inset -1px 0 0 rgba(255, 255, 255, .45);
  --edge-d:   inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(255, 255, 255, .06);
  --lift:     0 26px 60px -36px rgba(14, 18, 22, .6);
  --blur:     saturate(180%) blur(20px);
}

/* Farbe hinter dem Glas: jeder Abschnitt bringt seinen eigenen Verlauf mit,
   damit die Tafeln etwas zu brechen haben. */

/* Der Glanz, der die Tafeln flüssig wirken lässt */
.glass, .card, .kpi, .table, .form, .shot, .plan-info, #planSvg, .map, .step,
.mat .swatch, .ticker, dialog.lightbox img { position: relative; }
.glass::after, .card::after, .kpi::after, .form::after, .plan-info::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 38%);
  opacity: .8; transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.card::after, .kpi::after { opacity: .35; }
.card:hover::after, .kpi:hover::after { opacity: .6; transform: translate3d(2%, -2%, 0); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--sand);
  line-height: 1.62;
  font-size: clamp(15.5px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--brass); color: #fff; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 99; background: var(--ink);
  color: var(--sand); padding: 10px 18px; border-radius: 4px;
}
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 40;
  width: min(1240px, calc(100% - 24px));
  display: flex; align-items: center; gap: 28px;
  padding: 9px 12px 9px 22px; border-radius: 999px;
  color: rgba(245, 241, 234, .95);
  background: linear-gradient(152deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05)),
              rgba(18, 22, 26, .42);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--edge-d), 0 34px 64px -44px rgba(0, 0, 0, .85);
  transition: box-shadow .5s var(--ease), border-radius .5s var(--ease);
}
/* .solid bleibt als Haken für das Menü bestehen, ändert aber das Aussehen
   nicht mehr — die Leiste ist durchgehend dieselbe Glasleiste. */
.topbar.solid { box-shadow: var(--edge-d), 0 30px 66px -40px rgba(0, 0, 0, .9); }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.06rem; letter-spacing: .01em;
  text-decoration: none; margin-right: auto;
}
.brand em { font-style: normal; opacity: .62; margin-left: .34em; }
.nav { display: flex; gap: 26px; font-size: .88rem; letter-spacing: .04em; }
.nav a { text-decoration: none; position: relative; padding: 4px 0; opacity: .85; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: .9rem; letter-spacing: .04em; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; transition: all .45s var(--ease);
}
.btn-solid { background: var(--brass); color: #fff; box-shadow: 0 10px 30px -14px rgba(171, 128, 71, .9); }
.btn-solid:hover { background: #966f3c; transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(171, 128, 71, .95); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: currentColor; color: var(--ink); }
.sec-dark .btn-line:hover { color: var(--ink); }
.btn-ghost { border-color: currentColor; padding: 10px 20px; font-size: .84rem; }
.btn-ghost:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.topbar .btn-ghost { border-color: rgba(255, 255, 255, .42); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: .4s var(--ease); }
.burger span + span { margin-top: 6px; }

/* ---------- 3D-Bühne ---------- */
.stage { height: 620vh; position: relative; background: var(--ink); }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--sand-2); }
.fallback[hidden] { display: none; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 12, 14, .55), transparent 16%),
    linear-gradient(90deg, rgba(10, 12, 14, .5), transparent 40%,
                    transparent 58%, rgba(10, 12, 14, .46)),
    radial-gradient(120% 80% at 50% 40%, transparent 45%, rgba(10, 12, 14, .34) 100%),
    linear-gradient(to top, rgba(10, 12, 14, .58), transparent 44%);
}

.hero {
  position: absolute; left: var(--pad); bottom: clamp(70px, 12vh, 130px);
  max-width: min(640px, 62vw); color: #fff; z-index: 3;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  text-shadow: 0 2px 30px rgba(6, 8, 10, .55);
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  inset: -60px -140px -70px -80px; pointer-events: none;
  background: radial-gradient(62% 68% at 26% 58%, rgba(7, 9, 11, .72), transparent 74%);
}
.hero.gone { opacity: 0; transform: translateY(-26px); pointer-events: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; opacity: .9; margin-bottom: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-2); animation: pulse 2.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
h1 {
  font-family: var(--serif); font-weight: 300; line-height: .94;
  font-size: clamp(3rem, 8.4vw, 7.4rem); letter-spacing: -.02em;
}
h1 em { font-style: italic; opacity: .78; }
.lede { margin-top: 22px; font-size: clamp(1rem, 1.35vw, 1.22rem); max-width: 46ch; opacity: .92; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.scrollhint {
  margin-top: 40px; display: flex; align-items: center; gap: 12px;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7;
}
.scrollhint span {
  width: 34px; height: 1px; background: currentColor; position: relative; overflow: hidden;
}
.scrollhint span::after {
  content: ""; position: absolute; inset: 0; background: var(--brass-2);
  animation: sweep 2.4s var(--ease) infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.btn-tour { gap: 9px; }
.btn-tour.on { background: rgba(255, 255, 255, .16); }
.tourstop {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 88px; z-index: 5;
  font: inherit; font-size: .8rem; letter-spacing: .06em; color: #fff; cursor: pointer;
  padding: 10px 24px; border-radius: 999px; border: 0;
  background: linear-gradient(152deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05)),
              rgba(18, 22, 26, .5);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--edge-d), 0 24px 50px -36px rgba(0, 0, 0, .9);
  transition: background .4s var(--ease);
}
.tourstop:hover { background: var(--brass); }
.tourstop[hidden] { display: none; }

.steps { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.step {
  position: absolute; right: var(--pad); top: 50%; width: min(430px, 42vw);
  color: #fff; opacity: 0; transform: translate3d(0, 30px, 0);
  transition: opacity .38s var(--ease), transform .38s var(--ease);
  text-align: right; padding: 28px 32px;
  background: var(--glass-d);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-radius: var(--r-l);
  box-shadow: var(--edge-d), 0 40px 70px -50px rgba(0, 0, 0, .95);
}
.step::before {
  content: ""; display: block; width: 34px; height: 1px;
  background: var(--brass-2); margin: 0 0 16px auto;
}
.step.on {
  opacity: 1; transform: translate3d(0, -50%, 0);
  transition: opacity .6s var(--ease) .22s, transform .6s var(--ease) .22s;
}
.step h2 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.04; margin-bottom: 12px;
}
.step p { opacity: .84; font-size: clamp(.95rem, 1.1vw, 1.05rem); }

.ticker {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 3;
  display: flex; gap: clamp(18px, 4vw, 54px); justify-content: center;
  list-style: none; padding: 13px 30px; border-radius: 999px; color: #fff;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--glass-d);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--edge-d), 0 30px 60px -44px rgba(0, 0, 0, .9);
  max-width: calc(100% - 32px);
}
.ticker li { white-space: nowrap; }
.ticker b { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; margin-right: 8px; letter-spacing: 0; }

/* ---------- Grundgerüst der Abschnitte ---------- */
.sec { padding: clamp(72px, 11vh, 150px) 0; position: relative; }
.sec:not(.sec-intro) { content-visibility: auto; contain-intrinsic-size: 1px 900px; }
.wrap { width: min(1240px, 100% - var(--pad) * 2); margin-inline: auto; }
.two { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 84px); align-items: start; }
.kicker {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 14px;
}
.h2 {
  font-family: var(--serif); font-weight: 300; letter-spacing: -.015em;
  font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.06; margin-bottom: 26px;
}
.big { font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.55; margin-bottom: 20px; }
.sec p + p { margin-top: 14px; }
.note { margin-top: 18px; font-size: .84rem; color: var(--muted); }

.rev { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rev.in { opacity: 1; transform: none; }
.d1 { transition-delay: .09s; } .d2 { transition-delay: .18s; } .d3 { transition-delay: .27s; }

.sec-intro {
  background:
    radial-gradient(58vw 48vw at 92% 6%, rgba(96, 134, 168, .22), transparent 62%),
    radial-gradient(50vw 42vw at 4% 94%, rgba(171, 128, 71, .20), transparent 64%),
    var(--paper);
}
.facts {
  list-style: none; margin-top: 30px; padding: 8px clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-m);
  background: linear-gradient(152deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .52));
  box-shadow: var(--edge-l), var(--lift);
}
.facts li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid rgba(18, 22, 26, .1); font-size: .95rem;
}
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 500; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(50px, 8vh, 90px); }
.kpi {
  padding: clamp(24px, 3vw, 38px); border-radius: var(--r-m); overflow: hidden;
  background: linear-gradient(152deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .52));
  box-shadow: var(--edge-l), var(--lift);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.kpi:hover { transform: translateY(-4px); }
.kpi b, .kpi span { position: relative; z-index: 1; }
.kpi b {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; color: var(--ink);
}
.kpi span { display: block; margin-top: 10px; font-size: .86rem; color: var(--muted); }

/* ---------- Grundrisse ---------- */
.sec-plan {
  background:
    radial-gradient(54vw 46vw at 8% 10%, rgba(171, 128, 71, .22), transparent 62%),
    radial-gradient(50vw 42vw at 94% 90%, rgba(96, 134, 168, .20), transparent 64%),
    var(--sand);
}
.plan-tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.plan-tabs button {
  font: inherit; font-size: .88rem; letter-spacing: .03em; cursor: pointer;
  padding: 11px 24px; border-radius: 999px; border: 0; color: var(--text);
  background: var(--glass-l); backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--edge-l), 0 12px 26px -20px rgba(14, 18, 22, .7);
  transition: all .4s var(--ease);
}
.plan-tabs button:hover { color: var(--brass); transform: translateY(-2px); }
.plan-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.plan { display: grid; grid-template-columns: 1.6fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
#planSvg {
  width: 100%; height: auto; border-radius: var(--r-m); padding: 6px;
  background: linear-gradient(152deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .55));
  box-shadow: var(--edge-l), var(--lift);
}
#planGrid line { stroke: var(--line); stroke-width: 1; }
#planRooms rect {
  fill: rgba(171, 128, 71, .07); stroke: var(--ink); stroke-width: 2;
  transition: fill .35s var(--ease);
}
#planRooms g:hover rect, #planRooms g.on rect { fill: rgba(171, 128, 71, .26); }
#planRooms text { font-family: var(--sans); font-size: 15px; fill: var(--ink); }
#planRooms text.a { fill: var(--muted); font-size: 13px; }
#planRooms g { cursor: default; opacity: 0; animation: planIn .6s var(--ease) forwards; }
@keyframes planIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dims line { stroke: var(--brass); stroke-width: 1; }
.dims text { font-size: 12px; fill: var(--brass); letter-spacing: .08em; }
.plan-info {
  padding: 26px 28px; border-radius: var(--r-m); overflow: hidden;
  background: var(--glass-l); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--edge-l), var(--lift);
}
.plan-info > * { position: relative; z-index: 1; }
.plan-info h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 10px; }
.plan-info dl { margin-top: 20px; border-top: 1px solid var(--line); }
.plan-info dt { float: left; clear: left; color: var(--muted); font-size: .9rem; padding: 9px 0; }
.plan-info dd { text-align: right; font-size: .9rem; padding: 9px 0; border-bottom: 1px solid rgba(18, 22, 26, .1); font-weight: 500; }

/* ---------- Dunkle Abschnitte ---------- */
.sec-dark {
  background:
    radial-gradient(50vw 44vw at 88% 6%, rgba(126, 158, 188, .16), transparent 62%),
    radial-gradient(44vw 40vw at 8% 92%, rgba(171, 128, 71, .18), transparent 64%),
    var(--ink);
  color: rgba(245, 241, 234, .82);
}
.sec-dark .h2 { color: var(--sand); }
.sec-dark .kicker { color: var(--brass-2); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }
.card {
  padding: clamp(24px, 2.4vw, 34px); border-radius: var(--r-m); overflow: hidden;
  background: linear-gradient(152deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045));
  box-shadow: var(--edge-d), 0 30px 60px -44px rgba(0, 0, 0, .8);
  transition: transform .6s var(--ease), background .6s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card > * { position: relative; z-index: 1; }
.card .ic { font-style: normal; color: var(--brass-2); font-size: 1.4rem; display: block; margin-bottom: 16px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.16rem; color: var(--sand); margin-bottom: 8px; }
.card p { font-size: .9rem; opacity: .74; }

.times { list-style: none; margin-top: 28px; }
.times li { display: flex; gap: 18px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.times b { font-family: var(--serif); font-weight: 400; color: var(--brass-2); min-width: 76px; }
.map { width: 100%; height: auto; border-radius: var(--r-m); box-shadow: var(--edge-d), var(--lift); }
.m-bg { fill: #1a2027; }
.m-water { fill: #16323a; }
.m-block rect { fill: rgba(245, 241, 234, .10); }
.m-road { stroke: rgba(245, 241, 234, .22); stroke-width: 2; fill: none; }
.m-pin circle { fill: var(--brass); }
.m-pin .halo { fill: rgba(171, 128, 71, .22); animation: halo 3s var(--ease) infinite; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.m-pin text { fill: var(--sand); font-size: 15px; text-anchor: middle; font-family: var(--serif); }
.m-poi circle { fill: rgba(245, 241, 234, .55); }
.m-poi text { fill: rgba(245, 241, 234, .6); font-size: 12px; letter-spacing: .08em; }

/* ---------- Tabelle ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters button {
  font: inherit; font-size: .86rem; cursor: pointer; padding: 9px 20px;
  border-radius: 999px; border: 0; color: var(--text);
  background: var(--glass-l); backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--edge-l), 0 12px 26px -20px rgba(14, 18, 22, .7);
  transition: all .4s var(--ease);
}
.filters button:hover { color: var(--brass); transform: translateY(-2px); }
.filters button.on { background: var(--brass); border-color: var(--brass); color: #fff; }
.table {
  overflow-x: auto; border-radius: var(--r-m);
  background: linear-gradient(152deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .58));
  box-shadow: var(--edge-l), var(--lift);
}
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .92rem; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid rgba(18, 22, 26, .09); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th { font-weight: 500; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
tbody tr { transition: background .35s var(--ease); }
tbody tr:hover { background: rgba(255, 255, 255, .5); }
tbody tr.hide { display: none; }
td b { font-weight: 500; }
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .76rem; letter-spacing: .04em; }
.tag.frei { background: rgba(72, 122, 84, .16); color: #3d6b49; }
.tag.res  { background: rgba(171, 128, 71, .18); color: #8a6533; }
.tag.weg  { background: rgba(18, 22, 26, .09); color: var(--muted); }

/* ---------- Material ---------- */
.sec-mat {
  background:
    radial-gradient(52vw 44vw at 94% 12%, rgba(171, 128, 71, .18), transparent 62%),
    radial-gradient(46vw 40vw at 6% 96%, rgba(96, 134, 168, .16), transparent 64%),
    var(--paper);
}
.mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.mat { perspective: 900px; }
.swatch {
  aspect-ratio: 4 / 3; border-radius: var(--r-m); position: relative; overflow: hidden;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .8);
}
.mat:hover .swatch { transform: rotateX(6deg) rotateY(-7deg) translateY(-6px) scale(1.02); box-shadow: 0 40px 60px -34px rgba(0, 0, 0, .75); }
.swatch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .34), transparent 42%); }
.s-eiche {
  background:
    repeating-linear-gradient(94deg, rgba(60, 34, 14, .30) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(88deg, rgba(255, 226, 190, .16) 0 1px, transparent 1px 14px),
    linear-gradient(140deg, #7a5227, #4e3115);
}
.s-beton {
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(255, 255, 255, .32), transparent 60%),
    radial-gradient(50% 40% at 80% 70%, rgba(0, 0, 0, .16), transparent 60%),
    linear-gradient(160deg, #c9c6c0, #a7a49e);
}
.s-messing {
  background:
    repeating-linear-gradient(96deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 5px),
    linear-gradient(150deg, #e3c48a, #a87c3b 42%, #d9b57e 62%, #8c6530);
}
.mat figcaption { margin-top: 16px; }
.mat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.mat span { color: var(--muted); font-size: .88rem; }

/* ---------- Kontakt ---------- */
.sec-cta {
  background:
    radial-gradient(50vw 44vw at 88% 90%, rgba(171, 128, 71, .26), transparent 62%),
    radial-gradient(44vw 40vw at 6% 6%, rgba(96, 134, 168, .20), transparent 64%),
    linear-gradient(160deg, var(--sand-2), var(--sand) 60%);
}
.contact { margin-top: 26px; font-size: .95rem; line-height: 1.9; }
.contact a { color: var(--brass); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .4s var(--ease); }
.contact a:hover { border-color: var(--brass); }
.form {
  padding: clamp(26px, 3vw, 42px); border-radius: var(--r-l); overflow: hidden;
  background: var(--glass-l); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--edge-l), var(--lift);
}
.form > * { position: relative; z-index: 1; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 8px; font: inherit; font-size: .95rem;
  color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 2px; border-radius: 0; transition: border-color .4s var(--ease);
  text-transform: none; letter-spacing: normal;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--brass); }
.form .btn { margin-top: 8px; }
.hint { margin-top: 14px; font-size: .8rem; color: var(--muted); }
.hint.ok { color: #3d6b49; }

/* ---------- Fuß ---------- */
.foot { background: var(--ink); color: rgba(245, 241, 234, .66); padding: clamp(46px, 7vh, 80px) 0 30px; }
.foot .two { align-items: center; }
.brand-foot { font-family: var(--serif); font-size: 1.25rem; color: var(--sand); }
.brand-foot em { font-style: normal; opacity: .6; margin-left: .34em; }
.small { font-size: .88rem; margin-top: 6px; }
.footlinks { display: flex; gap: 26px; justify-content: flex-end; font-size: .88rem; }
.footlinks a { text-decoration: none; opacity: .8; transition: opacity .4s var(--ease); }
.footlinks a:hover { opacity: 1; color: var(--brass-2); }
.disclaimer { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: .78rem; opacity: .55; }

/* ---------- Ansichten ---------- */
.sec-gal {
  background:
    radial-gradient(52vw 46vw at 10% 6%, rgba(126, 158, 188, .16), transparent 62%),
    radial-gradient(46vw 42vw at 92% 94%, rgba(171, 128, 71, .18), transparent 64%),
    var(--ink);
  color: rgba(245, 241, 234, .8);
}
.sec-gal .h2 { color: var(--sand); }
.sec-gal .kicker { color: var(--brass-2); }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; grid-auto-flow: dense; }
.shot {
  position: relative; overflow: hidden; margin: 0; cursor: zoom-in;
  background: #1b2026; border-radius: var(--r-m);
  box-shadow: var(--edge-d), 0 30px 60px -40px rgba(0, 0, 0, .85);
}
.shot.w2 { grid-column: span 2; }
.shot.h2x { grid-row: span 2; }
.shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.shot:hover img { transform: scale(1.045); filter: saturate(108%); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  font-size: .85rem; color: #fff; letter-spacing: .02em;
  background: linear-gradient(to top, rgba(8, 10, 12, .78), transparent);
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: none; }
.galnote { margin-top: 22px; font-size: .8rem; opacity: .5; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh;
  overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(8, 10, 12, .92); backdrop-filter: blur(6px); }
dialog.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--r-m); }
dialog.lightbox p { color: rgba(245, 241, 234, .78); font-size: .85rem; margin-top: 12px; }
dialog.lightbox[open] { animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lbclose {
  position: fixed; top: 18px; right: 20px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(12, 15, 18, .5);
  color: #fff; font-size: 1.1rem; cursor: pointer; transition: all .4s var(--ease);
}
.lbclose:hover { background: var(--brass); border-color: var(--brass); }

/* ---------- Rechtstexte ---------- */
.legal { padding: 130px 0 90px; background: var(--paper); min-height: 70vh; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); margin-bottom: 28px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { font-size: .96rem; }
.legal ul { margin-left: 20px; }

/* ---------- Schmale Fenster ---------- */
@media (max-width: 1000px) {
  .nav, .topcta { display: none; }
  .burger { display: block; }
  .topbar.open { flex-wrap: wrap; border-radius: var(--r-l); padding-bottom: 14px; }
  .topbar.open .nav { display: flex; flex-direction: column; width: 100%; gap: 4px; padding: 18px 0 10px; font-size: 1.1rem; }
  .two, .plan { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .shot.h2x { grid-row: auto; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .step { width: min(360px, 62vw); }
  .footlinks { justify-content: flex-start; margin-top: 22px; }
}
@media (max-width: 640px) {
  .stage { height: 560vh; }
  .hero { right: var(--pad); max-width: none; bottom: 96px; }
  .step { left: var(--pad); right: var(--pad); width: auto; top: 22%; text-align: left; }
  .step.on { transform: translate3d(0, 0, 0); }
  .grid4, .mats, .kpis { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr; }
  .shot.w2, .shot.h2x { grid-column: auto; grid-row: auto; }
  .ticker { gap: 18px; font-size: .66rem; overflow-x: auto; justify-content: flex-start; padding: 11px 20px; }
  .form .row { grid-template-columns: 1fr; }
  .plan-info { padding: 22px 24px; }
}
