/* Interner Bereich – dunkel, im Look von Volltreffer by TeilerZero.de */
@import url('../fonts/fonts.css');

:root {
  --bg0: #090d0a; --bg1: #0d1310; --panel: #131b16; --panelhi: #1d281f; --card: #18211b;
  --line: hsla(0,0%,100%,.09); --line2: hsla(0,0%,100%,.15);
  --ink: #eaf1eb; --muted: #8b978e; --dim: #5e685f;
  --accent: #4fd08a; --accent2: #2c925c; --accentglow: rgba(79,208,138,.3);
  --gold: #e8c673; --silver: #c9d1cc; --bronze: #d49a6a; --red: #e5675a;
  --r: 14px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: radial-gradient(90% 50% at 85% -5%, #16241b, rgba(22,36,27,0) 55%), var(--bg0);
  color: var(--ink); font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
[hidden] { display: none !important; }

/* ---------- Prototyp-Hinweis ---------- */
.proto {
  font-size: 11.5px; text-align: center; padding: 6px 12px; color: #0b130e;
  background: linear-gradient(90deg, var(--gold), #f0d898);
  font-weight: 600; letter-spacing: .01em;
}

/* ---------- Kopfzeile ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand svg { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 10px var(--accentglow)); }
.brand b { display: block; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1.05; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 99px; border: 1px solid var(--line2); background: var(--soft);
  color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, background .15s, transform .15s;
}
.pill:hover { border-color: rgba(79,208,138,.5); background: rgba(79,208,138,.06); }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pill .soft { color: var(--muted); font-weight: 600; }
.pill.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 6px 20px rgba(79,208,138,.25); }
.pill.primary:hover { background: #63dc9a; }
.pill.icon { width: 40px; padding: 0; justify-content: center; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--on-accent);
  background: linear-gradient(140deg, var(--accent), var(--gold)); border: 0;
}

/* Menüs */
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 250px;
  background: linear-gradient(170deg, var(--panelhi), var(--panel)); border: 1px solid var(--line2);
  border-radius: 16px; padding: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.55);
  animation: pop .14s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu h6 { margin: 8px 10px 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.menu button, .menu a {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px;
  border-radius: 10px; background: none; border: 0; cursor: pointer; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px;
}
.menu button:hover, .menu a:hover { background: var(--soft); }
.menu button.on { background: rgba(79,208,138,.12); color: var(--accent); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .who { padding: 8px 10px 10px; }
.menu .who b { display: block; font-family: var(--display); }
.menu .who span { font-size: 12.5px; color: var(--muted); }

/* ---------- Seiten-Grundgerüst ---------- */
main { padding: 22px 0 60px; }
.view { animation: fade .22s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.back:hover { color: var(--ink); }
h1.title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -.025em; line-height: 1.05; margin: 0; }
.kicker { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--accent); }
.panel {
  background: linear-gradient(165deg, var(--panelhi), var(--panel)); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px;
}
.panel h3 { margin: 0 0 12px; font-family: var(--display); font-size: 18px; letter-spacing: -.01em; }

/* ---------- Startseite (Hub) ---------- */
.hx-hero { display: grid; grid-template-columns: 1fr 350px; gap: 14px; margin-bottom: 14px; }

.stage {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line2);
  background: linear-gradient(165deg, #16281d, #0b120e); box-shadow: 0 22px 50px rgba(0,0,0,.45); min-height: 330px;
}
.stage .bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 82% -10%, rgba(var(--cup), .26), rgba(var(--cup), 0) 60%),
    radial-gradient(50% 70% at 8% 110%, rgba(79,208,138,.14), rgba(79,208,138,0) 60%);
}
.stage .target {
  position: absolute; right: -90px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%); pointer-events: none; opacity: .5;
  background:
    radial-gradient(circle, rgba(var(--cup), .30) 0 34px, transparent 35px),
    radial-gradient(circle, transparent 0 78px, rgba(var(--cup), .2) 78px 80px, transparent 81px),
    radial-gradient(circle, transparent 0 128px, rgba(var(--cup), .14) 128px 130px, transparent 131px),
    radial-gradient(circle, transparent 0 178px, rgba(var(--cup), .1) 178px 180px, transparent 181px),
    radial-gradient(circle, transparent 0 226px, rgba(var(--cup), .07) 226px 228px, transparent 229px);
}
.stage .inner { position: relative; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; height: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800;
  color: rgb(var(--cup, 79,208,138)); background: rgba(var(--cup, 79,208,138), .12); border: 1px solid rgba(var(--cup, 79,208,138), .32);
  border-radius: 99px; padding: 5px 12px; width: fit-content;
}
.chip .live { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.stage .cupname { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.4vw, 54px); letter-spacing: -.03em; line-height: 1; margin: 16px 0 4px; }
.stage .motto { font-family: var(--display); font-style: italic; font-weight: 700; color: rgb(var(--cup)); font-size: 18px; }
.stage .rule { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.stage .score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.stage .score .big { font-family: var(--mono); font-weight: 700; font-size: clamp(54px, 8vw, 84px); letter-spacing: -.04em; line-height: .9; }
.stage .score .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--accent); }
.stage .score .lbl span { font-family: 'Hanken Grotesk', sans-serif; display: block; color: var(--muted); letter-spacing: .04em; text-transform: none; font-size: 13px; font-weight: 600; margin-top: 3px; }
.rounds { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.rounds span {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--dim); background: var(--soft);
  border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; min-width: 64px; text-align: center;
}
.rounds span.done { color: var(--ink); border-color: rgba(79,208,138,.4); background: rgba(79,208,138,.1); }
.rounds span.now { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,208,138,.12); }
.rounds span.streich { text-decoration: line-through; opacity: .6; }
.bar { height: 5px; border-radius: 99px; background: var(--soft2); overflow: hidden; margin-top: 18px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 99px; transition: width .6s; }
.barlbl { font-size: 11.5px; color: var(--dim); margin-top: 6px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }

.side { display: flex; flex-direction: column; }
.side .kicker { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.stats b { display: block; font-family: var(--mono); font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stats span { font-size: 12px; color: var(--muted); }
.spark { width: 100%; height: 74px; margin: 6px 0 10px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; background: var(--soft); font-size: 13.5px; margin-top: 7px; }
.kv span { color: var(--muted); }
.kv b { font-family: var(--mono); font-size: 13.5px; }
.side .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.side .foot a { font-weight: 700; text-decoration: none; }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  --tile: 79,208,138;
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink);
  padding: 16px 17px 15px; border-radius: 18px; min-height: 140px; cursor: pointer;
  background: radial-gradient(120% 90% at 100% 0, rgba(var(--tile), .11), transparent 58%), linear-gradient(165deg, var(--panelhi), var(--panel));
  border: 1px solid rgba(var(--tile), .2);
  transition: transform .16s cubic-bezier(.2,.7,.2,1), border-color .16s, box-shadow .16s;
}
.tile:before {
  content: ""; position: absolute; right: -76px; bottom: -78px; width: 220px; height: 220px; pointer-events: none; opacity: .55; transition: opacity .16s, transform .16s;
  background:
    radial-gradient(circle, transparent 0 34px, rgba(var(--tile), .22) 34px 35.2px, transparent 35.2px),
    radial-gradient(circle, transparent 0 56px, rgba(var(--tile), .15) 56px 57.2px, transparent 57.2px),
    radial-gradient(circle, transparent 0 80px, rgba(var(--tile), .1) 80px 81.2px, transparent 81.2px),
    radial-gradient(circle, rgba(var(--tile), .16) 0 9px, transparent 9px);
}
.tile:hover { transform: translateY(-4px); border-color: rgba(var(--tile), .55); box-shadow: 0 14px 32px rgba(0,0,0,.45); }
.tile:hover:before { opacity: 1; transform: translate(-7px, -7px); }
.tile:after { content: "→"; position: absolute; right: 15px; bottom: 13px; font-size: 14px; font-weight: 700; color: rgb(var(--tile)); opacity: 0; transform: translateX(-6px); transition: opacity .16s, transform .16s; }
.tile:hover:after { opacity: .85; transform: none; }
.tile .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; position: relative;
  background: rgba(var(--tile), .13); border: 1px solid rgba(var(--tile), .28);
}
.tile .t { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.15; position: relative; }
.tile .s { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 6px; position: relative; padding-right: 18px; }
.tile .badge { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 800; color: var(--on-accent); background: rgb(var(--tile)); border-radius: 99px; padding: 3px 9px; box-shadow: 0 0 14px rgba(var(--tile), .45); }
.tile.big { grid-column: span 2; grid-row: span 2; min-height: 294px; padding: 22px 24px;
  background: radial-gradient(120% 90% at 8% 8%, rgba(var(--tile), .22), transparent 55%), linear-gradient(150deg, #17261c, #121a15 55%, #0b120e);
  border-color: rgba(var(--tile), .38); }
.tile.big:before { right: -18%; bottom: -46%; width: 380px; height: 380px; opacity: .6;
  background:
    radial-gradient(circle, transparent 0 74px, rgba(var(--tile), .2) 74px 76.5px, transparent 76.5px),
    radial-gradient(circle, transparent 0 118px, rgba(var(--tile), .14) 118px 120.5px, transparent 120.5px),
    radial-gradient(circle, transparent 0 166px, rgba(var(--tile), .09) 166px 168.5px, transparent 168.5px),
    radial-gradient(circle, rgba(var(--tile), .18) 0 30px, transparent 30px); }
.tile.big .tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: rgb(var(--tile)); font-weight: 800; position: relative; }
.tile.big .t { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.025em; margin-top: 8px; font-weight: 800; }
.tile.big .s { font-size: 14px; max-width: 34ch; }
.tile.big .go { position: relative; margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; width: fit-content;
  background: rgb(var(--tile)); color: var(--on-accent); font-weight: 800; border-radius: 99px; padding: 10px 18px; font-size: 14px; box-shadow: 0 8px 24px rgba(var(--tile), .3); }
.tile.big.puls { animation: puls 2.4s ease-in-out infinite; }
@keyframes puls { 0%, 100% { border-color: rgba(var(--tile), .38); } 50% { border-color: rgba(var(--tile), .85); } }
.t-up { --tile: 79,208,138; } .t-rank { --tile: 240,169,76; } .t-gold { --tile: 232,198,115; } .t-cal { --tile: 192,132,252; }
.t-mine { --tile: 96,165,250; } .t-rules { --tile: 163,230,53; } .t-tz { --tile: 56,189,248; } .t-prof { --tile: 229,103,90; } .t-inv { --tile: 244,114,182; }

/* ---------- Segment-Schalter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--bg1); }
.seg button .sd { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: rgb(var(--c)); vertical-align: 1px; }

/* ---------- Rangliste ---------- */
.cupbanner {
  position: relative; overflow: hidden; border-radius: 18px; padding: 18px 22px; margin-bottom: 14px;
  border: 1px solid rgba(var(--cup), .3); background: radial-gradient(90% 140% at 100% 0, rgba(var(--cup), .18), transparent 60%), linear-gradient(165deg, var(--panelhi), var(--panel));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cupbanner h2 { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: -.02em; }
.cupbanner h2 em { color: rgb(var(--cup)); font-size: 16px; margin-left: 8px; }
.cupbanner p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.board { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: var(--panel); }
.row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 112px 40px; gap: 14px; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row.head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--dim); background: var(--soft); padding-top: 10px; padding-bottom: 10px; }
.row.me { background: linear-gradient(90deg, rgba(79,208,138,.13), rgba(79,208,138,.02)); box-shadow: inset 3px 0 0 var(--accent); }
.rank { font-family: var(--mono); font-weight: 700; font-size: 18px; text-align: center; color: var(--muted); }
.rank.m { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #0b130e; margin: 0 auto; }
.rank.m1 { background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 55%, #a8842f); box-shadow: 0 0 18px rgba(232,198,115,.45); }
.rank.m2 { background: radial-gradient(circle at 35% 30%, #fff, var(--silver) 55%, #8b948f); }
.rank.m3 { background: radial-gradient(circle at 35% 30%, #ffe2c8, var(--bronze) 55%, #8f5f38); }
.who b { display: block; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { font-size: 12.5px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .you { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--on-accent); background: var(--accent); border-radius: 99px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.att { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.att span { font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); }
.att span.z { color: var(--ink); border-color: rgba(79,208,138,.35); background: rgba(79,208,138,.08); }
.att span.x { text-decoration: line-through; opacity: .55; }
.score { text-align: right; }
.score b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.score span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.flag { width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--dim); cursor: pointer; font-size: 14px; }
.flag:hover { border-color: var(--line2); color: var(--red); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); margin-bottom: 4px; }

/* ---------- Goldener Teiler ---------- */
.gold-hero {
  --cup: 232,198,115;
  position: relative; overflow: hidden; border-radius: 22px; padding: clamp(24px, 4vw, 40px); margin-bottom: 14px;
  border: 1px solid rgba(232,198,115,.35);
  background: radial-gradient(70% 120% at 85% 0, rgba(232,198,115,.25), transparent 60%), linear-gradient(160deg, #241f12, #121410 60%, #0b120e);
}
.gold-hero .target { opacity: .45; }
.gold-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; margin: 12px 0 6px; line-height: 1;
  background: linear-gradient(100deg, #fff3c4, var(--gold) 40%, #b88d32); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.gold-hero p { color: var(--muted); margin: 0; max-width: 56ch; position: relative; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; position: relative; }
.timeline div { border-radius: 12px; padding: 10px 12px; border: 1px solid rgba(var(--c), .3); background: rgba(var(--c), .06); }
.timeline b { font-family: var(--display); font-size: 15px; display: block; }
.timeline span { font-size: 11.5px; color: var(--muted); }
.timeline div.laeuft { box-shadow: 0 0 0 3px rgba(var(--c), .15); border-color: rgb(var(--c)); }
.cupsdots { display: inline-flex; gap: 4px; }
.cupsdots i { width: 10px; height: 10px; border-radius: 50%; background: var(--soft2); border: 1px solid var(--line2); }
.cupsdots i.on { background: rgb(var(--c)); border-color: rgb(var(--c)); }
.subhead { margin: 26px 0 10px; font-family: var(--display); font-size: 18px; display: flex; align-items: center; gap: 10px; }
.subhead small { font-family: 'Hanken Grotesk', sans-serif; color: var(--muted); font-size: 13px; font-weight: 500; }

/* ---------- Cups ---------- */
.cupgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cupcard { --cup: 79,208,138; position: relative; overflow: hidden; border-radius: 20px; padding: 22px; min-height: 210px; display: flex; flex-direction: column;
  border: 1px solid rgba(var(--cup), .28); background: radial-gradient(100% 120% at 100% 0, rgba(var(--cup), .2), transparent 60%), linear-gradient(165deg, var(--panelhi), var(--panel)); }
.cupcard .target { width: 300px; height: 300px; right: -110px; opacity: .45; }
.cupcard h3 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; margin: 12px 0 0; line-height: 1; position: relative; }
.cupcard em { font-family: var(--display); color: rgb(var(--cup)); font-weight: 700; position: relative; }
.cupcard ul { list-style: none; padding: 0; margin: 14px 0 16px; font-size: 13.5px; color: var(--muted); position: relative; }
.cupcard li { padding: 2px 0; }
.cupcard li b { color: var(--ink); font-weight: 600; }
.cupcard .pill { margin-top: auto; width: fit-content; position: relative; }

/* ---------- Upload ---------- */
.drop {
  position: relative; border-radius: 22px; border: 2px dashed rgba(79,208,138,.35); padding: clamp(36px, 7vw, 72px) 22px; text-align: center; cursor: pointer;
  background: radial-gradient(60% 90% at 50% 0, rgba(79,208,138,.12), transparent 70%), var(--panel); transition: border-color .15s, background .15s, transform .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: radial-gradient(60% 90% at 50% 0, rgba(79,208,138,.2), transparent 70%), var(--panel); }
.drop.over { transform: scale(1.01); }
.drop .ico { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; font-size: 34px;
  background: rgba(79,208,138,.13); border: 1px solid rgba(79,208,138,.35); box-shadow: 0 0 40px rgba(79,208,138,.2); }
.drop b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -.01em; }
.drop p { color: var(--muted); margin: 6px 0 18px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sysrow { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sys { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); }
.hint3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.hint3 div { border-radius: 14px; padding: 14px 16px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.hint3 b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }

.steps { max-width: 440px; margin: 40px auto; display: grid; gap: 10px; }
.step { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--dim); font-weight: 600; transition: all .2s; }
.step i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: 12px; flex: none; }
.step.run { color: var(--ink); border-color: rgba(79,208,138,.4); }
.step.run i { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.step.ok { color: var(--ink); }
.step.ok i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.result { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: start; }
.erkannt .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.erkannt .disz { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.erkannt .when { color: var(--muted); font-size: 13.5px; }
.sysbadge { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; background: rgba(96,165,250,.14); color: var(--blue); border: 1px solid rgba(96,165,250,.35); }
.bigres { display: flex; align-items: baseline; gap: 16px; margin: 18px 0 8px; flex-wrap: wrap; }
.bigres b { font-family: var(--mono); font-size: clamp(46px, 7vw, 64px); letter-spacing: -.04em; line-height: .9; }
.bigres span { font-family: var(--mono); font-size: 20px; color: var(--muted); }
.bigres small { display: block; font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--dim); }
.serien { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.serien span { font-family: var(--mono); font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); }
.serien span small { color: var(--dim); margin-right: 6px; font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.shots span { font-family: var(--mono); font-size: 11.5px; font-weight: 700; text-align: center; padding: 6px 0; border-radius: 7px; background: var(--soft); color: var(--muted); }
.shots span.r10 { background: rgba(79,208,138,.16); color: var(--ink); }
.shots span.r9 { background: var(--soft); color: var(--ink); }
.shots span.iz { box-shadow: inset 0 0 0 1.5px var(--gold); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--dim); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.checks li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; margin-top: 1px; }
.checks li.ok i { background: rgba(79,208,138,.18); color: var(--accent); }
.checks li.bad { background: rgba(229,103,90,.09); box-shadow: inset 0 0 0 1px rgba(229,103,90,.3); }
.checks li.bad i { background: var(--red); color: #fff; }
.checks b { display: block; font-size: 14px; }
.checks span { font-size: 12.5px; color: var(--muted); }
.verdict { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 14px; }
.verdict.ok { background: rgba(79,208,138,.1); border: 1px solid rgba(79,208,138,.35); }
.verdict.bad { background: rgba(229,103,90,.1); border: 1px solid rgba(229,103,90,.4); }
.verdict b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 2px; }
.confirm { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 16px 0; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.confirm input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--line2);
  background: var(--soft); color: var(--ink); font-weight: 800; font-size: 14.5px; cursor: pointer; text-decoration: none; transition: all .15s; }
.btn:hover { border-color: var(--line2); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 8px 24px rgba(79,208,138,.25); }
.btn.primary:hover { background: #63dc9a; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn.danger { color: var(--red); border-color: rgba(229,103,90,.4); }

.success { text-align: center; padding: clamp(30px, 6vw, 60px) 20px; }
.success .medal { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 42px;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 55%, #a8842f); box-shadow: 0 0 60px rgba(232,198,115,.4); animation: popin .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }
.success h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; letter-spacing: -.02em; }
.success p { color: var(--muted); margin: 0 0 24px; }
.success .btnrow { justify-content: center; }

/* ---------- Listen & Formulare ---------- */
.list { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.item .cupdot { width: 10px; height: 38px; border-radius: 99px; background: rgb(var(--c)); box-shadow: 0 0 14px rgba(var(--c), .5); }
.item b { display: block; font-size: 14.5px; }
.item span { font-size: 12.5px; color: var(--muted); }
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field select {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line2); background: var(--field); padding: 0 14px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,208,138,.15); }
.field small { display: block; font-size: 12px; color: var(--dim); margin-top: 5px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); cursor: pointer; }
.switch b { display: block; font-size: 14px; }
.switch span { font-size: 12.5px; color: var(--muted); }
.switch input { appearance: none; width: 46px; height: 27px; border-radius: 99px; background: var(--soft2); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input:after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .18s; }
.switch input:checked { background: var(--accent); }
.switch input:checked:after { transform: translateX(19px); }
.err { color: var(--err); background: rgba(229,103,90,.12); border: 1px solid rgba(229,103,90,.35); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.note { font-size: 12.5px; color: var(--muted); background: rgba(232,198,115,.08); border: 1px solid rgba(232,198,115,.25); border-radius: 12px; padding: 10px 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }

/* Anmeldung */
.auth { max-width: 460px; margin: clamp(10px, 4vw, 40px) auto; }
.auth .tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.auth .tabs button { width: 100%; }
.auth .seg { display: grid; grid-template-columns: 1fr 1fr; border-radius: 99px; }
.auth h1 { text-align: center; margin-bottom: 6px; }
.auth .lead { text-align: center; color: var(--muted); margin: 0 0 22px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; color: var(--muted); }
.check input { width: 19px; height: 19px; accent-color: var(--accent); margin: 1px 0 0; }

/* Regeln */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rules .panel ol, .rules .panel ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.rules .panel li { margin: 6px 0; }
.rules .panel li b { color: var(--ink); }

/* Dialog & Toast */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); animation: fade .15s; }
.modal .panel { width: min(440px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: #0d1410; color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 99px; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: toast .25s ease-out; max-width: calc(100% - 32px); text-align: center; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

footer.app { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--dim); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.app > span:last-child { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer.app a { color: var(--muted); text-decoration: none; }
footer.app a:hover { color: var(--ink); }

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .hx-hero { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .result, .two, .rules { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top { gap: 8px; padding: 14px 0 12px; }
  .brand svg { width: 34px; height: 34px; }
  .brand b { font-size: 18px; }
  .pill .label-lg, .hide-sm { display: none; }
  .pill { padding: 0 12px; height: 38px; }
  .tile.big { grid-row: span 1; min-height: 220px; }
  .tile { min-height: 128px; }
  .cupgrid, .hint3, .timeline { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 42px minmax(0, 1fr) auto 32px; gap: 10px; padding: 12px; }
  .row .att { display: none; }
  .row.head .h-att { display: none; }
  .shots { grid-template-columns: repeat(5, 1fr); }
  .stage .target { width: 340px; height: 340px; right: -150px; }
}
@media (max-width: 420px) {
  .cupgrid, .hint3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
}

/* Hinweis-Leiste (E-Mail bestätigen, Admin) */
.verify { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; padding: 16px 18px; border-radius: 16px;
  background: rgba(232,198,115,.09); border: 1px solid rgba(232,198,115,.35); color: var(--muted); font-size: 14px; text-decoration: none; }
.verify b { color: var(--ink); }
.verify > div:first-child b:first-child { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 2px; }
.verify.admin { background: rgba(229,103,90,.09); border-color: rgba(229,103,90,.35); }
.verify .btn { height: 40px; padding: 0 16px; font-size: 13.5px; }
.item.adm { grid-template-columns: auto 1fr; }
.item.adm .btnrow { grid-column: 1 / -1; justify-content: flex-end; }
.item.adm .btn { height: 36px; padding: 0 14px; font-size: 13px; }

/* Anmeldung mit Foto */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: stretch; margin-top: 10px; }
.auth-split .auth { margin: 0; max-width: 480px; width: 100%; justify-self: center; align-self: center; }
.auth-foto { position: relative; border-radius: 26px; overflow: hidden; min-height: 560px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 28px; border: 1px solid var(--line2); }
.auth-foto:before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,13,10,.05) 40%, rgba(9,13,10,.9)); }
.auth-foto > div { position: relative; }
.auth-foto b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: -.03em; margin-top: 10px; }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; } .auth-foto { min-height: 200px; } .auth-foto b { font-size: 28px; } }

/* Fotos hinter Kacheln und Karten (wie bei Volltreffer) */
.bild { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; pointer-events: none; opacity: .42;
  transition: opacity .25s, transform .6s cubic-bezier(.2,.7,.2,1); filter: saturate(.9) contrast(1.05); }
.bild:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,19,16,.15) 0%, rgba(13,19,16,.78) 55%, rgba(13,19,16,.95) 100%); }
.tile .bild { opacity: .5; }
.tile:hover .bild { opacity: .7; transform: scale(1.05); }
.tile.big .bild { left: 30%; opacity: .75; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.tile.big .bild:after { background: linear-gradient(90deg, rgba(13,19,16,.4), rgba(13,19,16,.1) 60%), linear-gradient(180deg, transparent 50%, rgba(13,19,16,.7)); }
.tile .ic, .tile .t, .tile .s, .tile .tag, .tile .go, .tile .badge { z-index: 1; }
.stage .bild { left: 32%; opacity: .6; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.stage .bild:after { background: linear-gradient(180deg, rgba(11,18,14,.1), rgba(11,18,14,.55)); }
.gold-hero .bild { left: 35%; opacity: .35; mix-blend-mode: luminosity; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.gold-hero .bild:after { display: none; }
.gold-hero > *:not(.bild) { position: relative; }
.cupcard .bild { opacity: .38; }
.cupcard > *:not(.bild):not(.stage) { position: relative; }
@media (max-width: 640px) {
  .tile.big .bild, .stage .bild { left: 0; -webkit-mask-image: none; mask-image: none; opacity: .4; }
  .stage .bild:after { background: linear-gradient(180deg, rgba(11,18,14,.3), rgba(11,18,14,.85)); }
}
/* Kachelfotos etwas präsenter, Text bleibt durch den Verlauf unten lesbar */
.tile:not(.big) .bild { opacity: .7; }
.tile:not(.big):hover .bild { opacity: .9; }
.tile:not(.big) .bild:after { background: linear-gradient(180deg, rgba(13,19,16,.05) 0%, rgba(13,19,16,.45) 45%, rgba(13,19,16,.92) 100%); }

/* =====================================================================
   Helles Design (wie die Startseite). Fotokarten bleiben dunkel.
   ===================================================================== */
:root {
  --bg0: #f6f8f5; --bg1: #ffffff; --panel: #ffffff; --panelhi: #ffffff; --card: #ffffff;
  --line: #e3e8e2; --line2: #d3dbd2;
  --ink: #0d1410; --muted: #5f6b63; --dim: #8e998f;
  --accent: #16a34a; --accent2: #0f7a37; --accentglow: rgba(22,163,74,.22);
  --gold: #c99a2e; --red: #d4493b;
  --soft: #f1f4f0; --soft2: #e6ebe5; --field: #ffffff; --on-accent: #ffffff;
  --err: #b42318; --blue: #1d4ed8;
  color-scheme: light;
}
/* Dunkle Fotokarten behalten ihre Farben */
.stage, .tile, .cupcard, .gold-hero, .auth-foto, .proto {
  --ink: #eaf1eb; --muted: #a9b5ad; --dim: #7d887f;
  --panel: #131b16; --panelhi: #1d281f; --line: hsla(0,0%,100%,.09); --line2: hsla(0,0%,100%,.15);
  --accent: #4fd08a; --gold: #e8c673; --soft: rgba(255,255,255,.05); --soft2: rgba(255,255,255,.1); --on-accent: #06120b;
  color: var(--ink);
}
.proto { color: #0b130e; }
body { background: radial-gradient(90% 50% at 85% -5%, rgba(22,163,74,.10), rgba(22,163,74,0) 55%), var(--bg0); }
.top { border-bottom-color: var(--line); }
.brand svg { filter: none; }
.pill { background: #fff; border-color: var(--line); }
.pill:hover { border-color: rgba(22,163,74,.45); background: #f3faf5; }
.pill.primary { box-shadow: 0 8px 22px rgba(22,163,74,.25); }
.pill.primary:hover, .btn.primary:hover { background: var(--accent2); }
.btn.primary { box-shadow: 0 8px 22px rgba(22,163,74,.22); }
.avatar { color: #fff; background: linear-gradient(140deg, var(--accent), #c99a2e); }
.menu { background: #fff; border-color: var(--line); box-shadow: 0 24px 60px rgba(13,20,16,.16); }
.menu button.on { background: #e8f6ed; }
.panel { background: #fff; border-color: var(--line); box-shadow: 0 1px 2px rgba(13,20,16,.04); }
.side { box-shadow: 0 1px 2px rgba(13,20,16,.04); }
.board { background: #fff; border-color: var(--line); }
.row.head { background: var(--soft); }
.row.me { background: linear-gradient(90deg, rgba(22,163,74,.12), rgba(22,163,74,.02)); }
.att span.z { color: var(--ink); border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.08); }
.rounds span.done { color: var(--ink); }
.seg { background: #fff; border-color: var(--line); }
.cupbanner { background: radial-gradient(90% 140% at 100% 0, rgba(var(--cup), .22), transparent 60%), #fff; }
.cupbanner .chip { color: #6b5313; }
.chip { color: rgb(var(--cup, 22,163,74)); }
.item { background: #fff; border-color: var(--line); }
.drop { border-color: rgba(22,163,74,.4); background: radial-gradient(60% 90% at 50% 0, rgba(22,163,74,.08), transparent 70%), #fff; }
.drop:hover, .drop.over { background: radial-gradient(60% 90% at 50% 0, rgba(22,163,74,.14), transparent 70%), #fff; }
.drop .ico { background: #e8f6ed; border-color: rgba(22,163,74,.3); box-shadow: none; }
.hint3 div { background: #fff; }
.step { background: #fff; }
.shots span.r10 { background: rgba(22,163,74,.16); }
.checks li.ok i { background: #e8f6ed; color: var(--accent2); }
.verdict.ok { background: #effaf2; border-color: rgba(22,163,74,.35); }
.verdict.bad { background: #fdf0ee; border-color: rgba(212,73,59,.35); }
.err { background: #fdf0ee; border-color: rgba(212,73,59,.35); }
.note { color: #6b5313; background: #fbf3dc; border-color: #efdfae; }
.verify { background: #fbf3dc; border-color: #efdfae; color: #6b5313; }
.verify.admin { background: #fdf0ee; border-color: rgba(212,73,59,.35); color: #8c2d24; }
.field input:focus { box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.switch input { background: var(--soft2); }
.switch input:after { box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.modal { background: rgba(13,20,16,.45); }
.modal .panel { box-shadow: 0 30px 80px rgba(13,20,16,.3); }
.success .medal { box-shadow: 0 0 60px rgba(201,154,46,.35); }
.sysbadge { background: #eef3ff; }
.flag:hover { border-color: var(--line); }
footer.app { border-top-color: var(--line); }
/* Kacheln: Hover-Schatten auf hellem Grund weicher */
.tile:hover { box-shadow: 0 18px 36px rgba(13,20,16,.22); }
.stage { box-shadow: 0 30px 60px -20px rgba(13,20,16,.35); }
.who .you { display: inline-block; width: auto; }

/* Etiketten, Auswahl-Pillen und Badges: eckiger statt rund */
.chip, .pill, .tile .badge, .tile.big .go, .who .you, .sys, .sysbadge { border-radius: 8px; }
.seg { border-radius: 10px; }
.seg button { border-radius: 7px; }
.auth .seg { border-radius: 10px; }
.pill .dot { border-radius: 2px; }
.chip .live { border-radius: 2px; }
.seg button .sd { border-radius: 2px; }

/* Auswahl Disziplin/System als erkennbares Aufklappmenü */
.pill.auswahl { height: 48px; padding: 0 12px 0 14px; gap: 10px; }
.pill.auswahl .wahl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.pill.auswahl .wahl small { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pill.auswahl .pfeil { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; margin-left: 2px; }
.pill.auswahl[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.pill.auswahl[aria-expanded="true"] .pfeil { transform: rotate(180deg); color: var(--accent); }
.pill.auswahl:hover .pfeil { color: var(--accent); }
@media (max-width: 640px) {
  .pill.auswahl { height: 44px; padding: 0 10px; gap: 7px; }
  .pill.auswahl .wahl small { font-size: 9px; letter-spacing: .06em; }
}
@media (max-width: 460px) { .brand > span { display: none; } }

/* Gleicher Foto-Look wie auf der Startseite */
:root { --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }
.bild { filter: grayscale(.25) saturate(.8) contrast(1.1) brightness(.9); }
.bild:before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--grain), linear-gradient(165deg, rgba(22,90,50,.28), rgba(22,90,50,0) 55%); background-size: 160px, cover; }
.auth-foto { background-blend-mode: normal; filter: none; }
.auth-foto:after { content: ""; position: absolute; inset: 0; background: var(--grain), linear-gradient(165deg, rgba(22,90,50,.28), rgba(22,90,50,0) 55%); background-size: 160px, cover; pointer-events: none; }
.auth-foto > div { z-index: 1; }

/* Ranglisten-Auswahl: Cup-Reiter + Wertungs-Kacheln */
.filters2 { margin-bottom: 16px; }
.flabel { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px; }
.flabel span { text-transform: none; letter-spacing: 0; font-weight: 600; }
.cuptabs { margin-bottom: 18px; }
.cuptabs button small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-left: 7px; color: var(--accent); }
.cuptabs button.on small { color: #8fe0b1; }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mx { position: relative; text-align: left; display: flex; flex-direction: column; gap: 1px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.mx:hover { border-color: rgba(22,163,74,.45); transform: translateY(-1px); }
.mx.on { border: 2px solid var(--accent); padding: 12px 14px; background: #f1faf4; box-shadow: 0 6px 18px rgba(22,163,74,.12); }
.mx-d { font-family: var(--display); font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.mx-s { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mx-n { font-size: 12px; color: var(--dim); margin-top: 6px; }
.mx-me { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 6px; padding: 3px 8px; }
.mx.mine:not(.on) { border-color: rgba(22,163,74,.35); }
@media (max-width: 640px) {
  .matrix { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mx { padding: 11px 12px; } .mx.on { padding: 10px 11px; }
  .mx-d { font-size: 14px; }
  .mx-me { position: static; width: fit-content; margin-top: 6px; }
  .cuptabs { display: grid; grid-template-columns: 1fr 1fr; }
}
.matrix { grid-template-rows: repeat(2, auto); grid-auto-flow: column; }
@media (max-width: 640px) { .matrix { grid-template-rows: none; grid-auto-flow: row; } }

/* Cups-Seite: Knopf in Cup-Farbe statt weiß auf dunkler Karte */
.cupcard .pill { background: rgb(var(--cup)); color: #0b130e; border-color: transparent; font-weight: 800; }
.cupcard .pill:hover { background: rgb(var(--cup)); filter: brightness(1.08); }

/* Profil: Konto löschen klein und unten */
.kontozone { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--dim); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--red); }

.frist { margin-bottom: 14px; padding: 13px 16px; border-radius: 12px; background: #fbf3dc; border: 1px solid #efdfae; color: #6b5313; font-size: 14px; }
.frist b { color: #4a3a0e; margin-right: 6px; }

/* Persönliche Statistik */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; margin-bottom: 8px; }
.stat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.stat-head h3 { margin: 2px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.kpis div { background: var(--soft); border-radius: 10px; padding: 10px 11px; }
.kpis b { display: block; font-family: var(--mono); font-size: 18px; letter-spacing: -.02em; }
.kpis span { font-size: 11.5px; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .gt { fill: var(--dim); font: 600 11px 'JetBrains Mono', monospace; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .pt { fill: rgb(var(--c)); stroke: #fff; stroke-width: 2; }
.chart-leer { padding: 22px; text-align: center; color: var(--dim); font-size: 13px; background: var(--soft); border-radius: 10px; }
.podestliste { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pod-chip { text-decoration: none; color: var(--ink); background: #fbf3dc; border: 1px solid #efdfae; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(3, 1fr); } }

/* Siegerehrung */
.sieger-hero { --ink: #eaf1eb; position: relative; overflow: hidden; border-radius: 22px; padding: clamp(24px, 4vw, 40px); margin-bottom: 14px; color: #eaf1eb;
  background: radial-gradient(70% 120% at 85% 0, rgba(var(--cup), .35), transparent 60%), linear-gradient(160deg, #17241c, #0b120e); }
.sieger-hero > *:not(.bild) { position: relative; }
.sieger-hero .chip { color: rgb(var(--cup)); }
.sieger-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; margin: 12px 0 0; line-height: 1; }
.sieger-hero em { font-family: var(--display); font-weight: 700; color: rgb(var(--cup)); font-size: 20px; }
.sieger-hero p { color: #b9c4bc; max-width: 56ch; margin: 10px 0 0; }
.podien { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.podium-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 0; margin-bottom: 14px; overflow: hidden; }
.podien .podium-card { margin-bottom: 0; }
.pod-titel { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pod-titel b { font-family: var(--display); font-size: 17px; }
.pod-titel span { font-size: 12.5px; color: var(--muted); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin-top: 14px; }
.stufe { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.stufe b { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stufe .wert { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.stufe .medaille { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: #0b130e; }
.stufe .m1 { width: 50px; height: 50px; font-size: 18px; background: radial-gradient(circle at 35% 30%, #fff3c4, #e8c673 55%, #a8842f); box-shadow: 0 0 22px rgba(232,198,115,.5); }
.stufe .m2 { background: radial-gradient(circle at 35% 30%, #fff, #c9d1cc 55%, #8b948f); }
.stufe .m3 { background: radial-gradient(circle at 35% 30%, #ffe2c8, #d49a6a 55%, #8f5f38); }
.stufe .sockel { width: 100%; border-radius: 10px 10px 0 0; margin-top: 6px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--dim); }
.stufe.s1 .sockel { height: 74px; background: linear-gradient(180deg, #f3e3b0, #fbf3dc); }
.stufe.s2 .sockel { height: 52px; background: linear-gradient(180deg, #e2e7e3, #f2f5f2); }
.stufe.s3 .sockel { height: 38px; background: linear-gradient(180deg, #ecd5c1, #f8eee6); }
.stufe.leer .sockel { opacity: .5; }
.stufe.ich b { color: var(--accent2); }
.verify.sieger { background: #fbf3dc; border-color: #e8c673; color: #6b5313; }

/* Admin-Statistik */
.adm-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.adm-kpis div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.adm-kpis b { display: block; font-family: var(--mono); font-size: 26px; letter-spacing: -.02em; }
.adm-kpis span { font-size: 12.5px; color: var(--muted); }
.balken { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 6px; }
.balken i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 3px; }
.balken i.null { background: var(--soft2); }
.balken-achse { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-top: 6px; }
.wbar { display: grid; grid-template-columns: 1fr 1.2fr 28px; gap: 10px; align-items: center; font-size: 13px; margin: 7px 0; }
.wbar i { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.wbar b { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.wbar em { font-style: normal; font-family: var(--mono); font-weight: 700; text-align: right; }
.anleitung { margin: 0 0 18px; padding-left: 20px; color: var(--ink2, var(--ink)); font-size: 14.5px; }
.anleitung li { margin: 6px 0; }
@media (max-width: 760px) { .adm-kpis { grid-template-columns: repeat(2, 1fr); } }

/* Saison-Auswahl (Archiv) */
.saisonwahl { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-right: 12px; }
.saisonwahl select { font: 600 13.5px 'Hanken Grotesk', sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 28px 6px 10px; cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235f6b63' stroke-width='1.8' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 8px center; background-size: 12px; }
/* Abgeschlossene Cups */
.abschluss .item { text-decoration: none; color: var(--ink); }
.abschluss .item:hover { border-color: rgba(22,163,74,.4); }
.platz { text-align: right; }
.platz b { font-family: var(--display); font-size: 17px; }
.platz span { display: block; font-size: 12px; color: var(--muted); }
.platz.p1 b { color: #a8842f; } .platz.p2 b { color: #6f7a73; } .platz.p3 b { color: #8f5f38; }

/* Admin: Reiter, Filter, Einstellungen */
.admtabs { margin-bottom: 18px; }
.adm-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.adm-filter input, .adm-filter select { height: 42px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; padding: 0 12px; font-size: 14.5px; min-width: 200px; }
.adm-filter input { flex: 1; }
.field textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line2); background: #fff; padding: 12px 14px; font: 15px/1.45 'Hanken Grotesk', sans-serif; resize: vertical; outline: none; }
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.cuptabelle { display: grid; gap: 8px; }
.ct-kopf, .ct-zeile { display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr .9fr; gap: 10px; align-items: center; }
.ct-kopf { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ct-zeile { padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.ct-zeile .sd { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: rgb(var(--c)); margin-right: 8px; }
.ct-zeile input { height: 40px; border-radius: 9px; border: 1px solid var(--line2); background: #fff; padding: 0 10px; font-size: 14px; width: 100%; }
.ct-zeile input:disabled { opacity: .55; }
.verify.ank { background: #eef6ff; border-color: #bcd6fb; color: #1e3a6b; }
@media (max-width: 760px) { .ct-kopf { display: none; } .ct-zeile { grid-template-columns: 1fr 1fr; } .ct-zeile > span { grid-column: 1 / -1; } }
