/* jetztreduziert.de — ein Stylesheet, lokal, keine externe Ressource. */

:root {
  color-scheme: light dark;

  --grund:        #fbfaf7;
  --grund-erhoben:#ffffff;
  --grund-sanft:  #f3f1ec;
  --linie:        #e2ded5;
  --text:         #1c211f;
  --text-leise:   #5b635f;

  --primaer:      #0f3f3a;
  --primaer-hell: #17615a;
  --primaer-flach:#e6efec;
  /* --akzent ist dunkel genug fuer 4.5:1 auf --grund und auf --akzent-flach */
  --akzent:       #9e5507;
  --akzent-flach: #fdf1e0;

  --radius:   14px;
  --radius-s: 9px;
  --breite:   72rem;
  --schatten: 0 1px 2px rgba(20, 32, 30, .05), 0 8px 24px -12px rgba(20, 32, 30, .18);

  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:        #0b1a19;
    --grund-erhoben:#122423;
    --grund-sanft:  #16302d;
    --linie:        #24413d;
    --text:         #e8efec;
    --text-leise:   #9fb2ad;

    --primaer:      #6fd6c4;
    --primaer-hell: #8fe4d4;
    --primaer-flach:#14322e;
    --akzent:       #f0b263;
    --akzent-flach: #33240f;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: clamp(1rem, .97rem + .18vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.95rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.1rem, 1.03rem + .35vw, 1.3rem); margin-top: 1.8em; }
p, ul, ol { margin: 0 0 1.1em; }
p { text-wrap: pretty; }

a { color: var(--primaer); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--akzent); }

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

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--primaer); color: #fff;
  padding: .85rem 1.2rem; border-radius: 0 0 var(--radius-s) 0; text-decoration: none;
}
.skiplink:focus { left: 0; }
@media (prefers-color-scheme: dark) { .skiplink { color: #0b1a19; } }

.innen, .kopf__innen, .krumen__innen, .fuss__innen, .fuss__unten {
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen {
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
  min-height: 4.25rem;
  padding-block: .65rem;
}

.marke {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--primaer); text-decoration: none;
  font-size: 1.08rem; letter-spacing: -.02em; font-weight: 400;
  padding: .35rem 0;
}
.marke__zeichen { flex: none; }
.marke__text strong { font-weight: 700; }
.marke:hover { color: var(--akzent); }

.hauptnav { margin-left: auto; }
.hauptnav ul {
  display: flex; flex-wrap: wrap; gap: .2rem;
  list-style: none; margin: 0; padding: 0;
}
.hauptnav a {
  display: flex; align-items: center;
  padding: .6rem .8rem;
  border-radius: var(--radius-s);
  color: var(--text-leise);
  text-decoration: none;
  font-size: .95rem;
  min-height: 44px;
}
.hauptnav a:hover { background: var(--grund-sanft); color: var(--text); }
.hauptnav a[aria-current="page"] { background: var(--primaer-flach); color: var(--primaer); font-weight: 600; }

/* ---------- Brotkrumen ---------- */

.krumen { border-bottom: 1px solid var(--linie); background: var(--grund-sanft); }
.krumen ol {
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; margin: 0; padding: .7rem 0;
  font-size: .875rem; color: var(--text-leise);
}
.krumen li + li::before { content: "\203A"; margin-right: .45rem; color: var(--text-leise); }
.krumen a { color: var(--text-leise); }

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

.hero {
  background:
    radial-gradient(60rem 26rem at 78% -18%, var(--primaer-flach), transparent 62%),
    radial-gradient(40rem 22rem at 8% 0%, var(--akzent-flach), transparent 58%);
  border-bottom: 1px solid var(--linie);
}
.hero__innen {
  max-width: var(--breite); margin-inline: auto;
  padding: clamp(2.75rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem);
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__innen { grid-template-columns: 1.15fr .85fr; }
}
.hero__vorspann {
  font-size: clamp(1.05rem, 1rem + .45vw, 1.25rem);
  color: var(--text-leise);
  max-width: 46ch;
}
.hero__bild { justify-self: center; width: 100%; max-width: 26rem; height: auto; }

.marke-klein {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--grund-erhoben); border: 1px solid var(--linie);
  border-radius: 999px; padding: .35rem .85rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--text-leise); text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.marke-klein::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--akzent);
}

/* ---------- Knoepfe ---------- */

.knopfreihe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background-color .12s ease;
}
.knopf--voll { background: var(--primaer); color: var(--grund); }
.knopf--voll:hover { background: var(--primaer-hell); color: var(--grund); transform: translateY(-1px); }
.knopf--leer { background: var(--grund-erhoben); border-color: var(--linie); color: var(--text); }
.knopf--leer:hover { border-color: var(--primaer); color: var(--primaer); transform: translateY(-1px); }

/* ---------- Inhaltsbereich ---------- */

.abschnitt { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.abschnitt--sanft { background: var(--grund-sanft); border-block: 1px solid var(--linie); }

.text { max-width: 42rem; }
.text > h2:first-child, .text > h3:first-child, .innen > h2:first-child { margin-top: 0; }

/* Stand-Datum unter Inhalten, die altern koennen */
.stand { color: var(--text-leise); font-size: .85rem; margin-top: 2.5rem; }

caption { text-align: left; margin-bottom: .6rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text-leise); }
.text ul, .text ol { padding-left: 1.35rem; }
.text li { margin-bottom: .45rem; }
.text li::marker { color: var(--primaer); }

.vorspann {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem);
  color: var(--text-leise);
  max-width: 44ch;
  margin-bottom: 2rem;
}

/* ---------- Karten ---------- */

.karten {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.karte {
  position: relative;
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--schatten);
  transition: transform .14s ease, border-color .14s ease;
}
.karte:hover { transform: translateY(-2px); border-color: var(--primaer); }
.karte h2, .karte h3 { margin: 0; font-size: 1.15rem; }
.karte p { margin: 0; color: var(--text-leise); font-size: .95rem; }
.karte a { text-decoration: none; color: inherit; }
.karte a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.karte a:hover { color: var(--primaer); }
.karte__nummer {
  font-variant-numeric: tabular-nums;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  color: var(--akzent);
}

/* ---------- Regelbloecke ---------- */

.regeln { display: grid; gap: 1.1rem; list-style: none; margin: 0; padding: 0; counter-reset: regel; }
.regel {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.regel::before {
  counter-increment: regel; content: counter(regel);
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--primaer-flach); color: var(--primaer);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.regel h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.regel p { margin: 0; color: var(--text-leise); }

/* ---------- Hinweiskasten ---------- */

.kasten {
  border: 1px solid var(--linie);
  border-left: 4px solid var(--akzent);
  background: var(--akzent-flach);
  border-radius: var(--radius-s);
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
}
.kasten > :last-child { margin-bottom: 0; }
.kasten__titel {
  font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--akzent);
  margin: 0 0 .4rem;
}
.kasten ol, .kasten ul { margin: 0; padding-left: 1.35rem; }
.kasten li { margin-bottom: .35rem; }
.kasten li:last-child { margin-bottom: 0; }

/* ---------- Tabelle ---------- */

.tabellenrahmen { overflow-x: auto; margin: 1.6rem 0; }
table {
  width: 100%; border-collapse: collapse;
  font-size: .95rem; min-width: 30rem;
}
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--grund-sanft); font-size: .85rem; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */

.faq { margin-top: 1.5rem; display: grid; gap: .7rem; }
.faq details {
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius-s);
  padding: .25rem 1.25rem;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: .95rem 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--primaer); font-size: 1.4rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--linie); }
.faq details > :not(summary) { margin-top: .9rem; }
.faq details > :last-child { margin-bottom: .95rem; }

/* ---------- Weiterlesen ---------- */

.weiter { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--linie); }
.weiter__titel { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); font-weight: 700; }
.weiter ul { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.weiter a {
  display: inline-block; padding: .5rem .95rem;
  background: var(--grund-erhoben); border: 1px solid var(--linie);
  border-radius: 999px; font-size: .92rem; text-decoration: none; color: var(--text);
}
.weiter a:hover { border-color: var(--primaer); color: var(--primaer); }

/* ---------- Fuss ---------- */

.fuss { margin-top: clamp(3rem, 8vw, 5rem); background: var(--grund-sanft); border-top: 1px solid var(--linie); }
.fuss__innen {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}
.fuss__marke { font-size: 1.05rem; color: var(--primaer); margin: 0 0 .6rem; }
.fuss__text { color: var(--text-leise); font-size: .92rem; max-width: 34ch; margin: 0; }
.fuss__titel { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text-leise); margin: 0 0 .7rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .1rem; }
.fuss li a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--text); text-decoration: none; font-size: .95rem;
}
.fuss li a:hover { color: var(--primaer); text-decoration: underline; }
.fuss__unten { border-top: 1px solid var(--linie); padding-block: 1.1rem; }
.fuss__unten p { margin: 0; font-size: .85rem; color: var(--text-leise); }

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

.recht { max-width: 44rem; }
.recht h2 { font-size: 1.3rem; }
.recht dl { margin: 0 0 1.5rem; }
.recht dt { font-weight: 600; margin-top: .8rem; }
.recht dd { margin: 0 0 .2rem; color: var(--text-leise); }
.todo {
  display: inline-block;
  background: var(--akzent-flach); color: var(--akzent);
  border: 1px dashed var(--akzent);
  border-radius: 4px; padding: .1rem .45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85em; font-weight: 600;
}

/* ---------- 404 ---------- */

.mitte { text-align: center; max-width: 40rem; margin-inline: auto; }
.mitte .knopfreihe { justify-content: center; }
.mitte .vorspann { margin-inline: auto; }
.mitte .karten { margin-top: 3rem; text-align: left; }
