/* ============================================================
   KeyJagt v2 – Design System
   Dark + Grün, mobile-first, keine externen Abhängigkeiten
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #0b0d12;
  --bg-1:      #11141b;
  --bg-2:      #161a23;
  --bg-3:      #1d222d;
  --line:      #252b38;
  --line-2:    #323a4b;
  --text:      #e6e9ef;
  --text-2:    #aab3c2;
  --muted:     #6f7a8c;
  --accent:    #4ade80;
  --accent-2:  #22c55e;
  --accent-ink:#06210f;
  --accent-bg: rgba(74, 222, 128, .10);
  --accent-ln: rgba(74, 222, 128, .35);
  --red:       #f87171;
  --yellow:    #facc15;
  --blue:      #60a5fa;
  --xbox:      #107c10;
  --xbox-2:    #2bd22b;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --wrap:      1240px;
  --header-h:  64px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #86efac; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 1em; }
code { background: var(--bg-3); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.page-narrow { max-width: 820px; }
.page { padding-top: 28px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 759px) { .hide-sm { display: none !important; } }
@media (min-width: 760px) { .show-sm { display: none !important; } }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-3); color: var(--text); font: 600 .9rem/1 inherit; font-family: inherit;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s, color .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: #262c39; color: var(--text); border-color: #3e475b; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #6ee7a0; border-color: #6ee7a0; color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-danger { color: var(--red); }
.btn-sm { padding: 7px 11px; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn.active { background: var(--accent-bg); border-color: var(--accent-ln); color: var(--accent); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 6px; font-size: .72rem; font-weight: 750; line-height: 1.1;
  background: var(--bg-3); color: var(--text-2); border: 1px solid var(--line-2); white-space: nowrap;
}
.badge-discount { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.badge-low      { background: rgba(250, 204, 21, .12); color: var(--yellow); border-color: rgba(250, 204, 21, .35); }
.badge-gp       { background: var(--xbox); color: #fff; border-color: var(--xbox); }
.badge-new      { background: var(--blue); color: #061528; border-color: var(--blue); }
.badge-warn     { background: rgba(248, 113, 113, .12); color: var(--red); border-color: rgba(248, 113, 113, .35); }
.badge-soft     { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-ln); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 1.28rem; font-weight: 850; color: var(--text); letter-spacing: -.03em; flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo span { color: var(--accent); }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #4ade80, #16a34a); display: grid; place-items: center; box-shadow: 0 4px 18px rgba(74, 222, 128, .35); }
.logo-mark svg { width: 17px; height: 17px; color: var(--accent-ink); }

.main-nav { display: none; gap: 2px; }
.main-nav a { color: var(--text-2); padding: 8px 11px; border-radius: 8px; font-weight: 550; font-size: .9rem; }
.main-nav a:hover { color: var(--text); background: var(--bg-3); }
.main-nav a.active { color: var(--accent); }
@media (min-width: 1020px) { .main-nav { display: flex; } }

.header-search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.header-search input, .search-input {
  width: 100%; height: 40px; padding: 0 14px 0 38px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font: inherit; font-size: .92rem; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.header-search input:focus, .search-input:focus { border-color: var(--accent-ln); box-shadow: 0 0 0 4px rgba(74, 222, 128, .08); background: var(--bg-1); }
.header-search .ico, .search-wrap .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 .7rem inherit; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cur-toggle { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.cur-toggle button { background: transparent; border: 0; color: var(--muted); font: 700 .78rem inherit; font-family: inherit; padding: 6px 9px; border-radius: 6px; cursor: pointer; }
.cur-toggle button.active { background: var(--bg-3); color: var(--accent); }

.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

/* Dropdown (User) */
.dd { position: relative; }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; display: none; z-index: 60;
}
.dd.open .dd-menu { display: block; animation: pop .14s var(--ease); }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 8px; color: var(--text); font: 500 .88rem inherit; font-family: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--bg-3); color: var(--accent); }
.dd-head { padding: 8px 11px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: .78rem; color: var(--muted); }
.dd-head strong { display: block; color: var(--text); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* Mobile */
.mobile-search { padding: 0 0 12px; }
@media (min-width: 760px) { .mobile-search { display: none; } }
@media (max-width: 759px) {
  .header-search { display: none; }
  .header-actions { margin-left: auto; }
}
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--bg-1); border-left: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 4px; animation: slide .2s var(--ease); overflow-y: auto; }
.drawer-panel a { padding: 12px; border-radius: 10px; color: var(--text); font-weight: 600; }
.drawer-panel a:hover { background: var(--bg-3); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }

/* Such-Dropdown */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg);
  max-height: min(70vh, 560px); overflow-y: auto; display: none; padding: 6px;
}
.suggest.open { display: block; }
.suggest-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 4px; font-weight: 700; }
.suggest-item { display: flex; align-items: center; gap: 11px; padding: 7px 9px; border-radius: 9px; color: var(--text); }
.suggest-item:hover, .suggest-item.sel { background: var(--bg-3); color: var(--text); }
.suggest-item img { width: 72px; height: 34px; object-fit: cover; border-radius: 5px; background: var(--bg-3); flex-shrink: 0; }
.suggest-item .t { flex: 1; min-width: 0; font-size: .88rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item .p { font-weight: 750; font-size: .86rem; color: var(--accent); white-space: nowrap; }
.suggest-item .p.dim { color: var(--muted); font-weight: 600; font-size: .78rem; }
.suggest-all { display: block; text-align: center; padding: 10px; font-size: .85rem; font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; }
.suggest-empty { padding: 14px; color: var(--muted); font-size: .88rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1;
  background:
    radial-gradient(600px 260px at 20% 40%, rgba(74, 222, 128, .16), transparent 70%),
    radial-gradient(500px 240px at 85% 20%, rgba(96, 165, 250, .10), transparent 70%);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 850; letter-spacing: -.035em; max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 620px; }
.hero-search { position: relative; max-width: 640px; margin-top: 24px; }
.hero-search input { height: 56px; font-size: 1.05rem; padding-left: 50px; border-radius: 14px; background: var(--bg-1); border-color: var(--line-2); }
.hero-search .ico { left: 18px; }
.hero-search .btn { position: absolute; right: 7px; top: 7px; height: 42px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: .88rem; }
.hero-stats strong { color: var(--text); font-weight: 750; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-ln); }

/* ── Sections ────────────────────────────────────────────── */
.section { margin: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head .more { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.h-icon { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--accent-bg); color: var(--accent); font-size: 1rem; }

/* ── Game Cards ──────────────────────────────────────────── */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px)  { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .grid.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: calc((100% - 2 * 14px) / 3); } }
@media (min-width: 980px) { .rail { grid-auto-columns: calc((100% - 4 * 14px) / 5); } }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); color: var(--text); }
.card-media { position: relative; aspect-ratio: 460 / 215; background: var(--bg-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media.portrait { aspect-ratio: 3 / 4; }
.card-tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.card-tags.right { left: auto; right: 8px; }
.card-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title { font-weight: 650; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-meta { font-size: .76rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 1.05rem; color: var(--accent); letter-spacing: -.01em; }
.price.none { color: var(--muted); font-weight: 600; font-size: .85rem; }
.strike { color: var(--muted); text-decoration: line-through; font-size: .8rem; }
.shop-hint { font-size: .72rem; color: var(--muted); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }

/* ── Filter-Leiste ───────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.toolbar .grow { flex: 1; }
.select, .input {
  height: 38px; padding: 0 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: .88rem; outline: none;
}
.select:focus, .input:focus { border-color: var(--accent-ln); }
.select { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f7a8c' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg a, .seg button { padding: 7px 12px; border-radius: 7px; color: var(--text-2); font-size: .84rem; font-weight: 600; background: none; border: 0; cursor: pointer; font-family: inherit; }
.seg a:hover { color: var(--text); }
.seg a.active, .seg button.active { background: var(--bg-3); color: var(--accent); }
.results-info { color: var(--muted); font-size: .86rem; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 32px 0 8px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-weight: 600; font-size: .88rem; }
.pagination a:hover { border-color: var(--line-2); color: var(--text); }
.pagination .cur { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination .gap { border: 0; background: none; }

/* ── Spiel-Detail ────────────────────────────────────────── */
.game-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.game-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(38px) saturate(130%); opacity: .28; transform: scale(1.2); z-index: -2; }
.game-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,18,.4), var(--bg)); z-index: -1; }
.game-hero-inner { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 32px; }
@media (min-width: 900px) { .game-hero-inner { grid-template-columns: 460px 1fr; align-items: start; gap: 36px; padding-top: 40px; padding-bottom: 40px; } }
.game-cover { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); aspect-ratio: 460 / 215; background: var(--bg-3); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.game-info h1 { margin-bottom: 10px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-2); font-size: .86rem; margin-bottom: 14px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.desc { color: var(--text-2); font-size: .94rem; max-width: 720px; }

.best-box {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; margin: 18px 0 14px;
}
.best-box .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.best-box .big { font-size: 2rem; font-weight: 850; color: var(--accent); letter-spacing: -.03em; line-height: 1.1; }
.best-box .sub { font-size: .84rem; color: var(--text-2); }
.best-box .btn { margin-left: auto; }
@media (max-width: 560px) { .best-box .btn { margin-left: 0; width: 100%; } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.score { display: inline-flex; align-items: center; gap: 7px; font-weight: 750; }
.score-dot { width: 9px; height: 9px; border-radius: 50%; }

.gp-box { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(16,124,16,.22), rgba(16,124,16,.06)); border: 1px solid rgba(43,210,43,.28); margin: 0 0 14px; }
.gp-box .gp-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--xbox); display: grid; place-items: center; flex-shrink: 0; color: #fff; font-weight: 900; }
.gp-box strong { color: #fff; }
.gp-box .small { color: #b7e4b7; }

/* Preistabelle */
.offers { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-1); }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); }
.offer:first-child { border-top: 0; }
.offer.best { background: linear-gradient(90deg, rgba(74,222,128,.08), transparent 60%); }
.offer-shop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.offer-shop .name { font-weight: 700; }
.offer-price { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.offer-price .price { font-size: 1.1rem; }
.offer-extra { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); }
@media (min-width: 760px) {
  .offer { grid-template-columns: minmax(0, 1fr) 140px 120px 110px; }
  .offer-extra { grid-column: auto; justify-content: flex-start; }
  .offer-price { order: 3; }
  .offer .btn { order: 4; }
}
.offer-head { display: none; }
@media (min-width: 760px) {
  .offer-head { display: grid; grid-template-columns: minmax(0, 1fr) 140px 120px 110px; gap: 14px; padding: 10px 16px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .offer-head > :nth-child(3) { text-align: right; }
}
.voucher { font-family: ui-monospace, monospace; background: rgba(250,204,21,.1); color: var(--yellow); padding: 1px 6px; border-radius: 5px; }

.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.panel h2, .panel h3 { margin-top: 0; }
.two-col { display: grid; gap: 22px; }
@media (min-width: 980px) { .two-col { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.chart-box { position: relative; height: 280px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .88rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); text-align: right; }

/* ── Listen / Tabellen ───────────────────────────────────── */
.list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-1); }
.list-row { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--line); color: var(--text); }
.list-row:first-child { border-top: 0; }
a.list-row:hover { background: var(--bg-2); color: var(--text); }
.list-row img { width: 92px; height: 43px; object-fit: cover; border-radius: 6px; background: var(--bg-3); flex-shrink: 0; }
.list-row .t { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .r { display: flex; align-items: center; gap: 14px; flex-shrink: 0; font-size: .84rem; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; background: var(--bg-2); padding: 10px 14px; white-space: nowrap; }
.table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--bg-1); }
.table a { color: var(--text); }
.table a:hover { color: var(--accent); }

/* ── A–Z ─────────────────────────────────────────────────── */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.az a { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font-weight: 700; font-size: .84rem; }
.az a:hover { color: var(--text); border-color: var(--line-2); }
.az a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ── Formulare / Auth ────────────────────────────────────── */
.auth { min-height: calc(100vh - var(--header-h) - 140px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.45rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .78rem; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--accent-ln); box-shadow: 0 0 0 4px rgba(74,222,128,.08); }
.field .hint { font-size: .76rem; color: var(--muted); margin-top: 5px; }
.alert { padding: 11px 14px; border-radius: 10px; font-size: .88rem; margin-bottom: 18px; border: 1px solid; }
.alert-error { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.35); color: #fecaca; }
.alert-ok    { background: var(--accent-bg); border-color: var(--accent-ln); color: #bbf7d0; }
.alert-info  { background: rgba(96,165,250,.08); border-color: rgba(96,165,250,.3); color: #bfdbfe; }
.auth-alt { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 20px; }

/* ── Modal ───────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.modal.open { display: grid; }
.modal-box { width: 100%; max-width: 420px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg); animation: pop .15s var(--ease); }

/* ── Leerzustände & Loader ───────────────────────────────── */
.empty-state { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty-state .empty-icon { font-size: 2.6rem; margin-bottom: 10px; }
.empty-state h1, .empty-state h2 { color: var(--text); }
.skeleton { background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); background: var(--bg-3); color: var(--text); border: 1px solid var(--line-2); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; transition: .2s var(--ease); z-index: 100; font-size: .9rem; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Inhaltsseiten (Impressum etc.) ──────────────────────── */
.prose { color: var(--text-2); }
.prose h1 { color: var(--text); }
.prose h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 32px 0 10px; }
.prose strong { color: var(--text); }
.prose section { margin-bottom: 26px; }

/* ── Stat-Kacheln (Admin) ────────────────────────────────── */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 18px 0 26px; }
.stat { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .v { font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.stat .l { font-size: .78rem; color: var(--muted); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.status-dot.ok { background: var(--accent); } .status-dot.err { background: var(--red); } .status-dot.late { background: var(--yellow); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); margin-top: 56px; padding: 36px 0 28px; color: var(--muted); font-size: .86rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--text); font-size: .82rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .07em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; font-size: .78rem; }

.ad-slot { min-height: 90px; display: flex; align-items: center; justify-content: center; margin: 8px 0 0; }
