/* =========================================================
   Umweltbildung spielerisch – gemeinsames Aussehen aller Seiten
   Farben und Abstände stehen oben als Variablen. Wer z. B. das
   Grün ändern will, ändert nur --gruen.
   ========================================================= */
@import url("schriften/seite.css");

:root {
  --papier: #f6f2e9;      /* Hintergrund */
  --karte: #fffdf8;       /* Kästen und Karten */
  --tinte: #1d2a24;       /* Text */
  --leise: #56655d;       /* Nebentext */
  --linie: #e2dac8;
  --gruen: #2d6a4f;       /* Hauptfarbe */
  --gruen-dunkel: #1f4d3a;
  --gruen-hell: #e3eee6;
  --ocker: #c98a1b;       /* Akzent */
  --ocker-hell: #f7ead0;
  --himmel: #2f6f9f;
  --radius: 6px;
  --schatten: none;
  --breite: 72rem;
  --kopf: "Atkinson Hyperlegible", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 1.0625rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-underline-offset: .18em; }
a:hover { color: var(--gruen-dunkel); }
:focus-visible { outline: 3px solid var(--ocker); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--kopf); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

.huelle { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.schmal { max-width: 46rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.springen { position: absolute; left: -999px; top: .5rem; background: var(--karte); padding: .5rem 1rem; z-index: 20; }
.springen:focus { left: .5rem; }

/* ---------- Kopfzeile ---------- */
.kopf { background: var(--papier); border-bottom: 2px solid var(--gruen); }
.kopf .huelle { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.marke { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--tinte); font-family: var(--kopf); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.marke img { width: 2.1rem; }
.marke span small { display: block; font: 400 .78rem var(--text); color: var(--leise); letter-spacing: .02em; }
.navi { margin-left: auto; display: flex; gap: .25rem; flex-wrap: wrap; }
.navi a { color: var(--gruen); padding: .5rem .7rem; font-size: 1rem; }
.navi a:hover { color: var(--gruen-dunkel); }
.navi a[aria-current="page"] { color: var(--tinte); font-weight: 700; text-decoration: none; }
@media (max-width: 40rem) {
  .kopf .huelle { flex-wrap: wrap; padding-block: .6rem; gap: .4rem; }
  .navi { margin-left: 0; width: 100%; }
  .navi a { padding: .35rem .7rem; font-size: .9rem; }
  .marke span small { display: none; }
}

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid var(--gruen); background: var(--gruen); color: #fff; }
.knopf:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: #fff; }
.knopf.zweit { background: transparent; color: var(--gruen); }
.knopf.zweit:hover { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.knopf.gross { font-size: 1.15rem; padding: 1rem 1.7rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Startseite ---------- */
.held { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.held .huelle { display: grid; gap: 2.5rem; grid-template-columns: 1.2fr .8fr; align-items: center; }
.held p.gross { font-size: 1.15rem; max-width: 36rem; }
.dachzeile { color: var(--leise); font-size: .95rem; margin-bottom: .5rem; }
.held-bild img { border: 1px solid var(--linie); border-radius: var(--radius); }
@media (max-width: 52rem) { .held .huelle { grid-template-columns: 1fr; } .held-bild { max-width: 26rem; } }

.vorteile { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.75rem; padding: 0; list-style: none; color: var(--leise); font-size: .95rem; }
.vorteile li::before { content: "✓"; color: var(--gruen); font-weight: 700; margin-right: .4rem; }

.abschnitt { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.abschnitt.hell { background: var(--karte); border-block: 1px solid var(--linie); }
.abschnitt-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; }
.abschnitt-kopf p { margin: 0; color: var(--leise); max-width: 36rem; }

/* Spielkarten */
.karten { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.karte:hover { border-color: var(--gruen); }
.karte img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--linie); }
.karte-inhalt { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.karte h3 { margin: 0; }
.karte h3 a { color: var(--gruen); }
.karte h3 a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.karte p { margin: 0; color: var(--leise); font-size: .98rem; }
.thema { font-size: .9rem; color: var(--leise); }
.eckdaten { margin-top: auto; padding-top: .75rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--leise); border-top: 1px dashed var(--linie); }
.eckdaten span { white-space: nowrap; }
.eckdaten b { color: var(--tinte); }

/* Drei Schritte */
.schritte { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: s; padding: 0; list-style: none; }
.schritte li { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.4rem; counter-increment: s; }
.schritte li::before { content: counter(s) "."; font: 700 1.3rem var(--kopf); color: var(--ocker); }
.schritte h3 { margin-bottom: .3rem; }
.schritte p { margin: 0; color: var(--leise); }

/* ---------- Spielseite (Beschreibung) ---------- */
.pfad { font-size: .9rem; color: var(--leise); margin: 1.5rem 0 1rem; }
.pfad a { color: var(--leise); }
.spiel-kopf { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: center; padding-bottom: 2.5rem; }
.spiel-kopf img { border-radius: var(--radius); box-shadow: var(--schatten); border: 1px solid var(--linie); }
.spiel-kopf p.gross { font-size: 1.2rem; color: var(--leise); }
@media (max-width: 52rem) { .spiel-kopf { grid-template-columns: 1fr; } }

.spalten { max-width: 48rem; padding-bottom: 4rem; }

.text h2 { margin-top: 2.2rem; }
.text h2:first-child { margin-top: 0; }
.text ul, .text ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.text li { margin-bottom: .4em; }
.text li::marker { color: var(--gruen); }
.ablauf { display: grid; gap: 1rem; margin: 1.2rem 0 1.5rem; }
.ablauf section { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 1.1rem 1.3rem; }
.ablauf h3 { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.1rem; margin-bottom: .4rem; }
.ablauf h3 small { font: 700 .85rem var(--text); color: var(--ocker); white-space: nowrap; }
.ablauf p:last-child, .ablauf ul:last-child { margin-bottom: 0; }
.kasten { background: var(--karte); border: 1px solid var(--linie); border-left: 5px solid var(--gruen); border-radius: 10px; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.kasten.ocker { border-left-color: var(--ocker); background: var(--ocker-hell); border-color: #ecd9b2; }
.kasten > :last-child { margin-bottom: 0; }
.kasten h3 { font-size: 1.1rem; margin-bottom: .4rem; }

.quellen { font-size: .92rem; color: var(--leise); }

/* ---------- Tabelle (Konzeptseite) ---------- */
.tabelle-huelle { overflow-x: auto; margin: 1.2rem 0 1.5rem; border: 1px solid var(--linie); border-radius: 12px; background: var(--karte); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--gruen-hell); font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }

.inhalt-seite { padding: 2.5rem 0 4rem; }
.inhalt-seite h1 { margin-bottom: .4em; }
.einleitung { font-size: 1.2rem; color: var(--leise); }
.platzhalter { background: #fff3b0; padding: 0 .25em; border-radius: 3px; }

/* ---------- Fußzeile ---------- */
.fuss { border-top: 1px solid var(--linie); color: var(--leise); padding: 1.75rem 0; font-size: .95rem; }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.fuss a { color: var(--gruen); }
.fuss nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.fuss p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .kopf, .fuss, .knopfreihe { display: none; } body { background: #fff; } }
