/* ── Lokale Schriften (kein Google-Request) ─────────────────────────────── */
@font-face {
  font-family: "Lilita One";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lilita-one-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/nunito-var.woff2") format("woff2");
}

/* ── Farben: Tag (Savanne mittags) ──────────────────────────────────────── */
:root,
:root[data-theme="day"] {
  --sky-top:     #8ccbe0;
  --sky-mid:     #f7dca0;
  --sky-low:     #f4b26a;
  --sun:         #fff1b8;
  --sun-glow:    rgba(255, 220, 120, 0.55);
  --hill-far:    #d9a35c;
  --hill-mid:    #b97d3f;
  --hill-near:   #8a5a2b;
  --silhouette:  #5b3a1e;

  --panel:       rgba(255, 246, 228, 0.9);
  --panel-solid: #fff6e4;
  --panel-alt:   #f6e3bf;
  --border:      rgba(139, 90, 43, 0.25);
  --text:        #3a2414;
  --text-dim:    #7a5a3e;
  --accent:      #a84a16;   /* dunkles Savannen-Orange: 5,7:1 auf Weiß, 4,6:1 auf Sand */
  --accent-2:    #66741f;
  --accent-text: #ffffff;
  --gold:        #c58a14;
  --live:        #c1342a;
  --shadow:      0 8px 24px rgba(110, 66, 24, 0.18);
  --star-opacity: 0;
  color-scheme: light;
}

/* ── Farben: Nacht (Sonnenuntergang → Sternenhimmel) ────────────────────── */
:root[data-theme="night"] {
  --sky-top:     #120d24;
  --sky-mid:     #3c1d3f;
  --sky-low:     #b34a2a;
  --sun:         #ffd9a0;
  --sun-glow:    rgba(255, 140, 70, 0.45);
  --hill-far:    #4a2230;
  --hill-mid:    #331722;
  --hill-near:   #210e16;
  --silhouette:  #1a0b10;

  --panel:       rgba(34, 20, 26, 0.86);
  --panel-solid: #22141a;
  --panel-alt:   #33202a;
  --border:      rgba(242, 165, 65, 0.22);
  --text:        #f6e6cf;
  --text-dim:    #c9a98a;
  --accent:      #f29a3a;
  --accent-2:    #b9c25a;
  --accent-text: #22120a;
  --gold:        #f4c25a;
  --live:        #ff5a4a;
  --shadow:      0 8px 28px rgba(0, 0, 0, 0.45);
  --star-opacity: 1;
  color-scheme: dark;
}

/* ── Grundlayout ────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%) fixed;
  background-color: var(--sky-mid);
  transition: color .4s;
}

a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .tabs a:focus-visible, .install-btn:focus-visible { outline-color: var(--text); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
h1, h2, h3, .brand-name, .stat-value, .goal-value {
  font-family: "Lilita One", "Nunito", sans-serif;
  font-weight: 400;
  letter-spacing: .3px;
}
main h2, h3 { margin: 0 0 .6rem; font-size: 1.25rem; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ── Layout: Seitenmenü + Inhalt ────────────────────────────────────────── */
:root { --topbar-h: 60px; --sidebar-w: 220px; --sidebar-w-collapsed: 68px; }

.layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - var(--topbar-h));
}
.content {
  flex: 1;
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 16px 4rem;
}

.sidebar {
  position: sticky;
  top: var(--topbar-h);
  flex: none;
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 1rem .6rem;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  transition: width .25s ease, transform .25s ease;
}
.tabs { display: flex; flex-direction: column; gap: .25rem; }
.tabs a {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .8rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}
.tabs a:hover, .tabs a:focus-visible { background: var(--panel-alt); color: var(--accent); }
.tabs a.active {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.tab-icon { flex: none; width: 1.6rem; text-align: center; font-size: 1.2rem; }
.tab-live {
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(255,255,255,.6);
  animation: pulse 1.6s infinite;
}

.install-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  margin-top: 1rem;
  padding: .65rem .8rem;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  text-align: left;
  line-height: 1.2;
  overflow: hidden;
  cursor: pointer;
}
.install-btn:hover { background: var(--panel-alt); }

/* Eingeklappt (Desktop): nur Icons */
body.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .tab-label { display: none; }
body.sidebar-collapsed .install-btn { padding: .65rem .5rem; justify-content: center; }
body.sidebar-collapsed .tab-live { position: absolute; top: 8px; right: 8px; }

.sidebar-backdrop { display: none; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Landschaft ─────────────────────────────────────────────────────────── */
.landscape {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Foto-Hintergrund (config.js → backgroundImages) */
.photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  opacity: 0;
  transition: opacity .8s;
}
.photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.18) 100%);
}
:root[data-theme="day"]   .photo-bg.pb-day,
:root[data-theme="night"] .photo-bg.pb-night { opacity: 1; }
.landscape.has-photo .stars,
.landscape.has-photo .sun,
.landscape.has-photo .hills,
.landscape.has-photo .silhouette { display: none; }

.stars {
  position: absolute;
  inset: 0 0 40% 0;
  opacity: var(--star-opacity);
  transition: opacity .8s;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 22%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 63% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 34%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 15% 45%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 40%, #fff 50%, transparent 51%);
}
.sun {
  position: absolute;
  right: 12%;
  bottom: 22vh;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 80px 40px var(--sun-glow);
  transition: background .6s, box-shadow .6s;
}
:root[data-theme="night"] .sun {
  bottom: 70vh;
  right: 16%;
  width: 70px;
  height: 70px;
  box-shadow: 0 0 40px 12px var(--sun-glow), inset -14px -6px 0 0 rgba(0,0,0,.18);
}
.hills {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 34vh;
  min-height: 200px;
}
.hill-far  { fill: var(--hill-far);  transition: fill .6s; }
.hill-mid  { fill: var(--hill-mid);  transition: fill .6s; }
.hill-near { fill: var(--hill-near); transition: fill .6s; }

.silhouette {
  position: absolute;
  color: var(--silhouette);
  transition: color .6s;
}
.tree.t1 { left: 4%;  bottom: 9vh;  width: 220px; height: 180px; }
.tree.t2 { left: 58%; bottom: 13vh; width: 150px; height: 125px; opacity: .85; }
.tree.t3 { right: 2%; bottom: 6vh;  width: 260px; height: 210px; }
.gazelle.g1 { left: 22%; bottom: 7vh;  width: 96px;  height: 86px; }
.gazelle.g2 { left: 70%; bottom: 11vh; width: 64px;  height: 58px; transform: scaleX(-1); opacity: .9; }

/* ── Kopfzeile ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem 16px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
}
.brand-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel-alt);
  border: 2px solid var(--accent);
  font-size: 1.3rem;
}
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-gazelle { width: 30px; height: 27px; color: var(--accent); }
.brand-name { font-size: 1.45rem; }

.topbar-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.live-pill {
  background: #c1342a;   /* fest, damit weiße Schrift in Tag & Nacht lesbar bleibt */
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  padding: .25rem .6rem;
  border-radius: 999px;
}
@keyframes pulse { 50% { opacity: .65; } }

.nav-burger { font-size: 1.15rem; }
.theme-toggle, .nav-burger {
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  border-radius: 999px;
  height: 38px;
  min-width: 38px;
  cursor: pointer;
  font-size: 1.05rem;
}
:root[data-theme="day"] .theme-icon-day,
:root[data-theme="night"] .theme-icon-night { display: none; }

/* ── Bausteine ──────────────────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.section { margin-top: 0; }
#dashboard .section-title { margin-top: 2rem; }
.section-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  font-size: 1.9rem;
  padding: .2rem 1rem .2rem .6rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.sub-title {
  display: inline-block;
  margin: 1.5rem 0 .8rem;
  padding: .2rem .9rem;
  font-size: 1.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--accent); }

.empty {
  color: var(--text-dim);
  font-style: italic;
  margin: 0;
}

.demo-banner {
  margin-bottom: 1rem;
  padding: .6rem 1rem;
  border-radius: 12px;
  background: var(--panel-alt);
  border: 1px dashed var(--accent);
  font-weight: 700;
  font-size: .95rem;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem;
}
.hero.has-embed { grid-template-columns: 1fr; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .85rem;
  color: var(--text-dim);
}
.hero-status.live { color: var(--live); }
.hero-status.live::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.6s infinite;
}
.hero-title { margin: .3rem 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.hero-sub { margin: 0 0 1rem; color: var(--text-dim); font-size: 1.1rem; }
.hero-buttons { display: flex; gap: .7rem; flex-wrap: wrap; }

.hero-embed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: .75rem;
}
.hero-embed iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #000;
}
.hero-embed .player { aspect-ratio: 16 / 9; }
.hero-embed .chat   { height: 100%; min-height: 360px; }

/* ── Dashboard ──────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.stat {
  position: relative;
  overflow: hidden;
}
.stat-icon {
  position: absolute;
  right: .8rem;
  top: .6rem;
  font-size: 1.8rem;
  opacity: .8;
}
.stat-label {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-dim);
  padding-right: 2.2rem;
}
.stat-value {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-top: .2rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat-value.small { font-size: 1.35rem; }
.stat-hint { font-size: .85rem; color: var(--text-dim); }

.goal-card { margin-top: 1rem; }
.goal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .6rem;
}
.goal-label { font-weight: 800; }
.goal-value { font-size: 1.4rem; color: var(--accent); }
.goal-track {
  position: relative;
  height: 26px;
  margin: 3.2rem 30px .4rem 0;
  border-radius: 999px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
}
.goal-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.18) 0 10px, transparent 10px 20px),
    linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 1.2s ease;
}
.goal-walker {
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 54px;
  height: 48px;
  color: var(--gold);
  transform: translateX(-50%);
  transition: left 1.2s ease;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}
.goal-walker.walking { animation: bob .5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-3px); } }
.goal-tree {
  position: absolute;
  right: -34px;
  bottom: 6px;
  width: 70px;
  height: 58px;
  color: var(--silhouette);
}
.goal-note { margin: .4rem 0 0; color: var(--text-dim); font-size: .9rem; }

/* ── Highscores ─────────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.score-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .8rem;
}
.score-head .icon {
  font-size: 1.6rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--panel-alt);
}
.score-head h2 { margin: 0; }
.score-head small { display: block; color: var(--text-dim); font-size: .85rem; }

.score-list { list-style: none; margin: 0; padding: 0; }
.score-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: .6rem;
  padding: .45rem .5rem;
  border-radius: 10px;
}
.score-row:nth-child(odd) { background: var(--panel-alt); }
.score-rank { text-align: center; font-weight: 800; color: var(--text-dim); }
.score-row.top .score-rank { font-size: 1.3rem; }
.score-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-name small { display: block; font-weight: 400; color: var(--text-dim); font-size: .8rem; }
.score-val { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }

/* ── Clips ──────────────────────────────────────────────────────────────── */
.clip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}
.clip-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  display: block;
}
.clip-media img { width: 100%; height: 100%; object-fit: cover; }
.clip-media iframe { width: 100%; height: 100%; border: 0; }
.clip-media .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  color: #fff;
  background: rgba(0,0,0,.2);
  transition: background .2s;
}
.clip-media:hover .play { background: rgba(0,0,0,.35); }
.clip-media .play span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  padding-left: 6px;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.clip-media .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
}
.clip-badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--gold);
  color: #2a1a05;
  font-weight: 800;
  font-size: .8rem;
  margin-bottom: .5rem;
}
.clip-hero h2 { font-size: 1.6rem; }
.clip-meta { color: var(--text-dim); margin: .2rem 0; }

.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.clip-card { padding: .7rem; }
.clip-card .clip-media { border-radius: 10px; }
.clip-card .clip-media .play span { width: 48px; height: 48px; font-size: 1.4rem; }
.clip-card h3 {
  margin: .6rem 0 .1rem;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clip-card .clip-meta { font-size: .85rem; }

/* ── Streamplan ─────────────────────────────────────────────────────────── */
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .6rem;
}
.day {
  min-height: 110px;
  padding: .6rem;
  border-radius: 12px;
  background: var(--panel-alt);
  border: 1px solid transparent;
}
.day.today { border-color: var(--accent); }
.day-name { font-weight: 800; font-size: .85rem; text-transform: uppercase; color: var(--text-dim); }
.day-date { font-size: .8rem; color: var(--text-dim); }
.slot {
  margin-top: .5rem;
  padding: .4rem .5rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: .85rem;
  line-height: 1.3;
}
.slot b { display: block; }
.slot.canceled { opacity: .5; text-decoration: line-through; }
.day-free { margin-top: .5rem; font-size: .8rem; color: var(--text-dim); }
.schedule-empty { text-align: center; padding: 1.5rem .5rem; }
.schedule-empty .big { font-size: 2.6rem; }
.vacation { margin-bottom: .8rem; padding: .6rem .8rem; border-radius: 10px; background: var(--panel-alt); font-weight: 700; }

/* ── Spiele ─────────────────────────────────────────────────────────────── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.game { padding: .6rem; text-align: center; }
.game-cover {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--hill-far), var(--hill-near));
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-name {
  margin-top: .5rem;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.25;
}
.game-hours { color: var(--accent); font-weight: 800; }
.game-last { color: var(--text-dim); font-size: .8rem; }

/* ── Emotes ─────────────────────────────────────────────────────────────── */
.emote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: .8rem;
}
.emote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .5rem .3rem;
  border-radius: 12px;
  background: var(--panel-alt);
  text-align: center;
}
.emote img, .emote .emote-ph { width: 56px; height: 56px; object-fit: contain; }
.emote .emote-ph { display: grid; place-items: center; font-size: 2.2rem; }
.emote-name { font-size: .75rem; font-weight: 700; word-break: break-all; }
.emote-tier { font-size: .7rem; color: var(--text-dim); }

/* ── Über mich ──────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.about-card p { margin: 0 0 .7rem; }
.setup-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem 1rem;
  margin: 0;
}
.setup-list dt { font-weight: 800; color: var(--text-dim); }
.setup-list dd { margin: 0; }
details {
  border-bottom: 1px solid var(--border);
  padding: .5rem 0;
}
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: .4rem 0 0; color: var(--text-dim); }
.rules-list { margin: 0; padding-left: 1.3rem; }
.rules-list li { margin-bottom: .35rem; }
.rules-list li::marker { color: var(--accent); font-weight: 800; }

/* ── Community ──────────────────────────────────────────────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.social-list { display: flex; flex-direction: column; gap: .5rem; }
.social {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .8rem;
  border-radius: 12px;
  background: var(--panel-alt);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  transition: transform .15s;
}
.social:hover { transform: translateX(3px); color: var(--accent); }
.social svg { width: 22px; height: 22px; flex: none; fill: currentColor; }

.discord-online {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  margin-bottom: .6rem;
}
.discord-online::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ba55d;
}
.discord-members { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.discord-members span {
  font-size: .8rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: var(--panel-alt);
}
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 16px;
  font-size: .85rem;
  color: var(--text);
  background: var(--panel);
  border-top: 1px solid var(--border);
}

/* ── Einwilligung & Modals ──────────────────────────────────────────────── */
.consent, .modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 10, 4, .55);
}
.consent { align-items: end; background: transparent; pointer-events: none; }
.consent-box {
  pointer-events: auto;
  max-width: 560px;
  background: var(--panel-solid);
}
.consent-box p { margin: 0 0 1rem; font-size: .95rem; }
.consent-buttons { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.consent-more { font-size: .85rem; }

.modal-box {
  position: relative;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--panel-solid);
}
.modal-box h2 { margin-top: 0; }
.modal-box h3 { margin: 1.2rem 0 .3rem; font-size: 1.1rem; }
.modal-box p, .modal-box li { font-size: .95rem; }
.modal-close {
  position: absolute;
  right: .8rem;
  top: .8rem;
  border: 0;
  background: var(--panel-alt);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

/* ── Die Herde ──────────────────────────────────────────────────────────── */
.season {
  font-family: "Nunito", sans-serif;
  font-size: .9rem;
  font-weight: 800;
  color: var(--text-dim);
}
.herd-intro p { margin: 0 0 1rem; }
.stage-row {
  display: flex;
  gap: .5rem;
  align-items: end;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: .2rem .1rem .7rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.stage {
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .5rem .3rem;
  border-radius: 12px;
  background: var(--panel-alt);
  border: 2px solid transparent;
  scroll-snap-align: center;
}
.stage.current { border-color: var(--accent); background: var(--panel-solid); }
.stage-no { font-size: .7rem; font-weight: 800; color: var(--text-dim); text-transform: uppercase; margin-top: .3rem; }
.stage svg { color: var(--accent); }
.stage-name { font-weight: 800; font-size: .8rem; line-height: 1.2; }
.stage-hours { font-size: .75rem; color: var(--text-dim); }

.herd-find { margin-top: 1rem; }
.herd-search-row { margin: .5rem 0 0; }
.herd-search-row input {
  width: 100%;
  max-width: 420px;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--panel-solid);
  color: var(--text);
  font: inherit;
}
.herd-search-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 74, 22, .3); }

.me-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--panel-alt);
}
.me-stage {
  display: grid;
  place-items: end center;
  height: 150px;
  border-radius: 12px;
  padding-bottom: 6px;
  /* weicher Bodenschatten unter den Hufen */
  background: radial-gradient(ellipse 45% 10% at 50% 94%, rgba(90,60,20,.35), transparent 70%),
              radial-gradient(ellipse 70% 22% at 50% 100%, rgba(122,139,46,.28), transparent 70%);
}
.me-stage svg { color: var(--accent); filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.me-name { font-family: "Lilita One", sans-serif; font-size: 1.6rem; line-height: 1.1; }
.me-rank { font-weight: 800; color: var(--accent); }
.me-meta { color: var(--text-dim); font-size: .9rem; margin: .2rem 0 .6rem; }
.bar {
  height: 12px;
  border-radius: 999px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.bar-label { font-size: .8rem; color: var(--text-dim); margin: .25rem 0 .5rem; }

.herd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.herd-member { text-align: center; padding: .8rem .6rem; position: relative; }
.herd-member .pos {
  position: absolute;
  left: .6rem;
  top: .5rem;
  font-weight: 800;
  color: var(--text-dim);
}
.herd-member .me-stage { height: 104px; }
.herd-member .name { font-weight: 800; margin-top: .4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.herd-member .rank { font-size: .8rem; color: var(--accent); font-weight: 800; }
.herd-member .hours { font-size: .8rem; color: var(--text-dim); }
.anon { font-style: italic; color: var(--text-dim); }
.herd-total { color: var(--text-dim); text-align: center; }

/* Live-Savanne: Gazellen laufen beim Stream durchs Bild */
.live-herd { position: absolute; inset: auto 0 0 0; height: 30vh; }
.runner {
  position: absolute;
  left: -80px;
  color: var(--silhouette);
  animation: run linear infinite;
}
.runner.rev { animation-name: run-rev; }
.runner svg { width: 100%; height: 100%; display: block; animation: hop .7s ease-in-out infinite; }
.runner.rev svg { transform: scaleX(-1); }
@keyframes run     { from { left: -80px; } to { left: 100%; } }
@keyframes run-rev { from { left: 100%; } to { left: -80px; } }
@keyframes hop { 50% { translate: 0 -4px; } }
.landscape.has-photo .live-herd .runner { color: rgba(40, 22, 10, .55); }
:root[data-theme="night"] .landscape.has-photo .live-herd .runner { color: rgba(5, 2, 4, .85); }

@media (max-width: 560px) {
  .me-card { grid-template-columns: 1fr; }
}

/* ── Live-Savanne (Reiter „Die Herde“) ──────────────────────────────────── */
.scene-card { margin-bottom: 1rem; padding: 1rem; }
.scene-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.scene-head h2 { margin: 0; }
.scene-sub { color: var(--text-dim); font-weight: 700; font-size: .9rem; }
.scene-live { color: var(--live); animation: pulse 1.6s infinite; }
.scene {
  position: relative;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--hill-mid);
  background-size: cover;
  background-position: center 78%;
  box-shadow: inset 0 -40px 60px rgba(0,0,0,.18);
}
.scene-gazelles { position: absolute; inset: 0; }
.scene-empty {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: .6rem 1rem;
  border-radius: 12px;
  background: var(--panel);
  font-weight: 700;
  text-align: center;
  width: min(90%, 420px);
}
.scene-hint { margin: .6rem 0 0; color: var(--text-dim); font-size: .85rem; }

.gz-img { display: block; height: auto; max-width: 100%; filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }

@media (max-width: 560px) {
  .scene { height: 260px; }
}

/* ── Mitmachen: Wort des Tages ──────────────────────────────────────────── */
.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.wotd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.wotd-head small { font-family: "Nunito", sans-serif; font-size: .9rem; color: var(--text-dim); }
.wotd-streak { font-weight: 800; color: var(--accent); }
.wotd-hint { margin: 0 0 .8rem; color: var(--text-dim); font-size: .95rem; }

.chase {
  position: relative;
  height: 70px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, transparent 62%, rgba(122,139,46,.4) 62%);
  overflow: hidden;
}
.chase-lion {
  position: absolute;
  left: 0;
  bottom: 6px;
  font-size: 2.4rem;
  transform: scaleX(-1);
  transition: left .5s ease;
}
.chase-gazelle {
  position: absolute;
  right: 4%;
  bottom: 6px;
  width: 64px;
  height: 58px;
  color: var(--accent);
  transition: right .8s ease, transform .8s ease, opacity .8s;
}
.chase.won .chase-gazelle { right: -20%; transform: translateY(-14px); opacity: 0; }
.chase.lost .chase-gazelle { opacity: .25; }

.wotd-word {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin: .4rem 0 .8rem;
}
.slot-l {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.6rem;
  border-bottom: 3px solid var(--accent);
  font-family: "Lilita One", sans-serif;
  font-size: 1.6rem;
}
.slot-l.shown { animation: pop .25s ease; }
.slot-l.missed { color: var(--live); }
@keyframes pop { 50% { transform: scale(1.2); } }
.wotd-msg { text-align: center; font-weight: 800; min-height: 1.5em; margin-bottom: .8rem; }

.keyboard {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: .35rem;
}
.key {
  padding: .55rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-alt);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.key:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.key:disabled { cursor: default; }
.key.hit  { background: var(--accent-2); color: var(--accent-text); border-color: transparent; }
.key.miss { opacity: .35; text-decoration: line-through; }
.wotd-actions { display: flex; justify-content: center; margin-top: 1rem; }
.wotd-stats { text-align: center; color: var(--text-dim); font-size: .85rem; margin: .6rem 0 0; }

/* ── Abstimmung ─────────────────────────────────────────────────────────── */
.poll-q { font-weight: 800; font-size: 1.1rem; margin: 0 0 .8rem; }
.poll-options { display: flex; flex-direction: column; gap: .5rem; }
.poll-opt {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem .9rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--panel-alt);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.poll-opt:hover:not(:disabled) { border-color: var(--accent); }
.poll-opt:disabled { cursor: default; }
.poll-opt.mine { border-color: var(--accent); }
.poll-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(123,139,46,.35), rgba(217,102,31,.35));
  transition: width .8s ease;
}
.poll-text, .poll-pct { position: relative; }
.poll-pct { font-weight: 800; color: var(--accent); }
.vote-error { margin: .6rem 0 0; color: var(--live); font-weight: 800; font-size: .9rem; }
.is-voting { opacity: .7; pointer-events: none; }
.poll-foot { color: var(--text-dim); font-size: .85rem; margin: .8rem 0 0; }

/* ── Meilensteine ───────────────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 10px;
  bottom: 10px;
  border-left: 3px dashed var(--accent);
  opacity: .5;
}
.ms { position: relative; display: flex; gap: 1rem; padding: .6rem 0; }
.ms-dot {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--panel-solid);
  border: 3px solid var(--accent);
  font-size: 1.3rem;
}
.ms.next .ms-dot { border-style: dashed; }
.ms-gazelle { width: 30px; height: 27px; color: var(--accent); }
.ms-date { font-size: .8rem; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.ms-title { font-family: "Lilita One", sans-serif; font-size: 1.25rem; }
.ms-text { color: var(--text-dim); }

/* ── Jahresrückblick ────────────────────────────────────────────────────── */
.wrapped-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.wrap-card { text-align: center; animation: fadeIn .4s ease both; }
.wrap-icon { font-size: 2.2rem; }
.wrap-big {
  font-family: "Lilita One", sans-serif;
  font-size: 1.7rem;
  line-height: 1.15;
  margin: .3rem 0;
  overflow-wrap: anywhere;
  color: var(--accent);
}
.wrap-label { color: var(--text-dim); font-weight: 700; font-size: .9rem; }
.wrapped-share {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.wrapped-share p { margin: 0; color: var(--text-dim); }
.wrapped-preview { margin-top: 1rem; text-align: center; }
.wrapped-preview img {
  display: inline-block;
  width: min(320px, 100%);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.wrapped-actions { display: flex; justify-content: center; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }

/* ── Ruhmeshalle ────────────────────────────────────────────────────────── */
.hall { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.hall .empty { grid-column: 1 / -1; }
.hall-season { padding: .8rem; border-radius: 12px; background: var(--panel-alt); }
.hall-year { font-family: "Lilita One", sans-serif; font-size: 1.2rem; color: var(--accent); margin-bottom: .4rem; }
.hall-list { list-style: none; margin: 0; padding: 0; }
.hall-list li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.hall-medal { width: 1.6rem; text-align: center; font-size: 1.2rem; }
.hall-name { flex: 1; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-hours { color: var(--text-dim); font-size: .85rem; font-weight: 700; }

/* ── Clip des Monats ────────────────────────────────────────────────────── */
.cotm-winner {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cotm-winner h3 { margin: .2rem 0; font-size: 1.15rem; }
.cotm-q { margin: 0 0 .8rem; font-weight: 700; }
.cotm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cotm-item { padding: .6rem; border-radius: 12px; background: var(--panel-alt); border: 2px solid transparent; }
.cotm-item.mine { border-color: var(--accent); }
.cotm-item .clip-media { border-radius: 10px; }
.cotm-item .clip-media .play span { width: 44px; height: 44px; font-size: 1.2rem; }
.cotm-title { font-weight: 800; margin: .5rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cotm-vote { width: 100%; justify-content: center; padding: .45rem; }
@media (max-width: 560px) { .cotm-winner { grid-template-columns: 1fr; } }

/* ── Lade-Platzhalter ───────────────────────────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--panel-alt);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
:root[data-theme="night"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-stat { height: 118px; }
.sk-tall { height: 320px; }
.sk-member { height: 190px; }
.sk-clip { height: 210px; }
.sk-hero { aspect-ratio: 16 / 9; border-radius: 14px; }

/* ── Abzeichen im Profil ────────────────────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.badge {
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .play-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .keyboard { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .slot-l { width: 1.6rem; height: 2.2rem; font-size: 1.3rem; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-embed { grid-template-columns: 1fr; }
  .hero-embed .chat { min-height: 420px; }
  .clip-hero { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: var(--topbar-h);
    z-index: 20;
    width: min(var(--sidebar-w), 80vw);
    background: var(--panel-solid);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    box-shadow: 4px 0 24px rgba(0,0,0,.25);
  }
  body.sidebar-open .sidebar { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
  body.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    z-index: 15;
    background: rgba(20, 10, 4, .45);
  }
  /* Auf dem Handy gibt es kein „nur Icons“ */
  body.sidebar-collapsed .sidebar { width: min(var(--sidebar-w), 80vw); }
  body.sidebar-collapsed .tab-label { display: inline; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { font-size: 1.5rem; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .stat { padding: 1rem; }
  .stat-value { font-size: 1.6rem; }
  .stat-value.small { font-size: 1.1rem; }
  .stat-icon { font-size: 1.3rem; }
  .hero { padding: 1.25rem; }
  .sun { width: 90px; height: 90px; }
  .tree.t2, .gazelle.g2 { display: none; }
  .brand-name { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.score-play { margin: 14px 0 0; text-align: center; }
