/* MyWaterpolo – SK Bern Wasserball
   Farben aus dem SKbE-Logo: Koralle #EC665F · Schwarz #1D1D1B · Blau #178BB4 */

:root {
  --coral: #ec665f;
  --coral-strong: #e14f47;
  --coral-soft: rgba(236, 102, 95, 0.12);
  --blue: #178bb4;
  --blue-soft: rgba(23, 139, 180, 0.12);
  --ink: #1d1d1b;
  --kraft: #6e5bd0;
  --orange: #f08a00;

  --bg: #f2f2f7;
  --card: #ffffff;
  --card-2: #f7f7f9;
  --text: #1d1d1b;
  --text-2: #6e6e73;
  --text-3: #aeaeb2;
  --sep: rgba(60, 60, 67, 0.12);
  --fill: rgba(118, 118, 128, 0.12);
  --tabbar: rgba(249, 249, 251, 0.82);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --hero: #1d1d1b;
  --logo-tile: #ffffff;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Inter", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --card-2: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #98989f;
    --text-3: #636366;
    --sep: rgba(84, 84, 88, 0.55);
    --fill: rgba(118, 118, 128, 0.24);
    --tabbar: rgba(22, 22, 24, 0.82);
    --shadow: none;
    --hero: #1c1c1e;
    --coral-soft: rgba(236, 102, 95, 0.2);
    --blue-soft: rgba(23, 139, 180, 0.24);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overscroll-behavior-y: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--coral); text-decoration: none; }
.hidden { display: none !important; }

/* ── Layout ─────────────────────────────────────────────── */
#app { min-height: 100vh; min-height: 100dvh; }
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 112px);
}
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; margin-bottom: 2px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.brand img { width: 28px; height: 28px; object-fit: contain; background: var(--logo-tile); border-radius: 7px; padding: 3px; }
.brand img.app-ico { padding: 0; border-radius: 7px; object-fit: cover; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--coral);
  transition: transform .15s ease, opacity .15s;
}
.icon-btn:active { transform: scale(.92); opacity: .7; }
.icon-btn svg { width: 20px; height: 20px; }
.top-actions { display: flex; gap: 8px; }

.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 6px 0 0; }
h1.large { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 2px 0 18px; }
h2.section {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 28px 0 10px;
  display: flex; align-items: baseline; justify-content: space-between;
}
h2.section small { font-size: 15px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.caption { font-size: 13px; color: var(--text-2); }

/* ── Cards & lists ──────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.card + .card { margin-top: 12px; }
.list { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; position: relative; width: 100%; text-align: left;
  min-height: 56px;
}
.row + .row::before {
  content: ""; position: absolute; top: 0; right: 0; left: 16px; height: 1px;
  background: var(--sep); transform: scaleY(.5); transform-origin: top;
}
.row.tap { transition: background .15s; }
.row.tap:active { background: var(--fill); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row .trail { text-align: right; font-size: 15px; color: var(--text-2); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.row .trail strong { color: var(--text); font-weight: 600; display: block; }
.chev { color: var(--text-3); width: 14px; height: 14px; flex-shrink: 0; }
.row.past > *:not(.chev) { opacity: .5; }
.row.cancelled .title { text-decoration: line-through; color: var(--text-2); }

.datebox {
  width: 46px; flex-shrink: 0; text-align: center; border-radius: 12px; padding: 5px 0 6px;
  background: var(--fill);
}
.datebox .wd { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--coral); letter-spacing: .03em; }
.datebox .d { font-size: 20px; font-weight: 700; line-height: 1.05; }
.datebox.training .wd { color: var(--blue); }
.datebox.kraft .wd { color: var(--kraft); }
.datebox.event .wd { color: var(--orange); }

.bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--blue); flex-shrink: 0; }
.bar.match { background: var(--coral); }
.bar.kraft { background: var(--kraft); }
.bar.event { background: var(--orange); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--fill); color: var(--text);
}
.chip.coral { background: var(--coral-soft); color: var(--coral-strong); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.warn { background: rgba(255, 159, 10, .16); color: #c77700; }
.chip.ok { background: rgba(52, 199, 89, .16); color: #248a3d; }
@media (prefers-color-scheme: dark) { .chip.coral { color: #ff8f88; } .chip.blue { color: #5cc3e8; } .chip.warn { color: #ffb340; } .chip.ok { color: #4cd964; } }

.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; margin: 0 -16px 14px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips button {
  flex-shrink: 0; font-size: 15px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); color: var(--text);
  transition: background .15s, color .15s;
}
.filter-chips button.on { background: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { .filter-chips button.on { background: #f5f5f7; color: #000; } }

/* ── Segmented control ──────────────────────────────────── */
.segmented {
  display: flex; padding: 2px; border-radius: 10px; background: var(--fill); margin-bottom: 14px; position: relative;
}
.segmented button {
  flex: 1; font-size: 14px; font-weight: 500; padding: 7px 8px; border-radius: 8px; transition: background .2s, box-shadow .2s;
}
.segmented button.on { background: var(--card); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); font-weight: 600; }
@media (prefers-color-scheme: dark) { .segmented button.on { background: #636366; } }

/* ── Hero (nächstes Match) ──────────────────────────────── */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 20px;
  background: var(--hero); color: #fff; box-shadow: var(--shadow);
  display: block; width: 100%; text-align: left;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: repeating-conic-gradient(from 200deg at 100% 0, var(--coral) 0 7deg, transparent 7deg 14deg);
  opacity: .9; mask: linear-gradient(225deg, #000 0, transparent 60%); -webkit-mask: linear-gradient(225deg, #000 0, transparent 60%);
  pointer-events: none;
}
.hero .label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--coral); }
.hero .vs { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 2px; line-height: 1.1; position: relative; z-index: 1; }
.hero .meta { color: rgba(255, 255, 255, .72); font-size: 15px; position: relative; z-index: 1; }
.hero .when { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero .pill { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 8px 12px; font-size: 15px; font-weight: 600; }
.hero .pill small { display: block; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .04em; }
.hero.empty { padding: 28px 20px; }

.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tile {
  background: var(--card); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow); text-align: left; width: 100%;
}
.tile .k { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.tile .k svg { width: 16px; height: 16px; }
.tile .v { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 13px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.blue .k { color: var(--blue); }
.tile.coral .k { color: var(--coral); }

/* ── Kalender ───────────────────────────────────────────── */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head .t { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.cal-head .t span { color: var(--coral); }
.cal-nav .text-btn { padding: 6px 4px; }
.cal-nav { display: flex; gap: 6px; align-items: center; }
.text-btn { color: var(--coral); font-size: 16px; font-weight: 500; padding: 6px 8px; }

.month { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px 8px 12px; }
.month .wds, .month .grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month .wds div { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 2px 0 8px; text-transform: uppercase; }
.day {
  height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4px; position: relative;
}
.day .n {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-variant-numeric: tabular-nums; transition: background .15s;
}
.day.out .n { color: var(--text-3); }
.day.today .n { color: var(--coral); font-weight: 700; }
.day.sel .n { background: var(--ink); color: #fff; font-weight: 600; }
.day.sel.today .n { background: var(--coral); }
@media (prefers-color-scheme: dark) { .day.sel .n { background: #f5f5f7; color: #000; } .day.sel.today .n { background: var(--coral); color: #fff; } }
.dots { display: flex; gap: 3px; margin-top: 3px; height: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.dots i.match { background: var(--coral); }
.dots i.kraft { background: var(--kraft); }
.dots i.event { background: var(--orange); }

.week { display: flex; flex-direction: column; gap: 10px; }
.week-day { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.week-day .wh {
  display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 4px; font-size: 15px; font-weight: 600;
}
.week-day .wh .num { font-size: 22px; font-weight: 700; }
.week-day.today .wh .num, .week-day.today .wh .nm { color: var(--coral); }
.week-day .empty { padding: 4px 16px 14px; color: var(--text-3); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); margin: 12px 4px 0; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 5px; }
.legend i.match { background: var(--coral); }
.legend i.kraft { background: var(--kraft); }
.legend i.event { background: var(--orange); }

/* ── Trainer-Übersicht ──────────────────────────────────── */
.stats { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px 4px; scrollbar-width: none; }
.stats::-webkit-scrollbar { display: none; }
.stat {
  flex-shrink: 0; min-width: 104px; background: var(--card); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); text-align: left;
}
.stat .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.stat.on { outline: 2px solid var(--coral); }
.stat.warn .v { color: #ff9f0a; }
.trainer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.me { box-shadow: inset 0 0 0 1.5px var(--coral); }

/* ── Profil ─────────────────────────────────────────────── */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 6px; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 600; letter-spacing: .02em;
}
.profile .nm { font-size: 24px; font-weight: 700; margin-top: 12px; letter-spacing: -0.02em; }
.profile .em { color: var(--text-2); font-size: 15px; margin: 2px 0 10px; }
.row .ico {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
  background: var(--coral);
}
.row .ico svg { width: 18px; height: 18px; }
.row .ico.blue { background: var(--blue); }
.row .ico.ink { background: #3a3a3c; }
.row .ico.gray { background: #8e8e93; }
.row.danger .title { color: #ff3b30; font-weight: 500; }
.foot { text-align: center; color: var(--text-3); font-size: 12px; margin: 28px 0 0; }

/* ── Tab bar ────────────────────────────────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--tabbar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--sep);
  padding: 6px 8px calc(var(--safe-bottom) + 6px);
}
.tabbar nav { max-width: 560px; margin: 0 auto; display: flex; }
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; font-weight: 500; color: var(--text-3); padding: 4px 0; transition: color .15s;
}
.tabbar button svg { width: 26px; height: 26px; }
.tabbar button.on { color: var(--coral); }

/* ── Bottom sheet ───────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; opacity: 0; transition: opacity .25s;
}
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 640px; margin: 0 auto;
  background: var(--bg); border-radius: 22px 22px 0 0; max-height: 88vh; overflow-y: auto;
  padding: 8px 16px calc(var(--safe-bottom) + 20px);
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .9, .3, 1);
}
.sheet.show { transform: none; }
.sheet.instant, .scrim.instant { transition: none; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--text-3); margin: 0 auto 10px; opacity: .6; }
.sheet .sh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet .sh-head h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.sheet .done { color: var(--coral); font-weight: 600; font-size: 17px; }
.detail-hero { text-align: center; padding: 8px 0 18px; }
.detail-hero .teams { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.detail-hero .score { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0; font-variant-numeric: tabular-nums; }
.detail-hero .chips { justify-content: center; margin-top: 10px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 52px; border-radius: var(--r-md); font-size: 17px; font-weight: 600;
  background: var(--coral); color: #fff; transition: transform .12s, opacity .12s;
}
.btn:active { transform: scale(.98); opacity: .85; }
.btn:disabled { opacity: .45; }
.btn.secondary { background: var(--card); color: var(--coral); box-shadow: var(--shadow); }
.btn.ink { background: var(--ink); color: #fff; }
.btn svg { width: 20px; height: 20px; }
.btn + .btn { margin-top: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ── Login ──────────────────────────────────────────────── */
.login {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 24px) 24px calc(var(--safe-bottom) + 24px); max-width: 440px; margin: 0 auto;
}
.login .logo-wrap { margin: 7vh auto 0; width: 140px; height: 104px; display: flex; align-items: center; justify-content: center; background: var(--logo-tile); border-radius: 26px; padding: 14px; box-shadow: var(--shadow); }
.login .logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.login h1 { text-align: center; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 24px 0 4px; }
.login h1 span { color: var(--coral); }
.login p.lead { text-align: center; color: var(--text-2); margin: 0 0 32px; font-size: 16px; }
.field { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 0 16px; display: flex; align-items: center; height: 54px; }
.field input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 17px; height: 100%; }
.field input::placeholder { color: var(--text-3); }
.field.code input { text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .5em; font-variant-numeric: tabular-nums; padding-left: .5em; }
.login .btn { margin-top: 14px; }
.msg { font-size: 14px; text-align: center; margin-top: 14px; min-height: 20px; color: var(--text-2); }
.msg.err { color: #ff3b30; }
.login .spacer { flex: 1; }
.demo-box { background: var(--card); border-radius: var(--r-md); padding: 14px 16px; margin-top: 24px; font-size: 14px; color: var(--text-2); box-shadow: var(--shadow); }
.demo-box b { color: var(--text); }
.demo-box .chips { margin-top: 10px; }
.demo-box .chip { cursor: pointer; }

.empty-state { text-align: center; color: var(--text-2); padding: 36px 20px; }
.empty-state svg { width: 40px; height: 40px; color: var(--text-3); margin-bottom: 8px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 96px); transform: translate(-50%, 20px); z-index: 60;
  background: rgba(29, 29, 27, .92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 500;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.updated { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 18px; }

@media (min-width: 760px) {
  .page { padding-top: calc(var(--safe-top) + 28px); }
  h1.large { font-size: 40px; }
}

/* ── Chips: Zusatzvarianten ─────────────────────────────── */
.chip.xs { font-size: 11.5px; padding: 2px 8px; }
.chip.muted { background: var(--fill); color: var(--text-3); text-decoration: line-through; }
.chip.orange { background: rgba(240, 138, 0, .14); color: #c26f00; }
.trail .chip { margin-top: 3px; }
.hero .pill.st-ok { background: rgba(52, 199, 89, .25); }
.hero .pill.st-warn { background: rgba(255, 159, 10, .28); }

/* ── Login: Zusatz ──────────────────────────────────────── */
.field-ico { display: flex; color: var(--text-3); margin-right: 10px; }
.field-ico svg { width: 20px; height: 20px; }
.caption.hint { text-align: center; margin: 14px 0 0; }
.mail-sent { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow); font-size: 14px; color: var(--text-2); line-height: 1.4; }
.mail-sent b { color: var(--text); }
.mail-sent svg { width: 26px; height: 26px; color: var(--coral); flex-shrink: 0; margin-top: 2px; }
.row-links { display: flex; justify-content: space-between; margin-top: 10px; }
.row-links .text-btn { font-size: 15px; }
.login.wide { max-width: 560px; padding-top: calc(var(--safe-top) + 16px); }
.signup .chips.pick .chip { font-size: 15px; padding: 7px 13px; border: 0; }
.name-list { max-height: 46vh; overflow-y: auto; }
.row.picked { background: var(--coral-soft); }
.check { color: var(--coral); font-weight: 700; font-size: 18px; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; flex-shrink: 0; background: var(--fill); color: var(--text-2); }
.row.picked .avatar.sm { background: var(--coral); color: #fff; }

/* ── Game-Kachel ────────────────────────────────────────── */
.game-tile {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 12px;
  background: linear-gradient(135deg, #178bb4, #0f6f99); color: #fff; border-radius: var(--r-lg); padding: 12px 16px; box-shadow: var(--shadow);
}
.game-tile .gt-ico svg { width: 40px; height: 40px; display: block; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-12deg); } }
.game-tile .title { font-weight: 700; font-size: 17px; }
.game-tile .sub { font-size: 13px; color: rgba(255, 255, 255, .8); }
.game-tile .trail { text-align: right; font-size: 12px; color: rgba(255, 255, 255, .8); }
.game-tile .trail strong { display: block; font-size: 20px; color: #fff; }
.game-tile .chev { color: rgba(255, 255, 255, .7); }

/* ── Trainingsplan (Sessions) ───────────────────────────── */
.session { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; }
.sess-head { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 16px 6px; }
.sess-head .title { font-weight: 700; font-size: 16px; }
.sess-head .sub { font-size: 13px; color: var(--text-2); }
.avail-line { padding: 0 16px 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.avail-line b { color: var(--text); font-weight: 600; }
.avail-line b.me-t { color: var(--coral); }
.flat .row:first-child::before { content: ""; position: absolute; top: 0; right: 0; left: 16px; height: 1px; background: var(--sep); transform: scaleY(.5); }
.part { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 5px; }
.part .pt { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 82px; }
.lineup { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Game ───────────────────────────────────────────────── */
.game { position: fixed; inset: 0; z-index: 80; background: #0f6f99; touch-action: none; user-select: none; -webkit-user-select: none; animation: fade .2s ease; }
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-top) + 10px) 14px 0; pointer-events: none; }
.g-top > * { pointer-events: auto; }
.g-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(29, 29, 27, .55); color: #fff; font-size: 17px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.g-mid { text-align: center; }
.g-score { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.g-balls { display: flex; gap: 5px; justify-content: center; margin-top: 4px; }
.g-balls i { width: 12px; height: 12px; border-radius: 50%; background: #f5c518; box-shadow: inset 0 0 0 2px #1f5fbf; }
.g-balls i.off { background: rgba(29, 29, 27, .2); box-shadow: none; }
.g-balls i.goal { background: #34c759; box-shadow: inset 0 0 0 2px #1f8a3d; }
.g-right { display: flex; align-items: center; gap: 8px; }
.g-best { font-size: 13px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .7); padding: 4px 10px; border-radius: 999px; }
.g-over { position: absolute; left: 50%; transform: translateX(-50%); width: min(84vw, 340px); display: flex; gap: 8px; }
.g-over .btn { height: 46px; flex: 1; font-size: 15px; padding: 0 6px; margin: 0; white-space: nowrap; }
.g-over .btn + .btn { margin-top: 0; }
.signup h1.large { text-align: left; margin-top: 4px; font-size: 34px; }

/* ── An-/Abmelden ───────────────────────────────────────── */
.rsvp { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px 14px 12px; margin-bottom: 14px; }
.rsvp-q { font-weight: 700; font-size: 17px; margin: 0 2px 10px; }
.rsvp-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rsvp-btns button { height: 44px; border-radius: 12px; background: var(--fill); font-weight: 600; font-size: 15px; transition: background .15s, color .15s, transform .1s; }
.rsvp-btns button:active { transform: scale(.97); }
.rsvp-btns button.on.y { background: #34c759; color: #fff; }
.rsvp-btns button.on.q { background: #ff9f0a; color: #fff; }
.rsvp-btns button.on.n { background: #ff3b30; color: #fff; }
.rsvp-note { width: 100%; margin-top: 10px; height: 40px; border-radius: 10px; border: 0; background: var(--fill); padding: 0 12px; font-size: 15px; outline: none; }
.att-box { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px 14px; }
.att-group + .att-group { margin-top: 12px; }
.att-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.att-label span { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.att-note { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.att-note b { color: var(--text); }
.att-sum { font-size: 12px; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.att-sum .ok-t { color: #248a3d; font-weight: 700; }
.att-sum .no-t { color: #d70015; font-weight: 700; margin-left: 4px; }
@media (prefers-color-scheme: dark) { .att-sum .ok-t { color: #4cd964; } .att-sum .no-t { color: #ff6961; } }

/* ── Rangliste / Install ────────────────────────────────── */
.board-link { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--blue); padding: 4px; }
.board-link .chev { width: 12px; height: 12px; color: var(--blue); }
.rank { width: 30px; text-align: center; font-size: 20px; font-weight: 700; color: var(--text-2); flex-shrink: 0; }
.install { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px 12px 12px 14px; margin-bottom: 14px; }
.install img { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; }
.install .title { font-weight: 700; font-size: 15px; }
.install .sub { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.install .x { width: 28px; height: 28px; border-radius: 50%; background: var(--fill); color: var(--text-2); font-size: 12px; flex-shrink: 0; }
.mini-btn { background: var(--coral); color: #fff; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 7px 12px; flex-shrink: 0; }

/* ── Coach 📣 ───────────────────────────────────────────── */
.coach-pop { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.coach-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.coach-pop.show .coach-scrim { opacity: 1; }
.coach-card {
  position: absolute; left: 50%; bottom: calc(var(--safe-bottom) + 18px); width: min(92vw, 440px);
  transform: translate(-50%, 140%); transition: transform .38s cubic-bezier(.2, 1.3, .4, 1);
  background: var(--card); border-radius: 24px; padding: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); pointer-events: auto;
}
.coach-pop.show .coach-card { transform: translate(-50%, 0); }
.coach-pop.toast-like .coach-card { bottom: auto; top: calc(var(--safe-top) + 12px); transform: translate(-50%, -160%); }
.coach-pop.toast-like.show .coach-card { transform: translate(-50%, 0); }
.coach-pop.angry.show .coach-card { animation: shake .45s .3s; }
.coach-pop.furious.show .coach-card { animation: shake .5s .3s 2; }
@keyframes shake { 0%, 100% { margin-left: 0; } 20% { margin-left: -9px; } 40% { margin-left: 8px; } 60% { margin-left: -6px; } 80% { margin-left: 4px; } }
.coach-row { display: flex; gap: 12px; align-items: center; }
.coach-av { width: 92px; height: 100px; flex-shrink: 0; color: var(--text-2); overflow: visible; }
.coach-av.furious { animation: pulse .5s ease-in-out infinite alternate; }
.coach-av .steam { animation: steam 1s ease-out infinite; }
@keyframes pulse { to { transform: scale(1.06) rotate(-2deg); } }
@keyframes steam { from { transform: translateY(4px); opacity: .9; } to { transform: translateY(-8px); opacity: 0; } }
.coach-bubble { position: relative; background: var(--fill); border-radius: 18px; padding: 12px 14px; font-size: 16px; font-weight: 600; line-height: 1.35; flex: 1; }
.coach-bubble::before { content: ""; position: absolute; left: -7px; top: 26px; border: 8px solid transparent; border-right-color: var(--fill); border-left: 0; }
.coach-pop.furious .coach-bubble { background: rgba(255, 59, 48, .14); color: #c4190e; font-weight: 800; }
.coach-pop.furious .coach-bubble::before { border-right-color: rgba(255, 59, 48, .14); }
.coach-name { font-size: 12px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.coach-actions { display: flex; gap: 8px; margin-top: 14px; }
.coach-actions .btn { height: 46px; font-size: 15px; margin: 0; }
@media (prefers-color-scheme: dark) { .coach-pop.furious .coach-bubble { color: #ff8a80; } }

.coach-nudge { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px 14px 14px 10px; margin-bottom: 14px; }
.coach-nudge .coach-av { width: 70px; height: 76px; }
.cn-text { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.cn-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.cn-actions { display: flex; gap: 8px; margin-top: 10px; }
.cn-actions button { flex: 1; height: 38px; border-radius: 10px; font-weight: 600; font-size: 14.5px; background: var(--fill); }
.cn-actions button.y { background: #34c759; color: #fff; }

.coach-report { display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px 14px 12px 10px; }
.coach-report .coach-av { width: 76px; height: 82px; }
.cr-title { font-weight: 700; font-size: 16px; }
.cr-title small { font-weight: 400; color: var(--text-2); font-size: 13px; margin-left: 4px; }
.cr-stats { display: flex; gap: 12px; font-size: 13px; color: var(--text-2); margin-top: 4px; flex-wrap: wrap; }
.cr-stats b { color: var(--text); font-size: 16px; }
.cr-verdict { font-size: 14px; font-style: italic; margin-top: 6px; }
.switch { width: 50px; height: 30px; border-radius: 999px; background: var(--fill); position: relative; flex-shrink: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch.on { background: #34c759; }
.switch.on::after { transform: translateX(20px); }

/* Login: Schwimmklub-Logo + Wasserball-Bär */
.login .logos { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 7vh auto 0; }
.login .logos .logo-wrap { margin: 0; }
.login .logos .bear { width: 112px; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .18)); transform: rotate(4deg); }
.login .logos .logo-wrap.wp { width: 172px; height: 128px; padding: 16px; }

.demo-link { display: block; margin: 18px auto 0; font-size: 15px; font-weight: 600; color: var(--blue); padding: 6px 10px; }
.demo-box .chip { border: 0; font-size: 14px; padding: 7px 12px; }

.invite-link { background: var(--card); border-radius: var(--r-md); padding: 12px 14px; font-size: 13px; color: var(--text-2); word-break: break-all; box-shadow: var(--shadow); }

.list.form input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; padding: 2px 0 0; color: var(--text); }

/* ══ Liquid Glass & Bewegung (Apple-Stil) ═══════════════════════════════════ */
:root {
  --spring: cubic-bezier(.34, 1.36, .64, 1);      /* leichtes Nachfedern */
  --smooth: cubic-bezier(.22, 1, .36, 1);         /* weich auslaufend */
  --sheet-ease: cubic-bezier(.32, .72, 0, 1);     /* iOS-Sheet */
  --glass: rgba(255, 255, 255, .7);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .75);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -.5px 0 rgba(0, 0, 0, .06);
  --glass-shadow: 0 12px 32px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .06);
  --glass-blur: blur(22px) saturate(185%);
  --thumb: rgba(255, 255, 255, .95);
}
@media (prefers-color-scheme: dark) {
  :root {
    --glass: rgba(40, 40, 44, .66);
    --glass-strong: rgba(36, 36, 40, .8);
    --glass-edge: rgba(255, 255, 255, .14);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -.5px 0 rgba(255, 255, 255, .04);
    --glass-shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
    --thumb: rgba(118, 118, 128, .5);
  }
}

/* Sanfte Farbstimmung im Hintergrund, damit das Glas etwas zum Brechen hat */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vmax 45vmax at 105% -10%, rgba(23, 139, 180, .13), transparent 60%),
    radial-gradient(60vmax 40vmax at -10% 4%, rgba(236, 102, 95, .11), transparent 58%),
    radial-gradient(60vmax 40vmax at 50% 110%, rgba(23, 139, 180, .08), transparent 60%);
}

/* Tab-Leiste: schwebende Glas-Kapsel mit gleitender Linse */
.tabbar {
  left: 12px; right: 12px; bottom: max(10px, calc(var(--safe-bottom) - 8px));
  max-width: 500px; margin: 0 auto; padding: 0;
  background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.tabbar nav {
  position: relative; padding: 4px; border-radius: 999px; max-width: none;
  background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--glass-shadow);
}
.tabbar nav::after {   /* Lichtkante oben */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 45%);
  mix-blend-mode: soft-light;
}
.tabbar button { position: relative; z-index: 1; padding: 7px 0 6px; border-radius: 999px; transition: color .3s, transform .35s var(--spring); }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button:active { transform: scale(.9); transition-duration: .1s; }
.tab-ind {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 5); border-radius: 999px;
  background: var(--coral-soft); box-shadow: inset 0 0 0 .5px rgba(236, 102, 95, .18), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .55s var(--spring);
}

/* Kopfzeile: wird beim Scrollen zu Glas */
.topbar {
  position: sticky; top: 0; z-index: 15;
  margin: calc(-1 * (var(--safe-top) + 12px)) -16px 2px;
  padding: calc(var(--safe-top) + 12px) 16px 6px;
}
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: var(--glass-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: .5px solid var(--sep);
}
body.scrolled .topbar::before { opacity: 1; }
.icon-btn {
  background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid var(--glass-edge); box-shadow: var(--glass-hi), 0 2px 8px rgba(0, 0, 0, .06);
  transition: transform .35s var(--spring), opacity .2s;
}
.icon-btn:active { transform: scale(.88); transition-duration: .1s; }

/* Segment-Schalter mit gleitendem Glas-Daumen */
.segmented.glass-seg button.on { background: transparent; box-shadow: none; }
.segmented button { position: relative; z-index: 1; transition: font-weight .2s; white-space: nowrap; }
.seg-thumb {
  position: absolute; top: 2px; bottom: 2px; left: 2px; border-radius: 8px;
  background: var(--thumb); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .45s var(--spring), width .45s var(--spring);
}

/* Weiches Drücken */
.tile, .hero, .btn, .card.tap, .stat, .filter-chips button {
  transition: transform .4s var(--spring), opacity .2s, background .2s;
}
.tile:active, .hero:active, .stat:active { transform: scale(.965); transition-duration: .12s; }
.btn:active { transform: scale(.97); opacity: .9; transition-duration: .1s; }
.filter-chips button:active { transform: scale(.94); transition-duration: .1s; }
.row.tap { transition: background .25s, transform .3s var(--spring); }

/* Seitenwechsel: Inhalt gleitet in Richtung des Tabs, leicht gestaffelt */
.page.enter-r > *, .page.enter-l > *, .page.enter-up > * { animation: .5s var(--smooth) both; }
.page.enter-r > * { animation-name: in-r; }
.page.enter-l > * { animation-name: in-l; }
.page.enter-up > * { animation-name: in-up; animation-duration: .6s; }
.page > .topbar { animation: none !important; }
.page > *:nth-child(2) { animation-delay: .02s; }
.page > *:nth-child(3) { animation-delay: .045s; }
.page > *:nth-child(4) { animation-delay: .07s; }
.page > *:nth-child(5) { animation-delay: .095s; }
.page > *:nth-child(6) { animation-delay: .12s; }
.page > *:nth-child(n+7) { animation-delay: .14s; }
@keyframes in-r { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes in-l { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes in-up { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* Kalender/Woche blättern */
.swipe-area.slide-r { animation: in-r .42s var(--smooth) both; }
.swipe-area.slide-l { animation: in-l .42s var(--smooth) both; }
.swipe-area.slide-fade { animation: in-fade .35s var(--smooth) both; }
@keyframes in-fade { from { opacity: 0; transform: scale(.99); } to { opacity: 1; transform: none; } }

/* Sheets: Glas, iOS-Kurve */
.sheet {
  background: var(--glass-strong); backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .14), inset 0 1px 0 var(--glass-edge);
  transition: transform .5s var(--sheet-ease);
}
@media (prefers-color-scheme: light) { .sheet { background: rgba(242, 242, 247, .86); } }
.scrim { transition: opacity .4s var(--sheet-ease); background: rgba(0, 0, 0, .28); }

/* Hinweis-Pille aus Glas */
.toast {
  background: var(--glass-strong); color: var(--text);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--glass-shadow);
  transform: translate(-50%, 16px) scale(.92); transition: opacity .3s, transform .45s var(--spring);
}
.toast.show { transform: translate(-50%, 0) scale(1); }

/* Hero: feiner Glanz */
.hero::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ══ Made with love ═══════════════════════════════════════════════════════ */
.made { text-align: center; font-size: 12px; color: var(--text-3); margin: 22px 0 4px; letter-spacing: 0; }
.made b { color: var(--text-2); font-weight: 600; }
.made .heart { display: inline-block; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 10% { transform: scale(1.25); } 20% { transform: scale(1); } 30% { transform: scale(1.18); } }
.login .made { margin-top: 18px; }
.tab-ind.off { opacity: 0; }
a.row { color: inherit; }

/* ══ Social Wall ══════════════════════════════════════════════════════════ */
.text-btn.small { font-size: 15px; display: inline-flex; align-items: center; gap: 2px; padding: 0; }
.text-btn.small .chev { color: var(--coral); width: 12px; height: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 2px; color: var(--coral); font-size: 17px; margin: 2px 0 4px -6px; }
.back-link svg { width: 22px; height: 22px; }
.p-av { border-radius: 50%; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; letter-spacing: 0; }
.composer-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 12px;
  background: var(--card); border-radius: 999px; box-shadow: var(--shadow); color: var(--text-3); font-size: 16px;
  transition: transform .35s var(--spring);
}
.composer-row:active { transform: scale(.98); transition-duration: .1s; }
.composer-row span:nth-child(2) { flex: 1; }
.composer-row .cam { font-size: 20px; }
.wall { display: flex; flex-direction: column; gap: 12px; }
.post { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px 16px 10px; }
.post.skeleton { height: 140px; background: linear-gradient(90deg, var(--card) 0, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .title { font-weight: 600; font-size: 15px; }
.post-head .sub { font-size: 13px; color: var(--text-2); }
.post-del { color: var(--text-3); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.post-del svg { width: 19px; height: 19px; }
.post-del:active { background: var(--fill); }
.post-text { margin: 10px 0 2px; font-size: 16px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-img { display: block; width: calc(100% + 32px); margin: 10px -16px 0; overflow: hidden; background: var(--fill); max-height: 520px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reacts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.react {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 999px;
  background: var(--fill); font-size: 16px; transition: transform .35s var(--spring), background .2s;
}
.react span { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.react.on { background: var(--coral-soft); box-shadow: inset 0 0 0 1px rgba(236, 102, 95, .35); }
.react.on span { color: var(--coral-strong); }
.react:active { transform: scale(.88); transition-duration: .08s; }
.react.pop { animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(.8); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
.wall-empty { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 16px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); font-size: 15px; color: var(--text-2); }
.wall-empty b { color: var(--text); }
.wall-empty span { font-size: 34px; }
.composer textarea {
  width: 100%; margin-top: 12px; border: 0; outline: 0; resize: none; font: inherit; font-size: 17px; color: var(--text);
  background: var(--card); border-radius: var(--r-md); padding: 12px 14px; min-height: 110px;
}
.composer-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.composer-bar .caption { flex: 1; text-align: center; }
.small-btn { height: 42px; width: auto; padding: 0 18px; font-size: 16px; margin: 0 !important; cursor: pointer; }
.wp-prev { position: relative; margin-top: 12px; border-radius: var(--r-md); overflow: hidden; }
.wp-prev img { width: 100%; display: block; max-height: 300px; object-fit: cover; }
.wp-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; }
.full-img { width: 100%; border-radius: var(--r-md); display: block; }

/* Links verwalten */
.link-edit { display: grid; grid-template-columns: 1fr auto; gap: 6px; background: var(--card); border-radius: var(--r-md); padding: 10px; margin-bottom: 10px; position: relative; }
.link-edit input, .link-edit select {
  grid-column: 1 / -1; font: inherit; font-size: 16px; color: var(--text); background: var(--fill); border: 0; border-radius: 10px; padding: 9px 11px; outline: 0; width: 100%;
}
.link-edit .le-title { grid-column: 1; }
.link-edit .le-del { grid-column: 2; grid-row: 1; width: 38px; border-radius: 10px; background: var(--fill); color: #ff3b30; }

/* ══ Shot Clock ═══════════════════════════════════════════════════════════ */
.shotclock {
  position: fixed; inset: 0; z-index: 80; background: #0b0b0c; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 24px); opacity: 0; transform: scale(1.04); transition: opacity .3s, transform .45s var(--smooth);
  user-select: none; -webkit-user-select: none;
}
.shotclock.show { opacity: 1; transform: none; }
.sc-close { position: absolute; top: calc(var(--safe-top) + 14px); right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; }
.sc-label { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 600; }
.sc-face { position: relative; z-index: 2; width: min(78vw, 62vh); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; margin-top: 18px; }
.sc-num { font-size: min(34vw, 27vh); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; color: #ff453a; text-shadow: 0 0 40px rgba(255, 69, 58, .45); font-family: ui-rounded, "SF Pro Rounded", var(--font); }
.sc-hint { font-size: 13px; color: rgba(255, 255, 255, .45); margin-top: 8px; }
.shotclock.running .sc-hint { opacity: 0; }
.sc-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.sc-num, .sc-hint { position: relative; }
.sc-ring circle { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.sc-ring .bg { stroke: rgba(255, 255, 255, .08); }
.sc-ring .fg { stroke: #ff453a; transition: stroke .3s; }
.shotclock.low .sc-num { animation: blink .5s steps(1) infinite; }
.shotclock.zero .sc-num { color: #fff; text-shadow: 0 0 60px rgba(255, 255, 255, .6); }
.shotclock.zero { background: #8b0f0a; transition: background .2s; }
@keyframes blink { 50% { opacity: .35; } }
.sc-btns { display: flex; gap: 16px; margin-top: 26px; z-index: 2; }
.sc-btns button {
  width: 92px; height: 92px; border-radius: 50%; font-size: 30px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .1); border: .5px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: transform .35s var(--spring);
}
.sc-btns button:active { transform: scale(.9); transition-duration: .08s; }

/* ══ Wetter ═══════════════════════════════════════════════════════════════ */
.wx {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: -6px 0 14px; padding: 10px 14px;
  border-radius: var(--r-lg); background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid var(--glass-edge); box-shadow: var(--glass-hi), 0 4px 16px rgba(0, 0, 0, .05);
  transition: transform .4s var(--spring);
}
.wx:active { transform: scale(.98); transition-duration: .1s; }
.wx-ico { font-size: 30px; line-height: 1; }
.wx-t { font-size: 15px; color: var(--text-2); }
.wx-t b { color: var(--text); font-size: 17px; }
.wx-s { font-size: 14px; font-weight: 500; margin-top: 1px; }

.tile.fun .k { color: var(--text); font-size: 15px; }
.tile.fun .s { white-space: normal; }
.idea-link { display: block; width: 100%; text-align: center; font-size: 14px; color: var(--text-2); margin-top: 18px; padding: 12px; border-radius: var(--r-md); background: var(--fill); }
.idea-link b { color: var(--coral); }
.src { font-size: 12px; color: var(--text-3); text-align: center; margin: 18px 0 0; }
.filter-chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; padding: 0; }
.chip.muted { background: var(--fill); color: var(--text-2); }
.danger-text { color: #ff3b30 !important; }
.input, .composer .input {
  width: 100%; border: 0; outline: 0; font: inherit; font-size: 17px; color: var(--text); background: var(--card);
  border-radius: var(--r-md); padding: 12px 14px; margin-top: 12px; resize: none;
}

/* ══ Wasserball-Welt ══════════════════════════════════════════════════════ */
.sw-row { gap: 12px; }
.sw-teams { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; line-height: 1.25; }
.sw-teams span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-team { color: var(--coral); }
.sw-score { display: flex; flex-direction: column; align-items: center; font-size: 15px; color: var(--text-3); line-height: 1.25; font-variant-numeric: tabular-nums; }
.sw-score b { font-weight: 600; color: var(--text-2); font-size: 16px; }
.sw-score b.w { color: var(--text); font-weight: 800; }
.sw-score { flex-direction: row; gap: 3px; }
.sw-time { font-size: 15px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }

.w-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.w-top { display: flex; align-items: center; gap: 12px; }
.w-flag { font-size: 30px; line-height: 1; }
.w-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.w-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--text-2); margin-top: 10px; }
.w-tv { font-size: 14px; margin-top: 6px; padding: 8px 10px; background: var(--blue-soft); border-radius: 10px; }
.w-link { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; margin-top: 8px; }
.w-link .chev { color: var(--coral); width: 12px; height: 12px; }

.pool-row { min-height: 52px; }
.pool-rank { width: 26px; text-align: center; font-size: 20px; flex-shrink: 0; }
.temp { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.temp.hot { color: #ff3b30; }
.temp.warm { color: #ff9500; }
.temp.mild { color: var(--blue); }
.temp.cold { color: #5ac8fa; }

/* ══ Ideen-Box ════════════════════════════════════════════════════════════ */
.ideas { display: flex; flex-direction: column; gap: 10px; }
.idea { display: flex; gap: 12px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px 14px; align-items: flex-start; }
.idea.nein { opacity: .6; }
.vote {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; height: 56px; border-radius: 14px;
  background: var(--fill); color: var(--text-2); transition: transform .35s var(--spring), background .2s; flex-shrink: 0;
}
.vote span { font-size: 13px; line-height: 1; }
.vote b { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.vote.on { background: var(--coral); color: #fff; }
.vote.on b { color: #fff; }
.vote:active { transform: scale(.9); transition-duration: .08s; }
.idea-body { text-align: left; min-width: 0; }
.idea-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.idea-text { font-size: 14px; color: var(--text-2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.idea-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.idea-reply { font-size: 14px; margin-top: 8px; padding: 8px 10px; background: var(--fill); border-radius: 10px; }
.w-top .chip { white-space: nowrap; flex-shrink: 0; }

/* ══ Startseite: Ticker & News ════════════════════════════════════════════ */
.ticker {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px;
}
.ticker::-webkit-scrollbar { display: none; }
.tk {
  flex: 0 0 auto; width: 72%; max-width: 280px; scroll-snap-align: start; text-align: left; color: var(--text);
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 13px 15px; min-height: 112px;
  display: flex; flex-direction: column; transition: transform .4s var(--spring);
}
.tk:active { transform: scale(.97); transition-duration: .1s; }
.tk-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--coral); display: flex; align-items: center; gap: 6px; }
.tk-v { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin-top: 6px; flex: 1; }
.tk-v b { color: var(--coral); font-variant-numeric: tabular-nums; }
.tk-s { font-size: 13px; color: var(--text-2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-win { background: linear-gradient(135deg, var(--card) 40%, rgba(52, 199, 89, .14)); }
.tk-world { background: linear-gradient(135deg, var(--card) 45%, var(--blue-soft)); }
.tk-world .tk-k { color: var(--blue); }
.tk.skeleton { background: linear-gradient(90deg, var(--card) 0, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton-wx { opacity: .7; }

.news-list { display: flex; flex-direction: column; gap: 10px; }
.news {
  display: flex; gap: 12px; align-items: stretch; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow: hidden; color: var(--text); transition: transform .4s var(--spring);
}
.news:active { transform: scale(.98); transition-duration: .1s; }
.news-img { width: 96px; flex-shrink: 0; background: var(--fill); }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-img.ph { display: flex; align-items: center; justify-content: center; font-size: 30px; }
.news-body { padding: 10px 12px 10px 0; min-width: 0; }
.news-src { font-size: 12px; color: var(--text-2); }
.news-title { font-weight: 700; font-size: 15px; line-height: 1.3; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-text { font-size: 14px; color: var(--text-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news.big { flex-direction: column; gap: 0; }
.news.big .news-img { width: 100%; height: 180px; }
.news.big .news-img.ph { height: 90px; }
.news.big .news-body { padding: 12px 14px 14px; }
.news.big .news-title { font-size: 18px; }

/* ══ Entdecken-Kacheln (Startseite) ═══════════════════════════════════════ */
.discover { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; margin-top: 16px; }
.dc { display: flex; flex-direction: column; align-items: center; gap: 5px; transition: transform .4s var(--spring); }
.dc:active { transform: scale(.9); transition-duration: .08s; }
.dc-ico {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 27px;
  background: var(--card); box-shadow: var(--shadow), inset 0 0 0 .5px var(--sep);
}
.dc-l { font-size: 11.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }

/* ══ Anwesenheit ══════════════════════════════════════════════════════════ */
.att-btn { margin-top: 12px; }
.att-sumbar { display: flex; gap: 12px; flex-wrap: wrap; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.att-sumbar .muted { color: var(--text-3); font-weight: 500; }
.t-p { color: #248a3d; } .t-e { color: #c77700; } .t-u { color: #ff3b30; }
@media (prefers-color-scheme: dark) { .t-p { color: #4cd964; } .t-e { color: #ffb340; } }
.att-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.att-list { margin-top: 12px; }
.att-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 16px; min-height: 52px; position: relative; }
.att-row + .att-row::before { content: ""; position: absolute; top: 0; right: 0; left: 16px; height: 1px; background: var(--sep); transform: scaleY(.5); }
.att-name { font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-tg { display: flex; gap: 6px; flex-shrink: 0; }
.att-tg button {
  width: 40px; height: 36px; border-radius: 10px; background: var(--fill); font-weight: 700; font-size: 15px; color: var(--text-3);
  transition: transform .3s var(--spring), background .15s, color .15s;
}
.att-tg button:active { transform: scale(.88); transition-duration: .06s; }
.att-tg .t-p.on { background: #34c759; color: #fff; }
.att-tg .t-e.on { background: #ff9f0a; color: #fff; }
.att-tg .t-u.on { background: #ff3b30; color: #fff; }
.att-add { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.att-add .input { margin: 0; flex: 1; }

.stats-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 14px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.stats-link > span { font-size: 26px; }
.stats-link .sub { font-size: 13px; color: var(--text-2); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 12px; text-align: center; }
.kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--text-2); }
.st-row { gap: 12px; }
.st-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--fill); margin: 6px 0 4px; }
.st-bar i { display: block; height: 100%; }
.st-bar .p { background: #34c759; } .st-bar .e { background: #ff9f0a; } .st-bar .u { background: #ff3b30; }
.st-pct { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
.st-pct.good { color: #248a3d; } .st-pct.bad { color: #ff3b30; }
@media (prefers-color-scheme: dark) { .st-pct.good { color: #4cd964; } }
.my-att { margin-top: 10px; font-size: 14px; padding: 10px 14px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); color: var(--text-2); }
.my-att b { color: var(--text); }
.att-row .grow { flex: 1; min-width: 0; }

/* ══ 5m-Duell-Karte (Startseite) ══════════════════════════════════════════ */
.game-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.gc-head { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px 10px; }
.gc-head .title { font-weight: 700; font-size: 17px; }
.gc-head .sub { font-size: 13px; color: var(--text-2); white-space: normal; }
.gc-board { display: block; width: calc(100% - 24px); margin: 0 12px; padding: 4px 4px; background: var(--fill); border-radius: var(--r-md); text-align: left; }
.gc-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: 15px; }
.gc-row span:first-child { width: 22px; text-align: center; }
.gc-row b { font-variant-numeric: tabular-nums; }
.gc-row.me { color: var(--coral); font-weight: 600; }
.gc-foot { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; }
.gc-best { flex: 1; font-size: 13px; color: var(--text-2); }
.gc-best b { color: var(--text); font-size: 15px; }
.gc-head { background: linear-gradient(135deg, #178bb4, #0f6f99); color: #fff; padding: 14px 16px; margin-bottom: 10px; }
.gc-head .sub { color: rgba(255, 255, 255, .82); }
.gc-head .gt-ico svg { width: 42px; height: 42px; display: block; animation: bob 2.4s ease-in-out infinite; }
.gc-row .grow { flex: 1; min-width: 0; }

/* ══ Tabellen ═════════════════════════════════════════════════════════════ */
.tb-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.tb-head { display: flex; align-items: center; gap: 12px; }
.tb-title { font-weight: 700; font-size: 16px; line-height: 1.25; }
.tb-head .sub { font-size: 13px; color: var(--text-2); }
.tb-pos { text-align: center; background: var(--coral-soft); border-radius: 14px; padding: 6px 10px; min-width: 56px; }
.tb-pos b { display: block; font-size: 22px; color: var(--coral-strong); line-height: 1.05; }
.tb-pos span { font-size: 11px; color: var(--text-2); }
.tb-table { margin-top: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tb-r { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; }
.tb-r > span:first-child { width: 18px; color: var(--text-3); text-align: right; }
.tb-r .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-r > span:nth-child(3), .tb-r > span:nth-child(4) { width: 34px; text-align: right; color: var(--text-2); }
.tb-r > b, .tb-r > span:last-child { width: 30px; text-align: right; }
.tb-h { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-3); letter-spacing: .03em; }
.tb-r.me { background: var(--coral-soft); font-weight: 700; }
.tb-r.me > span:first-child { color: var(--coral-strong); }
.tb-ins { margin-top: 10px; padding: 10px 12px; background: var(--fill); border-radius: 12px; font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; gap: 4px; }
.tk-table { background: linear-gradient(135deg, var(--card) 45%, var(--coral-soft)); }

/* ══ Legendäre Sprüche ════════════════════════════════════════════════════ */
.quotes { display: flex; flex-direction: column; gap: 12px; }
.quote { position: relative; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 16px 12px; overflow: hidden; }
.quote::before { content: "“"; position: absolute; top: -18px; left: 10px; font-size: 96px; font-weight: 800; color: var(--coral); opacity: .18; font-family: Georgia, serif; }
.q-text { position: relative; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.quote.big { background: linear-gradient(135deg, var(--card) 55%, var(--coral-soft)); }
.quote.big .q-text { font-size: 21px; }
.q-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.q-who { font-weight: 700; font-size: 15px; }
.q-foot .sub { font-size: 12px; color: var(--text-2); }
.q-av { border-radius: 50%; overflow: hidden; background: var(--fill); flex-shrink: 0; }
.q-av svg, .q-av img { width: 100%; height: 100%; display: block; }
.quote-empty { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; margin-top: 24px; padding: 16px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); font-size: 15px; color: var(--text-2); }
.quote-empty b { color: var(--text); }

/* ══ Entdecken-Kacheln v2: App-Icons mit Verlauf & Glanz ═════════════════ */
.discover { gap: 14px 6px; margin-top: 18px; }
.dc-ico {
  position: relative; width: 60px; height: 60px; border-radius: 18px; font-size: 30px; overflow: visible;
  background: linear-gradient(160deg, var(--g1), var(--g2));
  box-shadow: 0 6px 14px -4px var(--gs), 0 1px 2px rgba(0, 0, 0, .12), inset 0 0 0 .5px rgba(255, 255, 255, .25);
}
.dc-ico::after { /* Glanzkante */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .08) 42%, rgba(255, 255, 255, 0) 55%);
}
.dc-e { position: relative; z-index: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); line-height: 1; }
.dc-l { font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.dc:active .dc-ico { filter: brightness(.92); }
.dc-badge {
  position: absolute; top: -5px; right: -5px; z-index: 2; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #ff3b30; color: #fff; font-size: 12px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--bg), 0 2px 4px rgba(0, 0, 0, .2);
}
.dc-badge.dot { min-width: 12px; width: 12px; height: 12px; padding: 0; top: -3px; right: -3px; }
.dc-pools { --g1: #5ad8ff; --g2: #0a84d6; --gs: rgba(10, 132, 214, .55); }
.dc-news  { --g1: #ffb04a; --g2: #ff5e3a; --gs: rgba(255, 94, 58, .5); }
.dc-liga  { --g1: #ff6f6f; --g2: #d61f2c; --gs: rgba(214, 31, 44, .5); }
.dc-world { --g1: #6f8bff; --g2: #3a2fd1; --gs: rgba(58, 47, 209, .5); }
.dc-wall  { --g1: #ff7ab8; --g2: #b44dff; --gs: rgba(180, 77, 255, .5); }
.dc-att   { --g1: #5fe08a; --g2: #18a957; --gs: rgba(24, 169, 87, .5); }
.dc-game  { --g1: #ffe066; --g2: #f5a300; --gs: rgba(245, 163, 0, .5); }
.dc-clock { --g1: #5b5b62; --g2: #1d1d1f; --gs: rgba(0, 0, 0, .45); }
.dc-ideas { --g1: #fff07a; --g2: #ffb800; --gs: rgba(255, 184, 0, .5); }
@media (prefers-color-scheme: dark) { .dc-clock { --g1: #7a7a82; --g2: #3a3a3e; } }

/* Training- & Match-Kacheln: dezenter Farbverlauf + grosses Wasserzeichen-Icon */
.tile { position: relative; overflow: hidden; }
.tile.blue { background: linear-gradient(150deg, var(--card) 45%, var(--blue-soft)); }
.tile.coral { background: linear-gradient(150deg, var(--card) 45%, var(--coral-soft)); }
.tile .k svg { width: 18px; height: 18px; }
.tile::after {
  content: ""; position: absolute; right: -14px; bottom: -18px; width: 86px; height: 86px; border-radius: 50%;
  background: currentColor; opacity: .06; pointer-events: none;
}
.tile.blue::after { color: var(--blue); }
.tile.coral::after { color: var(--coral); }
.tile .v { position: relative; z-index: 1; }

/* ══ Wall of Fame ═════════════════════════════════════════════════════════ */
.fame { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.fame-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(245, 197, 24, .35), transparent 55%), linear-gradient(135deg, #1d1d1b, #3a2a12);
}
.fame-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #f5c518; }
.fame-t { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin-top: 2px; }
.fame-kpis { display: flex; gap: 12px; text-align: center; }
.fame-kpis b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fame-kpis span { font-size: 11px; color: rgba(255, 255, 255, .7); }
.fame-sub { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 14px 16px 6px; }
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 8px; align-items: end; padding: 0 12px; }
.pod { text-align: center; min-width: 0; }
.pod-medal { font-size: 26px; }
.pod-name { font-weight: 800; font-size: 15px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-name span { display: block; font-weight: 500; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-team { font-size: 11px; color: var(--text-3); margin: 2px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-bar { border-radius: 12px 12px 4px 4px; color: #fff; padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; }
.pod-bar b { font-size: 22px; font-weight: 800; line-height: 1; }
.pod-bar small { font-size: 10px; opacity: .85; }
.pod-1 .pod-bar { background: linear-gradient(180deg, #f5c518, #d99a00); min-height: 88px; justify-content: center; }
.pod-2 .pod-bar { background: linear-gradient(180deg, #c7ccd4, #8e959f); min-height: 66px; justify-content: center; }
.pod-3 .pod-bar { background: linear-gradient(180deg, #e0a072, #b0683a); min-height: 52px; justify-content: center; }
.pod.me .pod-name { color: var(--coral); }
.fame-wins { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 4px; }
.fame-win { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--fill); border-radius: 12px; color: var(--text); }
.fw-score { font-size: 18px; font-weight: 800; color: #248a3d; min-width: 58px; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .fw-score { color: #4cd964; } }
.fw-t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fame-win .sub { font-size: 12px; color: var(--text-2); }
.fame-note { font-size: 12px; color: var(--text-3); padding: 10px 16px 14px; }
.fame > .fame-wins:last-child { padding-bottom: 14px; }

/* ══ Meine Teams ══════════════════════════════════════════════════════════ */
.mt-head { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 8px; }
.mt-head > span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.mt-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px 16px; padding: 2px 16px 6px; }
.mt-strip::-webkit-scrollbar { display: none; }
.mt {
  flex: 0 0 auto; width: 80%; max-width: 310px; scroll-snap-align: start; text-align: left; color: var(--text);
  background: linear-gradient(150deg, var(--card) 55%, color-mix(in srgb, var(--tc) 16%, var(--card)));
  border-radius: var(--r-lg); box-shadow: var(--shadow), inset 4px 0 0 var(--tc); padding: 12px 14px 12px 16px;
  display: flex; flex-direction: column; gap: 4px; transition: transform .4s var(--spring);
}
.mt-strip.single .mt { width: 100%; max-width: none; }
.mt:active { transform: scale(.97); transition-duration: .1s; }
.mt-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.mt-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 75%, #fff), var(--tc)); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 10px -3px var(--tc), inset 0 1px 0 rgba(255, 255, 255, .35); flex-shrink: 0;
}
.mt-badge.big { min-width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.mt-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.mt-role { font-size: 12px; font-weight: 600; color: var(--tc); }
.mt-line { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-line b { color: var(--text); }
.mt-empty { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; margin-bottom: 16px; padding: 14px 16px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); font-size: 14px; color: var(--text-2); }
.mt-empty b { color: var(--text); }
.team-pick .check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--sep); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.team-pick.picked .check { background: var(--coral); border-color: var(--coral); }
.profile .chips button.chip { cursor: pointer; }
.fame-teams { margin: 0 12px; background: var(--fill); border-radius: var(--r-md); padding: 4px; }
.ft-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; font-size: 14px; }
.ft-row + .ft-row { border-top: .5px solid var(--sep); }
.ft-team { font-size: 11px; font-weight: 700; color: var(--coral-strong); background: var(--coral-soft); border-radius: 8px; padding: 3px 7px; white-space: nowrap; min-width: 92px; text-align: center; }
.ft-row .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ft-row b { font-variant-numeric: tabular-nums; }
.ft-row.me .grow { color: var(--coral); }
