:root {
  --bg: #0d1424;
  --flaeche: #141d31;
  --flaeche2: #1b2640;
  --text: #e7ecf5;
  --leise: #9aa7bf;
  --akzent: #4c8dff;
  --akzent-stark: #77a8ff;
  --rand: #26324d;
  --gut: #3ccf8e;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fc;
    --flaeche: #ffffff;
    --flaeche2: #eef2f9;
    --text: #172033;
    --leise: #59657d;
    --akzent: #2563eb;
    --akzent-stark: #1d4ed8;
    --rand: #dbe2ee;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--akzent-stark); }
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--flaeche2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.breite { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.kopf {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rand);
}
.kopf .breite { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 1rem; }
.marke { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 0.5rem; }
.zeichen {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--akzent); color: #fff; font-size: 0.95rem;
}
nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav a { color: var(--leise); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--text); }
nav .handbuch { color: var(--akzent-stark); }

section { padding: 64px 0; }
.getoent { background: var(--flaeche); border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.held { padding: 88px 0 72px; background: radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--akzent) 22%, transparent), transparent); }
.vorzeile { color: var(--akzent-stark); font-weight: 600; margin: 0 0 0.6rem; letter-spacing: 0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.7rem; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.lead { font-size: 1.15rem; color: var(--leise); max-width: 640px; margin: 0 0 1.6rem; }
.klein { font-size: 0.9rem; color: var(--leise); }

.befehl {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--flaeche2); border: 1px solid var(--rand); border-radius: 10px;
  padding: 0.55rem 0.55rem 0.55rem 1rem; max-width: 100%;
}
.befehl code { background: none; padding: 0; flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.kopieren {
  flex: 0 0 auto; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--akzent); color: #fff; font: inherit; font-size: 0.85rem; padding: 0.4rem 0.8rem;
}
.kopieren.ok { background: var(--gut); }

.schritte { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.schritte > li {
  counter-increment: s; position: relative; padding: 1.1rem 1.2rem 1.1rem 3.6rem;
  /* Sonst drückt eine lange Befehlszeile die Karte über den Rand. */
  min-width: 0;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px;
}
.schritte > li::before {
  content: counter(s); position: absolute; left: 1.1rem; top: 1.05rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--akzent); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.schritte p { margin: 0.2rem 0 0.7rem; overflow-wrap: anywhere; }
.hinweis {
  margin-top: 1.6rem; padding: 0.9rem 1.1rem; border-radius: 10px;
  border: 1px solid var(--rand); background: var(--flaeche2); font-size: 0.95rem;
}

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.4rem 0 1rem; }
.karte { background: var(--bg); border: 1px solid var(--rand); border-radius: 12px; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.karte.leer { color: var(--leise); }
.karte .titel { font-weight: 700; font-size: 1.1rem; }
.karte .knopf {
  display: inline-block; text-align: center; text-decoration: none; margin-top: 0.4rem;
  background: var(--akzent); color: #fff; border-radius: 8px; padding: 0.6rem 1rem; font-weight: 600;
}
.karte .knopf:hover { background: var(--akzent-stark); }
.karte.empfohlen { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.pruefsumme { font-size: 0.75rem; color: var(--leise); word-break: break-all; }

.fuss { border-top: 1px solid var(--rand); padding: 24px 0; color: var(--leise); font-size: 0.9rem; }
.fuss .breite { display: flex; gap: 1.2rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  nav a:not(.handbuch) { display: none; }
  section { padding: 44px 0; }
  .schritte > li { padding-left: 3.2rem; }
}
