/* ==========================================================================
   TT Companion Mobile – Mobile-First Design System
   Optimiert für Smartphones (390×844) & zentrierte App-Shell am Desktop
   ========================================================================== */

:root {
  --navy-950: #061824;
  --navy-900: #0a2233;
  --navy-800: #113248;
  --navy-700: #1a4561;
  --mint-700: #08695e;
  --mint-600: #0a7c71;
  --mint-500: #14b8a6;
  --mint-200: #b2efe4;
  --mint-100: #ddf8f2;
  --mint-50: #effcf9;
  --amber-700: #b45309;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --bg: #eef3f2;
  --canvas: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #f7faf9;
  --border: #dfe7e5;
  --border-strong: #c9d6d3;
  --text: #0f2534;
  --text-soft: #334b5a;
  --muted: #506573;
  --shadow-card: 0 2px 10px rgba(10, 34, 51, 0.05), 0 1px 2px rgba(10, 34, 51, 0.04);
  --shadow-lg: 0 16px 40px rgba(10, 34, 51, 0.14);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shell-max: 480px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.48;
  background:
    radial-gradient(circle at 15% 10%, rgba(13, 148, 136, 0.13), transparent 34%),
    radial-gradient(circle at 85% 90%, rgba(10, 34, 51, 0.12), transparent 38%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.sheet-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }

:focus-visible {
  outline: 2px solid var(--mint-600);
  outline-offset: 2px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-xs { width: 14px; height: 14px; stroke-width: 2.2; }
.icon-sm { width: 16px; height: 16px; }

/* ==========================================================================
   Phone Shell
   ========================================================================== */

.phone-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--canvas);
  box-shadow: 0 0 0 1px rgba(10, 34, 51, 0.06), 0 24px 64px rgba(10, 34, 51, 0.13);
  display: flex;
  flex-direction: column;
}

@media (max-width: 520px) {
  body { background: var(--canvas); }
  .phone-shell { max-width: 100%; box-shadow: none; }
}

/* ==========================================================================
   Top App Bar
   ========================================================================== */

.app-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: rgba(10, 34, 51, 0.96);
  backdrop-filter: blur(14px);
  color: #f4faf8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.app-brand-crest {
  width: 32px;
  height: 36px;
  object-fit: contain;
  flex: none;
}
.app-brand-copy { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.app-brand-copy strong { font-size: 0.96rem; letter-spacing: -0.02em; }
.app-brand-copy small { color: #9fc0cf; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; }

.app-bar-actions { display: flex; align-items: center; gap: 7px; flex: none; }

.team-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid rgba(178, 239, 228, 0.28);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.16);
  color: #e9fffb;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.team-pill:active { transform: scale(0.97); }
.team-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ef0d0;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4faf8;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ef0d0;
  box-shadow: 0 0 0 2px #0a2233;
}

/* ==========================================================================
   Main & Bottom Tab Bar
   ========================================================================== */

.app-main {
  flex: 1;
  padding: 14px 14px calc(88px + env(safe-area-inset-bottom, 0px));
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: 100%;
  max-width: var(--shell-max);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(10, 34, 51, 0.07);
}

@media (max-width: 520px) {
  .tab-bar { max-width: 100%; }
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: color 0.16s ease, background 0.16s ease;
}
.tab-item .icon { width: 20px; height: 20px; }
.tab-item.active {
  color: var(--mint-700);
  background: var(--mint-50);
}

/* ==========================================================================
   Reusable Components
   ========================================================================== */

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 9px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px;
  box-shadow: var(--shadow-card);
}
.card-navy {
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.24), transparent 58%),
    linear-gradient(155deg, var(--navy-900), var(--navy-950));
  border-color: rgba(255, 255, 255, 0.1);
  color: #f4faf8;
}
.card-mint {
  background: linear-gradient(160deg, var(--mint-50), #ffffff);
  border-color: var(--mint-200);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.section-header h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.eyebrow {
  margin: 0 0 3px;
  color: var(--mint-700);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-navy .eyebrow { color: #5eead4; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mint-700);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}
.card-navy .link-btn { color: #5eead4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--navy-900); color: #ffffff; }
.btn-mint { background: var(--mint-600); color: #ffffff; }
.btn-soft { background: var(--mint-50); color: var(--mint-700); border-color: var(--mint-200); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost-dark { background: rgba(255, 255, 255, 0.12); color: #ffffff; border-color: rgba(255, 255, 255, 0.2); }
.btn-sm { min-height: 36px; padding: 7px 11px; font-size: 0.76rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-mint { background: var(--mint-100); color: var(--mint-700); border-color: transparent; }
.badge-amber { background: var(--amber-100); color: var(--amber-700); border-color: transparent; }
.badge-red { background: var(--red-100); color: var(--red-700); border-color: transparent; }
.badge-navy { background: var(--navy-900); color: #ffffff; border-color: transparent; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.select-input, .text-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}
.select-input {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23617684' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.search-wrap { position: relative; }
.search-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}
.search-wrap .text-input { padding-left: 36px; min-height: 40px; font-size: 0.84rem; font-weight: 500; }

.muted { color: var(--muted); }
.pos { color: var(--mint-700); font-weight: 750; }
.neg { color: var(--red-600); font-weight: 750; }

/* ==========================================================================
   Start View (Hero, Next 4 Matches, Sunday Brief)
   ========================================================================== */

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, #0b2436 0%, #071926 100%);
  color: #f4faf8;
  box-shadow: var(--shadow-lg);
}

.hero-media {
  position: relative;
  height: 205px;
  overflow: hidden;
}
.hero-wolf {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 25, 38, 0.14) 0%, rgba(7, 25, 38, 0.45) 55%, #071926 100%);
}
.hero-crest-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 7px;
  border-radius: 999px;
  background: rgba(7, 25, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
.hero-crest-badge img { width: 28px; height: 31px; object-fit: contain; }
.hero-crest-badge span { font-size: 0.72rem; font-weight: 750; color: #f4faf8; }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2px 16px 16px;
}
.hero-content h1 {
  margin: 0 0 6px;
  font-size: 1.48rem;
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.hero-content h1 span { color: #5eead4; }
.hero-sub {
  margin: 0 0 14px;
  color: #c2d7e2;
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-kpi { display: flex; flex-direction: column; }
.hero-kpi strong { font-size: 1.04rem; font-weight: 850; color: #ffffff; }
.hero-kpi span { font-size: 0.65rem; color: #9fc0cf; }

/* Match list */
.match-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.match-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}
.match-row-teams {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}
.match-row-teams .tsv-name { color: var(--mint-700); }
.match-row-venue { font-size: 0.71rem; color: var(--muted); }

/* My Team Card */
.my-team-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.rank-box {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--mint-100);
  color: var(--mint-700);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.rank-box small { font-size: 0.56rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.rank-box strong { font-size: 1.45rem; font-weight: 900; }

/* Horizontal scroller */
.h-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -14px;
  padding: 2px 14px 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { display: none; }

.perf-mini-card {
  flex: 0 0 154px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.perf-mini-top { display: flex; align-items: center; justify-content: space-between; }
.perf-mini-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.perf-mini-card.top-1 .perf-mini-rank { background: var(--navy-900); color: #5eead4; }
.perf-mini-score { font-size: 1.12rem; font-weight: 900; color: var(--mint-700); letter-spacing: -0.03em; }
.perf-mini-card h3 { margin: 0; font-size: 0.84rem; line-height: 1.2; }
.perf-mini-card p { margin: 0; font-size: 0.7rem; color: var(--muted); }

/* Quick Training */
.rsvp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rsvp-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 54px;
  padding: 8px 4px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 750;
  text-align: center;
}
.rsvp-btn.yes.active { background: var(--mint-600); border-color: var(--mint-600); color: #ffffff; }
.rsvp-btn.maybe.active { background: var(--amber-700); border-color: var(--amber-700); color: #ffffff; }
.rsvp-btn.no.active { background: var(--red-700); border-color: var(--red-700); color: #ffffff; }

/* ==========================================================================
   Ligen View
   ========================================================================== */

.view-head { margin-bottom: 12px; }
.view-head h1 { margin: 0 0 4px; font-size: 1.38rem; font-weight: 850; letter-spacing: -0.03em; }
.view-head p { margin: 0; font-size: 0.82rem; color: var(--muted); }

.mobile-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.mobile-table th {
  padding: 7px 6px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}
.mobile-table th.num, .mobile-table td.num { text-align: right; white-space: nowrap; }
.mobile-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.mobile-table tr:last-child td { border-bottom: 0; }
.mobile-table tr.is-tsv td {
  background: var(--mint-50);
  font-weight: 750;
  color: var(--navy-900);
}
.mobile-table tr.clickable { cursor: pointer; }
.table-team-cell {
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-expand-row td {
  padding: 8px 10px 10px;
  background: var(--surface-2);
  font-size: 0.74rem;
  color: var(--text-soft);
}

.result-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  background: var(--surface-2);
  text-align: left;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.result-item:active { background: var(--mint-50); }
.result-item.win { border-left-color: var(--mint-600); }
.result-item.loss { border-left-color: var(--red-600); }
.result-item.draw { border-left-color: var(--amber-500); }
.result-item-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
}
.result-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--mint-700);
  font-weight: 750;
}
.result-score {
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--navy-900);
  color: #ffffff;
  font-weight: 850;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Match Report Sheet (Spielbericht) */
.mr-hero {
  padding: 14px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.22), transparent 65%),
    linear-gradient(155deg, var(--navy-900), var(--navy-950));
  color: #ffffff;
  text-align: center;
}
.mr-meta { font-size: 0.68rem; color: #9fc0cf; font-weight: 700; margin-bottom: 8px; }
.mr-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.mr-team-name { font-size: 0.86rem; font-weight: 800; line-height: 1.2; }
.mr-team-name.is-tsv { color: #5eead4; }
.mr-final-score { font-size: 1.9rem; font-weight: 900; line-height: 1; color: #5eead4; letter-spacing: -0.04em; }
.mr-sub { margin-top: 8px; font-size: 0.72rem; color: #c2d7e2; }

.mr-game {
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mr-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 800;
}
.mr-game-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.25;
}
.mr-player { color: var(--text-soft); }
.mr-player.winner { color: var(--navy-900); font-weight: 800; }
.mr-player.right { text-align: right; }
.mr-sets-ratio {
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--navy-900);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 850;
  white-space: nowrap;
}
.mr-sets-ratio.tsv-win { background: var(--mint-600); }
.mr-sets-ratio.tsv-loss { background: var(--red-700); }
.mr-sets-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.69rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.np-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #dfd7c8;
  font-size: 0.79rem;
}
.np-result-row:last-child { border-bottom: 0; }
.np-report-btn {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #0a7c71;
  background: #ffffff;
  color: #08695e;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.home-day-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.day-pill {
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 750;
}
.day-pill.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

/* ==========================================================================
   Performance View
   ========================================================================== */

.award-card {
  flex: 0 0 185px;
  scroll-snap-align: start;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.award-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 0.67rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.award-card h3 { margin: 0 0 3px; font-size: 0.9rem; }
.award-card p { margin: 0; font-size: 0.72rem; color: var(--text-soft); }

.filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -14px;
  padding: 2px 14px 4px;
}
.filter-pills::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
}
.chip.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.rank-card {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.rank-card.top-three { border-color: var(--mint-200); background: linear-gradient(160deg, var(--mint-50), #ffffff); }
.rank-num { font-size: 0.88rem; font-weight: 900; color: var(--muted); text-align: center; }
.rank-card.top-three .rank-num { color: var(--mint-700); }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #5eead4;
  font-size: 0.76rem;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.avatar-sm { width: 30px; height: 30px; font-size: 0.66rem; }

.rank-info { min-width: 0; }
.rank-name { font-size: 0.88rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 2px;
  font-size: 0.71rem;
  color: var(--muted);
}

.score-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.score-pill strong { font-size: 1.06rem; font-weight: 900; color: var(--navy-900); }
.score-pill small { font-size: 0.65rem; font-weight: 750; }

/* Bars */
.bar-row {
  display: grid;
  grid-template-columns: 98px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
}
.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint-600), var(--mint-500));
}

/* ==========================================================================
   Training View
   ========================================================================== */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.stat-tile {
  padding: 9px 6px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
}
.stat-tile strong { display: block; font-size: 1.04rem; font-weight: 900; line-height: 1.15; }
.stat-tile span { font-size: 0.63rem; color: var(--muted); font-weight: 700; }

.partner-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 650;
}
.partner-item:last-child { border-bottom: 0; }
.partner-item > span:first-child { text-align: right; }
.partner-item small { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 0.67rem; font-weight: 500; }

.attendee-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.attendee-item:last-child { border-bottom: 0; }
.attendee-item.is-me {
  margin: 0 -8px;
  padding: 8px;
  border-radius: 10px;
  background: var(--mint-50);
}
.attendee-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.attendee-qttr { font-size: 0.72rem; color: var(--muted); font-weight: 700; }

/* ==========================================================================
   Vorgaben View (Triepsches System)
   ========================================================================== */

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.25), transparent 65%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: #ffffff;
  text-align: center;
}
.sb-side h2 { margin: 5px 0 2px; font-size: 0.92rem; line-height: 1.2; }
.sb-side p { margin: 0; font-size: 0.69rem; color: #9fc0cf; }
.sb-role {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: #c2d7e2;
}
.sb-role.favorit { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
.sb-role.vorgabe { background: rgba(20, 184, 166, 0.24); color: #5eead4; }

.sb-center { display: flex; flex-direction: column; align-items: center; min-width: 96px; }
.sb-center small { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: #9fc0cf; font-weight: 800; }
.sb-center strong { font-size: 2.3rem; font-weight: 900; line-height: 1.05; color: #5eead4; letter-spacing: -0.04em; }

.swap-bar {
  display: flex;
  justify-content: center;
  margin: -4px 0;
}
.swap-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--mint-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.step-list li:last-child { border-bottom: 0; }
.step-list li span { color: var(--muted); }
.step-list li strong { color: var(--text); }

.callout {
  padding: 11px 12px;
  border-radius: 12px;
  border-left: 4px solid var(--mint-600);
  background: var(--mint-50);
  font-size: 0.82rem;
  color: var(--navy-900);
}
.callout-amber {
  border-left-color: var(--amber-500);
  background: var(--amber-100);
  color: #78350f;
}

.preset-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-btn {
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ==========================================================================
   Bottom Sheet / Dialog (Profile, Player Detail, Formula, Newspaper Report)
   ========================================================================== */

.app-sheet {
  width: min(var(--shell-max), 100vw);
  max-width: 100vw;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 -18px 60px rgba(6, 24, 36, 0.35);
  overflow: auto;
}
.app-sheet::backdrop {
  background: rgba(6, 24, 36, 0.62);
  backdrop-filter: blur(4px);
}

.sheet-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.sheet-bar-dark {
  background: rgba(10, 34, 51, 0.96);
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.sheet-title { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 800; }
.sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sheet-bar-dark .sheet-close {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.sheet-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #e7e1d4;
  margin-bottom: 14px;
}
.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4b5551;
  font-size: 0.76rem;
  font-weight: 750;
}
.segmented button.active {
  background: #0a2233;
  color: #ffffff;
}

/* Newspaper Reader */
.app-sheet.newspaper-sheet { background: #f7f2e8; }
.newspaper {
  padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  color: #1a2422;
}
.np-masthead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid #26312e;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #465450;
}
.np-masthead img { width: 22px; height: 25px; object-fit: contain; }
.np-masthead-line { flex: 1; height: 1px; background: #cfc6b5; }
.np-kicker {
  margin: 0 0 6px;
  color: #9a5b12;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.newspaper h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.72rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #131c1a;
}
.np-lead {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.52;
  color: #35413e;
}
.np-byline {
  padding: 8px 0;
  margin-bottom: 16px;
  border-top: 1px solid #d7cebe;
  border-bottom: 1px solid #d7cebe;
  font-size: 0.68rem;
  color: #66706c;
}
.np-section { margin-bottom: 18px; }
.np-section h2 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: #131c1a;
}
.np-section p {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #27322f;
}
.np-list {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #27322f;
}
.np-list li { margin-bottom: 4px; }
.np-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; margin-top: 8px; }
.np-table th {
  padding: 5px 6px;
  border-top: 1px solid #968f82;
  border-bottom: 1px solid #968f82;
  text-align: left;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: #465450;
}
.np-table td { padding: 5px 6px; border-bottom: 1px solid #dfd7c8; }
.np-table tr.is-tsv td { background: rgba(13, 148, 136, 0.14); font-weight: 750; }
.np-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  margin-top: 14px;
}

/* News card */
.news-item {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item:first-child { padding-top: 0; }
.news-item h3 { margin: 5px 0 3px; font-size: 0.88rem; }
.news-item p { margin: 0; font-size: 0.78rem; color: var(--text-soft); }

/* Push Switches & Code Input */
.code-input {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 850;
  text-align: center;
}
.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.pin-input {
  letter-spacing: 0.35em;
  font-weight: 850;
  text-align: center;
  max-width: 160px;
}

.push-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toggle-copy { min-width: 0; }
.toggle-copy strong { display: block; font-size: 0.85rem; line-height: 1.25; }
.toggle-copy span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #cbd6d4;
  padding: 3px;
  transition: background 0.18s ease;
}
.switch::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(10, 34, 51, 0.2);
  transition: transform 0.18s ease;
}
.switch[aria-checked="true"] { background: var(--mint-600); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* Mobile OS Push Notification Preview Banner */
.push-banner {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  width: min(456px, calc(100vw - 20px));
  padding: 13px 14px;
  border-radius: 18px;
  background: #081e2d;
  color: #ffffff;
  border: 1px solid rgba(94, 234, 212, 0.35);
  box-shadow: 0 20px 54px rgba(6, 24, 36, 0.55);
  animation: pushSlideDown 0.14s ease-out;
}
@keyframes pushSlideDown {
  from { transform: translate(-50%, -14px); }
  to { transform: translate(-50%, 0); }
}
.push-banner-inner {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: start;
  gap: 10px;
}
.push-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0d2b3e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px;
  object-fit: contain;
}
.push-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.67rem;
  color: #9fc0cf;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}
.push-banner-title { font-size: 0.86rem; font-weight: 800; margin: 2px 0; color: #ffffff; }
.push-banner-body { font-size: 0.76rem; color: #d5e6ef; line-height: 1.35; }
.push-banner-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

/* Live-Ticker */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #b91c1c;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: livePulse 1.4s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.live-home-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(220, 38, 38, 0.2), transparent 55%),
    linear-gradient(160deg, #132838, #081824);
  border: 1px solid rgba(252, 165, 165, 0.28);
  border-radius: var(--radius-lg);
  padding: 14px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}
.live-home-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-align: left;
}
.live-home-item:active { background: rgba(255, 255, 255, 0.12); }

.live-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 4px solid #dc2626;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.live-card.has-tsv { border-left-color: var(--mint-600); }
.live-card-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.live-card-team { font-size: 0.86rem; font-weight: 800; line-height: 1.2; }
.live-card-team.right { text-align: right; }
.live-card-team.is-tsv { color: var(--mint-700); }
.live-score-box {
  padding: 4px 11px;
  border-radius: 10px;
  background: var(--navy-900);
  color: #5eead4;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.live-active-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  font-size: 0.74rem;
  color: #7f1d1d;
}
.live-active-strip strong { color: #991b1b; }

.live-table-box {
  padding: 13px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #fff5f5, #ffffff);
  border: 1.5px solid #fca5a5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-set-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  border-radius: 11px;
  background: var(--navy-900);
  color: #ffffff;
}
.live-set-big strong { font-size: 1.35rem; color: #5eead4; font-variant-numeric: tabular-nums; }
.live-set-big span { font-size: 0.7rem; color: #c2d7e2; font-weight: 700; }

.chip-grid-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Event-Teaser & Weihnachtsflyer */
.event-teaser {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #ead8c4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fffaf3 0%, #fff4ee 100%);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.event-teaser:active { transform: scale(0.995); }
.event-teaser-date {
  width: 52px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(160deg, #9f1239, #7f1d1d);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: none;
}
.event-teaser-date strong { font-size: 1.28rem; font-weight: 900; }
.event-teaser-date small { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.08em; margin-top: 3px; }
.event-teaser-copy { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.event-teaser-copy .eyebrow { color: #9a3412; margin: 0 0 1px; font-size: 0.58rem; }
.event-teaser-copy strong { font-size: 0.82rem; line-height: 1.25; color: #2a1c14; }
.event-teaser-copy small { color: #7a6252; font-size: 0.67rem; line-height: 1.35; }
.event-teaser-action { display: inline-flex; align-items: center; gap: 2px; color: #9a3412; font-size: 0.67rem; font-weight: 850; white-space: nowrap; }

.event-sheet { background: #fbf3e5; }
.event-flyer { background: #fbf3e5; color: #231c17; }
.event-poster {
  position: relative;
  min-height: 258px;
  overflow: hidden;
  padding: 17px;
  background:
    radial-gradient(circle at 88% 18%, rgba(253, 230, 138, 0.22), transparent 10rem),
    linear-gradient(135deg, #0b3b2e 0%, #123b2b 48%, #6b1212 100%);
  color: #ffffff;
}
.event-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 1.4px, transparent 1.8px);
  background-size: 38px 38px, 57px 57px;
  background-position: 4px 8px, 21px 27px;
  opacity: 0.32;
  pointer-events: none;
}
.event-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 36, 0.04) 30%, rgba(6, 24, 36, 0.72) 100%);
  pointer-events: none;
}
.event-poster-wolf {
  position: absolute;
  right: -44px;
  bottom: -18px;
  width: 285px;
  max-width: 72%;
  opacity: 0.55;
  filter: saturate(0.8) contrast(1.05);
  z-index: 1;
}
.event-poster-inner { position: relative; z-index: 2; max-width: 78%; }
.event-poster-crest { width: 46px; height: 51px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.event-poster-kicker {
  margin: 0 0 7px;
  color: #fde68a;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-poster h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff7e6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.event-poster-date {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 8px;
  background: #b91c1c;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}
.event-poster-claim { margin: 9px 0 0; color: #fde68a; font-size: 0.76rem; font-weight: 750; }
.event-body { padding: 16px; }
.event-motto {
  margin: 0 0 14px;
  color: #7f1d1d;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  text-align: center;
}
.event-block {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #eadbc7;
  border-radius: 15px;
  background: #ffffff;
}
.event-block h2 {
  margin: 0 0 8px;
  color: #7f1d1d;
  font-family: var(--serif);
  font-size: 1.02rem;
}
.event-timeline { display: flex; flex-direction: column; gap: 0; }
.event-timeline-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 9px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid #f0e7d8;
}
.event-timeline-item:last-child { border-bottom: 0; }
.event-time {
  display: inline-flex;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 999px;
  background: #7f1d1d;
  color: #ffffff;
  font-size: 0.63rem;
  font-weight: 850;
  white-space: nowrap;
}
.event-timeline-item strong { display: block; font-size: 0.8rem; line-height: 1.25; }
.event-timeline-item small { display: block; margin-top: 1px; color: #6b5a4c; font-size: 0.7rem; line-height: 1.35; }
.event-rules-box { background: #fff8f3; border-color: #e7b4a8; }
.event-rules-box ul { margin: 0; padding-left: 17px; color: #4a3328; font-size: 0.76rem; line-height: 1.55; }
.event-rules-box li { margin-bottom: 4px; }
.event-rules-box li::marker { color: #b91c1c; }
.event-block p { margin: 0; color: #4a3328; font-size: 0.8rem; line-height: 1.5; }
.event-muted { margin-top: 5px !important; color: #7a6252 !important; font-size: 0.74rem !important; }
.event-registration { background: #0a2233; border-color: #0a2233; color: #ffffff; }
.event-registration h2 { color: #fde68a; }
.event-registration p { color: #d5e6ef; }
.event-registration a { color: #5eead4; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.event-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.event-actions > :first-child { grid-column: 1 / -1; }
.event-note {
  margin: 14px 0 0;
  color: #7f1d1d;
  font-family: var(--serif);
  font-size: 0.86rem;
  font-style: italic;
  text-align: center;
}

/* Demo-Zugang & Demo-Hinweis (nur statische Drop-Version) */
body.gate-locked { overflow: hidden; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(20, 184, 166, 0.22), transparent 32%),
    radial-gradient(circle at 85% 90%, rgba(15, 118, 110, 0.2), transparent 36%),
    #081c29;
  color: #f4faf8;
  overflow-y: auto;
}
.gate-card {
  width: min(400px, 100%);
  padding: 28px 24px;
  border-radius: 24px;
  background: rgba(10, 34, 51, 0.94);
  border: 1px solid rgba(94, 234, 212, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.gate-card img { width: 54px; height: 60px; object-fit: contain; margin-bottom: 16px; }
.gate-kicker { margin: 0 0 6px !important; color: #5eead4 !important; font-size: 10px !important; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.gate-card h1 { margin: 0 0 8px; font-size: 30px; line-height: 1; letter-spacing: -0.04em; color: #ffffff; }
.gate-copy { margin: 0 0 18px !important; color: #b7ccd7 !important; font-size: 14px !important; line-height: 1.5; }
.gate-card label { display: block; margin-bottom: 7px; color: #9fc0cf; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.gate-card input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 17px;
  outline: none;
}
.gate-card input:focus { border-color: #5eead4; box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.18); }
.gate-card button {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 11px;
  background: #0d9488;
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}
.gate-error { min-height: 18px; margin: 6px 0 0 !important; color: #fecaca !important; font-size: 12px !important; }
.gate-card small { display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #7896a4; font-size: 11px; }

.demo-strip {
  padding: 7px 12px;
  background: #fff7e8;
  border-top: 1px solid #f3dfb8;
  border-bottom: 1px solid #f3dfb8;
  color: #7a4a00;
  font-size: 0.67rem;
  font-weight: 750;
  text-align: center;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Print */
@media print {
  @page { size: A4; margin: 14mm; }
  body.print-mode { background: #ffffff !important; }
  body.print-mode .phone-shell,
  body.print-mode .toast,
  body.print-mode .sheet-bar,
  body.print-mode .segmented,
  body.print-mode .np-actions,
  body.print-mode .event-actions { display: none !important; }
  body.print-mode .app-sheet {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
  }
  body.print-mode .app-sheet::backdrop { display: none; }
  body.print-mode .newspaper { padding: 0; }
  body.print-mode .event-flyer { background: #ffffff; }
  body.print-mode .event-poster { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
