/* ============================================================
   HUK ELEKTROTECHNIK GMBH — Design System
   Meisterbetrieb · Dornburg
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --rot:        #E82D00;
  --rot-neon:   #FF3B14;
  --rot-tief:   #8F1B00;
  --rot-glut:   #FF6A4A;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;

  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.7, 0, .2, 1);

  --nav-h: 68px;
  --gutter: clamp(1.5rem, 6vw, 7rem);
}

/* Lichter aus — Dark Mode (Default) */
:root,
[data-theme="dark"] {
  --bg:          #0C0C0D;
  --bg-alt:      #121214;
  --surface:     #17181A;
  --surface-2:   #1E1F22;
  --line:        rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text:        #F4F3F0;
  --text-dim:    #9C9C98;
  --text-faint:  #5C5C58;
  --akzent:      var(--rot-neon);
  --akzent-soft: rgba(255, 59, 20, .12);
  --glow:        0 0 24px rgba(255, 59, 20, .45), 0 0 64px rgba(255, 59, 20, .18);
  --glow-text:   0 0 18px rgba(255, 59, 20, .65);
  --circuit-dim: rgba(255, 59, 20, .22);
  --plate:       linear-gradient(145deg, #1C1D1F, #101112);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

/* Lichter an — Light Mode */
[data-theme="light"] {
  --bg:          #F3F3F1;
  --bg-alt:      #EBEBE8;
  --surface:     #FFFFFF;
  --surface-2:   #F8F8F6;
  --line:        rgba(20, 20, 20, .1);
  --line-strong: rgba(20, 20, 20, .22);
  --text:        #161616;
  --text-dim:    #5A5A56;
  --text-faint:  #A6A6A0;
  --akzent:      var(--rot);
  --akzent-soft: rgba(232, 45, 0, .08);
  --glow:        0 10px 30px rgba(232, 45, 0, .18);
  --glow-text:   none;
  --circuit-dim: rgba(232, 45, 0, .18);
  --plate:       linear-gradient(145deg, #FFFFFF, #E9E9E6);
  --card-shadow: 0 20px 50px rgba(20, 20, 20, .08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .7s var(--ease-out), color .7s var(--ease-out);
}

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

img, svg, video, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}

h1 { letter-spacing: -.01em; }

/* ---------- Utility ---------- */
.wrap { padding-inline: var(--gutter); max-width: 1560px; margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--akzent);
}
.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--akzent);
  box-shadow: var(--glow);
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
[data-theme="dark"] .outline-text { -webkit-text-stroke: 1px rgba(255,255,255,.3); }

.akzent { color: var(--akzent); text-shadow: var(--glow-text); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease-out), border-color .5s var(--ease-out);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.nav-logo img { height: 30px; width: auto; }
.nav-logo .rest {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text-dim);
  padding-block: .4rem;
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--akzent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-snap);
  box-shadow: var(--glow);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 1.35rem; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.15rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: #fff;
  background: var(--akzent);
  border-radius: 3px;
  transition: filter .3s, box-shadow .3s;
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.12); box-shadow: var(--glow); }

/* Mobile burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 26px; height: 2px; background: var(--text); transition: .35s var(--ease-snap); }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   DER LICHTSCHALTER — 3D architectural rocker switch
   ============================================================ */
.lichtschalter {
  --plate-w: 40px;
  --plate-h: 52px;
  position: relative;
  width: var(--plate-w);
  height: var(--plate-h);
  background: color-mix(in srgb, var(--text) 10%, var(--bg));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  perspective: 300px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 6px 16px rgba(0,0,0,.3);
  transition: box-shadow .5s, background .5s;
  flex-shrink: 0;
}
[data-theme="light"] .lichtschalter {
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 16px rgba(20,20,20,.14);
}
.lichtschalter:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

.lichtschalter .wippe {
  position: absolute;
  inset: 5px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--text) 16%, var(--bg));
  border: 1px solid var(--line-strong);
  transform-style: preserve-3d;
  transform: rotateX(14deg);            /* unten gedrückt = Licht aus */
  transition: transform .38s var(--ease-snap), background .5s;
  box-shadow: 0 4px 8px rgba(0,0,0,.35);
}
[data-theme="light"] .lichtschalter .wippe {
  background: #EDEDEA;
  transform: rotateX(-14deg);           /* oben gedrückt = Licht an */
  box-shadow: 0 -3px 8px rgba(20,20,20,.1);
}

/* LED-Punkt auf der Wippe */
.lichtschalter .wippe::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--rot-neon);
  box-shadow: 0 0 8px var(--rot-neon), 0 0 20px var(--rot-neon);
  transition: .5s;
}
[data-theme="light"] .lichtschalter .wippe::after {
  bottom: auto; top: 6px;
  background: #2ECC5B;
  box-shadow: 0 0 8px rgba(46,204,91,.7), 0 0 16px rgba(46,204,91,.4);
}

/* Fugenlinie */
.lichtschalter .wippe::before {
  content: "";
  position: absolute;
  left: 20%; right: 20%;
  top: 50%;
  height: 1px;
  background: var(--line);
}

.lichtschalter:active .wippe { transform: rotateX(0deg) scale(.97); }

.lichtschalter .schalter-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Theme-Umschalt-Blende */
.theme-flash {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: radial-gradient(circle at var(--fx, 90%) var(--fy, 5%), rgba(255,255,255,.9), transparent 55%);
  opacity: 0;
}
.theme-flash.zap { animation: zap .7s var(--ease-out); }
@keyframes zap {
  0%   { opacity: 0; }
  12%  { opacity: .9; }
  100% { opacity: 0; }
}

/* ============================================================
   CIRCUIT TRACE — leuchtende Leiterbahnen bei Hover
   ============================================================ */
.trace-box { position: relative; }
.trace-box .trace {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.trace-box .trace rect {
  fill: none;
  stroke: var(--akzent);
  stroke-width: 1.5;
  stroke-dasharray: 30 70;   /* pathLength=100 */
  stroke-dashoffset: 100;
  opacity: 0;
  transition: opacity .3s;
  filter: drop-shadow(0 0 6px var(--akzent));
}
.trace-box:hover .trace rect,
.trace-box:focus-within .trace rect {
  opacity: 1;
  animation: trace-run 1.6s linear infinite;
}
@keyframes trace-run {
  to { stroke-dashoffset: 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 2.4rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid var(--akzent);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: color .4s, box-shadow .4s, border-color .4s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--akzent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-snap);
  z-index: -1;
}
.btn:hover { color: #fff; box-shadow: var(--glow); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .pfeil { transition: transform .4s var(--ease-snap); }
.btn:hover .pfeil { transform: translateX(6px); }

.btn--voll { background: var(--akzent); color: #fff; }
.btn--voll::before { background: var(--rot-tief); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 5rem) var(--gutter) clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}
[data-theme="light"] .hero-video { filter: saturate(.9) brightness(1.05); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--bg) 0%, transparent 45%),
              linear-gradient(to right, color-mix(in srgb, var(--bg) 55%, transparent), transparent 60%);
  pointer-events: none;
  transition: opacity .7s;
}

.hero-inner { position: relative; z-index: 2; }

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: .04em;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 700;
  margin-block: 1.2rem 1.8rem;
  max-width: 16ch;
}
.hero h1 .zeile { display: block; }

.hero-unterzeile {
  max-width: 46ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
}

.hero-aktionen { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.6rem; }

/* schwebende Stat-Kachel */
.hero-stat {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(4rem, 10vh, 6rem);
  z-index: 2;
  text-align: right;
  border-right: 2px solid var(--akzent);
  padding-right: 1.4rem;
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--akzent);
  text-shadow: var(--glow-text);
}
.hero-stat span {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   LAUFBAND (Marquee)
   ============================================================ */
.laufband {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-alt);
  transition: background .7s;
}
.laufband-spur { display: inline-flex; gap: 3.5rem; animation: laufen 34s linear infinite; }
.laufband span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.laufband span i { font-style: normal; color: var(--akzent); margin-right: 3.5rem; text-shadow: var(--glow-text); }
@keyframes laufen { to { transform: translateX(-50%); } }

/* ============================================================
   SEKTIONEN
   ============================================================ */
.sektion { padding-block: clamp(5rem, 12vh, 10rem); position: relative; }

.sektion-kopf { margin-bottom: clamp(3rem, 7vh, 5.5rem); }
.sektion-kopf h2 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); margin-top: 1rem; max-width: 22ch; }

/* Manifest — asymmetrischer Intro-Block */
.manifest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}
.manifest .gross {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.32;
  text-transform: none;
  letter-spacing: -.01em;
}
.manifest .neben p { color: var(--text-dim); max-width: 44ch; margin-bottom: 1.4rem; }

/* ============================================================
   LEISTUNGS-SCHALTKREIS — vertikale Journey
   ============================================================ */
.schaltkreis { position: relative; }

/* durchlaufende Leiterbahn */
.schaltkreis::before {
  content: "";
  position: absolute;
  left: clamp(1.2rem, 4vw, 4rem);
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--circuit-dim) 8%, var(--circuit-dim) 92%, transparent);
}

.leistung {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding: clamp(2.5rem, 6vh, 5rem) 0 clamp(2.5rem, 6vh, 5rem) clamp(3.5rem, 8vw, 8rem);
}
.leistung:nth-child(even) { direction: rtl; }
.leistung:nth-child(even) > * { direction: ltr; }
.leistung:nth-child(even) .leistung-text { margin-left: clamp(0rem, 4vw, 4rem); }

/* Knotenpunkt auf der Leiterbahn */
.leistung::before {
  content: "";
  position: absolute;
  left: calc(clamp(1.2rem, 4vw, 4rem) - 5px);
  top: 50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--akzent);
  background: var(--bg);
  transition: background .4s, box-shadow .4s;
}
.leistung:hover::before { background: var(--akzent); box-shadow: var(--glow); }

.leistung-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--circuit-dim);
  transition: -webkit-text-stroke .4s, text-shadow .4s;
}
.leistung:hover .leistung-index {
  -webkit-text-stroke: 1px var(--akzent);
  text-shadow: var(--glow-text);
}

.leistung h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-block: .7rem .9rem;
}
.leistung p { color: var(--text-dim); max-width: 48ch; }

.leistung-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.leistung-tags span {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: .3s;
}
.leistung:hover .leistung-tags span { border-color: var(--akzent); color: var(--text); }

/* abstrakte Bild-Kachel */
.leistung-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transform: rotate(-1.2deg);
  transition: transform .6s var(--ease-out), border-color .4s;
}
.leistung:nth-child(even) .leistung-visual { transform: rotate(1.2deg); }
.leistung:hover .leistung-visual { transform: rotate(0) scale(1.02); border-color: var(--akzent); }

.leistung-visual svg { width: 100%; height: 100%; }
.leistung-visual .platine-pfad {
  fill: none;
  stroke: var(--circuit-dim);
  stroke-width: 1.5;
  transition: stroke .4s;
}
.leistung:hover .leistung-visual .platine-pfad { stroke: var(--akzent); filter: drop-shadow(0 0 5px var(--akzent)); }
.leistung-visual .platine-punkt { fill: var(--akzent); }
.leistung-visual .visual-icon {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   WEITERE LEISTUNGEN — versetzte Liste
   ============================================================ */
.spezial-liste { list-style: none; }
.spezial-liste li {
  border-top: 1px solid var(--line);
  transition: background .4s;
}
.spezial-liste li:last-child { border-bottom: 1px solid var(--line); }

.spezial-liste a, .spezial-liste .zeile-inhalt {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: 1.5rem .5rem;
  transition: padding-left .45s var(--ease-snap), background .4s;
}
.spezial-liste li:hover .zeile-inhalt { padding-left: 1.4rem; }

/* Wiederverwendbares Icon-Abzeichen — Animation lebt hier, nicht am umgebenden Container */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color .4s, box-shadow .4s;
}
.icon-badge svg {
  width: 24px;
  height: 24px;
  color: var(--text-dim);
  transition: color .4s;
}
.spezial-liste li:hover .icon-badge,
.detail:hover .icon-badge,
.wert:hover .icon-badge {
  border-color: var(--akzent);
  box-shadow: var(--glow);
}
.spezial-liste li:hover .icon-badge svg,
.detail:hover .icon-badge svg,
.wert:hover .icon-badge svg {
  color: var(--akzent);
}

.spezial-liste .text-block {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.spezial-liste .titel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
}
.spezial-liste .hinweis {
  font-size: .8rem;
  color: var(--text-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ============================================================
   ZAHLEN-BAND
   ============================================================ */
.zahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.zahl {
  background: var(--bg);
  padding: clamp(2.5rem, 5vh, 4rem) var(--gutter);
  transition: background .7s;
}
.zahl b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--akzent);
  text-shadow: var(--glow-text);
  line-height: 1;
}
.zahl span {
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   CTA-BAND
   ============================================================ */
.cta-band {
  position: relative;
  padding-block: clamp(6rem, 14vh, 11rem);
  text-align: left;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); max-width: 18ch; }
.cta-band .blitz {
  position: absolute;
  right: -4%; top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 34vw, 520px);
  opacity: .5;
  pointer-events: none;
}
.cta-band .blitz path {
  fill: none;
  stroke: var(--akzent);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px var(--akzent));
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: blitz-zeichnen 4s var(--ease-out) infinite;
}
@keyframes blitz-zeichnen {
  0%   { stroke-dashoffset: 1200; opacity: 0; }
  30%  { opacity: 1; }
  60%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter) 2.5rem;
  transition: background .7s;
}
.footer-raster {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 4rem;
}
.footer h4 {
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: .55rem; }
.footer a { color: var(--text-dim); font-size: .92rem; transition: color .3s; }
.footer a:hover { color: var(--akzent); }
.footer address { font-style: normal; color: var(--text-dim); font-size: .92rem; line-height: 1.9; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .3s;
}
.footer-social svg { width: 18px; height: 18px; flex-shrink: 0; transition: color .3s; }
.footer-social:hover { color: var(--akzent); }

.footer-marke {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.footer-marke img { height: 28px; width: auto; }
.footer-marke .rest {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--text);
}
.footer-claim { color: var(--text-dim); font-size: .9rem; max-width: 30ch; }

.footer-unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--text-faint);
}
.footer-unten nav { display: flex; gap: 1.6rem; }

/* ============================================================
   UNTERSEITEN — Seitenkopf
   ============================================================ */
.seitenkopf {
  padding: calc(var(--nav-h) + clamp(4rem, 10vh, 7rem)) var(--gutter) clamp(3rem, 7vh, 5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.seitenkopf h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-top: 1.2rem; max-width: 18ch; }
.seitenkopf .unter {
  margin-top: 1.6rem;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 300;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-raster {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.kontakt-info .block { margin-bottom: 2.6rem; }
.kontakt-info h3 {
  font-size: .76rem;
  letter-spacing: .28em;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: .7rem;
}
.kontakt-info p, .kontakt-info a { font-size: 1.15rem; color: var(--text); }
.kontakt-info a:hover { color: var(--akzent); }

.formular {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 3.5rem);
  box-shadow: var(--card-shadow);
  transition: background .7s;
}
.feld { position: relative; margin-bottom: 2rem; }
.feld label {
  display: block;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .6rem;
}
.feld input, .feld select, .feld textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: .75rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  transition: border-color .3s, box-shadow .3s;
}
.feld select option { color: #161616; background: #fff; }
.feld textarea { resize: vertical; min-height: 120px; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none;
  border-bottom-color: var(--akzent);
  box-shadow: 0 1px 0 var(--akzent), 0 8px 24px -12px var(--akzent);
}
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.form-erfolg {
  display: none;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--akzent);
  background: var(--akzent-soft);
  font-size: .95rem;
  margin-bottom: 1.6rem;
}
.form-erfolg.sichtbar { display: block; }

/* ============================================================
   ÜBER UNS
   ============================================================ */
.werte-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.wert {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.4rem 2rem;
  transition: transform .5s var(--ease-out), border-color .4s, background .7s;
}
.wert:nth-child(2) { transform: translateY(2.4rem); }
.wert:hover { border-color: var(--akzent); transform: translateY(-6px); }
.wert:nth-child(2):hover { transform: translateY(1.8rem); }
.wert h3 { font-size: 1.2rem; margin-bottom: .8rem; }
.wert p { color: var(--text-dim); font-size: .95rem; }
.wert .icon-badge { margin-bottom: 1.2rem; }
.wert .wert-num {
  font-family: var(--font-display);
  color: var(--akzent);
  font-size: .85rem;
  letter-spacing: .3em;
  display: block;
  margin-bottom: 1.4rem;
  text-shadow: var(--glow-text);
}

/* ============================================================
   RECHTSSEITEN
   ============================================================ */
.rechtstext { max-width: 80ch; padding-block: clamp(3rem, 8vh, 6rem); }
.rechtstext h2 { font-size: 1.4rem; margin: 2.6rem 0 .9rem; }
.rechtstext p, .rechtstext li { color: var(--text-dim); margin-bottom: .8rem; }
.rechtstext ul { padding-left: 1.2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-raster { grid-template-columns: 1fr 1fr; }
  .werte-raster { grid-template-columns: 1fr; }
  .wert:nth-child(2) { transform: none; }
}

@media (max-width: 860px) {
  :root { --gutter: 1.1rem; }
  .burger { display: flex; flex-shrink: 0; }
  .nav-logo { flex-shrink: 0; }
  .nav-logo .rest { display: none; }
  .nav-cta { display: none; }
  .nav-right { gap: .6rem; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-120%);
    transition: transform .5s var(--ease-snap);
    z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 1rem 0; font-size: 1.1rem; }

  .manifest, .leistung, .kontakt-raster { grid-template-columns: 1fr; }
  .leistung:nth-child(even) { direction: ltr; }
  .leistung { padding-left: clamp(2.5rem, 10vw, 4rem); }
  .manifest .neben { margin-top: 1rem; }
  .hero-stat { display: none; }
  .feld-reihe { grid-template-columns: 1fr; }
  .footer-raster { grid-template-columns: 1fr; gap: 2.5rem; }
  .lichtschalter { --plate-w: 30px; --plate-h: 42px; border-radius: 6px; }
  .lichtschalter .wippe { border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   ZUGANGSSPERRE — Passwortschutz für Designvorschlag
   ============================================================ */
.gate { display: none; }
html.gesperrt .gate { display: flex; }
html.gesperrt .nav,
html.gesperrt main,
html.gesperrt .footer { display: none !important; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: var(--gutter);
}
.gate-box { width: 100%; max-width: 380px; text-align: center; }
.gate-box img { height: 48px; margin-inline: auto; margin-bottom: 1.8rem; }
.gate-box h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.gate-box .gate-sub { color: var(--text-dim); font-size: .88rem; margin-bottom: 2.2rem; }

.gate-form { display: flex; flex-direction: column; gap: 1.1rem; }
.gate-form input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: .9rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  letter-spacing: .12em;
  border-radius: 3px;
  transition: border-color .3s, box-shadow .3s;
}
.gate-form input:focus {
  outline: none;
  border-color: var(--akzent);
  box-shadow: 0 0 0 3px var(--akzent-soft);
}
.gate-form .btn { justify-content: center; }
.gate-error { color: var(--akzent); font-size: .82rem; min-height: 1.2em; }
