/* ==========================================================================
   FB Handel und Montagebetrieb  ·  Designsystem
   Ruhige Flaechen, grosse Typografie, Bernstein als einziger Akzent.
   Farben: Graphit (aussen, kalt)  ·  Bernstein (innen, warm)
   ========================================================================== */

:root {
  --ink: #14161a;
  --ink-2: #333941;
  --muted: #666e78;
  --muted-2: #9aa2ac;
  --line: #dee1e6;
  --line-2: #eceef1;
  --paper: #ffffff;
  --paper-2: #f5f5f3;
  --paper-3: #eeeeeb;

  --night: #0a0b0d;
  --night-2: #101216;
  --night-3: #181b20;
  --night-line: #282c33;

  --amber: #e8a33d;
  --amber-2: #f7bd66;
  --amber-deep: #9c6812;
  --glass: #8fd7e6;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --r-l: 26px;
  --r-m: 16px;
  --r-s: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --head-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.021em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--amber); color: var(--night); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 880px; }
.center { text-align: center; }
.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: 12px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--night); padding: 10px 18px;
  border-radius: 999px; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typografie ---------- */
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--amber-deep);
}
.dark .eyebrow, .eyebrow.on-dark { color: var(--amber); }
.display { font-size: clamp(40px, 7.4vw, 92px); line-height: 1.03; font-weight: 700; letter-spacing: -.034em; margin: 0; }
.h1 { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.06; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.h2 { font-size: clamp(29px, 4.2vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: -.027em; margin: 0; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.14; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.h4 { font-size: 20px; line-height: 1.24; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.lead { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.42; font-weight: 500; color: var(--muted); letter-spacing: -.017em; margin: 16px 0 0; }
.dark .lead { color: var(--muted-2); }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-2); }
.prose { max-width: 70ch; }
.prose p { color: var(--ink-2); }
.dark .prose p { color: #c9cdd3; }
.amber-text { color: var(--amber-deep); }
.dark .amber-text { color: var(--amber); }
.grad-text {
  background: linear-gradient(96deg, var(--amber-2) 0%, var(--amber) 70%, var(--amber-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Flaechen ---------- */
.pad { padding: clamp(64px, 9vw, 124px) 0; }
.pad-s { padding: clamp(44px, 6vw, 80px) 0; }
.paper-2 { background: var(--paper-2); }
.dark { background: var(--night); color: #f3f4f5; }
.dark-2 { background: var(--night-2); color: #f3f4f5; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Schaltflaechen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform .3s var(--ease-out), background-color .22s, color .22s, box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-amber { background: var(--amber); color: #23180a; box-shadow: 0 10px 30px -12px rgba(232,163,61,.75); }
.btn-amber:hover { background: var(--amber-2); box-shadow: 0 16px 40px -12px rgba(232,163,61,.85); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line.on { background: var(--amber); color: #23180a; box-shadow: none; }
.dark .btn-line, .dark-2 .btn-line { color: #f3f4f5; box-shadow: inset 0 0 0 1.5px var(--night-line); }
.dark .btn-line:hover, .dark-2 .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--muted-2); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-s { min-height: 42px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }

.link-arrow { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--amber-deep); }
.dark .link-arrow { color: var(--amber); }
.link-arrow::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: rotate(45deg) translate(3px, -3px); }

/* ---------- Kopfzeile ---------- */
.head {
  position: sticky; top: 0; z-index: 90; height: var(--head-h);
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.head.scrolled { border-bottom-color: var(--line); }
.head-in { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 44px; width: auto; }
.brand .brand-sub { display: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 13px; border-radius: 999px; font-size: 15.5px; font-weight: 500;
  color: var(--ink-2); transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--paper-3); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--amber); margin: 5px 4px -7px;
}
.head-cta { display: flex; align-items: center; gap: 8px; flex: none; }
.head-tel { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15.5px; padding: 9px 12px; border-radius: 999px; }
.head-tel:hover { background: var(--paper-3); }
.head-tel svg { width: 16px; height: 16px; color: var(--amber-deep); }
.burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.burger:hover { background: var(--paper-3); }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .burger { display: inline-flex; margin-left: auto; }
  .head-cta .btn, .head-tel { display: none; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(0,0,0,.45);
    padding: 10px var(--gutter) 22px;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease-out), opacity .25s;
    max-height: calc(100dvh - var(--head-h)); overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 15px 4px; font-size: 20px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .nav-actions { display: flex; gap: 10px; padding-top: 18px; }
  .nav .nav-actions .btn { flex: 1; }
}
@media (min-width: 1021px) { .nav .nav-actions { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,.86) 0%, rgba(10,11,13,.52) 42%, rgba(10,11,13,.94) 100%),
    radial-gradient(70% 60% at 18% 35%, rgba(232,163,61,.16), transparent 70%);
}
.hero-in { position: relative; padding: clamp(80px, 13vw, 150px) 0 clamp(56px, 8vw, 104px); }
.hero .lead { color: #d3d7dc; max-width: 40ch; }
.hero-trust { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15.5px; color: #cfd3d9; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--amber); flex: none; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 7px 15px 7px 9px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
}
.hero-badge b { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--amber); color: #23180a; font-size: 12px; letter-spacing: .02em; }
.hero-sub { font-size: 15px; color: var(--muted-2); margin-top: 20px; }

/* ---------- Logo-Animation im Hero ----------
   Die Konturen zeichnen sich nach, dann laufen die Flaechen ein, die Fluegel
   schwingen auf, F und B springen hinein, zuletzt wird der Schriftzug
   von links nach rechts aufgedeckt. */
.brand-anim {
  width: clamp(168px, 22vw, 248px);
  height: auto;
  color: #fff;
  margin: 0 0 26px;
  overflow: visible;
}
.brand-anim path { fill: currentColor; }

.brand-anim .lg-frame path {
  fill-opacity: 0;
  stroke: var(--amber);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 1400);
  stroke-dashoffset: var(--len, 1400);
  vector-effect: non-scaling-stroke;
}
.brand-anim .lg-wing { transform-box: fill-box; }
.brand-anim .lg-wing-l { transform-origin: 100% 50%; }
.brand-anim .lg-wing-r { transform-origin: 0% 50%; }
.brand-anim .lg-letters {
  opacity: 0;
  transform-box: fill-box; transform-origin: 50% 50%;
  transform: translateY(7px) scale(.86);
}
.brand-anim .lg-word { clip-path: inset(0 100% 0 0); }

.brand-anim.go .lg-frame path {
  animation:
    lgDraw 1s var(--ease) forwards calc(.12s + var(--i) * .16s),
    lgFill .5s ease-out forwards calc(.92s + var(--i) * .16s);
}
.brand-anim.go .lg-wing { animation: lgWing .9s var(--ease-out) forwards .45s; }
.brand-anim.go .lg-letters { animation: lgPop .7s var(--ease-out) forwards 1.45s; }
.brand-anim.go .lg-word { animation: lgWipe .8s var(--ease-out) forwards 1.8s; }

@keyframes lgDraw { to { stroke-dashoffset: 0; } }
@keyframes lgFill { to { fill-opacity: 1; stroke-width: 0; } }
@keyframes lgWing { from { transform: scaleX(.06); } to { transform: none; } }
@keyframes lgPop  { to { opacity: 1; transform: none; } }
@keyframes lgWipe { to { clip-path: inset(0 0 0 0); } }

/* Endzustand, wenn nicht animiert wird */
.brand-anim.static .lg-frame path { fill-opacity: 1; stroke-width: 0; stroke-dashoffset: 0; }
.brand-anim.static .lg-letters { opacity: 1; transform: none; }
.brand-anim.static .lg-word { clip-path: none; }

/* Der Hero-Text laeuft parallel zum Logo an */
.hero-in [data-reveal] { transition-delay: .5s; }
.hero-in [data-reveal][data-delay="1"] { transition-delay: .62s; }
.hero-in [data-reveal][data-delay="2"] { transition-delay: .76s; }
.hero-in [data-reveal][data-delay="3"] { transition-delay: .9s; }
.hero-in [data-reveal][data-delay="4"] { transition-delay: 1.04s; }
@media (max-width: 640px) { .brand-anim { margin-bottom: 20px; } }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-m); overflow: hidden; }
.dark .stats, .dark-2 .stats { background: var(--night-line); }
.stat { background: var(--paper); padding: 26px 22px; }
.dark .stat, .dark-2 .stat { background: var(--night); }
.dark-2 .stat { background: var(--night-2); }
.stat b { display: block; font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.dark .stat span, .dark-2 .stat span { color: var(--muted-2); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Anatomie einer Fensters ---------- */
.anatomy { background: radial-gradient(82% 62% at 66% 46%, #16181d 0%, #08090b 72%); color: #f3f4f5; overflow: hidden; }
.anatomy-in {
  display: grid; grid-template-columns: minmax(280px, .82fr) 1.18fr;
  gap: 34px; align-items: center;
  padding: clamp(64px, 8vw, 104px) var(--gutter);
  max-width: 1300px; margin: 0 auto;
}
.anatomy-copy .h2 { margin-bottom: 16px; }
.layer-list { list-style: none; padding: 0; margin: 30px 0 0; counter-reset: l; }
.layer-list li {
  counter-increment: l; display: grid; grid-template-columns: 32px 1fr; gap: 3px 12px;
  padding: 13px 0; border-top: 1px solid var(--night-line);
  opacity: .34; transition: opacity .45s var(--ease); cursor: pointer;
}
.layer-list li.on { opacity: 1; }
.layer-list li.hl { opacity: 1; }
.layer-list li::before {
  content: counter(l, decimal-leading-zero); grid-row: span 2;
  font-size: 12.5px; font-weight: 700; color: var(--amber); padding-top: 4px;
}
.layer-list b { font-size: 17px; font-weight: 600; letter-spacing: -.014em; }
.layer-list span { font-size: 14.5px; line-height: 1.42; color: var(--muted-2); }
.anatomy-art { position: relative; }
.anatomy-svg { width: 100%; height: auto; overflow: visible; }
.anatomy-art .lbl { font: 600 14px var(--font); letter-spacing: -.01em; fill: #f0f1f3; }
.anatomy-art .lbl-n { font: 700 11.5px var(--font); fill: var(--amber); }
.anatomy-art .lead-line { stroke: rgba(255,255,255,.34); stroke-width: 1; }
.anatomy-art .lead-dot { fill: var(--amber); }

/* Zustand: zusammengesetzt -> aufgefaechert */
.anatomy-svg .layer { transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--i) * .07s); }
.anatomy.on .anatomy-svg .layer { transform: translate(var(--tx), var(--ty)); }
.anatomy-svg .layer-label { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.anatomy.on .anatomy-svg .layer-label { opacity: 1; transform: none; transition-delay: calc(.75s + var(--i) * .08s); }
.anatomy-svg .layer-label.dim { opacity: .28; }
.anatomy-svg .sound { opacity: 0; }
.anatomy.on .anatomy-svg .sound { opacity: 1; transition: opacity .6s .5s; }
.anatomy-svg .wave {
  stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round;
  opacity: 0; transform-box: fill-box; transform-origin: 78% 82%;
}
.anatomy.on .anatomy-svg .wave { animation: waveIn 2.6s var(--ease-out) infinite; animation-delay: calc(.6s + var(--j) * .28s); }
@keyframes waveIn {
  0%   { opacity: 0;  transform: scale(.72); }
  22%  { opacity: .95; }
  70%  { opacity: .15; transform: scale(1.12); }
  100% { opacity: 0;  transform: scale(1.18); }
}
.anatomy-svg .layer.mute { opacity: .2; transition: opacity .35s; }
.anatomy-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; }
.anatomy-note { font-size: 13.5px; color: var(--muted-2); margin: 14px 0 0; }

@media (max-width: 1000px) {
  .anatomy-in { grid-template-columns: 1fr; gap: 6px; }
  .anatomy-copy { order: 2; }
  .anatomy-art { order: 1; }
  .anatomy .lead { display: none; }
  .layer-list { margin-top: 22px; }
  .layer-list li { padding: 10px 0; }
  .layer-list span { display: none; }
  .anatomy-art .lbl { font-size: 19px; }
  .anatomy-art .lbl-n { font-size: 15px; }
  .anatomy-art .lead-line { stroke-width: 1.5; }
}
@media (max-width: 760px) {
  /* Auf schmalen Bildschirmen zeigt nur die Liste die Namen der Schichten.
     Die Zeichnung nutzt dafür die volle Breite (viewBox wird in site.js umgestellt). */
  .anatomy-svg .layer-label { display: none; }
  .anatomy-art { margin: 0 calc(var(--gutter) * -0.4); }
}

/* ---------- Bento / Leistungen ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 290px; padding: 26px; overflow: hidden; isolation: isolate;
  border-radius: var(--r-l); background: var(--paper-2); color: var(--ink);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -30px rgba(0,0,0,.45); }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.tile:hover img { transform: scale(1.05); }
.tile.photo { color: #fff; }
.tile.photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,9,11,.1) 0%, rgba(8,9,11,.55) 55%, rgba(8,9,11,.9) 100%);
}
.tile-span-3 { grid-column: span 3; }
.tile-span-2 { grid-column: span 2; }
.tile-span-4 { grid-column: span 4; }
.tile-span-6 { grid-column: span 6; }
.tile-tall { min-height: 420px; }
.tile .h3 { margin-bottom: 8px; }
.tile p { font-size: 15.5px; margin: 0; color: inherit; opacity: .84; }
.tile .link-arrow { margin-top: 16px; color: inherit; }
.tile.photo .link-arrow { color: var(--amber-2); }
.tile-icon { width: 40px; height: 40px; margin-bottom: auto; color: var(--amber-deep); }
.tile.photo .tile-icon { color: var(--amber-2); }
.tile-link::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-span-3, .tile-span-2, .tile-span-4, .tile-span-6 { grid-column: span 1; }
  .tile-span-6 { grid-column: span 2; }
  .tile { min-height: 250px; padding: 20px; }
  .tile-tall { min-height: 300px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-span-6 { grid-column: span 1; }
}

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }
.card {
  position: relative; padding: 26px; border-radius: var(--r-m);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s, transform .3s var(--ease-out);
}
.card:hover { box-shadow: inset 0 0 0 1px var(--muted-2); transform: translateY(-2px); }
.dark .card, .dark-2 .card { background: var(--night-3); box-shadow: inset 0 0 0 1px var(--night-line); }
.card .h4 { margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--muted); margin: 0; }
.dark .card p { color: var(--muted-2); }
.card-icon { width: 34px; height: 34px; margin-bottom: 16px; color: var(--amber-deep); }
.dark .card-icon { color: var(--amber); }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; margin-top: 46px; }
.step { position: relative; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; margin-bottom: 16px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 700; font-size: 16px;
}
.step.on .step-n { background: var(--amber); box-shadow: none; color: #23180a; }
.dark .step-n { background: var(--night-3); box-shadow: inset 0 0 0 1.5px var(--night-line); }
.step .h4 { margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }
.dark .step p { color: var(--muted-2); }
.steps-line { position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--line); z-index: -1; }
.dark .steps-line { background: var(--night-line); }
.steps-line b { display: block; height: 100%; width: 0; background: var(--amber); transition: width 1.2s var(--ease-out); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } .steps-line { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Vorher / Nachher ---------- */
.ba { position: relative; border-radius: var(--r-l); overflow: hidden; background: #000; touch-action: pan-y; user-select: none; }
.ba img { width: 100%; height: auto; display: block; }
.ba .after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; box-shadow: 0 0 18px rgba(0,0,0,.5); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 999px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
.ba-knob svg { width: 22px; height: 22px; color: var(--ink); }
.ba-tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: rgba(10,11,13,.66); color: #fff; backdrop-filter: blur(8px); }
.ba-tag.l { left: 14px; }
.ba-tag.r { right: 14px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.shot { position: relative; margin: 0; border-radius: var(--r-m); overflow: hidden; background: var(--paper-3); cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease-out); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  font-size: 14px; color: #fff; line-height: 1.35;
  background: linear-gradient(180deg, transparent, rgba(8,9,11,.85));
}
.shot.tall img { aspect-ratio: 3 / 4; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(6,7,9,.94); padding: 20px; backdrop-filter: blur(6px);
}
.lightbox.on { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 82vh; object-fit: contain; border-radius: 10px; }
.lightbox p { color: #d6d9dd; font-size: 14.5px; text-align: center; margin: 14px auto 0; max-width: 60ch; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border: 0;
  border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-close svg { width: 20px; height: 20px; }

/* ---------- Werkzeuge / Rechner ---------- */
.tool {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--r-l); overflow: hidden;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.dark .tool, .dark-2 .tool { background: var(--night-3); box-shadow: inset 0 0 0 1px var(--night-line); }
.tool-in { padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.tool-in > .field:last-child { margin-bottom: 0; }
.tool-out { padding: clamp(24px, 3.4vw, 40px); background: var(--paper-2); display: flex; flex-direction: column; justify-content: center; }
.dark .tool-out, .dark-2 .tool-out { background: var(--night-2); }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field > label, .field-label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.dark .field .hint { color: var(--muted-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-s);
  border: 1.5px solid var(--line); background: var(--paper); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 128px; resize: vertical; }
.dark input, .dark select, .dark textarea, .dark-2 input, .dark-2 select, .dark-2 textarea {
  background: var(--night-2); border-color: var(--night-line); color: #f3f4f5;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(232,163,61,.2); }
input[type="range"] { width: 100%; accent-color: var(--amber); height: 30px; }

.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background-color .2s, color .2s;
}
.dark .choice label, .dark-2 .choice label { box-shadow: inset 0 0 0 1.5px var(--night-line); }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice input:checked + span { color: #23180a; }
.choice label:has(input:checked) { background: var(--amber); box-shadow: none; color: #23180a; }
.choice label:focus-within { outline: 2px solid var(--amber); outline-offset: 3px; }

.result-big { font-size: clamp(38px, 6vw, 64px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.result-big small { font-size: .42em; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
.dark .result-big small { color: var(--muted-2); }
.result-rows { list-style: none; margin: 24px 0 0; padding: 0; }
.result-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.dark .result-rows li, .dark-2 .result-rows li { border-color: var(--night-line); }
.result-rows b { font-variant-numeric: tabular-nums; }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 20px; line-height: 1.45; }
.dark .disclaimer { color: var(--muted-2); }

/* Schallschutz-Anzeige */
.db-meter { margin: 22px 0 0; }
.db-bar { position: relative; height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dark .db-bar, .dark-2 .db-bar { background: var(--night-line); }
.db-bar b { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--amber), var(--amber-2)); transition: width .6s var(--ease-out); }
.db-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.dark .db-scale { color: var(--muted-2); }
.db-visual { display: block; width: 100%; height: auto; margin-bottom: 4px; }
.db-visual .sw { stroke: var(--amber); fill: none; stroke-linecap: round; }
.db-visual .sw-in { stroke: var(--glass); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { border-top: 1px solid var(--line); }
.dark .faq details { border-color: var(--night-line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.dark .faq details:last-of-type { border-color: var(--night-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .answer { padding: 0 44px 24px 0; color: var(--muted); font-size: 16.5px; }
.dark .faq .answer { color: var(--muted-2); }

/* ---------- Split-Abschnitte ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split.flip .split-media { order: -1; }
.split-media img { width: 100%; border-radius: var(--r-l); aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.portrait img { aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip .split-media { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 26px 0 0; }
.checklist li { position: relative; padding: 9px 0 9px 32px; font-size: 16.5px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px;
  border-left: 2.4px solid var(--amber-deep); border-bottom: 2.4px solid var(--amber-deep);
  transform: rotate(-45deg);
}
.dark .checklist li::before { border-color: var(--amber); }

.table-spec { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 16px; }
.table-spec th, .table-spec td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dark .table-spec th, .dark .table-spec td { border-color: var(--night-line); }
.table-spec th { font-weight: 600; width: 34%; }
.table-spec td { color: var(--muted); }
.dark .table-spec td { color: var(--muted-2); }

/* ---------- Zitat / Aussage ---------- */
.words { font-size: clamp(25px, 3.6vw, 44px); line-height: 1.26; font-weight: 600; letter-spacing: -.026em; max-width: 22ch; margin: 0; }
.words mark { background: none; color: var(--amber); }

/* ---------- Abschluss-CTA ---------- */
.cta-final { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 78% 30%, rgba(232,163,61,.24), transparent 70%);
}
.cta-final .wrap { position: relative; }
.cta-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; gap: 26px; align-items: start; } }

/* ---------- Kontaktdaten ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dark .info-list li { border-color: var(--night-line); }
.info-list svg { width: 20px; height: 20px; color: var(--amber-deep); flex: none; margin-top: 3px; }
.dark .info-list svg { color: var(--amber); }
.info-list b { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 3px; }
.dark .info-list b { color: var(--muted-2); }
.hours { list-style: none; padding: 0; margin: 18px 0 0; font-size: 16px; }
.hours li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.dark .hours li { border-color: var(--night-line); }
.hours li.closed { color: var(--muted); }

.form-note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--amber); flex: none; }

/* ---------- Fusszeile ---------- */
.foot { background: var(--night); color: #cfd3d9; padding: clamp(50px, 7vw, 84px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot img.foot-logo { height: 42px; width: auto; margin-bottom: 16px; }
.foot h3 { font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; font-size: 15.5px; }
.foot li { padding: 5px 0; }
.foot a:hover { color: var(--amber); }
.foot p { font-size: 15.5px; }
.foot-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--night-line);
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  font-size: 14px; color: var(--muted-2);
}
.foot-bottom a:hover { color: var(--amber); }
.foot-bottom .spacer { margin-left: auto; }

/* ---------- Mobile Aktionsleiste ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none;
  gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.93); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.action-bar .btn { flex: 1; min-height: 46px; font-size: 16px; }
@media (max-width: 1020px) { .action-bar { display: flex; } body { padding-bottom: 74px; } }

/* ---------- Einblenden beim Scrollen ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }

/* ---------- Brotkrumen ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 7px; opacity: .6; }
.dark .crumbs, .hero .crumbs { color: var(--muted-2); }
.hero .crumbs a:hover { color: #fff; }

/* ---------- Seitenkopf innerer Seiten ---------- */
.page-head { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(64% 76% at 84% 18%, rgba(232,163,61,.2), transparent 68%);
}
.page-head .wrap { position: relative; }
.page-head-in { padding: clamp(46px, 7vw, 92px) 0 clamp(46px, 7vw, 86px); }
.page-head .lead { max-width: 56ch; }

/* ---------- Hinweisbox ---------- */
.note {
  border-radius: var(--r-m); padding: 22px 24px; font-size: 15.5px;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2);
}
.note b { display: block; margin-bottom: 6px; }
.dark .note { background: var(--night-3); box-shadow: inset 0 0 0 1px var(--night-line); color: #c9cdd3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .anatomy .anatomy-svg .layer { transform: translate(var(--tx), var(--ty)); }
  .anatomy .anatomy-svg .layer-label { opacity: 1; transform: none; }
  .brand-anim .lg-frame path { fill-opacity: 1; stroke-width: 0; stroke-dashoffset: 0; }
  .brand-anim .lg-wing { transform: none; }
  .brand-anim .lg-letters { opacity: 1; transform: none; }
  .brand-anim .lg-word { clip-path: none; }
  .hero-in [data-reveal] { transition-delay: 0s; }
}
@media print {
  .head, .action-bar, .foot, .btn { display: none !important; }
  body { color: #000; }
}
