/* Batterien Blaß GbR — gemeinsames Stylesheet
   Palette: Anthrazit (Gehäuse), Amber (Ladeanzeige), Grauweiß (Fläche) */

:root {
  --anthrazit: #1d2630;
  --anthrazit-tief: #141b23;
  --amber: #f2a900;
  --amber-dunkel: #c98c00;
  --flaeche: #f6f7f5;
  --weiss: #ffffff;
  --tinte: #161e27;
  --stahl: #5c6977;
  --linie: #d8dcd9;
  --linie-dunkel: #37424e;
  --radius: 4px;
  --inhalt: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--flaeche);
}

h1, h2, h3, .display {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1em; max-width: 68ch; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

a { color: inherit; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--amber-dunkel); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--inhalt);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Kopfzeile ---------- */

.topbar {
  background: var(--anthrazit-tief);
  color: #c9d2da;
  font-size: 0.875rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}
.topbar a { text-decoration: none; color: #e6ebef; }
.topbar a:hover { color: var(--amber); }
.topbar span + span { margin-left: 1.5em; }

header.site {
  background: var(--anthrazit);
  color: var(--weiss);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--amber);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--weiss);
}
.brand:hover { color: var(--weiss); }
.brand svg { display: block; flex-shrink: 0; }
.brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.05;
}
.brand-name small {
  display: block;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  color: #aeb9c2;
  letter-spacing: 0.02em;
}

nav.haupt { display: flex; align-items: center; gap: clamp(0.6em, 1.6vw, 1.4em); }
nav.haupt a {
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: 1.12rem;
  color: #dde4e9;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
nav.haupt a:hover { color: var(--weiss); border-bottom-color: var(--linie-dunkel); }
nav.haupt a[aria-current="page"] { color: var(--weiss); border-bottom-color: var(--amber); }

.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--anthrazit-tief);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  text-decoration: none;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn:hover { background: #ffbe1f; color: var(--anthrazit-tief); }
.btn.dunkel { background: var(--anthrazit); color: var(--weiss); }
.btn.dunkel:hover { background: var(--anthrazit-tief); color: var(--weiss); }
.btn.kontur {
  background: transparent;
  color: var(--weiss);
  box-shadow: inset 0 0 0 2px #55626f;
}
.btn.kontur:hover { box-shadow: inset 0 0 0 2px var(--amber); color: var(--amber); background: transparent; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #55626f;
  border-radius: var(--radius);
  color: var(--weiss);
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  nav.haupt {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--anthrazit-tief);
    padding: 12px var(--gutter) 20px;
    gap: 2px;
    border-bottom: 3px solid var(--amber);
  }
  nav.haupt.offen { display: flex; }
  nav.haupt a { padding: 10px 4px; border-bottom: 1px solid var(--linie-dunkel); font-size: 1.25rem; }
  nav.haupt a[aria-current="page"] { border-bottom-color: var(--amber); }
  nav.haupt .btn { margin-top: 12px; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--anthrazit);
  color: var(--weiss);
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px);
}
.hero p { color: #c3ccd4; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; }
.hero .btn-zeile { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8em; }

.hero.flach { padding: clamp(44px, 6vw, 72px) 0; }

/* Ladebalken-Motiv */
.ladung {
  display: flex;
  gap: 7px;
  margin-bottom: 2em;
}
.ladung i {
  width: 34px;
  height: 14px;
  border-radius: 2px;
  background: var(--amber);
}
.ladung i.leer {
  background: transparent;
  box-shadow: inset 0 0 0 2px #55626f;
}
.ladung.klein i { width: 22px; height: 9px; gap: 5px; }

/* ---------- Sektionen ---------- */

section.block { padding: clamp(48px, 7vw, 88px) 0; }
section.block.weiss { background: var(--weiss); }
section.block.dunkel { background: var(--anthrazit); color: var(--weiss); }
section.block.dunkel p { color: #c3ccd4; }
section.block.amber { background: var(--amber); color: var(--anthrazit-tief); }

.vorspann { max-width: 62ch; margin-bottom: 2.2em; }
.vorspann p { font-size: 1.15rem; }

/* Zielgruppen-Weichen (Startseite) */
.weiche {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px) 0;
  border-top: 2px solid var(--tinte);
}
.weiche:last-of-type { border-bottom: 2px solid var(--tinte); }
.weiche h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.weiche .fuer { color: var(--stahl); font-size: 0.95rem; margin: 4px 0 0; }
.weiche p { margin: 0; }
@media (max-width: 760px) {
  .weiche { grid-template-columns: 1fr; gap: 12px; align-items: start; }
}

/* Leistungs-/Themengitter */
.gitter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 36px) clamp(24px, 4vw, 48px);
}
.gitter .zelle {
  border-top: 3px solid var(--amber);
  padding-top: 14px;
}
.gitter .zelle h3 { margin-bottom: 0.3em; }
.gitter .zelle p { margin: 0; font-size: 0.98rem; }

/* Faktenzeile */
.fakten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.fakten div { border-left: 3px solid var(--amber); padding-left: 16px; }
.fakten strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
}
.fakten span { color: inherit; font-size: 0.95rem; }
.dunkel .fakten span { color: #c3ccd4; }

/* Zweispalter */
.zweispalt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 820px) { .zweispalt { grid-template-columns: 1fr; } }

/* Prozess-Schritte (echte Sequenzen) */
.schritte { list-style: none; padding: 0; margin: 0; counter-reset: schritt; }
.schritte li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--linie);
}
.schritte li::before {
  content: counter(schritt);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--amber-dunkel);
  line-height: 1;
}
.schritte h3 { margin-bottom: 0.2em; }
.schritte p { margin: 0; }

/* Markenliste */
.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.marken li {
  margin: 0;
  border: 1px solid var(--linie);
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
}
.dunkel .marken li { background: transparent; border-color: var(--linie-dunkel); }

/* CTA-Band */
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0; }
.cta-band p { margin: 6px 0 0; color: #3d3000; }

/* Info-Kästen */
.kasten {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}
.dunkel .kasten { background: #232e3a; border-color: var(--linie-dunkel); }
.kasten h3 { margin-top: 0; }
.kasten table { width: 100%; border-collapse: collapse; }
.kasten td { padding: 6px 0; vertical-align: top; border-bottom: 1px solid var(--linie); }
.kasten tr:last-child td { border-bottom: none; }
.kasten td:first-child { color: var(--stahl); padding-right: 16px; white-space: nowrap; }

/* Stellenliste */
.stellen { list-style: none; padding: 0; margin: 0; }
.stellen li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--linie);
  margin: 0;
}
.stellen li:last-child { border-bottom: 1px solid var(--linie); }
.stellen h3 { margin: 0; font-size: 1.25rem; }
.stellen .ort { color: var(--stahl); font-size: 0.95rem; }
@media (max-width: 640px) { .stellen li { grid-template-columns: 1fr; } }

/* ---------- Formulare ---------- */

form.anfrage { display: grid; gap: 18px; }
.feldgruppe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 18px;
}
form.anfrage fieldset {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0;
  background: var(--weiss);
}
form.anfrage legend {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 0 8px;
}
label { display: block; font-size: 0.92rem; font-weight: 500; margin-bottom: 4px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #b9c0bc;
  border-radius: var(--radius);
  background: var(--weiss);
  color: var(--tinte);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--amber);
  outline-offset: 0;
  border-color: var(--amber-dunkel);
}
.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.einwilligung input { width: auto; margin-top: 3px; }
.einwilligung label { font-weight: 400; margin: 0; }
.form-hinweis { font-size: 0.9rem; color: var(--stahl); }

/* ---------- Fußzeile ---------- */

footer.site {
  background: var(--anthrazit-tief);
  color: #c3ccd4;
  padding: clamp(40px, 6vw, 64px) 0 24px;
  font-size: 0.95rem;
}
footer.site .spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--linie-dunkel);
}
footer.site h3 {
  color: var(--weiss);
  font-size: 1.15rem;
  margin-bottom: 0.6em;
}
footer.site a { color: #e6ebef; text-decoration-color: var(--linie-dunkel); }
footer.site a:hover { color: var(--amber); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site .schluss {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8b98a3;
}

/* ---------- Rechtstexte ---------- */

.rechtstext h2 { font-size: 1.5rem; margin-top: 2em; }
.rechtstext { max-width: 76ch; }

/* ---------- Kleinkram ---------- */

.hinweis-band {
  background: #fff7e0;
  border: 1px solid #ecd9a0;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.92rem;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--anthrazit-tief);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }
