/* ==========================================================================
   Ankenbrand Autoservice – Stylesheet
   Farben aus der bisherigen Website (Avada-Theme-Optionen) und dem Logo.
   Mobile first. Keine externen Abhängigkeiten.
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Markenfarben (Original) */
  --color-primary: #1a80b6;        /* Primärfarbe der bisherigen Website */
  --color-primary-dark: #105378;   /* Palette „color6“, Hover-Blau */
  --color-navy: #004783;           /* Footer-Blau = Logo-Blau */
  --color-accent: #e11e26;         /* Logo-Rot („Autoservice“) */
  --color-accent-dark: #b8161d;    /* abgedunkeltes Logo-Rot für Hover */
  --color-black: #000000;          /* Copyright-Leiste */

  /* Neutrale Töne (Original-Palette) */
  --color-background: #ffffff;
  --color-surface: #f6f6f6;
  --color-border: #e0dede;
  --color-text: #333333;
  --color-text-muted: #646464;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: rgba(255, 255, 255, 0.82);

  /* Typografie */
  --font-heading: "Roboto", Arial, Helvetica, sans-serif;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
  --fs-300: 0.875rem;
  --fs-400: 1.0625rem;
  --fs-500: 1.1875rem;
  --fs-600: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-700: clamp(1.65rem, 1.3rem + 1.5vw, 2.4rem);
  --fs-800: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);

  /* Abstände & Formen */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 35, 66, 0.06), 0 8px 24px rgba(0, 35, 66, 0.08);
  --shadow-lg: 0 2px 4px rgba(0, 35, 66, 0.06), 0 18px 40px rgba(0, 35, 66, 0.14);
  --container: 1200px;
  --header-h: 72px;
  --mobile-bar-h: 64px;
  --focus: 3px solid var(--color-primary);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: calc(var(--mobile-bar-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-background);
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-800); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); }
p { margin: 0 0 var(--space-4); }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
a { color: var(--color-primary-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-navy); text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 700; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 1000;
  background: var(--color-navy); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); color: #fff; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 820px); margin-inline: auto; }
.section { padding-block: var(--space-8); }
.section--surface { background: var(--color-surface); }
.section--tight { padding-block: var(--space-7); }
.section-head { max-width: 760px; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 2px;
  background: var(--color-accent); vertical-align: middle; margin-right: 10px; margin-top: -3px;
}
.lead { font-size: var(--fs-500); color: var(--color-text); }
.muted { color: var(--color-text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.4em;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn--secondary { background: var(--color-navy); color: #fff; }
.btn--secondary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--outline { border-color: var(--color-navy); color: var(--color-navy); background: transparent; }
.btn--outline:hover { background: var(--color-navy); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--color-navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Topbar & Header ---------- */
.topbar { display: none; background: var(--color-navy); color: var(--color-on-dark-muted); font-size: var(--fs-300); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; align-items: center; }
.topbar svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-right: 6px; fill: currentColor; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 190px; height: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 14px; border-radius: var(--radius-sm);
  background: transparent; border: 2px solid var(--color-border); color: var(--color-navy);
  font: 600 1rem var(--font-heading); cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav-list { list-style: none; margin: 0; padding: var(--space-3) var(--space-4) var(--space-5); }
.nav-list > li { border-bottom: 1px solid var(--color-border); }
.nav-list a, .nav-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 52px; padding: 0 var(--space-2);
  color: var(--color-text); text-decoration: none; font: 500 1.0625rem var(--font-heading);
  background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-list a:hover, .nav-sub-toggle:hover { color: var(--color-primary-dark); }
.nav-list a[aria-current="page"] { color: var(--color-primary-dark); font-weight: 700; }
.nav-sub-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub { list-style: none; margin: 0 0 var(--space-3); padding: 0 0 0 var(--space-4); display: none; }
.nav-sub.is-open { display: block; }
.nav-sub a { min-height: 46px; font-weight: 400; font-family: var(--font-body); font-size: 1rem; }
.nav-cta { display: none; }
.nav-list .nav-call { margin-top: var(--space-4); border: 0; }
.nav-list .nav-call a.btn { justify-content: center; gap: .55em; color: #fff; background: var(--color-accent); border-radius: var(--radius-sm); }
.nav-list .nav-call a.btn:hover { background: var(--color-accent-dark); color: #fff; }

/* ---------- Mobile Kontaktleiste ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -6px 20px rgba(0,35,66,.1);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--mobile-bar-h); color: var(--color-navy); text-decoration: none;
  font: 600 0.8125rem var(--font-heading);
}
.mobile-bar a + a { border-left: 1px solid var(--color-border); }
.mobile-bar svg { width: 22px; height: 22px; fill: currentColor; }
.mobile-bar .mobile-bar__call { background: var(--color-accent); color: #fff; }

/* ---------- Hero Startseite ---------- */
.hero { background: var(--color-navy); color: var(--color-on-dark); overflow-x: clip; }
.hero__grid { display: grid; }
.hero__content { padding: var(--space-7) 0 var(--space-6); }
.hero .eyebrow { color: #fff; }
.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero__lead { font-size: var(--fs-500); color: var(--color-on-dark-muted); max-width: 36em; margin-bottom: var(--space-5); }
.hero__facts { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-2); }
.hero__facts li { display: flex; gap: 10px; align-items: flex-start; color: #fff; font-size: 1rem; }
.hero__facts svg { width: 20px; height: 20px; flex: none; margin-top: 3px; fill: #fff; }
.hero__media { margin: 0 -1rem; position: relative; }
.hero__media picture, .page-hero__media picture, .offer__media picture { display: block; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; aspect-ratio: 16 / 10; }
.hero__media figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 0.8125rem; padding: 4px 10px; border-radius: 4px;
}

/* ---------- Seitenkopf Unterseiten ---------- */
.page-hero { background: var(--color-navy); color: #fff; overflow-x: clip; }
.page-hero__grid { display: grid; }
.page-hero__content { padding: var(--space-6) 0 var(--space-6); }
.page-hero h1 { color: #fff; font-size: var(--fs-800); }
.page-hero .lead { color: var(--color-on-dark-muted); max-width: 38em; }
.page-hero__media { margin: 0 -1rem; }
.page-hero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.breadcrumb { font-size: var(--fs-300); margin-bottom: var(--space-4); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { color: var(--color-on-dark-muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: rgba(255,255,255,.6); }
.breadcrumb a { color: #fff; }

/* ---------- Vertrauensleiste ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--color-border); }
.trust__list { list-style: none; margin: 0; padding: var(--space-5) 0; display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.trust__item { display: flex; gap: var(--space-3); align-items: flex-start; }
.trust__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #e8f2f8; color: var(--color-primary);
}
.trust__icon svg { width: 24px; height: 24px; fill: currentColor; }
.trust__item strong { display: block; font-family: var(--font-heading); font-weight: 600; color: var(--color-navy); line-height: 1.3; }
.trust__item span { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.5; }

/* ---------- Leistungskarten ---------- */
.cards { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #c9dbe6; }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.3rem; margin-bottom: var(--space-2); }
.card__title a { color: var(--color-navy); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { color: var(--color-text-muted); font-size: 1rem; margin-bottom: var(--space-4); }
.card__more { margin-top: auto; font-family: var(--font-heading); font-weight: 600; color: var(--color-primary-dark); display: inline-flex; align-items: center; gap: 6px; }
.card__more svg { width: 16px; height: 16px; fill: currentColor; transition: transform .2s ease; }
.card:hover .card__more svg { transform: translateX(3px); }
.card:focus-within { outline: var(--focus); outline-offset: 3px; }
.card__title a:focus-visible { outline: none; }

/* ---------- Text-Bild-Abschnitte ---------- */
.split { display: grid; gap: var(--space-6); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.split__media--wide img { aspect-ratio: 16 / 10; }
.split--head { margin-bottom: var(--space-6); }
.split--head .section-head { margin-bottom: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: var(--space-6); }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-2); }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist--cols { grid-template-columns: 1fr; }

/* Definitionsliste (Reparaturarten, Karosserietypen) */
.deflist { display: grid; gap: var(--space-4); margin: 0 0 var(--space-5); }
.deflist div { background: #fff; border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); padding: var(--space-4) var(--space-5); }
.section--surface .deflist div { background: #fff; }
.deflist dt { font-family: var(--font-heading); font-weight: 600; color: var(--color-navy); font-size: 1.125rem; margin-bottom: var(--space-1); }
.deflist dd { margin: 0; color: var(--color-text); }

/* Feature-Raster (Inspektionsleistungen) */
.features { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.feature { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature__body { padding: var(--space-5); }
.feature h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.feature p { margin: 0; font-size: 1rem; color: var(--color-text); }

/* Hinweisbox / Info */
.note {
  background: #e8f2f8; border-radius: var(--radius); padding: var(--space-5);
  border-left: 4px solid var(--color-primary);
}
.note > :last-child { margin-bottom: 0; }
.note--spaced { margin-top: var(--space-6); }
.page-hero .eyebrow { color: #fff; }
.note h3 { font-size: 1.2rem; }

/* ---------- Effekte ---------- */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 35, 66, .10); }
.card img, .feature img, .split__media img, .offer img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover img, .feature:hover img { transform: scale(1.045); }
.feature { overflow: hidden; }
/* Einblenden beim Scrollen: nur wenn JavaScript läuft (Klasse .js am <html>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal:nth-child(4) { transition-delay: .24s; }
.js .reveal:nth-child(5) { transition-delay: .32s; }
.js .reveal:nth-child(6) { transition-delay: .40s; }
.btn--primary { box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.btn--primary:hover { box-shadow: 0 6px 16px rgba(225, 30, 38, .28); }

/* Kontaktformular */
.contact-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-5); margin-top: var(--space-5); }
.form-grid { display: grid; gap: var(--space-4); margin-bottom: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field label { font-family: var(--font-heading); font-weight: 600; color: var(--color-navy); }
.field .req { font-weight: 400; font-size: var(--fs-300); color: var(--color-text-muted); }
.field input, .field textarea {
  font: inherit; color: var(--color-text); width: 100%;
  min-height: 48px; padding: 0.6em 0.8em;
  border: 1px solid #8a8a8a; border-radius: var(--radius-sm); background: #fff;
}
.field textarea { resize: vertical; min-height: 9em; }
.field input:focus-visible, .field textarea:focus-visible { outline: var(--focus); outline-offset: 1px; border-color: var(--color-primary); }
.field__hint { margin: 0; font-size: var(--fs-300); color: var(--color-text-muted); }
.field__error { margin: 0; font-size: var(--fs-300); font-weight: 600; color: var(--color-accent-dark); }
.field [aria-invalid="true"] { border-color: var(--color-accent-dark); box-shadow: inset 0 0 0 1px var(--color-accent-dark); }
.field--check { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); align-items: start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--color-navy); }
.field--check label { font-family: var(--font-body); font-weight: 400; color: var(--color-text); }
.field--check .field__error { grid-column: 2; }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-sm); padding: var(--space-4); margin-bottom: var(--space-5); border-left: 4px solid var(--color-primary-dark); background: #e8f2f8; font-weight: 600; }
.form-status.is-error { border-left-color: var(--color-accent-dark); background: #fdeeee; }
.form-status:focus { outline: none; }
.contact-form button[disabled] { opacity: .7; cursor: progress; }

/* Fakten-Box (GEO) */
.facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.facts div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; color: var(--color-navy); font-family: var(--font-heading); }
.facts dd { margin: 0; }

/* ---------- Angebot-Teaser ---------- */
.offer { display: grid; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.offer__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.offer__body { padding: var(--space-6) var(--space-5); }
.offer__badge { display: inline-block; background: var(--color-accent); color: #fff; font: 700 0.8125rem var(--font-heading); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: var(--space-3); }
.dates { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dates li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 6px 12px; font-weight: 600; font-family: var(--font-heading); color: var(--color-navy); }
.dates li.is-past { color: var(--color-text-muted); text-decoration: line-through; font-weight: 400; }

/* ---------- Öffnungszeiten & Kontakt ---------- */
.contact-grid { display: grid; gap: var(--space-5); }
.panel { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow); }
.panel h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.panel__action { margin-top: var(--space-4); }
.panel h3 svg { width: 22px; height: 22px; fill: var(--color-primary); flex: none; }
.hours caption { text-align: left; font-family: var(--font-heading); font-weight: 600; color: var(--color-navy); padding-bottom: var(--space-2); }
.hours th, .hours td { text-align: left; vertical-align: top; padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: 0.975rem; }
.hours th { font-weight: 600; padding-right: var(--space-4); white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours + .hours { margin-top: var(--space-5); }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; fill: var(--color-primary); flex: none; margin-top: 4px; }
.contact-list a { font-weight: 600; }
.contact-list small { display: block; color: var(--color-text-muted); font-size: 0.875rem; }
.location-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-4) var(--space-5); padding-right: 52px; position: relative;
  font-family: var(--font-heading); font-weight: 600; color: var(--color-navy); font-size: 1.0625rem; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 var(--space-5) var(--space-4); }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--color-primary-dark); color: #fff; }
.cta-band__inner { display: grid; gap: var(--space-5); align-items: center; padding-block: var(--space-7); }
.cta-band h2 { color: #fff; margin-bottom: var(--space-2); }
.cta-band p { color: var(--color-on-dark-muted); margin: 0; }

/* ---------- Verwandte Leistungen ---------- */
.related { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
/* Kästen einer Reihe gleich hoch: Link füllt das ganze Grid-Feld */
.related > li { display: flex; }
.related a {
  flex: 1;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--color-navy); font-family: var(--font-heading); font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.related a:hover { border-color: var(--color-primary); box-shadow: var(--shadow); }
.related small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--color-text-muted); font-size: .9375rem; }
.related svg { width: 18px; height: 18px; fill: var(--color-primary); flex: none; }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.5rem; margin-top: var(--space-6); }
.legal h3 { font-size: 1.2rem; margin-top: var(--space-5); }
.legal h4 { font-size: 1.05rem; margin-top: var(--space-4); }
.legal p, .legal li { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: var(--color-on-dark-muted); font-size: 0.975rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: var(--space-6); padding-block: var(--space-7); }
.footer__title { color: #fff; font-size: 1.0625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer__list a { text-decoration: none; display: inline-block; padding: 2px 0; }
.footer__list a:hover { text-decoration: underline; }
.site-footer .hours th, .site-footer .hours td { border-color: rgba(255,255,255,.18); color: var(--color-on-dark-muted); font-size: .9375rem; }
.site-footer .hours th { color: #fff; }
.site-footer .hours caption { color: #fff; }
.footer__social { display: inline-flex; align-items: center; gap: 8px; }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__bottom { background: var(--color-black); color: rgba(255,255,255,.75); font-size: var(--fs-300); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-4); }
.footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer__bottom a { color: #fff; }
.footer__bottom p { margin: 0; }
.footer__contact { margin-top: var(--space-4); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: var(--space-8); }
.error-page .related { max-width: 560px; margin: var(--space-6) auto 0; text-align: left; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: var(--space-5); }
  .field--full { grid-column: 1 / -1; }
  .contact-form { padding: var(--space-6); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .checklist--cols { grid-template-columns: repeat(2, 1fr); }
  .facts div { grid-template-columns: 200px 1fr; gap: var(--space-4); }
  .related { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  html { scroll-padding-bottom: 0; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .topbar { display: block; }
  .brand img { width: 220px; }
  :root { --header-h: 84px; }

  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; max-height: none; overflow: visible; background: transparent; }
  .nav-list { display: flex; align-items: center; gap: 2px; padding: 0; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list a, .nav-sub-toggle { min-height: 44px; padding: 0 12px; font-size: 1rem; border-radius: var(--radius-sm); gap: 6px; }
  .nav-list > li > a:hover, .nav-sub-toggle:hover { background: var(--color-surface); }
  .nav-list > li > a[aria-current="page"], .has-sub:has([aria-current="page"]) > .nav-sub-toggle { box-shadow: inset 0 -3px 0 var(--color-primary); border-radius: 0; color: var(--color-primary-dark); }
  /* Dropdown: immer im DOM, per Opacity/Visibility ein- und ausgeblendet. Beim Schließen
     kurze Verzögerung, damit man mit der Maus schräg ins Menü fahren kann. */
  .nav-sub, .nav-sub.is-open {
    display: block; position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; padding: var(--space-2);
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease .12s, transform .18s ease .12s, visibility 0s linear .3s;
  }
  /* Brücke über die 8-px-Lücke, sonst geht der Hover auf dem Weg ins Menü verloren */
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav-sub.is-open, .has-sub:hover > .nav-sub, .has-sub:focus-within > .nav-sub {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  .has-sub.is-suppressed > .nav-sub { opacity: 0; visibility: hidden; transform: translateY(8px); transition: none; }
  .has-sub:hover > .nav-sub-toggle svg, .has-sub:focus-within > .nav-sub-toggle svg { transform: rotate(180deg); }
  .has-sub.is-suppressed > .nav-sub-toggle svg { transform: none; }
  .nav-sub a { transition: background-color .15s ease, padding-left .15s ease; }
  .nav-sub a:hover { padding-left: calc(var(--space-3) + 4px); }
  .nav-sub a { padding: 0 var(--space-3); border-radius: var(--radius-sm); }
  .nav-sub a:hover { background: var(--color-surface); }
  .nav-list .nav-call { display: none; }
  .nav-cta { display: inline-flex; }
  .header__actions { display: flex; align-items: center; gap: var(--space-4); }

  .hero__grid { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .hero__content { padding: var(--space-8) var(--space-7) var(--space-8) 0; align-self: center; }
  /* Bild bis an den rechten Fensterrand ziehen */
  .hero__media, .page-hero__media { margin: 0 calc((min(100vw - 2rem, var(--container)) - 100vw) / 2) 0 0; }
  .hero__media img { aspect-ratio: auto; height: 100%; min-height: 560px; }

  .page-hero__grid { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .page-hero__content { padding: var(--space-8) var(--space-7) var(--space-8) 0; align-self: center; }
  .page-hero__media img { height: 100%; aspect-ratio: auto; min-height: 420px; }
  .page-hero--simple .page-hero__grid { grid-template-columns: 1fr; }

  .trust__list { grid-template-columns: repeat(4, 1fr); padding: var(--space-6) 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards--5 > :nth-child(4) { grid-column: 1 / span 1; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--form { grid-template-columns: 1.7fr 1fr; align-items: start; }
  .split--reverse .split__media { order: 2; }
  .offer { grid-template-columns: 1fr 1fr; }
  .offer__body { padding: var(--space-7); align-self: center; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid--2 { grid-template-columns: 1.2fr 1fr; }
  .cta-band__inner { grid-template-columns: 1fr auto; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .related { grid-template-columns: repeat(3, 1fr); }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover img, .feature:hover img { transform: none; }
  .card:hover, .btn:hover { transform: none; }
}

@media print {
  .topbar, .site-header, .mobile-bar, .cta-band, .site-footer .footer__grid { display: none !important; }
  body { padding: 0; color: #000; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1, .page-hero .lead { color: #000; }
}
.btn-row--center { justify-content: center; }
