/* ============================================================
   Automaten Service Zimmermann — Stylesheet
   Design: hell, ruhig, Apple-inspiriert. Palette siehe :root.
   ============================================================ */

:root {
  --blue: #0A6CFF;
  --blue-hover: #0857CC;
  --navy: #0B1B33;
  --text: #1D2939;
  --text-soft: #5B6B7F;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --bg-chip: #E8F1FF;
  --border: #E3E9F2;
  --success: #12805C;
  --error: #C93A3A;
  --radius-card: 16px;
  --radius-input: 12px;
  --shadow-hover: 0 12px 32px rgba(11, 27, 51, 0.08);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --content: 1140px;
  --content-narrow: 720px;
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.3em; }

/* ---------- Typografie ---------- */
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: 0; }

/* Keine einzelnen Wörter am Absatzende (Hurenkinder) */
p, li, .lead, summary, figcaption { text-wrap: pretty; }

.accent { color: var(--blue); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-soft); max-width: 40em; }

/* ---------- Layout ---------- */
.container { max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--content-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: clamp(72px, 10vw, 150px) 0; }
section.tight { padding: clamp(56px, 7vw, 100px) 0; }
.bg-alt { background: var(--bg-alt); }

.section-head { max-width: var(--content-narrow); margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p { margin-top: 16px; color: var(--text-soft); font-size: 1.1rem; }

.eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 6px 16px;
  background: var(--bg-chip); color: var(--blue);
  border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em;
}

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

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--content); margin: 0 auto; padding: 14px 24px;
}

.brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; color: var(--text-soft); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; }
.nav-links a { color: var(--text); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; color: var(--navy);
}
.nav-phone:hover { color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; border: 1.5px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(10, 108, 255, 0.25); }

.btn-secondary { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

.btn-small { padding: 10px 20px; font-size: 0.9rem; }

.btn-chip {
  padding: 8px 16px; font-size: 0.85rem; font-weight: 600;
  background: var(--bg-chip); color: var(--blue); border: none;
}
.btn-chip:hover { background: #DCEBFF; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(140px, 18vw, 220px) 0 clamp(72px, 9vw, 130px);
  background: linear-gradient(180deg, #F4F8FE 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-note { margin-top: 20px; font-size: 0.9rem; color: var(--text-soft); }

.hero-media { position: relative; }
.hero-media img, .hero-media svg { width: 100%; max-width: 420px; margin: 0 auto; }
.hero-glow {
  position: absolute; inset: 10% 5%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 108, 255, 0.10) 0%, transparent 70%);
}

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

.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 32px 28px;
  transition: transform 0.2s var(--ease-premium), box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.bg-alt .card { background: #fff; }
.card h3 { display: flex; align-items: center; gap: 12px; }
.card p { color: var(--text-soft); font-size: 0.97rem; flex-grow: 1; }
.card-link { font-weight: 600; font-size: 0.95rem; }
.card-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: var(--bg-chip); display: inline-flex;
  align-items: center; justify-content: center; color: var(--blue);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- Problem-Liste ---------- */
.pain-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; }
.pain-list li {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 28px;
}
.pain-list strong { display: block; color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.pain-list li p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Ablauf / Timeline ---------- */
.steps { position: relative; max-width: var(--content-narrow); margin: 0 auto; }
.steps ol { list-style: none; padding: 0; margin: 0; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.steps .progress-line {
  position: absolute; left: 21px; top: 8px; width: 2px;
  background: var(--blue); height: 0; transition: height 0.1s linear;
}
.steps li { position: relative; padding: 0 0 40px 68px; }
.steps li:last-child { padding-bottom: 0; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-chip); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text-soft); }

/* ---------- Sticky Showcase (Automat + Vorteile) ---------- */
.showcase { position: relative; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.showcase-sticky { position: sticky; top: 120px; align-self: start; }
.showcase-sticky img, .showcase-sticky svg { max-width: 360px; margin: 0 auto; }
.showcase-items { display: flex; flex-direction: column; gap: clamp(48px, 8vh, 96px); justify-content: center; }
.showcase-item { opacity: 0.35; transition: opacity 0.4s; }
.showcase-item.active { opacity: 1; }
.showcase-item h3 { margin-bottom: 10px; font-size: 1.5rem; }
.showcase-item p { color: var(--text-soft); }

/* ---------- Feature-Split (Teaser-Sektionen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--text-soft); margin-bottom: 14px; }
.split .btn { margin-top: 10px; }
.split-media {
  border-radius: var(--radius-card); overflow: hidden;
  background: linear-gradient(160deg, #EAF2FE 0%, #F6FAFF 100%);
  padding: clamp(24px, 4vw, 48px);
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.split-media img, .split-media svg { max-width: 300px; }
/* Fotorealistische Bilder: füllen die Fläche statt zu schweben */
.split-media.photo { padding: 0; min-height: 0; }
.split-media.photo img,
.split-media.photo video { width: 100%; height: 100%; max-width: none; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-media img.photo,
.hero-media video.photo { max-width: 420px; width: 100%; border-radius: 24px; box-shadow: 0 24px 64px rgba(11, 27, 51, 0.18); display: block; margin: 0 auto; }
.page-hero .hero-media img.photo { max-width: 380px; }

/* ---------- Chips (Ortsliste etc.) ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 8px 18px; border-radius: 999px;
  background: var(--bg-chip); color: var(--blue);
  font-size: 0.9rem; font-weight: 600;
}
.chip.muted { background: #fff; border: 1px solid var(--border); color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--content-narrow); margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: #fff; margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px;
  font-weight: 600; color: var(--navy); position: relative; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; font-weight: 400;
  color: var(--blue); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; color: var(--text-soft); }

/* ---------- Kontakt / Formular ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

.contact-info h2 { margin-bottom: 18px; }
.contact-info > p { color: var(--text-soft); margin-bottom: 24px; }
.contact-direct {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px; margin-top: 8px;
}
.contact-direct strong { color: var(--navy); }
.contact-direct a.phone-big {
  display: block; font-size: 1.6rem; font-weight: 700;
  color: var(--navy); margin: 8px 0 4px;
}
.contact-direct a.phone-big:hover { color: var(--blue); text-decoration: none; }
.contact-direct p { font-size: 0.9rem; color: var(--text-soft); }

.form-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: clamp(24px, 4vw, 40px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.form-field label .opt { font-weight: 400; color: var(--text-soft); }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-input); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 108, 255, 0.12);
}

.form-check { display: flex; gap: 10px; align-items: flex-start; grid-column: 1 / -1; }
.form-check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); }
.form-check label { font-size: 0.88rem; color: var(--text-soft); font-weight: 400; }

.form-note { grid-column: 1 / -1; font-size: 0.82rem; color: var(--text-soft); }

/* Honeypot: für Menschen unsichtbar */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { grid-column: 1 / -1; padding: 14px 18px; border-radius: var(--radius-input); font-weight: 600; display: none; }
.form-status.error { display: block; background: #FBEDED; color: var(--error); }
.form-status.success { display: block; background: #E9F6F1; color: var(--success); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B9C4D6; padding: 64px 0 32px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #B9C4D6; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin-top: 12px; max-width: 30em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; font-size: 0.85rem; color: #8A97AC;
}

/* ---------- Floating CTA (Mobile) ---------- */
.floating-cta {
  position: fixed; bottom: 20px; left: 16px; right: 16px; z-index: 90;
  display: none; opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
}
.floating-cta.show { opacity: 1; transform: none; }
.floating-cta .btn { width: 100%; box-shadow: 0 8px 24px rgba(11, 27, 51, 0.25); }

/* ---------- Unterseiten ---------- */
.page-hero {
  padding: clamp(130px, 16vw, 190px) 0 clamp(48px, 6vw, 80px);
  background: linear-gradient(180deg, #F4F8FE 0%, #FFFFFF 100%);
}
.page-hero h1 { max-width: 18em; margin-bottom: 20px; }
.page-hero .lead { max-width: 38em; }

.prose { max-width: var(--content-narrow); margin: 0 auto; }
.prose h2 { margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 0; }
.prose li { margin-bottom: 8px; }

.cta-banner {
  background: linear-gradient(135deg, #0B1B33 0%, #12325E 100%);
  border-radius: 24px; padding: clamp(40px, 6vw, 72px);
  text-align: center; color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: #C4D2E6; max-width: 36em; margin: 0 auto 28px; }

/* Rechtsseiten */
.legal { max-width: var(--content-narrow); margin: 0 auto; }
.legal h1 { margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text); margin-bottom: 12px; font-size: 0.97rem; }
.legal .marker { background: #FFF4D6; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- Medien-Platzhalter (bis echte Fotos vorliegen) ---------- */
.media-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 28px; width: 100%;
  border: 2px dashed var(--border); border-radius: var(--radius-card);
  background: repeating-linear-gradient(135deg, var(--bg-alt), var(--bg-alt) 12px, #fff 12px, #fff 24px);
  color: var(--text-soft); box-sizing: border-box;
}
.media-placeholder svg { width: 40px; height: 40px; color: var(--blue); opacity: 0.55; flex-shrink: 0; }
.media-placeholder .ph-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--blue); background: var(--bg-chip); padding: 4px 12px; border-radius: 999px;
}
.media-placeholder p { font-size: 0.92rem; font-style: italic; max-width: 26em; margin: 0; line-height: 1.5; }
.hero-media .media-placeholder { aspect-ratio: 3 / 4; max-width: 420px; margin: 0 auto; min-height: 340px; }
.split-media.photo .media-placeholder { aspect-ratio: 4 / 3; min-height: 260px; }
.showcase-sticky .media-placeholder { aspect-ratio: 3 / 4; max-width: 320px; margin: 0 auto; min-height: 300px; }

/* ---------- Standorte-Liste ---------- */
.standort-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; padding: 0; max-width: var(--content-narrow); margin: 32px auto 0; }
.standort-list li {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  font-size: 0.95rem; color: var(--text);
}
.standort-list li svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

/* ---------- "Mehr als nur ein Automat" Liste ---------- */
.offer-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.offer-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border); font-size: 1rem; color: var(--text);
}
.offer-list li:last-child { border-bottom: none; }
.offer-list li svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.offer-list .tag-ergaenzend { display: inline-block; margin-left: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-soft); background: var(--bg-alt); padding: 2px 10px; border-radius: 999px; }

/* ---------- Vertrauenszeile am Formular (dezent) ---------- */
.trust-points {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-soft);
}
.trust-points span { display: inline-flex; align-items: center; gap: 7px; }
.trust-points svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }

/* ---------- Checklisten-Karte (Vorteile) ---------- */
.check-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 44px); box-shadow: 0 16px 40px rgba(11, 27, 51, 0.07);
}
.check-card ul { list-style: none; padding: 0; margin: 0; }
.check-card li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.check-card li:last-child { border-bottom: none; padding-bottom: 0; }
.check-card li:first-child { padding-top: 0; }
.check-card strong { display: block; color: var(--navy); margin-bottom: 2px; }
.check-card p { font-size: 0.92rem; color: var(--text-soft); margin: 0; }
.check-icon {
  width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px;
  border-radius: 50%; background: #E9F6F1; color: var(--success);
  display: inline-flex; align-items: center; justify-content: center;
}
.check-icon svg { width: 14px; height: 14px; }

/* ---------- Gründer-Abschnitt ---------- */
.founder { background: var(--bg-alt); }
.founder-quote {
  font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--navy);
  font-weight: 500; line-height: 1.5; margin: 18px 0;
}
.founder-name { display: flex; flex-direction: column; margin-top: 24px; }
.founder-name strong { color: var(--navy); font-size: 1.05rem; }
.founder-name span { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- ESG / Nachhaltigkeit (dezent) ---------- */
.esg-row { max-width: var(--content-narrow); margin: 28px auto 0; }
.esg-row h3 { font-size: 0.95rem; color: var(--text-soft); font-weight: 600; text-align: center; margin-bottom: 14px; letter-spacing: 0.01em; }
.esg-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.esg-chips span { font-size: 0.82rem; color: var(--text-soft); background: #fff; border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; }

/* ---------- Formular: Fieldsets & bedingte Felder ---------- */
.form-field.conditional { display: none; }
.form-field.conditional.show { display: flex; }
.form-field.conditional.full.show { display: flex; }
.form-subhead { grid-column: 1 / -1; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue); margin: 8px 0 -4px; padding-top: 12px; border-top: 1px solid var(--border); }
.form-field input[type="file"] { padding: 10px; font-size: 0.92rem; background: var(--bg-alt); cursor: pointer; }
.form-hint { font-size: 0.8rem; color: var(--text-soft); margin-top: 2px; }

/* ---------- Cookie-Consent ---------- */
.cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(16px);
  width: min(680px, calc(100vw - 32px)); z-index: 200;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: 0 16px 48px rgba(11, 27, 51, 0.16);
  padding: 22px 24px; opacity: 0; transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}
.cookie-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cookie-banner-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cookie-banner-head h2 { margin-bottom: 0; }
.cookie-icon { width: 30px; height: 30px; flex-shrink: 0; animation: cookieWiggle 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes cookieWiggle {
  0%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(-9deg); }
  16% { transform: rotate(7deg); }
  24% { transform: rotate(0deg); }
}
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 16px; }
.cookie-banner p a { white-space: nowrap; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-banner .btn { padding: 10px 20px; font-size: 0.9rem; }
.cookie-banner .cookie-link { font-size: 0.85rem; color: var(--text-soft); margin-left: auto; }

/* Cookie-Einstellungen: Schalter */
.consent-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.consent-row:last-of-type { border-bottom: none; }
.consent-row strong { display: block; color: var(--navy); margin-bottom: 4px; }
.consent-row p { font-size: 0.9rem; color: var(--text-soft); margin: 0; }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; border-radius: 999px; background: #D5DEEA;
  transition: background 0.2s; cursor: pointer;
}
.switch .slider::before {
  content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px;
  border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.switch input:checked + .slider { background: var(--blue); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: var(--success); opacity: 0.55; cursor: not-allowed; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium); }
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 500ms; }

/* Hero-Eingangsanimation */
.hero-in { opacity: 0; transform: translateY(20px); animation: heroIn 0.7s var(--ease-premium) forwards; }
.hero-in.d1 { animation-delay: 0.1s; }
.hero-in.d2 { animation-delay: 0.22s; }
.hero-in.d3 { animation-delay: 0.34s; }
.hero-in.d4 { animation-delay: 0.46s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Dezenter Parallax auf Hero-Medium (JS setzt --plx) */
.hero-media { transform: translateY(calc(var(--plx, 0) * 1px)); will-change: transform; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .hero-in { animation: none; opacity: 1; transform: none; }
  .hero-media { transform: none; }
  .card:hover { transform: none; }
  .cookie-icon { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  /* Lange deutsche Komposita auf schmalen Screens sauber trennen */
  .prose p, .split p, .card p, .lead, .faq details p, .legal p, .legal li { hyphens: auto; -webkit-hyphens: auto; }
  .brand-name { font-size: 0.92rem; }
  .brand-sub { font-size: 0.62rem; }
  .nav-phone { font-size: 0.85rem; white-space: nowrap; }
  .nav { padding: 12px 16px; gap: 10px; }
  .nav-links {
    position: fixed; inset: 0; background: #fff; z-index: 99;
    flex-direction: column; justify-content: center; gap: 28px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; font-weight: 600; }
  .nav-toggle { display: block; position: relative; z-index: 100; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta .btn { display: none; }

  .hero-grid, .split, .split.reverse, .showcase-grid, .contact-grid { grid-template-columns: 1fr; }
  /* Grid-Items dürfen schmaler werden als ihr längstes Wort (kein Seitenüberlauf) */
  .hero-grid > *, .split > *, .showcase-grid > *, .contact-grid > * { min-width: 0; }
  /* Lange Komposita in Überschriften auf schmalen Screens trennen */
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  .split.reverse .split-media { order: 0; }
  .hero-media { order: -1; }
  .hero-media img, .hero-media svg, .hero-media video { max-width: 260px; }
  .showcase-sticky { position: static; }
  .showcase-item { opacity: 1; }
  .grid-3, .grid-2, .pain-list, .standort-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .floating-cta { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-head { text-align: left; }
  .chip-row { justify-content: flex-start; }
}

/* Sehr schmale Screens: Header kompakt, damit nichts überläuft */
@media (max-width: 430px) {
  .nav { padding: 10px 12px; gap: 6px; }
  .brand-name { font-size: 0.8rem; }
  .brand-sub { font-size: 0.55rem; }
  .nav-phone { font-size: 0.8rem; gap: 5px; }
  .nav-phone svg { width: 15px; height: 15px; }
  .nav-toggle { padding: 6px; }
}
