:root {
  --akzent: #4c8bf5;
  --akzent-dunkel: #2f6fe0;
  /* Flächen mit weisser Schrift (Buttons, Badge): dunkler für WCAG AA ≥ 4.5:1 */
  --akzent-flaeche: #2f6fe0;
  --akzent-flaeche-hover: #1f56c2;
  --leiste: #1f2329;
  --flaeche: #2b2f36;
  --text: #1c1f24;
  --text-mild: #505865;
  --hell: #f4f6f9;
  --weiss: #ffffff;
  --grund: #ffffff;
  --karte: #ffffff;
  --kopf-grund: rgba(255, 255, 255, .92);
  --link: #2f6fe0;
  --rand: #dde2ea;
  --radius: 12px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-farbschema="hell"]) {
    --grund: #16191e; --karte: #22262d; --hell: #1b1e24; --text: #e8eaed; --text-mild: #aeb5bf;
    --rand: #353b44; --kopf-grund: rgba(22, 25, 30, .92); --link: #8db4f8; color-scheme: dark;
  }
}
:root[data-farbschema="dunkel"] {
  --grund: #16191e; --karte: #22262d; --hell: #1b1e24; --text: #e8eaed; --text-mild: #aeb5bf;
  --rand: #353b44; --kopf-grund: rgba(22, 25, 30, .92); --link: #8db4f8; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--schrift); color: var(--text); background: var(--grund); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.schmal { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--karte); padding: 8px 12px; z-index: 10; }

.btn { display: inline-block; background: var(--akzent-flaeche); color: var(--weiss); text-decoration: none; font-weight: 600;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid var(--akzent-flaeche); cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { background: var(--akzent-flaeche-hover); border-color: var(--akzent-flaeche-hover); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .schema:focus-visible {
  outline: 3px solid var(--akzent); outline-offset: 2px; }
.btn-zweit { background: transparent; color: var(--link); }
.btn-zweit:hover { background: var(--akzent-flaeche); color: var(--weiss); }
.btn-klein { padding: .45em 1em; font-size: .95rem; }

.kopf { position: sticky; top: 0; z-index: 5; background: var(--kopf-grund); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rand); }
.kopf-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.nav { list-style: none; display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--link); }

.hero { background: linear-gradient(160deg, var(--leiste), var(--flaeche)); color: var(--weiss); padding-block: clamp(64px, 12vw, 140px); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #9fc0fb; font-weight: 600; }
.lead { font-size: 1.2rem; max-width: 42em; color: #d5d9e0; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-zweit { color: var(--weiss); border-color: rgba(255, 255, 255, .6); }

.abschnitt { padding-block: clamp(56px, 9vw, 104px); }
.hell { background: var(--hell); }
.dunkel { background: var(--leiste); color: var(--weiss); }
.dunkel a { color: #9fc0fb; }
.unter { color: var(--text-mild); font-size: 1.1rem; margin-bottom: 32px; }
.dunkel .unter { color: #c3c8d1; }

.demo-rahmen { background: var(--flaeche); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); min-height: 240px; }

.raster { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); padding: 24px; }
.karte p { color: var(--text-mild); margin: 0; }

.schritte { list-style: none; counter-reset: schritt; margin: 0 0 32px; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.schritte li { counter-increment: schritt; padding-top: 52px; position: relative; }
.schritte li::before { content: counter(schritt); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--akzent-flaeche); color: var(--weiss); display: grid; place-items: center; font-weight: 700; }
.schritte p { color: var(--text-mild); }
.code { background: var(--leiste); color: #e8eaed; border-radius: var(--radius); padding: 20px; overflow-x: auto; font-size: .9rem; margin: 0; }

.pakete { align-items: stretch; }
.paket { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; position: relative; }
.paket-top { border: 2px solid var(--akzent); box-shadow: 0 12px 40px rgba(76, 139, 245, .18); }
.badge { position: absolute; top: -14px; left: 28px; background: var(--akzent-flaeche); color: var(--weiss); font-size: .8rem; font-weight: 700; padding: 2px 12px; border-radius: 999px; margin: 0; }
.preis { color: var(--text-mild); }
.betrag { font-size: 2.2rem; font-weight: 700; color: var(--text); }
.haken { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.haken li { padding-left: 1.6em; position: relative; margin-bottom: .5em; }
.haken li::before { content: "✓"; position: absolute; left: 0; color: var(--akzent); font-weight: 700; }
.paket .btn { text-align: center; }

details { border-bottom: 1px solid var(--rand); padding-block: 16px; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { margin: 12px 0 0; color: var(--text-mild); }

.fehlerhinweis { display: none; color: #ffb4ab; font-weight: 600; }
.fehlerhinweis:target { display: block; }

.formular { display: grid; gap: 18px; }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 600; }
.feld input, .feld select, .feld textarea { font: inherit; padding: .7em .8em; border-radius: 0; border: 1px solid #4a515c; background: var(--flaeche); color: var(--weiss); width: 100%; }
.feld-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.feld-check input { width: 20px; height: 20px; margin-top: 4px; }
.feld-check label { font-weight: 400; }
.feld [aria-invalid="true"] { border-color: #ff8a80; }
.feld .fehlertext { color: #ffb4ab; font-size: .9rem; margin: 0; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; margin: 0; font-weight: 600; }
.status.ok { color: #8fe3a5; }
.status.fehler { color: #ffb4ab; }
.formular .btn { justify-self: start; }
.formular .btn[disabled] { opacity: .6; cursor: progress; }

.fuss { background: var(--leiste); color: #c3c8d1; padding-block: 28px; border-top: 1px solid #3a4049; }
.fuss-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fuss p { margin: 0; }
.fuss .nav a { color: #c3c8d1; }

.rechtstext { padding-block: 48px 80px; }
.rechtstext h2 { font-size: 1.3rem; margin-top: 2em; }

/* Umschalter Hell/Dunkel: Symbol und Beschriftung. */
:root .farbschema--dunkel { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-farbschema="hell"]):not([data-farbschema="dunkel"]) .farbschema--dunkel { display: revert; }
  :root:not([data-farbschema="hell"]):not([data-farbschema="dunkel"]) .farbschema--hell { display: none; }
}
:root[data-farbschema="dunkel"] .farbschema--dunkel { display: revert; }
:root[data-farbschema="dunkel"] .farbschema--hell { display: none; }

/* Ohne Javascript liesse sich nichts umschalten: der Knopf bleibt verborgen,
   bis das Frühskript im Kopf ihn freigibt. */
.schema { display: none; }
:root[data-js="1"] .schema {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0;
  background: transparent; color: var(--text); cursor: pointer; border: 1px solid var(--rand); border-radius: 999px;
}
.schema__symbol { flex: 0 0 auto; }
/* Nur das Symbol ist sichtbar; die Beschriftung bleibt für Vorlesegeräte erhalten. */
.schema__text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .kopf .nav li:not(:last-child) { display: none; }
  /* Logo, «Offerte anfragen» und Farbschema-Symbol bleiben auf einer Zeile. */
  .kopf-inner { flex-wrap: nowrap; gap: 10px; }
  .kopf .nav { margin-left: auto; }
  .marke { font-size: 1.05rem; }
  .kopf .btn-klein { padding: .45em .8em; white-space: nowrap; }
}

@media (max-width: 380px) {
  .kopf .btn-klein { font-size: .85rem; padding: .45em .7em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
