/* =========================================================================
   E-Auto-Batteriecheck.de – Design-System
   Farbwelt: Anthrazit/Dunkelblau, Türkis als Akzent, Weiß, helles Grau.
   Keine externen Schriften: schneller Aufbau, kein Drittanbieter-Request.
   ========================================================================= */

:root {
  --ink:        #0d1b2a;
  --ink-soft:   #1b2c40;
  --ink-muted:  #5a6a7d;
  --line:       #e2e8f0;
  --line-soft:  #eef2f7;
  --paper:      #ffffff;
  --shell:      #f5f7fa;
  --acc:        #00b894;
  --acc-dark:   #009377;
  --acc-soft:   #e6f7f2;
  --warn:       #b7791f;
  --warn-soft:  #fdf6e7;
  --danger:     #b3261e;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13,27,42,.06), 0 2px 8px rgba(13,27,42,.04);
  --shadow-md: 0 4px 12px rgba(13,27,42,.08), 0 12px 32px rgba(13,27,42,.06);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gap: 20px;
  --sec: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--acc-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 5.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 2.1rem); }
h3 { font-size: clamp(1.12rem, 2.4vw, 1.35rem); }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { font-weight: 650; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }
.narrow { max-width: 760px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--acc-dark); margin-bottom: .6em;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--ink-muted); }
.small { font-size: .9rem; }

section { padding-block: var(--sec); }
section.tight { padding-block: 36px; }
.bg-shell { background: var(--shell); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: #cbd6e3; }
.bg-ink .eyebrow { color: var(--acc); }

/* ------------------------------------------------------------- Zellen-Motiv
   Signature: das Batteriezellen-Band. Es taucht als Trenner und als
   Zustandsanzeige auf und ist das wiedererkennbare Element der Seite. */
.cellbar { display: flex; gap: 3px; height: 8px; }
.cellbar span { flex: 1; background: var(--acc); border-radius: 2px; opacity: .25; }
.cellbar span:nth-child(-n+7) { opacity: 1; }
.cellbar--divider { max-width: 220px; margin-bottom: 22px; }

/* -------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 13px 24px; border: 1px solid transparent;
  border-radius: var(--r-md); font: inherit; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--acc); color: #05261f; }
.btn-primary:hover { background: var(--acc-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-soft); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: .94rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em;
         color: var(--ink); text-decoration: none; font-size: 1.03rem; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--acc-dark); font-weight: 750; }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink-soft);
  text-decoration: none; font-size: .95rem; font-weight: 550;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--shell); color: var(--ink); }
.header-cta { display: none; }
.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--shell); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.mobile-nav a { display: block; padding: 14px 18px; color: var(--ink); text-decoration: none; font-weight: 550; }
.mobile-nav a:hover { background: var(--shell); }
.mobile-nav .btn { margin: 10px 18px 0; width: calc(100% - 36px); }

@media (min-width: 950px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ----------------------------------------------------------------- Hero */
.hero { background: linear-gradient(180deg, var(--shell) 0%, #fff 100%); padding-block: 40px 52px; }
.hero-grid { display: grid; gap: 32px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 26px; }
.hero-visual { order: 2; }
.usp { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.usp li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); }
.usp li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--acc-soft); color: var(--acc-dark); font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
}
@media (min-width: 900px) {
  .hero { padding-block: 56px 68px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
  .hero-visual { order: 0; }
}

/* --------------------------------------------------------------- Suchbox */
.searchbox {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-md);
}
.searchbox h2 { font-size: 1.15rem; margin-bottom: 14px; }
.search-row { display: grid; gap: 10px; }
.search-field { position: relative; }
.search-field input {
  width: 100%; min-height: 56px; padding: 14px 16px; font: inherit; font-size: 1.05rem;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--shell);
}
.search-field input:focus { background: #fff; }
.search-hint { font-size: .87rem; color: var(--ink-muted); margin: 10px 0 0; }
.radius-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.radius-row label {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--paper);
}
.radius-row input { width: 18px; height: 18px; min-height: 0; padding: 0;
                    accent-color: var(--acc-dark); flex: none; }
.radius-row label:has(input:checked) { border-color: var(--acc-dark); background: var(--acc-soft); font-weight: 600; }
@media (min-width: 620px) {
  .search-row { grid-template-columns: 1fr auto; }
  .searchbox { padding: 26px; }
}

/* Autosuggest */
.suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); overflow: hidden; display: none;
}
.suggest.open { display: block; }
.suggest button {
  display: flex; width: 100%; gap: 10px; align-items: baseline; padding: 12px 14px;
  background: none; border: 0; border-bottom: 1px solid var(--line-soft); font: inherit;
  text-align: left; cursor: pointer;
}
.suggest button:hover, .suggest button[aria-selected="true"] { background: var(--shell); }
.suggest .t { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); flex: none; width: 74px; }

/* ---------------------------------------------------------------- Karten */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--ink); color: inherit; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--acc-soft); display: grid;
             place-items: center; margin-bottom: 16px; color: var(--acc-dark); }

/* --------------------------------------------------------- Anbieterkarten */
.provider {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; display: grid; gap: 16px; position: relative;
}
.provider--partner { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.provider-head { display: flex; gap: 14px; align-items: flex-start; }
/* Titelbild im Anbieterprofil */
.provider-hero {
  display: block; width: 100%; height: auto; max-height: 340px;
  object-fit: cover; border-radius: var(--r-md); margin-bottom: 22px;
  background: var(--shell);
}

.provider-logo {
  width: 56px; height: 56px; flex: none; border-radius: 12px; border: 1px solid var(--line);
  background: var(--shell); object-fit: contain; padding: 6px;
}
.provider h3 { font-size: 1.15rem; margin: 0 0 4px; }
.provider h3 a { color: inherit; text-decoration: none; }
.provider h3 a:hover { color: var(--acc-dark); }
.provider address { font-style: normal; color: var(--ink-muted); font-size: .95rem; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-partner { background: var(--acc); color: #05261f; }
.badge-demo { background: var(--warn-soft); color: var(--warn); border: 1px solid #f0dcae; }
.badge-neutral { background: var(--shell); color: var(--ink-muted); }
.distance { font-weight: 700; color: var(--ink); white-space: nowrap; }
.service-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service-list li {
  margin: 0; font-size: .88rem; padding: 5px 11px; background: var(--shell);
  border-radius: 999px; color: var(--ink-soft);
}
.provider-actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.provider-actions .btn { min-height: 48px; }
.provider-actions .btn-primary { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .provider { grid-template-columns: 1fr auto; align-items: start; padding: 26px; }
  .provider-body { grid-column: 1; }
  .provider-actions { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: 1fr; min-width: 210px; }
  .provider-actions .btn-primary { grid-column: auto; }
}

/* -------------------------------------------------------------- Formulare */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
/* Wichtig: Auswahlfelder ausnehmen. Sonst würde ein Radio-Button innerhalb
   eines <fieldset class="field"> auf volle Breite und 50 px Höhe gedehnt und
   die Beschriftung aus dem Kasten gedrängt. */
.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink);
}
.field input[type="radio"], .field input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 0; padding: 0; flex: none;
  accent-color: var(--acc-dark); border: 0; background: none;
}
.field input[type="file"] {
  width: 100%; font: inherit; font-size: .94rem; padding: 10px 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--ink-muted); margin-top: 5px; }
.field-error input:not([type="radio"]):not([type="checkbox"]),
.field-error select, .field-error textarea { border-color: var(--danger); }
.field-error .hint { color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0; }
.choice-row { display: grid; gap: 8px; }
.choice-row label {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; font-weight: 500; margin: 0;
}
.choice-row label:has(input:checked) { border-color: var(--acc-dark); background: var(--acc-soft); }
.choice-row input { width: 22px; height: 22px; min-height: 0; padding: 0;
                    accent-color: var(--acc-dark); margin-top: 2px; flex: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.consent input { width: 22px; height: 22px; flex: none; accent-color: var(--acc-dark); margin-top: 2px; }
.notice { padding: 16px 18px; border-radius: var(--r-md); font-size: .95rem; margin-bottom: 22px; }
.notice-ok { background: var(--acc-soft); color: #0a5c50; }
.notice-error { background: #fdecec; color: #8b1a1a; }
.notice-info { background: var(--shell); color: var(--ink-soft); border: 1px solid var(--line); }
.notice-legal { background: var(--warn-soft); color: #6b4d10; border: 1px solid #f0dcae; }
.notice p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
  padding: 0 20px;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 30px 18px 0; font-weight: 650;
  position: relative; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 26px; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body { padding-bottom: 18px; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ Breadcrumbs */
.crumbs { font-size: .88rem; color: var(--ink-muted); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 6px; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-muted); }

/* ------------------------------------------------------------- Verlinkung */
.linklist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.linklist a {
  display: inline-block; padding: 9px 15px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: .94rem;
}
.linklist a:hover { border-color: var(--acc-dark); color: var(--acc-dark); }

/* --------------------------------------------------------------- Tabellen */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
table.data td.num, table.data th.num { text-align: right; }

/* Vergleich: mobil als Karten */
.compare-cards { display: grid; gap: 16px; }
@media (max-width: 767px) { .compare-table { display: none; } }
@media (min-width: 768px) { .compare-cards { display: none; } }

/* ------------------------------------------------------------ Checkliste */
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist li { margin: 0; }
.checklist label {
  display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; border: 1px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; background: var(--paper);
}
.checklist input { width: 22px; height: 22px; flex: none; accent-color: var(--acc-dark); margin-top: 2px; }
.checklist label:has(input:checked) { background: var(--acc-soft); border-color: var(--acc); }
.checklist label:has(input:checked) .cl-title { text-decoration: line-through; color: var(--ink-muted); }
.cl-title { font-weight: 650; display: block; }
.cl-desc { font-size: .92rem; color: var(--ink-muted); }
.progress { height: 10px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin: 8px 0 22px; }
.progress i { display: block; height: 100%; background: var(--acc); width: 0; transition: width .25s; }

/* ---------------------------------------------------------------- Karte */
.map-consent {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--shell);
  padding: 26px; text-align: center;
}
.map-frame { width: 100%; height: 340px; border: 0; border-radius: var(--r-md); }

/* ------------------------------------------------------- Sticky Bottom Bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid; gap: 8px; grid-auto-flow: column; grid-auto-columns: 1fr;
  box-shadow: 0 -4px 16px rgba(13,27,42,.08);
}
.sticky-bar .btn { min-height: 50px; padding: 10px 8px; font-size: .95rem; }
body.has-sticky { padding-bottom: 84px; }
@media (min-width: 950px) { .sticky-bar { display: none; } body.has-sticky { padding-bottom: 0; } }

/* --------------------------------------------------------------- Footer */
.site-footer { background: var(--ink); color: #b9c6d6; padding-block: 52px 28px; margin-top: 64px; }
.site-footer h2 { font-size: .95rem; color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9c6d6; text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  font-size: .87rem; display: grid; gap: 12px;
}
.footer-note { color: #8a9ab0; max-width: 720px; }
@media (min-width: 700px) { .footer-bottom { grid-template-columns: 1fr auto; align-items: center; } }

/* --------------------------------------------------------------- Prose */
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose > *:first-child { margin-top: 0; }
.prose ul li::marker { color: var(--acc-dark); }

/* --------------------------------------------------------- Fahrzeug-Check */
.assessment { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; background: var(--paper); }
.assessment-result {
  margin-top: 22px; padding: 22px; border-radius: var(--r-md); background: var(--acc-soft);
  border: 1px solid var(--acc); display: none;
}
.assessment-result.show { display: block; }
.assessment-result h3 { margin-bottom: .4em; }

/* --------------------------------------------------------------- Details */
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.kv dt { font-size: .85rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; }
.kv dd { margin: 0; font-weight: 550; }
@media (min-width: 620px) { .kv > div { grid-template-columns: 220px 1fr; align-items: baseline; gap: 16px; } }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { border-radius: var(--r-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ------------------------------------------------------------ Cookie-Box */
.cookiebar {
  position: fixed; z-index: 80; left: 12px; right: 12px; bottom: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 20px; display: none;
}
.cookiebar.show { display: block; }
.cookiebar .actions { display: grid; gap: 8px; margin-top: 14px; }
@media (min-width: 620px) {
  .cookiebar { left: auto; right: 20px; bottom: 20px; max-width: 420px; }
  .cookiebar .actions { grid-template-columns: 1fr 1fr; }
}

/* ============================================================================
   Mobile Härtung
   Lange Firmennamen, Ortsnamen, E-Mail-Adressen und zusammengesetzte Wörter
   wie „E-Auto-Batteriecheck" sprengen auf schmalen Displays sonst die Zeile.
   Zwei Ursachen werden hier behandelt: fehlender Wortumbruch und Flex- bzw.
   Grid-Kinder, die ohne min-width nicht unter ihre Inhaltsbreite schrumpfen.
   ========================================================================= */

/* Kein seitliches Scrollen mehr, egal was im Inhalt steht.
   Bewusst "clip" statt "hidden": hidden würde einen Scrollcontainer erzeugen
   und den klebenden Header sowie die Bottom-Bar aushebeln. */
body { overflow-x: clip; }

h1, h2, h3, h4, p, li, dd, dt, td, th, address, summary, label, figcaption, .btn, .badge {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Trennung nur bei Überschriften – im Fließtext wirkt sie unruhig.
   Voraussetzung ist lang="de" am <html>-Element, das gesetzt ist. */
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }

/* Adressen, Links und Kennungen dürfen notfalls mitten im Wort brechen */
.kv dd, .provider address, .contact-list a, a[href^="mailto:"], a[href^="tel:"], code {
  overflow-wrap: anywhere;
}

/* Flex- und Grid-Kinder schrumpfen lassen */
.header-inner, .brand,
.provider, .provider-head, .provider-body, .provider-actions,
.search-row, .search-field,
.form-grid > *, fieldset.field, .choice-row, .choice-row label,
.usp li, .checklist label, .consent,
.suggest button, .card, .stat, .footer-grid > div {
  min-width: 0;
}
.provider-head > div,
.checklist label > span,
.usp li > span,
.suggest button > .l { min-width: 0; flex: 1 1 auto; }

/* Anbietername: bricht sauber um statt aus der Karte zu laufen */
.provider h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
  line-height: 1.25;
}

/* Zweizeilige Überschrift im Anbieterprofil: Name groß, Kontext kleiner */
.h1-sub {
  display: block;
  margin-top: .3em;
  font-size: clamp(.95rem, 3.4vw, 1.15rem);
  font-weight: 550;
  letter-spacing: 0;
  color: var(--ink-soft);
  hyphens: none;
}

/* Buttonleiste unten: drei Beschriftungen müssen auf 360 px passen */
@media (max-width: 480px) {
  .sticky-bar { gap: 6px; padding-inline: 8px; }
  .sticky-bar .btn {
    padding: 8px 6px;
    font-size: .86rem;
    line-height: 1.15;
    text-align: center;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Sehr schmale Geräte */
@media (max-width: 380px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 14px; }
  .searchbox, .assessment, .card { padding: 18px; }
  .provider { padding: 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .radius-row label { padding: 7px 11px; font-size: .86rem; }
  .service-list li { font-size: .84rem; }
}

/* Breite Tabellen bleiben scrollbar und zeigen das auch an */
.table-wrap { -webkit-overflow-scrolling: touch; }
.table-wrap table.data { min-width: 560px; }
.table-wrap + .table-hint { font-size: .85rem; color: var(--ink-muted); margin-top: 8px; }

/* Galerie- und Kartenbilder nie über die Breite hinaus */
.gallery img, .provider-hero, .map-frame { max-width: 100%; }
