/* ============================================================
   HAPPE RAIL SERVICE — Designsystem
   Stahlblau + kühle Grautöne · Engineering-Präzision
   ============================================================ */

/* ---- Tokens -------------------------------------------------- */
:root {
  /* Premium Deep Blue / Violet Skala */
  --steel-900: oklch(0.16 0.04 260);
  --steel-800: oklch(0.24 0.05 258);
  --steel-700: oklch(0.38 0.07 255);
  --steel-600: oklch(0.48 0.08 255);
  --steel-500: oklch(0.58 0.07 255);
  --steel-300: oklch(0.82 0.03 250);

  /* Kühle Neutraltöne */
  --ink:    oklch(0.20 0.03 260);
  --paper:  oklch(0.99 0.005 255);
  --mist:   oklch(0.96 0.01 255);
  --mist-2: oklch(0.93 0.015 255);
  --line:   oklch(0.88 0.015 255);
  --line-strong: oklch(0.80 0.02 255);
  --muted:  oklch(0.55 0.02 255);

  /* Signal-Akzent (Vibrant Orange/Red) */
  --signal: oklch(0.68 0.19 32);
  --signal-ink: oklch(0.20 0.10 32);

  /* Korridor-Glow (Electric Cyan) */
  --glow: oklch(0.75 0.14 230);

  /* Typo */
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --hub-w: 76px;

  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.55s;

  --hub-cta-bg: var(--steel-700);
  --hub-cta-label: "Projekt anfragen";
}

/* Bewegung aus */
:root[data-motion="off"] * {
  animation: none !important;
  transition: none !important;
}

/* ---- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

/* ---- Typo-Primitive ------------------------------------------ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-600);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--steel-500);
  display: inline-block;
}
.idx {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}
.display {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
}
.h2 {
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.02;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}
.h3 { font-weight: 700; letter-spacing: -0.01em; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.1; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); line-height: 1.5; }
.mono-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel-600);
}

/* ---- Layout -------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vh, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vh, 96px); }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vh, 72px); }
.dark { background: var(--steel-900); color: var(--paper); }
.dark .lead { color: oklch(0.78 0.02 246); }
.dark .idx { color: oklch(0.62 0.02 246); }
.dark .eyebrow { color: var(--steel-300); }
.dark .eyebrow::before { background: var(--steel-300); }

/* ---- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.005em;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--steel-700); color: var(--paper); box-shadow: 0 4px 14px -4px color-mix(in oklch, var(--steel-700) 50%, transparent); }
.btn--primary:hover { background: var(--steel-800); transform: translateY(-2px); box-shadow: 0 6px 20px -4px color-mix(in oklch, var(--steel-900) 50%, transparent); }
.btn--signal { background: var(--signal); color: var(--signal-ink); box-shadow: 0 4px 14px -4px color-mix(in oklch, var(--signal) 50%, transparent); }
.btn--signal:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 20px -4px color-mix(in oklch, var(--signal) 60%, transparent); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--steel-600); color: var(--steel-700); background: color-mix(in oklch, var(--steel-300) 20%, transparent); transform: translateY(-2px); }
.dark .btn--ghost { border-color: oklch(0.45 0.03 248); color: var(--paper); }
.dark .btn--ghost:hover { border-color: var(--steel-300); background: color-mix(in oklch, var(--steel-300) 15%, transparent); }
.hero--b .btn--ghost { border-color: oklch(0.45 0.03 248); color: var(--paper); }
.hero--b .btn--ghost:hover { border-color: var(--steel-300); color: var(--paper); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   HEADER / BRAND
   ============================================================ */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.topbar[data-scrolled="true"] {
  background: color-mix(in oklch, var(--paper) 70%, transparent);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom-color: var(--line);
  padding-block: 12px;
  box-shadow: 0 4px 24px -8px color-mix(in oklch, var(--ink) 15%, transparent);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
  width: 34px; height: 34px; position: relative; flex: none;
}
.brand__name { font-weight: 800; letter-spacing: -0.01em; font-size: 18px; line-height: 1; }
.brand__name span { display: block; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted); margin-top: 3px; }
.topbar__meta { display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted); }
.topbar__meta a { display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; }
.topbar__meta a:hover { color: var(--steel-700); }
.topbar__meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 var(--signal); animation: pulse-dot 2.4s var(--ease) infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--signal) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@media (max-width: 860px) { .topbar__meta .label-hide { display: none; } }

/* ============================================================
   HERO (3 Varianten via :root[data-hero])
   ============================================================ */
.hero { position: relative; padding-top: clamp(120px, 16vh, 200px); padding-bottom: clamp(60px, 9vh, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; max-width: 620px; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
.hero__stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 14px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat b { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.hero__stat span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* staged reveal using Scroll-Driven Animations */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes scroll-reveal {
      from { opacity: 0; transform: translateY(40px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .reveal {
      animation: scroll-reveal cubic-bezier(0.22, 0.61, 0.36, 1) both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
    .reveal[data-d="1"] { animation-range: entry 8% cover 28%; }
    .reveal[data-d="2"] { animation-range: entry 12% cover 32%; }
    .reveal[data-d="3"] { animation-range: entry 16% cover 36%; }
    .reveal[data-d="4"] { animation-range: entry 20% cover 40%; }
  }
}

/* --- Hero visual stage --- */
.hero__stage { position: relative; aspect-ratio: 1 / 0.92; }
.perimeter { width: 100%; height: 100%; overflow: visible; }
.perimeter .build { opacity: 1; }
.blink { animation: blink 1.1s steps(2, jump-none) infinite; }
:root[data-motion="off"] .blink { opacity: 1 !important; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }
.corridor-fill { transition: opacity 0.8s var(--ease) 1s; }
.dash-flow { stroke-dasharray: 6 8; animation: dash 2.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* Always show Variant B or C layout depending on preference. I will enforce Variant C globally by overriding */
.hero--a, .hero--b { display: none !important; }
.hero--c { display: block; }

/* Variant B — full-bleed dark corridor */
.hero--b { background: radial-gradient(120% 90% at 70% 30%, var(--steel-800), var(--steel-900) 60%); color: var(--paper); }
.hero--b .hero__inner { position: relative; z-index: 2; max-width: 880px; text-align: left; display: flex; flex-direction: column; gap: 28px; padding-block: clamp(40px, 8vh, 90px); }
.hero--b .lead { color: oklch(0.82 0.02 246); max-width: 600px; }
.hero--b .hero__bg { position: absolute; inset: 0; z-index: 1; opacity: 0.9; }
.hero--b .hero__stat span { color: oklch(0.66 0.02 246); }
.hero--b .eyebrow { color: var(--steel-300); }
.hero--b .eyebrow::before { background: var(--steel-300); }

/* Variant C — engineering data panel */
.hero--c .hero__grid { grid-template-columns: 1fr 0.92fr; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--mist); overflow: hidden;
  box-shadow: 0 30px 60px -40px oklch(0.3 0.05 250 / 0.35);
}
.panel__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); }
.panel__bar .live { display: inline-flex; align-items: center; gap: 7px; color: var(--steel-700); }
.panel__bar .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); display: inline-block; }
.panel__body { padding: 18px; }
.panel__rows { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 14px; }
.panel__row { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: var(--paper); font-family: var(--mono); font-size: 12.5px; }
.panel__row b { font-weight: 600; color: var(--steel-700); }
.panel__row .ok { color: oklch(0.55 0.12 150); }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero--c .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { max-width: 520px; }
}

/* ============================================================
   BEDARFS-MATRIX
   ============================================================ */
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.mcard {
  background: var(--paper); padding: 34px 30px 30px; position: relative;
  display: flex; flex-direction: column; gap: 16px; min-height: 280px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.mcard:hover { 
  background: var(--mist); 
  transform: translateY(-4px); 
  box-shadow: 0 20px 40px -20px color-mix(in oklch, var(--ink) 25%, transparent); 
  z-index: 2; 
}
.mcard__no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.mcard__ico { width: 46px; height: 46px; color: var(--steel-700); }
.mcard h3 { font-size: 1.3rem; }
.mcard p { color: var(--muted); font-size: 15.5px; flex: 1; }
.mcard__link { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--steel-700); transition: gap 0.2s var(--ease), color 0.2s; }
.mcard:hover .mcard__link { gap: 14px; color: var(--signal); }
.mcard__accent { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--steel-600); transition: width 0.4s var(--ease); }
.mcard:hover .mcard__accent { width: 100%; }
.mcard--winter:hover .mcard__accent { background: var(--signal); }
@media (max-width: 820px) { .matrix { grid-template-columns: 1fr; } }

/* ============================================================
   GLEISSICHERUNG — Leistungen / Progressive Disclosure
   ============================================================ */
.leistungen { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.acc {
  background: var(--paper);
}
.acc__btn {
  width: 100%; text-align: left; background: none; border: 0;
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 26px var(--gutter); transition: background 0.25s;
}
.dark .acc { background: var(--steel-900); }
.dark .leistungen { background: oklch(0.34 0.04 248); border-color: oklch(0.34 0.04 248); }
.acc__btn:hover { background: color-mix(in oklch, var(--steel-700) 5%, transparent); }
.dark .acc__btn:hover { background: oklch(0.27 0.04 248); }
.acc__no { font-family: var(--mono); font-size: 13px; color: var(--steel-600); letter-spacing: 0.08em; }
.acc__title { display: block; font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
.acc__sub { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }
.acc__toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s; }
.dark .acc__toggle { border-color: oklch(0.42 0.04 248); }
.acc__toggle svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.acc[aria-expanded="true"] .acc__toggle { background: var(--steel-700); border-color: var(--steel-700); color: var(--paper); }
.acc[aria-expanded="true"] .acc__toggle svg { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc__panel-inner { overflow: hidden; }
.acc[aria-expanded="true"] .acc__panel { grid-template-rows: 1fr; }
.acc__content { padding: 4px var(--gutter) 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; max-width: 1000px; }
.acc__content p { color: var(--muted); }
.dark .acc__content p { color: oklch(0.76 0.02 246); }
.acc__specs { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; align-self: start; }
.dark .acc__specs { border-color: oklch(0.4 0.04 248); }
.acc__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; font-family: var(--mono); font-size: 12.5px; border-bottom: 1px solid var(--line); }
.dark .acc__specs div { border-color: oklch(0.34 0.04 248); }
.acc__specs div:last-child { border-bottom: 0; }
.acc__specs span:first-child { color: var(--muted); }
.acc__specs b { color: var(--steel-600); font-weight: 600; }
.dark .acc__specs b { color: var(--steel-300); }
@media (max-width: 760px) { .acc__content { grid-template-columns: 1fr; gap: 20px; } .acc__btn { gap: 14px; padding-inline: var(--gutter); } }

/* ============================================================
   MIETPARK GRID
   ============================================================ */
.fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
  background: var(--paper); display: flex; flex-direction: column; gap: 16px; min-height: 200px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.tile:hover { 
  border-color: var(--steel-500); 
  transform: translateY(-4px) scale(1.01); 
  box-shadow: 0 24px 48px -24px color-mix(in oklch, var(--steel-800) 40%, transparent); 
  z-index: 2; 
}
.tile__ico { width: 40px; height: 40px; color: var(--steel-700); }
.tile__name { font-weight: 700; font-size: 16.5px; letter-spacing: -0.005em; line-height: 1.2; }
.tile__spec { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.03em; margin-top: auto; }
.tile__badge { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.5 0.11 150); display: inline-flex; align-items: center; gap: 5px; }
.tile__badge i { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.6 0.13 150); }
@media (max-width: 1024px) { .fleet { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .fleet { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .fleet { grid-template-columns: 1fr; } }

/* ============================================================
   WINTERDIENST — thermische Weiche
   ============================================================ */
.winter__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.switch-stage {
  position: relative; aspect-ratio: 1 / 0.78; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, oklch(0.30 0.045 248), var(--steel-900));
  border: 1px solid oklch(0.36 0.04 248); overflow: hidden; cursor: crosshair;
  touch-action: pan-y;
}
.switch-stage svg { width: 100%; height: 100%; }
.thaw-hint { position: absolute; left: 18px; bottom: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: oklch(0.72 0.03 246); display: inline-flex; align-items: center; gap: 8px; transition: opacity 0.4s; }
.thaw-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.switch-stage[data-thawed="true"] .thaw-hint { opacity: 1; }
.thaw-hint.ok { color: oklch(0.82 0.04 150); }
.thaw-hint.ok i { background: oklch(0.62 0.13 150); }
.ice { transition: opacity 0.45s var(--ease); }
.lens { pointer-events: none; }
.thaw-meter { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.thaw-meter__track { flex: 1; height: 6px; border-radius: 3px; background: oklch(0.4 0.04 248); overflow: hidden; }
.thaw-meter__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--glow), var(--signal)); transition: width 0.2s linear; }
.thaw-meter__val { font-family: var(--mono); font-size: 13px; color: var(--paper); min-width: 48px; text-align: right; }
@media (max-width: 880px) { .winter__grid { grid-template-columns: 1fr; gap: 36px; } .switch-stage { max-width: 560px; } }

/* ============================================================
   KALKULATOR
   ============================================================ */
.calc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.calc__controls { padding: clamp(28px, 4vw, 44px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 30px; }
.calc__out { padding: clamp(28px, 4vw, 44px); background: var(--mist); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 12px; }
.field__top { display: flex; align-items: baseline; justify-content: space-between; }
.field__label { font-weight: 600; font-size: 15px; }
.field__val { font-family: var(--mono); font-size: 15px; color: var(--steel-700); font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--mist-2); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--steel-700); border: 3px solid var(--paper); box-shadow: 0 2px 8px oklch(0.3 0.05 250 / 0.35); cursor: grab; transition: transform 0.15s; }
input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--steel-700); border: 3px solid var(--paper); cursor: grab; }
.seg { display: grid; grid-auto-flow: column; gap: 6px; padding: 4px; background: var(--mist); border-radius: var(--radius); border: 1px solid var(--line); }
.seg button { padding: 10px 8px; border: 0; background: transparent; border-radius: 3px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; line-height: 1.1; }
.seg button[aria-pressed="true"] { background: var(--steel-700); color: var(--paper); }
.calc__out h3 { font-size: 1.05rem; }
.bom { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bom__row { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--paper); }
.bom__row svg { width: 22px; height: 22px; color: var(--steel-600); }
.bom__name { font-size: 14.5px; font-weight: 600; line-height: 1.15; }
.bom__name small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; margin-top: 2px; }
.bom__qty { font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--steel-700); }
.bom__qty span { font-size: 11px; color: var(--muted); margin-left: 3px; }
.calc__note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.calc__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc__controls { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ============================================================
   ZERTIFIZIERUNGEN
   ============================================================ */
.certs { display: flex; flex-wrap: wrap; gap: 14px; }
.cert { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.cert__seal { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--steel-500); display: grid; place-items: center; color: var(--steel-700); flex: none; }
.cert b { font-size: 14.5px; font-weight: 700; }
.cert span { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

/* ============================================================
   KONTAKT + FOOTER
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inp { display: flex; flex-direction: column; gap: 7px; }
.inp label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: oklch(0.74 0.02 246); text-transform: uppercase; }
.inp input, .inp textarea, .inp select {
  font: inherit; font-size: 15px; padding: 13px 15px; border-radius: var(--radius);
  border: 1px solid oklch(0.4 0.04 248); background: oklch(0.27 0.04 248); color: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}
.inp input::placeholder, .inp textarea::placeholder { color: oklch(0.6 0.02 246); }
.inp input:focus, .inp textarea:focus, .inp select:focus { border-color: var(--glow); outline: none; }
.contact__aside { display: flex; flex-direction: column; gap: 22px; }
.contact__line { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid oklch(0.36 0.04 248); }
.contact__line svg { width: 22px; height: 22px; color: var(--steel-300); flex: none; margin-top: 2px; }
.contact__line b { display: block; font-size: 16px; }
.contact__line span { color: oklch(0.74 0.02 246); font-size: 14.5px; }
.emergency { background: color-mix(in oklch, var(--signal) 14%, var(--steel-900)); border: 1px solid color-mix(in oklch, var(--signal) 40%, transparent); border-radius: var(--radius-lg); padding: 22px; }
.emergency .eyebrow { color: var(--signal); }
.emergency .eyebrow::before { background: var(--signal); }
.emergency b { font-size: 1.6rem; font-weight: 800; display: block; margin-top: 8px; letter-spacing: -0.01em; }

.footer { border-top: 1px solid oklch(0.34 0.04 248); padding-block: 40px; }
.footer__grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer__cols { display: flex; gap: clamp(30px, 6vw, 80px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.6 0.02 246); margin-bottom: 4px; }
.footer__col a, .footer__col span { font-size: 14px; color: oklch(0.78 0.02 246); transition: color 0.2s; }
.footer__col a:hover { color: var(--paper); }
.footer__legal { font-family: var(--mono); font-size: 11.5px; color: oklch(0.58 0.02 246); letter-spacing: 0.04em; margin-top: 30px; padding-top: 22px; border-top: 1px solid oklch(0.3 0.04 248); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } .form__row { grid-template-columns: 1fr; } }

/* ============================================================
   ACTION-HUB (Desktop rechts / Mobile bottom)
   ============================================================ */
.hub {
  position: fixed; z-index: 55; right: 18px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  width: var(--hub-w);
}
.hub__cta {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: var(--radius-lg);
  background: var(--hub-cta-bg); color: var(--paper);
  text-align: center; transition: background 0.4s var(--ease), transform 0.2s;
  box-shadow: 0 14px 34px -18px oklch(0.3 0.08 250 / 0.6);
}
.hub__cta:hover { transform: translateX(-3px); }
.hub__cta svg { width: 22px; height: 22px; }
.hub__cta span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; line-height: 1.25; font-weight: 500; }
.hub__mini { display: flex; flex-direction: column; gap: 8px; }
.hub__btn {
  display: grid; place-items: center; height: 52px; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line); color: var(--steel-700);
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}
.hub__btn:hover { border-color: var(--steel-600); transform: translateX(-3px); }
.hub__btn svg { width: 20px; height: 20px; }
.hub__rail { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); writing-mode: vertical-rl; text-orientation: mixed; align-self: center; margin-top: 4px; }

@media (max-width: 720px) {
  .hub {
    right: 12px; left: 12px; bottom: 12px; top: auto; transform: none;
    width: auto; flex-direction: row; align-items: stretch; gap: 8px;
    background: color-mix(in oklch, var(--paper) 92%, transparent);
    backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 14px;
    padding: 8px; box-shadow: 0 12px 40px -16px oklch(0.3 0.08 250 / 0.5);
  }
  .hub__cta { flex: 1; flex-direction: row; justify-content: center; padding: 16px; min-height: 56px; }
  .hub__cta svg { width: 20px; height: 20px; }
  .hub__cta span { font-size: 12px; }
  .hub__mini { flex-direction: row; }
  .hub__btn { width: 56px; height: auto; }
  .hub__rail { display: none; }
}

/* Hide hub very early in hero so it doesn't fight the headline on load */
.hub { opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s, transform 0.2s, background 0.4s; }
.hub.show { opacity: 1; visibility: visible; }
@media (max-width: 720px) { .hub.show { transform: none; } }

/* ============================================================
   BILDEBENE — image-slot Theming & Foto-Layouts
   ============================================================ */
image-slot {
  display: block; width: 100%; height: 100%;
  color: var(--steel-600);
  --is-bg-1: var(--mist); --is-bg-2: var(--mist-2);
}
image-slot::part(frame) {
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, color-mix(in oklch, var(--steel-500) 9%, transparent) 13px 14px),
    linear-gradient(150deg, var(--is-bg-1), var(--is-bg-2));
}
image-slot::part(ring) { border-color: var(--line-strong); border-width: 1.5px; }
image-slot::part(empty) { color: var(--steel-700); gap: 10px; }
.dark image-slot::part(empty) { color: var(--steel-300); }
.dark image-slot, .switch-card image-slot { color: var(--steel-300); --is-bg-1: oklch(0.3 0.04 248); --is-bg-2: oklch(0.255 0.04 248); }
.dark image-slot::part(ring) { border-color: oklch(0.44 0.04 248); }

/* Foto-Rahmen + Caption */
.photo { position: relative; margin: 0; }
.photo > image-slot { border-radius: var(--radius-lg); overflow: hidden; }
.photo figcaption {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--muted); margin-top: 11px; display: flex; align-items: center; gap: 9px;
}
.photo figcaption::before { content: ""; width: 16px; height: 1px; background: var(--steel-500); }
.dark .photo figcaption { color: oklch(0.66 0.02 246); }

/* --- HERO Bild-Kompositionen --- */
.hero__media { position: relative; }
.hero__photo { width: 100%; height: clamp(380px, 52vh, 560px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -50px oklch(0.25 0.06 250 / 0.55); }
.hero__photo image-slot { border-radius: var(--radius-lg); }
/* floating overlay card (iso perimeter / dispo-panel) */
.hero__float {
  position: absolute; left: -28px; bottom: -34px; width: min(64%, 360px);
  background: color-mix(in oklch, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px -34px oklch(0.25 0.07 250 / 0.6); padding: 14px;
}
.hero__float .panel { box-shadow: none; border: 0; background: transparent; }
.hero__float .panel__bar { background: transparent; border-bottom-color: var(--line); padding: 4px 4px 10px; }
.hero__float .perimeter { aspect-ratio: 1 / 0.66; width: 100%; height: auto; }
.hero__float-label { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--steel-600); pointer-events: none; }
.hero__float-label .live { display: inline-flex; align-items: center; gap: 6px; }
.hero__float-label .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* Variant B full-bleed photo background */
.hero--b .hero__bgphoto { position: absolute; inset: 0; z-index: 0; }
.hero--b .hero__bgphoto image-slot { border-radius: 0; height: 100%; }
.hero--b .hero__bgphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, var(--steel-900) 18%, color-mix(in oklch, var(--steel-900) 70%, transparent) 52%, color-mix(in oklch, var(--steel-900) 30%, transparent)); }
.hero--b .hero__bg { z-index: 1; opacity: 0.55; }
.hero--b .hero__inner { z-index: 3; }

@media (max-width: 920px) {
  .hero__float { left: 0; bottom: -24px; width: min(78%, 320px); }
  .hero__photo { height: clamp(300px, 44vh, 420px); }
}

/* --- Full-bleed Bild-Band --- */
.band { position: relative; min-height: clamp(420px, 60vh, 600px); display: grid; align-items: end; overflow: hidden; }
.band__img { position: absolute; inset: 0; z-index: 0; }
.band__img image-slot { border-radius: 0; height: 100%; }
.band__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, oklch(0.2 0.035 250 / 0.92), oklch(0.2 0.035 250 / 0.15) 55%, oklch(0.2 0.035 250 / 0.4)); }
.band__content { position: relative; z-index: 2; color: var(--paper); padding-block: clamp(40px, 7vh, 80px); }
.band__content .h2 { max-width: 16ch; }
.band__stats { display: flex; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; margin-top: 30px; }
.band__stat b { display: block; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.band__stat span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: oklch(0.78 0.02 246); text-transform: uppercase; }

/* --- Matrix-Karten mit Bild --- */
.mcard__media { height: 150px; margin: -34px -30px 4px; border-bottom: 1px solid var(--line); }
.mcard__media image-slot { border-radius: 0; }

/* --- Sicherung: Bild + Intro --- */
.sicher-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-bottom: clamp(40px, 6vh, 64px); }
.sicher-top .photo image-slot { height: clamp(280px, 38vh, 400px); }
@media (max-width: 820px) { .sicher-top { grid-template-columns: 1fr; gap: 32px; } }

/* --- Mietpark Tiles mit Foto --- */
.tile { padding: 0; overflow: hidden; }
.tile__media { height: 132px; position: relative; }
.tile__media image-slot { border-radius: 0; }
.tile__chip { position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 8px; background: color-mix(in oklch, var(--paper) 90%, transparent); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--steel-700); border: 1px solid var(--line); }
.tile__chip svg { width: 20px; height: 20px; }
.tile__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.tile__body .tile__spec { margin-top: 4px; }
.tile .tile__badge { top: 12px; right: 12px; background: color-mix(in oklch, var(--paper) 88%, transparent); backdrop-filter: blur(6px); padding: 4px 8px; border-radius: 6px; }

/* --- Winterdienst Foto --- */
.winter__media { margin-top: 22px; }
.winter__media image-slot { height: clamp(180px, 24vh, 240px); }
.winter__media image-slot { border-radius: var(--radius-lg); overflow: hidden; }

/* --- Referenzen-Galerie --- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: 14px; }
.gallery .photo { height: 100%; }
.gallery .photo image-slot { height: 100%; border-radius: var(--radius-lg); overflow: hidden; }
.g-a { grid-column: span 4; grid-row: span 2; }
.g-b { grid-column: span 2; grid-row: span 1; }
.g-c { grid-column: span 2; grid-row: span 1; }
.g-d { grid-column: span 2; grid-row: span 1; }
.g-e { grid-column: span 2; grid-row: span 1; }
.g-f { grid-column: span 2; grid-row: span 2; }
.gallery .photo figcaption { position: absolute; left: 14px; bottom: 12px; right: 14px; margin: 0; color: var(--paper); text-shadow: 0 1px 8px oklch(0.2 0.04 250 / 0.8); z-index: 3; }
.gallery .photo figcaption::before { background: var(--signal); }
.gallery .photo::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); background: linear-gradient(0deg, oklch(0.18 0.03 250 / 0.6), transparent 50%); pointer-events: none; z-index: 2; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px; }
  .g-a { grid-column: span 4; grid-row: span 2; }
  .g-b, .g-c, .g-d, .g-e { grid-column: span 2; }
  .g-f { grid-column: span 4; grid-row: span 1; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .g-a { grid-column: span 2; grid-row: span 2; }
  .g-b, .g-c, .g-d, .g-e, .g-f { grid-column: span 2; grid-row: span 1; }
}

/* --- Kontakt Foto --- */
.contact__photo { margin-top: 4px; }
.contact__photo image-slot { height: 200px; border-radius: var(--radius-lg); overflow: hidden; }

/* --- Szenen füllen ihre Container (ersetzen image-slot) --- */
.photo > .scene, .hero__photo .scene { border-radius: var(--radius-lg); overflow: hidden; }
.tile__media .scene, .band__img .scene, .hero__bgphoto .scene, .mcard__media .scene, .gallery .photo .scene { border-radius: 0; overflow: hidden; }
.gallery .photo .scene { border-radius: var(--radius-lg); }
.sicher-top .photo { height: clamp(280px, 38vh, 400px); }
.sicher-top .photo .scene { border-radius: var(--radius-lg); overflow: hidden; }
.winter__media { height: clamp(180px, 24vh, 240px); }
.contact__photo { height: 200px; }

/* Kontakt Background Image */
.kontakt-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; width: 80%;
  pointer-events: none;
  opacity: 0.35;
  mask-image: linear-gradient(to right, transparent 0%, black 20%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
}
.kontakt-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 760px) {
  .kontakt-bg { width: 100%; opacity: 0.1; mask-image: linear-gradient(to bottom, transparent 0%, black 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%); }
}
