/* Akku New – Stylesheet der deutschen Seiten (Stand 10/2026)
   Farbschemata über dieselben Variablen: ohne data-theme folgt die Seite der Systemeinstellung,
   <html data-theme="light|dark"> erzwingt Hell oder Dunkel (Umschalter im Kopf, assets/theme.js).
   Abstandsraster: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 · 128 px */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #f3f5f0;
  --ink: #121618;
  --text: #2c3235;
  --muted: #61696d;
  --line: #e3e6e0;
  --line-strong: #cdd2cb;
  --accent: #a3c947;          /* Grün aus dem Logo */
  --accent-hover: #b4d75f;
  --on-accent: #121618;
  --link: #46651a;            /* Grün mit ausreichendem Kontrast auf Weiß */
  --focus: #46651a;           /* Fokusrahmen: mindestens 3:1 zum Hintergrund */
  --field-line: #858d88;      /* Rand von Eingabefeldern: mindestens 3:1 */
  --danger: #c4372b;
  --icon: #46651a;
  --icon-bg: #eef4dc;
  --star: #f0a81c;
  --header-bg: rgba(18, 22, 24, .9);
  --header-line: rgba(255, 255, 255, .08);
  --header-text: rgba(255, 255, 255, .78);
  --footer-bg: #121618;
  --input-bg: #ffffff;
  --band-bg: #121618;
  --band-ink: #ffffff;
  --band-muted: rgba(255, 255, 255, .72);
  --band-ghost: rgba(255, 255, 255, .3);
  --shadow: 0 1px 2px rgba(18, 22, 24, .04), 0 12px 32px -12px rgba(18, 22, 24, .12);
  --shadow-pop: 0 18px 48px -12px rgba(18, 22, 24, .28);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --container: 1200px;
  --gutter: 32px;
  --radius: 10px;
  --radius-lg: 16px;
  --section: 112px;
  --header-h: 76px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c0f10;
  --bg-soft: #111517;
  --surface: #14191b;
  --surface-2: #1a2023;
  --ink: #f2f5f0;
  --text: #c5ccc8;
  --muted: #8b9590;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --link: #b8dc5f;
  --focus: #b8dc5f;
  --field-line: rgba(255, 255, 255, .38);
  --danger: #ff8a7d;
  --icon: #b8dc5f;
  --icon-bg: rgba(163, 201, 71, .12);
  --header-bg: rgba(12, 15, 16, .78);
  --footer-bg: #080a0b;
  --input-bg: #14191b;
  --band-bg: #1a2023;
  --band-ink: #f2f5f0;
  --band-muted: #8b9590;
  --band-ghost: rgba(255, 255, 255, .16);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .02);
  --shadow-pop: 0 24px 64px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
/* Systemeinstellung „dunkel“, solange nicht ausdrücklich Hell gewählt ist (gleiche Werte wie oben) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f10;
    --bg-soft: #111517;
    --surface: #14191b;
    --surface-2: #1a2023;
    --ink: #f2f5f0;
    --text: #c5ccc8;
    --muted: #8b9590;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --link: #b8dc5f;
    --focus: #b8dc5f;
    --field-line: rgba(255, 255, 255, .38);
    --danger: #ff8a7d;
    --icon: #b8dc5f;
    --icon-bg: rgba(163, 201, 71, .12);
    --header-bg: rgba(12, 15, 16, .78);
    --footer-bg: #080a0b;
    --input-bg: #14191b;
    --band-bg: #1a2023;
    --band-ink: #f2f5f0;
    --band-muted: #8b9590;
    --band-ghost: rgba(255, 255, 255, .16);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02);
    --shadow-pop: 0 24px 64px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 72px; --header-h: 64px; }
}

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Lange Wörter (z. B. „Batteriemanagementsystem“) auf schmalen Handys umbrechen statt überlaufen */
h1, h2, h3, h4, p, li, dt, dd, td, th, figcaption, summary, label { overflow-wrap: break-word; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* Auf den immer dunklen Flächen (Kopf, Fußzeile, dunkle Bänder) bleibt der Rahmen hellgrün */
.site-header :focus-visible, .site-footer :focus-visible, .band-inner :focus-visible, .hero :focus-visible, .quickbar :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.625rem); line-height: 1.06; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.028em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; }
p, ul, ol, dl, table, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--s4); top: var(--s4); z-index: 100; background: var(--bg); color: var(--ink); padding: var(--s2) var(--s4); border-radius: var(--radius); }

.icon { width: 24px; height: 24px; flex: none; }

/* Schaltflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 50px; padding: 0 var(--s5);
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: var(--radius);
  font: 600 1rem/1 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, transform .18s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 var(--s4); font-size: .9375rem; }
.btn .icon { width: 20px; height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* Kopfbereich */
.site-header {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background: var(--header-bg); border-bottom: 1px solid var(--header-line);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
.header-inner { display: flex; align-items: center; gap: var(--s5); min-height: var(--header-h); }
.logo { flex: none; display: block; }
.logo img { height: 44px; width: auto; }
.main-nav ul { display: flex; gap: var(--s1); list-style: none; padding: 0; margin: 0; }
.main-nav a {
  position: relative; display: block; padding: var(--s2) var(--s3); border-radius: 8px;
  color: var(--header-text); font-size: .9688rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; left: var(--s3); right: var(--s3); bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--s2); }

/* Suche */
.search { position: relative; flex: 0 1 300px; margin-left: auto; }
.search input {
  width: 100%; min-height: 42px; padding: 0 40px 0 40px;
  background: rgba(255, 255, 255, .07); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  font: 400 .9375rem var(--font); transition: background-color .15s, border-color .15s;
}
.search input::placeholder { color: rgba(255, 255, 255, .5); }
.search input:hover { border-color: rgba(255, 255, 255, .22); }
.search input:focus { outline: none; background: rgba(255, 255, 255, .1); border-color: var(--accent); box-shadow: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-icon { position: absolute; left: 14px; top: 21px; width: 18px; height: 18px; transform: translateY(-50%); color: rgba(255, 255, 255, .55); pointer-events: none; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--s2)); z-index: 60;
  min-width: 360px; max-height: min(70vh, 520px); overflow-y: auto;
  padding: var(--s2); background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
}
.search-results a { display: block; padding: var(--s3); border-radius: 8px; color: var(--text); text-decoration: none; }
.search-results a strong { display: block; color: var(--ink); font-weight: 600; font-size: .9688rem; line-height: 1.35; }
.search-results a span { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.search-results a small { display: block; margin-top: 2px; color: var(--link); font-size: .75rem; font-weight: 600; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--surface-2); }
.search-results p { padding: var(--s3); color: var(--muted); font-size: .9375rem; }

.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  min-height: 42px; padding: 0 var(--s3); border-radius: 8px;
  color: var(--header-text); font-size: .875rem; font-weight: 600; letter-spacing: .04em;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ''; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.lang summary:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + var(--s2)); min-width: 200px; list-style: none; margin: 0; padding: var(--s2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
}
.lang ul a { display: block; padding: var(--s2) var(--s3); color: var(--text); text-decoration: none; border-radius: 8px; font-size: .9375rem; }
.lang ul a:hover { background: var(--surface-2); color: var(--ink); }
.lang ul a[aria-current] { font-weight: 600; color: var(--ink); }

.menu-toggle {
  display: none; min-height: 42px; padding: 0 var(--s4); border-radius: var(--radius);
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .25); font: 600 .9375rem var(--font); cursor: pointer;
}
.mobile-menu { border-top: 1px solid var(--header-line); }
.mobile-menu ul { list-style: none; margin: 0; padding-top: var(--s2); padding-bottom: var(--s4); }
.mobile-menu a { display: block; padding: var(--s3) 0; color: #fff; text-decoration: none; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid var(--header-line); }
.mobile-menu a[aria-current="page"] { color: var(--accent); }

.header-cta { flex: none; }
.cta-short { display: none; }
.menu-toggle { gap: var(--s2); }
.menu-toggle .icon { width: 20px; height: 20px; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-theme { display: none; }

/* Laptop: Suchfeld schmaler, Anfrage bleibt sichtbar */
.search, .search input { min-width: 0; }
@media (max-width: 1320px) { .search { flex-basis: 220px; } .main-nav .nav-knowledge { margin-left: var(--s1); padding-left: var(--s2); } }
/* Tablet: Navigation ins Menü, Suchfeld füllt den freien Platz */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-inner { gap: var(--s4); }
  .search { flex: 1 1 auto; max-width: 420px; }
}
/* Schmales Tablet: Menü als Symbol, Sprache nur als Flagge */
@media (max-width: 900px) {
  .menu-toggle { width: 42px; padding: 0; justify-content: center; }
  .menu-toggle span { display: none; }
  .lang summary { padding: 0 var(--s2); }
  .lang summary span { display: none; }
}
/* Handy: zweite Zeile für die Suche, kompakte Bedienelemente */
@media (max-width: 680px) {
  :root { --header-h: 117px; }
  .header-inner { flex-wrap: wrap; gap: var(--s2); padding-top: var(--s3); padding-bottom: var(--s3); min-height: 0; }
  .header-actions { margin-left: auto; gap: 6px; }
  .search { order: 3; flex: 1 1 100%; max-width: none; margin-left: 0; }
  .search-results { min-width: 0; }
  .logo img { height: 36px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .header-cta { min-height: 40px; padding: 0 var(--s4); }
  .lang summary { padding: 0 var(--s2); }
  .lang summary span { display: none; }
  .menu-toggle { width: 42px; padding: 0; justify-content: center; }
  .menu-toggle span { display: none; }
  .mobile-theme { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding-bottom: var(--s5); color: rgba(255, 255, 255, .6); font-size: .875rem; }
  .mobile-theme span { flex: 1 0 100%; margin-bottom: 2px; }
  .mobile-theme button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s3); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: none; color: #fff; font: 500 .875rem var(--font); cursor: pointer; }
  .mobile-theme button .icon { width: 16px; height: 16px; }
  .mobile-theme button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
}
@media (max-width: 400px) { .theme-switch { display: none; } .logo img { height: 32px; } .lang summary::after { display: none; } .header-cta { padding: 0 var(--s3); } }

/* Farbschema-Umschalter */
.theme-switch { position: relative; }
.theme-switch summary {
  display: grid; place-items: center; width: 42px; height: 42px; list-style: none; cursor: pointer;
  border-radius: 8px; color: var(--header-text);
}
.theme-switch summary::-webkit-details-marker { display: none; }
.theme-switch summary:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.theme-switch summary .icon { width: 20px; height: 20px; display: none; }
:root:not([data-theme-choice]) .theme-switch .i-system,
:root[data-theme-choice="system"] .theme-switch .i-system,
:root[data-theme-choice="light"] .theme-switch .i-light,
:root[data-theme-choice="dark"] .theme-switch .i-dark { display: block; }
.theme-switch ul {
  position: absolute; right: 0; top: calc(100% + var(--s2)); min-width: 180px; list-style: none; margin: 0; padding: var(--s2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
}
.theme-switch button {
  display: flex; align-items: center; gap: var(--s3); width: 100%; padding: var(--s2) var(--s3);
  background: none; border: 0; border-radius: 8px; color: var(--text); font: 400 .9375rem var(--font); text-align: left; cursor: pointer;
}
.theme-switch button .icon { width: 18px; height: 18px; color: var(--muted); }
.theme-switch button:hover { background: var(--surface-2); color: var(--ink); }
.theme-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.theme-switch button[aria-pressed="true"]::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--accent); }

/* Pfadangabe */
.crumbs { padding-top: var(--s6); font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; }
.crumbs li { display: flex; align-items: center; gap: var(--s2); color: var(--muted); }
.crumbs li + li::before { content: '/'; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs + .page-head { padding-top: var(--s5); }
.crumbs + .container .prose { padding-top: var(--s5); }

/* Abschnitte */
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-soft + .section, .section + .section-soft { padding-top: var(--section); }
.section-head { max-width: 720px; margin-bottom: var(--s8); }
.section-head p { margin-top: var(--s4); color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); max-width: none; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .18s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); }

.page-head { padding: var(--s8) 0; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 880px; }
.page-head .lead { max-width: 700px; margin-top: var(--s5); }
.page-head + .section { padding-top: var(--s9); }

/* Startseite: Einstieg als Bildkarte */
.hero { padding: var(--s6) 0 var(--s8); }
.hero-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(520px, calc(100vh - var(--header-h) - 120px), 680px);
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .08); background: #0c0f10; color: #fff;
  box-shadow: var(--shadow);
}
.hero-bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 11, 12, .9) 0%, rgba(8, 11, 12, .74) 32%, rgba(8, 11, 12, .2) 62%, rgba(8, 11, 12, 0) 82%);
}
.hero-content { width: 100%; max-width: 640px; padding: var(--s8) var(--s9); }
.hero-kicker { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); color: #c3e36b; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-kicker::before { content: ''; width: 32px; height: 2px; border-radius: 2px; background: currentColor; }
.hero h1 { color: #fff; font-family: 'Inter Tight', var(--font); font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; hyphens: manual; -webkit-hyphens: manual; text-wrap: wrap; }
.hero h1 em { display: block; font-style: normal; color: #b6d95a; }
.hero .lead { margin-top: var(--s6); max-width: 520px; color: rgba(255, 255, 255, .84); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s7); }
.hero-phone { padding: var(--s2) 0; border-bottom: 1px solid rgba(255, 255, 255, .45); color: #fff; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.hero-phone:hover { color: #c3e36b; border-color: #c3e36b; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-top: var(--s6); color: rgba(255, 255, 255, .75); font-size: .9375rem; }
.hero-meta strong { color: #fff; font-weight: 600; }
.hero-meta a { color: rgba(255, 255, 255, .85); }
.hero-meta-date { font-size: .8125rem; color: rgba(255, 255, 255, .7); }
.hero h1 .hero-kicker { font-family: var(--font); line-height: 1.4; }
.hero-meta a:hover { color: #fff; }
.hero-caption { position: absolute; right: var(--s4); bottom: var(--s4); margin: 0; padding: 4px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(8, 11, 12, .55); color: rgba(255, 255, 255, .8); font-size: .75rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 1020px) { .hero-content { padding: var(--s7); } }
@media (max-width: 760px) {
  .hero { padding: var(--s4) 0 var(--s7); }
  .hero-card { align-items: flex-end; min-height: 0; border-radius: var(--radius-lg); }
  .hero-bg img { object-position: 50% 30%; }
  .hero-card::before { background: linear-gradient(180deg, rgba(8, 11, 12, 0) 0%, rgba(8, 11, 12, .2) 22%, rgba(8, 11, 12, .82) 40%, rgba(8, 11, 12, .95) 62%); }
  .hero-content { padding: 230px var(--s5) var(--s7); }
  .hero-kicker { font-size: .75rem; letter-spacing: .1em; }
  .hero-kicker::before { width: 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-caption { top: var(--s3); bottom: auto; right: var(--s3); }
}

/* Kennzahlen */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.facts li { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s6) var(--s5) var(--s6) 0; min-width: 0; }
.facts li > div { min-width: 0; max-width: 100%; }
.facts li + li { padding-left: var(--s5); border-left: 1px solid var(--line); }
.facts .icon { width: 28px; height: 28px; color: var(--icon); margin-top: 2px; }
.facts strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.facts span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li, .facts li + li { padding: var(--s5) var(--s4) var(--s5) 0; border-left: 0; }
  .facts li:nth-child(even) { padding-left: var(--s4); border-left: 1px solid var(--line); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) { .facts li { flex-direction: column; gap: var(--s2); } .facts strong { font-size: 1rem; hyphens: auto; } }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.card {
  display: flex; flex-direction: column; padding: var(--s6); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s5); border-radius: 12px; background: var(--icon-bg); color: var(--icon); }
.card h3 + p { margin-top: var(--s3); }
.card p + p { margin-top: var(--s3); }
.card .link-arrow { margin-top: auto; padding-top: var(--s5); color: var(--link); }
.card:has(.link-arrow:hover) { border-color: var(--line-strong); transform: translateY(-2px); }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } .card { padding: var(--s5); } }

.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s7); }
.columns-2 { grid-template-columns: repeat(2, 1fr); gap: var(--s8); }
@media (max-width: 900px) { .columns, .columns-2 { grid-template-columns: 1fr; gap: var(--s7); } }

/* Ablauf in 4 Schritten */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
.steps li { counter-increment: step; position: relative; padding-top: var(--s6); border-top: 1px solid var(--line-strong); }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: -12px; left: 0;
  padding-right: var(--s3); background: var(--bg-soft); color: var(--link); font-weight: 600; font-size: .875rem; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.125rem; }
.steps p { margin-top: var(--s2); color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s7); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; row-gap: var(--s6); } }

/* Ablauf im Detail */
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 820px; }
.process li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 var(--s4); padding: var(--s6) 0; border-top: 1px solid var(--line); }
.process li:last-child { border-bottom: 1px solid var(--line); }
.process li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; color: var(--link); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; padding-top: 3px; }
.process h3 { font-size: 1.1875rem; }
.process p { margin-top: var(--s2); }
@media (max-width: 560px) { .process li { grid-template-columns: 44px minmax(0, 1fr); } }

/* Galerie */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s5); }
.gallery a { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gallery a:hover img { transform: scale(1.04); }
.gallery span { display: block; margin-top: var(--s3); color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.gallery-startseite { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .gallery-startseite { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: var(--s4); } .gallery span { font-size: .875rem; margin-top: var(--s2); } }

.lightbox { border: 0; padding: 0; max-width: min(1200px, 94vw); background: transparent; }
.lightbox::backdrop { background: rgba(6, 8, 9, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius-lg); }
.lightbox p { margin-top: var(--s3); color: #fff; text-align: center; font-size: .9375rem; }
.lightbox:focus { outline: none; }
.lightbox-bar { display: flex; justify-content: center; gap: var(--s3); margin-top: var(--s3); padding: 4px 4px 6px; }
.lightbox-bar button { min-height: 42px; padding: 0 var(--s4); background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius); font: 500 .9375rem var(--font); cursor: pointer; }
.lightbox-bar button:hover { border-color: #fff; }

/* Bewertungen */
.stars { display: inline-flex; gap: 2px; color: var(--star); vertical-align: middle; }
.star { width: 18px; height: 18px; }
.rating { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.rating strong { font-size: 3.5rem; line-height: 1; color: var(--ink); font-weight: 600; letter-spacing: -0.04em; }
.rating .star { width: 24px; height: 24px; }
.rating .text { color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s7); }
.reviews figure { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.reviews blockquote p { color: var(--ink); font-size: 1.0625rem; line-height: 1.6; }
.reviews figcaption { margin-top: auto; color: var(--muted); font-size: .9375rem; }
.reviews + .note { margin-top: var(--s6); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } .reviews figure { padding: var(--s5); } }

/* Anfrageband */
.band { padding: 0 0 var(--section); }
.band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap;
  padding: var(--s8); background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px;
}
.band-inner { background: var(--band-bg); border-color: var(--band-bg); }
.band h2 { color: var(--band-ink); }
.band .btn-ghost { color: var(--band-ink); border-color: var(--band-ghost); }
.band .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--band-ink); color: var(--band-ink); }
.band p { color: rgba(255, 255, 255, .72); }
:root[data-theme="light"] .band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
:root[data-theme="light"] .band .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.band p { margin-top: var(--s3); max-width: 560px; color: var(--band-muted); }
.band-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.section-soft + .band, .page-head + .band { padding-top: var(--section); }
@media (max-width: 760px) { .band-inner { padding: var(--s6) var(--s5); border-radius: var(--radius-lg); } .band-actions, .band-actions .btn { width: 100%; } }

/* Fließtext */
.prose { max-width: 740px; padding: var(--s8) 0 var(--section); }
.prose > * + * { margin-top: var(--s4); }
.prose h1 { margin-bottom: var(--s7); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.prose h2 { margin-top: var(--s7); font-size: 1.375rem; letter-spacing: -0.015em; }
.prose h3 { margin-top: var(--s6); }
.prose h1 + h2 { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: var(--s3); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--s2); }
.prose address { font-style: normal; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.prose thead th { color: var(--muted); font-size: .875rem; font-weight: 600; }
.prose td:last-child, .prose thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }

.text { max-width: 740px; }
.text > * + * { margin-top: var(--s4); }
.text h2 + *, .text h3 + * { margin-top: var(--s3); }
.text h3 { margin-top: var(--s6); }
.text ul, .text ol { padding-left: 1.25em; }
.text li + li { margin-top: var(--s2); }
.note { color: var(--muted); font-size: .9375rem; }
sup a { text-decoration: none; font-size: .75em; margin-left: 1px; }
.stack-top { margin-top: var(--s5); }
.gap-top { margin-top: var(--s8); }
.topic > h2 + .note.stack-top { margin: var(--s3) 0 var(--s5); }

/* Inhaltsverzeichnis */
.with-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--s9); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: .9375rem; }
.toc h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: var(--s4); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 5px 0 5px var(--s4); border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.45; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--accent); }
.topic { padding-bottom: var(--s8); }
.topic + .topic { padding-top: var(--s8); border-top: 1px solid var(--line); }
@media (max-width: 1020px) {
  .with-toc { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .toc { position: static; padding: var(--s5); background: var(--surface-2); border-radius: var(--radius-lg); }
  .toc ol { columns: 2; column-gap: var(--s5); border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; margin-left: 0; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Warnzeichen */
.text .warn { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.text .warn li { display: flex; gap: var(--s4); align-items: flex-start; margin: 0; padding: var(--s4) var(--s5); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.warn .icon { color: #d9822b; margin-top: 2px; }
.warn b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .text .warn { grid-template-columns: 1fr; } }

/* Tabellen */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
.data { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 720px; }
.data th, .data td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--line); }
.data thead th { color: var(--muted); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.data tbody th { font-weight: 600; color: var(--ink); }
.data small { display: block; color: var(--muted); font-size: .8125rem; }
.data td:last-child, .data th:last-child { padding-right: 0; }

/* Begriffe */
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s7); }
.terms div { padding: var(--s4) 0; border-top: 1px solid var(--line); }
.terms dt { font-weight: 600; color: var(--ink); }
.terms dd { margin: var(--s1) 0 0; font-size: 1rem; }
@media (max-width: 640px) { .terms { grid-template-columns: 1fr; } }

/* Rechner */
.calc { margin-top: var(--s5); padding: var(--s6); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.calc-fields { display: grid; grid-template-columns: .8fr .8fr 1.4fr 1.2fr; gap: var(--s4); align-items: end; }
.calc label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); }
.calc input, .calc select { display: block; width: 100%; margin-top: var(--s2); }
.calc-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.calc-out div { font-size: .875rem; color: var(--muted); }
.calc-out output { display: block; color: var(--ink); font-size: 1.625rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
@media (max-width: 760px) { .calc { padding: var(--s5); } .calc-fields, .calc-out { grid-template-columns: 1fr 1fr; } }

/* Formulare */
input, select, textarea {
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  min-height: 48px; padding: var(--s3); background: var(--input-bg);
  border: 1px solid var(--field-line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(163, 201, 71, .35); }
input[type="file"] { padding: var(--s2); min-height: 0; color: var(--muted); }
input[type="checkbox"] { min-height: 0; width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.form { display: grid; gap: var(--s5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.field label { display: block; margin-bottom: var(--s2); font-size: .9375rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; }
.check { display: flex; gap: var(--s3); font-size: .9375rem; }
.honeypot { position: absolute; left: -9999px; }
.notice { padding: var(--s4) var(--s5); background: var(--icon-bg); border-left: 3px solid var(--accent); border-radius: 8px; color: var(--ink); }
.form-status:empty { display: none; }
.form-status { color: var(--danger); font-weight: 600; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: var(--s9); align-items: start; }
.contact-form { padding: var(--s7); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.contact-list li { display: flex; gap: var(--s4); align-items: flex-start; }
.contact-list .card-icon { margin: 0; flex: none; width: 44px; height: 44px; }
.contact-list h2 { font-size: .875rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.contact-list a, .contact-list address { display: block; margin-top: 2px; color: var(--ink); font-style: normal; font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--link); }
.contact-grid { row-gap: var(--s5); }
.contact-list { grid-column: 1; grid-row: 1; }
.contact-ship { grid-column: 1; grid-row: 2; }
.contact-form { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s7); } .contact-list, .contact-ship, .contact-form { grid-column: auto; grid-row: auto; } .contact-form { padding: var(--s5); border-radius: var(--radius-lg); } }

/* Häufige Fragen */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s5) var(--s7) var(--s5) 0; position: relative; color: var(--ink); font-weight: 600; font-size: 1.0938rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--link); }
.faq details > p { padding: 0 0 var(--s5); max-width: 700px; }

/* Quellen */
.refs { padding-left: 1.5em; font-size: .9375rem; color: var(--muted); max-width: 880px; }
.refs li + li { margin-top: var(--s2); }
.refs li:target { color: var(--ink); background: var(--icon-bg); border-radius: 4px; }

/* Karte */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s7); align-items: start; }
.map address { font-style: normal; color: var(--ink); font-weight: 500; }
.map > * + * { margin-top: var(--s3); }
.map-frame { margin-top: var(--s5); padding: var(--s6); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: .9375rem; color: var(--muted); }
.map-frame p + p { margin-top: var(--s4); }
.map-frame a { margin-left: var(--s3); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); }
.map-frame.loaded { padding: 0; border: 0; }

/* Linkliste, Unternavigation */
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 820px; }
.link-list a { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.link-list a::after { content: '→'; color: var(--muted); transition: transform .18s; }
.link-list a:hover { color: var(--link); }
.link-list a:hover::after { transform: translateX(3px); }
.subnav { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s7); }
.subnav a { padding: var(--s2) var(--s4); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .9375rem; }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }

/* Fußzeile */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .66); font-size: .9375rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s6); padding-top: var(--s9); padding-bottom: var(--s7); }
.footer-brand img { height: 40px; width: auto; margin-bottom: var(--s5); }
.footer-brand address { font-style: normal; }
.footer-brand p { margin-top: var(--s3); }
.site-footer h2 { color: #fff; font-size: .875rem; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--s2); }
.site-footer a { color: rgba(255, 255, 255, .66); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { padding-top: var(--s5); padding-bottom: var(--s5); border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem; color: rgba(255, 255, 255, .6); }
.footer-note { margin-top: var(--s2); max-width: 760px; font-size: .8125rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; padding-top: var(--s8); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Schnellkontakt am Handy */
.quickbar { display: none; }
@media (max-width: 680px) {
  .quickbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--s2); padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom));
    background: var(--header-bg); border-top: 1px solid var(--header-line);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 46px; border-radius: var(--radius); color: #fff; font-weight: 600; font-size: .9375rem; text-decoration: none; border: 1px solid rgba(255, 255, 255, .18); }
  .quickbar a:last-child { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .quickbar .icon { width: 20px; height: 20px; }
  body { padding-bottom: 72px; }
  .page-kontakt .quickbar { display: none; }
  body.page-kontakt { padding-bottom: 0; }
}

/* Feinschliff Handy */
@media (max-width: 640px) {
  .lead, .section-head p { font-size: 1.0625rem; }
  .section-head { margin-bottom: var(--s6); }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .page-head { padding: var(--s6) 0 var(--s7); }
  .crumbs { padding-top: var(--s5); }
  .prose { padding-top: var(--s6); }
  .rating strong { font-size: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .band, .quickbar { display: none; } }
.contact-list p { margin-top: 2px; color: var(--ink); font-weight: 500; } .contact-list p a { display: inline; color: var(--link); }
.nowrap { white-space: nowrap; }

/* Hauptnavigation: Akku-Wissen abgesetzt */
.main-nav .nav-knowledge { margin-left: var(--s3); padding-left: var(--s3); border-left: 1px solid rgba(255, 255, 255, .14); }
.main-nav .nav-knowledge a { display: flex; align-items: center; gap: 7px; }
.main-nav .nav-knowledge .icon { width: 17px; height: 17px; color: var(--accent); }
.mobile-menu .nav-knowledge a { display: flex; align-items: center; gap: var(--s3); color: var(--accent); }
.mobile-menu .nav-knowledge .icon { width: 20px; height: 20px; }

/* Bereichsleisten Service / Akku-Wissen */
.section-bar { border-bottom: 1px solid var(--line); background: var(--bg); }
.section-wissen { background: var(--bg-soft); }
.section-bar-inner { display: flex; align-items: center; gap: var(--s5); min-height: 56px; overflow-x: auto; scrollbar-width: none; }
.section-bar-inner::-webkit-scrollbar { display: none; }
.section-label { display: flex; align-items: center; gap: var(--s2); flex: none; padding-right: var(--s5); border-right: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.section-label .icon { width: 20px; height: 20px; color: var(--icon); }
.section-bar ul { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.section-bar ul a { display: block; padding: var(--s2) var(--s3); border-radius: 999px; color: var(--muted); font-size: .9063rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.section-bar ul a:hover { color: var(--ink); background: var(--surface-2); }
.section-bar ul a[aria-current="page"] { color: var(--on-accent); background: var(--accent); }
.section-bar + .page-head { padding-top: var(--s7); }
.page-head-wissen { background: var(--bg-soft); }
.section-hint { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); color: var(--muted); font-size: .9375rem; }
.section-hint .icon { width: 18px; height: 18px; color: var(--icon); }
.section-label-inline { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); color: var(--link); font-size: .9375rem; font-weight: 600; }
.section-label-inline .icon { width: 18px; height: 18px; }
@media (max-width: 680px) {
  .section-bar-inner { gap: var(--s3); min-height: 52px; }
  .section-label { padding-right: var(--s3); }
}

/* Karten als Links */
.cards-wissen { grid-template-columns: repeat(3, 1fr); }
a.card-link { position: relative; color: inherit; text-decoration: none; }
a.card-link:hover { border-color: var(--line-strong); transform: translateY(-2px); }
a.card-link:hover .link-arrow .icon { transform: translateX(3px); }
.card-title { font-size: 1.25rem; letter-spacing: -0.015em; }
.card-title + p { margin-top: var(--s3); color: var(--text); }
.anchor { position: absolute; top: calc(-1 * var(--header-h) - 70px); }
.gap-top-s { margin-top: var(--s6); }
@media (max-width: 1020px) { .cards-wissen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards-wissen { grid-template-columns: 1fr; } }

/* Schnellzugriffe */
.quicklinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.quicklinks a, .tool-nav a {
  display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s5); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s;
}
.quicklinks a:hover, .tool-nav a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.quicklinks .icon, .tool-nav .icon { color: var(--icon); margin-top: 2px; }
.quicklinks b, .tool-nav b { display: block; color: var(--ink); font-weight: 600; }
.quicklinks span, .tool-nav span { font-size: .9375rem; color: var(--muted); }
@media (max-width: 900px) { .quicklinks { grid-template-columns: 1fr; } }

/* Grundlagen-Grafiken */
.formula { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.formula div { padding: var(--s4); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9375rem; color: var(--muted); }
.formula span { display: block; margin-bottom: var(--s1); color: var(--link); font-weight: 600; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }
.formula b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .formula { grid-template-columns: 1fr; } }
.bars { padding: var(--s5); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bars-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: var(--s2); align-items: end; height: 140px; }
.bars-row .h-66 { --h: 66%; } .bars-row .h-96 { --h: 96%; } .bars-row .h-97 { --h: 97%; } .bars-row .h-98 { --h: 98%; } .bars-row .h-99 { --h: 99%; }
.bars-row span { position: relative; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--accent); opacity: .85; }
.bars-row span.weak { background: #d9822b; opacity: 1; }
.bars-row i { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font-style: normal; font-size: .75rem; color: var(--muted); }
.bars figcaption { margin-top: var(--s7); color: var(--muted); font-size: .9375rem; }
.keyfacts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.keyfacts div { padding: var(--s5); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.keyfacts b { display: block; color: var(--ink); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.keyfacts span { display: block; margin-top: var(--s2); color: var(--muted); font-size: .9375rem; }
@media (max-width: 560px) { .keyfacts { grid-template-columns: 1fr; } }
.text ol.checklist { list-style: none; padding: 0; counter-reset: c; }
.checklist li { counter-increment: c; display: flex; gap: var(--s3); align-items: baseline; }
.checklist li::before { content: counter(c); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--icon-bg); color: var(--icon); font-size: .8125rem; font-weight: 600; }
.related { padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }

/* Rechner */
.tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
.tool-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
@media (max-width: 900px) { .tool-nav { grid-template-columns: 1fr; } }
.tool { padding-top: var(--s8); border-top: 1px solid var(--line); }
.tool-head { max-width: 720px; }
.tool-head p { margin-top: var(--s3); color: var(--muted); }
.tool .calc { margin-top: var(--s6); }
.tool > .note { margin-top: var(--s4); max-width: 820px; }
.calc-fields-3 { grid-template-columns: 1fr 1fr 1.4fr; }
.calc .span-2 { grid-column: span 2; }
.calc input[type="text"], .calc input[type="number"] { font-variant-numeric: tabular-nums; }
.calc-out-3 { grid-template-columns: repeat(3, 1fr); }
.calc-hint { margin-top: var(--s4); color: var(--muted); font-size: .9375rem; }
.calc-hint:empty { display: none; }
.calc-result { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.calc-result .big { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.calc-result .big div { font-size: .875rem; color: var(--muted); }
.calc-result .big b { display: block; color: var(--ink); font-size: 1.625rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-result table { width: 100%; margin-top: var(--s5); border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.calc-result th, .calc-result td { text-align: left; padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--line); }
.calc-result thead th { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.calc-result p { color: var(--muted); font-size: .9375rem; }
.calc-result p + table, .calc-result .big + p { margin-top: var(--s4); }
.cellgrid { display: grid; gap: 4px; margin-top: var(--s5); max-width: 100%; }
.cellgrid span { aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: .85; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); }
@media (max-width: 760px) { .calc-fields-3, .calc-out-3 { grid-template-columns: 1fr 1fr; } .calc-fields-3 label:last-child { grid-column: span 2; } }

/* Größenvergleich Zellen */
.size-chart { padding: var(--s6); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
.size-chart svg { display: block; width: 100%; min-width: 560px; height: auto; max-height: 360px; }
.size-chart .cell-body { fill: var(--accent); fill-opacity: .9; }
.size-chart .cell-cap { fill: var(--muted); }
.size-chart .cell-name { fill: var(--ink); font: 600 15px var(--font); }
.size-chart .cell-dim { fill: var(--muted); font: 400 12px var(--font); }
.size-chart .cell-ruler line { stroke: var(--muted); stroke-width: 1.5; }
.size-chart .cell-ruler text { fill: var(--muted); font: 500 12px var(--font); }
.size-chart figcaption { margin-top: var(--s3); color: var(--muted); font-size: .875rem; }

/* Filter (Beispiele, Lexikon) */
.filter-bar, .lex-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-bottom: var(--s5); }
.filter-search { position: relative; flex: 1 1 300px; max-width: 420px; }
.filter-search .icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filter-search input { width: 100%; padding-left: 42px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font: 500 .9375rem var(--font); cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-count { margin-left: auto; color: var(--muted); font-size: .875rem; }
.data mark, .lexikon mark { background: rgba(163, 201, 71, .35); color: inherit; border-radius: 2px; }

/* Lexikon */
.alpha { display: flex; flex-wrap: wrap; gap: 2px; }
.alpha a { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .875rem; text-decoration: none; }
.alpha a:hover { background: var(--surface-2); color: var(--ink); }
.lexikon { columns: 2; column-gap: var(--s8); }
.lex-group { break-inside: avoid; padding-bottom: var(--s5); }
.lex-group h2 { font-size: 1.5rem; color: var(--link); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.lex-item { padding: var(--s3) 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.lex-item dt { color: var(--ink); font-weight: 600; }
.lex-item dd { margin: 2px 0 0; font-size: 1rem; }
@media (max-width: 860px) { .lexikon { columns: 1; } }

/* Weiter / Zurück */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s8); }
.pager a { display: block; padding: var(--s5); overflow-wrap: break-word; hyphens: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .2s; }
.pager a:hover { border-color: var(--accent); }
.pager small { display: block; margin-bottom: 2px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.pager-next { text-align: right; }
.pager-prev small::before { content: '← '; }
.pager-next small::after { content: ' →'; }
@media (max-width: 400px) { .pager a { padding: var(--s4); } }

.list-title { font-size: 1.125rem; margin-bottom: var(--s4); }
.table-note { margin-top: var(--s3); }

/* Zellvergleich */
.cellcompare .tool-head { margin-bottom: var(--s5); }
.cc-controls { display: grid; gap: var(--s4); margin-bottom: var(--s5); padding: var(--s5); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cc-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s4); margin-top: var(--s5); }
.cc-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: end; margin-top: var(--s4); }
.cc-pick label, .cc-filters label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); }
.cc-pick select, .cc-filters select, .cc-filters input { display: block; width: 100%; margin-top: var(--s2); }
.cc-filter-tools { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cc-filter-tools:not(:has(button:not([hidden]))) { display: none; }
@media (max-width: 760px) { .cc-filters { grid-template-columns: 1fr 1fr; } .cc-filters label:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .cc-filters { grid-template-columns: 1fr; } }
.cc-status:empty { display: none; }
.cc-chart { padding: var(--s6); }
.cc-chart figure { margin: 0; }
.cc-chart svg { min-width: 0; width: 100%; max-height: 380px; }
.cc-chart .chem-li .cell-body { fill: var(--accent); }
.cc-chart .chem-lfp .cell-body { fill: #5fb3a1; }
.cc-chart .chem-nimh .cell-body { fill: #7c9cc4; }
.cc-chart .chem-nicd .cell-body { fill: #d9a441; }
.cc-table-wrap { margin-top: var(--s5); }
.cc-table th[scope="row"] { white-space: nowrap; }
/* Sortierbare Tabellen */
.th-sort { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.th-sort:hover { color: var(--link); }
.sort-icon { flex: none; width: 1em; color: var(--muted); font-size: .875em; text-align: center; }
th[aria-sort] .sort-icon { color: var(--link); }
.cc-table td { white-space: nowrap; }
.cc-remove { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; color: var(--muted); font-size: 1.125rem; line-height: 1; cursor: pointer; }
.cc-remove:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 760px) { .cc-pick { grid-template-columns: 1fr; } .cc-chart { padding: var(--s4); overflow-x: auto; } .cc-chart svg { min-width: 520px; } }
.cc-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s2); }
.cc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cc-legend span::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.cc-legend .chem-lfp::before { background: #5fb3a1; }
.cc-legend .chem-nimh::before { background: #7c9cc4; }
.cc-legend .chem-nicd::before { background: #d9a441; }
.lex-src { margin-top: var(--s1); color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.lex-src a { color: var(--muted); }
.lex-src a:hover { color: var(--link); }
.lex-item:target { background: var(--icon-bg); border-radius: 6px; }
.refs-plain { list-style: disc; }

/* Nach oben */
.to-top {
  position: fixed; right: var(--s5); bottom: var(--s5); z-index: 45;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink); box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s, border-color .2s, visibility .2s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .to-top:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }
.to-top { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; font: inherit; padding: 0; }
.to-top:active { transform: scale(.94); }
.to-top .icon { width: 20px; height: 20px; }
@media (max-width: 680px) { .to-top { right: var(--s4); bottom: calc(72px + var(--s3) + env(safe-area-inset-bottom)); width: 42px; height: 42px; } .page-kontakt .to-top { bottom: var(--s4); } }
@media print { .to-top { display: none; } }

/* Flaggen in der Sprachauswahl */
.flag { display: block; flex: none; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
:root[data-theme="dark"] .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); } }
.lang summary .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.lang summary { gap: 8px; }
.lang ul a { display: flex; align-items: center; gap: var(--s3); }

.card .link-arrow, .section-head-row .link-arrow { white-space: normal; }
.contact-list li > div { min-width: 0; }
.contact-list a { overflow-wrap: anywhere; }

/* Hinweis auf maschinelle Übersetzung */
.translation-note { margin: 0; padding: var(--s2) 0; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.translation-note .container { display: block; }
.translation-note a { color: var(--link); font-weight: 500; white-space: nowrap; }
.translation-note + .crumbs { padding-top: var(--s5); }
.cc-extra { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cc-extra .btn { min-height: 42px; font-size: .9375rem; }
.cc-extra .btn:disabled { opacity: .45; cursor: default; }
.cc-chart { overflow-x: auto; }

/* Liefergebiet */
.countries { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s2); }
.prose .countries li { display: flex; align-items: center; gap: var(--s3); margin: 0; padding: var(--s3) var(--s4); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 500; }
.countries .flag { width: 24px; height: 16px; }
.ship-rules { list-style: none; padding: 0 !important; display: grid; gap: var(--s3); }
.prose .ship-rules li { margin: 0; padding: var(--s4) var(--s5); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.prose .ship-rules li.warn-rule { border-left-color: #d9822b; }
.ship-rules b { display: block; color: var(--ink); margin-bottom: 2px; }
.sources-inline { color: var(--muted); font-size: .8125rem; }
.contact-ship { margin-top: var(--s5); }

/* Quellenverzeichnis am Seitenende */
.sources-section { padding-top: 0; }
.section-soft + .sources-section { padding-top: var(--s8); }
.sources { max-width: 880px; border-top: 1px solid var(--line); }
.sources summary { display: flex; align-items: baseline; gap: var(--s2); cursor: pointer; list-style: none; padding: var(--s5) var(--s7) var(--s5) 0; position: relative; color: var(--ink); font-weight: 600; font-size: 1.125rem; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary small { color: var(--muted); font-weight: 500; font-size: .9375rem; }
.sources summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.sources[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.sources .refs { padding-bottom: var(--s5); }
.sources .refs li { overflow-wrap: anywhere; }
.sources .refs li:target { color: var(--ink); background: var(--icon-bg); border-radius: 4px; }
a.ref { text-decoration: none; font-size: .75em; }
