/* Die Eichenbande – eichenbande.de
   Statisch, ohne Skripte, Cookies und fremde Server. Hell/Dunkel folgt der Systemeinstellung. */

@font-face { font-family: "Baloo 2"; src: url("/schriften/Baloo2-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/schriften/Nunito-Variable.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --grund: #fbf5e8;
  --grund-2: #f3e8cf;
  --flaeche: rgba(255, 252, 244, .78);
  --flaeche-fest: #fffcf4;
  --rand: rgba(122, 74, 34, .16);
  --text: #2b2217;
  --leise: #6b5a44;
  --wald: #1f4a31;
  --blatt: #4f8a33;
  --eiche: #7a4a22;
  --gold: #f2a93b;
  --gold-text: #2b1a05;
  --beere: #c2462f;
  --schatten: 0 18px 40px -18px rgba(60, 40, 15, .35);
  --rund: 26px;
  --seite: clamp(16px, 5vw, 88px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0d1912;
    --grund-2: #132519;
    --flaeche: rgba(30, 52, 37, .62);
    --flaeche-fest: #182d20;
    --rand: rgba(232, 220, 192, .12);
    --text: #f3ead6;
    --leise: #bfb194;
    --wald: #9fd27f;
    --blatt: #9fd27f;
    --eiche: #f2c27a;
    --gold: #f6b54c;
    --beere: #e2694f;
    --schatten: 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; font-weight: 800; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.seite { padding-inline: var(--seite); }
.ueberzeile { font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--blatt); }

/* Kopfleiste (Glas) */
.leiste {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
  background: color-mix(in srgb, var(--grund) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--rand);
}
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--eiche); white-space: nowrap; }
.marke img { width: 30px; height: 30px; }
.menue { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.menue a { text-decoration: none; font-weight: 800; font-size: .95rem; padding: 8px 12px; border-radius: 999px; color: var(--leise); }
.menue a:hover { background: var(--flaeche); color: var(--text); }
@media (max-width: 720px) { .menue .optional { display: none; } }
@media (max-width: 440px) { .menue .klein-weg { display: none; } .menue a { padding: 8px 10px; } .marke { font-size: 1.2rem; } }

/* Knöpfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 900; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease;
}
.knopf:hover { transform: translateY(-2px); }
.knopf:active { transform: translateY(0) scale(.98); }
.knopf.gold { background: var(--gold); color: var(--gold-text); box-shadow: 0 10px 22px -10px rgba(242, 169, 59, .9); }
.knopf.glas { background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.knopf.beere { background: var(--beere); color: #fff; }
.knopf.klein { min-height: 44px; padding: 0 16px; font-size: .95rem; width: 100%; }

/* Bühne */
.buehne { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 88px); display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .buehne { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.buehne h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); color: var(--eiche); letter-spacing: -.01em; }
.buehne h1 span { display: block; color: var(--wald); font-size: .46em; margin-top: .25em; }
.buehne .einleitung { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--leise); margin-block: 20px 28px; max-width: 34rem; }
.buehnenbild { border-radius: calc(var(--rund) + 6px); overflow: hidden; box-shadow: var(--schatten); border: 1px solid var(--rand); }
.buehnenbild img { width: 100%; aspect-ratio: 1402 / 1122; object-fit: cover; }

/* Abschnitte */
.abschnitt { padding-block: clamp(48px, 7vw, 104px); }
.abschnitt.getoent { background: var(--grund-2); }
.kopf { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 46rem; }
.kopf h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: var(--wald); }
.kopf p { color: var(--leise); font-size: 1.1rem; }

/* Welt */
.werte { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.wert { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--rund); padding: 22px 24px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wert b { display: block; font-family: "Baloo 2", sans-serif; font-size: 1.35rem; color: var(--eiche); margin-bottom: 4px; }
.wert p { color: var(--leise); }

/* Figuren */
.figuren { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); list-style: none; margin: 0; padding: 0; }
.figur { background: var(--flaeche-fest); border: 1px solid var(--rand); border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten); display: flex; flex-direction: column; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.figur:hover { transform: translateY(-4px); }
.figur img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.figur div { padding: 16px 18px 20px; display: grid; gap: 6px; }
.figur h3 { font-size: 1.6rem; color: var(--eiche); }
.figur .tier { font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--blatt); }
.figur p { color: var(--leise); font-style: italic; }

/* Lied */
.lied { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .lied { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.spieler { background: var(--flaeche); border: 1px solid var(--rand); border-radius: calc(var(--rund) + 6px); padding: clamp(20px, 3vw, 36px); box-shadow: var(--schatten); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: grid; gap: 16px; }
.spieler b { font-family: "Baloo 2", sans-serif; font-size: 1.6rem; color: var(--eiche); }
.spieler audio { width: 100%; }
.spieler small { color: var(--leise); }

/* Ausmalbilder */
.paket { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: clamp(28px, 4vw, 44px); }
.paket small { color: var(--leise); }
.gruppen { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.gruppe { background: var(--flaeche); border: 1px solid var(--rand); border-radius: calc(var(--rund) + 4px); padding: clamp(14px, 1.6vw, 22px); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gruppe h3 { font-size: 1.7rem; color: var(--eiche); margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.gruppe h3 span { font-family: "Nunito", sans-serif; font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--blatt); }
.ausmal { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.karte { background: var(--flaeche-fest); border: 1px solid var(--rand); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.karte img { width: 100%; aspect-ratio: 1055 / 1491; object-fit: contain; background: #fff; border-radius: 12px; }
.karte p { font-weight: 800; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.karte .knopf { margin-top: auto; background: var(--wald); color: var(--grund); }

/* Instagram */
.ruf { border-radius: calc(var(--rund) + 10px); padding: clamp(28px, 5vw, 64px); background: linear-gradient(135deg, #1f4a31, #2f6b45 55%, #4f8a33); color: #fbf5e8; display: grid; gap: 18px; justify-items: start; box-shadow: var(--schatten); }
.ruf h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.ruf p { color: #e6dcc3; font-size: 1.15rem; max-width: 40rem; }

/* Fuß */
.fuss { padding-block: 36px 48px; border-top: 1px solid var(--rand); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; color: var(--leise); font-size: .95rem; }
.fuss nav { display: flex; gap: 18px; flex-wrap: wrap; }
.fuss a { font-weight: 800; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }

/* Rechtstexte */
.recht { padding-block: clamp(40px, 6vw, 80px); max-width: 52rem; }
.recht h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--eiche); margin-bottom: 28px; }
.recht h2 { font-size: 1.5rem; color: var(--wald); margin: 32px 0 10px; }
.recht p, .recht li { color: var(--text); }
.recht p + p { margin-top: 10px; }
.recht ul { padding-left: 1.2em; }
.platzhalter { background: #ffe9a8; color: #4a3200; padding: 2px 8px; border-radius: 6px; font-weight: 800; }
@media (min-width: 1100px) { .figuren { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Neu auf Instagram (wird von neu.js gefüllt) */
.beitraege { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 1.6vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 1fr)); }
.beitrag a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--flaeche-fest); border: 1px solid var(--rand); border-radius: var(--rund); overflow: hidden; box-shadow: var(--schatten); position: relative; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.beitrag a:hover { transform: translateY(-4px); }
.beitrag img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--grund-2); }
.beitrag p { padding: 12px 16px 16px; font-weight: 800; font-size: .95rem; line-height: 1.35; }
.marke-video { position: absolute; top: 12px; left: 12px; background: rgba(20, 20, 20, .62); color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.neu-marke { display: inline-block; margin-left: 6px; background: var(--gold); color: var(--gold-text); font-size: .7rem; font-weight: 900; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
[hidden] { display: none !important; }
@media (min-width: 1100px) { .beitraege { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
