/* SipPro – gemeinsames Stylesheet ("Aurora Glass", zurückhaltend).
   Dunkel ist Standard, hell per prefers-color-scheme. Keine externen Ressourcen. */

:root {
  color-scheme: dark light;
  --hg: #090b14;
  --hg-tief: #070910;
  --text: #eceeff;
  --text-leise: #a3a9c9;
  --flaeche: rgba(20, 24, 41, 0.72);
  --flaeche-hoch: rgba(28, 33, 54, 0.85);
  --rand: #2a3050;
  --rand-stark: #3b4163;
  --primaer: #9b87ff;
  --primaer-text: #b3a4ff;
  --sekundaer: #3edbf0;
  --knopf-a: #6d4bff;
  --knopf-b: #4a66f5;
  --knopf-text: #ffffff;
  --ok: #34d399;
  --ok-flaeche: rgba(52, 211, 153, 0.14);
  --warn: #f5a524;
  --warn-flaeche: rgba(245, 165, 36, 0.14);
  --fehler: #ff6b7f;
  --fehler-flaeche: rgba(255, 107, 127, 0.13);
  --info-flaeche: rgba(62, 219, 240, 0.12);
  --schleier-1: rgba(124, 92, 255, 0.22);
  --schleier-2: rgba(34, 211, 238, 0.14);
  --schleier-3: rgba(255, 95, 168, 0.08);
  --fokus: #3edbf0;
  --schatten: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-klein: 12px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", "Noto Sans Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --hg: #f7f6ff;
    --hg-tief: #efedfc;
    --text: #15132b;
    --text-leise: #56527a;
    --flaeche: rgba(255, 255, 255, 0.78);
    --flaeche-hoch: rgba(255, 255, 255, 0.92);
    --rand: #dedaf2;
    --rand-stark: #bdb8d8;
    --primaer: #6d4bff;
    --primaer-text: #5134e0;
    --sekundaer: #0b8aa6;
    --knopf-a: #6d4bff;
    --knopf-b: #4a5ff0;
    --ok: #047857;
    --ok-flaeche: rgba(5, 150, 105, 0.12);
    --warn: #a35f00;
    --warn-flaeche: rgba(245, 165, 36, 0.16);
    --fehler: #c41e3a;
    --fehler-flaeche: rgba(217, 45, 75, 0.1);
    --info-flaeche: rgba(11, 159, 191, 0.1);
    --schleier-1: rgba(124, 92, 255, 0.16);
    --schleier-2: rgba(34, 211, 238, 0.14);
    --schleier-3: rgba(255, 95, 168, 0.07);
    --fokus: #5134e0;
    --schatten: 0 8px 24px rgba(40, 30, 110, 0.08);
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--hg);
  background-image:
    radial-gradient(60rem 40rem at 10% -10%, var(--schleier-1), transparent 60%),
    radial-gradient(50rem 35rem at 100% 0%, var(--schleier-2), transparent 60%),
    radial-gradient(40rem 30rem at 50% 110%, var(--schleier-3), transparent 60%);
  background-attachment: fixed;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--primaer-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); font-weight: 700; letter-spacing: -0.01em; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 650; }
p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.3em; }
code, .mono { font-family: var(--mono); font-size: 0.94em; }

.sprung {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--flaeche-hoch);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-klein);
  z-index: 10;
}
.sprung:focus { top: 1rem; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Gerüst ---------- */

.kopf {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.marke img { width: 34px; height: 34px; }
.marke span { white-space: nowrap; }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.nav a {
  color: var(--text-leise);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.35rem 0.1rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--primaer); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
main.schmal { max-width: 46rem; }

.fuss {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--rand);
  color: var(--text-leise);
  font-size: 0.93rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.fuss nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.fuss a { color: var(--text-leise); }
.fuss a:hover { color: var(--text); }

/* ---------- Bausteine ---------- */

.karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--schatten);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
@media (min-width: 40rem) { .karte { padding: 1.6rem 1.75rem; } }
.karte > :last-child { margin-bottom: 0; }

.raster {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.abschnitt { margin-top: 3rem; }
.abschnitt:first-child { margin-top: 0; }

.leise { color: var(--text-leise); }
.klein { font-size: 0.92rem; }

.verlauf-text {
  background: linear-gradient(90deg, var(--primaer), var(--sekundaer));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.etikett {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sekundaer);
  margin-bottom: 0.5rem;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  color: var(--knopf-text);
  background: linear-gradient(120deg, var(--knopf-a), var(--knopf-b));
  box-shadow: 0 6px 18px rgba(109, 75, 255, 0.28);
}
.knopf:hover { filter: brightness(1.08); }
.knopf:disabled { opacity: 0.55; cursor: progress; filter: none; }
.knopf.zweit {
  color: var(--text);
  background: var(--flaeche-hoch);
  border-color: var(--rand-stark);
  box-shadow: none;
}
.knopf.gefahr {
  color: #fff;
  background: #c41e3a;
  box-shadow: none;
}
.knopf.klein-knopf { min-height: 36px; padding: 0.35rem 0.9rem; font-size: 0.93rem; }

.hinweis {
  border-radius: var(--radius-klein);
  padding: 0.85rem 1rem;
  border: 1px solid var(--rand);
  border-left-width: 4px;
  background: var(--info-flaeche);
  border-left-color: var(--sekundaer);
  margin: 0 0 1rem;
}
.hinweis > :last-child { margin-bottom: 0; }
.hinweis.warn { background: var(--warn-flaeche); border-left-color: var(--warn); }
.hinweis.gefahr { background: var(--fehler-flaeche); border-left-color: var(--fehler); }
.hinweis.ok { background: var(--ok-flaeche); border-left-color: var(--ok); }

.platzhalter {
  font-family: var(--mono);
  font-weight: 700;
  background: var(--warn-flaeche);
  color: var(--warn);
  border: 1px dashed var(--warn);
  border-radius: 6px;
  padding: 0 0.3em;
}

/* ---------- Startseite ---------- */

.held { padding: 1.5rem 0 1rem; max-width: 46rem; }
.held p { font-size: 1.15rem; color: var(--text-leise); }
.held .knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.schema { margin: 0; }
.schema img { display: block; width: 100%; }
.schema figcaption { margin-top: 0.75rem; color: var(--text-leise); font-size: 0.93rem; }

.schritte { counter-reset: schritt; list-style: none; padding: 0; }
.schritte li { counter-increment: schritt; position: relative; padding-left: 2.6rem; margin-top: 0.9rem; }
.schritte li::before {
  content: counter(schritt);
  position: absolute; left: 0; top: 0;
  width: 1.85rem; height: 1.85rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--knopf-a), #0b9fbf);
}

.haken { list-style: none; padding: 0; }
.haken li { position: relative; padding-left: 1.7rem; }
.haken li::before {
  content: "";
  position: absolute; left: 0.15rem; top: 0.5em;
  width: 0.85rem; height: 0.45rem;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

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

.recht h2 { margin-top: 2.2rem; }
.recht h3 { margin-top: 1.5rem; }
.recht dl { display: grid; gap: 0.2rem 1rem; }
.recht dt { font-weight: 650; }
.recht dd { margin: 0 0 0.6rem; color: var(--text-leise); }
.tabelle-huelle { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rand); }
th { font-weight: 650; }

[hidden] { display: none !important; }
