/* ══ Saira Condensed 700 — selbst-gehostet (DSGVO-konform) ══ */
@font-face {
  font-family: 'Saira Condensed';
  src: url('assets/fonts/SairaCondensed-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Display-Schrift auf Headings und große Zahlenwerte ── */
h1, h2, h3,
.sc-pts-big,
.ss-pts-big,
.sh-pts,
.stat-val,
.league-card-name {
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Farbpalette ── */
  --bg:           #0F172A;
  --surface:      #1e293b;
  --surface-2:    #334155;
  --accent:       #06B6D4;
  --accent-hover: #0891B2;
  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --text-faint:   #64748B;
  --border:       #334155;

  /* ── Semantische Farben ── */
  --success:      #10B981;
  --warn:         #F59E0B;
  --danger:       #EF4444;
  --gold:         #F59E0B;
  --gold-bg:      rgba(245, 158, 11, 0.12);

  /* ── Schatten (Cyan-getönt) ── */
  --shadow-sm:    0 1px 2px rgba(6, 182, 212, 0.05);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(6, 182, 212, 0.08);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(6, 182, 212, 0.12);

  /* ── Basis ── */
  --radius: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Globaler Focus-Ring ── */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Layout ── */
.app-header {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Header Help-Button "?" ── */
.header-help-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.header-help-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.header-help-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Logo-Asset (PNG/SVG) ── */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

@media (max-width: 480px) {
  .logo-img {
    height: 28px;
  }
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* ── Home ── */
.home-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.home-hero h1 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}

.home-hero h1 span {
  color: var(--accent);
  font-weight: 700;
}

.home-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.home-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.home-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-hint {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 1.25rem;
  line-height: 1.6;
}

.nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              border-color 0.15s, background 0.15s;
  text-decoration: none;
  color: var(--text);
  display: block;
  box-shadow: var(--shadow-sm);
}

.nav-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.nav-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.nav-card .label {
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-card .sublabel {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.2s ease, background-color 0.2s ease,
              opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}

.btn-danger:hover {
  background: rgba(239,68,68,0.15);
}

.btn:hover        { transform: translateY(-1px); }
.btn:active       { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Pages (hidden by default) ── */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ── Forms ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.section-header span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Player List ── */
.player-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.player-item:last-child {
  margin-bottom: 0;
}

.player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-club {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.player-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.3rem 0.55rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-icon:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-icon.danger:hover {
  color: var(--danger);
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.15);
}

/* ── 3-spaltige Formzeile ── */
.form-row-3 {
  grid-template-columns: 2fr 1.5fr 1fr;
}

/* ── Positions-Badge ── */
.badge-pos {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-right: 0.35rem;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

/* ── Gruppen-Label in der Liste ── */
.list-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.5rem 0 0.35rem;
  margin-top: 0.25rem;
}

/* ── Inaktiver Spieler ── */
.player-item.inactive {
  opacity: 0.45;
}

.player-item.inactive .player-name {
  text-decoration: line-through;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Card Header Row ── */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-header-row h3 {
  margin-bottom: 0;
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

.btn-sm:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Lineup Count Badge ── */
.lineup-count {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  color: var(--text-muted);
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Lineup Row ── */
.lineup-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.lineup-row:last-child {
  border-bottom: none;
}

.lr-info {
  flex: 1;
  min-width: 0;
}

.lr-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lr-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ── Lineup Inputs ── */
.lr-inputs {
  display: flex;
  gap: 0.4rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.lr-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}

.lr-field label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pts-input {
  width: 64px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  text-align: center;
  outline: none;
}

.pts-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(6,182,212,0.18);
}

.sm-input {
  width: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.4rem 0.3rem;
  text-align: center;
  outline: none;
}

.sm-input:focus {
  border-color: var(--accent);
}

/* ── Overlays ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 100;
  align-items: flex-end;  /* default: bottom sheet */
  justify-content: center;
}

.overlay.overlay-center {
  align-items: center;
}

.overlay.open {
  display: flex;
}

.overlay-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

#picker-list, #picker-db-results {
  overflow-y: auto;
  padding: 0.5rem 1rem 1.5rem;
}

/* ── Picker Row ── */
.picker-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}

.picker-row:last-child { border-bottom: none; }
.picker-row:hover { background: var(--surface-2); }

.picker-row.picker-disabled {
  opacity: 0.4;
  cursor: default;
}

.picker-add {
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  padding: 0 0.25rem;
}

.picker-already {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 700;
  padding: 0 0.25rem;
}

.picker-returner-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 5px;
  background: rgba(79,126,248,0.15);
  color: var(--accent);
  border-radius: 4px;
  margin-left: 5px;
  font-weight: 600;
  vertical-align: middle;
}

/* ── Empty State small ── */
.empty-state.small {
  padding: 1.5rem 0.5rem;
  font-size: 0.85rem;
}

/* ── Stats Bar ── */
.page-matchday .stats-bar {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.25rem;
}

.stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  background: var(--border);
  margin: 0.5rem 0;
  flex-shrink: 0;
}

/* ── Info Banner ── */
.info-banner {
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

/* ── Template Label (Vorlage: Spieltag X) ── */
.template-label-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.25rem 0 0.1rem;
  margin-bottom: 0.25rem;
}

.sync-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.2;
}

/* Großer mittiger CTA-Button bei leerer Aufstellung */
.pitch-center-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4), 0 0 0 4px rgba(6, 182, 212, 0.15);
  white-space: nowrap;
}
.pitch-center-cta:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

/* ── Football Pitch ── */
.pitch {
  background: linear-gradient(180deg, #215e26 0%, #277a2c 40%, #277a2c 60%, #215e26 100%);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 32px 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

/* Field markings */
.fm {
  position: absolute;
  pointer-events: none;
}

.fm-top-box {
  top: 6px; left: 22%; right: 22%; height: 68px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-bottom: none;
}

.fm-top-6yard {
  top: 6px; left: 37%; right: 37%; height: 26px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-bottom: none;
}

.fm-center-line {
  top: 50%; left: 4%; right: 4%; height: 1.5px;
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%);
}

.fm-center-circle {
  top: 50%; left: 50%;
  width: 90px; height: 90px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.fm-bottom-6yard {
  bottom: 6px; left: 37%; right: 37%; height: 26px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-top: none;
}

.fm-bottom-box {
  bottom: 6px; left: 22%; right: 22%; height: 68px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-top: none;
}

.pitch-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
  min-height: 96px;
  padding: 4px 2px;
}

/* Placeholder text when row empty */
.fp-empty {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-self: center;
}

/* ── Field Player ── */
.field-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  cursor: pointer;
  transition: transform 0.15s;
  user-select: none;
  position: relative;
}

.field-player:hover {
  transform: scale(1.05);
}

.fp-edit-btn {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2, #1c2030);
  color: var(--text-muted, #9aa0b4);
  font-size: 0.7rem;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0.65;
  transition: opacity 0.15s, transform 0.15s, border-color 0.15s, color 0.15s;
}
.field-player:hover .fp-edit-btn { opacity: 1; }
.fp-edit-btn:hover {
  opacity: 1;
  transform: scale(1.15);
  border-color: var(--accent);
  color: var(--accent);
}
.fp-edit-active,
.fp-edit-btn.fp-edit-active {
  opacity: 1 !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: rgba(245, 185, 66, 0.12);
}
.field-player.fp-override .fp-circle {
  box-shadow: 0 0 0 2px var(--gold), 0 0 8px rgba(245,158,11,0.4);
}

.fp-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  position: relative;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  user-select: none;
  transition: box-shadow 0.2s ease;
}
.fp-circle:hover {
  box-shadow: 0 0 0 2px var(--accent);
}

/* ── Field Player Placeholder ── */
.field-player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s, transform 0.15s;
  user-select: none;
}

.field-player-placeholder:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.fp-placeholder-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  border: 2px dashed rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

.fp-placeholder-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

.field-player.fp-out .fp-circle {
  /* Volle Vereinsfarbe behalten — nur das ✕-Icon ersetzt die Initialen */
}
.field-player.fp-out .fp-name,
.field-player.fp-out .fp-stats {
  opacity: 0.5;
}

.fp-out-icon {
  font-size: 1rem;
  font-style: normal;
}

.fp-sub-badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 15px; height: 15px;
  background: var(--success);
  border: 1.5px solid #0f1117;
  border-radius: 50%;
  font-size: 0.55rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.fp-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  max-width: 52px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* ── Status Toggle ── */
.fp-status-toggle {
  display: flex;
  gap: 0;
}

.stt {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 3px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-family: var(--font);
  line-height: 1.5;
  transition: background 0.1s, color 0.1s;
}

.stt:first-child { border-radius: 3px 0 0 3px; }
.stt:last-child  { border-radius: 0 3px 3px 0; }

.stt.active {
  background: rgba(255,255,255,0.22);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.stt.stt-out.active {
  background: rgba(220,80,80,0.5);
  border-color: rgba(220,80,80,0.8);
}

/* ── Player Stats under circle ── */
.fp-stats {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.fp-points {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.fp-icon-stat {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ── Field Controls ── */
.field-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.add-pos-btns {
  display: flex;
  gap: 0.5rem;
}

.btn-pos {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.btn-pos:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Formation Badge ── */
.formation-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#formation-text {
  font-size: 1rem;
  font-weight: 700;
}

.formation-status {
  font-size: 0.8rem;
  font-weight: 600;
}

.formation-status.valid   { color: var(--success); }
.formation-status.invalid { color: var(--danger); }
.formation-status.invalid {
  white-space: normal;
  max-width: 300px;
  line-height: 1.35;
  font-size: 0.82rem;
  text-align: center;
}

/* ── Save Button disabled ── */
#btn-save-matchday:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Player Edit Modal (zentriert) ── */
.overlay-center {
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.overlay-panel-center {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
}

.pm-player-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pm-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.pm-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.pm-body {
  padding: 1rem 1.25rem 1.25rem;
}

.rem-edit-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.rem-edit-fields select,
.rem-edit-fields input { width: 100%; box-sizing: border-box; }

.pm-pts {
  width: 100%;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
  white-space: nowrap;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.undo-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
  white-space: nowrap;
  z-index: 999;
}
.undo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.undo-toast-btn {
  background: var(--accent, #4f7ef8);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.undo-toast-btn:hover { background: #6a92ff; }

.input-warn {
  border-color: var(--warn) !important;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.2);
}

/* ── Footer ── */
.app-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.5;
  padding: 2.5rem 0 1rem;
  letter-spacing: 0.03em;
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }
.footer-sep { opacity: 0.5; }
.footer-disclaimer {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: 0.25rem;
}

/* ══ Feature 1 v2: Spieler verwalten ══════════════════════════ */

/* Verein-Chips */
.club-chips-wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}

.club-chips-wrap::-webkit-scrollbar { display: none; }

.club-chip {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.club-chip:hover { color: var(--text); border-color: var(--text-muted); }
.club-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Kompakt-Modus */
.player-item-compact {
  padding: 0.45rem 0.75rem;
  gap: 0.5rem;
}

.player-item-compact .player-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  font-size: 0.62rem;
}

.pic-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pic-club {
  font-size: 0.73rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.pic-pts {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  min-width: 2.5rem;
  text-align: right;
}

.pic-pts small { font-size: 0.65rem; font-weight: 400; margin-left: 1px; }
.pic-pts-empty { min-width: 2.5rem; }

.picker-tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.picker-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.ptab-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.picker-search-bar {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.picker-search-bar input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.45rem 0.7rem;
  outline: none;
}

.picker-search-bar input:focus { border-color: var(--accent); }
.picker-search-bar input::placeholder { color: var(--text-muted); opacity: 0.6; }

.picker-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem 1rem 1.5rem;
}

/* Top-Bar: Suche + Hinzufügen */
.pm-top-bar {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.pm-search-wrap {
  position: relative;
  flex: 1;
}

.pm-search-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}

.pm-search-input:focus { border-color: var(--accent); }
.pm-search-input::placeholder { color: var(--text-muted); opacity: 0.6; }

/* Kader-Suche Dropdown */
.player-search-dd {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 300;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.ps-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.ps-row:hover { background: var(--surface); }

.ps-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 0.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid transparent;
}

.ps-info { flex: 1; min-width: 0; }
.ps-name { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-meta { font-size: 0.72rem; color: var(--text-muted); }
.ps-stats { color: var(--accent); margin-left: 0.3rem; }
.ps-no-results { padding: 0.75rem; color: var(--text-muted); font-size: 0.85rem; text-align: center; }

/* Stats in Spielerliste */
.pi-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.2rem;
  font-size: 0.72rem;
}

.pi-pts  { color: var(--accent); font-weight: 700; }
.pi-val  { color: var(--text-muted); }
.pi-sep  { color: var(--border); }

/* Favoriten-Stern */
.pi-fav-btn {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.pi-fav-btn.fav-on { color: var(--gold); }
.pi-fav-btn:hover  { color: var(--gold); }

/* „Spieler hinzufügen" Modal */
.apm-body { padding: 1rem; }

.apm-search-group { position: relative; }

.apm-search-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}

.apm-search-input:focus { border-color: var(--accent); }
.apm-search-input::placeholder { color: var(--text-muted); opacity: 0.6; }

.apm-results {
  margin-top: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.apm-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.apm-row:last-child { border-bottom: none; }
.apm-row:hover:not(.apm-row-dup) { background: var(--surface-2); }
.apm-row.apm-row-dup { opacity: 0.5; cursor: default; }

.apm-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid transparent;
}

.apm-info { flex: 1; }
.apm-pname { font-weight: 600; font-size: 0.9rem; }
.apm-meta { font-size: 0.73rem; color: var(--text-muted); }
.apm-dup-label { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
.apm-add-icon { font-size: 1.3rem; color: var(--accent); font-weight: 700; line-height: 1; }

.apm-manual {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.apm-manual-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.apm-manual-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.apm-manual-fields .form-group { margin: 0; }
.apm-manual-fields select,
.apm-manual-fields input { width: 100%; box-sizing: border-box; }
.apm-manual-fields .btn { width: 100%; margin-top: 0.25rem; }

/* Kader-Bearbeiten-Modal — Stats */
.rem-stats-wrap {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.rem-stats-row {
  display: flex;
  gap: 0.5rem;
  justify-content: space-around;
}

.rem-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.rem-sv {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.rem-sl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Favorit-Button aktiv im Modal */
.btn.rem-fav-on { color: var(--gold); border-color: #8a6e00; }

/* ══ Feature 3: Übersicht ══════════════════════════════════════ */

.ov-season-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.ov-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 60px;
}

.ov-kpi-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.ov-kpi-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ov-kpi-div {
  width: 1px;
  height: 2rem;
  background: var(--border);
  flex-shrink: 0;
}

.ov-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ov-table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.ov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ov-table thead th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.6rem 0.75rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.ov-th-rank  { width: 2.2rem; text-align: center; }
.ov-th-player { text-align: left; }
.ov-th-num   { text-align: right; width: 3rem; }

.ov-row {
  border-bottom: 1px solid var(--border);
}

.ov-row:last-child { border-bottom: none; }

.ov-row:hover { background: var(--surface); }

.ov-row.ov-inactive { opacity: 0.45; }

.ov-td-rank {
  text-align: center;
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ov-td-player { padding: 0.5rem 0.75rem; }

.ov-player-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ov-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 0.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid transparent;
}

.ov-player-info { display: flex; flex-direction: column; gap: 0.2rem; }

.ov-player-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }

.ov-player-sub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ov-presence-bar {
  display: inline-flex;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.ov-presence-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.ov-td-num {
  text-align: right;
  padding: 0.65rem 0.75rem;
  white-space: nowrap;
}

.ov-pts  { font-weight: 700; color: var(--text); }
.ov-avg  { color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   MOBILE OPTIMIERUNGEN — iPhone 16 (390 × 844px)
   ════════════════════════════════════════════════════════════ */

/* ── Global fixes (no media query needed) ── */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Touch-highlight entfernen, Doppeltipp-Zoom verhindern */
.btn, .btn-sm, .btn-icon, .btn-pos, .nav-card,
.picker-row, .picker-tab, .club-chip, .toggle-pill,
.qe-row-main, .apm-row, .league-card, .stt,
.field-player, .field-player-placeholder {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* dvh-Fallback: Overlays mit dynamischer Viewport-Höhe */
.overlay-panel {
  max-height: 88vh;   /* Fallback iOS 15 */
  max-height: 88dvh;  /* Modern iOS 16+ */
}

/* Picker-Modal: feste Höhe – Modal bewegt sich nicht wenn Ergebnisse laden */
#picker-overlay .overlay-panel {
  height: 80vh;
  height: 80dvh;
  max-height: 80vh;
  max-height: 80dvh;
}

.qe-panel {
  max-height: 90vh;   /* Fallback iOS 15 */
  max-height: 90dvh;  /* Modern iOS 16+ */
}

/* ── Responsive ── */
@media (max-width: 480px) {

  /* === LAYOUT ====================================================== */
  main {
    padding: 0.75rem 1rem 2rem;
  }

  .page-header {
    margin-bottom: 1rem;
  }

  /* === BUTTONS — mindestens 44px Tippfläche ======================= */
  .btn {
    min-height: 44px;
    padding: 0.6rem 1rem;
  }

  .btn-sm {
    min-height: 38px;
    padding: 0.45rem 0.8rem;
  }

  .btn-icon {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* Picker-Zeilen */
  .picker-row {
    min-height: 48px;
    padding: 0.75rem 0;
  }

  /* Club-Chips */
  .club-chip {
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Status-Toggles auf dem Spielfeld */
  .stt {
    padding: 3px 6px;
    font-size: 0.65rem;
    min-height: 22px;
  }



  /* === INPUTS — 16px verhindert iOS-Zoom ========================== */
  input, select, textarea,
  .form-group input,
  .form-group select,
  .pm-search-input,
  .apm-search-input,
  .picker-search-bar input,
  .qe-pts-input,
  .sm-input,
  .pts-input,
  .filter-select-sm,
  .filter-select {
    font-size: 16px !important;
    min-height: 44px;
  }

  .qe-pts-input {
    min-height: 40px;
    width: 62px;
  }

  .sm-input { width: 42px; min-height: 38px; }
  .pts-input { min-height: 40px; }

  /* Scroll-Abstand damit Inputs nicht hinter Tastatur verschwinden */
  input:focus, select:focus, textarea:focus {
    scroll-margin-bottom: 12rem;
  }

  /* === NAVIGATION ================================================= */
  .home-hero {
    padding: 1.25rem 0 1.25rem;
  }

  .home-hero h1 {
    font-size: 2rem;
  }

  .home-nav {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .nav-card {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
  }

  .nav-card .icon {
    font-size: 1.6rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .nav-card .label { font-size: 1rem; }

  /* === SPIELFELD — kompakter auf Mobile ========================== */
  .pitch {
    min-height: 440px;
    padding: 20px 2px;
  }

  .pitch-row {
    min-height: 80px;
    gap: 2px;
  }

  .field-player {
    min-width: 42px;
  }

  .fp-name {
    max-width: 42px;
    font-size: 0.6rem;
  }

  /* === OVERLAYS ================================================== */

  /* Bottom-Sheet bleibt Bottom-Sheet, max-height via dvh */
  .overlay-panel {
    max-height: 88vh;   /* Fallback iOS 15 */
    max-height: 88dvh;  /* Modern iOS 16+ */
  }

  /* Picker-Modal auf Mobile: oben anker damit Suchfeld bei Tastatur sichtbar bleibt */
  #picker-overlay {
    align-items: flex-start;
  }
  #picker-overlay .overlay-panel {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  /* Center-Overlays → Bottom-Sheet auf Mobile */
  .overlay.overlay-center {
    align-items: flex-end;
    padding: 0;
  }

  .overlay-panel-center {
    max-width: 100%;
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 92vh;   /* Fallback iOS 15 */
    max-height: 92dvh;  /* Modern iOS 16+ */
    overflow-y: auto;
  }

  /* === QE PANEL ================================================= */
  .qe-panel {
    max-height: 90vh;   /* Fallback iOS 15 */
    max-height: 90dvh;  /* Modern iOS 16+ */
  }

  .qe-row-main {
    padding: 0.65rem 0.9rem;
    gap: 0.45rem;
  }

  .qe-footer {
    padding: 0.85rem 1rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .qe-expanded-body {
    padding: 0.65rem 0.9rem;
  }

  /* === SPIELER-SUCHE — max-height damit Ergebnisse sichtbar == */
  .player-search-dd {
    max-height: 240px;
    overflow-y: auto;
  }

  .apm-results {
    max-height: 38vh;
  }

  /* === SPIELTAG EINTRAGEN ======================================= */
  .matchday-actions {
    flex-direction: column;
  }

  .matchday-actions .btn {
    width: 100%;
  }

  .field-controls {
    gap: 0.5rem;
  }

  /* === STATISTIKEN ============================================== */
  .stats-hero {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .sh-pts { font-size: 1rem; }

  .ov-season-bar {
    gap: 0.3rem;
    padding: 0.85rem 1rem;
  }

  .ov-kpi-val { font-size: 1rem; }

  .ov-controls {
    gap: 0.5rem;
  }

  .ov-controls .filter-select,
  .ov-controls select {
    flex: 1;
    min-width: 0;
  }

  /* === TRAUMELF ================================================= */
  .traumelf-select {
    font-size: 15px;
  }

  .tf-highlight-box {
    padding: 0.85rem 1rem;
  }

  .tfhb-text {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  /* === SAVE-PANELS ============================================== */
  .ss-panel, .sc-panel, .gm-panel, .lc-panel, .peter-panel {
    max-width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .sc-pts-big { font-size: 2.5rem; }
  .ss-pts-big { font-size: 2.4rem; }

  /* === HEADER =================================================== */
  .header-league-name {
    max-width: 130px;
    font-size: 0.8rem;
  }

  /* === TOAST — Safe Area ======================================== */
  .toast {
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  /* === FOOTER — Safe Area ====================================== */
  .app-footer {
    padding: 1.5rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  /* === PLAYER LIST ============================================== */
  .pm-top-bar {
    gap: 0.5rem;
  }

  .player-item {
    padding: 0.75rem 0.9rem;
  }

  /* Section header Filter-Row */
  .player-filter-row {
    gap: 0.35rem;
  }

  /* === LIGA KARTEN ============================================== */
  .leagues-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .leagues-hero {
    padding: 1rem 0 0.75rem;
  }

  .leagues-tagline {
    font-size: 1.05rem;
  }

  .leagues-subtext {
    font-size: 0.8rem;
  }

  /* === FORMULAR-ZEILEN ========================================== */
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

/* ══ MVP Section & Divider ══════════════════════════════════════ */
.pm-mvp-section { margin-top: 0.25rem; }

.pm-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

/* ══ Weitere Stats (details/summary) ════════════════════════════ */
.weitere-stats {
  margin-bottom: 0.75rem;
}

.weitere-stats summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0;
  user-select: none;
}

.weitere-stats summary:hover { color: var(--text); }

/* ══ Toggle Pill ════════════════════════════════════════════════ */
.toggle-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  width: 100%;
}

.toggle-pill.active {
  background: rgba(6,182,212,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.toggle-pill.toggle-pill-danger.active {
  background: rgba(239,68,68,0.15);
  border-color: var(--danger);
  color: var(--danger);
}

/* ══ Stepper ════════════════════════════════════════════════════ */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  width: 100%;
  justify-content: space-between;
}

.stp-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.1s;
}

.stp-btn:hover { background: rgba(79,126,248,0.15); }

.stp-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  min-width: 1.5rem;
  text-align: center;
}

/* ══ MVP Design ═════════════════════════════════════════════════ */
.pm-mvp-banner {
  background: linear-gradient(135deg, #3d2a00, #5c3f00);
  border-bottom: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.55rem 1rem;
  text-shadow: 0 0 8px rgba(245,158,11,0.5);
}

.fp-mvp-bottom {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.fp-mvp-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.fp-mvp-pts {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

.fp-name-mvp { color: var(--gold); font-weight: 700; }

.fp-neg { color: var(--danger); }

/* MVP buttons */
.btn-mvp {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-mvp:hover {
  background: rgba(245,158,11,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-mvp.btn-mvp-active {
  background: var(--gold-bg);
  border-color: var(--gold);
  color: var(--gold);
}

/* ══ Negative Events Section ════════════════════════════════════ */
.neg-events-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.neg-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ══ APM Filter Row ═════════════════════════════════════════════ */
.apm-filter-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-select-sm {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  outline: none;
  cursor: pointer;
}

.filter-select-sm:focus { border-color: var(--accent); }

/* ══ Picker DB Filters ══════════════════════════════════════════ */
.picker-db-filters {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* ══ APM Results scrollable ══════════════════════════════════════ */
.apm-results {
  max-height: 320px;
  overflow-y: auto;
}

/* ══ Info Banner Warn ═══════════════════════════════════════════ */
.info-banner-warn {
  background: rgba(100,100,100,0.12);
  border-color: var(--text-muted);
  color: var(--text-muted);
}

/* ══ Game Mode Modal ════════════════════════════════════════════ */
.gm-panel {
  max-width: 340px;
}

.gm-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gm-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.gm-cards {
  display: flex;
  gap: 0.75rem;
}

.gm-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.75rem;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.gm-card:hover { border-color: var(--accent); }

.gm-card.selected {
  border-color: var(--accent);
  background: rgba(79,126,248,0.1);
}

.gmc-icon { font-size: 1.75rem; }

.gmc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.gmc-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.gm-confirm-btn {
  width: 100%;
}

.gm-confirm-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ══ Liga-Übersicht ═════════════════════════════════════════════ */
.leagues-hero {
  padding: 1.5rem 0 1.25rem;
  text-align: center;
}

.leagues-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.leagues-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Liga-Karte */
.league-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.league-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.league-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.league-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.league-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.league-mode-badge {
  display: inline-block;
  background: rgba(6,182,212,0.15);
  color: var(--accent);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  width: fit-content;
}

.league-info-row {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.league-last-md {
  font-size: 0.78rem;
}

.league-open-btn {
  width: 100%;
  margin-top: auto;
}

/* Leerer Liga-Slot */
.league-card-empty {
  border: 2px dashed var(--border);
  background: transparent;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  cursor: pointer;
  opacity: 0.6;
  transition: border-color 0.15s, background 0.15s, opacity 0.2s ease;
}

.league-card-empty:hover {
  border-color: var(--accent);
  background: rgba(6,182,212,0.04);
  opacity: 1;
}

.league-card-full {
  cursor: default;
}

.league-card-full:hover {
  border-color: var(--border);
  background: transparent;
}

.league-card-plus {
  font-size: 2rem;
  color: var(--text-muted);
  line-height: 1;
}

.league-card-create-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.league-card-full-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Liga-Menü (⋯) ──────────────────────────────────────────── */
.league-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.league-menu-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.12s, color 0.12s;
}

.league-menu-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.league-menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  z-index: 200;
  min-width: 140px;
  overflow: hidden;
  display: none;
}

.league-menu-dropdown.open { display: block; }

.league-menu-dropdown button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}

.league-menu-dropdown button:hover { background: var(--surface); }
.league-menu-dropdown button.lmd-danger { color: var(--danger); }

/* ── Header Liga-Info ────────────────────────────────────────── */
#header-league-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  overflow: hidden;
}

.header-league-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.header-back-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-back-btn:hover { text-decoration: underline; }

/* ── Feature-Footer ──────────────────────────────────────────── */
.leagues-feature-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
  padding-bottom: 1rem;
}

.lff-sep { opacity: 0.4; }

/* ── Liga-Anlegen-Panel ──────────────────────────────────────── */
.lc-panel { max-width: 380px; }

.lc-body {
  padding: 1.25rem;
}

/* ── Bestätigungs-Text ───────────────────────────────────────── */
.confirm-text {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* ── Matchday-Aktionen ───────────────────────────────────────── */
.matchday-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ══ Schnelleingabe Modal ════════════════════════════════════════ */
.qe-panel {
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.qe-list {
  overflow-y: auto;
  flex: 1;
  padding: 0 0 0.5rem;
}

/* Player row (container) */
.qe-row {
  border-bottom: 1px solid var(--border);
}
.qe-row:last-child { border-bottom: none; }

/* Main line: avatar + info + swap + pts + expand */
.qe-row-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
}

.qe-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  font-size: 0.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.qe-player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.qe-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qe-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.qe-swap-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.qe-swap-btn:hover { border-color: var(--accent); color: var(--accent); }

.qe-edit-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.qe-edit-btn:hover { border-color: var(--accent); color: var(--accent); }
.qe-edit-active {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: rgba(245,158,11,0.10);
}

.qe-remove-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--danger);
  opacity: 0.55;
  font-size: 0.7rem;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}
.qe-remove-btn:hover {
  opacity: 1;
  border-color: var(--danger);
  color: var(--danger);
}

.qe-pts-input {
  width: 68px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  text-align: right;
  outline: none;
  flex-shrink: 0;
}
.qe-pts-input:focus { border-color: var(--accent); }
.qe-pts-input:disabled { opacity: 0.35; cursor: default; }

.qe-expand-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.22rem 0.45rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.15s;
}
.qe-expand-btn:hover { border-color: var(--accent); color: var(--accent); }
.qe-expand-btn.expanded { transform: rotate(180deg); }

/* Expanded stats section */
.qe-expanded-body {
  display: none;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
}
.qe-expanded-body.open { display: block; }

.qe-exp-section {
  /* inner wrapper generated by JS */
}

.qe-exp-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.qe-stat-item {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.qe-stat-item label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.qe-status-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.qe-status-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 0.2rem;
}

.qe-mvp-btn {
  width: 100%;
  margin-top: 0.3rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  text-align: center;
}
.qe-mvp-btn:hover { border-color: var(--gold); color: var(--gold); }
.qe-mvp-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(245,158,11,0.08); }

/* Kompakte Kickbase-Stats unter Spielername */
.qe-compact-stats {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Loading-State für QE-Zeile */
.qe-row-loading .qe-pts-input { opacity: 0.4; }
.qe-row-loading .qe-name      { opacity: 0.7; }

/* Auto-MVP Label neben der Krone */
.qe-auto-label {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 3px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* Add player row */
.qe-add-row {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
}
.qe-add-row .btn { width: 100%; }

.qe-footer {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.qe-footer .btn { flex: 1; }

/* ══ Speichern Schritt 1 — Punktecheck ══════════════════════════ */
.sc-panel { max-width: 340px; }

.sc-body {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.sc-pts-big {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.sc-pts-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: -0.2rem;
  margin-bottom: 0.4rem;
}

.sc-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.sc-zero-warning {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,200,0,0.1);
  border: 1px solid rgba(255,200,0,0.3);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--gold);
  text-align: left;
  width: 100%;
}

.sc-kb-mismatch {
  background: rgba(255, 180, 50, 0.12);
  border: 1px solid rgba(255, 180, 50, 0.45);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text);
  text-align: left;
  width: 100%;
}
.sc-kb-mismatch strong { color: var(--gold); }
.sc-kb-mismatch-detail { margin-top: 0.25rem; font-size: 0.78rem; }
.sc-kb-mismatch-hint {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: var(--muted, #9aa0b4);
}
.sc-kb-mismatch-loading {
  font-size: 0.76rem;
  color: var(--muted, #9aa0b4);
  font-style: italic;
}

.sc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.sc-actions .btn { width: 100%; }

/* ══ Speichern Schritt 2 — Zusammenfassung ══════════════════════ */
.ss-panel {
  max-width: 380px;
  overflow: hidden;
}

.ss-platz1-banner {
  background: linear-gradient(135deg, #3d2a00, #5c3f00);
  border-bottom: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.6rem 1rem;
  text-shadow: 0 0 8px rgba(245,158,11,0.4);
}

.ss-body {
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ss-pts-big {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ss-placement {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ss-delta {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: var(--surface-2);
}

.ss-delta-up   { color: var(--success); background: rgba(16,185,129,0.12); }
.ss-delta-down { color: var(--danger); background: rgba(239,68,68,0.12); }

.ss-stats-grid {
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ss-stat-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.ss-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 0.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.ss-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ss-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ss-stat-val {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-mvp-row {
  justify-content: space-between;
}

.ss-mvp-name {
  color: var(--gold);
  font-weight: 700;
}

.ss-season-row {
  width: 100%;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.5;
}

.ss-season-row strong { color: var(--text); }

.ss-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.ss-actions .btn { flex: 1; }

/* ══ Statistiken Hero Banner ═════════════════════════════════════ */
.stats-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .stats-hero { grid-template-columns: repeat(3, 1fr); }
}

.sh-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sh-icon { font-size: 1rem; margin-bottom: 0.1rem; }
.sh-sub  { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.05rem; }

.sh-tile-main {
  background: linear-gradient(140deg, #1a1d2e 0%, #1c2040 100%);
  border-color: var(--accent);
}

.sh-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.sh-tile-main .sh-label { color: var(--accent); }

.sh-name {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-pts {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sh-empty-tile { font-size: 0.75rem; color: var(--text-muted); }

/* ── Stats Tabs ── */
.stats-tabs-nav {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem;
  margin-bottom: 1rem;
  gap: 0.25rem;
}

.stats-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.12s, color 0.12s;
}
.stats-tab-btn.active { background: var(--accent); color: #fff; }
.stats-tab-btn:hover:not(.active) { background: var(--surface-2); color: var(--text); }

/* ── Traumelf ── */
.traumelf-controls { margin-bottom: 0.85rem; }
.traumelf-select { width: 100%; }

/* Formation-Pill — unten links auf dem Spielfeld */
.tf-formation-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--accent);
  pointer-events: none;
}

/* Brand-Wasserzeichen — unten rechts auf dem Spielfeld (Share-Optimierung) */
.tf-watermark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
}

/* Traumelf-Teilen-Button — prominent unter der Ansicht */
.tf-share-btn {
  width: 100%;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.traumelf-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

/* ══ Premium-Spielfeld — NUR Traumelf-Ansicht ══════════════════════
   Überschreibt das grüne Rasen-Spielfeld nur hier; die Eingabe-Maske
   (#page-matchday .pitch) bleibt unverändert grün. */
#traumelf-field-wrap .pitch {
  background: radial-gradient(ellipse at center, #1e293b 0%, #0F172A 70%);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Feines Noise-Pattern für Tiefe (sehr dezent) */
#traumelf-field-wrap .pitch::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Spielfeld-Linien in Cyan statt Weiß */
#traumelf-field-wrap .fm-top-box,
#traumelf-field-wrap .fm-bottom-box,
#traumelf-field-wrap .fm-center-circle {
  border-color: rgba(6, 182, 212, 0.28);
}
#traumelf-field-wrap .fm-top-6yard,
#traumelf-field-wrap .fm-bottom-6yard {
  border-color: rgba(6, 182, 212, 0.2);
}
#traumelf-field-wrap .fm-center-line {
  background: rgba(6, 182, 212, 0.28);
}

/* ── Traumelf player card — Tiered Card-System ── */
.tf-player {
  position: relative;
  cursor: pointer;
}

/* Tier 1 — Standard (Rang 4–11) */
.tf-player .fp-circle {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-sm);
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-size: 1rem;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Tier 2 — Top 3 (Rang 2–3): Amber-Ring + Glow */
.tf-player.tf-tier-2 .fp-circle {
  width: 58px;
  height: 58px;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-md), 0 0 12px rgba(245, 158, 11, 0.25);
}

/* Tier 3 — MVP / Top 1: Cyan-Ring + starker Glow */
.tf-player.tf-tier-3 .fp-circle {
  width: 62px;
  height: 62px;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-md), 0 0 16px rgba(6, 182, 212, 0.4);
}

/* Hover: Glow verstärken + Cyan-Ring als Klickhinweis */
.tf-player:hover .fp-circle            { box-shadow: var(--shadow-md); outline: 2px solid rgba(6,182,212,0.5); outline-offset: 2px; }
.tf-player.tf-tier-2:hover .fp-circle  { box-shadow: var(--shadow-md), 0 0 18px rgba(245, 158, 11, 0.4); outline: 2px solid rgba(6,182,212,0.5); outline-offset: 2px; }
.tf-player.tf-tier-3:hover .fp-circle  { box-shadow: var(--shadow-md), 0 0 24px rgba(6, 182, 212, 0.55); outline: 2px solid rgba(6,182,212,0.7); outline-offset: 2px; }

/* Foto-Vorbereitung: bei .has-photo Initialen ausblenden und Vereinsfarbe neutralisieren.
   !important nötig weil Farben als Inline-Styles gesetzt werden (style="background:…;color:…") */
.tf-player .fp-circle.has-photo {
  color: transparent !important;
  text-shadow: none !important;
  background-color: var(--bg) !important;
}

/* ── Foto-Upload Modal ── */
.tf-photo-panel {
  max-width: 420px;
}
.tf-photo-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 1.25rem 1.25rem;
}
.tf-photo-preview-wrap {
  display: flex;
  justify-content: center;
}
.tf-photo-preview-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent);
}
.tf-photo-privacy {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.5;
}
.tf-photo-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
  user-select: none;
}
.tf-photo-file-label:hover { border-color: var(--accent); color: var(--accent); }
.tf-photo-file-input { display: none; }
.tf-photo-rights-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
}
.tf-photo-rights-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}
.tf-photo-remove-btn {
  color: var(--danger);
  border-color: rgba(239,68,68,0.35);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.tf-photo-remove-btn:hover {
  background: rgba(239,68,68,0.1);
  border-color: var(--danger);
}

/* MVP crown — oben mittig über dem Kreis */
.tf-crown {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 1;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  pointer-events: none;
}

/* Mobile: Tier-Kreise verkleinern, damit 6er-Reihen (z.B. 3-6-1) passen */
@media (max-width: 480px) {
  .tf-player .fp-circle           { width: 46px; height: 46px; font-size: 0.85rem; }
  .tf-player.tf-tier-2 .fp-circle { width: 48px; height: 48px; }
  .tf-player.tf-tier-3 .fp-circle { width: 52px; height: 52px; }
  .tf-crown { font-size: 15px; top: -7px; }
  .tf-player .fp-name { max-width: 48px; font-size: 12px; }
  .tf-main-stat { font-size: 12px; }
  .tf-sub-stat  { font-size: 10px; }
  .tf-stat-chips { gap: 6px; }
  .tf-chip { padding: 6px 9px; font-size: 11px; }
  .tf-chip-lbl { font-size: 10px; }
}

/* Spielername unter dem Kreis */
.tf-player .fp-name {
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-shadow: none;
  max-width: 64px;
  margin-top: 2px;
}

/* Hauptstat (z.B. "2127 Pkt.") — Farbe je Tier */
.tf-main-stat {
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
  text-shadow: none;
}
.tf-player.tf-tier-3 .tf-main-stat { color: var(--accent); }
.tf-player.tf-tier-2 .tf-main-stat { color: var(--gold); }

/* Sekundäre Stat (Ø-Wert etc.) */
.tf-sub-stat {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  text-shadow: none;
  font-variant-numeric: tabular-nums;
}

/* ── Stat-Chip-Leiste — über dem Spielfeld ── */
.tf-stat-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tf-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
}
.tf-chip-icon { font-size: 13px; line-height: 1; }
.tf-chip-val {
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tf-chip-lbl { color: var(--text-muted); font-size: 11px; }

/* ── Highlight Box — unter dem Spielfeld, einheitlich dunkel ── */
.tf-highlight-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);   /* Farbe wird je Auswertung inline gesetzt */
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 1rem;
  color: var(--text);
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  width: 100%;
}
.tfhb-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.tfhb-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}
.tfhb-text strong {
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--accent);
}

/* ── Peter Platzhalter Modal ── */
.peter-panel {
  max-width: 340px;
}
.peter-body {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.peter-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
  text-align: center;
}
.peter-pos-section { margin-bottom: 16px; }
.peter-pos-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: center;
}
.peter-pos-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.btn-peter-pos {
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-peter-pos.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.peter-opt-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
  gap: 0.2rem;
  transition: border-color 0.12s, background 0.12s;
}
.peter-opt-btn:hover { border-color: var(--accent); background: rgba(79,126,248,0.07); }
.peter-opt-title { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.peter-opt-sub   { font-size: 0.75rem; color: var(--text-muted); }

/* ── Draft Banner ── */
.info-banner-draft {
  background: rgba(79,126,248,0.12);
  border-color: var(--accent);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

/* ── Peter avatar in field/QE ── */
.peter-avatar {
  background: #1a1a1a !important;
  border-color: #444 !important;
  color: #ccc !important;
}

/* ══════════════════════════════════════════════════════════════════
   KICKBASE INTEGRATION
══════════════════════════════════════════════════════════════════ */

/* Connect-Card auf der Startseite */
.kb-connect-card {
  cursor: pointer;
  background: linear-gradient(135deg, var(--bg) 60%, var(--surface));
  border: 1px solid var(--border);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  color: var(--text);
  width: 100%;
  text-align: left;
}
.kb-connect-card .icon { font-size: 1.4rem; flex-shrink: 0; }
.kb-connect-card .label { font-weight: 700; font-size: 0.95rem; }
.kb-connect-card .sublabel { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.kb-connect-card.kb-connected { border-color: var(--accent); background: linear-gradient(135deg, var(--bg) 60%, var(--bg)); }
.kb-connect-card .kb-disconnect-btn { margin-left: auto; flex-shrink: 0; }

/* Matchday-Banner */
.kb-matchday-banner {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  color: var(--accent);
  font-size: 0.83rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  align-items: center;
}

/* Login-Panel */
.kb-login-panel { max-width: 380px; }
.kb-league-panel { max-width: 380px; }
.kb-link-panel { max-width: 380px; }

.kb-login-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.kb-login-method-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.4;
}

.kb-disclaimer {
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.18);
  overflow: hidden;
}

.kb-disclaimer-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.kb-disclaimer-summary::-webkit-details-marker { display: none; }

.kb-disclaimer-summary::after {
  content: '›';
  margin-left: auto;
  font-size: 1rem;
  transition: transform 0.2s;
  color: var(--accent);
}

.kb-disclaimer[open] .kb-disclaimer-summary::after {
  transform: rotate(90deg);
}

.kb-disclaimer-icon { font-size: 0.9rem; }

.kb-disclaimer-body {
  padding: 0 0.75rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.kb-disclaimer-body p {
  margin: 0 0 0.5rem;
}

.kb-disclaimer-body p:last-child { margin-bottom: 0; }

/* Connect-Card im verbundenen Zustand */
.kb-connect-card.kb-connected {
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
}
.kb-card-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.kb-card-row .kb-card-text { flex: 1; min-width: 0; }
.kb-card-row .kb-disconnect-btn { flex-shrink: 0; }

.kb-error-msg {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1rem;
  margin-bottom: 0.5rem;
}

/* Liga-Liste */
.kb-league-list { display: flex; flex-direction: column; gap: 0.5rem; }
.kb-league-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  width: 100%;
  font-size: 0.9rem;
}
.kb-league-item:hover { border-color: var(--accent); background: var(--surface-2); }
.kb-league-icon { font-size: 1.1rem; }
.kb-league-name { font-weight: 600; }

/* Deaktivierte Liga-Items (6er-Modus) */
.kb-league-item-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.kb-league-item-disabled:hover { border-color: var(--border); background: transparent; }
.kb-league-mode-hint {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Test-Modus Button im Login-Modal */
.kb-test-mode-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s, border-color 0.15s;
}
.kb-test-mode-btn:hover { color: var(--text-muted); border-color: var(--text-faint); }

/* Stats-Tabs in Spieler-Modal */
.kb-tabs-bar {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.kb-tab {
  flex: 1;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.kb-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.kb-stats-content { padding: 0.25rem 0 0.75rem; min-height: 80px; }
.kb-stats-loading { color: var(--text-muted); font-size: 0.83rem; text-align: center; padding: 1rem 0; }
.kb-stats-empty   { color: var(--text-muted); font-size: 0.83rem; text-align: center; padding: 0.75rem 0; }

/* "Für dich" Tab */
.kb-pts-big   { font-size: 2rem; font-weight: 900; color: var(--accent); text-align: center; }
.kb-pts-label { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-bottom: 0.5rem; }
.kb-ev-list   { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin-top: 0.5rem; }
.kb-ev-row    { display: flex; align-items: center; gap: 0.25rem; font-size: 0.78rem; }
.kb-ev-min    { color: var(--text-muted); }
.kb-ev-pts.pos { color: var(--success); font-weight: 700; }
.kb-ev-pts.neg { color: var(--danger); font-weight: 700; }

/* "Insgesamt" Tab */
.kb-overall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.kb-overall-item { display: flex; flex-direction: column; gap: 0.2rem; }
.kb-overall-val  { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.kb-overall-lbl  { font-size: 0.7rem; color: var(--text-muted); }
.kb-overall-total { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 0.25rem; }

/* Spieler-Verknüpfung */
.kb-link-results  { display: flex; flex-direction: column; gap: 0.4rem; max-height: 260px; overflow-y: auto; }
.kb-link-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  width: 100%;
  font-size: 0.88rem;
}
.kb-link-result:hover { border-color: var(--accent); }
.kb-link-name { font-weight: 600; flex: 1; }
.kb-link-team { font-size: 0.75rem; color: var(--text-muted); }



/* Spieler-Karte: Ladeanimation */
@keyframes fp-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.fp-loading { opacity: 0.75; }
.fp-loading-dots { animation: fp-pulse 1.2s ease-in-out infinite; }

/* ── API-Fehler-Banner ── */
.kb-api-banner {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(239, 68, 68, 0.12);
  color: var(--text);
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.kb-api-banner-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.25rem;
}
.kb-api-banner-reconnect {
  background: var(--danger);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.kb-api-banner-reconnect:hover { background: #fff; }
.kb-api-banner-reconnect:disabled { opacity: 0.6; cursor: wait; }

/* ── Kickbase-Login: Anmeldedaten merken ── */
.kb-remember-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.7rem;
  margin-bottom: 1rem;
  background: var(--surface-elev, rgba(255,255,255,0.04));
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.35;
}
.kb-remember-row input[type=checkbox] {
  margin-top: 0.15rem;
  cursor: pointer;
  flex-shrink: 0;
}
.kb-remember-text small {
  display: block;
  color: var(--muted, #9aa0b4);
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

/* ── Override-Modal ── */
.ov-panel { max-width: 480px; }
.ov-player-info {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.85rem 0;
  font-size: 1.02rem;
}
.ov-meta-text { color: var(--muted, #9aa0b4); font-size: 0.85rem; font-weight: 400; }
.ov-mismatch {
  background: rgba(255, 180, 50, 0.12);
  border: 1px solid rgba(255, 180, 50, 0.45);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.86rem;
  line-height: 1.4;
}
.ov-mismatch-detail { margin-top: 0.25rem; font-weight: 400; color: var(--text); font-size: 0.82rem; }
.ov-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 0.75rem;
}
.ov-form-grid .form-group { margin-bottom: 0; }
.ov-form-grid label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--muted, #9aa0b4);
}
.ov-form-grid input, .ov-form-grid select {
  width: 100%;
  padding: 0.45rem 0.55rem;
  font-size: 0.94rem;
}
.ov-hint {
  margin: 0.9rem 0 0.6rem 0;
  font-size: 0.78rem;
  color: var(--muted, #9aa0b4);
  line-height: 1.4;
}
.ov-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}
.ov-actions .btn { flex: 1 1 auto; min-width: 120px; }

/* Sichtbarkeitskontrolle wird per JS gesteuert (.ov-mode-gk, .ov-mode-out)
   Default (Outfield, nicht 'out'): GK-Felder verborgen, Outfield-Felder sichtbar. */
.ov-field-gk                        { display: none; }
.ov-mode-gk      .ov-field-gk       { display: block; }
.ov-mode-gk      .ov-field-outfield { display: none; }
.ov-mode-out     .ov-field-outfield,
.ov-mode-out     .ov-field-gk       { display: none; }

/* ── Mismatch-Banner in Stats-Tab ── */
.kb-mismatch-banner {
  background: rgba(255, 180, 50, 0.10);
  border: 1px solid rgba(255, 180, 50, 0.35);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  margin: 0.6rem 0;
  font-size: 0.82rem;
  line-height: 1.35;
}
.kb-mismatch-banner strong { color: var(--gold); }
.kb-mismatch-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}
.kb-mismatch-actions .btn { font-size: 0.78rem; padding: 0.35rem 0.6rem; }

/* Manual override label in QE compact stats */
.qe-compact-stats.qe-manual-label { color: var(--warn); }

/* Inline link button (no border/bg) */
.btn-inline-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--accent);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-inline-link:hover { opacity: 0.75; }

/* ── Kickbase Read-Only Felder ── */
.kb-data-hint {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.kb-ro-value {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  min-width: 2rem;
  text-align: center;
}

/* Punkte-Input wenn via Kickbase geladen */
.qe-pts-input.qe-pts-kb {
  border-color: var(--accent);
  opacity: 1;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--text);
}

/* ── Daten sichern ── */
.data-backup-section {
  margin: 1.5rem 1rem 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.data-backup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.data-backup-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}
.data-backup-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-disabled-look {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--card-bg) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
}
.btn-disabled-look:hover { transform: none; }

.required-star {
  color: var(--danger);
  font-size: 0.9rem;
  margin-left: 2px;
}

.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.25) !important;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

.sc-zero-names {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0;
}
.sc-zero-chip {
  padding: 3px 9px; border-radius: 12px;
  background: var(--gold-bg); color: var(--gold);
  font-size: 0.82rem; font-weight: 600;
}
.sc-zero-hint {
  display: block; font-size: 0.78rem;
  color: var(--text-muted); margin-top: 5px;
}
.sc-mvp-section {
  margin-top: 16px; padding: 14px;
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  background: rgba(245,158,11,0.05);
}
.sc-mvp-question {
  font-weight: 600; margin-bottom: 10px; font-size: 0.95rem;
}
.sc-mvp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-mvp-no { opacity: 0.6; }
.sc-mvp-label {
  font-size: 0.82rem; color: var(--text-muted);
  margin: 10px 0 8px;
}
.sc-mvp-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-mvp-player-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  background: var(--card-bg); border: 1px solid var(--border);
  cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease,
                               opacity 0.2s ease, box-shadow 0.2s ease;
}
.sc-mvp-player-btn:hover {
  border-color: var(--gold);
  background: rgba(245,158,11,0.08);
}
.sc-mvp-av { width: 28px; height: 28px; font-size: 0.7rem; }
.sc-mvp-pname { font-size: 0.85rem; font-weight: 600; }
.sc-mvp-pts { font-size: 0.75rem; color: var(--text-muted); margin-left: 2px; }

.qe-panel {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  height: 92vh;
}
.qe-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
}
.qe-footer {
  flex: 0 0 auto;
  padding: 12px 16px;
  background: var(--card-bg, #1a1d2e);
  border-top: 1px solid var(--border, rgba(255,255,255,0.1));
  box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
  display: flex;
  gap: 8px;
}
.qe-footer .btn { flex: 1; }
.qe-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.qe-live-pts {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.qe-mvp-toggle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.25);
  background: transparent;
  cursor: pointer;
  opacity: 0.35;
  transition: transform 0.2s ease, background-color 0.2s ease,
              opacity 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qe-mvp-toggle:hover { opacity: 0.75; transform: scale(1.1); }
.qe-mvp-active {
  opacity: 1;
  background: var(--gold-bg);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(245,158,11,0.35);
}

.ss-share-section {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.ss-share-btn {
  width: 100%;
  font-size: 0.9rem;
  border-color: rgba(6,182,212,0.3) !important;
}
.ss-share-btn:hover {
  background: rgba(6,182,212,0.08) !important;
}

.stats-bar { transition: opacity 0.3s ease; }

.onboarding-card {
  margin: 0 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.05);
  overflow: hidden;
}

.onboarding-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: transparent; border: none;
  cursor: pointer; text-align: left;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text);
  transition: background 0.15s;
}
.onboarding-toggle:hover { background: rgba(6, 182, 212, 0.08); }

.onboarding-toggle-icon {
  font-size: 1rem; color: var(--accent); width: 16px;
}

.onboarding-badge {
  margin-left: auto;
  font-size: 0.68rem; font-weight: 800;
  padding: 2px 7px; border-radius: 8px;
  background: rgba(6, 182, 212, 0.2); color: var(--accent);
  letter-spacing: 0.05em;
}

.onboarding-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 16px;
}
.onboarding-body.open {
  max-height: 1200px;
  padding: 4px 16px 16px;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 480px) {
  .onboarding-grid { grid-template-columns: 1fr; }
}

.ob-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.ob-icon {
  font-size: 1.3rem; flex-shrink: 0; margin-top: 1px;
}
.ob-text {
  display: flex; flex-direction: column; gap: 3px;
}
.ob-text strong {
  font-size: 0.88rem; color: var(--text);
}
.ob-text span {
  font-size: 0.78rem; color: var(--text-muted);
  line-height: 1.4;
}

.onboarding-close-btn {
  width: 100%;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 4px;
}
.onboarding-close-btn:hover { opacity: 1; }

/* ── Cookie-Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cookie-text strong {
  font-size: 0.88rem;
  color: var(--text);
}
.cookie-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.cookie-text a {
  color: var(--accent);
  text-decoration: none;
}
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ══ Share Modal ══════════════════════════════════════════════════ */
.share-modal-panel {
  max-width: 480px;
}

.share-modal-body {
  padding: 1rem 1.25rem 1.25rem;
}

.share-preview-wrap {
  background: #0F172A;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  line-height: 0;
}

.share-preview-img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.share-comment-group {
  margin-bottom: 12px;
}

.share-comment {
  width: 100%;
  resize: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.share-comment:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.share-comment-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.share-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.share-link-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 8px 12px;
  font-size: 0.85rem;
  min-width: 0;
  cursor: default;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.share-btn-action {
  font-size: 0.8rem;
  padding: 10px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: center;
}

.share-cancel-btn {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .share-buttons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ══ Matchday Share View (off-screen render, nur für Screenshot) ══ */

/* Header-Leiste */
.mdshare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mdshare-day {
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.mdshare-pts {
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Spielfeld — dunkel, wie Traumelf (nur innerhalb des Share-Containers) */
#mdshare-container .pitch {
  background: radial-gradient(ellipse at center, #1e293b 0%, #0F172A 70%);
  border: none;
  border-radius: 0;
  min-height: 0;
  padding: 20px 6px;
  margin-bottom: 0;
}

#mdshare-container .fm-top-box,
#mdshare-container .fm-bottom-box,
#mdshare-container .fm-center-circle {
  border-color: rgba(6, 182, 212, 0.28);
}
#mdshare-container .fm-top-6yard,
#mdshare-container .fm-bottom-6yard {
  border-color: rgba(6, 182, 212, 0.20);
}
#mdshare-container .fm-center-line {
  background: rgba(6, 182, 212, 0.28);
}

#mdshare-container .pitch-row {
  min-height: 0;
  padding: 2px;
  gap: 4px;
  align-items: center;
}

/* Spielerkarte */
.mds-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  max-width: 68px;
}

.mds-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  line-height: 1;
}

.mds-name {
  font-size: 9px;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62px;
  line-height: 1.2;
}

.mds-pts-row {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.mds-icon {
  font-size: 9px;
  line-height: 1;
}

.mds-avg {
  font-size: 8px;
  color: var(--text-muted);
  line-height: 1;
}

/* Stats-Chips-Leiste — überschreibt tf-stat-chips margin */
.mdshare-chips {
  margin-bottom: 0;
  padding: 10px 16px;
  background: #0F172A;
  border-top: 1px solid var(--border);
}

/* ══ Onboarding V2 — Interaktiver Einführungs-Flow ══════════════ */
.ob2-overlay {
  z-index: 200;  /* Über Standard-Modals */
}

.ob2-panel {
  max-width: 440px;
}

.ob2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ob2-step-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ob2-skip-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s ease;
  font-family: inherit;
}
.ob2-skip-btn:hover {
  color: var(--text);
}

.ob2-content {
  padding: 28px 24px 12px;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ob2-content.ob2-fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.ob2-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 4px;
}

.ob2-headline {
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ob2-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 340px;
}

.ob2-tip {
  background: rgba(6, 182, 212, 0.10);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.ob2-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 8px;
}

.ob2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
}
.ob2-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}

.ob2-actions {
  display: flex;
  gap: 8px;
  padding: 8px 16px 20px;
}

.ob2-btn-show {
  flex: 1;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ob2-btn-show:hover:not(:disabled) {
  background: var(--border);
  transform: translateY(-1px);
}
.ob2-btn-show:active:not(:disabled) {
  transform: scale(0.98);
}
.ob2-btn-show:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ob2-btn-next {
  flex: 1;
  padding: 10px 12px;
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ob2-btn-next:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.ob2-btn-next:active {
  transform: scale(0.98);
}

.ob2-btn-full {
  flex: none;
  width: 100%;
}

/* Anklickbarer Tipp-Chip (z.B. Link zu kickbase.com) */
.ob2-tip.ob2-tip-link {
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.ob2-tip.ob2-tip-link:hover {
  opacity: 0.8;
}

/* ── Tour fortsetzen Mini-Button ── */
/* z-index 99 bewusst gewählt: liegt UNTER normalen Modals (z-index 100),
   dadurch wird er von offenen Modals abgedeckt → kein Konflikt mit
   Kickbase-Login oder Liga-Dialog. Sobald der Nutzer das Modal schließt,
   wird der Mini-Button wieder sichtbar. */
.ob2-resume-btn {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(6, 182, 212, 0.12);
  z-index: 99;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  user-select: none;
}
.ob2-resume-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
