/* ============================================
   ElektroMeister – Stylesheet
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f7f7f9;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-text: #14171c;
  --color-text-soft: #4a5160;
  --color-text-muted: #7a8294;
  --color-accent: #d92121;
  --color-accent-hover: #b81818;
  --color-accent-soft: rgba(217, 33, 33, 0.10);
  --color-blue: #4f8cff;
  --color-success: #16a34a;
  --color-danger: #d92121;

  --shadow-sm: 0 2px 6px rgba(20, 23, 28, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 23, 28, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 23, 28, 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1200px;
  --gutter: 1.5rem;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(at 12% 8%, rgba(217, 33, 33, 0.05) 0, transparent 45%),
    radial-gradient(at 88% 92%, rgba(217, 33, 33, 0.04) 0, transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

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

p { color: var(--color-text-soft); }

::selection {
  background: var(--color-accent);
  color: #ffffff;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 6rem 0;
}

.section-tight {
  padding: 4rem 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  max-width: 56ch;
  margin: 1rem auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

/* Kompakter Kontakt-Button in der Hauptnavigation */
.nav-list .btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
}

/* Schrift im roten Kontakt-Button bleibt in allen Zuständen weiß
   (überschreibt .nav-list a.active und :hover) */
.nav-list .btn-primary,
.nav-list .btn-primary:hover,
.nav-list .btn-primary.active,
.nav-list a.btn-primary.active {
  color: #fff;
}

.nav-list .btn-primary.active::after,
.nav-list a.btn-primary.active::after {
  display: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--color-border);
}

/* Standortleiste (oberste Bar) */
.header-locations {
  background: #0f1216;
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-locations .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.header-locations .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.header-locations .locs {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.header-locations a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.1rem;
  transition: color 0.2s ease;
  position: relative;
}

.header-locations a:hover { color: var(--color-accent); }

.header-locations a.active { color: var(--color-accent); }

.header-locations a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.header-locations svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .header-locations { display: none; }
}

.header-top {
  font-size: 0.85rem;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.header-top a:hover {
  color: var(--color-accent);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}

/* Tagline rechts vom Logo – nur auf Desktop sichtbar */
.logo-tagline {
  display: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.25;
  color: var(--color-text-soft);
  letter-spacing: 0;
  border-left: 2px solid var(--color-accent);
  padding-left: 0.85rem;
  max-width: 16ch;
}

@media (min-width: 1024px) {
  .logo-tagline { display: inline-block; }
}

.logo-mark {
  min-width: 44px;
  height: 36px;
  padding: 0 0.55rem;
  border-radius: 10px;
  background: var(--color-accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.logo-img {
  height: 68px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.logo-img-sm {
  height: 52px;
}

.logo span.tag {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-list a {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  position: relative;
  padding: 0.3rem 0;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-accent);
}

.nav-list > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Dropdown */
.has-dropdown { position: relative; }

.has-dropdown > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
}

/* Chevron-Pfeil über ::before – damit ::after frei für die Active-Unterstreichung bleibt.
   `order: 2` schiebt das ::before in der Flex-Reihenfolge HINTER den Text. */
.has-dropdown > .dropdown-toggle::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  order: 2;
  width: 9px;
  height: 9px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
  opacity: 0.75;
}

.has-dropdown:hover > .dropdown-toggle::before,
.has-dropdown:focus-within > .dropdown-toggle::before {
  transform: translateY(2px) rotate(-135deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.15rem 0.75rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  min-width: 620px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 8px;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown li { white-space: nowrap; }

.dropdown a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown a:hover,
.dropdown a.active {
  background: var(--color-bg-soft);
  color: var(--color-accent);
}

.dropdown a.active { font-weight: 600; }

@media (max-width: 720px) {
  /* ---------- Mobile-Akkordeon: Leistungen-Untermenü ---------- */
  /* Container-Reset des Desktop-Dropdowns. !important auf transform und position,
     weil die Desktop-Regel und ihre Hover-Variante sonst trotz Mobile-Media-Query
     leaken (sticky :hover auf iOS Safari) und das Dropdown off-screen schieben. */
  .dropdown {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0 0 0 0.4rem;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    /* Akkordeon: max-height-Animation statt display-Toggle */
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                padding 0.3s ease,
                margin 0.3s ease;
    border-left: 2px solid var(--color-border);
    padding-left: 0.85rem;
    pointer-events: none;
    width: auto;
    left: auto;
    right: auto;
    top: auto;
  }

  /* WICHTIG: Hover/Focus-Verhalten auf Mobile EXPLIZIT zurücksetzen.
     Das Desktop-Dropdown nutzt `transform: translateX(-50%) translateY(0)` im Hover-
     Zustand – auf iPhone bleibt :hover nach einem Tap kleben und schiebt damit das
     ganze Dropdown 50 % nach links aus dem Viewport. Wir resetten das hier. */
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    transform: none !important;
    opacity: 1;
    visibility: visible;
    /* max-height bleibt 0 solange .is-open NICHT gesetzt ist */
  }

  .has-dropdown.is-open > .dropdown,
  .has-dropdown.is-open:hover > .dropdown,
  .has-dropdown.is-open:focus-within > .dropdown {
    max-height: 1500px; /* genug Platz für alle 17 Sub-Items + Reserve */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top: 0.4rem;
    pointer-events: auto;
    transform: none !important;
    opacity: 1;
    visibility: visible;
  }

  .dropdown li {
    white-space: normal;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dropdown a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.7rem 0.85rem;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.35;
    border-radius: 8px;
    background: transparent;
    border: none;
    min-height: 44px; /* WCAG-Touch-Target */
    box-sizing: border-box;
  }

  .dropdown a:hover,
  .dropdown a.active {
    background: rgba(217, 33, 33, 0.08);
    color: var(--color-accent);
    font-weight: 600;
    border: none;
  }

  /* ---------- Chevron-Pfeil neben „Leistungen" ---------- */
  .has-dropdown > .dropdown-toggle {
    justify-content: space-between;
    width: 100%;
  }
  .has-dropdown > .dropdown-toggle::before {
    margin-left: auto;
  }

  /* Geschlossener Zustand: Pfeil zeigt nach UNTEN */
  .has-dropdown > .dropdown-toggle::before {
    transform: translateY(-2px) rotate(45deg);
  }

  /* Hover/Focus-Drehung auf Mobile NICHT triggern */
  .has-dropdown:hover > .dropdown-toggle::before,
  .has-dropdown:focus-within > .dropdown-toggle::before {
    transform: translateY(-2px) rotate(45deg);
  }

  /* Geöffneter Zustand: Pfeil zeigt nach OBEN */
  .has-dropdown.is-open > .dropdown-toggle::before,
  .has-dropdown.is-open:hover > .dropdown-toggle::before,
  .has-dropdown.is-open:focus-within > .dropdown-toggle::before {
    transform: translateY(2px) rotate(-135deg);
  }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--color-text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 7rem;
  overflow: hidden;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Vollflächiger Bild-Hero mit Hintergrundbild + Verlauf */
.hero--bg {
  background-color: #0e1116;
  background-image:
    linear-gradient(120deg, rgba(8, 12, 20, 0.78) 0%, rgba(8, 12, 20, 0.55) 55%, rgba(8, 12, 20, 0.30) 100%),
    url("../img/hero-werk.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: none;
  padding: 6rem 0 7rem;
  min-height: clamp(420px, 60vh, 640px);
  display: flex;
  align-items: center;
}

.hero--bg .hero-content {
  position: relative;
  max-width: 760px;
  color: #fff;
}

.hero--bg .hero-badge {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero--bg h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero--bg h1 em {
  background: linear-gradient(120deg, #ff5b5b, #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero--bg p.lead {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero--bg .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.hero--bg .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
}

/* Motto/Slogan über der Headline */
.hero-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.6rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

@media (max-width: 720px) {
  .hero-motto { font-size: 1rem; margin-bottom: 0.5rem; }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--color-accent), var(--color-accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  margin: 1.5rem 0 2.5rem;
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--color-bg-soft), var(--color-surface));
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
}

.hero-art-bolt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  color: var(--color-accent);
  filter: drop-shadow(0 0 30px rgba(217, 33, 33, 0.40));
}

.hero-art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Falls Fallback-SVG geladen wurde, zurück zu contain mit Padding */
.hero-art-photo.is-svg {
  object-fit: contain;
  padding: 1.5rem;
  filter: drop-shadow(0 12px 24px rgba(20, 23, 28, 0.10));
}

.hero-art-tag {
  position: absolute;
  padding: 0.6rem 0.9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

.hero-art-tag.t1 { top: 12%; left: 8%; }
.hero-art-tag.t2 { bottom: 18%; right: 6%; }
.hero-art-tag.t3 { top: 60%; left: -4%; }

.hero-art-tag .tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- USP strip ---------- */
.usp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.usp-card {
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  transition: border-color 0.2s, transform 0.2s;
}

.usp-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.usp-card h4 {
  margin-bottom: 0.4rem;
}

.usp-card .usp-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(217, 33, 33, 0.04), transparent 60%),
    var(--color-bg-soft);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ---------- Services grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 220px;
}

.service-card::after {
  content: '→';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: transform 0.25s, color 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  background: var(--color-surface);
}

.service-card:hover::after {
  color: var(--color-accent);
  transform: translate(4px, -4px);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding-right: 2rem;
}

.service-card .service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.step h3 {
  margin-bottom: 0.5rem;
}

/* ---------- Brands ---------- */
.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg-soft);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  transition: color 0.2s;
  text-transform: uppercase;
}

.brand:hover { color: var(--color-text); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: var(--color-accent);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.2s;
  line-height: 1;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 1.4rem 1.3rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 20%, rgba(217, 33, 33, 0.14), transparent 50%),
    var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner .hero-cta {
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Subpage hero ---------- */
.page-hero {
  padding: 5rem 0 3rem;
  position: relative;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a:hover { color: var(--color-accent); }

.page-hero h1 {
  max-width: 18ch;
}

.page-hero p {
  max-width: 60ch;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  /* HINWEIS: minmax(0,…) statt 1.3fr/1fr verhindert Overflow auf Mobile bei langen deutschen Komposita */
  gap: 4rem;
  align-items: start;
}

.prose { min-width: 0; }
.prose h2 { margin: 2rem 0 1rem; word-break: normal; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.prose h3 { margin: 1.6rem 0 0.6rem; font-size: 1.3rem; word-break: normal; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.prose p  { margin-bottom: 1rem; word-break: normal; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.2rem; color: var(--color-text-soft); }
.prose li { margin-bottom: 0.5rem; word-break: normal; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.prose strong { color: var(--color-text); }

/* Lange Komposita nur am Wortende brechen, nicht mitten im Wort.
   `break-word` bricht ein Wort nur, wenn es sonst überlaufen würde – `hyphens: auto`
   sorgt für sprachsensitive Trennstriche. Niemals `anywhere` oder `break-all`. */
h1, h2, h3, h4 { word-break: normal; overflow-wrap: break-word; }
.breadcrumb     { word-break: normal; overflow-wrap: break-word; }

/* Mobile-Sichtbarkeitssteuerung: weniger Text auf kleinen Geräten */
.mobile-hide { /* Standard: sichtbar – wird im Mobile-Media-Query versteckt */ }
.mobile-only { display: none; }

@media (max-width: 720px) {
  .mobile-hide { display: none !important; }
  .mobile-only { display: block; }

  /* Lange Listen kürzen: ab 7. Punkt verstecken in Sidebar und Prose */
  .sidebar-card ul li:nth-of-type(n+7) { display: none; }
  .prose ul li:nth-of-type(n+8)        { display: none; }

  /* Process-Steps: max. 4 sichtbar (oft sind es 5) */
  .process-steps > li:nth-of-type(n+5) { display: none; }
}

@media (max-width: 420px) {
  /* Auf sehr kleinen Geräten noch kompakter */
  .sidebar-card ul li:nth-of-type(n+6) { display: none; }
  .prose ul li:nth-of-type(n+6)        { display: none; }
  .benefits-grid > .benefit:nth-of-type(n+5) { display: none; }
  .service-faq details:nth-of-type(n+5)      { display: none; }
}

.sidebar-card {
  position: sticky;
  top: 120px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.sidebar-card h3 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.sidebar-card ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.sidebar-card li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-text-soft);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-card li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
}

.sidebar-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1.5rem; }

.contact-info dl {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-info dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.contact-info dd {
  font-size: 1.05rem;
  color: var(--color-text);
}

.form {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 0.4rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font: inherit;
  transition: border-color 0.2s;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form .field {
  margin-bottom: 1rem;
}

.form .submit {
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 6rem;
  padding: 4rem 0 2rem;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-grid a {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.footer-grid a:hover { color: var(--color-accent); }

.footer-grid p { font-size: 0.95rem; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a:hover { color: var(--color-accent); }
.footer-bottom .links {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Page hero with image ---------- */
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.page-hero-grid .page-hero-text { min-width: 0; }

.page-hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-bg-soft), var(--color-surface));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,23,28,0.04));
  pointer-events: none;
}

/* Inline content image (used inside .prose) */
.content-image {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  box-shadow: var(--shadow-sm);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.content-image figcaption {
  padding: 0.85rem 1.2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

/* Showcase strip on home */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
}

.showcase figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  aspect-ratio: 4 / 3;
}

.showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.showcase figure:hover img { transform: scale(1.04); }

.showcase figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(20,23,28,0.85), transparent);
}

/* Responsive image layout */
@media (max-width: 960px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .page-hero-grid .page-hero-text { order: 1; }
  .page-hero-grid .page-hero-image { order: 2; max-width: 640px; }
  .showcase { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .showcase { grid-template-columns: 1fr; }
}

/* ---------- Service-Page Ablauf (numeriert) ---------- */
.service-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
  counter-reset: stepc;
}

.service-process .step-card {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  counter-increment: stepc;
}

.service-process .step-card::before {
  content: counter(stepc, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.service-process .step-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.service-process .step-card p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.55;
}

/* ---------- Vorteile-Grid für Leistungsseiten ---------- */
.service-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.service-benefits .benefit {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.service-benefits .benefit svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  margin-top: 2px;
}

.service-benefits .benefit strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--color-text);
}

.service-benefits .benefit span {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}

/* ---------- Service-FAQ (kleinere Variante der Hauptseiten-FAQ) ---------- */
.service-faq {
  margin-top: 2rem;
}

.service-faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  margin-bottom: 0.6rem;
  transition: border-color 0.2s;
}

.service-faq details[open] { border-color: var(--color-accent); }

.service-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.2rem;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.98rem;
}

.service-faq summary::-webkit-details-marker { display: none; }

.service-faq summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-accent);
  transition: transform 0.2s;
  line-height: 1;
}

.service-faq details[open] summary::after { transform: rotate(45deg); }

.service-faq .answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--color-text-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}

.service-faq .answer p { margin-bottom: 0.6rem; }
.service-faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Service-FAQ direkt mit details/summary/p ---------- */
.service-faq details {
  background: var(--color-surface);
}

.service-faq details > summary {
  position: relative;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  line-height: 1.35;
}

.service-faq details > summary::-webkit-details-marker { display: none; }

.service-faq details > summary::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.service-faq details[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.service-faq details > p {
  padding: 0 1.3rem 1.2rem;
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.65;
}

.service-faq details + details {
  margin-top: 0.6rem;
}

/* ---------- Service-Process: nummerierte Schritt-Karten (ol.process-steps) ---------- */
.process-steps {
  counter-reset: stepc;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.process-steps > li {
  counter-increment: stepc;
  position: relative;
  padding: 2rem 1.4rem 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.process-steps > li::before {
  content: counter(stepc, decimal-leading-zero);
  position: absolute;
  top: 0.9rem;
  left: 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.process-steps > li h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.45rem;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.process-steps > li p {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ---------- Service-Benefits: Karten mit Icon links, Text rechts ---------- */
.benefits-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
  align-items: stretch;
}

/* Karte als 2-Spalten-Grid: Icon-Spalte (auto) + Text-Spalte (1fr).
   2 Reihen: Headline oben, Beschreibung unten. Icon spannt beide Reihen. */
.benefits-grid .benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.4rem;
  align-items: start;
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}

.benefits-grid .benefit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.benefits-grid .benefit-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(217, 33, 33, 0.10);
  color: var(--color-accent);
  margin: 0;
}

.benefits-grid .benefit-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.benefits-grid .benefit h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.02rem;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  /* Saubere Wortumbrüche: niemals mitten im Wort, nur an Silbengrenzen */
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  min-width: 0;
}

.benefits-grid .benefit p {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.55;
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  min-width: 0;
}

/* Eyebrow + h2 in Service-Sektionen mittig sammeln */
.service-process > .container > .eyebrow,
.service-benefits > .container > .eyebrow,
.service-faq > .container > .eyebrow {
  display: inline-block;
}

/* ---------- Leistungen-Übersicht (Tile-Grid auf jeder Leistungsseite) ---------- */
.services-overview-section {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.services-overview {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 1.6rem;
}

.service-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 14px);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
  line-height: 1.3;
}

.service-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.service-tile.is-current {
  background: rgba(217, 33, 33, 0.06);
  border-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

.service-tile .tile-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(217, 33, 33, 0.10);
  color: var(--color-accent);
}

.service-tile .tile-icon svg { width: 20px; height: 20px; }

.service-tile.is-current .tile-icon {
  background: var(--color-accent);
  color: #fff;
}

.service-tile .tile-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 500;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ---------- Cookie-Banner & Modal ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.6rem;
  z-index: 1000;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: cookieSlideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes cookieSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cookie-banner h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.cookie-banner p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-soft);
  margin: 0;
}

.cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-banner-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
}

.cookie-modal.is-visible { display: block; }

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 28, 0.45);
  backdrop-filter: blur(2px);
}

.cookie-modal-inner {
  position: relative;
  max-width: 540px;
  margin: 5vh auto 2rem;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.cookie-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.cookie-modal-close:hover { background: var(--color-bg-soft); }

.cookie-modal h3 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.cookie-modal > p {
  margin: 0 0 1.4rem;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.cookie-category {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
}

.cookie-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.cookie-category-head strong {
  font-size: 0.95rem;
  color: var(--color-text);
}

.cookie-category p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.2s;
  cursor: pointer;
}

.cookie-toggle-track::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-track {
  background: var(--color-accent);
}

.cookie-toggle input:checked + .cookie-toggle-track::before {
  transform: translateX(16px);
}

.cookie-toggle input:disabled + .cookie-toggle-track {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 1.1rem 1.2rem;
  }
  .cookie-banner-inner { grid-template-columns: 1fr; gap: 1rem; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; min-width: 0; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge,
.hero h1,
.hero p.lead,
.hero-cta { animation: fadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }

.hero h1       { animation-delay: 0.1s; }
.hero p.lead   { animation-delay: 0.2s; }
.hero-cta      { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1;   }
  50%      { transform: translate(-50%, -50%) scale(1.05); opacity: 0.85; }
}

.hero-art-bolt { animation: pulse 4s ease-in-out infinite; }

/* ---------- Responsive ---------- */

/* Tablet (≤ 960 px): Layouts auflockern, Hero ein-, Karten zweispaltig,
   Section-Padding reduzieren, sticky Sidebar lösen. */
@media (max-width: 960px) {
  .section { padding: 4rem 0; }
  .section-tight { padding: 3rem 0; }
  .section-header { margin-bottom: 3rem; }

  /* Hero einspaltig, Bild zentriert und etwas kompakter */
  .hero { padding: 3.5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art { max-width: 460px; margin: 0 auto; aspect-ratio: 4 / 3.6; }
  .hero p.lead { font-size: 1.05rem; margin: 1.2rem 0 2rem; }

  /* Bild-Hero auf Tablet etwas kompakter */
  .hero--bg {
    min-height: clamp(360px, 55vh, 520px);
    padding: 4rem 0 4.5rem;
    background-position: center 30%;
  }
  .hero--bg .hero-content { max-width: 100%; }

  /* Sub-Page-Hero kompakter */
  .page-hero { padding: 3rem 0 2rem; }

  /* Grids 2-spaltig */
  .usp,
  .services,
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; padding: 2.5rem; }

  /* Footer 2-spaltig */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Two-col aufheben */
  .two-col,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sidebar-card { position: static; padding: 1.6rem; }

  /* Karten etwas kompakter */
  .service-card { padding: 1.6rem; min-height: 0; }
  .step { padding: 1.6rem; }

  /* Brands sauberer */
  .brands { padding: 2rem; gap: 1.8rem 2.4rem; }
  .brand { font-size: 1.15rem; }

  /* CTA-Banner */
  .cta-banner { padding: 3.5rem 1.5rem; }

  /* Form */
  .form { padding: 1.8rem; }
}

/* Mobile (≤ 720 px): Off-Canvas-Nav, alles einspaltig */
@media (max-width: 720px) {
  :root { --gutter: 1.15rem; }

  .header-top { display: none; }
  .header-locations { display: none; }

  .header-main { padding: 0.85rem var(--gutter); }
  .logo-img { height: 48px; }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    padding: 1rem var(--gutter) 1.25rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    align-items: stretch;
    gap: 0.4rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-list.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-list > li {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-list > li > a:not(.btn) {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.4rem;
    min-height: 44px;
    font-size: 1rem;
    color: var(--color-text);
    border-radius: 8px;
  }
  .nav-list > li > a:not(.btn):hover,
  .nav-list > li > a.active {
    background: rgba(217, 33, 33, 0.06);
    color: var(--color-accent);
  }
  .nav-list > li > a.active::after { display: none; } /* Underline-Marker auf Mobile aus */
  .nav-list > li > a:not(.btn) { padding: 0.55rem 0; }
  .nav-list .btn { padding: 0.7rem 1rem; font-size: 0.9rem; text-align: center; }
  .nav-toggle { display: flex; }

  /* Hero deutlich kompakter */
  .hero { padding: 2rem 0 3rem; }
  .hero-grid { gap: 2rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero p.lead { font-size: 1rem; margin: 1rem 0 1.5rem; }
  .hero-cta { gap: 0.7rem; }
  .hero-cta .btn { flex: 1; min-width: 0; justify-content: center; }
  .hero-art { aspect-ratio: 1 / 1; max-width: 360px; }
  .hero-art-tag { display: none; }

  /* Bild-Hero auf Mobile */
  .hero--bg {
    min-height: clamp(320px, 60vh, 460px);
    padding: 3rem 0 3.5rem;
    background-image:
      linear-gradient(180deg, rgba(8, 12, 20, 0.55) 0%, rgba(8, 12, 20, 0.78) 100%),
      url("../img/hero-werk.jpeg");
    background-position: center;
  }

  /* Page-Hero */
  .page-hero { padding: 2rem 0 1.5rem; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); max-width: 100%; }
  .page-hero p { font-size: 1rem; }

  /* Section-Header */
  .section { padding: 3rem 0; }
  .section-tight { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .eyebrow { margin-bottom: 0.6rem; }

  /* USP / Services / Steps / Stats / Form: einspaltig */
  .usp,
  .services,
  .steps,
  .stats,
  .form .row { grid-template-columns: 1fr; }

  .usp { gap: 1rem; margin-top: 2.5rem; }
  .usp-card { padding: 1.3rem; }

  .services { gap: 1rem; }
  .service-card { padding: 1.4rem; }

  .stats { padding: 1.6rem; gap: 1.4rem; border-radius: var(--radius-lg); }
  .stat-num { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  .steps { gap: 1rem; }

  /* Brands */
  .brands { padding: 1.6rem; gap: 1.2rem 1.8rem; border-radius: var(--radius-lg); }
  .brand { font-size: 1rem; }

  /* CTA-Banner */
  .cta-banner { padding: 2.5rem 1.2rem; border-radius: var(--radius-lg); }
  .cta-banner h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .cta-banner p { font-size: 0.95rem; }
  .cta-banner .hero-cta .btn { flex: 1; }

  /* Two-col / Contact */
  .two-col,
  .contact-grid { gap: 2rem; }

  /* Showcase */
  .showcase { gap: 0.8rem; margin-top: 2.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .site-footer { padding: 3rem 0 2rem; margin-top: 4rem; }

  /* Form */
  .form { padding: 1.4rem; }
  .form input,
  .form textarea,
  .form select { padding: 0.85rem 0.95rem; font-size: 16px; /* iOS-Zoom verhindern */ min-height: 46px; }
  .form label { font-size: 0.92rem; }

  /* Sidebar-Card */
  .sidebar-card { padding: 1.4rem; }
  .sidebar-card .btn { width: 100%; justify-content: center; }

  /* Buttons in Hero/Page-Hero CTAs auf voller Breite */
  .page-hero-text .hero-cta .btn { flex: 1; min-width: 0; }
  .page-hero-text .hero-cta { gap: 0.7rem; }

  /* Service-Process: einspaltig */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.5rem;
  }
  .process-steps > li { padding: 1.7rem 1.2rem 1.3rem; }
  .process-steps > li::before { top: 0.8rem; left: 1.2rem; }
  .process-steps > li h3 { font-size: 1rem; margin-top: 1.1rem; }

  /* Service-Benefits: einspaltig auf Mobile, Icon bleibt links */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.5rem;
  }
  .benefits-grid .benefit {
    padding: 1.15rem 1.1rem;
    column-gap: 0.85rem;
  }
  .benefits-grid .benefit-icon {
    width: 40px;
    height: 40px;
  }
  .benefits-grid .benefit-icon svg {
    width: 22px;
    height: 22px;
  }
  .benefits-grid .benefit h3 { font-size: 0.98rem; }
  .benefits-grid .benefit p  { font-size: 0.88rem; }

  /* Service-FAQ: kompaktere Touch-Targets */
  .service-faq details > summary {
    padding: 1.05rem 2.6rem 1.05rem 1.1rem;
    font-size: 0.98rem;
    min-height: 56px; /* WCAG-Touch-Target */
    display: flex;
    align-items: center;
  }
  .service-faq details > summary::after { right: 1.05rem; width: 10px; height: 10px; }
  .service-faq details > p { padding: 0 1.1rem 1.1rem; font-size: 0.93rem; }

  /* Eyebrow + h2 in Service-Sektionen kompakter */
  .service-process .eyebrow,
  .service-benefits .eyebrow,
  .service-faq .eyebrow { margin-bottom: 0.4rem; }
  .service-process h2,
  .service-benefits h2,
  .service-faq h2 { margin-bottom: 0; }

  /* Bild-Hero auf Startseite: Buttons nebeneinander oder gestapelt – mit voller Breite */
  .hero--bg .hero-cta { gap: 0.7rem; }
  .hero--bg .hero-cta .btn { flex: 1; min-width: 0; justify-content: center; }
  .hero--bg h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero--bg p.lead { margin: 1rem 0 1.5rem; }

  /* Standortleiste – falls aktiv: kompakter */
  .header-locations .locs { flex-wrap: wrap; gap: 0.6rem; }

  /* CTA-Banner: Buttons gestapelt voll */
  .cta-banner .hero-cta { flex-direction: column; }
  .cta-banner .hero-cta .btn { width: 100%; }

  /* Leistungen-Übersicht: 2-spaltiges Tile-Grid auf Mobile */
  .services-overview {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .service-tile {
    padding: 0.7rem 0.75rem;
    gap: 0.6rem;
    font-size: 0.85rem;
  }
  .service-tile .tile-icon { width: 30px; height: 30px; border-radius: 8px; }
  .service-tile .tile-icon svg { width: 16px; height: 16px; }
  .service-tile .tile-name { line-height: 1.2; }
}

/* Sehr kleine Smartphones (≤ 420 px): noch eine Stufe kompakter */
@media (max-width: 420px) {
  :root { --gutter: 1rem; }

  h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  h2 { font-size: clamp(1.55rem, 6vw, 2rem); }
  h3 { font-size: clamp(1.05rem, 4.5vw, 1.2rem); }

  .hero { padding: 1.5rem 0 2.5rem; }
  .hero p.lead { font-size: 0.95rem; }
  .hero-art { max-width: 100%; }

  /* Bild-Hero auf sehr kleinen Smartphones */
  .hero--bg {
    min-height: clamp(280px, 56vh, 380px);
    padding: 2.5rem 0 3rem;
  }
  .hero--bg h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .hero--bg .hero-badge { font-size: 0.78rem; padding: 0.35rem 0.7rem; }

  .usp-card,
  .service-card,
  .step,
  .sidebar-card,
  .form { padding: 1.2rem; }

  .stats { padding: 1.4rem; }
  .cta-banner { padding: 2rem 1rem; }

  /* Process / Benefits noch kompakter */
  .process-steps > li { padding: 1.5rem 1rem 1.1rem; }
  .benefits-grid .benefit { padding: 1.15rem 1rem 1rem; }

  /* Service-FAQ: noch etwas kompakter */
  .service-faq details > summary {
    padding: 0.95rem 2.4rem 0.95rem 1rem;
    font-size: 0.95rem;
  }
  .service-faq details > p { padding: 0 1rem 1rem; font-size: 0.9rem; line-height: 1.6; }

  /* Cookie-Banner: Buttons kleiner */
  .cookie-banner { padding: 1rem; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; border-radius: 12px; }
  .cookie-banner h3 { font-size: 0.98rem; }
  .cookie-banner p { font-size: 0.82rem; }
  .cookie-banner-actions { gap: 0.4rem; flex-wrap: wrap; }
  .cookie-banner-actions .btn { padding: 0.55rem 0.7rem; font-size: 0.82rem; flex: 1 1 auto; min-width: 0; }
  .cookie-modal-inner { padding: 1.4rem 1.2rem 1rem; margin: 2vh 0.5rem; max-height: 92vh; overflow-y: auto; }
  .cookie-modal-inner h3 { font-size: 1.1rem; }

  /* Standortleiste auf sehr kleinen Mobile ausblenden falls Platz knapp */
  .header-locations { display: none; }

  /* Footer kompakter */
  .footer-grid { gap: 1.5rem; }
  .footer-bottom .links { flex-wrap: wrap; gap: 0.6rem 1rem; }

  /* Brotkrümel kleiner */
  .breadcrumb { font-size: 0.78rem; }

  /* Sidebar-Card: Listenpunkte etwas kompakter */
  .sidebar-card ul { font-size: 0.92rem; }
  .sidebar-card li { padding-left: 1.1rem; }

  /* Leistungen-Übersicht: einspaltig auf sehr kleinen Geräten */
  .services-overview {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

/* iOS-Hover-Hover-Hack: keine sticky-Hover-States auf Touch */
@media (hover: none) {
  .has-dropdown:hover > .dropdown { opacity: 0; visibility: hidden; }
  .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; }
}
