/* =========================================================
   Chiropractic Center Göttingen – Grundgerüst
   Struktur: Tokens -> Reset -> Layout -> Komponenten -> Utilities
   ========================================================= */

:root {
  /* Farben */
  --color-black: #0a0a0a;
  --color-charcoal: #1a1a1a;
  --color-white: #ffffff;
  --color-offwhite: #f5f5f3;
  --color-red: #c41e2a;
  --color-red-dark: #96151f;
  --color-gray-mid: #6b6b6b;
  --color-gray-line: #e2e0dc;

  /* Typografie */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, Roboto, sans-serif;

  --fs-h1: clamp(2.2rem, 5vw + 1rem, 4rem);
  --fs-h2: clamp(1.7rem, 3vw + 1rem, 2.6rem);
  --fs-h3: clamp(1.2rem, 1.5vw + 1rem, 1.5rem);
  --fs-body: 1.05rem;
  --fs-small: 0.9rem;

  /* Abstände */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Layout */
  --content-width: 1180px;
  --radius: 2px;
  --header-height: 120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--space-sm); color: var(--color-gray-mid); }
button { font-family: inherit; cursor: pointer; }

/* Sichtbarer Fokus – Barrierefreiheit */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

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

/* ---------- Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}
.section {
  padding-block: var(--space-lg);
}
.section--offwhite { background: var(--color-offwhite); }

/* Zentrierte Text-Sektion (Headline + Absatz mittig statt linksbündig) */
.section--centered {
  text-align: center;
}
.section--centered .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
/* Buttons sollen nie über die volle Breite gestreckt werden, auch nicht
   als direktes Flex-Kind eines gestretchten Containers */
.section--centered .container > .btn {
  align-self: center;
}
.section--centered p {
  margin-left: auto;
  margin-right: auto;
}
/* Listen sollen als Block zentriert stehen, aber ihr Text bleibt linksbündig
   (Aufzählungspunkte mit zentriertem Text sind schwer lesbar) */
.section--centered ul,
.section--centered ol {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-sm);
}

/* Öffnungszeiten-Tabelle: als Block zentriert, Inhalt linksbündig
   (Uhrzeiten-Tabellen sind zentriert kaum lesbar) */
.opening-hours {
  text-align: left;
  margin: var(--space-sm) auto;
  border-collapse: collapse;
  width: 100%;
  max-width: 420px;
}
.opening-hours tr {
  border-bottom: 1px solid var(--color-gray-line);
}
.opening-hours tr:last-child {
  border-bottom: none;
}
.opening-hours th,
.opening-hours td {
  padding: 0.6rem 0.5rem;
  font-weight: 400;
  text-align: left;
}
.opening-hours th {
  font-weight: 600;
  color: var(--color-black);
  white-space: nowrap;
}
.opening-hours td {
  color: var(--color-gray-mid);
}

/* Utility-Klassen für Textausrichtung: überschreiben section--centered
   gezielt für einzelne Absätze/Überschriften, z.B. für Vergleichszwecke */
.text-left {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
.text-justify {
  text-align: justify !important;
  text-justify: inter-word;
}
.text-right {
  text-align: right !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}
.text-hyphenate {
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Testweise: drei Varianten zur Hervorhebung von Listenpunkten
   (Entscheidungshilfe für den Kunden, siehe Kinderchiropraktik-Seite) */

/* Variante 1: nur rote Aufzählungspunkte, Text bleibt normal */
.list-red-dot li::marker {
  color: var(--color-red);
}

/* Variante 2: rote Punkte + fetter, schwarzer Text */
.list-red-dot-bold li::marker {
  color: var(--color-red);
}
.list-red-dot-bold li {
  color: var(--color-black);
  font-weight: 600;
}

/* Variante 3: nur fetter, schwarzer Text, Punkte bleiben Standard */
.list-bold-black li {
  color: var(--color-black);
  font-weight: 600;
}
.list-bold-black li::marker {
  color: var(--color-black);
}

/* Blocksatz für alle Fließtexte auf allen Seiten, außerhalb der
   Hero-Bereiche (die nutzen die Klasse "hero", nicht "section",
   und sind dadurch von dieser Regel automatisch ausgenommen) */
.section p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Hero mit Hintergrundbild/-video, zentrierter, weißer Text.
   Das Hintergrundbild wird pro Seite über eine Modifier-Klasse gesetzt
   (z.B. .hero--osteopathie), damit jede Unterseite ihr eigenes Bild
   bekommen kann. */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero--chiropraktik      { background-image: url('/img/hero-chiropraktik.jpg'); }
.hero--osteopathie       { background-image: url('/img/hero-osteopathie.jpg'); }
.hero--kinderchiropraktik { background-image: url('/img/hero-kinderchiropraktik.jpg'); }
.hero--ueber-uns         { background-image: url('/img/hero-ueber-uns.jpg'); }
.hero--termine           { background-image: url('/img/hero-termine.jpg'); }

/* Video-Hintergrund (Startseite): Video liegt hinter dem Overlay/Text,
   deckt die ganze Hero-Fläche ab, unabhängig vom eigenen Seitenverhältnis */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dunkles Overlay, damit weißer Text auf jedem Bild-/Video-Bereich lesbar bleibt.
   Einheitliche Helligkeit für alle Hero-Bereiche (Bild und Video).
   z-index: 1, damit es über dem Video liegt (das als DOM-Element sonst
   das Overlay überdecken würde, da Bild-Hintergründe reine CSS-Properties
   sind, ein <video>-Tag aber ein normales, konkurrierendes Element ist) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.45) 100%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1,
.hero p {
  color: var(--color-white);
}
.hero .eyebrow { color: var(--color-white); }
.hero p { max-width: 60ch; }
.hero .eyebrow.fade-in-up { transition-delay: 0s; }
.hero h1.fade-in-up { transition-delay: .12s; }
.hero p.fade-in-up { transition-delay: .24s; }
.hero .btn.fade-in-up { transition-delay: .36s; }

/* Generische Staffelung für Fade-In-Elemente in normalen Sektionen:
   Überschrift zuerst, dann jeder nachfolgende Absatz/Liste leicht verzögert */
.section h2.fade-in-up + .fade-in-up { transition-delay: .1s; }
.section h2.fade-in-up + .fade-in-up + .fade-in-up { transition-delay: .2s; }
.section h2.fade-in-up + .fade-in-up + .fade-in-up + .fade-in-up { transition-delay: .3s; }

@media (max-width: 860px) {
  .hero { min-height: 520px; }
}

/* Scroll-Fade-In: Elemente faden von unten ein, gesteuert per JS (main.js)
   über die Klasse .is-visible, die per IntersectionObserver gesetzt wird */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-red-dark); }
.btn--outline {
  border-color: currentColor;
  background: transparent;
}
.btn--outline:hover { background: var(--color-white); color: var(--color-black); }

/* Wirbelsäulen-Linie – Signatur-Element, siehe includes/spine-divider.php */
.spine-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-block: var(--space-md);
}
.spine-divider path {
  stroke: var(--color-red);
  fill: none;
}

/* Responsiver Video-Embed (16:9), z.B. für Vimeo/YouTube iframes.
   Padding-Trick statt CSS "aspect-ratio", da letzteres in Kombination mit
   display:flex innerhalb eines Grid-Containers zu 0px-Höhe führen kann. */
.video-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9 */
  margin-block: var(--space-md);
  background: var(--color-charcoal); /* Ladeanzeige, bevor iframe da ist */
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Click-to-Load-Video: zeigt erst einen Platzhalter mit Play-Button,
   iframe wird erst nach Klick per JS eingefügt (siehe main.js) –
   datenschutzfreundlich, da vorher keine Verbindung zu Vimeo aufgebaut wird */
.video-embed--click {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #2a2a2a 100%);
}
.video-embed--click:hover .video-play-button {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--color-red-dark);
}
.video-embed-title {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  right: var(--space-sm);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 1;
}
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background-color .2s ease;
}
.video-play-button::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--color-white);
  margin-left: 4px; /* optische Zentrierung des Dreiecks */
}

/* Map-Pin-Button-Variante: gleiche Klick-Mechanik wie Video, aber mit
   Stecknadel-Symbol statt Play-Dreieck (für eingebettete Karten) */
.map-pin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform .2s ease, background-color .2s ease;
}

/* Kontaktformular: Statusmeldung nach dem Absenden */
.form-status {
  max-width: 480px;
  margin: 1.5rem auto 0;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: left;
}
.form-status--ok {
  background: #eef7ee;
  border: 1px solid #b7dbb7;
  color: #1f5f1f;
}
.form-status--error {
  background: #fdf0f0;
  border: 1px solid #e6b3b3;
  color: #8c1c1c;
}

/* Honeypot-Feld: für Menschen unsichtbar (nicht display:none, damit einfache
   Bots es trotzdem "sehen" und ausfüllen) */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Datenschutz-Checkbox im Kontaktformular */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-gray-mid);
  line-height: 1.4;
}
.form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-red);
}
.form-consent a {
  color: var(--color-red);
  text-decoration: underline;
}
.video-embed--click:hover .map-pin-button {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--color-red-dark);
}

/* Karten-Embed braucht kein 16:9, sondern ein ruhigeres Seitenverhältnis */
.map-embed {
  padding-top: 45%;
}
@media (max-width: 860px) {
  .map-embed { padding-top: 75%; }
}

/* Video-Grid für mehrere Embeds nebeneinander (Desktop) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
  width: 100%; /* wichtig: als Flex-Kind von .section--centered .container
                  sonst schrumpft das Grid ohne Fließtext-Inhalt auf 0 Breite */
}
@media (max-width: 860px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* Mitgliedschafts-/Verbands-Logos (z.B. auf der Über-uns-Seite):
   nebeneinander, vertikal zentriert, einheitliche Höhe unabhängig vom
   Seitenverhältnis der einzelnen Logo-Datei */
.membership-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  width: 100%;
}
.membership-logos img {
  height: 130px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.membership-logo--main {
  height: 240px !important;
  max-width: 420px !important;
}
@media (max-width: 860px) {
  .membership-logos {
    gap: var(--space-md);
  }
  .membership-logos img {
    height: 90px;
  }
  .membership-logo--main {
    height: 160px !important;
  }
}

/* ---------- Akkordeon (FAQ-Blöcke) ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--space-md);
  width: 100%;
}
.accordion-item {
  border-radius: 6px;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  text-align: left;
  padding: 0.9rem 1.3rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color .2s ease;
}
.accordion-header:hover { background: var(--color-red-dark); }

/* Plus-Icon, das sich beim Öffnen zum X dreht */
.accordion-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--color-white);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.accordion-icon::before { width: 14px; height: 2px; }
.accordion-icon::after  { width: 2px; height: 14px; }
.accordion-item.is-open .accordion-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.accordion-item.is-open .accordion-icon::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* Ausklappbarer Inhalt (max-height wird per JS dynamisch gesetzt, siehe main.js).
   Hintergrund invertiert sich je nach Sektionsfarbe: liegt das Akkordeon auf
   weiß, wird das ausgeklappte Feld offwhite (grau) – liegt es auf offwhite,
   wird das Feld weiß. So gibt es immer sichtbaren Kontrast zum Balken/zur
   Sektion, egal in welcher Sektion das Akkordeon eingebettet ist. */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: var(--color-offwhite);
}
.section--offwhite .accordion-panel {
  background: var(--color-white);
}
.accordion-panel-inner {
  padding: 1.1rem 1.3rem;
}
.accordion-panel-inner p { color: var(--color-gray-mid); margin-bottom: 0; }

/* Feature-Karten (z.B. "Unsere Stärken" auf der Startseite) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
  width: 100%;
}
.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-line);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.feature-card h3::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--color-red);
  margin-bottom: var(--space-xs);
}
.feature-card p { margin-bottom: 0; }

/* Zweispaltige Variante (z.B. wenn nur 2 Karten statt 3 vorhanden sind,
   damit nicht eine leere dritte Spalte alles nach links verschiebt) */
.feature-grid--two-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .feature-grid,
  .feature-grid--two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-line);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  gap: var(--space-md);
}
.logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo-img {
  height: 100px;
  width: auto;
  max-width: 420px;  /* Logo ist ein breites Querformat, braucht mehr Raum */
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 1.1rem;
}
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.3rem;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width .2s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Formulare-Download-Dropdown im Header */
.header-downloads {
  position: relative;
}
.header-downloads-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 1.5px solid var(--color-gray-line);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-black);
  white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease;
}
.header-downloads-toggle:hover,
.header-downloads-toggle:focus-visible {
  border-color: var(--color-red);
}
.header-downloads-caret {
  font-size: 0.7rem;
  transition: transform .2s ease;
}
.header-downloads.is-open .header-downloads-caret {
  transform: rotate(180deg);
}
.header-downloads-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 260px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 110;
}
.header-downloads.is-open .header-downloads-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-downloads-menu li + li {
  border-top: 1px solid var(--color-gray-line);
}
.header-downloads-menu a {
  display: block;
  padding: 0.65rem 0.7rem;
  font-size: 0.88rem;
  border-radius: 4px;
  color: var(--color-black);
  white-space: nowrap;
}
.header-downloads-menu a:hover {
  background: var(--color-offwhite);
  color: var(--color-red);
}

/* Mobile-Nav-Toggle (Hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, var(--color-red-dark) 0%, var(--color-red) 55%, #a81823 100%);
  color: #ffe3e3;
  padding-block: var(--space-lg) var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-grid h4 { color: var(--color-white); font-size: 1rem; }
.footer-grid p { color: #ffe3e3; }
.footer-grid a:hover { color: var(--color-white); text-decoration: underline; }
.footer-grid li { margin-bottom: 0.5rem; }
/* Kontakt-Spalte kompakter: mehr Zeilen (Name, Qualifikation, Tel, Mail, Adresse)
   auf engerem Raum als die normale Navigationsliste */
.footer-contact-list li {
  margin-bottom: 0.25rem;
  line-height: 1.35;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: #ffd0d0;
}
.footer-bottom a:hover { color: var(--color-white); }

/* =========================================================
   Navigation wird ab 1150px zum Off-Canvas-Menü (7 Nav-Punkte
   brauchen mehr Platz als ein schmaleres Menü)
   ========================================================= */
@media (max-width: 1150px) {
  :root { --header-height: 92px; }
  .logo-img { height: 66px; }
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm);
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav[data-open="true"] { transform: translateX(0); }
  .main-nav a {
    display: block;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--color-gray-line);
    font-size: 1.1rem;
  }
  /* Telefonnummer bleibt auch mobil sichtbar, aber kompakter,
     damit sie neben CTA-Button und Hamburger-Icon Platz findet */
  .header-phone {
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .header-actions .btn--primary {
    padding: 0.6rem 0.9rem;
    font-size: 0.7rem;
  }
  .nav-toggle { display: block; }
  /* Formulare-Dropdown ab hier ausblenden – Header ist schon mit
     Telefonnummer, CTA-Button und Hamburger ausgelastet; die Downloads
     bleiben über die Kontaktseite erreichbar */
  .header-downloads { display: none; }
}

@media (max-width: 480px) {
  /* Auf sehr schmalen Screens: nur Telefonnummer + Hamburger,
     CTA-Button-Text wird ausgeblendet (Nummer ist bereits ein Call-to-Action) */
  .header-actions .btn--primary { display: none; }
  .container { padding-inline: var(--space-sm); }
  .btn { width: 100%; text-align: center; }
}

/* Mobile (< 860px): Footer/Section-Anpassungen */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .section { padding-block: var(--space-md); }
}

/* Cookie-Consent-Banner (nur aktiv, sobald Google Analytics eingerichtet ist) */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-line);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 1.2rem var(--space-sm);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner {
  max-width: var(--content-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.cookie-consent-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-gray-mid);
  flex: 1 1 380px;
}
.cookie-consent-text a { color: var(--color-red); text-decoration: underline; }
.cookie-consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; width: auto; }
}
