/* ============================================================
   site.css — Layout für die echte Web-App (ergänzt app.css)
   ============================================================ */

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body);
  background: var(--stone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pitch-700); }
img { max-width: 100%; display: block; }

/* WM-Streifen-Intensität fix gesetzt (kein Tweak-Panel) */
:root { --wm: 0.62; }

/* ---------- Flash ---------- */
.flash {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 9999; padding: 12px 20px; border-radius: 12px;
  font-family: var(--ff-display); font-weight: 700; font-size: 14px;
  box-shadow: var(--sh-md); animation: flashIn .3s ease;
}
.flash-ok   { background: var(--st-ok-bg);  color: var(--st-ok); }
.flash-info { background: var(--st-new-bg); color: var(--st-new); }
.flash-error{ background: var(--st-rej-bg); color: var(--st-rej); }
@keyframes flashIn { from { opacity: 0; transform: translate(-50%, -8px); } }

/* ============================================================
   ÖFFENTLICH (Teilnahme) — responsiv mobil & desktop
   ============================================================ */
.pub-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--pitch-900);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.pub-header .logo img { height: 22px; }
.pub-wrap { max-width: 1100px; margin: 0 auto; }
.pub-narrow { max-width: 680px; margin: 0 auto; }

.hero {
  padding: 48px 22px 54px;
  position: relative; overflow: hidden;
}
.hero .eyebrow { color: var(--gold-400); }
.hero h1 {
  color: #fff; font-size: clamp(38px, 7vw, 68px);
  margin: 14px 0 0; max-width: 14ch;
}
.hero h1 .gold { color: var(--gold-400); }
.hero p { color: rgba(255,255,255,.85); font-size: clamp(15px,2vw,18px); margin-top: 16px; max-width: 46ch; }
.hero-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px;
  color: rgba(255,255,255,.78); font-size: 13.5px; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.section { padding: 40px 22px; }
.section-dark { background: var(--ink); }
.section-stone { background: var(--stone); }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head .eyebrow { color: var(--pitch-600); }
.section-head.on-dark .eyebrow { color: var(--gold-400); }
.section-head h2 { font-family: var(--ff-display); font-weight: 800; font-size: clamp(22px,3vw,30px); margin: 6px 0 0; }
.section-head.on-dark h2 { color: #fff; }

/* Prize podium (CSS, ohne JS) */
.podium { display: flex; align-items: flex-end; gap: 12px; justify-content: center; max-width: 640px; margin: 0 auto; }
.podium .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.podium .pname { text-align: center; min-height: 46px; }
.podium .pname .t { font-family: var(--ff-display); font-weight: 800; font-size: 13.5px; color: #fff; line-height: 1.1; }
.podium .pname .s { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }
.podium .bar { width: 100%; border-radius: 10px 10px 0 0; display: grid; place-items: center;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4); }
.podium .bar span { font-family: var(--ff-jersey); font-weight: 700; font-size: 36px; color: rgba(90,61,5,.85); }
.bar-1 { height: 120px; background: linear-gradient(180deg,#f6c84c,#e0a21a); }
.bar-2 { height: 88px;  background: linear-gradient(180deg,#dde3e8,#aab4bd); }
.bar-3 { height: 70px;  background: linear-gradient(180deg,#e7b488,#c07b42); }

/* Spielregeln */
.rules { display: grid; gap: 12px; max-width: 720px; margin: 0 auto; }
@media (min-width: 720px) { .rules { grid-template-columns: 1fr 1fr; } }
.rule { display: flex; gap: 13px; padding: 16px; align-items: flex-start; }
.rule .ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--pitch-100); display: grid; place-items: center; }
.rule .t { font-family: var(--ff-display); font-weight: 800; font-size: 15.5px; color: var(--ink); }
.rule .d { font-size: 13px; color: var(--ink-600); margin-top: 3px; line-height: 1.45; }

/* ---------- Formular ---------- */
.form-head { padding: 26px 22px 30px; position: relative; overflow: hidden; }
.form-head h1 { color: #fff; font-family: var(--ff-display); font-weight: 800; font-size: 28px; margin: 14px 0 4px; }
.form-head p { color: rgba(255,255,255,.78); font-size: 14px; margin: 0; }
.form-body { padding: 26px 22px 60px; }
.form-section { margin-bottom: 26px; }
.sec-title { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.sec-title .n { width: 28px; height: 28px; border-radius: 999px; background: var(--pitch-600); color: #fff;
  display: grid; place-items: center; font-family: var(--ff-jersey); font-weight: 700; font-size: 16px; }
.sec-title h3 { font-family: var(--ff-display); font-weight: 800; font-size: 18px; margin: 0; color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.col-full { grid-column: 1 / -1; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

/* Upload-Zone */
.dropzone {
  border: 2px dashed var(--muted-2); background: var(--stone-2); border-radius: 16px;
  padding: 24px 18px; text-align: center; cursor: pointer; transition: all .15s;
}
.dropzone.drag { border-color: var(--pitch-500); background: rgba(26,154,76,.07); }
.dropzone .du-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--pitch-100);
  display: grid; place-items: center; margin: 0 auto 12px; }
.dropzone .du-t { font-family: var(--ff-display); font-weight: 800; font-size: 16px; color: var(--ink); }
.dropzone .du-s { font-size: 12.5px; color: var(--ink-600); margin-top: 3px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px,1fr)); gap: 8px; margin-top: 14px; }
.preview { position: relative; aspect-ratio: 4/3; border-radius: 11px; overflow: hidden; background: var(--hair); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-count { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.upload-count .n { font-family: var(--ff-jersey); font-size: 26px; }

.consent { display: grid; gap: 14px; }

footer.pub-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 30px 22px; text-align: center; font-size: 12.5px; }
footer.pub-footer a { color: rgba(255,255,255,.8); }

/* ============================================================
   ADMIN (Desktop)
   ============================================================ */
.admin { display: flex; min-height: 100vh; }
.admin-side {
  width: 232px; flex-shrink: 0; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.admin-side .brand { padding: 4px 8px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-side .brand img { height: 19px; }
.admin-nav { display: grid; gap: 4px; margin-top: 18px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px;
  text-decoration: none; color: rgba(255,255,255,.62); font-family: var(--ff-display); font-weight: 700; font-size: 14.5px; }
.admin-nav a.on, .admin-nav a:hover { background: var(--pitch-600); color: #fff; }
.admin-side .countdown { margin-top: auto; padding: 14px 12px; background: rgba(255,255,255,.05); border-radius: 12px; }
.admin-side .countdown .l { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: 12px; }
.admin-side .countdown .v { font-family: var(--ff-display); font-weight: 700; font-size: 13.5px; margin-top: 5px; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 28px; border-bottom: 1px solid var(--hair); background: #fff; flex-wrap: wrap; }
.admin-top h1 { font-family: var(--ff-display); font-weight: 800; font-size: 24px; margin: 0; color: var(--ink); }
.admin-top .sub { font-size: 13px; color: var(--ink-600); margin-top: 2px; }
.admin-body { padding: 28px; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.stat .num { font-family: var(--ff-jersey); font-weight: 700; font-size: 40px; line-height: .9; margin-top: 12px; }
.stat .lab { font-size: 12.5px; color: var(--ink-600); margin-top: 2px; }

.cols-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 1000px) { .cols-2 { grid-template-columns: 1fr; } }
.detail-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
@media (max-width: 1000px) { .detail-cols { grid-template-columns: 1fr; } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { border: 1.5px solid var(--hair); background: #fff; color: var(--ink-600); border-radius: 999px;
  padding: 8px 15px; cursor: pointer; font-family: var(--ff-display); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.filters a.on { border-color: var(--pitch-600); background: var(--pitch-600); color: #fff; }
.filters a .n { font-family: var(--ff-jersey); font-size: 14px; color: var(--muted); }
.filters a.on .n { color: rgba(255,255,255,.85); }

.tbl { width: 100%; }
.tbl .row, .tbl .head { display: grid; gap: 14px; align-items: center; padding: 12px 18px; }
.tbl .head { background: var(--stone-2); border-bottom: 1px solid var(--hair);
  font-family: var(--ff-display); font-weight: 700; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); }
.tbl .row { border-bottom: 1px solid var(--hair-2); cursor: pointer; text-decoration: none; color: inherit; transition: background .12s; }
.tbl .row:hover { background: var(--stone-2); }
.tbl .cover { width: 56px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--hair); }
.tbl .cover img { width: 100%; height: 100%; object-fit: cover; }
.tbl .pt { font-family: var(--ff-display); font-weight: 800; font-size: 14.5px; color: var(--ink); }
.tbl .ps { font-size: 11.5px; color: var(--ink-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-box { display: flex; align-items: center; gap: 8px; background: var(--stone-2);
  border: 1.5px solid var(--hair); border-radius: 999px; padding: 8px 14px; min-width: 240px; }
.search-box input { border: none; background: none; outline: none; font-family: var(--ff-body); font-size: 13.5px; width: 100%; color: var(--ink); }

.gallery-main { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; background: var(--hair); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs .gt { width: 64px; height: 48px; border-radius: 9px; overflow: hidden; cursor: pointer; border: 1px solid var(--hair); }
.gallery-thumbs .gt.on { outline: 3px solid var(--pitch-500); }
.gallery-thumbs .gt img { width: 100%; height: 100%; object-fit: cover; }
.imglabel { position: absolute; top: 8px; left: 8px; font-family: var(--ff-display); font-weight: 800;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 3px 8px; border-radius: 999px; }
.imglabel.before { background: rgba(40,44,46,.85); }
.imglabel.after  { background: rgba(18,130,64,.9); }

.status-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.status-grid button { padding: 11px 6px; border-radius: 11px; cursor: pointer; border: 2px solid var(--hair);
  background: #fff; color: var(--ink-600); font-family: var(--ff-display); font-weight: 700; font-size: 13px; }
.status-grid button.on-new { border-color: var(--st-new); background: var(--st-new); color: #fff; }
.status-grid button.on-ok  { border-color: var(--st-ok);  background: var(--st-ok);  color: #fff; }
.status-grid button.on-rej { border-color: var(--st-rej); background: var(--st-rej); color: #fff; }

.kv { display: flex; align-items: center; gap: 10px; }
.kv .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--stone-2); display: grid; place-items: center; flex-shrink: 0; }
.kv span { font-size: 13.5px; color: var(--ink-800); word-break: break-word; }
.minis { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; text-align: center; }
.mini { padding: 12px 4px; background: var(--stone-2); border-radius: 11px; }
.mini.hot { background: var(--gold-100); }
.mini .v { font-family: var(--ff-jersey); font-weight: 700; font-size: 28px; }
.mini.hot .v { color: var(--gold-600); }
.mini .l { font-size: 10.5px; color: var(--ink-600); margin-top: 1px; }

.podium-board { border-radius: 18px; padding: 26px 24px 28px; margin-bottom: 20px; position: relative; overflow: hidden; }
.podium-board .inner { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; align-items: end; max-width: 720px; margin: 0 auto; }
.podium-board .pc { text-align: center; cursor: pointer; text-decoration: none; }
.podium-board .pc img { border-radius: 12px; margin: 10px auto 0; width: 100%; }

/* ============================================================
   JURY (Mobil)
   ============================================================ */
.jury { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--stone); display: flex; flex-direction: column; }
.jury-hero { padding: 40px 24px 34px; position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.jury-hero .badge { width: 60px; height: 60px; border-radius: 17px; background: rgba(246,200,76,.18);
  display: grid; place-items: center; margin-bottom: 18px; }
.jury-hero h1 { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; color: #fff;
  font-size: 34px; line-height: 1; margin: 12px 0 0; }
.jury-hero p { color: rgba(255,255,255,.82); font-size: 14.5px; margin-top: 14px; }
.jury-hero label { font-family: var(--ff-display); font-weight: 700; font-size: 14px; color: #fff; display: block; }
.jury-hero .bigin { width: 100%; margin-top: 8px; padding: 15px 16px; border-radius: 14px; border: none;
  font-family: var(--ff-body); font-size: 16px; color: var(--ink); outline: none; }
.jury-head { padding: 30px 18px 20px; position: relative; overflow: hidden; }
.jury-head .top { display: flex; justify-content: space-between; align-items: center; }
.jury-head h1 { color: #fff; font-family: var(--ff-display); font-weight: 800; font-size: 23px; margin: 14px 0 0; }
.jury-progress { margin-top: 12px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 11px 14px; }
.jury-progress .bar { height: 7px; background: rgba(0,0,0,.2); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.jury-progress .bar div { height: 100%; border-radius: 4px; background: linear-gradient(90deg,var(--gold-400),var(--gold-500)); }
.jury-list { padding: 16px; display: grid; gap: 13px; }
.jcard { overflow: hidden; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.jcard .cover { position: relative; aspect-ratio: 16/9; background: var(--hair); }
.jcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.jcard .body { padding: 13px 15px 15px; }
.jcard .body h3 { font-family: var(--ff-display); font-weight: 800; font-size: 16.5px; margin: 0; color: var(--ink); }
.jcard .body p { font-size: 12.5px; color: var(--ink-600); margin: 4px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip-top { position: absolute; top: 10px; right: 10px; }

.jdetail { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--stone); }
.jdetail .top { padding: 16px 14px; display: flex; align-items: center; gap: 10px; position: relative; overflow: hidden; }
.jdetail .top h1 { color: #fff; font-family: var(--ff-display); font-weight: 800; font-size: 16px; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jdetail .gmain { position: relative; aspect-ratio: 16/11; background: var(--hair); }
.jdetail .gmain img { width: 100%; height: 100%; object-fit: cover; }
.jdetail .gthumbs { display: flex; gap: 7px; padding: 12px 16px 4px; overflow-x: auto; }
.jdetail .gthumbs .gt { width: 56px; height: 42px; flex-shrink: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--hair); }
.jdetail .gthumbs .gt.on { outline: 3px solid var(--pitch-500); }
.jdetail .gthumbs .gt img { width: 100%; height: 100%; object-fit: cover; }
.jdetail .desc { padding: 14px 18px 24px; }
.jdetail .desc h2 { font-family: var(--ff-display); font-weight: 800; font-size: 22px; margin: 0; color: var(--ink); }
.rate-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--hair);
  padding: 16px 18px 22px; box-shadow: 0 -6px 18px rgba(13,40,24,.06); }
.stars-pick { display: flex; gap: 8px; justify-content: center; }
.stars-pick button { width: 46px; height: 46px; border-radius: 11px; border: 1.5px solid var(--hair);
  background: #fff; display: grid; place-items: center; cursor: pointer; transition: all .12s; padding: 0; }
.stars-pick button.on { border: none; background: linear-gradient(180deg,var(--gold-400),var(--gold-500));
  box-shadow: 0 3px 9px rgba(216,156,18,.3); transform: translateY(-1px); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.login-card { width: 100%; max-width: 380px; padding: 32px 28px; position: relative; z-index: 2; }
.login-card h1 { font-family: var(--ff-display); font-weight: 800; font-size: 24px; margin: 16px 0 4px; color: var(--ink); }
.login-card .sub { font-size: 13.5px; color: var(--ink-600); margin-bottom: 22px; }

/* ---------- Utility ---------- */
.muted { color: var(--ink-600); }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.empty { padding: 50px; text-align: center; color: var(--ink-600); }
