/* ==========================================================================
   MC Automobile GmbH — Styles
   Farben nach Autohaus Klaiber (Blau #247cbf), Aufbau nach 1a autoservice Stoffel
   ========================================================================== */

/* Schriften lokal gehostet (assets/fonts, SIL Open Font License) –
   keine Verbindung zu Google-Servern, daher keine Einwilligung nötig. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700italic-latin.woff2") format("woff2");
}

:root {
  --blue: #247cbf;          /* Klaiber-Blau */
  --blue-hover: #1d6aa5;
  --blue-dark: #1b639b;     /* Text-Links (besserer Kontrast) */
  --blue-deep: #134a75;
  --blue-light: #e8f1f9;
  --blue-50: #f3f8fc;

  --ink: #1f2327;           /* Überschriften */
  --text: #454b52;
  --muted: #767d85;
  --line: #e2e6ea;
  --bg: #f2f3f5;
  --white: #ffffff;

  --footer: #2d3035;
  --footer-bottom: #111214;

  --success: #1e9e6b;
  --danger: #d64545;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 10px 28px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 22px 50px rgba(17, 24, 39, 0.16);

  --container: 1240px;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible { outline: 3px solid rgba(36, 124, 191, 0.55); outline-offset: 2px; }

section { padding: 88px 0; }
.section-grey { background: var(--bg); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--blue);
}

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker::after { content: ""; width: 28px; height: 3px; background: var(--blue); }

.section-head h2,
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.section-head p { font-size: 1.05rem; color: var(--text); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(36, 124, 191, 0.28); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(36, 124, 191, 0.36); }

.btn-outline { border: 2px solid var(--blue); color: var(--blue-dark); background: var(--white); }
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }

.btn-white { background: var(--white); color: var(--blue-dark); }
.btn-white:hover { background: var(--blue-light); transform: translateY(-2px); }

.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------------- Topbar ---------------- */

.topbar {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  font-weight: 600;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: 7px;
  padding-bottom: 7px;
}

.topbar-group { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.topbar-group:last-child { margin-left: auto; }

/* Telefon oben links nur auf dem Handy – am Desktop steht es direkt darunter im Kopf */
.topbar-contact { display: none; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar a:hover { text-decoration: underline; }

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.16);
}

.topbar-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; }
.topbar-status.open .dot { background: #5ee6a8; box-shadow: 0 0 0 3px rgba(94, 230, 168, 0.25); }
.topbar-status.closed .dot { background: #ffb4b4; }

/* ---------------- Header (weiß) ---------------- */

.site-header { background: var(--white); position: relative; z-index: 60; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand { display: flex; align-items: center; gap: 16px; }

.brand-logo {
  width: 180px;
  height: auto;
  aspect-ratio: 420 / 151;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-style: italic;   /* wie die große Überschrift im Titelbild */
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;   /* „MC Automobile“ immer in einer Zeile */
  color: var(--blue);
}

.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.header-contact { display: flex; align-items: center; gap: 28px; }

.header-info { display: flex; align-items: center; gap: 12px; }

.header-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-info-icon svg { width: 20px; height: 20px; }

.header-info small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.header-info strong { display: block; font-size: 0.95rem; color: var(--ink); line-height: 1.3; }
.header-info a strong { font-family: var(--font-display); font-size: 1.45rem; color: var(--blue); letter-spacing: 0.01em; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--blue);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Blaue Menüleiste (wie Klaiber) ---------------- */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  transition: box-shadow 0.25s ease;
}

.is-scrolled .main-nav { box-shadow: 0 6px 18px rgba(17, 24, 39, 0.18); }

.main-nav .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}

.main-nav ul { display: flex; align-items: stretch; }

.main-nav a.nav-link {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 18px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: background 0.2s ease;
}

.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link.active { background: var(--blue-hover); }

.main-nav a.nav-link:hover::after,
.main-nav a.nav-link.active::after { transform: scaleX(1); }

/* ---------------- Hero: Werkstattfoto über die volle Breite ---------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: #0d2236;
  color: var(--white);
}

.hero-bg { position: absolute; inset: 0; z-index: -2; }

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  animation: hero-zoom 14s ease-out both;
}

@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

/* Dunkelblauer Verlauf links, damit der Spruch gut lesbar ist – rechts bleibt das Schild frei */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 24, 40, 0.92) 0%, rgba(9, 24, 40, 0.8) 30%, rgba(9, 24, 40, 0.3) 56%, rgba(9, 24, 40, 0) 72%),
    linear-gradient(0deg, rgba(9, 24, 40, 0.6) 0%, rgba(9, 24, 40, 0) 38%);
}

.hero .container { position: relative; }

.hero-text { max-width: 640px; }

.hero .kicker { color: #7fc0ef; }
.hero .kicker::before { background: #7fc0ef; }

.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 26px;
}

.hero h1 .accent { display: block; color: #6cb6ec; }
.hero h1 .nw { white-space: nowrap; }

.hero .lead {
  max-width: 540px;
  margin-bottom: 32px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- Google-Bewertungen (im Titelbild unter den Buttons, ganze Karte ist ein Link) ---------------- */

.hero .review-card { margin-top: 30px; }

/* Wie ein Google-Bewertungs-Badge: oben Logo in Sprechblase + Sterne + Note, unten blauer Balken */
.review-card {
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.review-body { display: flex; align-items: center; gap: 18px; padding: 14px 24px 14px 16px; }

/* Logo im abgerundeten Rahmen mit Spitze nach rechts (Sprechblase) */
.review-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid #c4c7cc;
  border-radius: 10px;
  background: var(--white);
  flex-shrink: 0;
}

.review-logo::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  background: var(--white);
  border-top: 2px solid #c4c7cc;
  border-right: 2px solid #c4c7cc;
  transform: rotate(45deg);
}

.review-logo svg { width: 30px; height: 30px; }

.review-score { display: flex; flex-direction: column; gap: 5px; }

.review-stars { width: 140px; height: 28px; }
.review-count { font-size: 0.92rem; line-height: 1.2; color: var(--text); }

.review-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.review-bar svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.review-card:hover .review-bar { background: var(--blue-hover); }
.review-card:hover .review-bar svg { transform: translateX(4px); }

/* ---------------- Leistungen auf der Startseite (Kacheln wie „Weitere Leistungen“) ---------------- */

.services-band { padding: 56px 0 0; }

.services-intro { padding: 30px 0 34px; text-align: center; }
.services-intro .section-title { margin-bottom: 6px; }
.services-intro p { color: var(--text); }

/* Weitere Leistungen als Kacheln, die ein Info-Fenster öffnen (Stile des Fensters: Abschnitt „Info-Fenster“) */
.services-sub {
  margin: 44px 0 18px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.more-grid.is-info { --cols: 6; }

.services-note {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 1rem;
  color: var(--text);
}

.services-note strong { color: var(--ink); }

/* ---------------- Über uns / Willkommen ---------------- */

.welcome-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.welcome-text p { margin-bottom: 16px; }

.welcome-quote {
  margin: 26px 0 28px;
  padding: 20px 24px;
  border-left: 4px solid var(--blue);
  background: var(--blue-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.welcome-quote p {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ink);
}

.welcome-quote cite { font-style: normal; font-size: 0.88rem; font-weight: 600; color: var(--muted); }

.welcome-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.welcome-fact {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.welcome-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.05;
  color: var(--blue);
}

.welcome-fact span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }

.welcome-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.welcome-media .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.welcome-media .photo { aspect-ratio: 4 / 3; }

/* Foto-Platzhalter: später <img> hineinlegen, es überdeckt den Platzhalter */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c3cad2;
}

.photo-placeholder svg { width: 48px; height: 48px; }

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

.welcome-badge {
  position: absolute;
  left: -22px;
  bottom: -24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 16px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.welcome-badge .welcome-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welcome-badge-icon svg { width: 26px; height: 26px; }
.welcome-badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--ink); }
.welcome-badge div span { font-size: 0.85rem; color: var(--muted); }

/* ---------------- HU/AU-Band ---------------- */

.hu-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #1d2126 0%, #2a3036 100%);
  color: rgba(255, 255, 255, 0.85);
}

.hu-band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(36, 124, 191, 0.35));
  transform: skewX(-18deg);
}

.hu-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hu-band .kicker { color: #7fc0ef; }
.hu-band .kicker::before { background: #7fc0ef; }
.hu-band h2 { color: var(--white); }
.hu-band p { margin-bottom: 14px; }
.hu-band .btn { margin-top: 10px; }

.hu-dates { position: relative; display: grid; gap: 14px; }

/* Gelbe HU-Plakette, wie ein Aufkleber schräg auf die rechte Hälfte der Termine geklebt */
.hu-plakette {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 26px;
  width: 168px;
  height: auto;
  transform: translateY(-50%) rotate(-14deg);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

/* Schmaler: oben rechts auf die Ecke, damit die Uhrzeiten frei bleiben */
@media (max-width: 1280px) {
  .hu-plakette { top: -58px; right: -12px; width: 128px; transform: rotate(-14deg); }
}

@media (max-width: 760px) {
  .hu-plakette { top: -40px; right: -8px; width: 100px; }
}

.hu-date {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.hu-date-day {
  min-width: 128px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}

.hu-date-time {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: #7fc0ef;
}

.hu-date-time small { font-size: 1.1rem; color: rgba(255, 255, 255, 0.7); }

.hu-note { margin-top: 16px; font-size: 1.1rem; font-weight: 700; color: var(--white); }
.hu-note a { color: var(--white); font-weight: 700; text-decoration: underline; }

/* ---------------- Vorteile ---------------- */

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.benefit {
  padding: 30px 28px;
  background: var(--white);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.benefit-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.08rem; margin-bottom: 6px; }
.benefit p { font-size: 0.93rem; }

/* ---------------- Reveal on scroll ---------------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Ablauf: Ihr Weg zum Werkstatttermin ---------------- */

.flow {
  --flow-gap: 24px;
  --flow-circle: 84px;
  --flow-line: rgba(36, 124, 191, 0.4);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--flow-gap);
  list-style: none;
}

/* Reihenfolge der Effekte: --d = Einblend-Verzögerung, --i = Position in der Hervorhebungs-Runde */
.flow-step:nth-child(1) { --d: 0s;   --i: 0; }
.flow-step:nth-child(2) { --d: 0.4s; --i: 1; }
.flow-step:nth-child(3) { --d: 0.8s; --i: 2; }
.flow-step:nth-child(4) { --d: 1.2s; --i: 3; }
.flow-step:nth-child(5) { --d: 1.6s; --i: 4; }

.flow-step { position: relative; text-align: center; padding: 0 8px; }

/* Gestrichelte Verbindungslinie: zeichnet sich beim Einblenden, danach laufen die Striche weiter */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--flow-circle) / 2 - 1px);
  left: calc(50% + var(--flow-circle) / 2 + 10px);
  width: calc(100% + var(--flow-gap) - var(--flow-circle) - 20px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--flow-line) 0 10px, transparent 10px 18px);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s ease calc(var(--d) + 0.45s);
  animation: flow-dash 1.2s linear infinite;
}

.flow.is-visible .flow-step::after { transform: scaleX(1); }

.flow-num {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--flow-circle);
  height: var(--flow-circle);
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-light);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-num span { position: relative; color: var(--blue); }

.flow-num::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.flow-num::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  opacity: 0;
  pointer-events: none;
}

.flow-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.flow-step p { font-size: 0.95rem; }

.flow:not(.is-visible) .flow-num { opacity: 0; transform: scale(0.6); }
.flow:not(.is-visible) .flow-step h3,
.flow:not(.is-visible) .flow-step p { opacity: 0; transform: translateY(12px); }

.flow.is-visible .flow-num { animation: flow-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d) backwards; }
.flow.is-visible .flow-step h3,
.flow.is-visible .flow-step p { animation: flow-rise 0.5s ease calc(var(--d) + 0.15s) backwards; }

/* Wandernde Hervorhebung: 1 → 2 → 3 → 4 → 5, jeder Schritt 2 s, dann von vorn */
.flow.is-visible .flow-num::before { animation: flow-active 10s ease-in-out calc(2s + var(--i) * 2s) infinite backwards; }
.flow.is-visible .flow-num span { animation: flow-active-text 10s ease-in-out calc(2s + var(--i) * 2s) infinite backwards; }
.flow.is-visible .flow-num::after { animation: flow-ping 10s ease-out calc(2s + var(--i) * 2s) infinite backwards; }

.flow-step:hover .flow-num { transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 30px rgba(36, 124, 191, 0.3); }
.flow-step:hover .flow-num::before { animation: none; opacity: 1; }
.flow-step:hover .flow-num span { animation: none; color: var(--white); }

@keyframes flow-dash { to { background-position: 18px 0; } }
@keyframes flow-dash-v { to { background-position: 0 18px; } }
@keyframes flow-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes flow-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* Prozentwerte auf 10 s Rundenlänge: hervorgehoben von 0,3 s bis 1,8 s, aus bis 2,2 s */
@keyframes flow-active { 0%, 21.6%, 100% { opacity: 0; } 3.2%, 17.6% { opacity: 1; } }
@keyframes flow-active-text { 0%, 21.6%, 100% { color: var(--blue); } 3.2%, 17.6% { color: var(--white); } }
@keyframes flow-ping {
  0% { opacity: 0; transform: scale(1); }
  2.4% { opacity: 0.7; transform: scale(1); }
  17.6%, 100% { opacity: 0; transform: scale(1.5); }
}

/* ---------------- Öffnungszeiten & Kontakt ---------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }   /* beide Karten gleich hoch */

.info-card,
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--blue);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.info-card h3 svg { width: 22px; height: 22px; color: var(--blue); }

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table td {
  padding: 9px 0;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--line);
}

.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { width: 38%; font-weight: 700; color: var(--ink); }
.hours-table tr.is-today td { color: var(--blue-dark); font-weight: 700; }
.hours-table tr.is-closed td:last-child { color: var(--muted); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.open { background: rgba(30, 158, 107, 0.12); color: var(--success); }
.status-pill.closed { background: rgba(214, 69, 69, 0.1); color: var(--danger); }

.hu-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.9rem;
}

.hu-inline svg { width: 26px; height: 26px; color: var(--blue); flex-shrink: 0; }
.hu-inline strong { color: var(--ink); }

.contact-card { display: flex; flex-direction: column; justify-content: center; text-align: center; }

.contact-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-card > p { margin-bottom: 18px; }

/* Anrufen und E-Mail: zwei gleich große, gleich gestaltete Kacheln nebeneinander */
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }

.contact-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 34px 14px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-option:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-md); }

.contact-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}

.contact-option-icon svg { width: 26px; height: 26px; }

.contact-option strong { font-size: 1.1rem; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }

.contact-option > span:last-child { font-size: 0.86rem; font-weight: 700; color: var(--blue-dark); }

/* Karte über die volle Breite, erst nach Einwilligung (consent.js) */
.map-embed {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

.map-placeholder {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 20px;
  text-align: center;
  background-color: var(--blue-light);
  background-image:
    linear-gradient(rgba(36, 124, 191, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 124, 191, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(232, 241, 249, 0.4));
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.map-consent.is-loaded .map-placeholder { display: none; }

.map-placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-md);
}

.map-placeholder-icon svg { width: 26px; height: 26px; }

.map-placeholder p { max-width: 460px; font-size: 0.88rem; line-height: 1.55; }

.map-placeholder p a,
.map-route {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
}

.map-placeholder-actions .btn { padding: 11px 24px; }
.map-route { font-size: 0.9rem; }

.map-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  cursor: pointer;
}

.map-remember input { width: 16px; height: 16px; accent-color: var(--blue); }

/* ---------------- Buttons in den Termin-Boxen ---------------- */

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- Footer (dunkel, ganz unten schwarz) ---------------- */

.site-footer { background: var(--footer); color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }

/* Drei Spalten so breit wie ihr Inhalt, gleich große Lücken dazwischen, außen bündig mit dem Container */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 56px;
}

.footer-col h4 {
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-col a { color: rgba(255, 255, 255, 0.78); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-col strong { color: var(--white); }

/* Alle drei Spalten: Listen mit demselben Zeilen- und Eintragsabstand */
.footer-list { display: grid; gap: 14px; list-style: none; line-height: 1.6; }

.footer-contact li { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; align-items: start; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 3px; color: #6cb6ec; }

.footer-links a { display: inline-flex; align-items: center; gap: 10px; }
.footer-links a::before { content: ""; width: 6px; height: 6px; border-top: 2px solid #6cb6ec; border-right: 2px solid #6cb6ec; transform: rotate(45deg); }

.footer-hours li { display: grid; grid-template-columns: 64px auto; column-gap: 16px; }
.footer-hours li > span:first-child { color: var(--white); font-weight: 600; }

.footer-bottom { background: var(--footer-bottom); color: rgba(255, 255, 255, 0.55); font-size: 0.82rem; }

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-bottom-links a,
.footer-bottom-links button { padding: 0; font-size: inherit; line-height: inherit; color: rgba(255, 255, 255, 0.75); }
.footer-bottom-links a:hover,
.footer-bottom-links button:hover { color: var(--white); text-decoration: underline; }

.footer-footnote { padding-bottom: 20px; font-size: 0.76rem; color: rgba(255, 255, 255, 0.4); }

.footer-bottom .footer-credit { display: block; margin-top: -6px; padding-top: 0; font-size: 0.76rem; color: rgba(255, 255, 255, 0.4); }
.footer-credit a { color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.footer-credit a:hover { color: var(--white); text-decoration: underline; }

/* ---------------- Nach oben ---------------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-hover); }
.back-to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Leistungs-Detailseiten (Zickzack wie bei Stoffel)
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 150px;
  background: linear-gradient(120deg, #1a5f96 0%, var(--blue) 60%, #3a92d4 100%);
  color: var(--white);
}

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

.page-hero-icon {
  position: absolute;
  right: 24px;
  top: -10px;
  width: 260px;
  height: 260px;
  color: rgba(255, 255, 255, 0.14);
}

.page-hero-icon svg { width: 100%; height: 100%; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }
.breadcrumb a { color: var(--white); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: 0.6; }

.page-hero h1 {
  max-width: 820px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
}

/* Ort als kleine zweite Zeile der Überschrift (für die lokale Suche Teil der h1) */
.page-hero h1 .h1-ort {
  display: block;
  margin-top: 10px;
  font-size: 0.4em;
  letter-spacing: 0.08em;
  color: #9fd0f3;
}

.page-panel {
  position: relative;
  z-index: 2;
  margin-top: -100px;
  padding: 52px 56px 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.page-lead {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink);
}

.zz-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.zz > .zz-row:nth-child(even) .zz-media { order: -1; }
.zz > .zz-row:first-child { border-top: none; padding-top: 24px; }

.zz-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.zz-text p { margin-bottom: 14px; }
.zz-text a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; }

.check-list { display: grid; gap: 8px; margin: 6px 0 14px; }

.check-list li { position: relative; padding-left: 24px; }

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--blue);
}

/* Bildfläche im Zickzack: gestaltete Fläche mit Icon, bis ein Foto eingesetzt wird */
.zz-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(135deg, var(--blue) 0%, #1a5f96 100%);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.zz-media svg { position: relative; width: 38%; height: auto; max-width: 180px; opacity: 0.95; }
.zz-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.hu-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: center;
  margin: 8px 0 26px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
}

.hu-box h2 { grid-column: 1 / -1; font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; color: var(--white); }
.hu-box .hu-date { background: rgba(255, 255, 255, 0.06); }
.hu-box .hu-dates { grid-template-columns: 1fr 1fr; grid-column: 1 / -1; }
.hu-box p { grid-column: 1 / -1; margin: 0; }
.hu-box a { color: var(--white); font-weight: 700; text-decoration: underline; }

.footnote { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }

/* ---------------- Karriere: Stellenangebote ---------------- */

.jobs { display: grid; gap: 28px; margin: 34px 0 10px; }

.job {
  padding: 32px 34px 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.job-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }

.job-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}

.job-icon svg { width: 28px; height: 28px; }

.job h2 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-tags span { padding: 2px 10px; border-radius: 100px; background: var(--blue-light); color: var(--blue-dark); font-size: 0.8rem; font-weight: 700; }

.job > p { margin-bottom: 18px; }

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 32px; }
.job-grid h3 { margin-bottom: 8px; font-size: 1rem; color: var(--ink); }
.job-grid .check-list { font-size: 0.93rem; }

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue) 0%, #1a5f96 100%);
  color: var(--white);
}

.cta-box h2 { font-family: var(--font-display); font-style: italic; font-size: 2rem; line-height: 1.05; text-transform: uppercase; color: var(--white); }
.cta-box p { color: rgba(255, 255, 255, 0.88); }

.more-services { padding: 72px 0 88px; }

/* Kacheln in Reihen mit fester Spaltenzahl (--cols); eine unvollständige letzte Reihe steht mittig */
.more-grid { --cols: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.more-grid > .more-tile { flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); min-width: 0; }

.more-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  background: var(--white);
  border-radius: var(--radius);
  border-bottom: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.more-tile svg { width: 40px; height: 40px; color: var(--blue); }
.more-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-bottom-color: var(--blue); }

/* Kacheln als Button (öffnen ein Info-Fenster) sehen aus wie die Link-Kacheln */
button.more-tile { line-height: inherit; border-bottom: 3px solid transparent; }
button.more-tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------------- Info-Fenster zu weiteren Leistungen (<dialog>) ---------------- */

.info-dialog {
  width: min(700px, calc(100% - 32px));
  margin: auto;   /* Reset setzt margin auf 0 – „auto“ zentriert das Fenster */
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-top: 5px solid var(--blue);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: auto;
}

.info-dialog[open] { animation: consent-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.info-dialog::backdrop { background: rgba(10, 12, 15, 0.62); }
body:has(.info-dialog[open]) { overflow: hidden; }

.info-dialog-inner { position: relative; display: flex; align-items: center; gap: 34px; padding: 42px 46px 38px; }

.info-dialog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, #1a5f96 100%);
  color: var(--white);
}

.info-dialog-icon svg { width: 72px; height: 72px; }

.info-dialog h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
}

.info-dialog p { margin-bottom: 22px; }

.info-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

.info-dialog-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 700; color: var(--blue-dark); }
.info-dialog-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.info-dialog-link:hover svg { transform: translateX(4px); }

.info-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--blue);
}

.info-dialog-close:hover { background: var(--blue-light); }
.info-dialog-close svg { width: 22px; height: 22px; }

/* ---------------- Rechtliche Seiten ---------------- */

.legal-page { padding: 64px 0 100px; }
.legal-page .container { max-width: 880px; }
.legal-page h1 { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; text-transform: uppercase; margin-bottom: 8px; }
.legal-page .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 36px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 36px; margin-bottom: 12px; }
.legal-page p, .legal-page li { margin-bottom: 12px; font-size: 0.96rem; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page a { color: var(--blue-dark); text-decoration: underline; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.legal-back svg { width: 16px; height: 16px; }

.legal-note {
  margin-bottom: 30px;
  padding: 16px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--blue-50);
  font-size: 0.9rem;
  color: var(--ink);
}

.legal-note ul { margin-top: 8px; margin-bottom: 0; }
.legal-note li { margin-bottom: 4px; font-size: inherit; }

/* ==========================================================================
   Cookie-Auswahl (consent.js) – großes Fenster in der Mitte, wie bei Klaiber
   ========================================================================== */

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 12, 15, 0.62);
  animation: consent-fade 0.3s ease both;
}

.consent-overlay[hidden],
.consent-overlay [hidden] { display: none !important; }

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

.consent-modal {
  position: relative;
  width: min(740px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 34px 42px 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: consent-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.consent-modal:focus { outline: none; }

@keyframes consent-pop { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

.consent-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.consent-close:hover { background: var(--blue-light); }
.consent-close svg { width: 20px; height: 20px; }

.consent-modal h2 {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #cfd4da;
  text-align: center;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.consent-modal p { margin-bottom: 12px; font-size: 0.88rem; line-height: 1.6; }
.consent-modal a { color: var(--blue-dark); text-decoration: underline; }

/* Nur sichtbar nach Klick auf „Einstellungen“ */
.consent-settings { margin-bottom: 6px; }

.consent-usa {
  margin-bottom: 14px;
  font-size: 0.8rem !important;
  color: var(--muted);
}

.consent-settings .c-btn-save { width: 100%; padding: 13px 20px; font-size: 0.95rem; box-shadow: none; }
.consent-settings .c-btn-save:hover { transform: none; }

.consent-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 6px 0 20px;
  padding-top: 18px;
  border-top: 1px solid #cfd4da;
}

.consent-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.consent-choice input { width: 22px; height: 22px; accent-color: var(--blue); cursor: pointer; }
.consent-choice input:disabled { cursor: not-allowed; }

.consent-details {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.consent-detail {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.84rem;
}

.consent-detail h3 { font-size: 0.95rem; margin-bottom: 6px; }
.consent-detail dl { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; }
.consent-detail dt { font-weight: 700; color: var(--ink); }

.consent-buttons {
  position: sticky;
  bottom: -26px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 -8px;
  padding: 12px 8px 4px;
  background: var(--white);
}

.consent-buttons .btn { width: 100%; padding: 14px 20px; font-size: 0.95rem; box-shadow: none; white-space: normal; }
.consent-buttons .btn:hover { transform: none; }
.c-btn-save { background: #eceef1; color: var(--ink); }
.c-btn-save:hover { background: #e0e3e7; }
/* "Alle akzeptieren" und "Nur essenzielle" gleichwertig gestaltet (kein Nudging) */
.c-btn-choice { background: var(--blue); color: var(--white); }
.c-btn-choice:hover { background: var(--blue-hover); }
.c-btn-details { background: #111; color: var(--white); }
.c-btn-details:hover { background: #000; }

.consent-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 0.84rem;
}

.consent-links a,
.consent-links button { color: var(--muted); text-decoration: none; font-size: inherit; }
.consent-links a:hover,
.consent-links button:hover { color: var(--blue-dark); text-decoration: underline; }

body.consent-open { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .header-info.hide-lg { display: none; }
  .main-nav a.nav-link { padding: 0 13px; }
}

@media (max-width: 980px) {
  .job-grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; padding: 56px 0; }
  .hero::after { background: linear-gradient(90deg, rgba(9, 24, 40, 0.9) 0%, rgba(9, 24, 40, 0.72) 55%, rgba(9, 24, 40, 0.35) 100%); }
  .hero-bg img { object-position: 70% 40%; }
  .welcome-grid, .hu-grid, .contact-grid { grid-template-columns: 1fr; }
  .welcome-media { max-width: 560px; }
  .welcome-badge { left: 12px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .zz-row { grid-template-columns: 1fr; gap: 26px; }
  .zz-row .zz-media { order: -1; }
  .page-panel { padding: 36px 28px 20px; }
  .more-grid { --cols: 3; }
  .more-grid.is-all { --cols: 5; }   /* Startseite: 13 Kacheln bleiben bis 761 px in Fünferreihen */
  .more-grid.is-info { --cols: 4; }
  /* Ablauf: 5 Schritte nebeneinander werden hier zu eng, daher senkrecht */
  .flow { --flow-circle: 64px; --flow-gap: 28px; grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .flow-step { text-align: left; min-height: var(--flow-circle); padding: 0 0 0 calc(var(--flow-circle) + 20px); }
  .flow-num { position: absolute; top: 0; left: 0; margin: 0; font-size: 1.6rem; }
  .flow-step h3 { padding-top: 6px; }
  .flow-step:not(:last-child)::after {
    top: calc(var(--flow-circle) + 8px);
    left: calc(var(--flow-circle) / 2 - 1px);
    width: 2px;
    height: calc(100% + var(--flow-gap) - var(--flow-circle) - 16px);
    background: repeating-linear-gradient(180deg, var(--flow-line) 0 10px, transparent 10px 18px);
    transform: scaleY(0);
    transform-origin: center top;
    animation-name: flow-dash-v;
  }
  .flow.is-visible .flow-step::after { transform: scaleY(1); }
}

/* Handy-Navigation: blaue Leiste klappt als Menü unter dem Kopf auf */
@media (max-width: 900px) {
  .topbar-contact { display: flex; }
  .header-contact { display: none; }
  .nav-toggle { display: flex; }
  .site-header { position: sticky; top: 0; box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08); }
  .brand-logo { width: 116px; }
  .brand-name { font-size: 1.35rem; }
  .brand-sub { font-size: 0.72rem; }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-top, 70px);
    max-height: calc(100vh - var(--nav-top, 70px));
    overflow-y: auto;
    display: none;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.25);
  }

  .main-nav.open { display: block; }
  .main-nav .container { flex-direction: column; gap: 0; padding: 8px 0 18px; }
  .main-nav ul { flex-direction: column; }
  .main-nav a.nav-link { height: auto; padding: 14px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .main-nav a.nav-link::after { display: none; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  /* Handy: Foto oben als eigener Block, Text darunter auf Dunkelblau */
  .hero { display: block; min-height: 0; padding: 0 0 48px; }
  .hero-bg { position: relative; inset: auto; z-index: 0; }
  .hero-bg img { height: auto; aspect-ratio: 4 / 3; object-position: center; animation: none; }
  .hero::after { inset: auto 0; top: calc(75vw - 90px); height: 90px; z-index: 1; background: linear-gradient(180deg, rgba(13, 34, 54, 0), #0d2236); }
  .hero .container { z-index: 2; padding-top: 22px; }
  .welcome-facts { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .welcome-fact { padding: 12px 6px; }
  .welcome-fact strong { font-size: 1.5rem; }
  /* Handy: Plakette unter den Fotos statt darüber, sonst verdeckt sie im kleinen Feld zu viel */
  .welcome-badge { position: static; grid-column: 1 / -1; justify-self: start; margin-top: 2px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .info-card, .contact-card { padding: 26px 20px; }
  /* Handy: Kacheln untereinander, Symbol links, damit Nummer und Adresse nicht umbrechen */
  .contact-options { grid-template-columns: 1fr; gap: 10px; }
  .contact-option { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px 18px; text-align: left; }
  .contact-option-icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .contact-option-icon svg { width: 22px; height: 22px; }
  .contact-option strong { font-size: 1rem; white-space: nowrap; overflow-wrap: normal; }
  .hu-date { padding: 14px 16px; gap: 12px; }
  .hu-date-day { min-width: 100px; font-size: 1.3rem; }
  .hu-date-time { font-size: 1.9rem; }
  .hu-box { padding: 22px 18px; }
  .hu-box .hu-dates { grid-template-columns: 1fr; }
  .page-hero { padding: 36px 0 130px; }
  .page-hero-icon { width: 160px; height: 160px; top: auto; bottom: -110px; right: -20px; }
  .page-panel { margin-top: -96px; padding: 28px 20px 12px; }
  .zz-row { padding: 32px 0; }
  .cta-box { padding: 26px 22px; }
  .more-grid, .more-grid.is-all, .more-grid.is-info { --cols: 2; }
  .info-dialog-inner { flex-direction: column; gap: 18px; padding: 36px 22px 26px; text-align: center; }
  .info-dialog-icon { width: 104px; height: 104px; }
  .info-dialog-icon svg { width: 52px; height: 52px; }
  .info-dialog h2 { font-size: 1.7rem; }
  .info-dialog-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .job { padding: 24px 20px 14px; }
  .job-head { align-items: flex-start; }
  .job-icon { width: 48px; height: 48px; }
  .job-icon svg { width: 24px; height: 24px; }
  .map-embed iframe, .map-placeholder { min-height: 320px; height: auto; }
  .map-embed iframe { height: 320px; }
  .consent-modal { padding: 28px 20px 20px; }
  .consent-modal h2 { font-size: 1.2rem; padding-right: 28px; padding-left: 28px; }
  .consent-detail dl { grid-template-columns: 1fr; }
  /* Handy: „Akzeptieren“ und „Ablehnen“ nebeneinander, „Einstellungen“ darunter – immer sichtbar */
  .consent-buttons { grid-template-columns: 1fr 1fr; bottom: -20px; gap: 8px; }
  .consent-buttons [data-consent-settings] { grid-column: 1 / -1; }
  .consent-buttons .btn { padding: 12px 10px; font-size: 0.86rem; line-height: 1.25; }
  .consent-modal p { font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .consent-overlay, .consent-modal { animation: none; }
}

/* ---------------- Leistungsseiten mit Foto (statt blauer Fläche) ---------------- */

.page-hero.has-photo { isolation: isolate; padding: 96px 0 200px; background: #111418; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

/* Dunkler Verlauf links, damit die weiße Überschrift auf hellem Hintergrund lesbar bleibt */
.page-hero.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 12, 15, 0.8) 0%, rgba(10, 12, 15, 0.55) 40%, rgba(10, 12, 15, 0.1) 75%);
}

/* Helle Fotos oder lange Überschriften: kräftiger abdunkeln, auch rechts */
.page-hero.has-photo.is-bright::after {
  background: linear-gradient(90deg, rgba(10, 12, 15, 0.85) 0%, rgba(10, 12, 15, 0.75) 45%, rgba(10, 12, 15, 0.55) 100%);
}

.zz-media.has-photo { background: var(--bg); }

@media (max-width: 760px) {
  .page-hero.has-photo { padding: 64px 0 150px; }
  /* Handy: die Überschrift reicht weit nach rechts, daher dort weniger aufhellen */
  .page-hero.has-photo::after { background: linear-gradient(90deg, rgba(10, 12, 15, 0.82) 0%, rgba(10, 12, 15, 0.62) 55%, rgba(10, 12, 15, 0.45) 100%); }
  .page-hero.has-photo.is-bright::after { background: rgba(10, 12, 15, 0.72); }
}

/* Schmale Handys: Logo, Abstand und Schrift kleiner, damit „MC Automobile“ neben den Menüknopf passt */
@media (max-width: 370px) {
  .header-inner { gap: 12px; }
  .brand { gap: 10px; }
  .brand-logo { width: 92px; }
  .brand-name { font-size: 1.22rem; }
}

@media (max-width: 350px) {
  .info-card, .contact-card { padding: 22px 14px; }
  .contact-option { padding: 14px 12px; column-gap: 10px; }
  .contact-option strong { font-size: 0.94rem; }
  .brand-logo { width: 72px; }
  .brand-name { font-size: 1.12rem; }
  .brand-sub { font-size: 0.66rem; }
}
