/* ===========================================================
   KHAMISH Elektrotechnik — Hauptstil
   Aufbau: 1) Variablen  2) Reset  3) Typografie
           4) Container/Layout  5) Buttons  6) Utilities
   Weitere Sektionen (Header, Hero, Cards, Form, Footer ...)
   werden in den folgenden Schritten ergänzt.
   =========================================================== */

/* ---------- 1) Variablen --------------------------------- */
:root {
  /* Farben */
  --color-bg:           #0A0A0B;
  --color-bg-secondary: #101014;
  --color-card:         #13131A;
  --color-border:       #1F1F22;

  --color-text:           #F5F5F5;
  --color-text-secondary: #A0A0A8;

  --color-accent:         #fab600;   /* Primär Gelb */
  --color-accent-hover:   #e6a500;
  --color-accent-2:       #009edd;   /* Sekundär Blau */
  --color-accent-2-hover: #0089c2;

  /* Abstände */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Radien */
  --radius-sm: 8px;
  --radius-md: 12px;

  /* Übergänge */
  --transition: 0.2s ease;

  /* Schrift */
  --font-base: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 1rem;
  --line-height: 1.6;

  /* Layout */
  --container-max: 1200px;
  --header-height: 4.5rem;
}

/* ---------- 2) Reset ------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: clip;          /* verhindert horizontalen Scroll-Bar */
}
body { overflow-x: clip; }

body {
  font-family: var(--font-base);
  font-size:   var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height);
  color:       var(--color-text);
  background:  var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg, video, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

ul, ol { list-style: none; }

input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

/* Gelb-orangenen WebKit-Standard-Tap-Highlight global entfernen.
   Betrifft NUR den Antipp-Highlight — Hover-States und der Focus-Outline
   (Accessibility!) bleiben unangetastet. Eigenes Druck-Feedback: .btn:active. */
a, button, .btn, [role="button"], input, textarea, label,
.site-nav__toggle, .site-nav__menu a {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 3) Typografie -------------------------------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem,    5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--color-text-secondary);
  font-weight: 400;
}

strong { font-weight: 600; color: var(--color-text); }

/* ---------- 4) Container / Layout ----------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section-alt {
  background: var(--color-bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-header p {
  margin-top: var(--space-md);
}

/* ---------- 5) Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease,
              border-color 0.15s ease,
              color 0.15s ease,
              transform 0.1s ease;
  white-space: nowrap;
}

/* Subtiles Druck-Feedback (ersetzt den entfernten Tap-Highlight) */
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-accent);
  color: #0A0A0B;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-hover);
}
.btn-primary:active { background: #e0a600; }   /* leicht dunkleres Gelb */

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-secondary:active {                          /* dezentes Druck-Feedback (Outline-Button) */
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
}

.btn-accent-2 {
  background: var(--color-accent-2);
  color: #fff;
}
.btn-accent-2:hover,
.btn-accent-2:focus-visible {
  background: var(--color-accent-2-hover);
}
.btn-accent-2:active { background: #0077a8; }    /* leicht dunkleres Blau */

.btn-block { width: 100%; }

/* ---------- 6) Utilities -------------------------------- */
.text-accent   { color: var(--color-accent); }
.text-accent-2 { color: var(--color-accent-2); }
.text-muted    { color: var(--color-text-secondary); }

.text-center { text-align: center; }

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ===========================================================
   7) Header / Site-Navigation
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  /* Liquid-Glass-Effekt: der Blur sitzt auf ::before, NICHT direkt hier.
     backdrop-filter auf .site-header würde einen Containing-Block für die
     position:fixed-Mobile-Menü-Kinder erzeugen und den Hide-Trick brechen
     (genau das Problem aus Schritt 7). Über ::before bleibt der Header frei. */
  background: transparent;
  /* Subtiler weißer Schein statt fester Border — edlerer Glas-Rand. */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Weicher Schatten für Tiefe/Abgrenzung beim transparenteren Glas. */
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Glas-Schicht hinter dem Header-Inhalt.
   Erzeugt KEINEN Containing-Block für die fixed-Kinder des Headers:
   ::before hat selbst keine Nachkommen, und das Mobile-Menü ist ein
   Geschwister von ::before — kein Kind davon. Deshalb sicher. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 11, 0.45);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
}

/* Fallback: Browser ohne backdrop-filter bekommen den kräftigen
   Solid-Hintergrund von früher, damit der Header-Text lesbar bleibt. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before {
    background: rgba(10, 10, 11, 0.96);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.site-header__logo img {
  height: 2.25rem;
  width: auto;
}
.site-header__logo:hover { opacity: 0.85; }

.site-nav { display: flex; align-items: center; }

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.site-nav__menu a:not(.btn) {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}
.site-nav__menu a:not(.btn):hover,
.site-nav__menu a:not(.btn):focus-visible {
  color: var(--color-accent);
}

.site-nav__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  border-radius: var(--radius-sm);
}
.site-nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile-Navigation: ab 900px wird der Burger sichtbar */
@media (max-width: 900px) {
  .site-nav__toggle { display: flex; }

  .site-nav__menu {
    position: fixed;
    /* -1px: Drawer überlappt die Header-Unterkante minimal, damit KEIN
       (sub-)pixelfeiner Spalt entsteht, durch den der Seiteninhalt schimmert
       (die halbtransparente border-bottom des Headers war sichtbar). */
    top: calc(var(--header-height) - 1px);
    right: 0;
    z-index: 200;              /* unter dem Toggle/X (300), über allem anderen */
    width: 100vw;              /* volle Breite */
    height: calc(100vh - var(--header-height) + 1px);
    height: calc(100dvh - var(--header-height) + 1px); /* dvh: mobile Browser-Leisten */
    flex-direction: column;
    align-items: center;       /* Menü-Punkte horizontal zentriert */
    justify-content: center;   /* … und vertikal zentriert */
    gap: var(--space-xl);      /* großzügiger Abstand zwischen den Punkten */
    text-align: center;
    /* Header-Balken bleibt scharf sichtbar darüber → kein padding-top mehr nötig */
    padding: var(--space-2xl) var(--space-lg);
    /* Glas-Effekt wie im Header. backdrop-filter DIREKT auf dem Drawer ist hier
       sicher: der Drawer hat KEINE position:fixed-Nachkommen, daher entsteht
       kein schädlicher Containing-Block (anders als beim Header selbst). */
    background: rgba(10, 10, 11, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    /* Slide-in von rechts. Doppelt absichern: transform + visibility. */
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease-out, visibility 0s linear 0.3s;
    overflow-y: auto;
  }
  /* Fallback ohne backdrop-filter: kräftiger Solid-Hintergrund (Lesbarkeit). */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-nav__menu { background: rgba(10, 10, 11, 0.97); }
  }
  .site-nav__menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s ease-out, visibility 0s linear 0s;
  }

  /* Menü-Punkte: groß, mittig, luftig — edel & übersichtlich */
  .site-nav__menu li {
    width: 100%;
  }
  .site-nav__menu a:not(.btn) {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-xs) var(--space-sm);
  }
  .site-nav__cta { margin-top: var(--space-sm); }

  /* FIX: Bei offenem Menü liegt der Scroll-Lock (overflow:hidden) am <body>,
     der das position:sticky des Headers bricht (Header rutscht auf den
     Dokument-Anfang und verschwindet). Daher wird der Header bei offenem Menü
     auf position:fixed gepinnt → garantiert oben sichtbar, unabhängig vom
     Scroll-Lock. WICHTIG: position:fixed erzeugt KEINEN Containing-Block für
     die fixed-Kinder (Drawer) — das täten nur transform/filter. Der
     Glas-::before-Trick bleibt damit unberührt. */
  body.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  /* Robuster Mobile-Scroll-Lock: overflow:hidden allein ist auf Touch-Geräten
     unzuverlässig. Daher wird der <body> bei offenem Menü fixiert. Die aktuelle
     Scroll-Position hält das per JS gesetzte inline `top: -<scrollY>px`; beim
     Schließen springt window.scrollTo(0, scrollY) verlustfrei zurück. */
  body.nav-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }

  /* Der Burger ist das EINZIGE Toggle. z 300 > Drawer (200): das schlanke X
     bleibt bei offenem Vollbild-Menü oben rechts sichtbar & klickbar. */
  .site-nav__toggle {
    position: relative;
    z-index: 300;
  }

  /* Burger → X (JS schaltet aria-expanded um) */
  .site-nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .site-nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Kein Overlay nötig (Vollbild-Menü) und kein Header-Ausblenden —
     der Header bleibt voll funktional, der Drawer legt sich glasig darüber. */
}

/* ===========================================================
   8) Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dunkler Verlauf für Lesbarkeit */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 11, 0.95) 0%,
    rgba(10, 10, 11, 0.78) 55%,
    rgba(10, 10, 11, 0.55) 100%
  );
}

.hero__content { max-width: 760px; }

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.hero__trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .hero__trust { grid-template-columns: repeat(3, 1fr); }
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(19, 19, 26, 0.65);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__trust-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ===========================================================
   9) Über uns
   =========================================================== */
.ueber-uns__content {
  max-width: 760px;
  margin-inline: auto;
}
.ueber-uns__content > p {
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
}
.ueber-uns__content > p:last-child { margin-bottom: 0; }

.ueber-uns__closing {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  color: var(--color-text) !important;
  font-weight: 500;
}

/* ===========================================================
   10) Leistungs-Karten (Übersicht)
   =========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: border-color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
}
/* Tastatur-Focus: überall sichtbar (Accessibility-Pflicht).
   :focus ohne -visible (Maus/Touch) bekommt KEINE UA-Outline. */
.service-card:focus { outline: none; }
.service-card:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(250, 182, 0, 0.22);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hover-Glow NUR auf echten Hover-Geräten (Desktop-Maus).
   Verhindert "sticky hover": auf Touch bliebe der Glow sonst nach
   dem Antippen hängen, bis woanders getippt wird. */
@media (hover: hover) {
  .service-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(250, 182, 0, 0.22);
  }
}

.service-card__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.service-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}
.service-card__desc {
  flex-grow: 1;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}
.service-card__arrow {
  align-self: flex-end;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform var(--transition);
}
@media (hover: hover) {
  .service-card:hover .service-card__arrow {
    transform: translateX(4px);
  }
}

/* ===========================================================
   11) Service-Detail-Sektionen
   =========================================================== */
.service-detail {
  max-width: 820px;
  margin-inline: auto;
}
.service-detail h2 {
  margin-bottom: var(--space-xl);
  text-align: center;
}
.service-detail p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}
.service-detail p strong {
  color: var(--color-text);
  font-weight: 600;
}

.service-detail__features {
  margin-block: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.service-detail__features-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}
.service-detail__features-list {
  display: grid;
  gap: var(--space-sm);
}
.service-detail__features-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.service-detail__features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.0625rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-accent);
  color: #0A0A0B;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25rem;
}

.service-detail__closing {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(0, 158, 221, 0.08);
  border-left: 3px solid var(--color-accent-2);
  border-radius: var(--radius-sm);
  color: var(--color-text) !important;
  font-weight: 500;
}

/* ===========================================================
   12) Referenzen-Galerie
   =========================================================== */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 640px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.gallery-item__trigger {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition),
              box-shadow var(--transition);
}
/* Tastatur-Focus: überall sichtbar (Accessibility-Pflicht). */
.gallery-item__trigger:focus { outline: none; }
.gallery-item__trigger:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px -8px rgba(250, 182, 0, 0.22);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.gallery-item__trigger img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item__trigger:focus-visible img {
  transform: scale(1.05);
}

/* Hover-Glow + Bild-Zoom NUR auf echten Hover-Geräten (kein sticky hover). */
@media (hover: hover) {
  .gallery-item__trigger:hover {
    border-color: var(--color-accent);
    box-shadow: 0 12px 32px -8px rgba(250, 182, 0, 0.22);
  }
  .gallery-item__trigger:hover img {
    transform: scale(1.05);
  }
}

.gallery-item__caption {
  margin-top: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.gallery-item__caption strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ===========================================================
   13) Lightbox (Overlay für vergrößerte Bilder)
   JS-Logik kommt in Schritt 7
   =========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lightbox-fade-in 0.2s ease;
}
.lightbox[hidden] { display: none; }

@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: min(1100px, 100%);
  max-height: 100%;
  margin: 0;
}

.lightbox__image {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  max-height: calc(100vh - 12rem);
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--color-card);
}

.lightbox__caption {
  text-align: center;
  color: var(--color-text);
}
.lightbox__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.lightbox__desc {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(19, 19, 26, 0.85);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition),
              border-color var(--transition),
              color var(--transition);
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0A0A0B;
}

/* ===========================================================
   14) Kontakt-Sektion (Direkt-Buttons + Formular)
   =========================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
  }
}

/* --- Direkt-Kontakt (linke Spalte) --- */
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-direct__button {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-align: left;
  transition: background-color var(--transition),
              border-color var(--transition),
              color var(--transition),
              transform var(--transition);
  word-break: break-word;
}
.contact-direct__button:active { transform: translateY(1px); }

.contact-direct__button--primary {
  background: var(--color-accent);
  color: #0A0A0B;
  border-color: var(--color-accent);
}
.contact-direct__button--primary:hover,
.contact-direct__button--primary:focus-visible {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.contact-direct__button--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.contact-direct__button--outline:hover,
.contact-direct__button--outline:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.contact-direct__button-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.contact-direct__address {
  margin-top: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.contact-direct__address-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.contact-direct__address-text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-style: normal;
}
.contact-direct__address-text strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* --- Kontaktformular (rechte Spalte) --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}
.contact-form__label .required { color: var(--color-accent); }

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 0.75rem var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(250, 182, 0, 0.18);
}
.contact-form__input:invalid:not(:placeholder-shown),
.contact-form__textarea:invalid:not(:placeholder-shown) {
  border-color: #e25b5b;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.55;
}
.contact-form__textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

/* Honeypot — komplett unsichtbar, aber Bots füllen es aus */
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* DSGVO-Checkbox */
.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.contact-form__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.contact-form__consent label { cursor: pointer; }
.contact-form__consent a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-form__consent a:hover { color: var(--color-accent-hover); }

.contact-form__hint {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: 0;
}

.contact-form__submit {
  margin-top: var(--space-sm);
  align-self: flex-start;
}

/* ===========================================================
   15) Footer
   =========================================================== */
.site-footer {
  background: #08080A;
  border-top: 1px solid var(--color-border);
  padding-block: clamp(2.5rem, 6vw, 4rem) var(--space-xl);
  margin-top: clamp(2rem, 5vw, 4rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1.5fr 1.5fr 1fr; } }

.site-footer__col h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.site-footer__brand img {
  height: 2.5rem;
  width: auto;
  margin-bottom: var(--space-md);
}
.site-footer__brand-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.site-footer__brand-tag {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.site-footer__col address,
.site-footer__col p,
.site-footer__col li,
.site-footer__col a {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-style: normal;
}
.site-footer__col a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer__col strong {
  color: var(--color-text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.site-footer__col ul li { margin-bottom: 0.25rem; }

.site-footer__bottom {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.site-footer__copyright {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.site-footer__a11y {
  font-size: 0.75rem;
  color: #6b6b73;
  line-height: 1.55;
  max-width: 540px;
  margin: 0;
}

/* ===========================================================
   16) Toast-System (JS-Meldungen, ersetzt alert())
   =========================================================== */
.toast-container {
  position: fixed;
  top: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: min(380px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.4;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5);
  animation: toast-slide-in 0.25s ease;
}

@keyframes toast-slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.toast--leaving {
  animation: toast-slide-out 0.25s ease forwards;
}
@keyframes toast-slide-out {
  to { transform: translateX(120%); opacity: 0; }
}

.toast--success { border-left-color: #4ade80; }
.toast--error   { border-left-color: #ef4444; }
.toast--info    { border-left-color: var(--color-accent-2); }

.toast__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  line-height: 1;
}
.toast--success .toast__icon { background: rgba(74, 222, 128, 0.18); color: #4ade80; }
.toast--error   .toast__icon { background: rgba(239, 68, 68, 0.18);  color: #ef4444; }
.toast--info    .toast__icon { background: rgba(0, 158, 221, 0.18);  color: var(--color-accent-2); }

.toast__message { flex-grow: 1; }

.toast__close {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition);
}
.toast__close:hover,
.toast__close:focus-visible {
  color: var(--color-text);
  background: var(--color-bg);
}

/* ===========================================================
   17) Globale Helfer (JS-getrieben)
   =========================================================== */
.body-scroll-locked {
  overflow: hidden;
}

.btn[disabled],
.btn[aria-busy="true"] {
  cursor: wait;
  opacity: 0.7;
}

/* ===========================================================
   18) Legal Pages (Impressum, Datenschutz)
   =========================================================== */
.legal-page {
  max-width: 720px;
  margin-inline: auto;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: color var(--transition), transform var(--transition);
}
.legal-page__back:hover,
.legal-page__back:focus-visible {
  color: var(--color-accent-hover);
}
.legal-page__back:hover .legal-page__back-arrow {
  transform: translateX(-3px);
}
.legal-page__back-arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.legal-page h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin-bottom: var(--space-2xl);
}

.legal-page h2 {
  font-size: 1.375rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}
.legal-page > h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: var(--space-lg);
}

.legal-page h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.legal-page h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.legal-page p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.legal-page p strong { color: var(--color-text); font-weight: 600; }

.legal-page a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.legal-page a:hover { color: var(--color-accent-hover); }

.legal-page ul,
.legal-page ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.5rem;
}
.legal-page ul li,
.legal-page ol li {
  margin-bottom: var(--space-xs);
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  list-style: disc outside;
}
.legal-page ol li { list-style: decimal outside; }

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}
.legal-page table th,
.legal-page table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  color: var(--color-text-secondary);
}
.legal-page table th {
  color: var(--color-text);
  font-weight: 600;
  width: 35%;
}
