/* ==========================================================================
   Kesting Sandstrahlen — Design-Prototyp (Phase 3)
   Tokens, Layout, Komponenten, Slider
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Farbe */
  --ink:        #0c0e11;
  --steel-900:  #12161b;
  --steel-800:  #1a2027;
  --steel-700:  #262f39;
  --steel-600:  #3a4753;
  --steel-400:  #6b7885;
  --steel-500:  #5b6874;   /* Labels auf hellem Grund, 4.5:1+ */
  --steel-300:  #98a3ae;
  --paper:      #f7f6f3;
  --paper-2:    #ebe8e2;
  --white:      #ffffff;

  --accent:     #ff6a1a;
  --accent-700: #d95208;
  --accent-12:  rgba(255, 106, 26, .12);
  --accent-30:  rgba(255, 106, 26, .30);

  --line-dark:  rgba(255, 255, 255, .10);
  --line-light: rgba(12, 14, 17, .12);

  /* Semantische Flächen-Tokens: werden im Dark-Theme umgeschaltet.
     --paper/--ink bleiben für die bewusst dunklen Blöcke reserviert. */
  --page:       var(--paper);
  --surface:    var(--paper);
  --surface-hi: var(--white);
  --surface-2:  var(--paper-2);
  --text:       var(--ink);
  --text-muted: var(--steel-600);
  --text-label: var(--steel-500);

  /* Typografie */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono",
               Menlo, Consolas, monospace;

  --fs-hero:  clamp(2.15rem, 5.6vw, 4.35rem);
  --fs-h2:    clamp(1.65rem, 3.3vw, 2.6rem);
  --fs-h3:    clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-lead:  clamp(1.02rem, 1.25vw, 1.19rem);
  --fs-body:  clamp(0.98rem, 1.02vw, 1.05rem);
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;

  /* Raum */
  --sp-1: .35rem;  --sp-2: .65rem;  --sp-3: 1rem;
  --sp-4: 1.5rem;  --sp-5: 2.25rem; --sp-6: 3.25rem;
  --sp-7: clamp(3.5rem, 7vw, 6.5rem);

  --container: 1180px;
  --gutter: clamp(1.15rem, 4.5vw, 3rem);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 620ms;

  --header-h: 76px;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 3. Utility --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 100;
  transform: translateY(-160%);
  background: var(--accent); color: var(--ink);
  padding: .7rem 1.1rem; font-weight: 600; border-radius: var(--radius);
  transition: transform 160ms var(--ease);
}
.skip-link:focus { transform: none; }
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.dark { background: var(--steel-900); color: var(--paper); }
.label {
  font: 500 var(--fs-label)/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-500);
  display: flex; align-items: center; gap: .6rem;
}
.label::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); flex: none;
}
.label--onDark { color: var(--steel-300); }

.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.022em; font-weight: 650; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--steel-600); }
.dark .lead { color: var(--steel-300); }
.section-head { display: grid; gap: var(--sp-3); max-width: 62ch; margin-bottom: var(--sp-6); }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);      /* 6,7:1 auf Akzent statt 2,9:1 mit Weiß */
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .93rem; font-weight: 600; letter-spacing: .01em;
  border-radius: var(--radius);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.btn:hover { background: var(--accent-700); transform: translateY(-1px); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); }
.btn--dark { --btn-bg: var(--steel-900); --btn-fg: var(--paper); }
.btn--dark:hover { background: var(--steel-800); }
.btn__icon { width: 1em; height: 1em; flex: none; }
.btn__tag {
  margin-left: .55rem; padding: .3em .6em .28em;
  font-size: .68rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; white-space: nowrap;
  background: rgba(255, 106, 26, .16); color: #ffab7a;
  box-shadow: inset 0 0 0 1px rgba(255, 106, 26, .45);
}
.btn--ghost:hover .btn__tag { background: rgba(255, 106, 26, .24); }

/* ---------- 5. Header ---------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(12, 14, 17, .82);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-dark);
  transition: background 240ms var(--ease);
}
.header__inner { display: flex; align-items: center; gap: var(--sp-5); width: 100%; }
.brand { display: flex; align-items: center; gap: .75rem; flex: none; min-width: 0; }
.brand img {
  height: 32px; width: auto;
  background: var(--white);
  padding: 4px 7px;
  border-radius: var(--radius);
}
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-size: .95rem; font-weight: 650; letter-spacing: -.01em; color: var(--paper); white-space: nowrap; }
.brand__sub {
  font: 500 var(--fs-label)/1.4 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel-300);
}
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__link {
  position: relative;
  font-size: .9rem; color: #d9dde2;
  padding-block: .4rem;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--white); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: .5rem; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .9rem/1 var(--font-mono);
  color: var(--paper);
  padding: .7rem .2rem;
  white-space: nowrap;
}
.header__phone svg { color: var(--accent); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
}
.nav-toggle span {
  position: relative; display: block; width: 18px; height: 1.5px;
  background: var(--paper); transition: transform 200ms var(--ease), opacity 160ms;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--paper);
  transition: transform 200ms var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero-Slider ----------------------------------------------- */
.hero {
  position: relative;
  min-height: 700px;
  min-height: min(940px, 100svh);
  display: grid; align-items: end;
  background: var(--ink);
  color: var(--paper);
  touch-action: pan-y;   /* horizontale Swipes gehören dem Slider */
  overflow: hidden;
  isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 900ms var(--ease);
  will-change: opacity;
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.slide.is-active img { transform: scale(1); }

/* Scrim: links dunkel für Text, rechts Bild sichtbar */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Scrim nur dort stark, wo Text steht (linke ~75 %) — rechts bleibt das Foto brillant */
  background:
    linear-gradient(90deg, rgba(10,12,15,.94) 0%, rgba(10,12,15,.90) 42%, rgba(10,12,15,.82) 64%, rgba(10,12,15,.66) 78%, rgba(10,12,15,.12) 88%, rgba(10,12,15,.04) 100%),
    linear-gradient(to top, rgba(10,12,15,.90) 0%, rgba(10,12,15,0) 40%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; gap: var(--sp-4);
  padding-bottom: clamp(6.5rem, 12vh, 8.5rem);
  padding-top: calc(var(--header-h) + var(--sp-6));
  max-width: 46rem;
}
.hero__title {
  font-size: var(--fs-hero);
  line-height: .99;
  letter-spacing: -.035em;
  font-weight: 680;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  font-size: var(--fs-lead);
  color: #c9d0d7;
  max-width: 34rem;
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--sp-1); }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-dark);
  font: 500 .8rem/1.4 var(--font-mono);
  letter-spacing: .05em;
  color: var(--steel-300);
}
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts li::before { content: ""; width: 5px; height: 5px; background: var(--accent); flex: none; }

/* Steuerung */
.hero__ui {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line-dark);
  background: linear-gradient(to top, rgba(10,12,15,.75), rgba(10,12,15,0));
}
.hero__ui-inner {
  display: flex; align-items: center; gap: var(--sp-4);
  padding-block: var(--sp-3);
}
.slider-nav { display: flex; gap: .5rem; flex: none; }
.slider-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: var(--paper);
  transition: background 180ms, border-color 180ms, transform 180ms var(--ease);
}
.slider-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.slider-btn svg { width: 16px; height: 16px; }

.slider-dots { display: flex; align-items: center; gap: .55rem; max-width: 300px; }
.slider-dot {
  position: relative;
  width: 40px; height: 3px;
  background: rgba(255,255,255,.22);
  overflow: hidden;
  transition: background 200ms;
}
.slider-dot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.slider-dot.is-active::after { animation: dotProgress var(--slide-dur, 6.5s) linear forwards; }
.slider-dot.is-active.is-paused::after { animation-play-state: paused; }
.slider-dot:hover { background: rgba(255,255,255,.42); }
@keyframes dotProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.slider-count {
  margin-left: auto;
  font: 500 .78rem/1 var(--font-mono);
  letter-spacing: .1em;
  color: var(--steel-300);
  flex: none;
}
.slider-count b { color: var(--paper); font-weight: 600; }
.slider-caption {
  order: 3;
  min-width: 0;
  flex: 1;
  font: 400 .82rem/1.4 var(--font-sans);
  color: #b9c1c9;
  display: none;
}
@media (min-width: 900px) { .slider-caption { display: block; } }

/* ---------- 7. Leistungen ------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.card {
  position: relative;
  background: var(--surface);
  padding: clamp(1.4rem, 2.2vw, 2rem);
  display: grid; align-content: start; gap: .7rem;
  transition: background 220ms var(--ease);
}
.card:hover { background: var(--surface-hi); }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform 280ms var(--ease);
}
.card:hover::before { transform: scaleY(1); }
.card__num {
  font: 500 var(--fs-label)/1 var(--font-mono);
  letter-spacing: .12em; color: var(--steel-500);
}
.card__title { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.012em; font-weight: 620; }
.card__text { font-size: .93rem; line-height: 1.6; color: var(--steel-600); }
.card__more {
  margin-top: .35rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font: 600 .82rem/1 var(--font-sans);
  color: var(--text);
}
.card__more svg { width: 14px; transition: transform 200ms var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }
.card:hover .card__more { color: var(--accent-700); }

/* ---------- 8. Ablauf ---------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-5); }
.step { display: grid; gap: .6rem; padding-top: var(--sp-3); border-top: 1px solid var(--line-light); }
.dark .step { border-color: var(--line-dark); }
.step__num {
  font: 600 2.4rem/1 var(--font-mono);
  color: var(--accent);
  letter-spacing: -.04em;
}
.step__title { font-size: 1.05rem; font-weight: 620; }
.step__text { font-size: .93rem; color: var(--steel-600); }
.dark .step__text { color: var(--steel-300); }

/* ---------- 9. Referenzen ------------------------------------------------ */
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-3); }
.ref {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--steel-800);
  border-radius: var(--radius);
}
.ref img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease), opacity 400ms; opacity: .92; }
.ref:hover img { transform: scale(1.045); opacity: 1; }
.ref::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,12,15,.82), rgba(10,12,15,0) 58%);
}
.ref__cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: var(--sp-3);
  color: var(--paper);
  display: grid; gap: .2rem;
}
.ref__kicker {
  font: 500 var(--fs-label)/1 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.ref__title { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- 10. Über uns / Zahlen --------------------------------------- */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr .95fr; } }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.split__badge {
  position: absolute; left: -1px; bottom: -1px;
  background: var(--accent); color: var(--ink);
  padding: .9rem 1.15rem;
  font: 600 .8rem/1.3 var(--font-mono);
  letter-spacing: .04em;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); margin-top: var(--sp-5); }
.stat { background: var(--steel-900); padding: var(--sp-3) var(--sp-3) var(--sp-3) 0; display: grid; gap: .15rem; }
.stat:not(:first-child) { padding-left: var(--sp-3); }
.stat__value { font: 650 1.6rem/1.1 var(--font-sans); letter-spacing: -.02em; color: var(--paper); }
.stat__label { font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--steel-300); }

/* ---------- 11. Kontakt-Band -------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--steel-900);
  color: var(--paper);
  overflow: hidden;
}
.cta-band__grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) { .cta-band__grid { grid-template-columns: 1.1fr .9fr; } }
.cta-band__title { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.025em; font-weight: 660; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: var(--sp-4); }
.contact-card {
  border: 1px solid var(--line-dark);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: .85rem;
  background: rgba(255,255,255,.025);
}
.contact-row { display: grid; gap: .1rem; }
.contact-row__k { font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel-300); }
.contact-row__v { font-size: 1rem; color: var(--paper); }
.contact-row__v a:hover { color: var(--accent); }

/* ---------- 12. Footer --------------------------------------------------- */
.footer { background: var(--ink); color: var(--steel-300); padding-block: var(--sp-6) var(--sp-4); border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h3 { font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel-300); margin-bottom: var(--sp-3); }
.footer__links { display: grid; gap: .55rem; font-size: .9rem; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .8rem; color: var(--steel-300);
}
.footer__brand img {
  height: 40px; width: auto; margin-bottom: var(--sp-3);
  background: var(--white); padding: 5px 9px; border-radius: var(--radius);
}
.footer__claim { font-size: .9rem; max-width: 32ch; line-height: 1.6; }

/* ---------- 13. Reveal-Animation ---------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 14. Mobile -------------------------------------------------- */
@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .brand__text { display: none; }
  .brand img { height: 30px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: var(--sp-4) var(--gutter) var(--sp-5);
    display: none;
    margin-left: 0;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding-block: .95rem; font-size: 1.02rem; border-bottom: 1px solid var(--line-dark); }
  .nav__link::after { display: none; }
  .header__inner { gap: var(--sp-3); }
  .header__cta { margin-left: auto; order: 2; }
  .nav-toggle { order: 3; }
  .hero { min-height: 620px; min-height: min(780px, 100svh); }
  .hero__inner { padding-top: calc(var(--header-h) + var(--sp-5)); padding-bottom: 9.5rem; }
  /* Mobil liegt der Text über fast der ganzen Breite -> vertikaler Scrim statt Seitenverlauf */
  .hero::after {
    background:
      linear-gradient(to top, rgba(10,12,15,.94) 0%, rgba(10,12,15,.88) 34%, rgba(10,12,15,.74) 60%, rgba(10,12,15,.58) 100%);
  }
  .slider-caption { display: none; }
  .hero__ui-inner { flex-wrap: wrap; gap: .75rem var(--sp-3); }
  .slider-dots { order: 4; width: 100%; }
  .slider-dot { flex: 1; width: auto; }
  .slider-count { order: 5; margin-left: 0; }
}

@media (max-width: 560px) {
  .brand__sub { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:not(:first-child) { padding: var(--sp-2) 0; }
  .hero__facts { font-size: .72rem; gap: .35rem 1rem; }
  .split__badge { position: static; display: inline-block; margin-top: -2px; }
}

/* ---------- 15. Reduced Motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .slide img { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 16. Kurze Viewports ----------------------------------------- */
/* Statt Inhalte zu verstecken, wird der Hero bei geringer Viewport-Höhe
   kompakter skaliert — so bleibt die Fakten-Zeile auch auf 768er-Notebooks. */
@media (max-height: 860px) {
  .hero { --fs-hero: clamp(1.95rem, 4.4vw, 3.45rem); }
  .hero__inner { padding-top: calc(var(--header-h) + 1.35rem); row-gap: 1.1rem; }
}
@media (max-height: 700px) {
  .hero__title { --fs-hero: clamp(1.7rem, 3.6vw, 2.7rem); }
  .hero__inner { padding-bottom: 8.25rem; }
}
@media (max-height: 620px) {
  .hero__facts { display: none; }
}
/* Kleine Telefone (z. B. 375×667): Hero bleibt eine Bildschirmhöhe hoch. */
@media (max-width: 767px) and (max-height: 800px) {
  .hero { min-height: min(600px, 100svh); }
  .hero__inner {
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-bottom: 8.75rem;
    row-gap: .85rem;
  }
  .hero__title { --fs-hero: clamp(1.8rem, 7.4vw, 2.4rem); }
  .hero__sub { font-size: .95rem; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .hero__facts { display: none; }
  .hero__title { --fs-hero: clamp(1.55rem, 6.6vw, 2.05rem); }
  .hero__inner { padding-bottom: 8rem; row-gap: .75rem; }
}
@media (max-width: 767px) and (max-height: 620px) {
  .hero__sub { display: none; }
  .hero__inner { padding-top: calc(var(--header-h) + .75rem); padding-bottom: 7.25rem; }
}
/* ---------- 17. No-JS --------------------------------------------------- */
.no-js .slide:first-child { opacity: 1; }
.no-js .hero__ui { display: none; }


/* ==========================================================================
   Phase 4 — Seitenkomponenten (Unterseiten, Dokument-Layout, Rechtstext)
   Ergänzt design/prototype.css; gleiche Tokens, keine neuen Farben.
   ========================================================================== */

/* --- Header: Telefon + kompakter CTA -------------------------------------- */
.header__cta { display: flex; align-items: center; gap: var(--sp-3); }
.btn--sm { padding: .62rem 1rem; font-size: .76rem; letter-spacing: .07em; }
.btn--sm .btn__icon { width: 14px; height: 14px; }
@media (max-width: 1279px) { .header__phone { display: none; } }
@media (max-width: 559px)  { .header__cta .btn--sm { display: none; } }

/* --- Seiten-Hero (Unterseiten ohne Slider) -------------------------------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(400px, 56vh, 580px);
  padding-top: calc(var(--header-h) + var(--sp-6));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  background: var(--steel-900);
  color: var(--paper);
  isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,12,15,.95) 0%, rgba(10,12,15,.90) 42%, rgba(10,12,15,.70) 66%, rgba(10,12,15,.30) 86%, rgba(10,12,15,.16) 100%),
    linear-gradient(to top, rgba(10,12,15,.92) 0%, rgba(10,12,15,.35) 38%, transparent 62%);
}
.page-hero__inner { position: relative; z-index: 2; width: 100%; }
.page-hero__title {
  margin-top: var(--sp-3);
  font-size: clamp(1.8rem, 4.3vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.028em;
  max-width: 24ch;
}
.page-hero__sub {
  margin-top: var(--sp-3);
  max-width: 54ch;
  color: var(--steel-300);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
@media (max-width: 767px) {
  .page-hero { min-height: clamp(340px, 52svh, 460px); }
  .page-hero__title { font-size: clamp(1.6rem, 6.4vw, 2.2rem); max-width: 20ch; }
  .page-hero__sub { font-size: 1rem; }
}

/* --- Dokument-Layout: Inhaltsverzeichnis + Fließtext ---------------------- */
.doc { display: grid; gap: var(--sp-6); }
@media (min-width: 960px) {
  .doc { grid-template-columns: 258px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .doc__toc { position: sticky; top: calc(var(--header-h) + 1.75rem); align-self: start; }
}
.doc__toc-title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-500);
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line-light);
}
.doc__toc ol { list-style: none; margin: .35rem 0 0; padding: 0; }
.doc__toc li { margin: 0; }
.doc__toc a {
  display: block;
  padding: .5rem 0 .5rem .85rem;
  border-left: 2px solid var(--line-light);
  color: var(--steel-600);
  font-size: .875rem;
  line-height: 1.4;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.doc__toc a:hover { color: var(--text); border-left-color: var(--accent); }
.doc__toc a.is-current { color: var(--text); border-left-color: var(--accent); font-weight: 600; }

.doc__body { max-width: 68ch; }
.doc__body > section + section {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-light);
}
.doc__body h2 {
  font-size: clamp(1.32rem, 2.2vw, 1.72rem);
  line-height: 1.16;
  letter-spacing: -.018em;
  font-weight: 650;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.doc__body h3 { font-size: var(--fs-h3); margin-top: var(--sp-4); }
.doc__body p { margin-top: .85rem; font-size: var(--fs-body); line-height: 1.68; }
.doc__body p:first-of-type { margin-top: .7rem; }
.doc__body ul, .doc__body ol { margin-top: .85rem; padding-left: 1.1rem; }
.doc__body li { margin-top: .35rem; font-size: var(--fs-body); line-height: 1.62; }
.doc__body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.doc__body strong { font-weight: 650; }

.doc__contact {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
}
.doc__contact p { margin: 0; font-size: .95rem; }
.doc__contact p + p { margin-top: .4rem; }

/* --- Leistungs-/Referenzzeilen ------------------------------------------- */
.rows { display: grid; gap: var(--sp-6); }
@media (min-width: 880px) {
  .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
  .row--flip .row__media { order: -1; }
}
.row__media { margin: 0; }
.row__media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.row__media figcaption {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.row__body { max-width: 62ch; }
.row__kicker {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.row__title {
  margin-top: .55rem;
  font-size: clamp(1.32rem, 2.3vw, 1.78rem);
  line-height: 1.15;
  letter-spacing: -.018em;
  font-weight: 650;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.row__text { margin-top: .75rem; font-size: var(--fs-body); line-height: 1.68; color: var(--text); }
.row__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.row__link svg { width: 15px; height: 15px; }

/* --- Galerie -------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-3); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line-light); background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: .8rem .9rem;
  background: linear-gradient(to top, rgba(10,12,15,.88), rgba(10,12,15,0));
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* --- Kontaktseite --------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: var(--sp-5); } }
.contact-block {
  padding: var(--sp-4);
  border: 1px solid var(--line-light);
  background: var(--surface);
}
.contact-block--dark { background: var(--steel-900); border-color: transparent; color: var(--paper); }
.contact-block--dark .contact-row__k { color: var(--steel-300); }
.contact-block--dark .contact-row { border-color: var(--line-dark); }
.contact-block--dark .contact-row__v, .contact-block--dark a { color: var(--paper); }
.contact-block__title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: .9rem;
}
.contact-block--dark .contact-block__title { color: var(--steel-300); }
.contact-block .contact-row:last-child { border-bottom: 0; }

/* ---------- Anfrageformular (Kontaktseite) ------------------------------- */
.ask { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 960px) {
  .ask { grid-template-columns: .85fr 1.15fr; gap: var(--sp-7); }
}
.ask__k {
  font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-700);
}
.ask__h {
  margin-top: .9rem;
  font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.02em;
  font-weight: 660;
}
.ask__h em { font-style: normal; color: var(--accent); }
.ask__p { margin-top: 1rem; color: var(--text-muted); max-width: 34ch; }
.ask__list { margin-top: var(--sp-5); display: grid; gap: .1rem; }
.ask__list li {
  display: flex; align-items: baseline; gap: .85rem;
  padding: .7rem 0; border-top: 1px solid var(--line-light);
  font-size: var(--fs-small); color: var(--text);
}
.ask__list li:last-child { border-bottom: 1px solid var(--line-light); }
.ask__list span {
  font: 600 .68rem/1 var(--font-mono); letter-spacing: .1em;
  color: var(--accent-700);
}

.cform {
  border: 1px solid var(--line-light);
  background: var(--surface-2);
  padding: clamp(1.15rem, 2.6vw, 2rem);
  position: relative;
}
.cform__grid { display: grid; gap: .95rem 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cform__grid { grid-template-columns: 1fr 1fr; } }
.cform__f--full { grid-column: 1 / -1; }
.cform__f { display: grid; gap: .4rem; }
.cform__l {
  font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-label);
}
.cform__l b { color: var(--accent-700); font-weight: 600; }
.cform__i {
  width: 100%; font: 400 var(--fs-small)/1.5 var(--font-sans);
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: .72rem .85rem;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
  appearance: none;
}
.cform__i::placeholder { color: var(--text-label); opacity: .75; }
.cform__i:hover { border-color: var(--steel-400); }
.cform__i:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, .16);
  background: var(--surface-hi);
}
textarea.cform__i { min-height: 8.5rem; resize: vertical; }
.cform__s {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238b949e' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  padding-right: 2.2rem; cursor: pointer;
}
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform__check {
  display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.1rem;
  font-size: .8rem; line-height: 1.55; color: var(--text-muted); cursor: pointer;
}
.cform__check input { margin: .18rem 0 0; width: 1rem; height: 1rem; accent-color: var(--accent); flex: none; }
.cform__check a { color: var(--text); border-bottom: 1px solid var(--accent); }
.cform__check a:hover { color: var(--accent-700); }
.cform__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem;
  margin-top: 1.25rem; padding-top: 1.15rem; border-top: 1px solid var(--line-light);
}
.cform__send { gap: .55rem; }
.cform__send svg { width: 16px; height: 16px; }
.cform__send[data-state="sending"] { opacity: .65; pointer-events: none; }
.cform__send[disabled] {
  background: var(--steel-700); color: var(--steel-400);
  box-shadow: none; cursor: not-allowed; opacity: 1;
  border: 1px solid rgba(255,255,255,.10);
}
.cform__send[disabled]:hover { background: var(--steel-700); transform: none; }
.cform__off {
  margin: .85rem 0 0; font-size: .82rem; line-height: 1.55;
  color: var(--text-muted); max-width: 46ch;
}
.cform__off a { color: var(--accent-700); text-decoration: none; font-weight: 600; }
.cform__off a:hover { text-decoration: underline; }
.cform__status { font-size: .82rem; line-height: 1.5; color: var(--text-muted); max-width: 46ch; }
.cform__status[data-tone="ok"] { color: var(--accent-700); }
.cform__status[data-tone="err"] { color: #e1574a; }
.cform__i[aria-invalid="true"] { border-color: #e1574a; }
.cform__done {
  border: 1px solid var(--line-light); background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: .7rem;
}
.cform__done h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
.cform__done p { color: var(--text-muted); font-size: var(--fs-small); }
.cform__done .btn { justify-self: start; margin-top: .4rem; }


/* Oranger Öffnungszeiten-Kasten (dunkle Schrift auf Akzent, ~6,7:1) */
.hours-box {
  background: var(--accent); color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.05rem, 2.2vw, 1.35rem) clamp(1.15rem, 2.4vw, 1.5rem);
  margin-bottom: var(--sp-5);
  max-width: 27rem;
}
.hours-box__k {
  font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .14em;
  text-transform: uppercase; opacity: .78;
}
.hours-box__grid {
  display: grid; gap: .45rem; margin-top: .7rem;
  grid-template-columns: 1fr;
}
.hours-box__item { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; }
.hours-box__d {
  font: 600 .78rem/1.4 var(--font-mono); letter-spacing: .08em;
  text-transform: uppercase; opacity: .8;
}
.hours-box__t { font: 660 1.05rem/1.25 var(--font-sans); letter-spacing: -.01em; }
.hours-box__n { font-size: .84rem; opacity: .82; }

.hours-box--compact { margin: .5rem 0 0; padding: .8rem .95rem; max-width: none; }
.hours-box--compact .hours-box__grid { gap: .2rem; margin-top: .55rem; }
.hours-box--compact .hours-box__item { gap: .1rem .45rem; }
.hours-box--compact .hours-box__t { font-size: 1rem; }
.hours-box--compact .hours-box__n { font-size: .82rem; }
.hours-box--compact .hours-box__n::before { content: "· "; }
.facts-list { list-style: none; margin: 0; padding: 0; }
.facts-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--steel-600);
}
.facts-list li + li { margin-top: .45rem; }
.facts-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

/* --- Rechtstext ----------------------------------------------------------- */
.legal { max-width: 76ch; }
.legal h2 {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-light);
  font-size: clamp(1.22rem, 2vw, 1.5rem);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.015em;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.legal h3 { margin-top: var(--sp-5); font-size: 1.06rem; font-weight: 650; line-height: 1.35; }
.legal h4 { margin-top: var(--sp-4); font-size: .98rem; font-weight: 650; }
.legal p { margin-top: .75rem; font-size: .94rem; line-height: 1.66; color: var(--steel-600); }
.legal ul, .legal ol { margin-top: .75rem; padding-left: 1.15rem; }
.legal li { margin-top: .3rem; font-size: .94rem; line-height: 1.62; color: var(--steel-600); }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-light); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--accent); }
.legal strong, .legal b { color: var(--text); font-weight: 650; }
.legal__sub {
  margin-top: 1.15rem;
  font-size: .94rem;
  font-weight: 650;
  color: var(--text);
}
.legal__sub + p { margin-top: .3rem; }
.legal__block {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
}
.legal__block p { color: var(--text); margin-top: .3rem; }

/* --- Kleinkram ------------------------------------------------------------ */
.section-head--tight { max-width: 62ch; }
.note {
  margin-top: var(--sp-4);
  padding: .9rem 1rem;
  border-left: 2px solid var(--accent-30);
  background: var(--surface-2);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--steel-600);
}
.link-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
.kicker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.kicker-list li {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .55rem;
  border: 1px solid var(--line-light);
  color: var(--steel-600);
}
.skip-target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* Phase 4 — Nachzügler: 404-Titel, Logo-Größe */
.h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.05; letter-spacing: -.025em; }
.brand__logo { width: auto; }

/* Phase 4 — Kontrast-Fixes (axe-core, WCAG 2.1 AA) */
/* .cta-band setzt color: paper, aber .lead bringt eigenes steel-600 mit ->
   auf steel-900 nur 1,91:1. Hier explizit auf den Sekundärtext der dunklen Fläche. */
.cta-band .lead { color: var(--steel-300); }
/* Kicker war accent-700 auf Papier = 3,77:1 (Textfarbe unter 4,5:1).
   DESIGN.md: Akzent nie als Textfarbe auf hellem Grund -> Sekundärfarbe. */
.row__kicker { color: var(--steel-600); }

/* 404: h1 -> Footer-h3 ohne h2 dazwischen (axe heading-order) -> versteckte h2-Führung */
/* Schritt-Nummern: --accent auf Papier = 2,65:1 (38px, braucht 3:1) -> accent-700, auf dunkel bleibt accent */
.step__num { color: var(--accent-700); }
.dark .step__num { color: var(--accent); }

/* ---------- 15. Galerie ------------------------------------------------- */
.gal__bar {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-light);
}
.gal__filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.gal__filter {
  appearance: none; background: none; cursor: pointer;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  color: var(--steel-500); padding: .5rem .85rem;
  font: 500 var(--fs-label)/1 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}
.gal__filter:hover { border-color: var(--steel-400); color: var(--text); }
.gal__filter.is-active { border-color: var(--accent); background: var(--accent-12); color: var(--text); }
.gal__count {
  margin: 0; color: var(--steel-500);
  font: 500 var(--fs-label)/1 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase;
}
.gal__grid {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gal__item { margin: 0; }
.gal__item[hidden] { display: none; }
.gal__link {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line-light); background: var(--surface-2);
}
.gal__link img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.gal__link:hover img, .gal__link:focus-visible img { transform: scale(1.04); }
.gal__zoom {
  position: absolute; right: .7rem; bottom: .7rem;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  background: rgba(12, 14, 17, .74); color: var(--white);
  opacity: 0; transition: opacity 260ms var(--ease);
}
.gal__zoom::before { content: "+"; font-size: 1.05rem; line-height: 1; }
.gal__link:hover .gal__zoom, .gal__link:focus-visible .gal__zoom { opacity: 1; }
.gal__item figcaption { padding: .7rem .1rem 0; font-size: .86rem; line-height: 1.45; }
.gal__kat {
  display: block; margin-top: .3rem; color: var(--accent-700);
  font: 500 var(--fs-label)/1 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.gal__empty { color: var(--steel-500); max-width: 46ch; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: clamp(.4rem, 2vw, 1.5rem);
  padding: clamp(.75rem, 3vw, 2.5rem);
  background: rgba(8, 10, 13, .95);
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.lightbox__fig img {
  max-width: min(1200px, 90vw); max-height: 78vh; width: auto; height: auto;
  margin: 0 auto; object-fit: contain;
}
.lightbox__fig figcaption {
  color: var(--steel-300); text-align: center;
  font: 500 var(--fs-label)/1.5 var(--font-mono);
  letter-spacing: .08em;
}
.lightbox__close, .lightbox__nav {
  appearance: none; cursor: pointer; flex: 0 0 auto;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .06);
  color: var(--white); font-size: 1.15rem; line-height: 1;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; }
body.is-locked { overflow: hidden; }

/* Besucherzähler im Footer */
.footer__counter {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--steel-400);
  font: 500 var(--fs-label)/1 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase;
}
.footer__counter b { color: var(--paper-2); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .gal__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
  .gal__item figcaption { font-size: .78rem; }
  .lightbox__nav { display: none; }
}

/* ---------- 26. Farbschema-Umschalter & Dark-Theme ----------------------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: var(--paper);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Dark-Theme: nur die hellen Flächen werden umgeschaltet. Die bewusst
   dunklen Blöcke (.header, .hero, .dark, .footer, .contact-block--dark)
   hängen weiter an --ink/--paper und bleiben unverändert. */
[data-theme="dark"] {
  color-scheme: dark;
  /* Dunkelgrau statt Schwarz: mittlere Fläche ~#22, bewusst dunkle Blöcke
     über --ink eine Stufe tiefer, damit Header/Hero/Footer abgesetzt bleiben. */
  --ink:        #16181b;
  --page:       #1d2025;
  --surface:    #24282e;
  --surface-hi: #2a2f35;
  --surface-2:  #212529;
  --text:       #f2f1ed;
  --text-muted: #c0c7cf;
  --text-label: #a3adb8;
  --line-light: rgba(255, 255, 255, .14);
  --accent-700: #ff9254;   /* dunkles Orange bleibt Marke, im Dark-Mode heller für AA */
  --steel-300:  #cfd6dd;
  --steel-400:  #b3bcc5;
  --steel-500:  #a3adb8;
  --steel-600:  #c0c7cf;
}
[data-theme="dark"] .cards { background: var(--line-light); }
[data-theme="dark"] .gal__filter { background: transparent; }
[data-theme="dark"] .lightbox { background: rgba(16, 18, 21, .95); }
[data-theme="dark"] img { filter: none; }
[data-theme="dark"] ::selection { background: var(--accent); color: #16181b; }
