/* ==========================================================================
   NK Bauservice GmbH — Design System
   Palette: BA2D0B / D5F2E3 / 73BA9B / 003E1F / 01110A
   Stil: Swiss Minimalism × Handwerk-Wärme
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Marke */
  --gold:         #DEAB0C;   /* Logogelb */
  --gold-light:   #F2C227;   /* für dunkle Flächen */
  --gold-dark:    #8A6A05;   /* kontraststark auf Hell */
  --brick:        #BA2D0B;
  --brick-600:    #9E2609;
  --brick-400:    #D9451F;
  --brick-light:  #F0653C;   /* für dunkle Flächen, AA-konform */
  --mint:         #D5F2E3;
  --sage:         #73BA9B;
  --sage-600:     #4E9377;
  --forest:       #003E1F;
  --forest-700:   #003018;
  --ink:          #01110A;

  /* Flächen */
  --paper:        #F8FBF9;
  --paper-2:      #EFF7F2;
  --card:         #FFFFFF;
  --line:         #DCE9E1;
  --line-strong:  #C2D9CC;

  /* Text */
  --tx:           #01110A;
  --tx-2:         #3D5348;
  --tx-3:         #6B8377;
  --tx-inv:       #EEF9F2;
  --tx-inv-2:     #A9CBB9;

  /* Holz (3D + Akzente) */
  --oak:          #C8A075;
  --walnut:       #6E4A2E;
  --ash:          #E0CBAE;

  /* Typografie */
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-serif:   'Instrument Serif', Georgia, serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   clamp(1.05rem, 0.5vw + 0.95rem, 1.18rem);
  --fs-lg:   clamp(1.25rem, 1vw + 1rem, 1.6rem);
  --fs-xl:   clamp(1.6rem, 2vw + 1.1rem, 2.4rem);
  --fs-2xl:  clamp(2rem, 3.2vw + 1.1rem, 3.4rem);
  --fs-3xl:  clamp(2.6rem, 6vw + 0.8rem, 5.6rem);

  /* Raster */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;
  --shell: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Radius & Schatten */
  --r-sm: 6px;  --r-md: 12px; --r-lg: 20px; --r-xl: 32px; --r-full: 999px;
  --sh-1: 0 1px 2px rgba(1,17,10,.06), 0 2px 8px rgba(1,17,10,.04);
  --sh-2: 0 4px 12px rgba(1,17,10,.07), 0 12px 32px rgba(1,17,10,.06);
  --sh-3: 0 12px 28px rgba(1,17,10,.10), 0 32px 64px rgba(1,17,10,.09);

  /* Motion */
  --e-out: cubic-bezier(.22,.61,.36,1);
  --e-io:  cubic-bezier(.65,.05,.36,1);
  --t-fast: 160ms; --t-med: 260ms; --t-slow: 460ms;

  --header-h: 72px;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--tx);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--brick); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- 3. Layout-Helfer --------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section--dark {
  background: var(--forest);
  color: var(--tx-inv);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--ink { background: var(--ink); color: var(--tx-inv); }
.section--mint { background: var(--mint); }
.section--paper2 { background: var(--paper-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--brick); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-md) var(--r-md); z-index: 999; font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* ---------- 4. Typo-Bausteine -------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--brick); flex: none;
}
.section--dark .eyebrow, .section--ink .eyebrow { color: var(--sage); }
.section--dark .eyebrow::before, .section--ink .eyebrow::before { background: var(--sage); }

.h-sec { font-size: var(--fs-2xl); max-width: 20ch; }
.h-sec em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.lead {
  font-size: var(--fs-md); color: var(--tx-2); max-width: 62ch; margin-top: var(--sp-4);
}
.section--dark .lead, .section--ink .lead { color: var(--tx-inv-2); }

.sec-head { margin-bottom: clamp(32px, 4vw, 64px); }
.sec-head--split {
  display: grid; gap: var(--sp-5);
  grid-template-columns: minmax(0,1fr);
  align-items: end;
}
.sec-head--split > * { min-width: 0; }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: var(--sp-8); }
}

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--brick);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--r-full);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform var(--t-fast) var(--e-out),
              box-shadow var(--t-med) var(--e-out),
              background-color var(--t-med) var(--e-out);
  will-change: transform;
}
.btn svg { flex: none; transition: transform var(--t-med) var(--e-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(186,45,11,.28); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--tx);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--card); box-shadow: var(--sh-2); border-color: var(--sage); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--forest); }
.btn--light:hover { box-shadow: 0 10px 24px rgba(0,0,0,.25); }

.btn--outline-light {
  --btn-bg: transparent; --btn-fg: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; box-shadow: none; }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--brick);
  padding: 8px 0; min-height: 44px;
}
.link-arrow svg { transition: transform var(--t-med) var(--e-out); }
.link-arrow:hover svg { transform: translateX(5px); }
.section--dark .link-arrow, .section--ink .link-arrow { color: var(--brick-light); }

/* ---------- 6. Header ---------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color var(--t-med) var(--e-out),
              box-shadow var(--t-med) var(--e-out),
              backdrop-filter var(--t-med);
}
.header.is-stuck {
  background: rgba(248,251,249,.88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(1,17,10,.05);
}
.header__inner {
  width: 100%; max-width: var(--shell); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
}

.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; }
.brand__mark {
  height: 46px; width: auto; flex: none;
  transition: transform var(--t-med) var(--e-out);
}
.brand:hover .brand__mark { transform: scale(1.05) rotate(-2deg); }
.brand__rule { width: 1px; height: 32px; background: var(--line-strong); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
  letter-spacing: .17em; text-transform: uppercase; color: var(--tx);
}
.brand__sub {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tx-3); font-weight: 600; margin-top: 2px;
}
.brand__claim {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tx-inv-2); margin-top: var(--sp-4);
}
.brand--footer .brand__mark { height: 64px; }
.brand--footer .brand__rule { background: rgba(255,255,255,.22); height: 40px; }
.brand--footer .brand__name { color: var(--gold-light); }
.brand--footer .brand__sub { color: var(--tx-inv-2); }

/* Header über dem dunklen Hero: helle Schrift für ausreichenden Kontrast */
.header:not(.is-stuck) .brand__name { color: var(--gold-light); }
.header:not(.is-stuck) .brand__sub { color: rgba(213,242,227,.72); }
.header:not(.is-stuck) .brand__rule { background: rgba(255,255,255,.26); }
.header:not(.is-stuck) .nav__link { color: rgba(238,249,242,.82); }
.header:not(.is-stuck) .nav__link:hover,
.header:not(.is-stuck) .nav__link.is-active { color: #fff; }
.header:not(.is-stuck) .nav__link::after { background: var(--gold-light); }
.header:not(.is-stuck) .burger {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.header:not(.is-stuck) .burger span { background: #fff; }

@media (max-width: 420px) {
  .brand__mark { height: 40px; }
  .brand__name { font-size: .8rem; letter-spacing: .14em; }
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 2px; }
}
.nav__link {
  position: relative; padding: 10px 14px; min-height: 44px;
  display: inline-flex; align-items: center;
  font-size: var(--fs-sm); font-weight: 500; color: var(--tx-2);
  border-radius: var(--r-full);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--brick); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--e-out);
}
.nav__link:hover { color: var(--tx); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--tx); font-weight: 600; }

.header__cta { display: none; }
@media (min-width: 768px) { .header__cta { display: inline-flex; } }

.burger {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center; border-radius: var(--r-full);
  border: 1.5px solid var(--line-strong); background: rgba(255,255,255,.7);
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  display: block; width: 18px; height: 2px; background: var(--tx); border-radius: 2px;
  transition: transform var(--t-med) var(--e-out), opacity var(--t-fast);
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile-Drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--forest); color: var(--tx-inv);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: var(--sp-5);
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 46px) 36px);
  transition: clip-path 620ms var(--e-io);
  visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 46px) 36px); visibility: visible; }
.drawer__list { display: flex; flex-direction: column; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; min-height: 56px;
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateY(14px);
}
.drawer.is-open .drawer__link { animation: drawerIn .5s var(--e-out) forwards; }
.drawer__link span { font-size: .7rem; color: var(--sage); font-family: var(--f-body); letter-spacing: .1em; }
@keyframes drawerIn { to { opacity: 1; transform: none; } }
.drawer__foot { margin-top: auto; display: grid; gap: 12px; }
.drawer__meta { font-size: var(--fs-sm); color: var(--tx-inv-2); }
.drawer__meta a { color: #fff; font-weight: 600; }

/* ---------- 7. Hero ------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 32px); padding-bottom: 48px;
  background: #000;
  color: var(--tx-inv);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(115% 85% at 76% 8%, rgba(115,186,155,.16) 0%, transparent 55%),
    radial-gradient(85% 65% at 6% 96%, rgba(186,45,11,.20) 0%, transparent 52%),
    linear-gradient(170deg, #0A1310 0%, #050B08 42%, #000000 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* dekorative Dielen-Linien */
.hero__planks {
  position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1;
  opacity: .10; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(213,242,227,.45) 118px 119px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(213,242,227,.30) 34px 35px);
  transform: perspective(560px) rotateX(58deg) scale(1.7);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 88%);
  mask-image: linear-gradient(to top, #000 5%, transparent 88%);
}

.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: center; width: 100%;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: var(--r-full);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-xs); font-weight: 500; color: var(--tx-inv);
  margin-bottom: var(--sp-5);
}
.hero__badge b { color: #fff; font-weight: 700; }
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex: none;
  box-shadow: 0 0 0 0 rgba(115,186,155,.7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(115,186,155,0); }
  100% { box-shadow: 0 0 0 0 rgba(115,186,155,0); }
}
.hero__badge .stars { color: #F5C518; letter-spacing: 1px; font-size: 11px; }
.hero__badge .chip {
  background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; color: #fff;
}

.hero h1 {
  font-size: var(--fs-3xl);
  color: #fff;
  margin-bottom: var(--sp-5);
  letter-spacing: -.04em;
}
.hero h1 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  color: var(--sage); letter-spacing: -.01em;
}
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .word > span {
  display: inline-block; transform: translateY(105%);
  animation: wordUp .9s var(--e-out) forwards;
}
@keyframes wordUp { to { transform: none; } }

.hero__lead {
  font-size: var(--fs-md); color: #A8BCB1; max-width: 52ch; margin-bottom: var(--sp-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--sp-3); }
.hero__3d { color: var(--sage); margin-bottom: var(--sp-6); }
.hero__3d:hover { color: #fff; }

.hero__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--sp-4) var(--sp-5);
  padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 560px) { .hero__stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat__num {
  font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1;
}
.stat__num sup { font-size: .5em; color: var(--sage); top: -.6em; }
.stat__label {
  font-size: var(--fs-xs); color: var(--tx-inv-2); margin-top: 6px;
  letter-spacing: .04em;
}

/* Hero-Visual: 3D-Musterstapel */
.hero__visual { position: relative; display: none; }
@media (min-width: 1024px) { .hero__visual { display: block; } }

.hero__stage {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #050A07;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero__layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1100ms var(--e-io);
}
.hero__layer.is-on { opacity: 1; }
.hero__tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(0,0,0,.62); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 15px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 24px;
  display: none; align-items: center; gap: 10px; writing-mode: horizontal-tb;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--tx-inv-2);
}
@media (min-width: 1024px) { .hero__scroll { display: flex; } }
.hero__scroll i {
  display: block; width: 1px; height: 40px; background: rgba(255,255,255,.3); position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ''; position: absolute; inset: 0; background: var(--sage);
  animation: scrollLine 2s var(--e-io) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); }
}

/* ---------- 8. Marquee (Leistungs-Laufband) ------------------------------ */
.marquee {
  background: var(--ink); color: var(--tx-inv);
  padding: 18px 0; overflow: hidden; border-block: 1px solid rgba(255,255,255,.08);
}
.marquee__track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-size: 1rem; font-weight: 600;
  letter-spacing: -.01em; white-space: nowrap; color: rgba(238,249,242,.82);
}
.marquee__item::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brick-light);
}

/* ---------- 9. Leistungen (Karten mit 3D-Muster) ------------------------- */
.svc-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.svc {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-4);
  overflow: hidden;
  transition: transform var(--t-med) var(--e-out),
              box-shadow var(--t-med) var(--e-out),
              border-color var(--t-med);
}
.svc::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(115,186,155,.14), transparent 62%);
  opacity: 0; transition: opacity var(--t-med); pointer-events: none;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--sage); }
.svc:hover::before { opacity: 1; }

/* Perspektivische Bodenansicht in der Karte */
.svc__view {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md);
  overflow: hidden; background: #0d1310;
  box-shadow: inset 0 0 0 1px rgba(1,17,10,.10);
}
.svc__floor {
  position: absolute; inset: 0;
  transform: scale(1.02);
  transition: transform 900ms var(--e-io), filter 500ms var(--e-out);
}
.svc__floor canvas, .svc__floor img { width: 100%; height: 100%; object-fit: cover; }
.svc:hover .svc__floor, .svc:focus-within .svc__floor {
  transform: scale(1.09) translateY(-2%);
  filter: brightness(1.06) saturate(1.04);
}
.svc__badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,.62); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-full);
}
.svc__icon {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--mint); color: var(--forest);
}
.svc h3 { font-size: var(--fs-lg); }
.svc p { font-size: var(--fs-sm); color: var(--tx-2); }
.svc__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.svc__list li {
  font-size: 11px; font-weight: 500; color: var(--tx-2);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: var(--r-full);
}
.svc__cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--brick);
}
.svc__cta svg { transition: transform var(--t-med) var(--e-out); }
.svc:hover .svc__cta svg { transform: translateX(5px); }
.svc__link { position: absolute; inset: 0; z-index: 3; }

/* ---------- 10. 3D-Konfigurator ------------------------------------------ */
.cfg {
  display: grid; gap: var(--sp-5);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .cfg { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-6); align-items: start; }
}
.cfg__stage {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, #06251A, #01110A);
  border: 1px solid rgba(255,255,255,.12);
  aspect-ratio: 16 / 11;
  width: 100%; min-width: 0; max-width: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.cfg__stage:active { cursor: grabbing; }
@media (min-width: 768px) { .cfg__stage { aspect-ratio: 16 / 9; } }
.cfg__panel { min-width: 0; }
.cfg__stage canvas { width: 100%; height: 100%; display: block; }
.cfg__loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--ink); color: var(--tx-inv-2); font-size: var(--fs-sm);
  gap: 12px; z-index: 4; transition: opacity var(--t-slow); text-align: center;
}
.cfg__loading.is-hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18); border-top-color: var(--sage);
  animation: spin .9s linear infinite; margin-inline: auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cfg__hint {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(1,17,10,.66); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 8px 14px; border-radius: var(--r-full);
  font-size: 11px; letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.14);
  transition: opacity var(--t-med);
}
.cfg__hint.is-hidden { opacity: 0; }
.cfg__badge {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  background: rgba(186,45,11,.92); color: #fff;
  padding: 6px 13px; border-radius: var(--r-full);
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

.cfg__panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: grid; gap: var(--sp-5);
}
.section--dark .cfg__panel {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ctrl__label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tx-3); margin-bottom: 12px;
}
.section--dark .ctrl__label { color: var(--sage); }
.ctrl__value { color: var(--brick-light); font-weight: 600; letter-spacing: .02em; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 9px 15px;
  border-radius: var(--r-full); border: 1.5px solid var(--line-strong);
  background: var(--card); color: var(--tx-2);
  font-size: var(--fs-sm); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all var(--t-fast) var(--e-out);
}
.section--dark .chip, .section--ink .chip {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--tx-inv);
}
.section--ink .ctrl__label { color: var(--sage); }
.chip:hover { border-color: var(--sage); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--brick); border-color: var(--brick); color: #fff; font-weight: 600;
}
.chip__sw {
  width: 16px; height: 16px; border-radius: 4px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; }
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--brick) var(--fill,50%), rgba(255,255,255,.18) var(--fill,50%));
}
.range::-moz-range-track { height: 6px; border-radius: var(--r-full); background: rgba(255,255,255,.18); }
.range::-moz-range-progress { height: 6px; border-radius: var(--r-full); background: var(--brick); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brick); margin-top: -8px;
  box-shadow: var(--sh-2); cursor: grab; transition: transform var(--t-fast);
}
.range::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--brick); box-shadow: var(--sh-2); cursor: grab;
}
.range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--sage); outline-offset: 2px; }

.cfg__out {
  border-top: 1px solid var(--line); padding-top: var(--sp-4);
  display: grid; gap: 10px;
}
.section--dark .cfg__out { border-color: rgba(255,255,255,.14); }
.cfg__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.cfg__row dt { color: var(--tx-inv-2); }
.section--dark .cfg__row dt { color: var(--tx-inv-2); }
.cfg__row dd { font-weight: 600; text-align: right; }
.cfg__price { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--brick-light); }
.cfg__note { font-size: 11px; color: var(--tx-3); line-height: 1.5; }
.section--dark .cfg__note { color: rgba(169,203,185,.75); }

/* ---------- 11. Ablauf --------------------------------------------------- */
.steps { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); counter-reset: st; }
.step {
  position: relative; padding: var(--sp-5);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--t-med) var(--e-out), box-shadow var(--t-med);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step__n {
  counter-increment: st;
  font-family: var(--f-display); font-size: 3rem; font-weight: 700;
  line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--sage);
  margin-bottom: var(--sp-4); display: block;
}
.step__n::before { content: counter(st, decimal-leading-zero); }
.step h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.step p { font-size: var(--fs-sm); color: var(--tx-2); }

/* ---------- 12. Referenzen / Galerie ------------------------------------- */
.gal {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .gal { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); } }
.gal__item {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--paper-2); aspect-ratio: 1;
  border: 1px solid var(--line);
  transition: transform var(--t-med) var(--e-out), box-shadow var(--t-med);
}
.gal__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
@media (min-width: 768px) { .gal__item--tall { grid-row: span 2; aspect-ratio: 1 / 2; } }
.gal__item img, .gal__item canvas { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--e-io); }
.gal__item:hover { box-shadow: var(--sh-3); z-index: 2; }
.gal__item:hover img, .gal__item:hover canvas { transform: scale(1.06); }
.gal__cap {
  position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(1,17,10,.86), transparent);
  color: #fff; font-size: var(--fs-xs); font-weight: 500;
  transform: translateY(6px); opacity: 0; transition: all var(--t-med) var(--e-out);
}
.gal__item:hover .gal__cap, .gal__item:focus-within .gal__cap { transform: none; opacity: 1; }
@media (hover: none) {
  .gal__cap { opacity: 1; transform: none; }
}

/* Vorher/Nachher */
.ba {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16 / 10; user-select: none; touch-action: pan-y;
  border: 1px solid var(--line); background: var(--ink);
}
@media (min-width: 768px) { .ba { aspect-ratio: 21 / 9; } }
.ba__layer { position: absolute; inset: 0; }
.ba__layer canvas, .ba__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__layer--after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(0,0,0,.5); cursor: ew-resize; z-index: 3;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--forest);
  display: grid; place-items: center; box-shadow: var(--sh-3);
  cursor: ew-resize;
}
.ba__knob svg { pointer-events: none; }
.ba__tag {
  position: absolute; top: 14px; z-index: 2;
  background: rgba(1,17,10,.72); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 6px 13px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; background: rgba(186,45,11,.9); }

/* ---------- 13. Bewertungen ---------------------------------------------- */
.rev-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.rev-score {
  display: flex; align-items: center; gap: var(--sp-4);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
}
.rev-score__big {
  font-family: var(--f-display); font-size: 3rem; font-weight: 700;
  line-height: 1; letter-spacing: -.04em; color: #fff;
}
.rev-score__stars { color: #F5C518; font-size: 1rem; letter-spacing: 2px; }
.rev-score__meta { font-size: var(--fs-xs); color: var(--tx-inv-2); margin-top: 4px; }

.rev-rail {
  display: flex; gap: var(--sp-4);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-4);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.rev-rail::-webkit-scrollbar { height: 5px; }
.rev-rail::-webkit-scrollbar-track { background: rgba(255,255,255,.08); border-radius: 99px; }
.rev-rail::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 99px; }
.rev {
  flex: 0 0 min(88vw, 350px); scroll-snap-align: start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform var(--t-med) var(--e-out), border-color var(--t-med);
}
.rev:hover { transform: translateY(-4px); border-color: var(--sage); }
.rev__stars { color: #F5C518; letter-spacing: 2px; font-size: 14px; }
.rev__text { font-size: var(--fs-sm); color: var(--tx-inv); line-height: 1.65; flex: 1; }
.rev__job {
  font-size: 11px; color: var(--sage); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.rev__foot {
  display: flex; align-items: center; gap: 10px;
  padding-top: var(--sp-3); border-top: 1px solid rgba(255,255,255,.1);
  font-size: var(--fs-xs); color: var(--tx-inv-2);
}
.rev__av {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--sage); color: var(--forest);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.rev__name { color: #fff; font-weight: 600; }

.rail-nav { display: flex; gap: 8px; margin-left: auto; }
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.22);
  display: grid; place-items: center; color: #fff;
  transition: all var(--t-fast) var(--e-out);
}
.rail-btn:hover { background: var(--brick); border-color: var(--brick); }
.rail-btn:disabled { opacity: .3; cursor: not-allowed; }
.section--paper2 .rail-btn, .section--mint .rail-btn { border-color: var(--line-strong); color: var(--tx); }
.section--paper2 .rail-btn:hover, .section--mint .rail-btn:hover { background: var(--brick); border-color: var(--brick); color: #fff; }

/* ---------- 14. Über uns ------------------------------------------------- */
.about { display: grid; gap: clamp(32px,5vw,64px); grid-template-columns: minmax(0,1fr); align-items: center; }
.about > * { min-width: 0; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); } }
.about__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--paper-2); border: 1px solid var(--line); }
.about__media img, .about__media canvas { width: 100%; height: 100%; object-fit: cover; }
.about__card {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: var(--r-md); padding: var(--sp-4);
  box-shadow: var(--sh-2);
}
.about__card strong { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.about__card span { font-size: var(--fs-xs); color: var(--tx-3); }

.facts { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%,180px),1fr)); margin-top: var(--sp-6); }
.fact { padding: var(--sp-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.fact dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); font-weight: 600; }
.fact dd { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; margin-top: 4px; letter-spacing: -.02em; }

.usp-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.usp { display: flex; gap: 14px; align-items: flex-start; }
.usp__ic {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--mint); color: var(--forest); display: grid; place-items: center;
}
.usp b { display: block; font-size: var(--fs-base); }
.usp span { font-size: var(--fs-sm); color: var(--tx-2); }

/* Einzugsgebiet */
.regions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-5); }
.region {
  font-size: var(--fs-xs); font-weight: 500;
  padding: 7px 14px; border-radius: var(--r-full);
  background: var(--card); border: 1px solid var(--line); color: var(--tx-2);
  transition: all var(--t-fast);
}
.region:hover { border-color: var(--sage); background: var(--mint); color: var(--forest); }

/* ---------- 15. Blog (kompakt) ------------------------------------------- */
.blog-rail {
  display: flex; gap: var(--sp-4); overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: var(--sp-4);
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.blog-rail::-webkit-scrollbar { height: 5px; }
.blog-rail::-webkit-scrollbar-track { background: var(--line); border-radius: 99px; }
.blog-rail::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 99px; }

.post {
  flex: 0 0 min(86vw, 320px); scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--e-out), box-shadow var(--t-med), border-color var(--t-med);
  position: relative;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--sage); }
.post__img { aspect-ratio: 16/9; background: var(--paper-2); overflow: hidden; position: relative; }
.post__media { position: absolute; inset: 0; }
.post__img img, .post__img canvas { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--e-io); }
.post:hover .post__img img, .post:hover .post__img canvas { transform: scale(1.07); }
.post__cat {
  position: absolute; top: 10px; left: 10px;
  background: rgba(1,17,10,.8); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-full);
}
.post__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post__meta { font-size: 11px; color: var(--tx-3); letter-spacing: .04em; display: flex; gap: 10px; align-items: center; }
.post__meta span { display: inline-flex; align-items: center; gap: 5px; }
.post h3 { font-size: 1.08rem; line-height: 1.25; }
.post p { font-size: var(--fs-sm); color: var(--tx-2); flex: 1; }
.post__more { font-size: var(--fs-sm); font-weight: 600; color: var(--brick); display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.post__link { position: absolute; inset: 0; z-index: 2; }

/* Blog-Modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 16px;
  background: rgba(1,17,10,.75);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility var(--t-med);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  background: var(--paper); border-radius: var(--r-lg);
  width: min(760px, 100%); max-height: 88svh; overflow-y: auto;
  box-shadow: var(--sh-3); position: relative;
  transform: translateY(24px) scale(.98); transition: transform var(--t-slow) var(--e-out);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: sticky; top: 12px; margin-left: auto; margin-right: 12px;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); box-shadow: var(--sh-2); z-index: 5; color: var(--tx);
}
.modal__body { padding: 0 clamp(20px,4vw,40px) 40px; margin-top: -44px; }
.modal__body .post__cat { position: static; display: inline-block; margin-bottom: 14px; background: var(--brick); }
.modal__body h2 { font-size: var(--fs-xl); margin-bottom: 12px; }
.modal__body .post__meta { margin-bottom: 20px; }
.modal__body img, .modal__body canvas { width: 100%; border-radius: var(--r-md); margin-block: 20px; }
.modal__body h3 { font-size: var(--fs-lg); margin-top: 28px; margin-bottom: 10px; }
.modal__body p { margin-bottom: 14px; color: var(--tx-2); }
.modal__body ul { margin-bottom: 14px; display: grid; gap: 8px; }
.modal__body ul li { padding-left: 22px; position: relative; color: var(--tx-2); font-size: var(--fs-sm); }
.modal__body ul li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
}

/* ---------- 16. FAQ ------------------------------------------------------ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color var(--t-med), box-shadow var(--t-med);
}
.faq__item[open] { border-color: var(--sage); box-shadow: var(--sh-1); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--sp-4); min-height: 60px; cursor: pointer;
  font-family: var(--f-display); font-weight: 600; font-size: var(--fs-base);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q i {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  transition: transform var(--t-med) var(--e-out), background-color var(--t-med);
  position: relative;
}
.faq__q i::before, .faq__q i::after {
  content: ''; position: absolute; background: var(--tx); border-radius: 2px;
}
.faq__q i::before { width: 11px; height: 1.5px; }
.faq__q i::after { width: 1.5px; height: 11px; transition: transform var(--t-med) var(--e-out); }
.faq__item[open] .faq__q i { background: var(--brick); border-color: var(--brick); transform: rotate(180deg); }
.faq__item[open] .faq__q i::before, .faq__item[open] .faq__q i::after { background: #fff; }
.faq__item[open] .faq__q i::after { transform: scaleY(0); }
.faq__a { padding: 0 var(--sp-4) 20px; color: var(--tx-2); font-size: var(--fs-sm); max-width: 70ch; }

/* ---------- 17. Kontakt -------------------------------------------------- */
.contact { display: grid; gap: clamp(32px,5vw,56px); grid-template-columns: minmax(0,1fr); }
.contact > * { min-width: 0; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); } }

.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 7px; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field label .req { color: var(--brick-light); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: var(--r-md); color: #fff;
  font-size: var(--fs-base);
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(238,249,242,.42); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 4px rgba(115,186,155,.16);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23A9CBB9' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field select option { background: var(--forest); color: #fff; }
.field__hint { font-size: 11px; color: var(--tx-inv-2); }
.field__err { font-size: var(--fs-xs); color: #FFB4A0; font-weight: 500; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #FF7A5C; }
.field.has-error .field__err { display: block; }
.form__row { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0,1fr); }
.form__row > * { min-width: 0; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__ok {
  display: none; padding: var(--sp-4); border-radius: var(--r-md);
  background: rgba(115,186,155,.16); border: 1px solid var(--sage);
  color: #fff; font-size: var(--fs-sm);
}
.form__ok.is-on { display: block; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-xs); color: var(--tx-inv-2); }
.consent input { width: 20px; height: 20px; min-height: 20px; flex: none; margin-top: 2px; accent-color: var(--brick); }
.consent a { color: #fff; text-decoration: underline; }

.contact__aside { display: grid; gap: var(--sp-4); align-content: start; }
.cbox {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: flex; gap: var(--sp-4); align-items: flex-start;
  transition: border-color var(--t-med), transform var(--t-med) var(--e-out);
}
.cbox:hover { border-color: var(--sage); transform: translateX(4px); }
.cbox__ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: var(--brick); color: #fff; display: grid; place-items: center;
}
.cbox dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); font-weight: 700; margin-bottom: 5px; }
.cbox dd { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.cbox dd small { display: block; font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 400; color: var(--tx-inv-2); letter-spacing: 0; margin-top: 4px; }

.map-embed {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.14);
  aspect-ratio: 16/10; background: rgba(255,255,255,.04);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

/* ---------- 18. Sticky Call-Bar (Mobil) ---------------------------------- */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: flex; gap: 8px;
  padding: 8px; border-radius: var(--r-full);
  background: rgba(1,17,10,.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 32px rgba(0,0,0,.32);
  transform: translateY(140%); transition: transform var(--t-slow) var(--e-out);
}
.callbar.is-on { transform: none; }
@media (min-width: 768px) { .callbar { display: none; } }
.callbar a {
  flex: 1; min-height: 48px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 600;
}
.callbar .cb-call { background: var(--brick); color: #fff; }
.callbar .cb-quote { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- 19. Footer --------------------------------------------------- */
.footer { background: var(--ink); color: var(--tx-inv-2); padding-top: clamp(56px,7vw,88px); }
.footer__grid {
  display: grid; gap: var(--sp-6); grid-template-columns: minmax(0,1fr);
  padding-bottom: var(--sp-7);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer h4 {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage); margin-bottom: var(--sp-4); font-family: var(--f-body); font-weight: 700;
}
.footer__grid a { color: var(--tx-inv-2); font-size: var(--fs-sm); display: inline-block; padding: 6px 0; transition: color var(--t-fast); }
.footer__grid a:hover { color: #fff; }
.footer__brand .brand__name { color: var(--gold-light); }
.footer__about { font-size: var(--fs-sm); margin-top: var(--sp-4); max-width: 42ch; line-height: 1.7; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--sp-4);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: var(--fs-xs);
}
.footer__bottom a { color: var(--tx-inv-2); }
.footer__bottom a:hover { color: #fff; }

/* ---------- 20. Scroll-Animationen --------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 700ms var(--e-out), transform 700ms var(--e-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 101;
  background: linear-gradient(90deg, var(--brick), var(--sage));
  width: 0%; transition: width 100ms linear;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero h1 .word > span { transform: none !important; }
  .marquee__track { animation: none; }
}

/* ---------- 21. Print ---------------------------------------------------- */
@media print {
  .header, .drawer, .callbar, .cfg__stage, .progress, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 20px; }
}


/* ==========================================================================
   WhatsApp — Terminassistent, Buttons, schwebender Knopf
   ========================================================================== */
:root {
  --wa:        #25D366;
  --wa-dark:   #128C7E;
  --wa-deep:   #075E54;
}

.btn--wa {
  --btn-bg: var(--wa-dark);
  --btn-fg: #fff;
}
.btn--wa:hover { box-shadow: 0 10px 26px rgba(18,140,126,.36); background: #0f7a6d; }

.wa {
  display: grid; gap: var(--sp-5);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .wa { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--sp-7); align-items: start; }
}
.wa > * { min-width: 0; }

.wa__form { display: grid; gap: var(--sp-5); }
.wa__step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
}
.wa__hint { font-size: 11px; color: var(--tx-inv-2); margin-top: 2px; }
.wa__input {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: var(--r-md); color: #fff; font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.wa__input::placeholder { color: rgba(238,249,242,.40); }
.wa__input:focus {
  outline: none; border-color: var(--wa);
  box-shadow: 0 0 0 4px rgba(37,211,102,.16);
}

.wa__side { display: grid; gap: var(--sp-4); align-content: start; }

/* Chat-Vorschau */
.wa__preview {
  background: #0B141A;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  padding: 0 var(--sp-4) var(--sp-5);
  position: relative; overflow: hidden;
}
.wa__preview::before {
  content: ''; position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px),
                    radial-gradient(circle at 70% 70%, #fff 1px, transparent 1px);
  background-size: 34px 34px, 46px 46px;
}
.wa__bar {
  display: flex; align-items: center; gap: 12px;
  margin-inline: calc(var(--sp-4) * -1);
  padding: 14px var(--sp-4);
  background: var(--wa-deep);
  position: relative; z-index: 1;
}
.wa__bar strong { display: block; color: #fff; font-size: var(--fs-sm); font-family: var(--f-display); }
.wa__bar small { color: rgba(255,255,255,.72); font-size: 11px; }
.wa__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--sage); color: var(--forest);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 13px; letter-spacing: -.03em;
}
.wa__bubble {
  position: relative; z-index: 1;
  margin-top: var(--sp-4); margin-left: auto;
  max-width: 92%;
  background: #005C4B; color: #E9EDEF;
  border-radius: 12px 12px 4px 12px;
  padding: 12px 14px;
  font-size: var(--fs-sm); line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.wa__time {
  display: block; text-align: right; position: relative; z-index: 1;
  font-size: 10px; color: rgba(233,237,239,.55); margin-top: 5px;
}
.wa__time::after { content: ' ✓✓'; color: #53BDEB; }

.wa__alt { display: grid; gap: 8px; }
.wa__altlink {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-size: var(--fs-sm); color: var(--tx-inv-2);
  transition: color var(--t-fast);
}
.wa__altlink:hover { color: #fff; }
.wa__note { font-size: 11px; color: rgba(169,203,185,.72); line-height: 1.55; }

/* Schwebender Knopf */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 92;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px;
  border-radius: var(--r-full);
  background: var(--wa); color: #08130E;
  font-weight: 700; font-size: var(--fs-sm);
  box-shadow: 0 10px 28px rgba(37,211,102,.34), 0 2px 8px rgba(0,0,0,.2);
  transition: transform var(--t-med) var(--e-out), box-shadow var(--t-med);
}
.wa-fab:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 36px rgba(37,211,102,.42); }
.wa-fab svg { flex: none; }
@media (max-width: 767px) {
  .wa-fab { bottom: 84px; right: 12px; height: 52px; padding: 0 16px 0 13px; }
  .wa-fab span { display: none; }
  .wa-fab { padding: 0; width: 52px; justify-content: center; }
}

/* Call-Bar: WhatsApp-Variante */
.callbar .cb-wa { background: var(--wa); color: #08130E; }
.callbar .cb-wa svg { flex: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__layer { transition: none; }
}


/* Kontaktangaben im Terminbereich */
.wa__contact {
  display: grid; gap: var(--sp-4);
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.10);
}
@media (min-width: 700px) {
  .wa__contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.wa__contact .cbox { margin: 0; }


/* E-Mail sauber umbrechen */
.wa__contact .cbox dd { overflow-wrap: anywhere; }
.wa__contact .cbox dd a { font-size: .82em; letter-spacing: -.01em; }
.wa__contact .cbox { align-items: flex-start; }


/* ==========================================================================
   Referenzen: Filter, Foto-Raster, Lightbox
   ========================================================================== */
.ref__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.ref__bar .chip-row { flex: 1 1 auto; }
.ref__count {
  font-size: var(--fs-xs); color: var(--tx-3); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.chip__n {
  display: inline-block; margin-left: 7px;
  font-size: 10px; font-weight: 700; line-height: 1;
  padding: 3px 6px; border-radius: var(--r-full);
  background: rgba(1,17,10,.08); color: var(--tx-3);
}
.chip.is-on .chip__n,
.chip[aria-pressed="true"] .chip__n { background: rgba(255,255,255,.24); color: #fff; }

/* Raster: Masonry-Anmutung über Zeilen-Spans */
.ref__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 132px;
  grid-auto-flow: row dense;      /* füllt Lücken im Masonry-Raster */
  gap: var(--sp-3);
}
@media (min-width: 700px) {
  .ref__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 155px; gap: var(--sp-4); }
}
@media (min-width: 1100px) {
  .ref__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 168px; }
}

.ref {
  position: relative; margin: 0;
  grid-row: span 2;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: transform var(--t-med) var(--e-out), box-shadow var(--t-med), border-color var(--t-med);
}
.ref[hidden] { display: none; }
.ref--w { grid-column: span 2; }
@media (min-width: 700px) {
  .ref--h { grid-row: span 3; }
}
.ref:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--sage); z-index: 2; }

.ref__btn {
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; text-align: left;
}
.ref__btn img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms var(--e-io), filter var(--t-med);
}
.ref:hover .ref__btn img { transform: scale(1.07); }
.ref__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(1,17,10,.86) 0%, rgba(1,17,10,.30) 34%, rgba(1,17,10,0) 62%);
  opacity: .55; transition: opacity var(--t-med);
}
.ref:hover .ref__shade, .ref__btn:focus-visible .ref__shade { opacity: 1; }

.ref__zoom {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(1,17,10,.62); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  opacity: 0; transform: scale(.85);
  transition: opacity var(--t-med), transform var(--t-med) var(--e-out);
}
.ref:hover .ref__zoom, .ref__btn:focus-visible .ref__zoom { opacity: 1; transform: none; }

.ref__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 14px 13px;
  color: #fff;
}
.ref__cap strong {
  display: block; font-family: var(--f-display); font-size: .95rem;
  font-weight: 600; letter-spacing: -.015em; line-height: 1.2;
}
.ref__cap span {
  display: block; font-size: 11px; line-height: 1.45;
  color: rgba(255,255,255,.82); margin-top: 5px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--t-slow) var(--e-out), opacity var(--t-med);
}
.ref:hover .ref__cap span, .ref__btn:focus-visible .ref__cap span { max-height: 80px; opacity: 1; }
@media (hover: none) {
  .ref__cap span { max-height: 0; }
  .ref__shade { opacity: .9; }
}

.ref__cta {
  margin-top: var(--sp-6);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: space-between;
  padding: var(--sp-5);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.ref__cta h3 { font-size: var(--fs-lg); margin-bottom: 4px; }
.ref__cta p { font-size: var(--fs-sm); color: var(--tx-2); max-width: 52ch; }

/* --- Lightbox --- */
.lbox {
  position: fixed; inset: 0; z-index: 210;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(4px, 2vw, 20px);
  padding: clamp(12px, 4vw, 40px);
  background: rgba(1,10,6,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}
.lbox.is-open { opacity: 1; visibility: visible; }

.lbox__figure {
  margin: 0; min-width: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-4);
}
.lbox__figure img {
  max-width: 100%; max-height: 74svh;
  width: auto; height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: scale(.97);
  transition: transform var(--t-slow) var(--e-out);
}
.lbox.is-open .lbox__figure img { transform: none; }
.lbox__figure figcaption {
  max-width: 62ch; text-align: center;
  font-size: var(--fs-sm); color: var(--tx-inv-2); line-height: 1.6;
}
.lbox__figure figcaption strong {
  display: block; font-family: var(--f-display); font-size: 1.1rem;
  color: #fff; margin-bottom: 5px; letter-spacing: -.02em;
}
.lbox__figure figcaption em {
  display: block; font-style: normal; margin-top: 8px;
  font-size: 11px; letter-spacing: .14em; color: var(--sage);
}

.lbox__close {
  position: absolute; top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.10); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  transition: background-color var(--t-fast), transform var(--t-fast);
  z-index: 2;
}
.lbox__close:hover { background: var(--brick); border-color: var(--brick); transform: rotate(90deg); }

.lbox__nav {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.lbox__nav:hover { background: var(--brick); border-color: var(--brick); }
.lbox__nav[hidden] { visibility: hidden; }
@media (max-width: 640px) {
  .lbox { grid-template-columns: 1fr; }
  .lbox__nav {
    position: absolute; bottom: 18px; width: 48px; height: 48px;
    background: rgba(255,255,255,.14);
  }
  .lbox__nav--prev { left: 22%; }
  .lbox__nav--next { right: 22%; }
  .lbox__figure img { max-height: 62svh; }
}
