/* ---------- Inter – lokal gehostet (DSGVO-konform, kein Google-Server) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/inter-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/inter-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* =========================================
   TACHO-TEAM P.W. – Stylesheet
   Modernes, schlichtes Design
   Hell/Neutral (Grau/Weiß) mit Blau-Akzent
   ========================================= */

:root {
  --color-bg: #f6f7f9;
  --color-surface: #ffffff;
  --color-text: #1b1f27;
  --color-text-muted: #5b6472;
  --color-border: #e5e8ee;
  --color-accent: #2563eb;
  --color-accent-dark: #1e4fc4;
  --color-accent-light: #eaf0ff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.12);
  --max-width: 1160px;
  --color-accent-soft: #4f8bff;
  --color-accent-deep: #1a3fb0;
  --color-header-bg: rgba(246, 247, 249, 0.85);
  --color-footer-bg: #12151b;
  --color-footer-text: #b7bdc9;
  --color-footer-muted: #8c93a3;
  --color-footer-strong: #ffffff;
  --color-footer-line: rgba(255,255,255,0.08);
  --color-notice-border: #cddcff;
  --color-notice-text: #1f3a75;
  --color-notice-strong: #14265a;
  --color-warn-bg: #fff6e8;
  --color-warn-border: #f4dfb0;
  --color-warn-text: #6b4f10;
  --color-warn-icon: #b8860b;
  --color-warn-strong: #4a370a;
  --color-ok-bg: #e8f7ee;
  --color-ok-border: #bfe6cd;
  --color-ok-text: #1e6b3a;
  --color-err-bg: #fdeeee;
  --color-err-border: #f2c7c7;
  --color-err-text: #8a2323;
  --color-gauge-track: var(--color-border);
  color-scheme: light;
  --font-base: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Utility ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--muted { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--color-text-muted); }
.lede { font-size: 1.15rem; color: var(--color-text-muted); max-width: 640px; }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-ghost { color: var(--color-accent); font-weight: 600; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; color: var(--color-text); }
.brand-mark {
  width: 40px; height: 40px;
  display: block; flex-shrink: 0;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-weight: 500; font-size: 0.72rem; color: var(--color-text-muted); letter-spacing: 0.03em; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-weight: 500; color: var(--color-text-muted); font-size: 0.95rem; transition: color 0.15s ease; }
.nav a:hover, .nav a.active { color: var(--color-accent); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--color-text); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--color-accent-light), transparent 60%),
    var(--color-bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-badge { font-size: 0.85rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-badge svg { color: var(--color-accent); flex-shrink: 0; }

.hero-visual {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
}
.hero-visual .gauge {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(var(--color-accent) 0deg 250deg, var(--color-gauge-track) 250deg 360deg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  max-width: 260px;
}
.hero-visual .gauge-inner {
  width: 78%; height: 78%;
  background: var(--color-surface);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.hero-visual .gauge-inner strong { font-size: 2rem; }
.hero-visual .gauge-inner span { font-size: 0.8rem; color: var(--color-text-muted); }
.hero-visual-caption { text-align: center; margin-top: 20px; font-weight: 600; font-size: 0.9rem; color: var(--color-text-muted); }

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.icon-tile {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.service-card .price-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 10px;
  border-radius: 999px;
}

.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--color-text); font-weight: 500; }
.list-check li svg { flex-shrink: 0; color: var(--color-accent); margin-top: 3px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: 2.2rem; color: var(--color-accent); font-weight: 800; }
.stat span { color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-accent), var(--color-accent-deep));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.cta-band .btn-secondary { background: #fff; border-color: transparent; }

/* ---------- Page header (Unterseiten) ---------- */
.page-header {
  padding: 64px 0 40px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--color-accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: flex-start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-item .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.contact-info-item h2, .contact-info-item h3 { margin-bottom: 4px; font-size: 1rem; }
.contact-info-item p { margin-bottom: 0; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-surface);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.map-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 320px;
  background:
    linear-gradient(var(--color-accent-light), var(--color-accent-light)),
    repeating-linear-gradient(45deg, var(--color-border) 0, var(--color-border) 1px, transparent 1px, transparent 16px);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-weight: 600;
  text-align: center;
  padding: 24px;
  margin-top: 24px;
}

/* ---------- Team / About ---------- */
.value-card { text-align: left; }
.timeline { border-left: 2px solid var(--color-border); padding-left: 28px; margin-left: 6px; }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}
.timeline-item h3 { margin-bottom: 6px; }
.timeline-item .year { font-size: 0.85rem; font-weight: 700; color: var(--color-accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: var(--color-footer-strong); font-size: 0.95rem; margin-bottom: 18px; }
.site-footer a { color: var(--color-footer-text); display: block; margin-bottom: 10px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--color-footer-strong); }
.site-footer p { color: var(--color-footer-muted); font-size: 0.92rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand strong { color: var(--color-footer-strong); }
.footer-bottom {
  border-top: 1px solid var(--color-footer-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-footer-muted);
}
.footer-bottom a:hover { color: var(--color-footer-strong); }

/* ---------- Notice box ---------- */
.notice {
  display: flex;
  gap: 14px;
  background: var(--color-accent-light);
  border: 1px solid var(--color-notice-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--color-notice-text);
}
.notice svg { flex-shrink: 0; margin-top: 2px; color: var(--color-accent); }
.notice strong { color: var(--color-notice-strong); }
.notice.notice--warn {
  background: var(--color-warn-bg);
  border-color: var(--color-warn-border);
  color: var(--color-warn-text);
}
.notice.notice--warn svg { color: var(--color-warn-icon); }
.notice.notice--warn strong { color: var(--color-warn-strong); }

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 40px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--color-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
  }
  .nav.nav-open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: block; }
  .cta-band { flex-direction: column; text-align: center; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats, .steps { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ---------- Map embed ---------- */
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- Form status ---------- */
.form-status { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.form-status--ok { background: var(--color-ok-bg); border: 1px solid var(--color-ok-border); color: var(--color-ok-text); }
.form-status--err { background: var(--color-err-bg); border: 1px solid var(--color-err-border); color: var(--color-err-text); }
.footer-bottom a { display: inline; margin-bottom: 0; }

/* ---------- Karten-Einwilligung (Zwei-Klick-Lösung) ---------- */
.map-consent {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px 24px;
  background:
    linear-gradient(var(--color-accent-light), var(--color-accent-light)),
    repeating-linear-gradient(45deg, var(--color-border) 0, var(--color-border) 1px, transparent 1px, transparent 16px);
}
.map-consent svg { color: var(--color-accent); }
.map-consent p { margin: 0; font-size: 0.9rem; max-width: 420px; }

/* ---------- Eingebettetes n8n-Kontaktformular ---------- */
.form-embed { border-radius: var(--radius-sm); overflow: hidden; }
.form-embed iframe { display: block; width: 100%; min-height: 780px; border: 0; }
.form-consent {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 40px 24px; min-height: 320px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
}
.form-consent svg { color: var(--color-accent); }
.form-consent p { margin: 0; font-size: 0.9rem; max-width: 420px; }

/* ---------- Verlinkte Leistungskacheln ---------- */
a.service-card { display: block; color: inherit; }
a.service-card h3 { transition: color 0.15s ease; }
a.service-card:hover h3 { color: var(--color-accent); }
a.service-card:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Kopfzeile darf breiter sein als der Inhalt – schafft Platz für 6 Menüpunkte */
.site-header .container { max-width: 1320px; }
.site-header .nav { gap: 26px; }
.site-header .nav a { white-space: nowrap; }
.site-header .brand-text { white-space: nowrap; }
.nav-phone { white-space: nowrap; }

@media (max-width: 1250px) {
  .site-header .nav { gap: 20px; }
  .site-header .nav a { font-size: 0.9rem; }
  .nav-phone { display: none; }
}
@media (max-width: 980px) and (min-width: 721px) {
  .site-header .nav { gap: 14px; }
  .site-header .nav a { font-size: 0.85rem; }
  .nav-cta .btn-secondary { display: none; }
}

/* ---------- FAQ ---------- */
.faq-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 auto 48px; max-width: 900px; justify-content: center;
}
.faq-nav a {
  font-size: 0.88rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text-muted); transition: all 0.15s ease;
}
.faq-nav a:hover { border-color: var(--color-accent); color: var(--color-accent); }

.faq-group { max-width: 860px; margin: 0 auto 56px; }
.faq-group > h2 {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 2px solid var(--color-border);
  scroll-margin-top: 96px;
}
.faq-group > h2 svg { color: var(--color-accent); flex-shrink: 0; }

details.faq {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
details.faq[open] { box-shadow: var(--shadow-sm); border-color: var(--color-notice-border); }
details.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 600; font-size: 1rem; position: relative;
  color: var(--color-text);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.faq summary:hover { color: var(--color-accent); }
details.faq summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; border-radius: var(--radius-sm); }
.faq-answer { padding: 0 20px 20px; }
.faq-answer p { margin-bottom: 12px; font-size: 0.96rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 0 0 12px; padding-left: 20px; color: var(--color-text-muted); font-size: 0.96rem; }
.faq-answer li { margin-bottom: 6px; }
.faq-answer a { color: var(--color-accent); font-weight: 600; }

/* =========================================
   Dark Mode – wird über data-theme="dark"
   am <html>-Element aktiviert
   ========================================= */
html[data-theme="dark"] {
  --color-bg: #0f1319;
  --color-surface: #171c24;
  --color-text: #e8ecf3;
  --color-text-muted: #a3adbd;
  --color-border: #2a323e;
  --color-accent: #5b8cff;
  --color-accent-dark: #7aa2ff;
  --color-accent-light: #1b2540;
  --color-accent-soft: #4f8bff;
  --color-accent-deep: #1a3fb0;

  --color-header-bg: rgba(15, 19, 25, 0.85);
  --color-footer-bg: #0a0d12;
  --color-footer-text: #a3adbd;
  --color-footer-muted: #78828f;
  --color-footer-strong: #e8ecf3;
  --color-footer-line: rgba(255,255,255,0.07);

  --color-notice-border: #2f4172;
  --color-notice-text: #bcd0ff;
  --color-notice-strong: #dce7ff;

  --color-warn-bg: #2a2113;
  --color-warn-border: #4d3d1c;
  --color-warn-text: #f0d9a8;
  --color-warn-icon: #e0b653;
  --color-warn-strong: #f7e9c8;

  --color-ok-bg: #122a1c;
  --color-ok-border: #245035;
  --color-ok-text: #a8e0be;
  --color-err-bg: #2c1618;
  --color-err-border: #56272b;
  --color-err-text: #f0b6ba;

  --color-gauge-track: #2a323e;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

/* Im Dunkelmodus wirkt der Hero-Verlauf sonst zu grell */
html[data-theme="dark"] .hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(91, 140, 255, 0.14), transparent 60%),
    var(--color-bg);
}
html[data-theme="dark"] .btn-primary { color: #0f1319; }
html[data-theme="dark"] .cta-band .btn-secondary { background: #e8ecf3; color: #10141b; }
html[data-theme="dark"] .brand-mark { color: #0f1319; }
html[data-theme="dark"] .map-consent {
  background:
    linear-gradient(var(--color-accent-light), var(--color-accent-light)),
    repeating-linear-gradient(45deg, var(--color-border) 0, var(--color-border) 1px, transparent 1px, transparent 16px);
}

/* Sanfter Übergang beim Umschalten */
body, .site-header, .site-footer, .card, .notice, details.faq,
.form-field input, .form-field textarea, .form-field select {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ---------- Umschalter Hell/Dunkel ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer; padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { color: var(--color-accent); border-color: var(--color-accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.theme-toggle svg { display: block; }
.theme-toggle .icon-mond { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sonne { display: none; }
html[data-theme="dark"] .theme-toggle .icon-mond { display: block; }

/* Umschalter bleibt auf allen Größen sichtbar */
@media (max-width: 980px) {
  .nav-cta { gap: 10px; }
  .theme-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .site-header .container { gap: 8px; }
  .theme-toggle { width: 36px; height: 36px; }
}

/* ---------- Kundenstimmen ---------- */
.bewertung-kopf {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.bewertung-note { display: flex; align-items: center; gap: 18px; }
.bewertung-note > strong {
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.bewertung-note > div { display: flex; flex-direction: column; gap: 4px; }
.bewertung-note span:not(.sterne) { font-size: 0.9rem; color: var(--color-text-muted); }
.sterne { display: inline-flex; gap: 2px; color: #f5a623; line-height: 0; }
.stimme {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 26px 24px;
}
.stimme blockquote {
  margin: 0; font-size: 0.96rem; line-height: 1.6;
  color: var(--color-text);
}
.stimme figcaption {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: auto; padding-top: 6px;
  border-top: 1px solid var(--color-border);
}
.stimme figcaption strong { font-weight: 600; font-size: 0.94rem; }
.stimme figcaption span { font-size: 0.82rem; color: var(--color-text-muted); }
.echtheit {
  margin: 26px auto 0; max-width: 820px; text-align: center;
  font-size: 0.82rem; line-height: 1.6; color: var(--color-text-muted);
}
@media (max-width: 720px) {
  .bewertung-kopf { flex-direction: column; align-items: flex-start; }
}

.hero-bewertung {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 18px 8px 14px;
  margin-bottom: 20px;
  font-size: 0.92rem; color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.hero-bewertung:hover { border-color: var(--color-accent); transform: translateY(-1px); }
.hero-bewertung strong { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Einwilligungshinweis ---------- */
#einwilligung-schleier {
  position: fixed; inset: 0; z-index: 940;
  background: rgba(8, 15, 30, 0.55);
  opacity: 0; transition: opacity 0.25s ease;
}
#einwilligung-schleier.sichtbar { opacity: 1; }
html.einwilligung-offen { overflow: hidden; }

#einwilligung {
  position: fixed; z-index: 950;
  left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 14px));
  width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 26px 28px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#einwilligung.sichtbar { opacity: 1; transform: translate(-50%, -50%); }
.einwilligung-inhalt { display: flex; flex-direction: column; gap: 20px; }
.einwilligung-text { flex: 1 1 auto; }
#einwilligung:focus { outline: none; }
.einwilligung-links { margin: 10px 0 0; font-size: 0.82rem; color: var(--color-text-muted); }
.einwilligung-text strong { display: block; margin-bottom: 8px; font-size: 1.12rem; }
.einwilligung-text p { margin: 0; font-size: 0.88rem; line-height: 1.55; }
.einwilligung-text a { color: var(--color-accent); text-decoration: underline; }
.einwilligung-knoepfe { display: flex; gap: 12px; flex-shrink: 0; }
.einwilligung-knoepfe .btn { flex: 1 1 0; }
.einwilligung-knoepfe .btn { min-width: 132px; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  #einwilligung { transition: none; opacity: 1; transform: translate(-50%, -50%); }
  #einwilligung-schleier { transition: none; opacity: 1; }
}
@media (max-width: 620px) {
  #einwilligung { padding: 20px 18px 22px; width: calc(100% - 20px); }
  .einwilligung-knoepfe { width: 100%; }
  .einwilligung-knoepfe .btn { flex: 1; min-width: 0; }
}

.sterne-leer { display: inline-flex; gap: 2px; color: var(--color-border); }
.stimmen[data-quelle="google"] .stimme { min-height: 0; }

/* ---------- Hero: Google-Bewertung statt Kalibrierungsanzeige ---------- */
.hero-visual .gauge {
  background: conic-gradient(
    var(--color-accent) 0deg var(--gauge-fuellung, 353deg),
    var(--color-gauge-track) var(--gauge-fuellung, 353deg) 360deg);
}
.hero-note .gauge-inner { gap: 2px; }
.hero-note .gauge-inner .sterne { color: #f5a623; margin-bottom: 2px; }
.hero-note .gauge-inner strong {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-note .gauge-inner .gauge-von {
  font-size: 0.8rem; color: var(--color-text-muted); font-weight: 500;
}
.hero-note .hero-visual-caption { margin-bottom: 18px; }
.hero-note .btn-block { justify-content: center; }
.echtheit-gemeldet { display: inline; }

/* ---------- Sprungmarke fuer die Tastatur ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--color-accent); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Kontaktseite: Telefon und E-Mail als Verweis erkennbar ---------- */
.contact-info-item p a,
.site-footer .footer-grid p a {
  color: var(--color-accent); text-decoration: underline;
  text-underline-offset: 2px; font-weight: 600;
}
.contact-info-item p a:hover,
.site-footer .footer-grid p a:hover { text-decoration: none; }

/* ---------- Karte ueber die volle Breite ---------- */
.map-wide { margin-top: 40px; }
.map-wide .map-embed { margin-top: 0; }
.map-wide .map-embed iframe { height: 380px; }

/* ---------- Dunkle Ansicht: ausreichender Kontrast auf farbigen Flaechen ----
   Der helle Akzentton (#5b8cff) traegt weisse Schrift nur mit 3,2:1. Auf
   Flaechen mit weissem Text nehmen wir deshalb den satten Blauverlauf. */
html[data-theme="dark"] .cta-band {
  background: linear-gradient(120deg, #1d4ed8, #14307f);
}
html[data-theme="dark"] .skip-link { background: #1d4ed8; }

/* ---------- Banner des Hosters in der Fusszeile ---------- */
.footer-bottom { flex-wrap: wrap; gap: 14px 24px; }
.oeko-banner { line-height: 0; }
.oeko-banner a { display: inline-block; line-height: 0; }
.oeko-banner img {
  display: block; width: 157px; height: auto;
  border-radius: 6px; opacity: 0.9; transition: opacity 0.15s ease;
}
.oeko-banner a:hover img { opacity: 1; }
@media (max-width: 720px) {
  .footer-bottom { justify-content: center; text-align: center; }
  .oeko-banner { order: 3; }
}
