/* ==========================================================================
   kebabkurve.de – Stylesheet
   Brand: Asphalt-Schwarz + Döner-Orange + Feuer-Akzente
   ========================================================================== */

:root {
  /* Brand */
  --orange:       #ff6b1a;
  --orange-light: #ff8a3d;
  --orange-deep:  #e25400;
  --fire-1:       #ffb347;
  --fire-2:       #ff6b1a;
  --fire-3:       #d4342b;

  /* Neutrals */
  --asphalt-0:    #0b0d10;
  --asphalt-1:    #12151a;
  --asphalt-2:    #1a1f26;
  --asphalt-3:    #242a33;
  --asphalt-4:    #323945;

  --ink-0:        #ffffff;
  --ink-1:        #f2f3f5;
  --ink-2:        #b7bcc5;
  --ink-3:        #818893;
  --ink-4:        #525963;

  /* Signal */
  --good:         #3ecf8e;
  --bad:          #ff4f5e;
  --warn:         #ffb64c;

  /* Radii / shadows */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-1: 0 2px 8px rgba(0,0,0,.25);
  --shadow-2: 0 10px 30px rgba(0,0,0,.35);
  --shadow-fire: 0 12px 40px rgba(255, 107, 26, .35);

  /* Layout */
  --container: 1200px;
}

/* ---------- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--asphalt-0);
  color: var(--ink-1);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.centered { text-align: center; }
.main { min-height: 60vh; }

/* Skip link */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--orange); color: #000; padding: .5rem 1rem; border-radius: 0 0 var(--r-sm) 0;
  z-index: 1000;
}
.skip:focus { left: 0; }

/* ---------- Utilities ---------------------------------------------------- */
.muted { color: var(--ink-2); }
.muted.small, .small { font-size: .85rem; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; font-weight: 700;
  color: var(--orange-light);
  margin-bottom: 1rem;
  padding: .35rem .9rem;
  background: rgba(255,107,26,.1);
  border: 1px solid rgba(255,107,26,.3);
  border-radius: 999px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--fire-1), var(--fire-2) 55%, var(--fire-3));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,16,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--asphalt-3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  padding: .75rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  color: var(--ink-0);
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink-0); }
.brand img { width: 42px; height: 42px; }
.brand-text strong { color: var(--orange); font-weight: 900; }

.primary-nav {
  display: flex; align-items: center; gap: 1.25rem;
}
.primary-nav > a, .primary-nav .nav-user {
  color: var(--ink-2); font-weight: 600; font-size: .95rem;
  position: relative;
  padding: .3rem 0;
  transition: color .2s;
}
.primary-nav > a:hover { color: var(--orange); }
.primary-nav > a.is-active { color: var(--ink-0); }
.primary-nav > a.is-active::after {
  content: ""; position: absolute; inset: auto 0 -8px 0;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--fire-1), var(--fire-2));
}
.nav-user { color: var(--ink-3); font-weight: 500; }
.logout-form { display: inline; margin: 0; }
.link-btn {
  background: none; border: 0; color: var(--ink-2); cursor: pointer;
  font-weight: 600; padding: 0;
}
.link-btn:hover { color: var(--orange); }
.nav-cta, .nav-cta-ghost {
  padding: .55rem 1rem; border-radius: var(--r-sm); font-weight: 700;
  font-size: .9rem;
}
.nav-cta {
  background: linear-gradient(135deg, var(--fire-2), var(--fire-3));
  color: #fff; box-shadow: var(--shadow-fire);
}
.nav-cta:hover { filter: brightness(1.1); color: #fff; }
.nav-cta-ghost {
  border: 1.5px solid var(--asphalt-4);
  color: var(--ink-1);
}
.nav-cta-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: .5rem;
  gap: 5px; flex-direction: column;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--ink-1); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Flash */
.flash {
  margin: 1rem auto; max-width: var(--container);
  padding: .9rem 1.25rem;
  border-radius: var(--r-md);
  font-weight: 600;
}
.flash-success { background: rgba(62,207,142,.12); color: #71e4b0; border: 1px solid rgba(62,207,142,.35); }
.flash-error   { background: rgba(255,79,94,.12);  color: #ff8c97; border: 1px solid rgba(255,79,94,.35); }
.flash-info    { background: rgba(255,182,76,.12); color: #ffcf8c; border: 1px solid rgba(255,182,76,.35); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--r-sm);
  font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { padding: .55rem 1rem; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--fire-2), var(--fire-3));
  color: #fff;
  box-shadow: var(--shadow-fire);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost {
  background: transparent; color: var(--ink-1);
  border-color: var(--asphalt-4);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-dark {
  background: var(--asphalt-0); color: var(--ink-0);
  border-color: var(--asphalt-3);
}
.btn-dark:hover { background: var(--asphalt-2); color: #fff; }
.btn-danger {
  background: rgba(255,79,94,.12); color: #ff8c97; border-color: rgba(255,79,94,.3);
}
.btn-danger:hover { background: rgba(255,79,94,.2); }

.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 10vw, 7rem) 0 clamp(2rem, 8vw, 5rem);
  border-bottom: 1px solid var(--asphalt-3);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -30%; right: -20%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(255,107,26,.35) 0%, rgba(255,107,26,0) 60%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-bg-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(115deg, transparent 48%, rgba(255,255,255,.035) 49%, rgba(255,255,255,.035) 51%, transparent 52%),
    linear-gradient(115deg, transparent 72%, rgba(255,107,26,.08) 73%, rgba(255,107,26,.08) 74%, transparent 75%);
  background-size: 140px 140px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 900; letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.02;
}
.hero-lead {
  font-size: 1.15rem; color: var(--ink-2);
  max-width: 52ch;
}
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin: 1.75rem 0 2.5rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: 2rem;
  border-top: 1px solid var(--asphalt-3); padding-top: 1.5rem;
}
.stat-num {
  font-size: 2rem; font-weight: 900; letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--ink-0), var(--ink-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-logo {
  width: min(100%, 420px);
  filter: drop-shadow(0 20px 40px rgba(255,107,26,.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-flame {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 65% 55%, rgba(255,107,26,.25) 0%, transparent 40%);
  pointer-events: none; z-index: -1;
}

/* ---------- Page head ---------------------------------------------------- */
.page-head {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--asphalt-3);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,107,26,.18) 0%, transparent 50%);
  pointer-events: none;
}
.page-head > * { position: relative; }
.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.02em;
}
.page-lead {
  font-size: 1.1rem; color: var(--ink-2); max-width: 62ch;
}

/* ---------- Sections / cards --------------------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-dark { background: linear-gradient(180deg, var(--asphalt-1), var(--asphalt-0)); }

.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.section-title.centered { text-align: center; }
.centered-lead {
  text-align: center; color: var(--ink-2);
  max-width: 60ch; margin: 0 auto 2.5rem;
}

.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.card {
  padding: 2rem; border-radius: var(--r-lg);
  background: var(--asphalt-1); border: 1px solid var(--asphalt-3);
  box-shadow: var(--shadow-1);
}
.card-dark {
  background: linear-gradient(160deg, var(--asphalt-2) 0%, var(--asphalt-1) 100%);
}
.card-orange {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,107,26,.18) 0%, transparent 60%),
    linear-gradient(160deg, var(--asphalt-2), var(--asphalt-1));
  border-color: rgba(255,107,26,.3);
}

.process-list {
  list-style: none; padding: 0; margin: 1rem 0;
}
.process-list li {
  display: flex; gap: 1rem; align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--asphalt-3);
}
.process-list li:last-child { border-bottom: 0; }
.process-list span {
  flex: 0 0 auto;
  font-family: monospace; font-weight: 700;
  color: var(--orange); font-size: .95rem;
  width: 30px;
}

/* Video embed */
.video-wrap {
  position: relative; padding-top: 56.25%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--asphalt-2);
  max-width: 960px; margin: 0 auto;
  box-shadow: var(--shadow-2);
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Podium */
.podium {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem;
  margin-top: 2rem;
}
.podium-card {
  padding: 1.75rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--asphalt-2), var(--asphalt-1));
  border: 1px solid var(--asphalt-3);
  text-align: center; position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.podium-card:hover {
  transform: translateY(-4px); border-color: var(--orange);
  box-shadow: var(--shadow-fire);
}
.podium-1 { background: linear-gradient(160deg, rgba(255,107,26,.18), var(--asphalt-1)); border-color: rgba(255,107,26,.4); }
.podium-rank { font-size: 1.75rem; font-weight: 900; color: var(--orange); margin-bottom: .5rem; }
.podium-1 .podium-rank { font-size: 2.25rem; }
.podium-name { font-size: 1.15rem; font-weight: 800; margin-bottom: .25rem; }
.podium-ort { color: var(--ink-3); font-size: .9rem; margin-bottom: 1rem; }
.podium-score {
  font-size: 2.25rem; font-weight: 900;
  color: var(--ink-0);
}
.podium-score span { font-size: 1rem; color: var(--ink-3); font-weight: 600; }

/* ---------- Konzept categories ------------------------------------------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin-top: 1rem;
}
.cat-card {
  padding: 1.25rem 1.5rem; border-radius: var(--r-md);
  background: var(--asphalt-1); border: 1px solid var(--asphalt-3);
  transition: border-color .2s, transform .2s;
}
.cat-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.cat-label { font-weight: 700; font-size: 1.05rem; }
.cat-max { font-weight: 800; color: var(--orange); font-size: 1.1rem; }
.cat-bar {
  height: 6px; border-radius: 999px;
  background: var(--asphalt-3);
  overflow: hidden; margin-bottom: .75rem;
}
.cat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fire-1), var(--fire-2), var(--fire-3));
}
.cat-desc { color: var(--ink-3); font-size: .88rem; }

/* Rules */
.rules-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.rule-card {
  padding: 2rem; border-radius: var(--r-lg);
  background: var(--asphalt-2); border: 1px solid var(--asphalt-3);
  text-align: center;
}
.rule-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.rule-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.rule-card p { color: var(--ink-2); margin: 0; }

/* ---------- Tables ------------------------------------------------------- */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--asphalt-3); }
.rank-table {
  width: 100%; border-collapse: collapse;
  font-size: .92rem; background: var(--asphalt-1);
}
.rank-table th, .rank-table td {
  padding: .9rem 1rem; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--asphalt-3);
}
.rank-table thead th {
  background: var(--asphalt-2);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-2); font-weight: 700;
  position: sticky; top: 0;
}
.rank-table thead th a { color: inherit; }
.rank-table thead th a:hover { color: var(--orange); }
.rank-table tbody tr:hover { background: var(--asphalt-2); }
.rank-table tbody tr:last-child td { border-bottom: 0; }
.rank-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-table .max { color: var(--ink-4); font-size: .85em; margin-left: .15em; }

.col-rank { width: 80px; font-weight: 800; color: var(--ink-2); }
.col-name strong { color: var(--ink-0); }

.medal {
  display: inline-block;
  padding: .2rem .5rem; border-radius: 6px; font-weight: 800; font-size: .85rem;
}
.medal-1 { background: rgba(255,183,0,.18);  color: #ffd166; border: 1px solid rgba(255,183,0,.4); }
.medal-2 { background: rgba(192,192,192,.18); color: #d8d8d8; border: 1px solid rgba(192,192,192,.4); }
.medal-3 { background: rgba(205,127,50,.18);  color: #e8a87c; border: 1px solid rgba(205,127,50,.4); }

.plz {
  display: inline-block;
  padding: 0 .4em; border-radius: 4px;
  background: var(--asphalt-3); color: var(--ink-2);
  font-size: .82em; font-weight: 600; margin-right: .25em;
  font-variant-numeric: tabular-nums;
}
.total-badge {
  display: inline-block; min-width: 2.4em;
  padding: .15rem .5rem;
  background: linear-gradient(135deg, var(--fire-2), var(--fire-3));
  color: #fff; border-radius: 6px;
  font-weight: 800;
  text-align: center;
}
.total-badge.big {
  font-size: 1.75rem; padding: .35rem .75rem;
  box-shadow: var(--shadow-fire);
}
.video-link {
  display: inline-flex; align-items: center; gap: .2em;
  padding: .3rem .75rem;
  border-radius: 6px;
  background: rgba(255,107,26,.1);
  border: 1px solid rgba(255,107,26,.3);
  color: var(--orange-light);
  font-size: .85rem; font-weight: 700;
}
.video-link:hover { background: rgba(255,107,26,.2); color: var(--orange); }

/* ---------- Community grid ------------------------------------------------ */
.community-grid {
  display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: start;
}
.submit-panel {
  position: sticky; top: 80px;
  padding: 1.75rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--asphalt-2), var(--asphalt-1));
  border: 1px solid var(--asphalt-3);
}

.list-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.list-head .section-title { margin: 0; }
.sort-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  display: inline-block;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--asphalt-2); border: 1px solid var(--asphalt-3);
  color: var(--ink-2); font-weight: 600; font-size: .85rem;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.is-active {
  background: rgba(255,107,26,.14);
  color: var(--orange); border-color: var(--orange);
}

.entry-card {
  display: flex; gap: 1.25rem; align-items: stretch;
  padding: 1.25rem 1.5rem;
  background: var(--asphalt-1);
  border: 1px solid var(--asphalt-3);
  border-radius: var(--r-lg);
  margin-bottom: 1rem;
  transition: border-color .2s, transform .2s;
}
.entry-card:hover { border-color: rgba(255,107,26,.4); }

.entry-main {
  display: flex; align-items: center; gap: 1rem;
  flex: 1;
}
.entry-rank {
  flex: 0 0 auto;
  font-size: 1.6rem; font-weight: 900; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}
.entry-info { flex: 1; min-width: 0; }
.entry-name { font-size: 1.2rem; margin-bottom: .25rem; color: var(--ink-0); }
.entry-meta { display: flex; gap: .5rem; align-items: center; color: var(--ink-2); font-size: .9rem; flex-wrap: wrap; }

.entry-details { margin-top: .75rem; }
.entry-details summary {
  cursor: pointer; color: var(--ink-3); font-size: .85rem; font-weight: 600;
  padding: .25rem 0;
}
.entry-details summary:hover { color: var(--orange); }
.scores-mini {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .5rem; margin-top: .75rem;
}
.scores-mini > div {
  background: var(--asphalt-2); padding: .5rem .75rem;
  border-radius: 6px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem;
}
.scores-mini span { color: var(--ink-3); }
.scores-mini strong { color: var(--ink-0); }
.scores-mini .max { color: var(--ink-4); font-size: .85em; }

.entry-score { text-align: center; flex: 0 0 auto; }
.entry-votes {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  gap: .25rem;
}
.vote-btn {
  background: var(--asphalt-2); border: 1.5px solid var(--asphalt-3);
  color: var(--ink-2);
  padding: .3rem .65rem; border-radius: 8px;
  font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; gap: .25em;
  transition: all .15s;
  min-width: 60px; justify-content: center;
}
.vote-btn:hover:not(:disabled) { transform: scale(1.05); }
.vote-btn:disabled { opacity: .5; cursor: not-allowed; }
.vote-up:hover:not(:disabled), .vote-up.is-active { background: rgba(62,207,142,.12); color: var(--good); border-color: var(--good); }
.vote-down:hover:not(:disabled), .vote-down.is-active { background: rgba(255,79,94,.12); color: var(--bad); border-color: var(--bad); }
.vote-score {
  font-weight: 800; font-size: 1.1rem; color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}

/* ---------- Forms -------------------------------------------------------- */
.rate-form { display: flex; flex-direction: column; gap: 1rem; }
.rate-form label {
  display: flex; flex-direction: column; gap: .3rem;
  font-size: .9rem; color: var(--ink-2); font-weight: 600;
}
.rate-form label > span { color: var(--ink-2); }
.rate-form input[type="text"],
.rate-form input[type="email"],
.rate-form input[type="url"],
.rate-form input[type="password"],
.rate-form input[type="date"],
.rate-form input:not([type="range"]),
.rate-form textarea {
  background: var(--asphalt-0);
  border: 1.5px solid var(--asphalt-3);
  color: var(--ink-0);
  padding: .7rem .85rem;
  border-radius: var(--r-sm);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.rate-form input:focus, .rate-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,26,.2);
}
.rate-form small { color: var(--ink-3); font-weight: 500; font-size: .8rem; }

.grid-2-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}

.subtle-heading {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); margin: 1rem 0 .25rem;
  font-weight: 700;
}

.slider-row {
  display: flex !important; flex-direction: column; gap: .35rem !important;
  padding: .5rem 0;
}
.slider-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .9rem;
}
.slider-value { color: var(--orange); font-weight: 800; font-size: 1.05rem; }
.slider-head .max { color: var(--ink-4); font-size: .85em; }

input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  background: transparent; padding: 0;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--fire-2) 0%, var(--fire-2) var(--val,70%), var(--asphalt-3) var(--val,70%), var(--asphalt-3) 100%);
}
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 999px; background: var(--asphalt-3);
}
input[type="range"]::-moz-range-progress {
  height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--fire-1), var(--fire-2));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--orange);
  margin-top: -7px;
  box-shadow: 0 2px 10px rgba(255,107,26,.4);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--orange);
  box-shadow: 0 2px 10px rgba(255,107,26,.4);
  cursor: pointer;
}

.total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; margin-top: .75rem;
  background: var(--asphalt-0);
  border: 1.5px dashed var(--asphalt-4);
  border-radius: var(--r-md);
  font-weight: 700;
}
.total-display {
  font-size: 1.75rem; color: var(--orange); font-weight: 900;
}
.total-display span { color: var(--ink-3); font-size: 1rem; font-weight: 600; }

/* Auth */
.auth-section {
  padding: clamp(3rem, 8vw, 5rem) 1.25rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 70vh;
}
.auth-card {
  background: linear-gradient(160deg, var(--asphalt-2), var(--asphalt-1));
  border: 1px solid var(--asphalt-3);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 440px; width: 100%;
  box-shadow: var(--shadow-2);
  text-align: center;
}
.auth-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.auth-title { font-size: 1.75rem; margin-bottom: .25rem; }
.auth-sub { color: var(--ink-2); margin-bottom: 1.75rem; }
.auth-form {
  display: flex; flex-direction: column; gap: 1rem;
  text-align: left;
}
.auth-form label {
  display: flex; flex-direction: column; gap: .3rem;
  font-size: .9rem;
}
.auth-form input {
  background: var(--asphalt-0); border: 1.5px solid var(--asphalt-3);
  color: var(--ink-0); padding: .7rem .85rem; border-radius: var(--r-sm);
  font-size: 1rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,26,.2);
}
.auth-form small { color: var(--ink-3); font-size: .78rem; }
.auth-switch { margin-top: 1.25rem; color: var(--ink-3); font-size: .9rem; }

/* Empty state */
.empty-state {
  text-align: center; padding: 4rem 1rem;
  background: var(--asphalt-1); border: 1px dashed var(--asphalt-4);
  border-radius: var(--r-lg);
}
.empty-state.compact { padding: 2rem 1rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h2, .empty-state h3 { margin-bottom: .5rem; }
.empty-state p { color: var(--ink-2); margin: 0; }

/* Admin */
.admin-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.25rem;
}
.inline-form {
  display: inline-flex; gap: .5rem; align-items: center; margin: 0;
}
.inline-form input[type="text"] {
  flex: 1; min-width: 200px;
  background: var(--asphalt-0); border: 1.5px solid var(--asphalt-3);
  color: var(--ink-0); padding: .6rem .85rem; border-radius: var(--r-sm);
  font-size: 1rem; font-family: inherit;
}
.stats-list { list-style: none; padding: 0; margin: 1rem 0; }
.stats-list li { padding: .5rem 0; border-bottom: 1px solid var(--asphalt-3); }
.stats-list li:last-child { border-bottom: 0; }
.stats-list strong { color: var(--orange); font-weight: 900; margin-right: .5em; }
.row-hidden { opacity: .5; }

/* Prose (impressum) */
.prose {
  max-width: 800px;
  color: var(--ink-1);
}
.prose h2 { margin-top: 2.5rem; font-size: 1.75rem; color: var(--orange); }
.prose h3 { margin-top: 1.75rem; font-size: 1.2rem; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink-0); }

/* Footer */
.site-footer {
  background: var(--asphalt-1);
  border-top: 1px solid var(--asphalt-3);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  max-width: var(--container); margin: 0 auto; padding: 0 1.25rem;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-title { font-weight: 800; font-size: 1.1rem; color: var(--ink-0); }
.footer-tag { color: var(--ink-3); font-size: .85rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink-2); font-weight: 500; }
.footer-links a:hover { color: var(--orange); }
.footer-meta { grid-column: 1/-1; margin-top: 1.5rem; color: var(--ink-4); font-size: .85rem; text-align: center; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .hero-stats { justify-content: center; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero-actions { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .submit-panel { position: static; }
  .admin-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    gap: .25rem;
    padding: 1rem 1.25rem;
    background: var(--asphalt-1);
    border-bottom: 1px solid var(--asphalt-3);
    transform: translateY(-12px); opacity: 0;
    pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .primary-nav.is-open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .primary-nav > a, .primary-nav > form, .primary-nav > span {
    padding: .75rem .5rem;
    border-bottom: 1px solid var(--asphalt-3);
  }
  .primary-nav > a.is-active::after { display: none; }
  .nav-cta, .nav-cta-ghost { text-align: center; }

  .entry-card { flex-direction: column; }
  .entry-main { align-items: flex-start; }
  .entry-votes { flex-direction: row; justify-content: center; }
  .vote-btn { min-width: 80px; }

  .grid-2-cols { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .rank-table { font-size: .85rem; }
  .rank-table th, .rank-table td { padding: .65rem .5rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-links { justify-content: center; }
}

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