
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    /* Akzentfarbe – früher Grün, jetzt Cyan #00ccff */
    --green: #00ccff;            /* Hauptakzent */
    --green-dark: #66dbff;       /* helles Cyan: Text auf dunklen Chips / Button-Hover */
    --green-light: rgba(0,204,255,0.13);  /* dezenter Akzent-Hintergrund */
    --green-mid: #178fb5;        /* mittleres Cyan: Rahmen + gefüllter Hover */
    --on-accent: #06222c;        /* dunkle Schrift/Icons auf der hellen Akzentfläche */
    /* Dark-Mode-Grundflächen */
    --bg: #0b0f14;
    --surface: #151b24;
    --surface-secondary: #212938;
    --border: rgba(255,255,255,0.09);
    --border-strong: rgba(255,255,255,0.16);
    --text: #e8eef5;
    --text-muted: #9aa6b4;
    --text-faint: #69727f;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 4px rgba(0,0,0,0.40), 0 8px 24px rgba(0,0,0,0.34);
  }

  body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
  }
  /* Layout */
  .app { display: flex; min-height: 100vh; }

  /* Sidebar */
  .sidebar {
    width: 220px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 10;
  }

  .sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo-icon {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    color: var(--on-accent);
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
  }
  .logo-icon img {  
	width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
	object-fit: cover;
	display: block;
    border: none;
    box-shadow: none;
    outline: none; }

  .logo-text { font-size: 15px; font-weight: 600; color: var(--text); }
  .logo-sub { font-size: 11px; color: var(--text-muted); }

  .sidebar-nav { padding: 12px 10px; flex: 1; }

  .nav-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    padding: 0 10px;
    margin: 16px 0 6px;
  }
  .nav-label:first-child { margin-top: 0; }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.12s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    margin-bottom: 2px;
  }
  .nav-item i { font-size: 16px; }
  .nav-item:hover { background: var(--surface-secondary); color: var(--text); }
  .nav-item.active { background: var(--green-light); color: var(--green-dark); }
  .nav-item.active i { color: var(--green); }

  .sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
  }
  .status-dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
  }
  .status-text { font-size: 12px; color: var(--text-muted); }

  /* Main content */
  .main {
    margin-left: 220px;
    flex: 1;
    padding: 28px 32px;
    max-width: calc(100vw - 220px);
  }

  .page-header {
    margin-bottom: 24px;
  }
  .page-title { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
  .page-sub { font-size: 13px; color: var(--text-muted); }

  /* Section visibility */
  .section { display: none; }
  .section.active { display: block; }

  /* Stats row */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow);
  }
  .stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 5px;
  }
  .stat-label i { font-size: 13px; }
  .stat-val { font-size: 26px; font-weight: 600; color: var(--text); }
  .stat-badge {
    display: inline-block;
    font-size: 10px;
    background: var(--green-light);
    color: var(--green-dark);
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 500;
    margin-left: 4px;
    vertical-align: middle;
  }

  /* Quick command grid */
  .section-label {
    display: flex; align-items: center; gap: 9px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 4px 0 14px;
  }
  .section-label::before{
    content:''; width:4px; height:15px; border-radius:2px;
    background:linear-gradient(180deg, var(--green), var(--green-mid));
  }

  .cmd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
  }

  .cmd-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.13s;
    box-shadow: var(--shadow);
  }
  .cmd-card:hover {
    border-color: var(--green-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  }
  .cmd-card.active {
    border-color: var(--green);
    background: var(--green-light);
  }

  .cmd-icon {
    width: 42px; height: 42px;
    background: linear-gradient(150deg, rgba(0,204,255,.2), rgba(0,204,255,.06));
    border: 1px solid rgba(0,204,255,.25);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
    font-size: 21px;
    margin-bottom: 12px;
    transition: transform .13s;
  }
  .cmd-card:hover .cmd-icon{ transform: scale(1.08) rotate(-3deg); }
  .cmd-card.active .cmd-icon { background: var(--surface); }
  .cmd-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .cmd-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.45; }

  /* Form panel */
  .form-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow);
    margin-top: 4px;
  }
  .form-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .form-head-icon {
    width: 36px; height: 36px;
    background: var(--green-light);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--green-dark);
    font-size: 18px;
  }
  .form-title-text { font-size: 15px; font-weight: 600; color: var(--text); }
  .form-subtitle { font-size: 12px; color: var(--text-muted); }

  .field { margin-bottom: 14px; }
  .field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
  }
  .field select,
  .field input[type="text"],
  .field input[type="number"],
  .field input[type="password"],
  .field input[type="email"],
  .field input[type="search"],
  .field input[type="tel"],
  .field input[type="url"],
  .field textarea {
    width: 100%;
    padding: 8px 11px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.12s;
    appearance: none;
  }
  .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
  }
  .field select:focus,
  .field input[type="text"]:focus,
  .field input[type="number"]:focus,
  .field input[type="password"]:focus,
  .field input[type="email"]:focus,
  .field input[type="search"]:focus,
  .field input[type="tel"]:focus,
  .field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.45);
    background: var(--surface-secondary);
  }
  .field textarea { resize: vertical; min-height: 90px; }

  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .field-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

  .fields-separator {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    margin: 18px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  .submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: var(--green);
    color: var(--on-accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.13s, transform 0.1s;
  }
  .submit-btn:hover { background: var(--green-dark); }
  .submit-btn:active { transform: scale(0.98); }
  .submit-btn i { font-size: 15px; }

  /* Help section */
  .help-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .help-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    padding: 11px 18px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    transition: background 0.1s;
  }
  .help-row:last-child { border-bottom: none; }
  .help-row:hover { background: var(--surface-secondary); }
  .help-row-head {
    background: var(--surface-secondary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    padding: 9px 18px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
  }
  .help-cmd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--green-dark);
    background: var(--green-light);
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 500;
  }
  .help-txt { font-size: 13px; color: var(--text-muted); }

  /* Toast */
  .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #222b36;
    color: #f0f4f8;
    padding: 11px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 9px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 320px;
    animation: slideIn 0.2s ease;
  }
  .toast.show { display: flex; }
  .toast i { color: var(--green-mid); font-size: 16px; }
  @keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Mobile */
  /* ===== Mobile-Topbar & Schubladen-Menü (Basis) ===== */
  .mobile-topbar {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; height: 54px; z-index: 30;
    background: var(--surface); border-bottom: 1px solid var(--border);
    align-items: center; gap: 10px; padding: 0 12px;
  }
  .hamburger {
    background: none; border: none; color: var(--text);
    font-size: 25px; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 9px; cursor: pointer; flex-shrink: 0;
  }
  .hamburger:hover { background: var(--surface-secondary); }
  .mobile-title { font-size: 15px; font-weight: 600; color: var(--text); }
  .menu-backdrop { display: none; }

  @media (max-width: 768px) {
    .mobile-topbar { display: flex; }
    .menu-backdrop {
      display: block; position: fixed; top:0; right:0; bottom:0; left:0;
      background: rgba(0,0,0,0.55); z-index: 35;
      opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease;
    }
    .app.menu-open .menu-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }

    .app { flex-direction: column; }
    .sidebar {
      width: 280px; max-width: 88vw; height: auto;
      position: fixed; top: 0; left: 0; bottom: 0;
      flex-direction: column; flex-wrap: nowrap;
      transform: translateX(-100%); transition: transform .25s ease;
      z-index: 40; box-shadow: 0 0 44px rgba(0,0,0,0.5); overflow-y: auto;
    }
    .app.menu-open .sidebar { transform: translateX(0); }
    .sidebar-nav { display: block; flex: 1; padding: 12px 10px; width: auto; }
    .nav-label { display: block; }
    /* Größere Tap-Targets für Touch */
    .nav-item { padding: 12px 14px; font-size: 14px; margin-bottom: 4px; min-height: 44px; }
    .nav-item i { font-size: 18px; }
    .sidebar-footer { display: block; }

    /* Hauptbereich: kein seitlicher Margin, oben Platz für Topbar */
    .main { margin-left: 0; max-width: 100%; padding: 14px 14px 24px; padding-top: 68px; }

    /* Header */
    .page-title { font-size: 18px; }
    .page-header { margin-bottom: 16px; }

    /* Stats: 2-spaltig */
    .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    .stat-card { padding: 13px 14px; }
    .stat-val { font-size: 22px; }

    /* Befehlskarten: 2 pro Zeile, kompakter */
    .cmd-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      margin-bottom: 16px;
    }
    .cmd-card { padding: 13px 12px; }
    .cmd-icon { width: 30px; height: 30px; font-size: 15px; margin-bottom: 8px; }
    .cmd-name { font-size: 12px; }
    .cmd-desc { font-size: 11px; }

    /* Formular */
    .form-panel { padding: 16px 14px; }
    .field-row, .field-row3 { grid-template-columns: 1fr; }
    /* Felder touch-freundlich */
    .field select,
    .field input[type="text"],
    .field input[type="number"],
    .field input[type="password"],
    .field input[type="email"],
    .field input[type="search"],
    .field input[type="tel"],
    .field textarea {
      padding: 11px 12px;
      font-size: 16px; /* verhindert iOS-Zoom beim Fokussieren */
      border-radius: 8px;
    }
    .submit-btn { padding: 13px 16px; font-size: 14px; min-height: 48px; margin-top: 16px; }

    /* Hilfe-Tabelle: schmalere erste Spalte */
    .help-row, .help-row-head { grid-template-columns: 120px 1fr; padding: 10px 12px; }
    .help-cmd { font-size: 11px; }
    .help-txt { font-size: 12px; }

    /* Ressourcen-Leiste */
    .res-bar { flex-wrap: wrap; padding: 12px 14px; gap: 10px; margin-bottom: 16px; }
    .res-btn { width: 100%; justify-content: center; min-height: 44px; }
    .res-text { font-size: 12.5px; }

    /* Ergebnis-Grid: 1-spaltig auf Mobil */
    .result-grid { grid-template-columns: 1fr; gap: 12px; }
    .result-card { padding: 12px; }
    /* Buttons im Ergebnis: volle Breite */
    .card-btns { flex-direction: column; gap: 8px; }
    .card-btns .dl-btn,
    .card-btns .ig-btn { flex: unset; width: 100%; min-height: 44px; }
    .dl-all-btn { min-height: 48px; font-size: 14px; }

    /* Toast am unteren Rand besser positioniert */
    .toast { bottom: 16px; right: 12px; left: 12px; max-width: unset; font-size: 13px; }

    /* Login-Karte: mehr Padding oben/unten für kleine Bildschirme */
    .login-card { padding: 26px 20px; }
    .login-title { font-size: 15px; }
    .login-input { font-size: 16px; padding: 13px; }
    .login-btn { min-height: 48px; font-size: 15px; }
  }

  /* Sehr schmale Geräte (≤ 400px): Statistiken einspaltig */
  @media (max-width: 400px) {
    .stats-row { grid-template-columns: 1fr; }
    .cmd-grid { grid-template-columns: 1fr; }
    .main { padding: 12px 10px 20px; padding-top: 66px; }
    .help-row, .help-row-head { grid-template-columns: 1fr; gap: 4px; }
    .help-cmd { display: inline-block; margin-bottom: 2px; }
  }

  /* ===== Ressourcen-Leiste ===== */
  .res-bar {
    display:flex; align-items:center; gap:14px;
    background: var(--surface);
    border:1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding:14px 18px;
    margin-bottom:22px;
    box-shadow: var(--shadow);
  }
  .res-bar.loaded { border-color: var(--green-mid); background: var(--green-light); }
  .res-bar.server.loaded { border-color: var(--green-mid); background: var(--green-light); }
  .res-bar.error { border-color: #e5484d; background: rgba(229,72,77,0.12); }
  .res-bar.error .res-bar-icon { background: var(--surface); color:#ff6b6e; }
  .res-text code { background: rgba(255,255,255,0.09); padding:1px 5px; border-radius:5px; font-size:12px; }
  .res-bar.pulse { animation: resPulse 0.8s ease 2; }
  @keyframes resPulse { 50% { box-shadow:0 0 0 4px rgba(29,158,117,0.25); border-color:var(--green); } }
  .res-bar-icon {
    width:38px; height:38px; flex-shrink:0;
    background: var(--green-light); color: var(--green-dark);
    border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px;
  }
  .res-bar.loaded .res-bar-icon { background: var(--surface); }
  .res-text { flex:1; font-size:13px; color: var(--text-muted); line-height:1.45; }
  .res-text strong { color: var(--text); }
  .res-btn {
    display:inline-flex; align-items:center; gap:7px;
    background: var(--green); color:var(--on-accent); border:none;
    padding:9px 15px; border-radius: var(--radius);
    font-size:13px; font-weight:600; font-family:'Inter',sans-serif; cursor:pointer;
    transition: background .13s; white-space:nowrap;
  }
  .res-btn:hover { background: var(--green-dark); }
  .res-btn input { display:none; }

  .discord-note {
    font-size:12px; color: var(--text-muted); background: var(--surface-secondary);
    border-radius: var(--radius); padding:9px 12px; margin-top:14px;
    display:flex; align-items:center; gap:7px;
  }
  .discord-note i { color: var(--green); font-size:15px; }

  /* ===== Ergebnis-Bereich ===== */
  #result-panel { margin-top:20px; }
  .result-head {
    display:flex; align-items:center; gap:9px;
    font-size:15px; font-weight:600; color: var(--text); margin-bottom:14px;
  }
  .result-head i { color: var(--green); font-size:19px; }
  .result-warn, .result-error {
    font-size:12.5px; line-height:1.55; border-radius: var(--radius);
    padding:11px 14px; margin-bottom:14px; display:flex; gap:8px; align-items:flex-start;
  }
  .result-warn { background: rgba(240,180,40,0.12); color:#e9c46a; border:1px solid rgba(240,180,40,0.30); }
  .result-error { background: rgba(229,72,77,0.12); color:#ff8a8d; border:1px solid rgba(229,72,77,0.35); }
  .result-warn i, .result-error i { margin-top:1px; }

  .result-grid {
    display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap:16px;
  }
  .result-card {
    background: var(--surface); border:1px solid var(--border);
    border-radius: var(--radius-lg); padding:14px; box-shadow: var(--shadow);
    display:flex; flex-direction:column; gap:10px;
  }
  .result-cap {
    font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.05em;
    color: var(--text-muted);
  }
  .result-canvas {
    width:100%; height:auto; border-radius:8px; border:1px solid var(--border);
    background: rgba(255,255,255,0.04); display:block;
  }
  .dl-btn, .dl-all-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:7px;
    border:none; border-radius: var(--radius); cursor:pointer;
    font-family:'Inter',sans-serif; font-weight:600; transition: background .13s;
  }
  .dl-btn {
    background: var(--green-light); color: var(--green-dark);
    padding:8px 12px; font-size:12.5px;
  }
  .dl-btn:hover { background: var(--green-mid); color:#fff; }
  .dl-all-btn {
    background: var(--green); color:var(--on-accent); padding:10px 16px; font-size:13px; margin-top:16px; width:100%;
  }
  .dl-all-btn:hover { background: var(--green-dark); }

  /* Teilen-Knopf + Format-Label */
  .card-btns { display:flex; gap:8px; flex-wrap:wrap; }
  .card-btns .dl-btn { flex:1; }
  .ig-btn {
    flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px;
    border:none; border-radius: var(--radius); cursor:pointer; color:#fff;
    font-family:'Inter',sans-serif; font-weight:600; font-size:12.5px; padding:8px 12px;
    background: linear-gradient(95deg,#feda75 0%,#fa7e1e 25%,#d62976 55%,#962fbf 80%,#4f5bd5 100%);
    transition: filter .13s, transform .05s;
  }
  .ig-btn:hover { filter:brightness(1.07); }
  .ig-btn:active { transform:scale(.985); }
  .fmt-badge {
    align-self:flex-start; display:inline-flex; align-items:center; gap:5px;
    font-size:11px; font-weight:600; padding:3px 9px; border-radius:999px;
    border:1px solid var(--border);
  }
  .fmt-badge i { font-size:13px; }
  .fmt-story { color:#c79bff; background: rgba(150,47,191,0.18); border-color: rgba(150,47,191,0.40); }
  .fmt-post  { color: var(--green-dark); background: var(--green-light); border-color: var(--green-mid); }

  .spin { display:inline-block; animation: spin 0.9s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ===== Passwort-Sperre ===== */
  #login-overlay {
    position: fixed; top:0; right:0; bottom:0; left:0; z-index: 9999;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(0,204,255,0.10), transparent 60%), var(--bg);
    display: flex; align-items: center; justify-content: center; padding: 20px;
  }
  #login-overlay.hidden { display: none; }
  .login-card {
    width: 100%; max-width: 360px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 30px 26px; text-align: center;
  }
.login-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
	border: 1px solid var(--green);
    background: var(--surface-secondary);
}

.login-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
  .login-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
  .login-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
  .login-input {
    width: 100%; padding: 11px 13px; font-size: 16px; font-family: 'Inter', sans-serif;
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: var(--bg); color: var(--text); outline: none; text-align: center;
    transition: border-color .12s, box-shadow .12s;
  }
  .login-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,0,0,0.45); }
  .login-error {
    display: none; color: #ff8a8d; font-size: 12.5px; font-weight: 600; margin-top: 10px;
  }
  .login-error.show { display: block; }
  .login-btn {
    width: 100%; margin-top: 18px; padding: 11px 16px;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--green); color: var(--on-accent); border: none; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer;
    transition: filter .12s, transform .05s;
  }
  .login-btn:hover { filter: brightness(1.06); }
  .login-btn:active { transform: scale(.985); }
  /* ===== Anleitung „Spieler & Gegner" ===== */
  .guide-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 20px 22px; margin-bottom: 18px;
  }
  .guide-box h3 {
    font-size: 14px; font-weight: 600; color: var(--text);
    margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
  }
  .guide-box h3 i { color: var(--green); font-size: 18px; }
  .guide-steps { list-style: none; counter-reset: gstep; padding: 0; margin: 0; }
  .guide-steps > li {
    position: relative; padding: 0 0 16px 40px; margin: 0;
    font-size: 13.5px; color: var(--text-muted); line-height: 1.6;
  }
  .guide-steps > li:last-child { padding-bottom: 0; }
  .guide-steps > li::before {
    counter-increment: gstep; content: counter(gstep);
    position: absolute; left: 0; top: -3px;
    width: 27px; height: 27px; border-radius: 50%;
    background: var(--green-light); color: var(--green-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
  }
  .guide-steps strong { color: var(--text); }
  .code-inline {
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    background: var(--green-light); color: var(--green-dark);
    padding: 2px 7px; border-radius: 5px; white-space: nowrap;
  }
  .code-block {
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 11px 13px; margin: 10px 0 2px;
    color: var(--text); overflow-x: auto; white-space: pre; line-height: 1.55;
  }
  .guide-sub-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-faint); margin: 0 0 10px;
  }
  .guide-note {
    display: flex; gap: 9px; align-items: flex-start;
    background: var(--green-light); border: 1px solid var(--green-mid);
    border-radius: var(--radius); padding: 11px 14px; margin-top: 12px;
    font-size: 12.5px; color: var(--text-muted); line-height: 1.55;
  }
  .guide-note i { color: var(--green); font-size: 16px; flex-shrink: 0; margin-top: 1px; }
  .guide-note strong { color: var(--text); }
  /* Datei-Tabellen in der Anleitung: breitere erste Spalte für lange Pfade */
  .guide-box .help-row,
  .guide-box .help-row-head { grid-template-columns: 340px 1fr; }
  .guide-box .help-cmd { white-space: nowrap; }
  @media (max-width: 760px){
    .guide-box .help-row,
    .guide-box .help-row-head { grid-template-columns: 1fr; gap: 5px; }
    .guide-box .help-cmd { white-space: normal; word-break: break-all; }
  }


/* ===================== */


  /* =========================================================
     UI-Politur — additive Overrides. Funktionslogik unberührt.
     Signatur: Cyan-Flutlicht auf tiefem Matchday-Nachtfeld,
     Display-Schrift = Montserrat (wie die erzeugten Grafiken).
     ========================================================= */
  :root {
    --green: #00ccff;
    --green-dark: #7fe6ff;
    --green-light: rgba(0,204,255,0.12);
    --green-mid: #1f9fc9;
    --on-accent: #042430;

    --accent-grad: #12b6e6;   /* solide, ruhigere Akzentfläche statt Neon-Verlauf */
    --accent-glow: 0 6px 16px -8px rgba(0,0,0,0.55);   /* neutraler Schatten statt Farbglow */

    --bg: #080b11;
    --bg-grad: radial-gradient(1100px 620px at 82% -8%, rgba(255,255,255,0.02), transparent 62%);
    --surface: #121826;
    --surface-2: #1a2333;
    --surface-secondary: #1c2536;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.14);
    --text: #eaf1f8;
    --text-muted: #9aa7b6;
    --text-faint: #69748399;

    --radius: 11px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.40), 0 14px 32px -16px rgba(0,0,0,0.70);
    --ease: cubic-bezier(.22,.61,.36,1);
  }

  body {
    background: var(--bg-grad), var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: rgba(0,204,255,0.30); color: #fff; }

  /* Schlanke, dunkle Scrollbar */
  * { scrollbar-width: thin; scrollbar-color: #2a3445 transparent; }
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-thumb { background: #2a3445; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
  *::-webkit-scrollbar-thumb:hover { background: #364154; background-clip: padding-box; }

  /* Sichtbarer Tastatur-Fokus (Barrierefreiheit) */
  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, textarea:focus-visible, .cmd-card:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
  }

  /* Display-Schrift = Montserrat, wie in den erzeugten Posts */
  .logo-text, .page-title, .stat-val, .login-title, .login-eyebrow,
  .form-title-text, .result-head, .section-label, .nav-label,
  .stat-label, .help-row-head, .fields-separator, .guide-sub-title {
    font-family: 'Montserrat','Inter',system-ui,sans-serif;
  }
  .page-title { font-weight: 800; letter-spacing: -0.012em; font-size: 22px;
    display:flex; align-items:center; gap:11px; }
  .page-title::before{
    content:''; flex:0 0 auto; width:3px; height:20px; border-radius:2px;
    background:var(--green);
  }
  .page-sub{ padding-left:15px; }
  .logo-text { font-weight: 800; letter-spacing: -0.01em; }
  .stat-val { font-weight: 800; letter-spacing: -0.01em; }
  .section-label, .nav-label { font-weight: 700; }

  /* ---------- Sidebar ---------- */
  .sidebar {
    background: linear-gradient(180deg, #141b29 0%, #0d1320 100%);
    border-right: 1px solid var(--border);
    box-shadow: 1px 0 0 rgba(255,255,255,0.02);
  }
  .sidebar-logo { padding: 22px 20px 18px; }
  .logo-icon {
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.45), 0 0 22px -4px rgba(0,0,0,0.45);
  }
  .nav-item {
    position: relative;
    transition: background .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
  }
  .nav-item:hover { transform: translateX(2px); }
  .nav-item.active { background: var(--green-light); color: var(--green-dark); }
  .nav-item.active::before {
    content: ""; position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 17px; border-radius: 3px; background: var(--green);
    box-shadow: 0 0 10px rgba(0,0,0,0.45);
  }
  .status-dot { position: relative; box-shadow: 0 0 0 3px rgba(0,0,0,0.45); }

  /* ---------- Hauptbereich-Titel ---------- */
  .page-sub { color: var(--text-muted); }

  /* ---------- Stat-Karten (Signatur-Flächen) ---------- */
  .stat-card {
    position: relative; overflow: hidden;
    background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  }
  .stat-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,204,255,0.55), transparent);
    opacity: .7;
  }
  .stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--green-mid);
    box-shadow: var(--shadow), 0 0 28px -14px rgba(0,0,0,0.45);
  }
  .stat-label i { color: var(--green-dark); }
  .stat-val { font-size: 28px; }

  /* ---------- Befehlskarten ---------- */
  .cmd-card {
    background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
    transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
  }
  .cmd-card .cmd-icon { transition: transform .16s var(--ease), background .16s var(--ease); }
  .cmd-card:hover {
    border-color: var(--green-mid);
    transform: translateY(-3px);
    box-shadow: var(--shadow), 0 0 26px -14px rgba(0,0,0,0.45);
  }
  .cmd-card:hover .cmd-icon { transform: scale(1.06) rotate(-2deg); }
  .cmd-card.active {
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green), 0 0 26px -12px rgba(0,0,0,0.45);
  }

  /* ---------- Formular ---------- */
  .form-panel { background: linear-gradient(168deg, var(--surface) 0%, var(--surface-2) 100%); }
  .form-head-icon {
    background: var(--accent-grad); color: var(--on-accent);
    box-shadow: 0 6px 18px -8px rgba(0,0,0,0.45);
  }
  .field label { letter-spacing: .06em; }

  /* ---------- Primär-Buttons mit Verlauf + Schimmer ---------- */
  .submit-btn, .res-btn, .login-btn, .dl-all-btn {
    position: relative; overflow: hidden;
    background: var(--accent-grad); color: var(--on-accent);
    box-shadow: 0 8px 22px -10px rgba(0,0,0,0.45);
    transition: transform .12s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
  }
  .submit-btn:hover, .res-btn:hover, .login-btn:hover, .dl-all-btn:hover {
    background: var(--accent-grad);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px -10px rgba(0,0,0,0.45);
    transform: translateY(-1px);
  }
  .submit-btn:active, .res-btn:active, .login-btn:active, .dl-all-btn:active { transform: translateY(0) scale(.99); }
  .submit-btn::after, .login-btn::after {
    content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-18deg); transition: left .55s var(--ease);
  }
  .submit-btn:hover::after, .login-btn:hover::after { left: 130%; }

  /* ---------- Ressourcen-Leiste ---------- */
  .res-bar { background: linear-gradient(168deg, var(--surface) 0%, var(--surface-2) 100%); }
  .res-bar.loaded { background: var(--green-light); }
  .res-bar-icon { box-shadow: 0 0 0 1px rgba(0,0,0,0.45); }

  /* ---------- Ergebnis ---------- */
  .result-card { background: linear-gradient(168deg, var(--surface) 0%, var(--surface-2) 100%); }
  .result-canvas { box-shadow: 0 10px 30px -16px rgba(0,0,0,0.8); }
  .result-head i { filter: none; }

  /* ---------- Toast ---------- */
  .toast {
    background: rgba(20,27,40,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--green);
  }

  /* ---------- Mobile-Topbar ---------- */
  .mobile-topbar { background: linear-gradient(180deg, #141b29, #0f1521); }
  .mobile-title { font-family: 'Montserrat','Inter',sans-serif; font-weight: 800; letter-spacing: -.01em; }

  /* =========================================================
     Login — Flutlicht-Auftritt (Signatur-Moment)
     ========================================================= */
  #login-overlay {
    background:
      radial-gradient(800px 420px at 22% -6%, rgba(0,204,255,0.16), transparent 60%),
      radial-gradient(760px 420px at 80% 108%, rgba(0,166,221,0.14), transparent 60%),
      var(--bg);
    overflow: hidden;
  }
  #login-overlay::before, #login-overlay::after {
    content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,204,255,0.22), transparent 65%);
    filter: blur(20px); pointer-events: none;
    animation: floodlight 9s ease-in-out infinite alternate;
  }
  #login-overlay::before { top: -180px; left: -120px; }
  #login-overlay::after { bottom: -200px; right: -140px; animation-delay: -4.5s; }

  /* Hintergrundbild im Login — dezent eingeblendet.
     Bild hier wechseln, z. B. url("Profilbild.png") oder ein eigenes Foto. */
  :root { --login-bg: url("Mannschaftsfoto.jpg")}
  #login-overlay::before, #login-overlay::after { z-index: 1; }
  .login-card { z-index: 2; }
  .login-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: var(--login-bg);
    background-size: cover; background-position: center;
    opacity: 0.16; filter: blur(1.5px) saturate(1.1);
    animation: bgDrift 24s ease-in-out infinite alternate;
  }
  .login-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,11,17,0.55), rgba(8,11,17,0.82));
  }
  @keyframes bgDrift { from { transform: scale(1.04); } to { transform: scale(1.10) translateY(-1.5%); } }

  .login-card {
    position: relative; overflow: hidden;
    background: linear-gradient(168deg, #161e2d 0%, #0f1623 100%);
    border: 1px solid var(--border-strong);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(0,0,0,0.45);
    animation: cardIn .6s var(--ease) both;
  }
  .login-glow {
    position: absolute; top: -90px; left: 50%; transform: translateX(-50%);
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,204,255,0.30), transparent 70%);
    filter: blur(10px); pointer-events: none;
  }
  .login-icon {
    position: relative; z-index: 1;
    width: 96px; height: 96px;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.45), 0 0 34px -6px rgba(0,0,0,0.45);
    animation: floaty 6s ease-in-out infinite;
  }
  .login-eyebrow {
    position: relative; z-index: 1;
    font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--green-dark); margin-bottom: 8px;
  }
  .login-title {
    position: relative; z-index: 1;
    font-weight: 900; font-size: 22px; letter-spacing: -0.01em; line-height: 1.15;
    margin-bottom: 8px;
  }
  .login-sub { position: relative; z-index: 1; margin-bottom: 22px; }
  .login-input, .login-error, .login-btn { position: relative; z-index: 1; }
  .login-btn { font-family: 'Montserrat','Inter',sans-serif; font-weight: 700; letter-spacing: .01em; }

  /* =========================================================
     Bewegung — Auftritt beim Laden (nur wenn .is-ready gesetzt)
     ========================================================= */
  @keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes floodlight {
    from { transform: translate(0,0) scale(1); opacity: .8; }
    to   { transform: translate(40px,30px) scale(1.12); opacity: 1; }
  }

  body.is-ready #section-overview .res-bar      { animation: riseIn .5s var(--ease) both .04s; }
  body.is-ready #section-overview .page-header  { animation: riseIn .5s var(--ease) both .10s; }
  body.is-ready #section-overview .stats-row    { animation: riseIn .55s var(--ease) both .16s; }
  body.is-ready #section-overview .section-label{ animation: riseIn .55s var(--ease) both .24s; }
  body.is-ready #section-overview .cmd-grid     { animation: riseIn .6s var(--ease) both .30s; }

  /* ---------- Spieltag-Leiste ---------- */
  .match-bar {
    background: linear-gradient(168deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow);
  }
  .match-bar-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
  .match-label {
    display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px;
    font-family: 'Montserrat','Inter',sans-serif;
  }
  .match-field { flex: 1 1 180px; min-width: 160px; }
  .match-field select {
    width: 100%; appearance: none;
    background-color: var(--bg); color: var(--text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    padding: 9px 30px 9px 12px; font-size: 14px; font-family: 'Inter',sans-serif; cursor: pointer;
    transition: border-color .12s var(--ease);
  }
  .match-field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,0,0,0.45); }
  .stepper {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg); border: 1px solid var(--border-strong);
    border-radius: var(--radius); padding: 5px 8px;
  }
  .stepper button {
    width: 34px; height: 34px; border: none; border-radius: 8px; cursor: pointer;
    background: var(--green-light); color: var(--green-dark);
    font-size: 19px; font-weight: 800; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s var(--ease), color .12s var(--ease);
  }
  .stepper button:hover { background: var(--green-mid); color: #fff; }
  .stepper button:active { transform: scale(.94); }
  .match-num {
    font-family: 'Montserrat','Inter',sans-serif; font-weight: 800; font-size: 21px;
    min-width: 24px; text-align: center; color: var(--text);
  }
  .match-colon { color: var(--text-faint); font-weight: 800; padding: 0 2px; }
  .match-reset {
    background: var(--surface-secondary); color: var(--text-muted);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    padding: 9px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; font-family: 'Inter',sans-serif;
    transition: color .12s var(--ease), border-color .12s var(--ease);
  }
  .match-reset:hover { color: var(--text); border-color: var(--green-mid); }
  .match-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 10px; }

  /* ---------- Sekundärer Ressourcen-Knopf ---------- */
  .res-btn-ghost {
    background: var(--surface-secondary); color: var(--text-muted);
    box-shadow: none; border: 1px solid var(--border-strong);
  }
  .res-btn-ghost:hover {
    background: var(--surface-secondary); color: var(--text);
    filter: none; box-shadow: none; border-color: var(--green-mid); transform: none;
  }

  /* ---------- Generieren: Lade-/Sperrzustand ---------- */
  .submit-btn:disabled, .submit-btn[disabled] {
    opacity: .75; cursor: progress; transform: none; filter: none;
  }
  .submit-btn:disabled::after { display: none; }

  /* ---------- Auswahl-Vorschaubild ---------- */
  .field-thumb { margin-top: 8px; }
  .field-thumb img {
    height: 56px; width: auto; max-width: 100%;
    border-radius: 8px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.04); object-fit: contain; padding: 3px;
    animation: riseIn .25s var(--ease) both;
  }

  @media (max-width: 768px) {
    .match-bar-row { gap: 12px; }
    .match-field { flex: 1 1 100%; }
    .stepper button { width: 38px; height: 38px; }
    .match-reset { min-height: 40px; }
  }

  /* ---------- Doppelauswahl-Warnung ---------- */
  .field select.dup, select.dup {
    border-color: #e5a23d !important;
    box-shadow: 0 0 0 3px rgba(229,162,61,0.18) !important;
  }
  .dup-warning {
    display: flex; align-items: flex-start; gap: 8px;
    background: rgba(240,180,40,0.12); color: #e9c46a;
    border: 1px solid rgba(240,180,40,0.30); border-radius: var(--radius);
    padding: 11px 14px; margin-top: 16px; font-size: 12.5px; line-height: 1.5;
  }
  .dup-warning i { margin-top: 1px; flex-shrink: 0; }
  .dup-warning strong { color: #f3d28a; }

  /* =========================================================
     Reduzierte Bewegung respektieren
     ========================================================= */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
    }
  }

  /* ===== Sticker-Karte ===== */
  .sticker-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  .sticker-summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow);
  }
  .sticker-progress-card { display: flex; flex-direction: column; justify-content: center; }
  .sticker-bar-wrap {
    height: 10px;
    background: var(--surface-secondary);
    border-radius: 99px;
    overflow: hidden;
  }
  .sticker-bar-fill {
    height: 100%;
    background: var(--green);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  }
  .sticker-map-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
  }
  /* Bühne für die echte Karte inkl. Zoom/Pan */
  .map-stage { position: relative; width: 100%; background: var(--bg); border-radius: var(--radius); overflow: hidden; touch-action: none; }
  #world-svg { width: 100%; height: auto; display: block; cursor: grab; }
  #world-svg.grabbing { cursor: grabbing; }
  /* Nicht gelistete Länder = inaktiver Hintergrund */
  #world-svg path:not([data-code]) { fill: var(--surface-secondary); opacity: .45; pointer-events: none; stroke: var(--bg); stroke-width: .4px; }
  #world-svg path[data-code] { cursor: pointer; }
  /* Marker für Mini-Staaten / nicht als Fläche darstellbare Länder */
  #world-svg .map-marker { fill: var(--surface-secondary); stroke: var(--border-strong); stroke-width: 1px; cursor: pointer; transition: fill .15s, stroke .15s; }
  #world-svg .map-marker:hover { fill: var(--green-mid); stroke: var(--green-mid); }
  #world-svg .map-marker.sticker-active { fill: var(--green); stroke: var(--green); }
  #world-svg .map-marker-ring { fill: none; stroke: var(--green); stroke-width: 1.4px; opacity: 0; transition: opacity .15s; }
  #world-svg .map-marker.sticker-active + .map-marker-ring { opacity: .55; }
  /* Zoom-Steuerung */
  .map-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
  .map-zoom button {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
    font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
  }
  .map-zoom button:hover { border-color: var(--green-mid); color: var(--green-dark); }
  .map-loading {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px;
    background: var(--bg); color: var(--text-muted); font-size: 13px; z-index: 6;
  }
  .map-loading.error { flex-direction: column; text-align: center; padding: 20px; }
  .map-loading i { font-size: 20px; color: var(--green); }
  .sticker-map-hint {
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .sticker-map-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
  }
  .legend-dot {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 3px;
  }
  #world-svg path {
    fill: var(--surface-secondary);
    stroke: var(--bg);
    stroke-width: 0.5px;
    transition: fill 0.18s;
  }
  #world-svg path:hover { fill: var(--green-mid); cursor: pointer; }
  #world-svg path.sticker-active { fill: var(--green) !important; }
  #world-svg path.sticker-active:hover { fill: var(--green-dark) !important; }
  /* Status nicht nur über Farbe: aktive Länder zusätzlich mit hellem Rand */
  #world-svg path.sticker-active { stroke: var(--on-accent) !important; stroke-width: 0.9px !important; }
  #world-svg .map-marker.sticker-active { stroke: var(--on-accent) !important; stroke-width: 2px !important; }
  /* Tastatur-Fokus auf interaktiven Kartenelementen */
  #world-svg [data-code]:focus { outline: none; }
  #world-svg [data-code]:focus-visible { stroke: var(--on-accent) !important; stroke-width: 1.4px !important; }
  /* Globaler, gut sichtbarer Fokus-Rahmen für Tastaturbedienung */
  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible,
  .nav-item:focus-visible, .sticker-country-chip:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
    border-radius: var(--radius);
  }
  .sticker-tooltip {
    position: fixed;
    background: #222b36;
    color: var(--text);
    padding: 7px 12px;
    border-radius: var(--radius);
    font-size: 12.5px;
    font-weight: 500;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    white-space: nowrap;
  }
  .sticker-continent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
  }
  .sticker-continent-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow);
  }
  .sticker-continent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  .sticker-continent-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .sticker-continent-badge {
    font-size: 11px;
    background: var(--green-light);
    color: var(--green-dark);
    border-radius: 4px;
    padding: 2px 7px;
    font-weight: 500;
  }
  .sticker-continent-bar-wrap {
    height: 6px;
    background: var(--surface-secondary);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .sticker-continent-bar-fill {
    height: 100%;
    background: var(--green);
    border-radius: 99px;
    transition: width 0.4s ease;
  }
  .sticker-country-list { display: flex; flex-wrap: wrap; gap: 5px; }
  .sticker-country-chip {
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 5px;
    border: 1px solid var(--border-strong);
    background: var(--surface-secondary);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.12s;
    user-select: none;
  }
  .sticker-country-chip:hover { border-color: var(--green-mid); color: var(--text); }
  .sticker-country-chip.active {
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green-dark);
    font-weight: 500;
  }
  /* Status nicht nur über Farbe: Häkchen bei aktiven Stickern */
  .sticker-country-chip.active::before { content: "✓\00a0"; font-weight: 700; }
  @media (max-width: 768px) {
    .sticker-summary-row { grid-template-columns: 1fr 1fr; }
    .sticker-progress-card { grid-column: 1 / -1; }
    .sticker-continent-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 400px) {
    .sticker-summary-row { grid-template-columns: 1fr; }
  }

  /* ===== Team / Mannschaft ===== */
  .team-intro-card {
    background: linear-gradient(168deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
  }
  .team-intro-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,204,255,0.6), transparent);
  }
  .team-intro-logo {
    width: 80px; height: 80px; flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--green);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.45), 0 0 28px -8px rgba(0,0,0,0.45);
  }
  .team-intro-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .team-intro-text { flex: 1; }
  .team-intro-name {
    font-family: 'Montserrat','Inter',sans-serif;
    font-weight: 800; font-size: 20px; color: var(--text);
    letter-spacing: -0.01em; margin-bottom: 4px;
  }
  .team-intro-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
  .team-intro-stats { display: flex; align-items: center; gap: 0; }
  .team-intro-stat { text-align: center; padding: 0 18px; }
  .team-intro-stat:first-child { padding-left: 0; }
  .team-intro-stat-val {
    display: block;
    font-family: 'Montserrat','Inter',sans-serif;
    font-weight: 800; font-size: 24px; color: var(--green);
    line-height: 1;
  }
  .team-intro-stat-label { display: block; font-size: 11px; color: var(--text-muted); margin-top: 3px; }
  .team-intro-stat-divider { width: 1px; height: 36px; background: var(--border-strong); }

  .team-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
  }
  .team-player-card {
    background: linear-gradient(168deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
    cursor: default;
  }
  .team-player-card:hover {
    transform: translateY(-4px);
    border-color: var(--green-mid);
    box-shadow: var(--shadow), 0 0 24px -12px rgba(0,0,0,0.45);
  }
  .team-player-img-wrap {
    width: 100%; aspect-ratio: 3/4;
    background: var(--surface-secondary);
    overflow: hidden; position: relative;
  }
  .team-player-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.3s var(--ease);
  }
  .team-player-card:hover .team-player-img-wrap img { transform: scale(1.04); }
  .team-player-img-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: var(--green-dark); background: var(--green-light);
    font-family: 'Montserrat','Inter',sans-serif; font-weight: 800;
  }
  .team-player-name {
    font-size: 12px; font-weight: 600; color: var(--text);
    padding: 9px 10px 10px;
    text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  @media (max-width: 600px) {
    .team-intro-card { flex-direction: column; text-align: center; padding: 20px 18px; }
    .team-intro-logo { width: 64px; height: 64px; }
    .team-intro-name { font-size: 17px; }
    .team-intro-stats { justify-content: center; }
    .team-intro-stat:first-child { padding-left: 18px; }
    .team-player-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  }


/* ===================== */


  /* ---- Termin-Typ-Farben (Farbcodierung laut Vorgabe) ---- */
  :root {
    --cal-game:   #3d8bfd;   /* Blau = Spiel */
    --cal-training:#2ecc71;  /* Grün = Training */
    --cal-event:  #f5c542;   /* Gelb = Event */
    --cal-reminder:#ff5c5c;  /* Rot = Erinnerung */
    --cal-birthday:#b07cff;  /* Lila = Geburtstag */
  }

  /* ========== Navigations-Badge (Sidebar) ========== */
  .nav-badge {
    margin-left: auto;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    background: var(--cal-reminder);
    color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
  }

  /* ========== Benachrichtigungs-Glocke ========== */
  .notif-bell {
    position: fixed;
    top: 14px; right: 18px;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 19px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 60;
    box-shadow: var(--shadow);
    transition: border-color .12s, background .12s, transform .1s;
  }
  .notif-bell:hover { border-color: var(--green-mid); color: var(--green-dark); }
  .notif-bell:active { transform: scale(0.94); }
  .notif-bell.has-unread i { animation: bellSwing 1.6s ease-in-out infinite; transform-origin: top center; }
  @keyframes bellSwing {
    0%,70%,100% { transform: rotate(0); }
    78% { transform: rotate(11deg); }
    86% { transform: rotate(-9deg); }
    93% { transform: rotate(5deg); }
  }
  .notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    background: var(--cal-reminder);
    color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg);
  }

  /* ========== Benachrichtigungs-Panel ========== */
  .notif-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease;
    z-index: 70;
  }
  .notif-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .notif-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px; max-width: 92vw;
    background: var(--surface);
    border-left: 1px solid var(--border-strong);
    box-shadow: -8px 0 36px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 80;
    display: flex; flex-direction: column;
  }
  .notif-panel.open { transform: translateX(0); }
  .notif-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border);
  }
  .notif-panel-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .notif-panel-title i { color: var(--green); }
  .notif-panel-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 20px; cursor: pointer; width: 32px; height: 32px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
  }
  .notif-panel-close:hover { background: var(--surface-secondary); color: var(--text); }
  .notif-panel-actions {
    display: flex; gap: 8px; padding: 12px 18px;
    border-bottom: 1px solid var(--border);
  }
  .notif-panel-actions button {
    flex: 1;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px; font-weight: 500;
    padding: 8px; border-radius: var(--radius);
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: all .12s;
  }
  .notif-panel-actions button:hover { color: var(--text); border-color: var(--border-strong); }
  .notif-list { flex: 1; overflow-y: auto; padding: 10px 14px 24px; }
  .notif-item {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--text-faint);
    border-radius: var(--radius);
    padding: 12px 36px 12px 14px;
    margin-bottom: 10px;
    transition: border-color .12s;
  }
  .notif-item.unread { border-left-color: var(--green); background: var(--green-light); }
  .notif-item.type-game     { border-left-color: var(--cal-game); }
  .notif-item.type-training { border-left-color: var(--cal-training); }
  .notif-item.type-event    { border-left-color: var(--cal-event); }
  .notif-item.type-reminder { border-left-color: var(--cal-reminder); }
  .notif-item.type-birthday { border-left-color: var(--cal-birthday); }
  .notif-item.type-kasse    { border-left-color: #e0b93b; }
  .notif-item.type-tipp     { border-left-color: #00ccff; }
  .notif-item-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
  .notif-item-msg { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
  .notif-item-time { font-size: 10.5px; color: var(--text-faint); margin-top: 6px; }
  .notif-item-del {
    position: absolute; top: 8px; right: 8px;
    background: none; border: none; color: var(--text-faint);
    font-size: 15px; cursor: pointer; width: 24px; height: 24px;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
  }
  .notif-item-del:hover { background: var(--surface-secondary); color: var(--cal-reminder); }
  .notif-item.unread .notif-item-title::before {
    content: ''; display: inline-block;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green); margin-right: 6px; vertical-align: middle;
  }
  .notif-empty { text-align: center; color: var(--text-faint); font-size: 13px; padding: 50px 20px; }
  .notif-empty i { font-size: 34px; display: block; margin-bottom: 10px; opacity: .5; }

  /* ========== Dashboard-Widgets ========== */
  .dash-widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  .widget {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 15px 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color .15s, transform .12s;
  }
  .widget:hover{ border-color: var(--border-strong); }
  .widget-wide { grid-column: 1 / -1; }
  .widget-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 13px;
  }
  .widget-head i { color: var(--green); font-size: 15px; margin-right: 5px; }
  .widget-head > span { display: flex; align-items: center; }
  .widget-add-btn {
    background: var(--green-light); border: none; color: var(--green-dark);
    width: 26px; height: 26px; border-radius: 7px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
  }
  .widget-add-btn:hover { background: var(--green); color: var(--on-accent); }
  .widget-head-actions { display: flex; align-items: center; gap: 6px; }
  .widget-collapse-btn {
    background: var(--surface-secondary); border: 1px solid var(--border); color: var(--text-muted);
    width: 26px; height: 26px; border-radius: 7px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    transition: color .12s, border-color .12s;
  }
  .widget-collapse-btn:hover { color: var(--text); border-color: var(--border-strong); }
  .widget-collapsible { overflow: hidden; transition: none; }
  .widget.collapsed .widget-collapsible { display: none; }
  .widget-head-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
    background: var(--green-light); color: var(--green-dark);
    font-size: 11px; font-weight: 700; border-radius: 9px; vertical-align: middle;
  }
  /* Sync-Status-Hinweis im Kalenderkopf */
  .cal-sync { font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; white-space: nowrap; }
  .cal-sync.synced  { background: var(--green-light); color: var(--green-dark); }
  .cal-sync.local   { background: var(--surface-secondary); color: var(--text-muted); }
  .cal-sync.saving  { background: var(--green-light); color: var(--green-dark); }
  .widget-empty { color: var(--text-faint); font-size: 12.5px; padding: 4px 0 2px; }

  /* Nächster Termin */
  .next-ev { display: flex; flex-direction: column; gap: 8px; }
  .next-ev-title { font-size: 16px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
  .next-ev-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .next-ev-meta { font-size: 12.5px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .next-ev-meta span { display: inline-flex; align-items: center; gap: 5px; }
  .next-ev-countdown {
    margin-top: 4px;
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--green-light); color: var(--green-dark);
    font-size: 13px; font-weight: 600;
    padding: 7px 12px; border-radius: var(--radius);
    align-self: flex-start;
    font-variant-numeric: tabular-nums;
  }
  .cd-target { font-size: 11px; font-weight: 700; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }

  /* Heute-Liste / Spiele-Liste */
  .mini-list { display: flex; flex-direction: column; gap: 8px; }
  .mini-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer; transition: border-color .12s;
  }
  .mini-row:hover { border-color: var(--border-strong); }
  .mini-row-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
  .mini-row-main { flex: 1; min-width: 0; }
  .mini-row-title { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mini-row-sub { font-size: 11px; color: var(--text-muted); }
  .mini-row-time { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }

  /* Statistik */
  .widget-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mini-stat { text-align: center; background: linear-gradient(160deg, rgba(0,204,255,.08), rgba(0,204,255,.02)); border: 1px solid rgba(0,204,255,.18); border-radius: 12px; padding: 15px 6px; transition: transform .12s; }
  .mini-stat:hover{ transform: translateY(-2px); }
  .mini-stat-val { display: block; font-family:'Montserrat',sans-serif; font-size: 28px; font-weight: 800; color: var(--green); line-height: 1.05; }
  .mini-stat-lbl { display: block; font-size: 11px; font-weight:600; color: var(--text-muted); margin-top: 5px; letter-spacing:.02em; }

  /* Aufgaben */
  .task-progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .task-progress-bar { flex: 1; height: 7px; background: var(--surface-secondary); border-radius: 4px; overflow: hidden; }
  .task-progress-fill { height: 100%; width: 0; background: var(--green); border-radius: 4px; transition: width .3s ease; }
  .task-progress-label { font-size: 11px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .task-list { display: flex; flex-direction: column; gap: 8px; }
  .task-row {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 11px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--text-faint);
    border-radius: var(--radius);
    transition: opacity .2s;
  }
  .task-row.prio-high   { border-left-color: var(--cal-reminder); }
  .task-row.prio-medium { border-left-color: var(--cal-event); }
  .task-row.prio-low    { border-left-color: var(--cal-training); }
  .task-row.done { opacity: 0.5; }
  .task-row.done .task-row-title { text-decoration: line-through; }
  .task-check {
    width: 20px; height: 20px; border-radius: 6px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    cursor: pointer; flex-shrink: 0; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    color: transparent; font-size: 13px; transition: all .12s;
  }
  .task-check:hover { border-color: var(--green); }
  .task-row.done .task-check { background: var(--green); border-color: var(--green); color: var(--on-accent); }
  .task-row-main { flex: 1; min-width: 0; }
  .task-row-title { font-size: 13px; font-weight: 500; color: var(--text); }
  .task-row-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
  .task-prio-tag { font-weight: 600; }
  .task-prio-tag.high   { color: var(--cal-reminder); }
  .task-prio-tag.medium { color: var(--cal-event); }
  .task-prio-tag.low    { color: var(--cal-training); }
  .task-del {
    background: none; border: none; color: var(--text-faint);
    font-size: 16px; cursor: pointer; width: 26px; height: 26px;
    border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .task-del:hover { background: var(--surface-secondary); color: var(--cal-reminder); }

  /* ========== Kalender ========== */
  .cal-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .cal-nav { display: flex; align-items: center; gap: 8px; }
  .cal-icon-btn {
    width: 34px; height: 34px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border-strong);
    color: var(--text); cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
  }
  .cal-icon-btn:hover { border-color: var(--green-mid); color: var(--green-dark); }
  .cal-today-btn {
    padding: 7px 14px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border-strong);
    color: var(--text); cursor: pointer; font-size: 12px; font-weight: 600;
  }
  .cal-today-btn:hover { border-color: var(--green-mid); color: var(--green-dark); }
  .cal-title { font-size: 16px; font-weight: 600; color: var(--text); margin-left: 6px; min-width: 150px; }
  .cal-views {
    display: flex; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 3px; gap: 2px;
  }
  .cal-view-btn {
    padding: 6px 14px; border: none; background: none;
    color: var(--text-muted); font-size: 12px; font-weight: 600;
    border-radius: 7px; cursor: pointer; transition: all .12s;
  }
  .cal-view-btn:hover { color: var(--text); }
  .cal-view-btn.active { background: var(--green-light); color: var(--green-dark); }
  .cal-add-btn {
    margin-left: auto;
    display: flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: var(--radius);
    background: var(--green); color: var(--on-accent);
    border: none; cursor: pointer; font-size: 13px; font-weight: 600;
  }
  .cal-add-btn:hover { background: var(--green-dark); }

  /* Daten-Werkzeuge (Export/Import/iCal) */
  .cal-tools-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .cal-tool-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius);
    background: var(--surface-secondary); color: var(--text);
    border: 1px solid var(--border); cursor: pointer;
    font-size: 13px; font-weight: 600;
    transition: border-color .15s, color .15s;
  }
  .cal-tool-btn:hover { border-color: var(--green); color: var(--green); }
  .cal-tool-btn i { font-size: 16px; }

  .cal-filter-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .cal-search {
    position: relative; flex: 1; min-width: 200px; max-width: 320px;
  }
  .cal-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 15px; }
  .cal-search input {
    width: 100%; padding: 8px 12px 8px 34px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius); color: var(--text); font-size: 13px; font-family: inherit;
    outline: none;
  }
  .cal-search input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,0,0,0.45); }
  .cal-filters { display: flex; gap: 7px; flex-wrap: wrap; }
  .cal-filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 12px; font-weight: 500; cursor: pointer;
    transition: all .12s;
  }
  .cal-filter-chip .dot { width: 9px; height: 9px; border-radius: 50%; }
  .cal-filter-chip:hover { border-color: var(--border-strong); color: var(--text); }
  .cal-filter-chip.active { background: var(--green-light); border-color: var(--green-mid); color: var(--text); }

  .cal-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  /* Monatsansicht */
  .cal-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--border);
    background: var(--surface-secondary);
  }
  .cal-weekday {
    padding: 9px 8px; text-align: center;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-faint);
  }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
  .cal-cell {
    min-height: 112px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 6px;
    cursor: pointer;
    transition: background .1s;
    display: flex; flex-direction: column; gap: 4px;
    overflow: hidden;
  }
  .cal-cell:nth-child(7n) { border-right: none; }
  .cal-cell:hover { background: var(--surface-secondary); }
  .cal-cell.other-month { background: rgba(0,0,0,0.14); }
  .cal-cell.other-month .cal-cell-num { color: var(--text-faint); }
  .cal-cell-num {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; flex-shrink: 0;
  }
  .cal-cell.today .cal-cell-num { background: var(--green); color: var(--on-accent); }
  .cal-event-chip {
    font-size: 12px; color: #fff;
    padding: 4px 8px; border-radius: 6px; min-height: 24px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 5px;
    line-height: 1.3;
    transition: filter .1s, transform .05s;
  }
  .cal-event-chip:hover { filter: brightness(1.08); }
  .cal-event-chip:active { transform: scale(0.98); }
  .cal-event-chip .chip-time { font-variant-numeric: tabular-nums; opacity: .85; font-weight: 600; }
  .cal-event-chip.game     { background: var(--cal-game); }
  .cal-event-chip.training { background: var(--cal-training); color: #06301a; }
  .cal-event-chip.event    { background: var(--cal-event); color: #3a2e00; }
  .cal-event-chip.reminder { background: var(--cal-reminder); }
  .cal-event-chip.birthday { background: var(--cal-birthday); }
  .cal-more { font-size: 10.5px; color: var(--text-muted); padding-left: 4px; }

  /* Wochenansicht */
  .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); }
  .cal-week-col { border-right: 1px solid var(--border); min-height: 320px; }
  .cal-week-col:last-child { border-right: none; }
  .cal-week-head {
    padding: 10px 6px; text-align: center;
    border-bottom: 1px solid var(--border);
    background: var(--surface-secondary);
  }
  .cal-week-head.today { background: var(--green-light); }
  .cal-week-head .wh-day { font-size: 10px; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
  .cal-week-head .wh-num { font-size: 16px; font-weight: 600; color: var(--text); }
  .cal-week-head.today .wh-num { color: var(--green-dark); }
  .cal-week-body { padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-height: 60px; }
  .cal-week-event {
    font-size: 11px; color: #fff; padding: 6px 8px; border-radius: 6px;
    line-height: 1.4;
  }
  .cal-week-event .we-time { font-weight: 700; font-variant-numeric: tabular-nums; }
  .cal-week-event.game     { background: var(--cal-game); }
  .cal-week-event.training { background: var(--cal-training); color: #06301a; }
  .cal-week-event.event    { background: var(--cal-event); color: #3a2e00; }
  .cal-week-event.reminder { background: var(--cal-reminder); }
  .cal-week-event.birthday { background: var(--cal-birthday); }

  /* Tagesansicht */
  .cal-day { padding: 18px; }
  .cal-day-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
  .cal-day-list { display: flex; flex-direction: column; gap: 10px; }
  .cal-day-event {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--text-faint);
    border-radius: var(--radius);
    cursor: pointer; transition: border-color .12s;
  }
  .cal-day-event:hover { border-color: var(--border-strong); }
  .cal-day-event.game     { border-left-color: var(--cal-game); }
  .cal-day-event.training { border-left-color: var(--cal-training); }
  .cal-day-event.event    { border-left-color: var(--cal-event); }
  .cal-day-event.reminder { border-left-color: var(--cal-reminder); }
  .cal-day-event.birthday { border-left-color: var(--cal-birthday); }
  .cal-day-time { font-size: 14px; font-weight: 700; color: var(--text); min-width: 52px; font-variant-numeric: tabular-nums; }
  .cal-day-main { flex: 1; }
  .cal-day-ev-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
  .cal-day-ev-meta { font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 3px 14px; }
  .cal-day-ev-meta span { display: inline-flex; align-items: center; gap: 5px; }
  .cal-day-ev-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 7px; line-height: 1.5; }
  .cal-day-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    padding: 3px 8px; border-radius: 5px; color: #fff; align-self: flex-start;
  }
  .cal-day-badge.game     { background: var(--cal-game); }
  .cal-day-badge.training { background: var(--cal-training); color: #06301a; }
  .cal-day-badge.event    { background: var(--cal-event); color: #3a2e00; }
  .cal-day-badge.reminder { background: var(--cal-reminder); }
  .cal-day-badge.birthday { background: var(--cal-birthday); }
  .cal-day-empty { text-align: center; color: var(--text-faint); padding: 50px 20px; font-size: 14px; }
  .cal-day-empty i { font-size: 38px; display: block; margin-bottom: 12px; opacity: .5; }

  /* ========== Modal (Termin & Aufgabe) ========== */
  .modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.62);
    display: none; align-items: flex-start; justify-content: center;
    z-index: 90;
    padding: 40px 16px;
    overflow-y: auto;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    width: 100%; max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalIn .18s ease;
    margin: auto 0;
  }
  .modal-sm { max-width: 420px; }
  @keyframes modalIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
  .modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
  }
  .modal-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
  .modal-title i { color: var(--green); font-size: 18px; }
  .modal-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 20px; cursor: pointer; width: 32px; height: 32px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
  }
  .modal-close:hover { background: var(--surface-secondary); color: var(--text); }
  .modal-body { padding: 20px 22px; }
  .modal-body input[type="date"],
  .modal-body input[type="time"] {
    width: 100%; padding: 8px 11px; font-size: 13px; font-family: inherit;
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: var(--bg); color: var(--text); outline: none;
    color-scheme: dark;
  }
  .modal-body input[type="date"]:focus,
  .modal-body input[type="time"]:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,0,0,0.45); }
  .check-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); cursor: pointer; margin-top: 6px; }
  .check-row input { width: 17px; height: 17px; accent-color: var(--green); cursor: pointer; }
  .recur-hint {
    font-size: 12px; color: var(--green-dark);
    background: var(--green-light); border-radius: var(--radius);
    padding: 8px 11px; margin-top: 2px; display: flex; align-items: center; gap: 7px;
  }
  .recur-hint i { font-size: 14px; }
  .series-note {
    font-size: 12px; color: var(--text-muted);
    background: var(--surface-secondary); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 9px 11px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
  }
  .series-note i { color: var(--cal-training); font-size: 15px; }
  .modal-foot {
    display: flex; align-items: center; gap: 9px;
    flex-wrap: wrap;                 /* Buttons brechen als Ganzes um, nie der Text darin */
    padding: 16px 22px;
    border-top: 1px solid var(--border);
  }
  .modal-foot-spacer { flex: 1; }
  .modal-btn {
    padding: 9px 16px; border-radius: var(--radius);
    font-size: 13px; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; display: flex; align-items: center; gap: 7px;
    white-space: nowrap; flex-shrink: 0;
    font-family: inherit; transition: all .12s;
  }
  .modal-btn-primary { background: var(--green); color: var(--on-accent); }
  .modal-btn-primary:hover { background: var(--green-dark); }
  .modal-btn-ghost { background: var(--surface-secondary); color: var(--text-muted); border-color: var(--border); }
  .modal-btn-ghost:hover { color: var(--text); }
  .modal-btn-danger { background: rgba(255,92,92,0.12); color: var(--cal-reminder); border-color: rgba(255,92,92,0.3); }
  .modal-btn-danger:hover { background: rgba(255,92,92,0.2); }

  /* ========== Responsive ========== */
  @media (max-width: 768px) {
    .notif-bell { top: 8px; right: 12px; width: 38px; height: 38px; font-size: 17px; z-index: 45; }
    .notif-panel { width: 100%; max-width: 100%; }

    .dash-widgets { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dash-widgets .widget-wide { grid-column: 1 / -1; }

    .cal-toolbar { gap: 8px; }
    .cal-title { font-size: 14px; min-width: 0; margin-left: 2px; flex-basis: 100%; order: 5; }
    .cal-add-btn { margin-left: 0; }
    .cal-views { order: 4; }

    .cal-cell { min-height: 88px; padding: 5px; gap: 4px; }
    .cal-cell-num { width: 20px; height: 20px; font-size: 11px; }
    .cal-event-chip { font-size: 11px; padding: 4px 6px; min-height: 26px; border-radius: 6px; }
    .cal-event-chip .chip-time { display: none; }
    .cal-weekday { font-size: 9px; padding: 7px 2px; }

    /* Wochenansicht auf Mobil: scrollbar statt 7 enge Spalten */
    .cal-week { grid-template-columns: repeat(7, minmax(110px, 1fr)); overflow-x: auto; }

    .modal-overlay { padding: 16px 12px; }
    .modal-body input[type="date"],
    .modal-body input[type="time"],
    .modal-body input[type="text"],
    .modal-body select,
    .modal-body textarea { font-size: 16px; }
    .modal-foot { flex-wrap: wrap; }
    .modal-btn { flex: 1; justify-content: center; min-height: 44px; }
    .modal-btn-danger { flex-basis: 100%; }
  }

  @media (max-width: 400px) {
    .widget-stats-grid { gap: 6px; }
    .mini-stat-val { font-size: 20px; }
    .cal-cell { min-height: 74px; }
  }


/* =====================  MANNSCHAFTSKASSE  ===================== */
.kasse-cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; margin-bottom:18px; }
.kasse-card{ display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:14px 16px; transition:border-color .15s, transform .12s; overflow:visible; }
.kasse-card:hover{ transform:translateY(-1px); }
.kasse-card-ico{ flex:0 0 auto; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; font-size:20px;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted); }
.kasse-card-ico.open{ color:#e0b93b; background:rgba(224,185,59,.1); border-color:rgba(224,185,59,.28); }
.kasse-card-ico.paid{ color:#34d399; background:rgba(52,211,153,.1); border-color:rgba(52,211,153,.28); }
.kasse-card-ico.fines{ color:#fb7185; background:rgba(251,113,133,.1); border-color:rgba(251,113,133,.28); }
.kasse-card-ico.expense{ color:#fb7185; background:rgba(251,113,133,.1); border-color:rgba(251,113,133,.28); }
.kasse-card-ico.players{ color:var(--green); background:rgba(0,204,255,.1); border-color:rgba(0,204,255,.28); }
.kasse-card-body{ flex:1; min-width:0; }
.kasse-card-label{ font-size:11.5px; color:var(--text-muted); margin-bottom:3px; font-weight:600; line-height:1.25; }
.kasse-card-val{ font-family:'Montserrat',sans-serif; font-size:21px; font-weight:800; color:var(--text); font-variant-numeric:tabular-nums; line-height:1.1; white-space:nowrap; }

/* Kontostand als Hero – volle Breite, größer */
.kasse-card-hero{ grid-column:1 / -1; padding:18px 20px; gap:16px;
  background:linear-gradient(150deg, rgba(0,204,255,.14), rgba(0,204,255,.03)); border-color:rgba(0,204,255,.3);
  box-shadow:0 8px 28px -12px rgba(0,0,0,0.45); }
.kasse-card-hero .kasse-card-ico{ width:56px; height:56px; border-radius:16px; font-size:28px;
  background:linear-gradient(150deg, rgba(0,204,255,.25), rgba(0,204,255,.08)); border-color:rgba(0,204,255,.35); color:var(--green); }
.kasse-card-hero .kasse-card-label{ font-size:13px; }
.kasse-card-hero .kasse-card-val{ font-size:34px; }

.kasse-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.kasse-tabs{ display:inline-flex; background:var(--surface-secondary); border:1px solid var(--border); border-radius:var(--radius); padding:3px; gap:2px; }
.kasse-tab{ border:none; background:transparent; color:var(--text-muted); font-size:13px; font-weight:600; padding:7px 14px; border-radius:calc(var(--radius) - 3px); cursor:pointer; }
.kasse-tab.active{ background:var(--green); color:var(--on-accent); }
.kasse-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.kasse-btn{ display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:var(--radius); background:var(--surface-secondary); color:var(--text); border:1px solid var(--border); cursor:pointer; font-size:13px; font-weight:600; }
.kasse-btn:hover{ border-color:var(--green); color:var(--green); }
.kasse-btn.primary{ background:var(--green); color:var(--on-accent); border-color:var(--green); }
.kasse-btn.primary:hover{ background:var(--green-dark); color:var(--on-accent); }
.kasse-btn.small{ padding:6px 11px; font-size:12.5px; }
.kasse-btn i{ font-size:16px; }

.kasse-panel{ display:none; }
.kasse-panel.active{ display:block; }
.kasse-panel-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.kasse-hint{ font-size:12.5px; color:var(--text-faint); }
#kasse-player-search{ flex:1; min-width:180px; max-width:320px; padding:8px 12px; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface-secondary); color:var(--text); font-size:13px; }
.kasse-empty{ padding:24px; text-align:center; color:var(--text-faint); font-size:13px; }

.kasse-row{ display:flex; align-items:center; gap:12px; padding:10px 14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); margin-bottom:8px; }
.kasse-row-main{ flex:1 1 0; min-width:0; cursor:pointer; display:flex; align-items:center; gap:12px; }
.kasse-row-txt{ min-width:0; flex:1; }
.kasse-av{ flex:0 0 auto; width:40px; height:40px; border-radius:12px; display:grid; place-items:center;
  font-family:'Montserrat',sans-serif; font-weight:800; font-size:15px; font-variant-numeric:tabular-nums;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted); }
.kasse-av.st-neg{ color:#fb7185; background:rgba(251,113,133,.12); border-color:rgba(251,113,133,.3); }
.kasse-av.st-pos{ color:#34d399; background:rgba(52,211,153,.12); border-color:rgba(52,211,153,.3); }
.kasse-av.st-zero{ color:var(--text-muted); }
.kasse-row-name{ font-weight:700; color:var(--text); font-size:14px; display:flex; align-items:center; gap:6px; min-width:0; }
.kasse-row-nm{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.kasse-row-badges{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:5px; }
.kasse-row-badges .kasse-tag{ margin-left:0; }
.kasse-row-sub{ font-size:11.5px; color:var(--text-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kasse-bal{ display:flex; flex-direction:column; align-items:flex-end; gap:1px; min-width:92px; flex:0 0 auto; text-align:right;
  font-variant-numeric:tabular-nums; padding:5px 12px; border-radius:10px; }
.kasse-bal-amt{ font-family:'Montserrat',sans-serif; font-weight:800; font-size:16px; line-height:1.1; }
.kasse-bal-lbl{ font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; opacity:.85; }
.kasse-bal.neg{ color:#fb7185; background:rgba(251,113,133,.09); }
.kasse-bal.pos{ color:#34d399; background:rgba(52,211,153,.09); }
.kasse-bal.zero{ color:var(--text-faint); background:transparent; }
.kasse-row-actions{ display:flex; gap:6px; }
.kasse-mini{ width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid var(--border); background:var(--surface-secondary); color:var(--text-muted); cursor:pointer; }
.kasse-mini:hover{ border-color:var(--green); color:var(--green); }
.kasse-mini.danger:hover{ border-color:var(--cal-reminder, #ff6b6b); color:var(--cal-reminder, #ff6b6b); }
.kasse-mini i{ font-size:16px; }

.kasse-cat{ margin-bottom:16px; }
.kasse-cat-title{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--green); margin-bottom:8px; }
.kasse-cat-list{ display:flex; flex-wrap:wrap; gap:8px; }
.kasse-fine-chip{ display:inline-flex; align-items:center; gap:10px; padding:7px 12px; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface); color:var(--text); cursor:pointer; font-size:12.5px; }
.kasse-fine-chip:hover{ border-color:var(--green); }
.kasse-fine-chip b{ color:var(--green); font-variant-numeric:tabular-nums; }

.kasse-log-row{ display:flex; align-items:center; gap:12px; padding:10px 14px; border:1px solid var(--border); border-radius:11px; background:var(--surface); margin-bottom:7px; transition:border-color .12s; }
.kasse-log-row:hover{ border-color:var(--border-strong); }
.kasse-log-ico{ flex:0 0 auto; width:36px; height:36px; border-radius:10px; display:grid; place-items:center; font-size:18px;
  background:var(--surface-secondary); border:1px solid var(--border); }
.kasse-log-ico.fine{ color:#fb7185; background:rgba(251,113,133,.1); border-color:rgba(251,113,133,.25); }
.kasse-log-ico.pay{ color:#34d399; background:rgba(52,211,153,.1); border-color:rgba(52,211,153,.25); }
.kasse-log-ico.kiste{ color:#e0b93b; background:rgba(224,185,59,.1); border-color:rgba(224,185,59,.25); }
.kasse-log-mid{ flex:1; min-width:0; }
.kasse-log-player{ font-weight:700; font-size:13.5px; color:var(--text); }
.kasse-log-sub{ font-size:12px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; }
.kasse-log-right{ display:flex; flex-direction:column; align-items:flex-end; gap:1px; flex:0 0 auto; }
.kasse-log-date{ font-size:11px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
.kasse-log-amt{ font-family:'Montserrat',sans-serif; font-weight:800; font-size:15px; font-variant-numeric:tabular-nums; text-align:right; }
.kasse-log-amt.fine{ color:#fb7185; }
.kasse-log-amt.pay{ color:#34d399; }

@media (max-width:768px){
  .kasse-cards{ grid-template-columns:repeat(2,1fr); }
  .kasse-toolbar{ flex-direction:column; align-items:stretch; }
  /* Aktions-Buttons: 2 pro Reihe, sauberer Umbruch (kein Basis-0-Überlauf) */
  .kasse-actions{ display:flex; flex-wrap:wrap; gap:8px; }
  .kasse-btn{ flex:1 1 calc(50% - 4px); min-width:0; justify-content:center; text-align:center; }
  /* Tabs: horizontal wischbar statt über den Rand laufen */
  .kasse-tabs{ display:flex; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .kasse-tabs::-webkit-scrollbar{ display:none; }
  .kasse-tab{ flex:0 0 auto; white-space:nowrap; }
  .kasse-bal{ min-width:74px; font-size:14px; }
}


/* ---- Mannschaftskasse: Rollen/Kontostand-Ergänzungen ---- */
.kasse-cards{ grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); align-items:stretch; }
.kasse-card-accent{ border-color:var(--green); background:linear-gradient(180deg, color-mix(in srgb, var(--green) 12%, var(--surface)), var(--surface)); }
.kasse-card-accent .kasse-card-val{ color:var(--green); }
.kasse-card-label{ display:flex; align-items:center; gap:6px; justify-content:space-between; }
.kasse-cash-edit{ border:1px solid var(--border); background:var(--surface-secondary); color:var(--text-muted); width:24px; height:24px; border-radius:6px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.kasse-cash-edit:hover{ border-color:var(--green); color:var(--green); }
.kasse-cash-edit i{ font-size:14px; }
.kasse-tag{ display:inline-block; margin-left:7px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--green); border:1px solid var(--green); border-radius:5px; padding:1px 5px; vertical-align:middle; }
.kasse-fine-chip[disabled]{ opacity:.85; cursor:default; }
/* Lese-Modus: etwaige verbleibende Schreib-Bedienelemente ausblenden */
#section-kasse.readonly .kasse-row-actions,
#section-kasse.readonly .kasse-cash-edit{ display:none !important; }

/* Lese-Modus Kalender: Schreib-Bedienelemente ausblenden */
.cal-readonly .cal-add-btn,
.cal-readonly #cal-import-btn,
.cal-readonly .ev-save-btn,
.cal-readonly .ev-del-btn{ display:none !important; }


/* ===== Sidebar-Footer: Rolle + Status + Logout (überarbeitet) ===== */
.sidebar-footer{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.role-pill{ display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text);
  font-size:12px; font-weight:600; }
.role-pill i{ font-size:14px; color:var(--green); }
.sidebar-footer .status-dot{ margin-right:0; }
.sidebar-footer .status-text{ flex:1; min-width:0; }
.logout-btn{ margin-left:auto; width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:8px; border:1px solid var(--border); background:var(--surface-secondary);
  color:var(--text-muted); cursor:pointer; transition:all .12s; }
.logout-btn:hover{ border-color:var(--cal-reminder,#ff6b6b); color:var(--cal-reminder,#ff6b6b); background:transparent; }
.logout-btn i{ font-size:16px; }

/* ===== Kasse: Ausgaben ===== */
.kasse-log-amt.expense{ color:var(--cal-reminder,#ff6b6b); }
.kasse-card-expense .kasse-card-val{ color:var(--cal-reminder,#ff6b6b); }


/* ===== Sidebar-Footer immer sichtbar: Nav scrollt, Footer bleibt unten ===== */
.sidebar-nav{ overflow-y:auto; min-height:0; }
.sidebar-footer{ flex-shrink:0; padding-bottom:calc(14px + env(safe-area-inset-bottom)); }
@media (max-width:768px){
  .sidebar-footer{ position:sticky; bottom:0; background:var(--surface);
    border-top:1px solid var(--border); padding-bottom:calc(14px + env(safe-area-inset-bottom)); }
}


/* ===== Zu-/Absagen (RSVP) ===== */
.modal-sub{ font-size:12px; color:var(--text-muted); margin-top:2px; }
.rsvp-deadline-note{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--text-muted);
  background:var(--surface-secondary); border:1px solid var(--border); border-radius:var(--radius); padding:9px 12px; margin-bottom:12px; }
.rsvp-deadline-note i{ font-size:15px; color:var(--green); flex-shrink:0; }
.rsvp-deadline-note.locked{ color:#ff8fa0; border-color:rgba(251,113,133,.4); background:rgba(251,113,133,.08); }
.rsvp-deadline-note.locked i{ color:#fb7185; }
.rsvp-status-btns{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:10px 0; }
.rsvp-status-btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 8px;
  border-radius:var(--radius); border:1px solid var(--border); background:var(--surface-secondary);
  color:var(--text-muted); cursor:pointer; font-size:13px; font-weight:700; transition:transform .1s, border-color .15s, background .15s, color .15s; }
.rsvp-status-btn:hover{ transform:translateY(-1px); border-color:var(--border-strong); color:var(--text); }
.rsvp-status-btn i{ font-size:16px; }
.rsvp-status-btn.yes.active{   background:linear-gradient(160deg, rgba(52,211,153,.22), rgba(52,211,153,.08)); border-color:#34d399; color:#5ee9b5; box-shadow:0 4px 16px rgba(52,211,153,.18), inset 0 1px 0 rgba(255,255,255,.06); }
.rsvp-status-btn.no.active{    background:linear-gradient(160deg, rgba(251,113,133,.22), rgba(251,113,133,.08)); border-color:#fb7185; color:#ff8fa0; box-shadow:0 4px 16px rgba(251,113,133,.18), inset 0 1px 0 rgba(255,255,255,.06); }
.rsvp-status-btn.maybe.active{ background:linear-gradient(160deg, rgba(224,185,59,.22), rgba(224,185,59,.08)); border-color:#e0b93b; color:#f0cf6a; box-shadow:0 4px 16px rgba(224,185,59,.18), inset 0 1px 0 rgba(255,255,255,.06); }
.rsvp-status-btns.big .rsvp-status-btn.active{ transform:translateY(-1px); }
.rsvp-summary{ display:flex; gap:7px; flex-wrap:wrap; margin:16px 0 10px; }
.rsvp-sum{ display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:800; padding:5px 11px; border-radius:999px; background:var(--surface-secondary); border:1px solid var(--border); }
.rsvp-sum::before{ content:''; width:7px; height:7px; border-radius:50%; background:currentColor; }
.rsvp-sum.yes{ color:#34d399; } .rsvp-sum.no{ color:#fb7185; }
.rsvp-sum.maybe{ color:#e0b93b; } .rsvp-sum.open{ color:var(--text-faint); }
.rsvp-roster{ display:flex; flex-direction:column; gap:6px; max-height:300px; overflow-y:auto; padding-right:2px; }
.rsvp-row{ display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid var(--border);
  border-radius:11px; background:var(--surface); }
.rsvp-name{ font-weight:700; font-size:13px; color:var(--text); flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rsvp-badge{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:800; padding:3px 10px 3px 8px; border-radius:999px; flex-shrink:0; }
.rsvp-badge::before{ content:''; width:7px; height:7px; border-radius:50%; background:currentColor; flex-shrink:0; }
.rsvp-badge.yes{ color:#34d399; background:rgba(52,211,153,.14); }
.rsvp-badge.no{ color:#fb7185; background:rgba(251,113,133,.14); }
.rsvp-badge.maybe{ color:#e0b93b; background:rgba(224,185,59,.14); }
.rsvp-badge.open{ color:var(--text-faint); background:var(--surface-secondary); }
.rsvp-reason{ font-size:12px; color:var(--text-muted); font-style:italic; flex-shrink:0; max-width:40%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#ev-rsvp-open{ margin-top:8px; }


/* ===== Termin-Ansicht für Lese-Rollen ===== */
#ev-readonly .ev-ro-type{ display:flex; align-items:center; gap:8px; font-size:15px; font-weight:700; color:var(--text); margin-bottom:12px; }
#ev-readonly .ev-ro-type i{ color:var(--green); font-size:18px; }
#ev-readonly .ev-ro-row{ display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid var(--border); font-size:13.5px; }
#ev-readonly .ev-ro-row span{ color:var(--text-muted); }
#ev-readonly .ev-ro-row b{ color:var(--text); text-align:right; font-weight:600; min-width:0; overflow-wrap:anywhere; }
#ev-readonly .ev-ro-rsvp{ margin-top:16px; }
#ev-readonly .ev-ro-rsvp .rsvp-summary{ margin:0 0 12px; }


/* ===== Inline-RSVP in der Termin-Ansicht (Lese-Rollen) ===== */
.rsvp-inline{ margin-top:18px; padding-top:16px; border-top:1px solid var(--border); }
.rsvp-inline-head{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; color:var(--text); margin-bottom:12px; }
.rsvp-inline-head i{ color:var(--green); font-size:18px; }
.rsvp-status-btns.big{ grid-template-columns:repeat(3,1fr); gap:10px; margin:12px 0; }
.rsvp-status-btns.big .rsvp-status-btn{ flex-direction:column; gap:5px; padding:16px 8px; font-size:14px; border-width:2px; }
.rsvp-status-btns.big .rsvp-status-btn i{ font-size:22px; }
.rsvp-inline-save{ width:100%; justify-content:center; margin-top:4px; }
.rsvp-inline-hint{ display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--text-muted); margin:8px 2px 2px; line-height:1.4; }
.rsvp-inline-hint i{ font-size:14px; color:var(--green); flex-shrink:0; }
.rsvp-locked-msg{ font-size:13px; color:var(--cal-reminder,#ff6b6b); padding:10px 0; }
.rsvp-inline .rsvp-summary{ margin-top:16px; }

/* ===== Account-Verwaltung (Admin) ===== */
.acc-form{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0; align-items:end; }
.acc-form .field{ margin-bottom:0; }
.acc-form button{ grid-column:1 / -1; }
.acc-list{ display:flex; flex-direction:column; gap:5px; margin-top:6px; }
.acc-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 12px;
  border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.acc-name{ font-weight:700; font-size:14px; color:var(--text); }
.acc-meta{ font-size:12px; color:var(--text-muted); }
.acc-list-head{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  color:var(--text-muted); margin:4px 2px 8px; }
.acc-row-info{ min-width:0; }
.acc-meta{ font-size:12px; color:var(--text-muted); display:flex; align-items:center; gap:8px; margin-top:3px; flex-wrap:wrap; }
.acc-player{ display:inline-flex; align-items:center; gap:4px; }
.acc-player i{ font-size:13px; opacity:.8; }
.acc-role-badge{ display:inline-block; font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px;
  background:var(--surface-secondary); border:1px solid var(--border-strong); color:var(--text); }
.acc-role-badge.admin{ color:#00ccff; border-color:rgba(0,204,255,.45); background:rgba(0,204,255,.10); }
.acc-role-badge.trainer{ color:#9b8cff; border-color:rgba(155,140,255,.45); background:rgba(155,140,255,.10); }
.acc-role-badge.mannschaftsrat{ color:#ffb454; border-color:rgba(255,180,84,.45); background:rgba(255,180,84,.10); }
.acc-role-badge.kassenwart{ color:#3ddc84; border-color:rgba(61,220,132,.45); background:rgba(61,220,132,.10); }
.acc-row-actions{ display:flex; gap:6px; flex-shrink:0; }
.acc-act{ width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px;
  border:1px solid var(--border); background:var(--surface-secondary); color:var(--text-muted); cursor:pointer; transition:border-color .12s,color .12s; }
.acc-act:hover{ border-color:var(--green); color:var(--green); }
.acc-act.danger:hover{ border-color:var(--cal-reminder,#ff6b6b); color:var(--cal-reminder,#ff6b6b); }
/* Rollen-Auswahl in der Kontenliste - gleiche Optik wie die Aktions-Knoepfe */
.acc-role-sel{ height:34px; padding:0 8px; border-radius:8px; border:1px solid var(--border);
  background:var(--surface-secondary); color:var(--text-muted); cursor:pointer;
  font-family:inherit; font-size:12.5px; font-weight:600; transition:border-color .12s,color .12s; }
.acc-role-sel:hover{ border-color:var(--green); color:var(--text); }
.acc-role-sel:focus{ outline:none; border-color:var(--green); }
.acc-role-sel:disabled{ opacity:.45; cursor:not-allowed; }
.acc-roles{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.acc-role-chk{ display:inline-flex; align-items:center; gap:5px; padding:5px 9px; border-radius:8px;
  border:1px solid var(--border); background:var(--surface-secondary); color:var(--text-muted);
  cursor:pointer; font-size:11.5px; font-weight:600; transition:border-color .12s,color .12s; }
.acc-role-chk:hover{ border-color:var(--green); color:var(--text); }
.acc-role-chk input{ width:14px; height:14px; accent-color:var(--green); cursor:pointer; margin:0; }
.acc-role-chk:has(input:checked){ border-color:var(--green); color:var(--text); background:var(--green-light); }
.acc-role-chk input:disabled{ cursor:not-allowed; }
.acc-role-chk:has(input:disabled){ opacity:.45; cursor:not-allowed; }
.acc-empty{ padding:14px; text-align:center; color:var(--text-faint); font-size:13px; line-height:1.5; }
@media (max-width:560px){ .acc-form{ grid-template-columns:1fr; } }

/* =====================================================================
   Aufstellungs-Builder (Drag & Drop)
   ===================================================================== */
.lineup-overlay{ z-index:1200; align-items:center; }
.lineup-overlay.open{ display:flex; }
.lineup-modal{ position:relative; width:100%; max-width:520px; max-height:94vh; display:flex; flex-direction:column;
  background:var(--surface,#10161d); border:1px solid var(--border); border-radius:18px; overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.6); }
.lu-header{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px;
  border-bottom:1px solid var(--border); background:linear-gradient(180deg, rgba(0,204,255,.10), transparent); }
.lu-htitle{ font-weight:800; font-size:15px; display:flex; align-items:center; gap:8px; min-width:0; }
.lu-htitle i{ color:var(--green,#00ccff); }
.lu-ev{ color:var(--text-muted); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lu-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
  padding:10px 14px; border-bottom:1px solid var(--border); }
.lu-formation{ display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.05em; color:var(--text-muted); }
.lu-formation select{ padding:8px 12px; border-radius:10px; border:1px solid var(--border-strong); background:var(--bg);
  color:var(--text); font-weight:800; font-size:14px; letter-spacing:.04em; }
.lu-tools{ display:flex; gap:8px; flex-wrap:wrap; }
.lu-tool{ display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:10px;
  border:1px solid var(--border); background:var(--surface-secondary); color:var(--text); font-size:13px; font-weight:600; cursor:pointer;
  transition:border-color .12s, color .12s; }
.lu-tool:hover{ border-color:var(--green); color:var(--green); }
.lu-tool i{ font-size:16px; }
.lu-body{ padding:14px; overflow:auto; }

.lu-pitch{ position:relative; width:100%; max-width:430px; margin:0 auto; aspect-ratio:68/104; max-height:56vh; border-radius:14px; overflow:hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 9.09%, rgba(0,0,0,.05) 9.09% 18.18%),
    linear-gradient(160deg, #20a35a 0%, #168046 55%, #0f6638 100%);
  border:2px solid rgba(255,255,255,.22); box-shadow:inset 0 0 60px rgba(0,0,0,.35); touch-action:none; }
.lu-markings{ position:absolute; inset:0; pointer-events:none; }
.lu-markings > *{ position:absolute; box-sizing:border-box; }
.lu-mid{ left:0; right:0; top:50%; border-top:2px solid rgba(255,255,255,.45); }
.lu-circle{ left:50%; top:50%; width:28%; aspect-ratio:1; transform:translate(-50%,-50%);
  border:2px solid rgba(255,255,255,.45); border-radius:50%; }
.lu-spot{ left:50%; top:50%; width:5px; height:5px; transform:translate(-50%,-50%);
  background:rgba(255,255,255,.7); border-radius:50%; }
.lu-box{ left:50%; transform:translateX(-50%); width:56%; height:15%; border:2px solid rgba(255,255,255,.45); }
.lu-box-top{ top:0; border-top:none; border-radius:0 0 6px 6px; }
.lu-box-bottom{ bottom:0; border-bottom:none; border-radius:6px 6px 0 0; }
.lu-six{ left:50%; transform:translateX(-50%); width:30%; height:6.5%; border:2px solid rgba(255,255,255,.4); }
.lu-six-top{ top:0; border-top:none; }
.lu-six-bottom{ bottom:0; border-bottom:none; }
.lu-goal{ left:50%; transform:translateX(-50%); width:20%; height:1.6%; background:rgba(255,255,255,.22);
  border:2px solid rgba(255,255,255,.55); }
.lu-goal-top{ top:0; }
.lu-goal-bottom{ bottom:0; }

.lu-slots{ position:absolute; inset:0; }
.lu-slot{ position:absolute; transform:translate(-50%,-50%); width:60px; display:flex; flex-direction:column; align-items:center; }
.lu-token{ width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:14px; letter-spacing:.02em; }
.lu-token.filled{ color:#04222e; background:#12b6e6;
  border:2px solid #eafdff; box-shadow:0 4px 10px rgba(0,0,0,.4); }
.lu-token.empty{ background:rgba(0,0,0,.20); border:2px dashed rgba(255,255,255,.55); color:rgba(255,255,255,.85);
  font-size:10px; font-weight:800; letter-spacing:.05em; }
.lu-name{ margin-top:3px; font-size:10.5px; font-weight:800; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.8);
  max-width:66px; text-align:center; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lu-chip{ display:flex; flex-direction:column; align-items:center; cursor:grab; touch-action:none; }
.lu-chip:active{ cursor:grabbing; }
.lu-dragging{ opacity:.30; }
.lu-slot.lu-drop-hover .lu-token{ box-shadow:0 0 0 3px var(--green,#00ccff), 0 4px 10px rgba(0,0,0,.4); }

.lu-benchwrap{ margin-top:14px; }
.lu-bench-head{ font-size:12px; font-weight:700; color:var(--text-muted); display:flex; align-items:center; gap:6px; margin:0 2px 8px; }
.lu-bench{ display:flex; flex-wrap:nowrap; gap:8px; min-height:56px; padding:10px; border-radius:12px; overflow-x:auto;
  -webkit-overflow-scrolling:touch; scrollbar-width:thin;
  background:var(--surface-secondary); border:1px dashed var(--border-strong, var(--border)); transition:border-color .12s, background .12s; }
.lu-bench.lu-drop-hover{ border-color:var(--green,#00ccff); background:rgba(0,204,255,.07); }
.lu-bench .lu-chip{ flex:0 0 auto; flex-direction:row; gap:8px; padding:6px 14px 6px 6px; border-radius:999px;
  background:var(--bg); border:1px solid var(--border); }
.lu-bench .lu-chip .lu-token{ width:30px; height:30px; font-size:12px; }
.lu-bname{ font-size:13px; font-weight:700; color:var(--text); }
.lu-bench-empty{ width:100%; text-align:center; color:var(--text-faint); font-size:13px; padding:8px; }

.lu-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border-top:1px solid var(--border); }
.lu-foot-hint{ font-size:11px; color:var(--text-muted); display:flex; align-items:center; gap:6px; line-height:1.3; }
.lu-foot-hint i{ color:var(--green,#00ccff); flex-shrink:0; }

.lu-ghost{ position:fixed; z-index:2000; left:0; top:0; pointer-events:none;
  transform:translate(-50%,-50%) scale(1.06); filter:drop-shadow(0 10px 18px rgba(0,0,0,.55)); }
body.lu-no-select{ user-select:none; -webkit-user-select:none; }

@media (max-width:560px){
  .lu-slot{ width:54px; }
  .lu-token{ width:40px; height:40px; font-size:13px; }
  .lu-name{ font-size:10px; max-width:58px; }
  .lu-tool span{ display:none; }
  .lu-tool{ padding:8px 10px; }
}

/* Aufstellung: Tipp-Auswahl + Touch-Affordances */
.lu-slot{ cursor:pointer; }
.lu-token.empty{ transition:border-color .12s, background .12s; }
.lu-slot:hover .lu-token.empty{ border-color:var(--green,#00ccff); color:#fff; }
.lu-picker{ position:absolute; inset:0; z-index:5; display:flex; align-items:flex-end; justify-content:center;
  background:rgba(0,0,0,.55); backdrop-filter:blur(2px); }
.lu-picker[hidden]{ display:none; }
.lu-picker-card{ width:100%; max-width:520px; max-height:80%; display:flex; flex-direction:column;
  background:var(--surface,#10161d); border:1px solid var(--border); border-radius:18px 18px 0 0;
  box-shadow:0 -10px 40px rgba(0,0,0,.5); animation:luSheetUp .18s ease; }
@keyframes luSheetUp{ from{ transform:translateY(16px); opacity:.6; } to{ transform:translateY(0); opacity:1; } }
.lu-picker-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px;
  border-bottom:1px solid var(--border); font-weight:800; font-size:14px; }
.lu-picker-list{ overflow-y:auto; padding:10px; display:flex; flex-direction:column; gap:6px; }
.lu-pick{ display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px; border-radius:12px;
  border:1px solid var(--border); background:var(--surface-secondary); color:var(--text); font-size:14px; font-weight:600;
  cursor:pointer; text-align:left; transition:border-color .12s, background .12s; }
.lu-pick:hover{ border-color:var(--green,#00ccff); }
.lu-pick.active{ border-color:var(--green,#00ccff); background:rgba(0,204,255,.10); }
.lu-pick-ava{ width:32px; height:32px; flex:0 0 auto; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:12px; color:#04222e; background:#12b6e6; }
.lu-pick-name{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lu-pick-tag{ font-size:11px; font-weight:700; color:var(--green,#00ccff); }
.lu-pick-tag.muted{ color:var(--text-faint); }
.lu-pick-clear{ justify-content:flex-start; gap:8px; color:var(--cal-reminder,#ff6b6b); border-color:rgba(255,107,107,.35); }
.lu-pick-clear:hover{ border-color:var(--cal-reminder,#ff6b6b); background:rgba(255,107,107,.08); }
.lu-pick-empty{ padding:18px; text-align:center; color:var(--text-faint); font-size:13px; }

@media (max-width:560px){
  .lu-pitch{ max-height:48vh; }
  .lu-body{ padding:12px; }
  .lu-bench-head{ font-size:11.5px; }
}

/* Aufstellungs-Zähler am Button + Read-only Termininfo-Feinschliff */
.ev-lineup-count{ display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px;
  padding:0 6px; border-radius:999px; background:var(--green,#00ccff); color:var(--on-accent,#04222e);
  font-size:11px; font-weight:800; margin-left:2px; }

/* =====================================================================
   Spieler & Gegner verwalten (Admin)
   ===================================================================== */
.roster-cols{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:14px 0 6px; }
.roster-col{ min-width:0; }
.roster-col-head{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:800; color:var(--text); margin-bottom:8px; }
.roster-col-head i{ color:var(--green,#00ccff); }
.roster-count{ margin-left:auto; font-size:11px; font-weight:800; color:var(--text-muted);
  background:var(--surface-secondary); border:1px solid var(--border); border-radius:999px; padding:1px 9px; }
.roster-add{ display:flex; gap:8px; margin-bottom:10px; }
.roster-add input{ flex:1; min-width:0; padding:9px 12px; border-radius:10px; border:1px solid var(--border-strong);
  background:var(--bg); color:var(--text); font-size:14px; }
.roster-add input:focus{ outline:none; border-color:var(--green,#00ccff); }
.roster-add .kasse-btn{ flex:0 0 auto; }
.roster-list{ display:flex; flex-wrap:wrap; gap:6px; align-content:flex-start; padding:10px; border-radius:12px;
  background:var(--surface-secondary); border:1px solid var(--border); min-height:48px; max-height:220px; overflow-y:auto; }
.roster-chip{ display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px;
  background:var(--bg); border:1px solid var(--border); font-size:13px; font-weight:600; color:var(--text); }
.roster-chip.custom{ border-color:rgba(0,204,255,.4); }
.roster-del{ display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%;
  border:none; background:transparent; color:var(--text-muted); cursor:pointer; padding:0; }
.roster-del:hover{ color:var(--cal-reminder,#ff6b6b); background:rgba(255,107,107,.12); }
.roster-empty{ color:var(--text-faint); font-size:13px; padding:6px 4px; }
@media (max-width:560px){ .roster-cols{ grid-template-columns:1fr; } }

/* Aufstellung: „Bild"-Export-Button hervorheben */
.lu-tool.lu-tool-accent{ background:rgba(0,204,255,.12); border-color:rgba(0,204,255,.45); color:var(--green,#00ccff); }
.lu-tool.lu-tool-accent:hover{ background:rgba(0,204,255,.20); border-color:var(--green,#00ccff); color:var(--green,#00ccff); }

/* =====================================================================
   Persönliche Kassenansicht ("Meine Mannschaftskasse")
   ===================================================================== */
.kasse-personal{ margin:0 0 18px; padding:16px 18px; border-radius:16px;
  background:linear-gradient(180deg, rgba(0,204,255,.07), var(--surface-secondary));
  border:1px solid var(--border); }
.kasse-personal[hidden]{ display:none; }
.kp-head{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:800; color:var(--text); }
.kp-head i{ color:var(--green,#00ccff); font-size:20px; }
.kp-name{ margin-left:auto; font-size:12px; font-weight:700; color:var(--text-muted); }
.kp-balance{ margin:14px 0 4px; padding:14px 16px; border-radius:12px; border:1px solid var(--border);
  background:var(--bg); display:flex; flex-direction:column; gap:2px; }
.kp-bal-label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); }
.kp-bal-val{ font-size:26px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--text); }
.kp-balance.owe{ border-color:rgba(255,107,107,.45); background:rgba(255,107,107,.08); }
.kp-balance.owe .kp-bal-val{ color:var(--cal-reminder,#ff6b6b); }
.kp-balance.credit{ border-color:rgba(61,220,132,.45); background:rgba(61,220,132,.08); }
.kp-balance.credit .kp-bal-val{ color:#3ddc84; }
.kp-balance.even .kp-bal-val{ color:var(--green,#00ccff); }
.kp-breakdown{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:12px 0 4px; }
.kp-breakdown > div{ display:flex; flex-direction:column; gap:3px; padding:10px 12px; border-radius:10px;
  background:var(--surface-secondary); border:1px solid var(--border); }
.kp-breakdown span{ font-size:11px; color:var(--text-muted); }
.kp-breakdown b{ font-size:15px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--text); }
.kp-breakdown b.up{ color:var(--cal-reminder,#ff6b6b); }
.kp-breakdown b.down{ color:#3ddc84; }
.kp-list-head{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); margin:14px 2px 8px; }
.kp-list{ display:flex; flex-direction:column; gap:6px; max-height:280px; overflow-y:auto; }
.kp-row{ display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px;
  background:var(--bg); border:1px solid var(--border); }
.kp-row-main{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.kp-row-label{ font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kp-row-date{ font-size:11px; color:var(--text-faint); }
.kp-row-amt{ font-size:14px; font-weight:800; font-variant-numeric:tabular-nums; flex-shrink:0; }
.kp-row-amt.fine{ color:var(--cal-reminder,#ff6b6b); }
.kp-row-amt.pay{ color:#3ddc84; }
@media (max-width:560px){ .kp-breakdown{ grid-template-columns:1fr; } .kp-bal-val{ font-size:22px; } }

/* Deadline Datum+Uhrzeit nebeneinander */
.field-inline{ display:flex; gap:8px; }
.field-inline > input[type="date"]{ flex:1 1 60%; min-width:0; }
.field-inline > input[type="time"]{ flex:1 1 40%; min-width:0; }

/* Aufstellung: „Nicht nominiert"-Zone */
.lu-notnomwrap{ margin-top:14px; }
.lu-notnom-head{ display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:var(--cal-reminder,#ff6b6b); margin:0 2px 8px; }
.lu-notnom-head i{ font-size:15px; }
.lu-notnom-head #lu-notnom-count{ margin-left:auto; font-size:11px; font-weight:800; color:var(--cal-reminder,#ff6b6b);
  background:rgba(255,107,107,.12); border:1px solid rgba(255,107,107,.35); border-radius:999px; padding:1px 9px; }
.lu-notnom{ display:flex; flex-wrap:nowrap; gap:8px; min-height:54px; padding:10px; border-radius:12px; overflow-x:auto;
  -webkit-overflow-scrolling:touch; background:rgba(255,107,107,.05); border:1px dashed rgba(255,107,107,.4); transition:border-color .12s, background .12s; }
.lu-notnom.lu-drop-hover{ border-color:var(--cal-reminder,#ff6b6b); background:rgba(255,107,107,.12); }
.lu-notnom .lu-chip{ flex:0 0 auto; flex-direction:row; gap:8px; padding:6px 14px 6px 6px; border-radius:999px;
  background:var(--bg); border:1px solid rgba(255,107,107,.35); }
.lu-token.off{ width:30px; height:30px; font-size:12px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:800; color:#fff; background:linear-gradient(180deg,#ff8a8a,#ff5c5c); border:2px solid #ffd9d9; }
.lu-notnom-empty{ color:var(--text-faint); font-size:12.5px; padding:8px; white-space:normal; }

/* Roter „nicht nominiert"-Hinweis im Termin */
.ev-notnom-note{ display:flex; align-items:center; gap:8px; margin:12px 0 4px; padding:11px 14px; border-radius:12px;
  background:rgba(255,107,107,.10); border:1px solid rgba(255,107,107,.45); color:var(--cal-reminder,#ff6b6b);
  font-size:13.5px; font-weight:600; }
.ev-notnom-note i{ font-size:18px; flex-shrink:0; }

/* Push-Aktivieren-Button im Benachrichtigungs-Panel */
.push-toggle.active{ color:var(--green,#00ccff); border-color:rgba(0,204,255,.45) !important; background:rgba(0,204,255,.10) !important; }

/* =====================================================================
   „Nicht nominiert"-Marker (überall wo der Spieler das Spiel sieht)
   ===================================================================== */
.notnom-dot{ display:inline-flex; align-items:center; justify-content:center; margin-left:5px;
  color:var(--cal-reminder,#ff6b6b); vertical-align:middle; }
.notnom-dot i{ font-size:13px; }
.notnom-badge{ display:inline-flex; align-items:center; gap:4px; margin-left:8px; padding:1px 8px; border-radius:999px;
  font-size:11px; font-weight:800; color:var(--cal-reminder,#ff6b6b);
  background:rgba(255,107,107,.12); border:1px solid rgba(255,107,107,.4); vertical-align:middle; white-space:nowrap; }
.notnom-badge i{ font-size:12px; }

/* =====================================================================
   Gruppierte Benachrichtigungen (Zu-/Absagen pro Spieltag)
   ===================================================================== */
.notif-group{ margin:0 0 10px; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--surface-secondary); }
.notif-group-head{ display:flex; align-items:center; gap:8px; padding:10px 12px; font-size:12.5px; font-weight:800;
  color:var(--text); background:rgba(0,204,255,.07); border-bottom:1px solid var(--border); }
.notif-group-head i{ color:var(--green,#00ccff); font-size:16px; }
.notif-group-badge{ margin-left:auto; min-width:20px; text-align:center; font-size:11px; font-weight:800; color:#04222e;
  background:var(--green,#00ccff); border-radius:999px; padding:1px 7px; }
.notif-group-body{ display:flex; flex-direction:column; }
.notif-row{ position:relative; display:flex; align-items:center; gap:10px; padding:9px 12px 9px 14px; cursor:pointer;
  border-bottom:1px solid var(--border); }
.notif-row:last-child{ border-bottom:none; }
.notif-row.unread{ background:rgba(0,204,255,.05); }
.notif-row.unread::before{ content:''; position:absolute; left:5px; top:50%; transform:translateY(-50%);
  width:5px; height:5px; border-radius:50%; background:var(--green,#00ccff); }
.notif-row-main{ display:flex; flex-direction:column; gap:1px; min-width:0; flex:1; }
.notif-row-title{ font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notif-row-msg{ font-size:11.5px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notif-row-time{ font-size:10.5px; color:var(--text-faint); flex-shrink:0; }
.notif-row .notif-item-del{ position:static; flex-shrink:0; order:3; }

/* =====================================================================
   Mobile: Sticky Bottom-Navigation + Schnellaktionen + größere Touch-Flächen
   ===================================================================== */
.bottom-nav{ display:none; }
.qa-backdrop{ position:fixed; inset:0; z-index:94; background:rgba(0,0,0,.5); opacity:0; pointer-events:none; transition:opacity .2s; }
.qa-backdrop.open{ opacity:1; pointer-events:auto; }
.qa-sheet{ position:fixed; left:0; right:0; bottom:0; z-index:95; transform:translateY(115%);
  transition:transform .26s cubic-bezier(.2,.8,.2,1);
  background:var(--surface,#141d28); border:1px solid var(--border); border-bottom:none;
  border-top-left-radius:22px; border-top-right-radius:22px;
  padding:10px 16px calc(22px + env(safe-area-inset-bottom)); box-shadow:0 -10px 40px rgba(0,0,0,.4); }
.qa-sheet.open{ transform:translateY(0); }
.qa-handle{ width:42px; height:4px; border-radius:2px; background:var(--border); margin:6px auto 14px; }
.qa-title{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:800; color:var(--text); margin:0 2px 14px; }
.qa-title i{ color:var(--green,#00ccff); font-size:18px; }
.qa-actions{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.qa-action{ display:flex; align-items:center; gap:12px; min-height:60px; padding:12px 14px; border-radius:14px;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text); font-size:14px; font-weight:600;
  cursor:pointer; text-align:left; -webkit-tap-highlight-color:transparent; }
.qa-action:active{ background:rgba(0,204,255,.10); border-color:rgba(0,204,255,.4); }
.qa-action-ic{ width:40px; height:40px; flex-shrink:0; border-radius:11px; display:flex; align-items:center; justify-content:center;
  background:rgba(0,204,255,.12); color:var(--green,#00ccff); font-size:21px; }
.qa-action-label{ min-width:0; }

@media (max-width:768px){
  .bottom-nav{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:36;
    align-items:flex-start; justify-content:space-around;
    height:calc(60px + env(safe-area-inset-bottom));
    padding:0 4px env(safe-area-inset-bottom);
    background:rgba(15,22,32,.94); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
    border-top:1px solid var(--border);
  }
  .bottom-nav-item{
    flex:1 1 0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    min-height:58px; padding:8px 4px 6px; border:none; background:none; color:var(--text-muted);
    font-size:10.5px; font-weight:700; cursor:pointer; -webkit-tap-highlight-color:transparent;
  }
  .bottom-nav-item i{ font-size:23px; line-height:1; }
  .bottom-nav-item.active{ color:var(--green,#00ccff); }
  .bottom-nav-item.active i{ filter:none; }
  .bottom-nav-fab{
    flex:0 0 auto; width:58px; height:58px; margin-top:-20px; border-radius:50%; border:3px solid var(--bg,#0f1620);
    background:#12b6e6; color:#04222e; font-size:27px; cursor:pointer;
    display:flex; align-items:center; justify-content:center; box-shadow:0 6px 20px rgba(0,0,0,0.45);
    transition:transform .2s; -webkit-tap-highlight-color:transparent;
  }
  .bottom-nav-fab.open{ transform:rotate(135deg); }

  /* Platz schaffen, damit Inhalte nicht hinter der Bottom-Nav liegen */
  .main{ padding-bottom:calc(86px + env(safe-area-inset-bottom)) !important; }
  /* Seiten-Panels über der Bottom-Nav enden lassen */
  .notif-panel{ padding-bottom:calc(70px + env(safe-area-inset-bottom)); }

  /* Größere Touch-Flächen */
  .nav-item{ min-height:48px; }
  .kasse-btn, .cal-add-btn, .res-btn, .login-btn{ min-height:46px; }
  .kasse-tab{ min-height:42px; padding-left:14px; padding-right:14px; }
  .cmd-card{ min-height:92px; }
  .lu-tool{ min-height:50px; }
  .notif-panel-actions button{ min-height:46px; }
  .filter-chip, .cal-filter{ min-height:40px; }
  .modal-close, .notif-bell, .hamburger{ min-width:44px; min-height:44px; }
}

/* PayPal-Button in der Mannschaftskasse (für alle Rollen sichtbar) */
.kasse-btn.paypal-btn{ background:#0070ba; border-color:#0070ba; color:#fff; text-decoration:none;
  display:inline-flex; align-items:center; gap:6px; font-weight:700; }
.kasse-btn.paypal-btn:hover{ background:#005ea6; border-color:#005ea6; }
.kasse-btn.paypal-btn i{ font-size:17px; }

/* PWA-Update-Hinweis (Versionsprüfung) */
#pwa-update-bar{ position:fixed; left:50%; bottom:84px; transform:translate(-50%,140%);
  z-index:4000; display:flex; align-items:center; gap:12px;
  background:#11202e; color:#fff; border:1px solid rgba(0,204,255,.45);
  box-shadow:0 10px 30px rgba(0,0,0,.45); border-radius:14px; padding:10px 12px 10px 16px;
  max-width:calc(100% - 28px); transition:transform .28s ease, opacity .28s ease; opacity:0; }
#pwa-update-bar.show{ transform:translate(-50%,0); opacity:1; }
#pwa-update-bar .pwa-update-text{ display:inline-flex; align-items:center; gap:8px; font-weight:600; white-space:nowrap; }
#pwa-update-bar .pwa-update-text i{ color:#00ccff; font-size:18px; }
#pwa-update-bar .pwa-update-btn{ background:#00ccff; color:#04222e; border:0; border-radius:9px;
  padding:8px 14px; font-weight:800; cursor:pointer; }
#pwa-update-bar .pwa-update-btn:hover{ background:#33d6ff; }
#pwa-update-bar .pwa-update-x{ background:transparent; color:rgba(255,255,255,.6); border:0;
  font-size:22px; line-height:1; cursor:pointer; padding:0 4px; }
#pwa-update-bar .pwa-update-x:hover{ color:#fff; }
@media (max-width:768px){ #pwa-update-bar{ bottom:96px; } }

/* Strafenbefreiung: aktiv-Badge (grün) */
.kasse-tag-exempt{ background:rgba(55,211,155,.16); color:#37d39b; border-color:rgba(55,211,155,.42); }
.kasse-tag-exempt i{ font-size:13px; vertical-align:-1px; }

/* Persönliche Befreiungs-Banner (Spieler-Ansicht) */
.kp-exempt{ display:flex; align-items:center; gap:8px; margin:10px 0 4px; padding:10px 12px;
  border-radius:var(--radius); background:rgba(55,211,155,.14); color:#37d39b;
  border:1px solid rgba(55,211,155,.4); font-weight:600; font-size:13.5px; }
.kp-exempt.upcoming{ background:var(--green-light); color:var(--green-dark); border-color:var(--border-strong); }
.kp-exempt i{ font-size:18px; flex:0 0 auto; }

/* Hinweis im Buchen-Modal: befreite Spieler werden ausgenommen */
.kasse-hint-exempt{ display:flex; align-items:center; gap:7px; color:#37d39b;
  background:rgba(55,211,155,.12); border:1px solid rgba(55,211,155,.34);
  border-radius:var(--radius); padding:8px 10px; font-weight:600; }
.kasse-hint-exempt i{ font-size:16px; }

/* Protokoll / Audit */
.kasse-audit-row{ padding:10px 2px; border-bottom:1px solid var(--border); }
.kasse-audit-top{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.kasse-audit-act{ font-weight:700; color:var(--text); font-size:14px; }
.kasse-audit-at{ color:var(--text-faint); font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.kasse-audit-sub{ color:var(--text-muted); font-size:13px; margin-top:2px; }
.kasse-audit-actor{ color:var(--green-dark); font-weight:600; }

/* ============================================================
   Vereinszentrale (Übersicht / Hub)
   ============================================================ */
.hub-header{ display:flex; align-items:center; gap:14px; margin:2px 0 20px; }
.hub-crest{ flex:0 0 auto; width:56px; height:56px; border-radius:16px; display:grid; place-items:center;
  background:linear-gradient(150deg, rgba(0,204,255,.16), rgba(0,204,255,.04)); border:1px solid rgba(0,204,255,.28);
  box-shadow:0 6px 20px -8px rgba(0,0,0,0.45); overflow:hidden; }
.hub-crest img{ width:42px; height:42px; object-fit:contain; }
.hub-crest-fb{ width:100%; height:100%; display:grid; place-items:center; color:var(--green); font-size:26px; }
.hub-header-text{ flex:1; min-width:0; }
.hub-hello{ font-family:'Montserrat',sans-serif; font-weight:800; font-size:27px; letter-spacing:-.02em; color:var(--text); line-height:1.1; }
.hub-club{ display:inline-flex; align-items:center; gap:6px; color:var(--text-muted); font-size:12.5px; font-weight:600; margin-top:4px; flex-wrap:wrap; }
.hub-club i{ color:var(--green); }
.hub-date-sep{ opacity:.4; }
.hub-bell{ flex:0 0 auto; width:46px; height:46px; border-radius:14px; border:1px solid var(--border-strong);
  background:var(--surface); color:var(--green-dark); font-size:21px; display:grid; place-items:center; cursor:pointer; transition:background .15s; }
.hub-bell:hover{ background:var(--surface-secondary); }

/* Hero */
.hub-hero{ position:relative; overflow:hidden; border-radius:var(--radius-lg);
  background:linear-gradient(160deg,#16243a 0%, #101725 58%, #0c121d 100%);
  border:1px solid var(--border-strong); padding:20px; box-shadow:var(--shadow); }
.hub-hero.is-match{ border-color:rgba(0,204,255,.32); }
.hub-hero-glow{ position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(440px 220px at 82% -22%, rgba(0,204,255,.22), transparent 70%); }
.hub-hero>*{ position:relative; z-index:1; }
.hub-hero-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.hub-eyebrow{ display:inline-flex; align-items:center; gap:7px; font-weight:800; font-size:12px; letter-spacing:.07em; text-transform:uppercase; color:var(--green-dark); }
.hub-hero-open{ width:34px; height:34px; border-radius:10px; border:1px solid var(--border-strong); background:rgba(255,255,255,.04); color:var(--text-muted); cursor:pointer; display:grid; place-items:center; }
.hub-hero-open:hover{ color:var(--text); background:rgba(255,255,255,.09); }

/* Matchup */
.hub-vs{ display:grid; grid-template-columns:1fr auto 1fr; align-items:start; gap:10px; margin:20px 0 16px; }
.hub-team{ display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; min-width:0; }
.hub-badge{ width:66px; height:66px; border-radius:18px; display:grid; place-items:center; font-family:'Montserrat',sans-serif; font-weight:800; font-size:24px; color:#cfe9f3; background:linear-gradient(150deg,#202d42,#161f2e); border:1px solid var(--border-strong); }
.hub-team.is-us .hub-badge{ color:var(--on-accent); background:var(--accent-grad,#12b6e6); border:none; box-shadow:var(--accent-glow,0 10px 30px -10px rgba(0,0,0,0.45)); }
.hub-team-name{ font-weight:700; font-size:14px; color:var(--text); line-height:1.25; max-width:140px; }
.hub-team.is-us .hub-team-name{ color:#fff; }
.hub-vs-mid{ display:flex; flex-direction:column; align-items:center; gap:6px; padding-top:14px; }
.hub-vs-x{ font-family:'Montserrat',sans-serif; font-weight:900; font-size:22px; color:var(--text-faint); }
.hub-homeaway{ font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; padding:3px 9px; border-radius:999px; white-space:nowrap; }
.hub-homeaway.home{ color:#37d39b; background:rgba(55,211,155,.15); }
.hub-homeaway.away{ color:#ffb454; background:rgba(255,180,84,.15); }
.hub-evtitle{ display:flex; align-items:center; gap:10px; font-family:'Montserrat',sans-serif; font-weight:800; font-size:21px; color:var(--text); margin:16px 0 12px; }
.hub-evdot{ width:12px; height:12px; border-radius:50%; flex:0 0 auto; }

/* Countdown */
.hub-countdown{ display:flex; align-items:center; gap:10px; justify-content:center; background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:11px 14px; }
.hub-countdown i{ color:var(--green); font-size:20px; }
.hub-countdown .cd-text{ font-family:'Montserrat',sans-serif; font-weight:800; font-size:18px; color:var(--text); font-variant-numeric:tabular-nums; }
.hub-countdown .cd-target{ color:var(--text-muted); font-size:12.5px; }

/* Info-Chips */
.hub-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.hub-chip{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:var(--text-muted); background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:999px; padding:6px 11px; }
.hub-chip i{ font-size:15px; color:var(--text-faint); }
.hub-chip-accent{ color:var(--text-muted); border-color:var(--border); background:rgba(255,255,255,.04); }
.hub-chip-accent i{ color:var(--green); }

/* RSVP im Hero */
.hub-rsvp{ margin-top:16px; padding-top:14px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:12px; }
.hub-rsvp-sums{ display:flex; gap:8px; flex-wrap:wrap; }
.hub-sum{ display:inline-flex; align-items:center; gap:5px; font-weight:800; font-size:14px; padding:5px 11px; border-radius:10px; border:1px solid var(--border); color:var(--text-muted); }
.hub-sum i{ font-size:15px; }
.hub-sum.yes{ color:#37d39b; background:rgba(55,211,155,.12); border-color:rgba(55,211,155,.3); }
.hub-sum.no{ color:#ff6b6b; background:rgba(255,107,107,.12); border-color:rgba(255,107,107,.3); }
.hub-sum.maybe{ color:#ffb454; background:rgba(255,180,84,.12); border-color:rgba(255,180,84,.3); }
.hub-deadline{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-muted); }
.hub-deadline.locked{ color:#ff6b6b; }
.hub-mystatus{ font-weight:700; font-size:14px; padding:9px 12px; border-radius:10px; text-align:center; }
.hub-mystatus.yes{ color:#37d39b; background:rgba(55,211,155,.13); }
.hub-mystatus.no{ color:#ff6b6b; background:rgba(255,107,107,.13); }
.hub-mystatus.maybe{ color:#ffb454; background:rgba(255,180,84,.13); }
.hub-mystatus.open{ color:var(--text-muted); background:rgba(255,255,255,.05); }
.hub-rsvp-btns{ display:flex; gap:8px; flex-wrap:wrap; }
.hub-btn{ flex:1 1 auto; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:46px; padding:0 16px; border-radius:12px; font-weight:800; font-size:14px; cursor:pointer; border:1px solid transparent; }
.hub-btn.yes{ background:var(--accent-grad,#12b6e6); color:var(--on-accent); box-shadow:var(--accent-glow,0 10px 30px -12px rgba(0,0,0,0.45)); }
.hub-btn.yes:hover{ filter:brightness(1.07); }
.hub-btn.ghost{ background:rgba(255,255,255,.05); border-color:var(--border-strong); color:var(--text); }
.hub-btn.ghost:hover{ background:rgba(255,255,255,.1); }

/* Hero leer */
.hub-hero-empty{ display:flex; align-items:center; gap:14px; }
.hub-hero-empty-ico{ width:54px; height:54px; border-radius:14px; display:grid; place-items:center; background:rgba(255,255,255,.05); color:var(--text-faint); font-size:26px; flex:0 0 auto; }
.hub-hero-empty-txt{ display:flex; flex-direction:column; gap:2px; }
.hub-hero-empty-txt b{ color:var(--text); font-size:16px; }
.hub-hero-empty-txt span{ color:var(--text-muted); font-size:13px; }

/* Schnellkacheln */
.hub-quick{ display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; margin:14px 0 6px; }
.hub-tile{ display:flex; align-items:center; gap:10px; padding:13px; border-radius:14px; cursor:pointer; text-align:left; background:var(--surface); border:1px solid var(--border); color:var(--text); transition:transform .12s var(--ease,ease), background .15s; }
.hub-tile:hover{ background:var(--surface-secondary); transform:translateY(-2px); }
.hub-tile-ico{ width:42px; height:42px; flex:0 0 auto; border-radius:12px; display:grid; place-items:center; font-size:21px; color:var(--green); background:linear-gradient(150deg, rgba(0,204,255,.2), rgba(0,204,255,.05)); border:1px solid rgba(0,204,255,.22); transition:transform .12s; }
.hub-tile:hover .hub-tile-ico{ transform:scale(1.08); }
.hub-tile-lbl{ font-weight:700; font-size:14px; flex:1 1 auto; }
.hub-tile-arr{ color:var(--text-faint); font-size:16px; }

@media (max-width:768px){
  .hub-hello{ font-size:22px; }
  .hub-crest{ width:48px; height:48px; border-radius:13px; }
  .hub-crest img{ width:36px; height:36px; }
  .hub-hero{ padding:16px; }
  .hub-badge{ width:56px; height:56px; font-size:20px; border-radius:15px; }
  .hub-team-name{ font-size:12.5px; }
  .hub-vs{ gap:6px; }
  .hub-btn{ flex:1 1 100%; }
}

.hub-countdown .cd-target{ margin-left:4px; }

/* Personalisierte Statuszeile (Kassenstand) */
.hub-status{ margin:-6px 0 14px; }
.hub-status:empty{ display:none; }
.hub-status-chip{ display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; padding:7px 13px; border-radius:999px; cursor:pointer; border:1px solid var(--border-strong); background:var(--surface); color:var(--text-muted); }
.hub-status-chip b{ font-weight:800; }
.hub-status-chip i{ font-size:16px; }
.hub-status-chip.owe{ color:#ff6b6b; border-color:rgba(255,107,107,.32); background:rgba(255,107,107,.08); }
.hub-status-chip.credit{ color:#37d39b; border-color:rgba(55,211,155,.32); background:rgba(55,211,155,.08); }

/* Formstreifen (letzte Ergebnisse) */
.hub-form{ display:flex; align-items:center; gap:10px; margin-top:14px; }
.hub-form-lbl{ font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); }
.hub-form-pills{ display:flex; gap:6px; }
.hub-form-pill{ width:26px; height:26px; border-radius:8px; display:grid; place-items:center; font-weight:800; font-size:13px; color:#fff; }
.hub-form-pill.w{ background:#2bb673; }
.hub-form-pill.d{ background:#6b7686; }
.hub-form-pill.l{ background:#e0556a; }

/* Rückennummer-Badge in der Kassen-Spielerliste */
.kasse-num{ display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 5px; margin-right:7px;
  border-radius:6px; background:var(--green-light); color:var(--green-dark); font-weight:800; font-size:12px;
  font-variant-numeric:tabular-nums; vertical-align:1px; }

/* ============================================================
   RSVP-Verwaltung (Trainer): Zu-/Absagen steuern – Design-Politur
   ============================================================ */
.rsvp-section-label{ display:flex; align-items:center; gap:7px; font-size:11.5px; font-weight:800;
  letter-spacing:.05em; text-transform:uppercase; color:var(--text-faint); margin:2px 0 8px; }
.rsvp-section-label i{ font-size:15px; color:var(--green); }

/* Hinweis-Banner für Trainer */
.rsvp-manage-hint{ display:flex; align-items:center; gap:9px; font-size:12.5px; font-weight:600;
  color:var(--green-dark); background:var(--green-light); border:1px solid rgba(0,204,255,.30);
  border-radius:var(--radius); padding:9px 12px; margin:6px 0 10px; line-height:1.35; }
.rsvp-manage-hint i{ font-size:17px; color:var(--green); flex:0 0 auto; }

/* Roster-Zeilen: links farbiger Statusstreifen, damit alles scanbar ist */
.rsvp-roster{ gap:7px; }
.rsvp-row{ border-left:3px solid var(--border-strong); border-radius:11px; transition:border-color .15s, background .15s, transform .1s; }
.rsvp-row:hover{ background:var(--surface-secondary); }
.rsvp-row.st-yes{   border-left-color:#37d39b; }
.rsvp-row.st-no{    border-left-color:#ff6b6b; }
.rsvp-row.st-maybe{ border-left-color:#ffb454; }
.rsvp-row.st-open{  border-left-color:var(--border-strong); }
.rsvp-row.manage{ flex-wrap:wrap; padding:9px 11px; }
.rsvp-row.manage .rsvp-name{ flex:1 1 auto; min-width:0; }
.rsvp-row.manage .rsvp-reason{ flex-basis:100%; margin-top:2px; }

/* Trainer-Steuerbuttons (Zusagen / Unsicher / Absagen) */
.rsvp-set{ display:inline-flex; gap:6px; flex:0 0 auto; }
.rsvp-set-btn{ width:36px; height:36px; display:grid; place-items:center; border-radius:10px;
  border:1px solid var(--border-strong); background:var(--surface-secondary); color:var(--text-faint);
  cursor:pointer; font-size:17px; transition:transform .1s ease, background .15s, color .15s, border-color .15s; }
.rsvp-set-btn:hover{ color:var(--text); transform:translateY(-1px); }
.rsvp-set-btn:active{ transform:translateY(0); }
.rsvp-set-btn.yes.active{   background:rgba(55,211,155,.18); border-color:#37d39b; color:#37d39b; box-shadow:0 0 0 1px rgba(55,211,155,.25) inset; }
.rsvp-set-btn.no.active{    background:rgba(255,107,107,.18); border-color:#ff6b6b; color:#ff6b6b; box-shadow:0 0 0 1px rgba(255,107,107,.25) inset; }
.rsvp-set-btn.maybe.active{ background:rgba(255,180,84,.18); border-color:#ffb454; color:#ffb454; box-shadow:0 0 0 1px rgba(255,180,84,.25) inset; }

@media (max-width:768px){
  .rsvp-set-btn{ width:40px; height:40px; font-size:18px; }   /* größere Touch-Ziele */
  .rsvp-row.manage{ gap:6px; }
}

/* Rückennummer-Eingabe in der Spielerverwaltung (Roster-Chip) */
.roster-chip.has-num{ padding-left:5px; }
.roster-num{ width:40px; flex:0 0 auto; text-align:center; padding:4px 4px; border-radius:8px;
  border:1px solid var(--border-strong); background:var(--surface-secondary); color:var(--green-dark);
  font-weight:800; font-size:12px; line-height:1.2; -moz-appearance:textfield; appearance:textfield; }
.roster-num::-webkit-outer-spin-button,.roster-num::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.roster-num::placeholder{ color:var(--text-faint); font-weight:700; }
.roster-num:focus{ outline:none; border-color:var(--green); color:var(--green); background:var(--bg); }

/* Gastspieler (Termin-Modal + RSVP-Roster) */
.ev-guest-add{ display:flex; gap:8px; margin-bottom:8px; }
.ev-guest-add input{ flex:1; min-width:0; padding:9px 12px; border-radius:10px; border:1px solid var(--border-strong);
  background:var(--surface-secondary); color:var(--text); font-size:14px; }
.ev-guest-add input:focus{ outline:none; border-color:var(--green); }
.ev-guest-list{ display:flex; flex-wrap:wrap; gap:6px; }
.ev-guest-chip{ display:inline-flex; align-items:center; gap:6px; padding:5px 6px 5px 10px; border-radius:999px;
  background:var(--green-light); border:1px solid rgba(0,204,255,.3); color:var(--green-dark); font-size:13px; font-weight:600; }
.ev-guest-chip > i{ font-size:14px; color:var(--green); }
.ev-guest-chip button{ display:inline-grid; place-items:center; width:18px; height:18px; border-radius:50%; border:none;
  background:transparent; color:var(--green-dark); cursor:pointer; padding:0; }
.ev-guest-chip button:hover{ background:rgba(255,107,107,.18); color:#ff6b6b; }
.ev-guest-empty{ color:var(--text-faint); font-size:13px; }
.rsvp-guest-tag{ font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.03em;
  color:var(--green-dark); background:var(--green-light); border-radius:5px; padding:1px 5px; margin-left:4px; vertical-align:1px; }
.rsvp-group-label{ display:flex; align-items:center; gap:6px; font-size:11px; font-weight:800; letter-spacing:.05em;
  text-transform:uppercase; color:var(--text-faint); margin:10px 2px 6px; }
.rsvp-group-label i{ font-size:14px; color:var(--green); }

/* Geplante Abwesenheit (Toolbar-Button + Modal-Liste) */
.cal-absence-btn{ display:inline-flex; align-items:center; gap:6px; padding:0 14px; height:38px; border-radius:10px;
  border:1px solid var(--border-strong); background:var(--surface); color:var(--text); font-weight:700; font-size:13px; cursor:pointer; }
.cal-absence-btn:hover{ background:var(--surface-secondary); }
.cal-absence-btn i{ color:var(--green); font-size:17px; }
.absence-list-label{ font-size:11.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--text-faint); margin:16px 0 8px; }
.absence-list{ display:flex; flex-direction:column; gap:7px; }
.absence-empty{ color:var(--text-faint); font-size:13px; padding:4px 2px; }
.absence-item{ display:flex; align-items:center; gap:10px; padding:9px 11px; border-radius:10px;
  background:var(--surface-secondary); border:1px solid var(--border); border-left:3px solid var(--green); }
.absence-item.past{ opacity:.55; border-left-color:var(--border-strong); }
.absence-type{ flex:0 0 auto; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; padding:3px 8px; border-radius:6px; color:var(--green-dark); background:var(--green-light); }
.absence-type.t-Verletzung{ color:#ff6b6b; background:rgba(255,107,107,.14); }
.absence-type.t-Sonstiges{ color:var(--text-muted); background:rgba(255,255,255,.06); }
.absence-type.t-Wochentag{ color:#e0b93b; background:rgba(224,185,59,.15); }
/* Hinweis in der Trainingsbeteiligung, wenn Spieler spaeter dazugestossen sind */
.ts-note{ font-size:11.5px; color:var(--text-faint); line-height:1.5; margin:0 0 10px; font-style:italic; }
/* Übersicht aller Abwesenheiten (nur Trainer/Admin) */
.absence-ov-head{ font-size:11px; font-weight:600; letter-spacing:.5px; text-transform:uppercase;
  color:var(--text-faint); margin:12px 0 5px; }
.absence-ov-head:first-child{ margin-top:2px; }
.absence-ov-name{ flex:0 0 auto; min-width:88px; font-size:12.5px; font-weight:600; color:var(--text); }
.absence-item.is-now{ border-left:2px solid var(--green); padding-left:8px; }
.absence-hint{ font-size:11.5px; color:var(--text-muted); line-height:1.5; margin:-4px 0 10px; }
.absence-range{ flex:1 1 auto; font-size:13px; color:var(--text); min-width:0; }
.absence-note{ color:var(--text-muted); }
.absence-del{ flex:0 0 auto; display:inline-grid; place-items:center; width:30px; height:30px; border-radius:8px; border:none; background:transparent; color:var(--text-faint); cursor:pointer; }
.absence-del:hover{ color:#ff6b6b; background:rgba(255,107,107,.12); }
.rsvp-reason.abs{ color:var(--green-dark); font-style:normal; display:inline-flex; align-items:center; gap:5px; }
.rsvp-reason.abs i{ font-size:14px; }

/* ============================================================
   Termin-Modal übersichtlicher: Abschnitte als Karten
   ============================================================ */
#ev-match-fields, #ev-guest-fields, #ev-birthday-fields, #ev-recur-row, #ev-rsvp-row{
  background:var(--surface-secondary); border:1px solid var(--border); border-radius:13px;
  padding:14px; margin:14px 0 0;
}
/* Abschnitts-Kopf innerhalb der Karten */
#ev-match-fields .fields-separator, #ev-guest-fields .fields-separator,
#ev-birthday-fields .fields-separator, #ev-recur-row .fields-separator,
#ev-rsvp-row .fields-separator{
  display:flex; align-items:center; gap:7px; margin:0 0 12px; padding-bottom:10px;
  border-bottom:1px solid var(--border); font-size:12px; color:var(--green-dark);
}
#ev-match-fields .fields-separator i, #ev-guest-fields .fields-separator i,
#ev-birthday-fields .fields-separator i, #ev-recur-row .fields-separator i,
#ev-rsvp-row .fields-separator i{ font-size:16px; color:var(--green); }
/* letzte Felder in einer Karte ohne überflüssigen Abstand */
#ev-match-fields .field:last-child, #ev-rsvp-row #ev-rsvp-sub .field-row{ margin-bottom:0; }
/* Grunddaten oben etwas Luft lassen */
#ev-edit-fields > .field:first-of-type{ margin-top:2px; }
/* RSVP-Unterbereich kompakter */
#ev-rsvp-row #ev-rsvp-sub{ margin-top:10px; }

/* ============================================================
   Spielerprofil-Modal + klickbare Team-Karten
   ============================================================ */
.profile-id{ display:flex; align-items:center; gap:14px; }
.profile-avatar-wrap{ position:relative; width:60px; height:60px; flex:0 0 auto; }
.profile-avatar{ width:60px; height:60px; border-radius:16px; object-fit:cover; background:var(--surface-secondary); border:1px solid var(--border-strong); display:block; }
.profile-avatar-fb{ width:60px; height:60px; border-radius:16px; display:grid; place-items:center; background:var(--accent-grad,#12b6e6); color:var(--on-accent); font-weight:800; font-size:26px; position:absolute; inset:0; }
.profile-number{ position:absolute; right:-6px; bottom:-6px; background:var(--green); color:var(--on-accent); font-weight:800; font-size:12px; padding:2px 7px; border-radius:999px; border:2px solid var(--surface); font-variant-numeric:tabular-nums; }
.profile-readonly-hint{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text-muted); background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:10px; padding:9px 12px; margin-bottom:14px; }
.profile-readonly-hint i{ color:var(--text-faint); }
#profile-note{ min-height:72px; resize:vertical; }

.team-player-card{ position:relative; cursor:pointer; transition:transform .12s ease, border-color .15s; }
.team-player-card:hover{ transform:translateY(-3px); border-color:rgba(0,204,255,.4); }
.team-player-num{ position:absolute; top:8px; left:8px; z-index:2; background:var(--green); color:var(--on-accent); font-weight:800; font-size:12px; padding:2px 7px; border-radius:999px; font-variant-numeric:tabular-nums; }
.team-player-pos{ font-size:12px; color:var(--text-muted); margin-top:2px; }

/* ============================================================
   Trainingsbeteiligung (Statistik)
   ============================================================ */
.cal-stats-btn{ display:inline-flex; align-items:center; gap:6px; padding:0 14px; height:38px; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); font-weight:700; font-size:13px; cursor:pointer; }
.cal-stats-btn:hover{ background:var(--surface-secondary); }
.cal-stats-btn i{ color:var(--green); font-size:17px; }
.trainstats-kpis{ display:flex; gap:10px; margin-bottom:16px; }
.ts-kpi{ flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:12px 8px; border-radius:12px; background:var(--surface-secondary); border:1px solid var(--border); }
.ts-kpi-val{ font-family:'Montserrat',sans-serif; font-weight:800; font-size:22px; color:var(--text); }
.ts-kpi-lbl{ font-size:11px; color:var(--text-muted); font-weight:600; text-align:center; }
.trainstats-list{ display:flex; flex-direction:column; gap:7px; }
.ts-row{ display:flex; align-items:center; gap:10px; }
.ts-rank{ flex:0 0 auto; width:20px; text-align:center; font-weight:800; font-size:12px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
.ts-name{ flex:0 0 38%; font-size:13.5px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ts-bar{ flex:1 1 auto; height:9px; border-radius:999px; background:var(--surface-secondary); overflow:hidden; }
.ts-bar-fill{ height:100%; border-radius:999px; }
.ts-bar-fill.high{ background:#2bb673; }
.ts-bar-fill.mid{ background:#ffb454; }
.ts-bar-fill.low{ background:#e0556a; }
.ts-pct{ flex:0 0 auto; width:40px; text-align:right; font-weight:800; font-size:13px; color:var(--text); font-variant-numeric:tabular-nums; }
.ts-count{ flex:0 0 auto; width:44px; text-align:right; font-size:12px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
.trainstats-empty{ display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; padding:24px 12px; color:var(--text-muted); font-size:13.5px; }
.trainstats-empty i{ font-size:32px; color:var(--text-faint); }

/* ============================================================
   Kaderübersicht – neue Squad-Card-Optik
   ============================================================ */
.team-player-grid{ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap:14px; }
.team-player-card{ border-radius:16px; overflow:hidden; cursor:pointer; background:var(--surface-secondary); }
.tpc-media{ position:relative; aspect-ratio:3/4; overflow:hidden; }
.tpc-img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s var(--ease,ease); }
.team-player-card:hover .tpc-img{ transform:scale(1.05); }
.tpc-fallback{ position:absolute; inset:0; display:none; place-items:center; background:linear-gradient(160deg,#1b2638,#101725); }
.tpc-fallback span{ width:66px; height:66px; border-radius:50%; display:grid; place-items:center; font-family:'Montserrat','Inter',sans-serif; font-weight:800; font-size:28px; color:var(--on-accent); background:var(--accent-grad,#12b6e6); }
.tpc-overlay{ position:absolute; left:0; right:0; bottom:0; padding:26px 12px 11px; background:linear-gradient(to top, rgba(8,11,17,.94) 8%, rgba(8,11,17,.55) 52%, rgba(8,11,17,0) 100%); }
.tpc-name{ font-family:'Montserrat','Inter',sans-serif; font-weight:800; font-size:14px; color:#fff; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tpc-pos{ font-size:11.5px; color:var(--green-dark); font-weight:600; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tpc-num{ position:absolute; top:10px; right:10px; z-index:2; background:var(--green); color:var(--on-accent); font-weight:800; font-size:13px; padding:3px 9px; border-radius:999px; font-variant-numeric:tabular-nums; box-shadow:0 2px 8px rgba(0,0,0,.35); }

/* ============================================================
   Hero-Matchup: Vereinslogos (resources/LogoHome) statt Initialen
   ============================================================ */
.hub-badge{ overflow:hidden; position:relative; background:transparent; border-color:rgba(255,255,255,.14); }
.hub-team.is-us .hub-badge{ background:transparent; box-shadow:none; }
.hub-badge-img{ width:100%; height:100%; object-fit:contain; padding:7px; display:block; }
.hub-badge-fallback{ position:absolute; inset:0; display:grid; place-items:center; font-weight:800; font-size:inherit; }
.hub-team.is-us .hub-badge-fallback{ background:var(--accent-grad,#12b6e6); color:var(--on-accent); }
.hub-team:not(.is-us) .hub-badge-fallback{ background:linear-gradient(150deg,#202d42,#161f2e); color:#cfe9f3; }

/* ============================================================
   UX-Politur (bereichsübergreifend) – additive, sichere Schicht
   ============================================================ */
/* 1) Bessere Lesbarkeit schwacher Texte (Kontrast) */
:root{ --text-faint:#828d9b; }

/* 2) Schärfere Schrift + ruhigeres mobiles Tippen */
html{ -webkit-text-size-adjust:100%; }
body{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
*{ -webkit-tap-highlight-color:transparent; }
html{ scroll-behavior:smooth; }

/* 3) Einheitliches, taktiles Button-Feedback */
button{ transition:transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease; }
button:not(:disabled):active{ transform:translateY(1px); }

/* 4) Klare Disabled-Zustände überall */
button:disabled, input:disabled, select:disabled, textarea:disabled{ opacity:.5; cursor:not-allowed; }

/* 5) Markierte Textauswahl im Markenton */
::selection{ background:rgba(0,204,255,.28); color:#fff; }

/* 6) Formularfelder: konsistenter Akzent-Fokus (auch per Maus) */
.field input:focus, .field select:focus, .field textarea:focus,
input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus,
input[type="time"]:focus, input[type="password"]:focus, input[type="search"]:focus,
select:focus, textarea:focus{
  outline:none; border-color:var(--green);
  box-shadow:0 0 0 3px rgba(0,0,0,0.45);
}

/* 7) Modale: weicher Hintergrund-Blur für mehr Fokus */
.modal-overlay{ backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); }

/* 8) Deutlicherer, einheitlicher Tastatur-Fokus (Accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, .nav-item:focus-visible,
.cmd-card:focus-visible, .team-player-card:focus-visible, .hub-tile:focus-visible{
  outline:2px solid var(--green); outline-offset:2px; border-radius:8px;
}

/* 9) Interaktive Kacheln/Karten: sanftes, konsistentes Anheben */
.hub-tile, .cmd-card, .team-player-card, .kasse-card{ transition:transform .14s var(--ease,ease), border-color .15s ease, background .15s ease, box-shadow .15s ease; }

/* 10) Touch-Ziele auf Mobil großzügiger */
@media (max-width:768px){
  .modal-btn, .cal-add-btn, .cal-absence-btn, .cal-stats-btn, .hub-btn,
  .login-btn, .res-btn, .kasse-btn, .paypal-btn{ min-height:46px; }
  .modal-close{ width:42px; height:42px; }
}

/* 11) Bewegung reduzieren, wenn vom System gewünscht */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ============================================================
   Mannschaftskasse – klarere Spielerliste
   ============================================================ */
.kasse-row{ position:relative; border-left:3px solid var(--border-strong); transition:border-color .15s ease, background .15s ease, transform .12s ease; }
.kasse-row:hover{ background:var(--surface-secondary); }
.kasse-row.st-neg{ border-left-color:#ff6b6b; }
.kasse-row.st-pos{ border-left-color:#3ddc84; }
.kasse-row.st-zero{ border-left-color:var(--border-strong); }
/* Saldo als zweizeiliger, klar beschrifteter Block */
.kasse-bal{ display:flex !important; flex-direction:column; align-items:flex-end; gap:1px; min-width:96px; flex:0 0 auto !important; }
.kasse-bal-amt{ font-weight:800; font-size:15.5px; font-variant-numeric:tabular-nums; line-height:1.1; }
.kasse-bal-lbl{ font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.kasse-bal.neg .kasse-bal-amt, .kasse-bal.neg .kasse-bal-lbl{ color:#ff6b6b; }
.kasse-bal.pos .kasse-bal-amt, .kasse-bal.pos .kasse-bal-lbl{ color:#3ddc84; }
.kasse-bal.zero .kasse-bal-amt{ color:var(--text-muted); }
.kasse-bal.zero .kasse-bal-lbl{ color:var(--text-faint); }
@media (max-width:768px){ .kasse-bal{ min-width:84px; } .kasse-bal-amt{ font-size:14.5px; } }

/* ============================================================
   Saison-Bilanz
   ============================================================ */
.cal-season-btn{ display:inline-flex; align-items:center; gap:6px; padding:0 14px; height:38px; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); font-weight:700; font-size:13px; cursor:pointer; }
.cal-season-btn:hover{ background:var(--surface-secondary); }
.cal-season-btn i{ color:#ffcf5a; font-size:17px; }
.season-record{ display:flex; gap:5px; margin:4px 0 16px; height:44px; border-radius:11px; overflow:hidden; }
.sr-seg{ display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; min-width:36px; }
.sr-seg b{ font-size:15px; font-weight:800; line-height:1; }
.sr-seg span{ font-size:10px; font-weight:700; opacity:.85; }
.sr-seg.w{ background:#2bb673; }
.sr-seg.d{ background:#8a93a3; }
.sr-seg.l{ background:#e0556a; }
.season-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:14px; }
.season-stat{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px; border-radius:10px; background:var(--surface-secondary); border:1px solid var(--border); }
.season-stat span{ font-size:12px; color:var(--text-muted); }
.season-stat b{ font-size:14px; color:var(--text); font-variant-numeric:tabular-nums; white-space:nowrap; }
.season-form{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-radius:10px; background:var(--surface-secondary); border:1px solid var(--border); margin-bottom:8px; }
.season-form-lbl{ font-size:12.5px; color:var(--text-muted); }
.season-form-pills{ display:flex; gap:5px; }
.season-note{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text); padding:9px 12px; border-radius:10px; background:var(--surface-secondary); border:1px solid var(--border); margin-top:8px; }
.season-note i{ font-size:17px; color:var(--text-muted); }
.season-note.good i{ color:#2bb673; }
.season-note.bad i{ color:#e0556a; }

/* ============================================================
   Spielerstatistik – Erfassung im Termin + Saison-Leaderboard
   ============================================================ */
.ev-stats-sep{ display:flex; align-items:center; gap:7px; margin:16px 0 10px; padding-top:12px; border-top:1px dashed var(--border); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--green-dark); }
.ev-stats-sep i{ color:var(--green); font-size:15px; }
.ev-stats-sep span{ font-weight:600; text-transform:none; letter-spacing:0; color:var(--text-faint); }
.ev-stat-group{ margin-bottom:10px; }
.ev-stat-head{ display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; color:var(--text-muted); margin-bottom:6px; }
.ev-stat-head i{ font-size:15px; }
.ev-stat-add{ display:flex; gap:8px; }
.ev-stat-add select{ flex:1; }
.ev-stat-btn{ flex:0 0 auto; width:44px; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface-secondary); color:var(--green); cursor:pointer; display:grid; place-items:center; font-size:18px; }
.ev-stat-btn:hover{ background:var(--green-light); }
.ev-stat-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.ev-stat-chip{ display:inline-flex; align-items:center; gap:5px; padding:4px 5px 4px 10px; border-radius:999px; background:var(--surface); border:1px solid var(--border-strong); font-size:12.5px; color:var(--text); }
.ev-stat-x{ font-weight:800; color:var(--green-dark); font-variant-numeric:tabular-nums; }
.ev-stat-chip button{ width:20px; height:20px; border-radius:50%; border:none; background:rgba(255,255,255,.06); color:var(--text-faint); cursor:pointer; display:grid; place-items:center; }
.ev-stat-chip button:hover{ background:rgba(224,85,106,.18); color:#e0556a; }
.season-tabs{ display:flex; gap:6px; margin-bottom:14px; background:var(--surface-secondary); padding:4px; border-radius:11px; }
.season-tab{ flex:1; padding:8px; border-radius:8px; border:none; background:transparent; color:var(--text-muted); font-weight:700; font-size:13px; cursor:pointer; }
.season-tab.active{ background:var(--green); color:var(--on-accent); }
.psl{ display:flex; flex-direction:column; }
.psl-row{ display:grid; grid-template-columns:24px 1fr 34px 34px 48px 34px 32px; align-items:center; gap:6px; padding:8px 4px; border-bottom:1px solid var(--border); font-size:13px; }
.psl-head{ font-size:11px; color:var(--text-faint); border-bottom:1px solid var(--border-strong); }
.psl-head i{ font-size:15px; }
.psl-rank{ text-align:center; font-weight:800; color:var(--text-faint); font-variant-numeric:tabular-nums; }
.psl-name{ font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.psl-c{ text-align:center; font-variant-numeric:tabular-nums; color:var(--text-muted); }
.psl-goals{ font-weight:800; color:var(--text); }
.psl-cards{ display:flex; gap:3px; justify-content:center; align-items:center; }
.psl-yellow,.psl-red{ display:inline-grid; place-items:center; min-width:16px; height:18px; padding:0 3px; border-radius:3px; font-size:11px; font-weight:800; }
.psl-yellow{ background:#f2c037; color:#1a2230; } .psl-red{ background:#e0556a; color:#fff; }

/* ============================================================
   Ankündigungen / Pinnwand (Vereinszentrale)
   ============================================================ */
.ann-board{ margin:14px 0 4px; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:14px; }
.ann-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.ann-title{ display:flex; align-items:center; gap:7px; font-weight:800; font-size:14px; color:var(--text); }
.ann-title i{ color:#ffcf5a; font-size:17px; }
.ann-add-btn{ display:inline-flex; align-items:center; gap:5px; padding:6px 11px; border-radius:9px; border:1px solid var(--border-strong); background:var(--surface-secondary); color:var(--green); font-weight:700; font-size:12.5px; cursor:pointer; }
.ann-add-btn:hover{ background:var(--green-light); }
.ann-empty{ font-size:13px; color:var(--text-muted); padding:6px 2px; }
.ann-item{ position:relative; padding:11px 12px; border-radius:12px; background:var(--surface-secondary); border:1px solid var(--border); border-left:3px solid var(--border-strong); margin-top:8px; }
.ann-item.important{ border-left-color:#ffb454; background:linear-gradient(180deg, rgba(255,180,84,.10), var(--surface-secondary)); }
.ann-flag{ display:inline-flex; align-items:center; gap:4px; font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:#ffb454; margin-bottom:5px; }
.ann-flag i{ font-size:13px; }
.ann-text{ font-size:13.5px; line-height:1.45; color:var(--text); white-space:pre-wrap; word-break:break-word; }
.ann-meta{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; font-size:11.5px; color:var(--text-faint); }
.ann-del{ flex:0 0 auto; width:28px; height:28px; border-radius:7px; border:none; background:transparent; color:var(--text-faint); cursor:pointer; display:grid; place-items:center; }
.ann-del:hover{ color:#ff6b6b; background:rgba(255,107,107,.12); }

/* ============================================================
   Abstimmungen / Umfragen (Vereinszentrale)
   ============================================================ */
.poll-board{ margin:14px 0 4px; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:14px; }
.poll-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.poll-title{ display:flex; align-items:center; gap:7px; font-weight:800; font-size:14px; color:var(--text); }
.poll-title i{ color:var(--green); font-size:17px; }
.poll-card{ padding:12px; border-radius:12px; background:var(--surface-secondary); border:1px solid var(--border); margin-top:8px; }
.poll-card.closed{ opacity:.85; }
.poll-q{ font-weight:700; font-size:14px; color:var(--text); margin-bottom:10px; line-height:1.35; }
.poll-closed-tag{ font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); background:rgba(255,255,255,.06); padding:2px 7px; border-radius:999px; margin-left:4px; }
.poll-options{ display:flex; flex-direction:column; gap:7px; }
.poll-opt{ position:relative; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface); overflow:hidden; min-height:40px; display:flex; align-items:center; }
.poll-opt.clickable{ cursor:pointer; transition:border-color .15s ease, transform .1s ease; }
.poll-opt.clickable:hover{ border-color:var(--green); }
.poll-opt.clickable:active{ transform:translateY(1px); }
.poll-opt.mine{ border-color:var(--green); }
.poll-opt-bar{ position:absolute; left:0; top:0; bottom:0; background:var(--green-light); transition:width .35s var(--ease,ease); z-index:0; }
.poll-opt.mine .poll-opt-bar{ background:rgba(0,204,255,.22); }
.poll-opt-row{ position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; padding:9px 12px; }
.poll-opt-txt{ font-size:13.5px; color:var(--text); font-weight:600; display:flex; align-items:center; gap:5px; }
.poll-opt-txt i{ color:var(--green); font-size:16px; }
.poll-opt-pct{ font-size:12px; color:var(--text-muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.poll-foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:9px; font-size:11.5px; color:var(--text-faint); }
.poll-ctrls{ display:flex; gap:6px; }
.poll-ctrl{ border:1px solid var(--border-strong); background:transparent; color:var(--text-muted); font-size:11.5px; font-weight:700; padding:4px 9px; border-radius:7px; cursor:pointer; }
.poll-ctrl:hover{ background:var(--surface); color:var(--text); }
.poll-ctrl.danger:hover{ color:#ff6b6b; border-color:rgba(255,107,107,.4); }
/* Erstellen-Modal */
.poll-opt-input{ width:100%; padding:9px 12px; border-radius:10px; background:var(--bg); border:1px solid var(--border-strong); color:var(--text); font-size:14px; margin-bottom:8px; }
.poll-add-opt{ display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:9px; border:1px dashed var(--border-strong); background:transparent; color:var(--green); font-weight:700; font-size:12.5px; cursor:pointer; }
.poll-add-opt:hover{ background:var(--green-light); border-style:solid; }

/* ============================================================
   Strafen-Bestenliste
   ============================================================ */
.fb-sum{ font-size:13px; color:var(--text-muted); margin-bottom:12px; }
.fb-sum b{ color:var(--text); }
.fb-row{ display:flex; align-items:center; gap:11px; padding:8px 0; border-bottom:1px solid var(--border); }
.fb-rank{ flex:0 0 auto; width:26px; text-align:center; font-weight:800; font-size:13px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
.fb-rank.medal{ font-size:18px; }
.fb-main{ flex:1 1 auto; min-width:0; }
.fb-name{ display:block; font-size:13.5px; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:5px; }
.fb-bar{ height:7px; border-radius:999px; background:var(--surface-secondary); overflow:hidden; }
.fb-bar-fill{ height:100%; border-radius:999px; background:linear-gradient(90deg,#ffb454,#ff8a3d); }
.fb-vals{ flex:0 0 auto; text-align:right; }
.fb-vals b{ display:block; font-size:14px; font-weight:800; color:var(--text); font-variant-numeric:tabular-nums; }
.fb-vals span{ font-size:11px; color:var(--text-faint); font-variant-numeric:tabular-nums; }

/* ============================================================
   Spielerstatistik-Erfassung: einklappbar (details) + farbig
   ============================================================ */
.ev-stats-acc{ margin-top:16px; border-top:1px dashed var(--border); }
summary.ev-stats-sep{ list-style:none; cursor:pointer; user-select:none; border-top:none; margin:0; padding:12px 0 0; }
summary.ev-stats-sep::-webkit-details-marker{ display:none; }
summary.ev-stats-sep::marker{ content:''; }
.ev-stats-chevron{ margin-left:auto; transition:transform .2s ease; color:var(--text-faint) !important; font-size:16px; }
details[open] .ev-stats-chevron{ transform:rotate(180deg); }
.ev-stats-body{ margin-top:12px; }
.ev-stats-body .ev-stat-group{ border-left:3px solid var(--border-strong); padding-left:11px; }
.g-goals{ border-left-color:#37d39b !important; }   .g-goals .ev-stat-head i{ color:#37d39b; }
.g-assists{ border-left-color:#38bdf8 !important; } .g-assists .ev-stat-head i{ color:#38bdf8; }
.g-yellow{ border-left-color:#f2c037 !important; }  .g-yellow .ev-stat-head i{ color:#f2c037; }
.g-red{ border-left-color:#e0556a !important; }     .g-red .ev-stat-head i{ color:#e0556a; }
.g-goals .ev-stat-x{ color:#37d39b; }
/* Saison-Leaderboard: Tore farblich hervorheben */
.psl-goals{ color:#37d39b !important; }

/* ============================================================
   Spielerstatistik-Erfassung: stilistische Politur
   ============================================================ */
.ev-stats-body .ev-stat-group{
  padding:11px 12px; border-radius:11px;
  border:1px solid var(--border); border-left-width:3px;
  background:var(--surface-secondary); margin-bottom:9px;
}
.ev-stats-body .ev-stat-group:last-child{ margin-bottom:0; }
.ev-stats-body .ev-stat-head{
  font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  color:var(--text); margin-bottom:9px;
}
.ev-stat-add{ display:flex; gap:8px; }
.ev-stat-add select{
  flex:1; height:40px; padding:0 34px 0 12px; border-radius:10px;
  background-color:var(--bg); border:1px solid var(--border-strong); color:var(--text);
  font-size:13.5px; -webkit-appearance:none; -moz-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23828d9b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center;
}
.ev-stat-add select:focus{ border-color:var(--green); box-shadow:0 0 0 3px rgba(0,0,0,0.45); outline:none; }
.ev-stat-btn{ flex:0 0 auto; width:40px; height:40px; border-radius:10px; }
/* dezente Farbtönung je Kategorie */
.ev-stats-body .g-goals{ background:rgba(55,211,155,.08); }
.ev-stats-body .g-assists{ background:rgba(56,189,248,.08); }
.ev-stats-body .g-yellow{ background:rgba(242,192,55,.08); }
.ev-stats-body .g-red{ background:rgba(224,85,106,.08); }
/* Chips innerhalb der Erfassung etwas kompakter */
.ev-stats-body .ev-stat-chips{ margin-top:9px; }
.ev-stats-body .ev-stat-chips:empty{ display:none; }

/* ============================================================
   Mobile-Refresh-Button (in der mobilen Topbar, links neben der Glocke)
   ============================================================ */
.mobile-refresh{
  margin-left:auto; margin-right:52px;   /* Platz für die fixe Benachrichtigungs-Glocke (right:18px) */
  background:none; border:none; color:var(--text);
  width:40px; height:40px; border-radius:9px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:21px; cursor:pointer; -webkit-tap-highlight-color:transparent;
}
.mobile-refresh:hover{ background:var(--surface-secondary); }
.mobile-refresh:active{ transform:scale(.94); }
.mobile-refresh i{ display:block; transition:transform .15s ease; }
.mobile-refresh i.spin{ animation:mrefresh-spin .7s linear infinite; }
@keyframes mrefresh-spin{ to{ transform:rotate(360deg); } }

/* ============================================================
   Live-Spiel / Live-Ticker
   ============================================================ */
.live-dot{ display:inline-block; width:9px; height:9px; border-radius:50%; background:#ff5470; margin-right:3px; box-shadow:0 0 0 0 rgba(255,84,112,.6); animation:live-pulse 1.6s infinite; vertical-align:middle; }
@keyframes live-pulse{ 0%{ box-shadow:0 0 0 0 rgba(255,84,112,.55);} 70%{ box-shadow:0 0 0 7px rgba(255,84,112,0);} 100%{ box-shadow:0 0 0 0 rgba(255,84,112,0);} }
.live-modal{ width:520px; max-width:96vw; }
.live-body{ display:flex; flex-direction:column; gap:14px; }
/* Scoreboard */
.live-score{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 16px; border-radius:14px;
  background:linear-gradient(135deg, rgba(0,204,255,.10), var(--surface-secondary)); border:1px solid var(--border); }
.live-team{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; align-items:flex-start; }
.live-team-opp{ align-items:flex-end; text-align:right; }
.live-team-name{ font-weight:800; font-size:15px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.live-team-tag{ font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-faint); }
.live-scoreline{ flex:0 0 auto; display:flex; align-items:center; gap:6px; font-variant-numeric:tabular-nums; }
.live-gf,.live-ga{ font-size:30px; font-weight:900; color:var(--text); min-width:26px; text-align:center; }
.live-colon{ font-size:24px; font-weight:800; color:var(--text-faint); }
/* Steuerung */
.live-controls{ display:flex; flex-direction:column; gap:8px; }
.live-ctrl-row{ display:flex; gap:8px; }
.live-ctrl-goals .live-btn, .live-ctrl-cards .live-btn{ flex:1; }
.live-ctrl-state .live-btn{ flex:1; }
.live-min{ width:74px; flex:0 0 auto; height:42px; padding:0 12px; border-radius:10px; background:var(--bg); border:1px solid var(--border-strong); color:var(--text); font-size:14px; text-align:center; }
.live-sel{ flex:1; min-width:0; height:42px; padding:0 12px; border-radius:10px; background:var(--bg); border:1px solid var(--border-strong); color:var(--text); font-size:13.5px;
  -webkit-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23828d9b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center; padding-right:30px; }
.live-btn{ height:42px; border:1px solid var(--border-strong); background:var(--surface-secondary); color:var(--text); font-weight:700; font-size:13.5px;
  border-radius:11px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 12px; }
.live-btn i{ font-size:17px; }
.live-btn:hover{ background:var(--surface); }
.live-btn:active{ transform:translateY(1px); }
.live-btn-goal{ background:linear-gradient(135deg,#1fae6a,#159b5c); border-color:transparent; color:#fff; }
.live-btn-against{ background:var(--surface-secondary); border-color:var(--border-strong); }
.live-btn-yellow i{ color:#f2c037; }
.live-btn-red i{ color:#e0556a; }
.live-btn-sub{ flex:0 0 auto; width:48px; }
.live-btn-sub i{ color:var(--green); }
.live-btn-ghost{ background:transparent; color:var(--text-muted); font-weight:700; font-size:12.5px; }
.live-readonly{ display:flex; align-items:center; gap:7px; font-size:13px; color:var(--text-muted); padding:8px 2px; }
.live-readonly i{ color:var(--green); }
/* Ticker */
.live-ticker{ display:flex; flex-direction:column; gap:7px; max-height:46vh; overflow:auto; }
.live-empty{ font-size:13px; color:var(--text-muted); padding:10px 2px; }
.live-tk{ display:flex; align-items:center; gap:11px; padding:9px 11px; border-radius:11px; background:var(--surface-secondary); border:1px solid var(--border); border-left:3px solid var(--border-strong); }
.live-tk-ico{ flex:0 0 auto; width:30px; height:30px; border-radius:8px; display:grid; place-items:center; background:var(--bg); color:var(--text-muted); }
.live-tk-ico i{ font-size:17px; }
.live-tk-tor{ border-left-color:#1fae6a; } .live-tk-tor .live-tk-ico{ color:#1fae6a; }
.live-tk-gegentor{ border-left-color:#e0556a; } .live-tk-gegentor .live-tk-ico{ color:#e0556a; }
.live-tk-wechsel{ border-left-color:#38bdf8; } .live-tk-wechsel .live-tk-ico{ color:#38bdf8; }
.live-tk-gelb{ border-left-color:#f2c037; } .live-tk-gelb .live-tk-ico{ color:#f2c037; }
.live-tk-rot{ border-left-color:#e0556a; } .live-tk-rot .live-tk-ico{ color:#e0556a; }
.live-tk-anpfiff,.live-tk-halbzeit,.live-tk-abpfiff{ border-left-color:var(--green); }
.live-tk-anpfiff .live-tk-ico,.live-tk-halbzeit .live-tk-ico,.live-tk-abpfiff .live-tk-ico{ color:var(--green); }
.live-tk-main{ flex:1; min-width:0; }
.live-tk-text{ font-size:13.5px; font-weight:600; color:var(--text); }
.live-tk-meta{ display:flex; align-items:center; gap:8px; margin-top:2px; font-size:11px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
.live-tk-score{ font-weight:800; color:var(--text-muted); }
.live-tk-del{ flex:0 0 auto; width:26px; height:26px; border:none; background:transparent; color:var(--text-faint); border-radius:7px; cursor:pointer; display:grid; place-items:center; }
.live-tk-del:hover{ color:#ff6b6b; background:rgba(255,107,107,.12); }
/* Live-Button im Matchday-Hero */
.hub-hero-top-actions{ display:flex; align-items:center; gap:8px; }
.hub-hero-live{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; border:1px solid rgba(255,84,112,.4);
  background:rgba(255,84,112,.14); color:#ff7088; font-weight:800; font-size:12.5px; cursor:pointer; }
.hub-hero-live:hover{ background:rgba(255,84,112,.22); }
.hub-hero-live .live-dot{ margin-right:0; }

/* Grafik-Button am Live-Ticker-Eintrag */
.live-tk-gfx{ flex:0 0 auto; width:30px; height:30px; border:1px solid var(--border-strong); background:var(--bg); color:var(--green);
  border-radius:8px; cursor:pointer; display:grid; place-items:center; }
.live-tk-gfx i{ font-size:16px; }
.live-tk-gfx:hover{ background:var(--green-light); border-color:var(--green); }
/* Direkt-auf-Instagram-Posten aus dem Ticker (neben dem Grafik-Button) */
.live-tk-ig{ flex:0 0 auto; width:30px; height:30px; margin-left:2px; border:1px solid var(--border-strong); background:var(--bg); color:var(--green);
  border-radius:8px; cursor:pointer; display:grid; place-items:center; }
.live-tk-ig i{ font-size:16px; }
.live-tk-ig:hover{ background:var(--green-light); border-color:var(--green); }
.live-tk-ig:disabled{ opacity:.45; cursor:not-allowed; }
.live-tk-del{ margin-left:2px; }

/* Live-Status-Pill (Overlay-Kopf) */
.live-pill{ font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; padding:3px 9px; border-radius:999px;
  display:inline-flex; align-items:center; gap:5px; vertical-align:middle; margin-left:2px; }
.live-pill.live{ background:rgba(255,84,112,.16); color:#ff7088; }
.live-pill.pre{ background:var(--surface-secondary); color:var(--text-faint); }
.live-pill.ended{ background:rgba(255,255,255,.06); color:var(--text-muted); }
/* Hero-Ticker-Button: neutral, „LIVE" erst nach Anpfiff */
.hub-hero-live .live-dot{ display:none; }
.hub-hero-live.is-pre, .hub-hero-live.is-ended{ border-color:var(--border-strong); background:var(--surface-secondary); color:var(--text-muted); }
.hub-hero-live.is-live{ border-color:rgba(255,84,112,.45); background:rgba(255,84,112,.15); color:#ff7088; }
.hub-hero-live.is-live .live-dot{ display:inline-block; }

/* Kasse: Monats-Entschuldigung */
.kasse-row-name.excused-name{ color:#37d39b; }
.kasse-row.is-excused{ border-left:3px solid #37d39b; }
.kasse-tag-excused{ background:rgba(55,211,155,.16); color:#37d39b; }
.kasse-tag-excused i{ font-size:13px; }
.kasse-excuse-x{ width:20px; height:20px; border:none; background:transparent; color:var(--text-faint); border-radius:6px; cursor:pointer; display:inline-grid; place-items:center; vertical-align:middle; margin-left:1px; }
.kasse-excuse-x:hover{ color:#ff6b6b; background:rgba(255,107,107,.12); }
.kasse-mini-excuse i{ color:#37d39b; }
.kasse-mini-excuse.is-on{ background:rgba(55,211,155,.14); border-color:rgba(55,211,155,.4); }
.kasse-mini-excuse.is-on:hover{ background:rgba(255,107,107,.12); border-color:rgba(255,107,107,.4); }
.kasse-mini-excuse.is-on:hover i{ color:#ff6b6b; }

/* Push-Einstellungen (Toggle-Schalter) */
.push-pref-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 2px; border-bottom:1px solid var(--border); cursor:pointer; }
.push-pref-row:last-of-type{ border-bottom:none; }
.push-pref-row > span{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--text); }
.push-pref-row > span i{ color:var(--text-muted); font-size:17px; }
.push-pref-row input[type=checkbox]{ -webkit-appearance:none; appearance:none; flex:0 0 auto; width:42px; height:24px; border-radius:999px; background:var(--surface-secondary); border:1px solid var(--border-strong); position:relative; cursor:pointer; transition:background .15s, border-color .15s; }
.push-pref-row input[type=checkbox]::after{ content:''; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:var(--text-faint); transition:transform .15s, background .15s; }
.push-pref-row input[type=checkbox]:checked{ background:var(--green); border-color:var(--green); }
.push-pref-row input[type=checkbox]:checked::after{ transform:translateX(18px); background:#fff; }
.push-pref-hint{ font-size:12px; color:var(--text-faint); margin-top:12px; }

/* Live-Ticker: noch nicht gesendete (offline) Ereignisse */
.live-tk-pending{ opacity:.72; border-left-style:dashed; }
.live-tk-pendtag{ display:inline-flex; align-items:center; gap:4px; color:var(--text-faint); }
.live-tk-pendtag i{ font-size:13px; }

/* Spieler umbenennen */
.rename-form{ display:grid; grid-template-columns:1fr 1fr auto auto; gap:10px; align-items:end; }
.rename-form .field{ min-width:0; }
.rename-result{ margin-top:12px; background:var(--surface-secondary); border:1px solid var(--border); border-radius:12px; padding:12px 14px; }
.rename-head{ font-weight:700; color:var(--text); display:flex; align-items:center; gap:7px; }
.rename-head.done{ color:#37d39b; }
.rename-list{ list-style:none; margin:10px 0 0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:6px 18px; }
.rename-list li{ display:flex; justify-content:space-between; gap:10px; font-size:13px; color:var(--text-muted); border-bottom:1px dashed var(--border); padding-bottom:4px; }
.rename-list li strong{ color:var(--text); }
.rename-none{ color:var(--text-muted); display:flex; align-items:center; gap:7px; font-size:13.5px; }
@media (max-width:640px){ .rename-form{ grid-template-columns:1fr 1fr; } .rename-list{ grid-template-columns:1fr; } }

/* Termin-Modal: Tab-Navigation (übersichtlicher & mobil bedienbar) */
.ev-tabs{ display:flex; gap:4px; background:var(--surface-secondary); border:1px solid var(--border); border-radius:12px; padding:4px; margin-bottom:16px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.ev-tabs::-webkit-scrollbar{ display:none; }
.ev-tab{ flex:1 1 auto; display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; padding:10px 12px; border:none; background:transparent; color:var(--text-muted); font-weight:700; font-size:13px; border-radius:9px; cursor:pointer; transition:background .12s, color .12s; min-height:42px; }
.ev-tab i{ font-size:16px; }
.ev-tab:hover{ color:var(--text); }
.ev-tab.active{ background:var(--green); color:var(--on-accent); }
.ev-tabpanel{ display:none; }
.ev-tabpanel.active{ display:block; animation:evpanel .16s ease; }
@keyframes evpanel{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:none; } }
/* Gastspieler-Chips: größere Tap-Fläche zum Entfernen */
.ev-guest-list{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.ev-guest-chip button{ min-width:26px; min-height:26px; display:inline-grid; place-items:center; }
@media (max-width:560px){
  .ev-tab{ font-size:12.5px; padding:10px 10px; }
  .ev-tab i{ font-size:17px; }
}

/* ===== Auswertung (Anwesenheit / Spielberichte / Geburtstage) ===== */
.stats-tabs{ display:flex; gap:4px; background:var(--surface-secondary); border:1px solid var(--border); border-radius:12px; padding:4px; margin-bottom:16px; overflow-x:auto; scrollbar-width:none; }
.stats-tabs::-webkit-scrollbar{ display:none; }
.stats-tab{ flex:1 1 auto; display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; padding:10px 12px; border:none; background:transparent; color:var(--text-muted); font-weight:700; font-size:13px; border-radius:9px; cursor:pointer; min-height:42px; }
.stats-tab i{ font-size:16px; }
.stats-tab.active{ background:var(--green); color:var(--on-accent); }
.stats-panel{ display:none; }
.stats-panel.active{ display:block; }
.stats-note{ font-size:12.5px; color:var(--text-faint); margin-bottom:10px; }
.stats-empty{ text-align:center; color:var(--text-muted); padding:32px 16px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.stats-empty i{ font-size:28px; opacity:.6; }
.att-filter{ display:inline-flex; gap:4px; background:var(--surface-secondary); border:1px solid var(--border); border-radius:10px; padding:3px; margin-bottom:14px; }
.att-fbtn{ border:none; background:transparent; color:var(--text-muted); font-weight:700; font-size:13px; padding:7px 14px; border-radius:8px; cursor:pointer; }
.att-fbtn.active{ background:var(--green); color:var(--on-accent); }
.att-row{ display:flex; align-items:center; gap:12px; padding:10px 4px; border-bottom:1px solid var(--border); }
.att-rank{ flex:0 0 30px; text-align:center; font-weight:800; color:var(--text-muted); font-size:15px; }
.att-main{ flex:1; min-width:0; }
.att-name{ font-weight:700; color:var(--text); margin-bottom:5px; }
.att-bar{ height:7px; background:var(--surface-secondary); border-radius:99px; overflow:hidden; }
.att-fill{ height:100%; background:var(--green); border-radius:99px; }
.att-num{ flex:0 0 auto; text-align:right; }
.att-pct{ display:block; font-weight:800; color:var(--text); }
.att-sub{ font-size:11px; color:var(--text-faint); }
.report-card{ display:block; width:100%; text-align:left; background:var(--surface-secondary); border:1px solid var(--border); border-radius:12px; padding:12px 14px; margin-bottom:8px; cursor:pointer; }
.report-card:hover{ border-color:var(--border-strong); }
.report-when{ font-size:12px; color:var(--text-faint); margin-bottom:6px; }
.report-match{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; font-weight:700; color:var(--text); }
/* Ergebnis immer exakt mittig: gleich breite Aussenspalten, damit die Position nicht von der Laenge der Teamnamen abhaengt. */
.report-match > span:first-child{ text-align:left; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.report-match > span:last-child{ text-align:right; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.report-res{ font-weight:800; padding:2px 10px; border-radius:var(--radius); background:var(--bg); justify-self:center; }
.report-res.win{ color:#37d39b; } .report-res.loss{ color:#ff6b6b; } .report-res.draw{ color:var(--text-muted); }
.rep-score{ display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--surface-secondary); border:1px solid var(--border); border-radius:14px; padding:16px; margin-bottom:12px; }
.rep-team{ flex:1; text-align:center; font-weight:800; color:var(--text); }
.rep-res{ flex:0 0 auto; font-size:26px; font-weight:900; color:var(--text); padding:4px 14px; border-radius:10px; background:var(--bg); }
.rep-score.win .rep-res{ color:#37d39b; } .rep-score.loss .rep-res{ color:#ff6b6b; }
.rep-meta{ text-align:center; font-size:12.5px; color:var(--text-faint); margin-bottom:14px; }
.rep-row{ display:flex; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); }
.rep-lbl{ flex:0 0 128px; color:var(--text-muted); font-weight:700; font-size:13px; display:flex; align-items:center; gap:6px; }
.rep-val{ flex:1; color:var(--text); font-size:13.5px; }
.bday-row{ display:flex; align-items:center; gap:12px; padding:11px 4px; border-bottom:1px solid var(--border); }
.bday-ico{ flex:0 0 38px; height:38px; border-radius:10px; background:rgba(176,124,255,.15); color:#b07cff; display:grid; place-items:center; font-size:19px; }
.bday-main{ flex:1; min-width:0; }
.bday-name{ font-weight:700; color:var(--text); }
.bday-date{ font-size:12.5px; color:var(--text-faint); }
.bday-when{ flex:0 0 auto; font-weight:700; font-size:13px; color:var(--text-muted); }
.bday-row.is-today{ background:rgba(176,124,255,.1); border-radius:10px; }
.bday-row.is-today .bday-when{ color:#b07cff; }
@media (max-width:560px){ .rep-lbl{ flex-basis:96px; } .stats-tab{ font-size:12.5px; } }

/* Login-Overlay sichtbar -> mobile App-Leisten komplett ausblenden.
   Verhindert, dass unten die Bottom-Navigation / Topbar durch das
   Overlay scheint (Stacking-Context am Handy). Greift automatisch,
   weil #login-overlay im DOM vor .app und .bottom-nav steht. */
#login-overlay:not(.hidden) ~ .bottom-nav,
#login-overlay:not(.hidden) ~ .app .mobile-topbar,
#login-overlay:not(.hidden) ~ .app .bottom-nav { display: none !important; }
/* Sicherheitshalber ganz nach oben legen */
#login-overlay:not(.hidden) { z-index: 100000; }

/* Passwort ändern – Modal */
.modal.modal-sm{ max-width: 380px; }
.cpw-msg{ font-size:13px; padding:9px 12px; border-radius:9px; margin-top:2px; }
.cpw-msg.err{ background:rgba(255,107,107,.12); color:#ff8f8f; border:1px solid rgba(255,107,107,.3); }
.cpw-msg.ok{ background:rgba(55,211,155,.12); color:#5fe0b0; border:1px solid rgba(55,211,155,.3); }

/* Kasse: Kisten (Geburtstag / Einstand / freier Grund) */
.kasse-log-amt.kiste{ color:#f0b429; font-size:18px; }
.kasse-kiste-row{ display:flex; align-items:center; gap:12px; padding:11px 4px; border-bottom:1px solid var(--border); }
.kasse-kiste-ico{ flex:0 0 38px; height:38px; border-radius:10px; background:rgba(240,180,41,.15); color:#f0b429; display:grid; place-items:center; font-size:19px; }
.kasse-kiste-mid{ flex:1; min-width:0; }
.kasse-kiste-player{ font-weight:700; color:var(--text); }
.kasse-kiste-reason{ font-size:12.5px; color:var(--text-faint); }

/* ===== Spielerpass ===== */
button.att-row{ background:none; border:none; border-bottom:1px solid var(--border); font:inherit; width:100%; text-align:left; cursor:pointer; }
button.att-row:hover{ background:var(--surface-secondary); }
.pp-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px; }
.pp-stat{ background:var(--surface-secondary); border:1px solid var(--border); border-radius:12px; padding:12px 8px; text-align:center; }
.pp-stat-v{ font-size:22px; font-weight:900; color:var(--text); }
.pp-stat-l{ font-size:11px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.03em; margin-top:2px; }
.pp-stat.g .pp-stat-v{ color:#37d39b; } .pp-stat.a .pp-stat-v{ color:#00ccff; }
.pp-stat.y .pp-stat-v{ color:#f0b429; } .pp-stat.r .pp-stat-v{ color:#ff6b6b; }
.pp-streak{ background:rgba(255,140,40,.12); border:1px solid rgba(255,140,40,.3); color:#ffb066; border-radius:10px; padding:9px 12px; font-size:13.5px; margin-bottom:12px; }
.pp-sec-title{ font-size:12px; font-weight:800; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; margin:14px 0 8px; }
.pp-badges{ display:flex; flex-wrap:wrap; gap:8px; }
.pp-badge{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; padding:6px 11px; border-radius:99px; background:var(--surface-secondary); border:1px solid var(--border); color:var(--text); }
.pp-badge.gold{ background:rgba(240,180,41,.14); border-color:rgba(240,180,41,.35); color:#f0b429; }
.pp-badge.silver{ background:rgba(180,190,200,.14); border-color:rgba(180,190,200,.3); color:#cfd8e3; }
.pp-badge.streak{ background:rgba(255,140,40,.14); border-color:rgba(255,140,40,.3); color:#ffb066; }
.pp-badge.goals{ background:rgba(55,211,155,.14); border-color:rgba(55,211,155,.3); color:#37d39b; }
.pp-badge.assists{ background:rgba(0,204,255,.12); border-color:rgba(0,204,255,.3); color:#00ccff; }
.pp-muted{ color:var(--text-faint); font-size:13px; }
.pp-bal{ font-weight:800; font-size:15px; padding:8px 12px; border-radius:10px; display:inline-block; }
.pp-bal.open{ background:rgba(255,107,107,.12); color:#ff8f8f; } .pp-bal.ok{ background:rgba(55,211,155,.12); color:#5fe0b0; }
.pp-fines{ margin-top:10px; }
.pp-fine{ display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px solid var(--border); font-size:13px; }
.pp-fine-name{ color:var(--text); } .pp-fine-meta{ color:var(--text-faint); white-space:nowrap; }

/* ===== Abzeichen-Tab ===== */
.badge-hero{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:linear-gradient(135deg, rgba(240,180,41,.18), rgba(240,180,41,.05)); border:1px solid rgba(240,180,41,.35); border-radius:14px; padding:14px 16px; margin-bottom:14px; cursor:pointer; color:var(--text); }
.badge-hero>i{ font-size:30px; color:#f0b429; }
.badge-hero-l{ font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; }
.badge-hero-n{ font-size:16px; font-weight:800; color:var(--text); }
.badge-card{ background:var(--surface-secondary); border:1px solid var(--border); border-radius:14px; padding:12px 14px; margin-bottom:10px; }
.badge-card-h{ font-size:13px; font-weight:800; color:var(--text); margin-bottom:8px; display:flex; align-items:center; gap:7px; }
.badge-card-h i{ color:var(--green); }
.badge-line{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:none; border:none; padding:7px 2px; border-bottom:1px solid var(--border); cursor:pointer; }
.badge-line:last-child{ border-bottom:none; }
.badge-rank{ flex:0 0 22px; text-align:center; font-weight:800; color:var(--text-muted); }
.badge-name{ flex:1; color:var(--text); font-weight:600; }
.badge-val{ font-weight:800; color:var(--text); }

/* Account-Markierung: Erst-Login-Status */
.acc-meta{ flex-wrap:wrap; }
.acc-tag-new{ display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:700; padding:3px 9px; border-radius:99px; background:rgba(240,180,41,.14); color:#f0b429; border:1px solid rgba(240,180,41,.3); }
.acc-tag-active{ display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:600; color:var(--text-faint); }
.acc-head-new{ color:#f0b429; font-weight:700; }
.acc-row-new{ border-left:3px solid #f0b429; }

/* ===== Saisonabschluss & Archiv ===== */
.modal-btn-danger{ background:#e5484d; color:#fff; border:none; }
.modal-btn-danger:disabled{ opacity:.45; cursor:not-allowed; }
.kasse-btn.danger{ border-color:rgba(229,72,77,.5); color:#ff8f8f; }
.kasse-btn.danger:hover{ background:rgba(229,72,77,.12); }
.season-box .season-explain{ font-size:13px; color:var(--text-muted); line-height:1.5; margin:6px 0 12px; }
.season-sec-title{ font-size:12px; font-weight:800; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; margin:16px 0 8px; }
.season-arch{ display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; text-align:left; background:var(--surface-secondary); border:1px solid var(--border); border-radius:12px; padding:11px 13px; margin-bottom:8px; cursor:pointer; }
.season-arch:hover{ border-color:var(--border-strong); }
.season-arch-name{ font-weight:700; color:var(--text); display:flex; align-items:center; gap:7px; }
.season-arch-meta{ font-size:12px; color:var(--text-faint); white-space:nowrap; }
.season-warn{ display:flex; gap:9px; align-items:flex-start; background:rgba(229,72,77,.1); border:1px solid rgba(229,72,77,.3); color:#ff9a9a; border-radius:10px; padding:11px 13px; font-size:13px; line-height:1.45; margin-bottom:14px; }
.season-warn i{ font-size:18px; flex:0 0 auto; margin-top:1px; }
.sv-record{ font-size:15px; } .sv-record .w{ color:#37d39b; } .sv-record .d{ color:var(--text-muted); } .sv-record .l{ color:#ff6b6b; }
.sv-row{ display:flex; justify-content:space-between; gap:10px; padding:6px 0; border-bottom:1px solid var(--border); font-size:13.5px; color:var(--text); }

/* ===== Kader-Abgleich (Kasse ↔ Kader) ===== */
.ka-cols{ display:flex; gap:12px; flex-wrap:wrap; margin:4px 0 12px; }
.ka-col{ flex:1 1 160px; min-width:0; background:var(--surface-secondary); border:1px solid var(--border); border-radius:12px; padding:11px 12px; }
.ka-col-h{ font-size:12px; font-weight:800; color:var(--text-muted); text-transform:uppercase; letter-spacing:.03em; margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.ka-badge{ font-size:11px; font-weight:800; background:var(--bg); color:var(--text-muted); border-radius:99px; padding:1px 7px; }
.ka-chip{ display:inline-block; font-size:12.5px; font-weight:600; padding:4px 9px; border-radius:99px; margin:0 5px 5px 0; border:1px solid var(--border); }
.ka-chip.kader{ background:rgba(0,204,255,.1); color:#7fdcff; border-color:rgba(0,204,255,.25); }
.ka-chip.kasse{ background:rgba(240,180,41,.12); color:#f0b429; border-color:rgba(240,180,41,.28); }
.ka-ok{ display:flex; align-items:center; gap:8px; background:rgba(55,211,155,.1); border:1px solid rgba(55,211,155,.3); color:#5fe0b0; border-radius:10px; padding:10px 13px; font-size:13.5px; margin:4px 0 12px; }
.kader-alias-form{ display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; margin:6px 0 4px; }
.kader-alias-form .field{ flex:1 1 130px; margin:0; }
.alias-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px solid var(--border); }
.alias-row:last-child{ border-bottom:none; }
.alias-txt{ font-size:13.5px; color:var(--text); } .alias-txt i{ color:var(--text-faint); font-size:14px; vertical-align:-2px; }

/* ============================ Spielplan ============================ */
.spielplan-modal{ max-width:860px; width:96%; }
.sp-seg-row{ display:flex; gap:6px; padding:0 20px 6px; }
.sp-seg{ flex:1; padding:9px 12px; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface-secondary); color:var(--text-muted); font-weight:700; font-size:.86rem; cursor:pointer; transition:.15s; }
.sp-seg:hover{ color:var(--text); border-color:var(--border-strong); }
.sp-seg.active{ background:var(--green-light); border-color:var(--green); color:var(--green-dark); }

.sp-summary{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:12px; }
.sp-sum-cell{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 6px; border-radius:var(--radius); background:var(--surface-secondary); border:1px solid var(--border); }
.sp-sum-val{ font-weight:800; font-size:1.15rem; color:var(--text); }
.sp-sum-lab{ font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); font-weight:700; }
.sp-form-cell .sp-form-row{ display:flex; gap:4px; }
.sp-form{ width:22px; height:22px; border-radius:6px; display:grid; place-items:center; font-size:.72rem; font-weight:800; color:#06222c; }
.sp-form.win{ background:#39d98a; } .sp-form.draw{ background:#e0b93b; } .sp-form.loss{ background:#ff6b6b; }
.sp-muted{ color:var(--text-faint); }

.sp-next{ display:flex; align-items:center; gap:6px; padding:9px 12px; margin-bottom:14px; border-radius:var(--radius); background:var(--green-light); border:1px solid rgba(0,204,255,0.22); color:var(--text); font-size:.9rem; }
.sp-next i{ color:var(--green); } .sp-next b{ color:var(--green-dark); }

.sp-list{ display:flex; flex-direction:column; gap:8px; }
.sp-row{ position:relative; display:flex; align-items:center; gap:12px; padding:12px 14px 12px 18px; border-radius:var(--radius-lg); background:var(--surface-secondary); border:1px solid var(--border); overflow:hidden; }
.sp-row::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background:rgba(255,255,255,0.14); }
.sp-row.is-win::before{ background:#39d98a; } .sp-row.is-draw::before{ background:#e0b93b; } .sp-row.is-loss::before{ background:#ff6b6b; } .sp-row.is-upcoming::before{ background:var(--green); }

.sp-mid{ flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.sp-matchup{ display:flex; align-items:center; gap:12px; }
.sp-team{ display:flex; align-items:center; gap:8px; min-width:0; flex:1; }
.sp-team:last-child{ flex-direction:row-reverse; text-align:right; }
.sp-badge{ width:34px; height:34px; flex:0 0 34px; border-radius:8px; background:var(--bg); border:1px solid var(--border); display:grid; place-items:center; overflow:hidden; }
.sp-badge img{ width:100%; height:100%; object-fit:contain; }
.sp-badge-fb{ font-size:.72rem; font-weight:800; color:var(--green-dark); }
.sp-team-name{ font-weight:700; font-size:.92rem; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sp-res{ font-weight:800; font-size:1.1rem; padding:2px 10px; border-radius:8px; background:var(--bg); flex:0 0 auto; }
.sp-res.win{ color:#39d98a; } .sp-res.draw{ color:#e0b93b; } .sp-res.loss{ color:#ff6b6b; }
.sp-vs{ font-weight:800; color:var(--text-faint); flex:0 0 auto; font-size:.9rem; }

.sp-when{ display:flex; flex-direction:column; }
.sp-date{ font-weight:700; font-size:.82rem; color:var(--text-muted); }
.sp-sub{ font-size:.72rem; color:var(--text-faint); }
.sp-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.sp-tag{ display:inline-flex; align-items:center; gap:3px; font-size:.7rem; font-weight:700; padding:2px 8px; border-radius:99px; background:var(--bg); color:var(--text-muted); border:1px solid var(--border); }
.sp-tag i{ font-size:.85em; }
.sp-tag.home{ color:var(--green-dark); } .sp-tag.away{ color:#f0a860; } .sp-tag.soon{ color:var(--green); }

.sp-acts{ display:flex; flex-direction:column; gap:6px; flex:0 0 auto; }
.sp-act{ display:inline-flex; align-items:center; gap:5px; padding:6px 10px; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface); color:var(--text-muted); font-size:.76rem; font-weight:700; cursor:pointer; transition:.15s; white-space:nowrap; }
.sp-act:hover{ color:var(--green-dark); border-color:var(--green); background:var(--green-light); }

.sp-empty{ text-align:center; padding:36px 20px; color:var(--text-faint); }
.sp-empty i{ font-size:1.8rem; display:block; margin-bottom:8px; }

@media (max-width:560px){
  .sp-summary{ grid-template-columns:repeat(2,1fr); }
  .sp-row{ flex-wrap:wrap; }
  .sp-acts{ flex-direction:row; width:100%; }
  .sp-act{ flex:1; justify-content:center; }
  .sp-team-name{ font-size:.82rem; }
}

/* ---- Sidebar: einklappbare Grafik-Befehle entfernt (Befehle → „Grafiken erstellen") ---- */

/* ---- Strafen-Automatik ---- */
.kauto-grouph{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:.9rem; color:var(--text); margin:14px 0 8px; }
.kauto-grouph:first-child{ margin-top:0; }
.kauto-grouph i{ color:var(--green); }
.kauto-grouph.warn i{ color:#e0b93b; }
.kauto-badge{ font-size:.66rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:2px 8px; border-radius:99px; }
.kauto-badge.ok{ background:rgba(57,217,138,0.15); color:#39d98a; }
.kauto-badge.warn{ background:rgba(224,185,59,0.15); color:#e0b93b; }
.kauto-hint{ font-size:.78rem; color:var(--text-faint); margin:-2px 0 8px; }
.kauto-row{ display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface-secondary); margin-bottom:6px; cursor:pointer; transition:.12s; }
.kauto-row:hover{ border-color:var(--border-strong); }
.kauto-row.on{ border-color:var(--green); background:var(--green-light); }
.kauto-row.unmatched{ opacity:.72; cursor:default; }
.kauto-row input[type="checkbox"]{ width:18px; height:18px; flex:0 0 auto; accent-color:var(--green); }
.kauto-main{ display:flex; flex-direction:column; gap:1px; min-width:0; flex:1; }
.kauto-player{ font-weight:700; font-size:.9rem; color:var(--text); display:flex; align-items:center; gap:6px; }
.kauto-warn{ color:#e0b93b; display:inline-flex; }
.kauto-reason{ font-size:.78rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kauto-meta{ font-size:.74rem; color:var(--text-faint); text-align:right; white-space:nowrap; flex:0 0 auto; }
.kauto-amt{ font-weight:800; font-size:.92rem; color:var(--text); flex:0 0 auto; min-width:64px; text-align:right; }
.kasse-auto-total{ margin-right:auto; font-weight:700; font-size:.86rem; color:var(--text-muted); }
.ti-spin{ animation:kauto-spin 1s linear infinite; display:inline-block; }
@keyframes kauto-spin{ to{ transform:rotate(360deg); } }
@media (max-width:560px){ .kauto-meta{ display:none; } .kauto-amt{ min-width:52px; } }

/* ---- Öffentlicher Spielplan-Link (Admin-Karte) ---- */
.pubsp-row{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:8px 0 2px; }
.pubsp-row input{ flex:1; min-width:200px; padding:9px 12px; border-radius:var(--radius); border:1px solid var(--border); background:var(--bg); color:var(--text); font-size:13px; font-family:inherit; }
.pubsp-row input:focus{ outline:none; border-color:var(--green); }
.pubsp-row a.kasse-btn{ text-decoration:none; }

/* ---- Profil: Zwischenüberschrift für Ausrüstungsgrößen ---- */
.field-label-sep{ display:flex; align-items:center; gap:7px; font-weight:700; font-size:.82rem; color:var(--text-muted); margin:6px 0 8px; padding-top:10px; border-top:1px solid var(--border); }
.field-label-sep i{ color:var(--green); font-size:1rem; }
.field-label-sep span{ font-weight:400; color:var(--text-faint); font-size:.78rem; }

/* ---- Größen-Übersicht (Trikot/Hose/Schuh) ---- */
.team-kader-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.sizes-table{ width:100%; border-collapse:collapse; font-size:.9rem; }
.sizes-table th{ text-align:left; font-size:.7rem; text-transform:uppercase; letter-spacing:.05em; color:var(--text-faint); font-weight:700; padding:6px 10px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--surface); }
.sizes-table th:not(:first-child), .sizes-table td:not(:first-child){ text-align:center; width:74px; }
.sizes-table td{ padding:8px 10px; border-bottom:1px solid var(--border); color:var(--text); }
.sizes-table tr:last-child td{ border-bottom:none; }
.sizes-table tr.sz-part td{ background:rgba(224,185,59,0.05); }
.sz-name{ font-weight:600; }
.sz-num{ display:inline-grid; place-items:center; min-width:24px; height:22px; padding:0 5px; margin-right:8px; border-radius:6px; background:var(--green-light); color:var(--green); font-size:.72rem; font-weight:800; vertical-align:middle; }
.sz-empty{ color:var(--text-faint); }
.sizes-foot-info{ margin-right:auto; font-size:.82rem; color:var(--text-muted); font-weight:600; }

/* ---- Persönlicher PayPal-Button (mit vorausgefülltem Betrag) ---- */
.kp-pay-btn, .pp-pay-btn{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:12px; padding:11px 16px; border-radius:var(--radius); background:#0070ba; color:#fff; font-weight:700; font-size:.92rem; text-decoration:none; transition:background .15s ease, transform .05s ease; }
.kp-pay-btn:hover, .pp-pay-btn:hover{ background:#005a96; }
.kp-pay-btn:active, .pp-pay-btn:active{ transform:translateY(1px); }
.kp-pay-btn i, .pp-pay-btn i{ font-size:1.1rem; }
.pp-pay-btn{ margin-top:8px; }

/* ---- Kalender-Abo Modal ---- */
.abo-cta{ display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 16px; border-radius:var(--radius); background:var(--green); color:var(--on-accent,#04121a); font-weight:700; text-decoration:none; margin-bottom:10px; transition:filter .15s ease, transform .05s ease; }
.abo-cta:hover{ filter:brightness(1.06); }
.abo-cta:active{ transform:translateY(1px); }
.abo-hint{ display:flex; align-items:center; gap:8px; font-size:.82rem; color:var(--text-muted); margin:0 0 12px; }
.abo-hint i{ color:var(--text-faint); font-size:1rem; flex:0 0 auto; }
.abo-note{ display:flex; gap:8px; font-size:.78rem; color:var(--text-faint); margin-top:12px; line-height:1.5; }
.abo-note i{ flex:0 0 auto; margin-top:1px; }
.abo-note code{ background:var(--surface-secondary); padding:1px 5px; border-radius:5px; font-size:.9em; }

/* ---- Spiele importieren (iCal-Feed) ---- */
.imp-src{ margin-bottom:6px; }
.imp-or{ text-align:center; font-size:.78rem; color:var(--text-faint); margin:8px 0; text-transform:uppercase; letter-spacing:.05em; }
.imp-file-btn{ display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.imp-status{ font-size:.82rem; margin:10px 0 4px; color:var(--text-muted); display:flex; align-items:center; gap:6px; }
.imp-status.ok{ color:var(--green); }
.imp-status.warn{ color:#e0b93b; }
.imp-preview{ margin-top:6px; }
.imp-row{ display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface-secondary); margin-bottom:6px; cursor:pointer; transition:.12s; }
.imp-row:hover{ border-color:var(--border-strong); }
.imp-row.on{ border-color:var(--green); background:var(--green-light); }
.imp-row.exists{ opacity:.55; cursor:default; }
.imp-row input[type="checkbox"]{ width:18px; height:18px; flex:0 0 auto; accent-color:var(--green); }
.imp-main{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.imp-title{ font-weight:700; font-size:.9rem; color:var(--text); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.imp-meta{ font-size:.76rem; color:var(--text-faint); }
.imp-badge{ font-size:.66rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:2px 7px; border-radius:99px; background:var(--bg); color:var(--text-muted); border:1px solid var(--border); }
.imp-badge.match{ background:var(--green-light); color:var(--green); border-color:transparent; }
.imp-foot-info{ margin-right:auto; font-size:.82rem; color:var(--text-muted); font-weight:600; }

/* ---- Matchday-Autopilot ---- */
.mda{ background:linear-gradient(160deg,var(--surface-secondary),var(--surface)); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px 16px 18px; margin-bottom:18px; }
.mda-head{ margin-bottom:14px; }
.mda-title{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:1rem; }
.mda-title i{ color:var(--green); }
.mda-match{ font-weight:800; font-size:1.15rem; margin-top:8px; }
.mda-when{ color:var(--text-faint); font-size:.82rem; margin-top:2px; }
.mda-phases{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.mda-phase{ background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); padding:12px; display:flex; flex-direction:column; }
.mda-ph-h{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:.9rem; margin-bottom:10px; }
.mda-ph-num{ display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--green-light); color:var(--green); font-size:.75rem; font-weight:800; flex:0 0 auto; }
.mda-actions{ display:flex; flex-direction:column; gap:6px; margin-bottom:8px; }
.mda-btn{ display:inline-flex; align-items:center; gap:7px; padding:8px 10px; border-radius:var(--radius); border:1px solid transparent; background:var(--green); color:var(--on-accent,#04121a); font-weight:700; font-size:.82rem; cursor:pointer; transition:filter .15s ease; text-align:left; }
.mda-btn:hover{ filter:brightness(1.06); }
.mda-btn.ghost{ background:transparent; border-color:var(--border); color:var(--text); }
.mda-btn.ghost:hover{ border-color:var(--green); color:var(--green); filter:none; }
.mda-btn[disabled]{ opacity:.45; cursor:not-allowed; }
.mda-cap{ font-size:.76rem; color:var(--text-muted); white-space:pre-wrap; line-height:1.45; background:var(--surface-secondary); border-radius:8px; padding:8px 10px; margin-top:auto; }
.mda-hint{ font-size:.76rem; color:var(--text-faint); line-height:1.45; margin-top:auto; }
.mda-muted{ color:var(--text-faint); font-style:italic; }
@media (max-width:720px){ .mda-phases{ grid-template-columns:1fr; } }

/* ---- Spielbericht-Text ---- */
.rep-text{ margin-top:14px; background:var(--surface-secondary); border:1px solid var(--border); border-radius:var(--radius); padding:14px; }
.rep-text-h{ display:flex; align-items:center; gap:7px; font-weight:700; font-size:.82rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px; }
.rep-text-h i{ color:var(--green); }
.rep-text-p{ margin:0 0 12px; font-size:.92rem; line-height:1.6; color:var(--text); white-space:pre-wrap; }
.rep-text-copy{ display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:var(--radius); border:none; background:var(--green); color:var(--on-accent,#04121a); font-weight:700; font-size:.85rem; cursor:pointer; }
.rep-text-copy:hover{ filter:brightness(1.06); }

/* ---- QR-Code Modal ---- */
.modal-narrow{ max-width:360px; }
.qr-body{ text-align:center; }
.qr-frame{ background:#fff; border-radius:14px; padding:16px; display:inline-grid; place-items:center; min-width:220px; min-height:220px; }
.qr-frame img{ width:220px; height:220px; image-rendering:pixelated; display:block; }
.qr-status{ color:#333; font-size:.85rem; }
.qr-url{ margin-top:12px; font-size:.78rem; color:var(--text-faint); word-break:break-all; }
.qr-hint{ margin-top:8px; font-size:.8rem; color:var(--text-muted); }

/* ---- Mobil-Feinschliff: interner Scroll für lange Listen-Modals ---- */
#sizes-body{ max-height:min(62vh, 520px); overflow:auto; }
#kasse-auto-body{ max-height:min(60vh, 540px); overflow:auto; }
#imp-preview{ max-height:min(46vh, 420px); overflow-y:auto; }
@media (max-width:560px){
  .sizes-table th, .sizes-table td{ padding:7px 8px; }
  .sizes-table th:not(:first-child), .sizes-table td:not(:first-child){ width:54px; }
  #sizes-body{ overflow-x:auto; }
  .mda-match{ font-size:1.05rem; }
  .imp-meta{ font-size:.72rem; }
}

/* ============================================================
   Lokale Schriften (DSGVO: keine Google-Fonts mehr).
   Dateien in /fonts/ ablegen -> exakte Typografie wie zuvor.
   Fehlen die Dateien, greift automatisch die System-Schrift.
   Benötigte Dateien (woff2):
     fonts/inter-400.woff2  inter-500.woff2  inter-600.woff2
     fonts/montserrat-600.woff2 …-700 …-800 …-900.woff2
     fonts/jetbrainsmono-400.woff2  jetbrainsmono-500.woff2
   ============================================================ */
@font-face{ font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:local('Inter'), url('fonts/inter-400.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:local('Inter Medium'), url('fonts/inter-500.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:local('Inter SemiBold'), url('fonts/inter-600.woff2') format('woff2'); }
@font-face{ font-family:'Montserrat'; font-style:normal; font-weight:600; font-display:swap; src:local('Montserrat SemiBold'), url('fonts/montserrat-600.woff2') format('woff2'); }
@font-face{ font-family:'Montserrat'; font-style:normal; font-weight:700; font-display:swap; src:local('Montserrat Bold'), url('fonts/montserrat-700.woff2') format('woff2'); }
@font-face{ font-family:'Montserrat'; font-style:normal; font-weight:800; font-display:swap; src:local('Montserrat ExtraBold'), url('fonts/montserrat-800.woff2') format('woff2'); }
@font-face{ font-family:'Montserrat'; font-style:normal; font-weight:900; font-display:swap; src:local('Montserrat Black'), url('fonts/montserrat-900.woff2') format('woff2'); }
@font-face{ font-family:'JetBrains Mono'; font-style:normal; font-weight:400; font-display:swap; src:local('JetBrains Mono'), url('fonts/jetbrainsmono-400.woff2') format('woff2'); }
@font-face{ font-family:'JetBrains Mono'; font-style:normal; font-weight:500; font-display:swap; src:local('JetBrains Mono Medium'), url('fonts/jetbrainsmono-500.woff2') format('woff2'); }

/* ---- Aufgaben: Sektion, Zuweisung & Rotation ---- */
.task-top{ display:flex; align-items:center; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
.task-progress{ flex:1; min-width:180px; }
.task-progress-track{ height:8px; border-radius:99px; background:var(--surface-secondary); overflow:hidden; }
.task-progress-fill{ height:100%; background:var(--green); border-radius:99px; transition:width .3s ease; }
.task-progress-label{ font-size:.78rem; color:var(--text-faint); margin-top:5px; }
.nav-count{ display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; margin-left:4px; border-radius:99px; background:var(--green); color:var(--on-accent,#04121a); font-size:.7rem; font-weight:800; }
.task-assign{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; }
.task-chip{ display:inline-flex; align-items:center; font-size:.74rem; font-weight:700; padding:3px 9px; border-radius:99px; background:var(--green-light); color:var(--green); }
.task-rot{ display:inline-flex; align-items:center; gap:6px; font-size:.8rem; color:var(--text-muted); }
.task-rot i{ color:var(--green); }
.task-rot b{ color:var(--text); }
.task-rot-pos{ font-size:.7rem; color:var(--text-faint); background:var(--surface-secondary); padding:1px 6px; border-radius:99px; }
.task-next{ display:inline-flex; align-items:center; gap:5px; font-size:.74rem; font-weight:700; padding:4px 10px; border-radius:99px; border:1px solid var(--border); background:transparent; color:var(--text); cursor:pointer; }
.task-next:hover{ border-color:var(--green); color:var(--green); }
.task-players{ display:grid; grid-template-columns:1fr 1fr; gap:4px 12px; max-height:200px; overflow-y:auto; padding:8px 10px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg); }
.task-pl{ display:flex; align-items:center; gap:7px; font-size:.86rem; cursor:pointer; padding:2px 0; }
.task-pl input{ width:16px; height:16px; accent-color:var(--green); }
.task-players-hint{ font-size:.76rem; color:var(--text-faint); margin-top:6px; }
.task-forplayers{ display:flex; align-items:center; gap:8px; font-size:.88rem; margin-top:12px; cursor:pointer; }
.task-forplayers input{ width:16px; height:16px; accent-color:var(--green); }
@media (max-width:560px){ .task-players{ grid-template-columns:1fr; max-height:180px; } }

/* ---- Kasse: kompaktere Aktionen auf Mobil (Kassenwart+) ---- */
.kasse-actions-more{ display:contents; }          /* Desktop: Buttons fließen normal in die Leiste */
.kasse-more-toggle{ display:none; }               /* Toggle nur auf Mobil */
.kasse-more-chev{ font-size:15px; transition:transform .2s ease; }
@media (max-width:768px){
  .kasse-more-toggle{ display:flex; flex:1 1 100%; justify-content:center; }
  .kasse-more-toggle[aria-expanded="true"] .kasse-more-chev{ transform:rotate(180deg); }
  .kasse-actions-more{ display:none; flex:1 1 100%; width:100%; flex-wrap:wrap; gap:8px; }
  .kasse-actions-more.open{ display:flex; }
  .kasse-actions-more .kasse-btn{ flex:1 1 calc(50% - 4px); min-width:0; justify-content:center; text-align:center; }
}

/* ---- Hub: Nächste Trainings (Schnell-Zu-/Absage) ---- */
.hub-tr-head{ display:flex; align-items:center; gap:7px; font-size:.82rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; margin:16px 2px 8px; }
.hub-tr-head i{ color:var(--green); }
.hub-tr-list{ display:flex; flex-direction:column; gap:8px; }
.hub-tr{ display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:12px 14px; }
.hub-tr-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.hub-tr-title{ display:flex; align-items:center; gap:7px; font-weight:700; font-size:.92rem; color:var(--text); }
.hub-tr-title i{ color:var(--green); font-size:16px; }
.hub-tr-meta{ font-size:.78rem; color:var(--text-faint); }
.hub-tr-btns{ display:flex; gap:8px; flex:0 0 auto; }
.hub-tr-btn{ width:44px; height:44px; border-radius:12px; border:1px solid var(--border); background:var(--surface-secondary); cursor:pointer; display:grid; place-items:center; color:var(--text-muted); transition:.14s; }
.hub-tr-btn i{ font-size:20px; }
.hub-tr-btn.yes:hover, .hub-tr-btn.yes.on{ background:var(--green-light); border-color:var(--green); color:var(--green); }
.hub-tr-btn.no:hover, .hub-tr-btn.no.on{ background:rgba(255,107,107,.14); border-color:#ff6b6b; color:#ff6b6b; }
.hub-tr-status{ display:flex; align-items:center; gap:6px; font-size:.82rem; font-weight:700; color:var(--text-faint); flex:0 0 auto; }
.hub-tr-status.yes{ color:var(--green); }
.hub-tr-status.no{ color:#ff6b6b; }
.hub-tr-open{ display:flex; align-items:center; gap:6px; background:transparent; border:1px solid var(--border); border-radius:10px; padding:8px 11px; color:var(--text-muted); cursor:pointer; flex:0 0 auto; }

/* ---- Kasse: Spielerzeile bricht auf Mobil um (kein horizontaler Scroll) ---- */
@media (max-width:768px){
  .kasse-row{ flex-wrap:wrap; align-items:flex-start; }
  /* Name links, Saldo rechts – bleiben immer in einer Zeile zusammen */
  .kasse-row-main{ flex:1 1 0; min-width:0; }
  .kasse-bal{ flex:0 0 auto !important; }
  /* Aktions-Buttons brechen als Ganzes in die zweite Zeile um */
  .kasse-row-actions{ flex:1 1 100%; width:100%; justify-content:space-between; gap:8px; margin-top:10px; }
  .kasse-row-actions .kasse-mini{ flex:1 1 auto; }
}

/* ---- Kasse Mobil: nichts läuft mehr aus dem Bild ---- */
@media (max-width:768px){
  /* Primär-Buttons (PayPal + Strafe buchen) immer exakt halbe Breite */
  .kasse-actions > .kasse-btn:not(.kasse-more-toggle){ flex:1 1 0; min-width:0; }
  /* Tabs umbrechen statt seitlich zu scrollen (nichts abgeschnitten) */
  .kasse-tabs{ flex-wrap:wrap; overflow-x:visible; background:transparent; border:none; padding:0; gap:6px; }
  .kasse-tab{ flex:0 0 auto; background:var(--surface-secondary); border:1px solid var(--border); }
  .kasse-tab.active{ background:var(--green); color:var(--on-accent); border-color:var(--green); }
  /* Sicherheitsnetz: Kasse-Bereich nie horizontal scrollen lassen */
  #section-kasse{ overflow-x:clip; }
}

/* ---- Kasse Mobil: aufgeräumtes, lückenloses Layout ---- */
@media (max-width:768px){
  /* Übersichtskarten: 2 Spalten; kleine Karten stapeln Icon über Text (mehr Platz für den Betrag) */
  #section-kasse .kasse-cards{ grid-template-columns:repeat(2,1fr); gap:10px; }
  #section-kasse .kasse-card{ flex-direction:column; align-items:flex-start; gap:8px; padding:13px 14px; }
  #section-kasse .kasse-card-ico{ width:36px; height:36px; font-size:18px; }
  #section-kasse .kasse-card-val{ font-size:21px; }
  /* Kontostand-Hero bleibt horizontal und volle Breite */
  #section-kasse .kasse-card-hero{ grid-column:1 / -1; flex-direction:row; align-items:center; }
  #section-kasse .kasse-card-hero .kasse-card-val{ font-size:30px; }
  /* Tabs: saubere Chips, füllen die Zeile aus, brechen um statt zu scrollen */
  #section-kasse .kasse-tabs{ display:flex; flex-wrap:wrap; gap:6px; background:transparent; border:none; padding:0; overflow:visible; }
  #section-kasse .kasse-tab{ flex:1 1 auto; text-align:center; white-space:nowrap; background:var(--surface-secondary); border:1px solid var(--border); border-radius:11px; padding:9px 12px; font-size:12.5px; }
  #section-kasse .kasse-tab.active{ background:var(--green); color:var(--on-accent); border-color:var(--green); }
  /* Primäraktionen: gleichmäßiger Abstand */
  #section-kasse .kasse-actions{ gap:10px; }
  #section-kasse .kasse-toolbar{ gap:14px; }
}

/* ---- Aufstellung im Termin: Frei-Modus (Positionen verschieben) ---- */
.lu-tool.active{ background:var(--green); color:var(--on-accent,#04121a); border-color:var(--green); }
.lu-freemoving .lu-slot{ cursor:grab; touch-action:none; }
.lu-freemoving .lu-slot .lu-token{ box-shadow:0 0 0 2px var(--green), 0 2px 6px rgba(0,0,0,.4); }
.lu-slot.lu-slot-moving{ z-index:6; cursor:grabbing; }
.lu-slot.lu-slot-moving .lu-token{ filter:brightness(1.12); }

/* ---- Liveticker: Freitext-Kommentar ---- */
.live-note{ flex:1; min-width:0; height:42px; padding:0 12px; border-radius:10px; background:var(--bg); border:1px solid var(--border-strong); color:var(--text); font-size:14px; }
.live-btn-note{ flex:0 0 auto; }
.live-tk-kommentar .live-tk-ico{ color:var(--green); }
.live-tk-kommentar .live-tk-text{ font-style:italic; }

/* ---- Spieler des Spiels (Voting) ---- */
.motm-hint{ font-size:.85rem; color:var(--text-muted); margin-bottom:12px; line-height:1.5; }
.motm-list{ display:flex; flex-direction:column; gap:7px; }
.motm-row{ position:relative; display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:12px 14px; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface-secondary); color:var(--text); cursor:pointer; overflow:hidden; font-size:.92rem; }
.motm-row:hover{ border-color:var(--border-strong); }
.motm-bar{ position:absolute; left:0; top:0; bottom:0; background:var(--green-light); z-index:0; transition:width .3s ease; }
.motm-name, .motm-cnt{ position:relative; z-index:1; }
.motm-row .motm-name{ flex:1; font-weight:700; display:flex; align-items:center; gap:6px; }
.motm-row .motm-name i{ color:#e0b93b; }
.motm-row .motm-cnt{ font-weight:800; color:var(--text-muted); }
.motm-row.on{ border-color:var(--green); }
.motm-row.on .motm-cnt{ color:var(--green); }
.motm-row[disabled]{ cursor:default; opacity:.9; }
.motm-total{ margin-top:12px; font-size:.8rem; color:var(--text-faint); text-align:center; }
.motm-loading{ text-align:center; color:var(--text-faint); padding:20px; }
.motm-rank{ display:flex; flex-direction:column; gap:6px; }
.motm-rankrow{ display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:var(--radius); background:var(--surface-secondary); border:1px solid var(--border); }
.motm-rankrow.top{ border-color:#e0b93b; background:rgba(224,185,59,.10); }
.motm-pos{ width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:var(--bg); font-weight:800; font-size:.8rem; color:var(--text-muted); flex:0 0 auto; }
.motm-rankrow.top .motm-pos{ background:#e0b93b; color:#04121a; }
.motm-rankrow .motm-name{ flex:1; font-weight:700; }
.motm-medals{ font-weight:800; color:#e0b93b; display:flex; align-items:center; gap:3px; }

/* ---- Sperren & Ausfälle: Karten-Warnungen (Abwesenheits-Modal) ---- */
.absence-warnings{ margin-bottom:16px; }
.absw-head{ display:flex; align-items:center; gap:7px; font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--text-muted); margin-bottom:8px; }
.absw-head i{ color:#e0b93b; }
.absw-none{ font-size:.82rem; color:var(--text-faint); display:flex; align-items:center; gap:6px; }
.absw-none i{ color:var(--green); }
.absw-row{ display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:var(--radius); background:var(--surface-secondary); border:1px solid var(--border); margin-bottom:6px; }
.absw-row.high{ border-color:#ff6b6b; background:rgba(255,107,107,.08); }
.absw-main{ flex:1; min-width:0; font-size:.85rem; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.absw-cards{ font-weight:700; color:#e0b93b; }
.absw-msg{ font-size:.76rem; color:var(--text-faint); }
.absw-row.high .absw-msg{ color:#ff6b6b; }
.absw-btn{ flex:0 0 auto; display:inline-flex; align-items:center; gap:5px; font-size:.76rem; font-weight:700; padding:6px 10px; border-radius:8px; border:1px solid var(--border); background:transparent; color:var(--text); cursor:pointer; }
.absw-btn:hover{ border-color:#ff6b6b; color:#ff6b6b; }

/* ---- Aufstellung: gesperrte/verletzte Spieler markieren ---- */
.lu-chip.bench.lu-unavail{ opacity:.55; }
.lu-unavail-tag{ font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:#ff6b6b; background:rgba(255,107,107,.14); padding:1px 5px; border-radius:5px; margin-left:4px; }
.lu-slot.lu-unavail .lu-token.filled{ box-shadow:0 0 0 2px #ff6b6b; position:relative; }
.lu-unavail-dot{ position:absolute; top:-4px; right:-4px; width:15px; height:15px; border-radius:50%; background:#ff6b6b; color:#fff; font-size:10px; font-weight:800; display:grid; place-items:center; line-height:1; }

/* ---- Aufstellung: Varianten-Zeile ---- */
.lu-variants{ display:flex; align-items:center; gap:8px; padding:8px 14px; border-top:1px solid var(--border); flex-wrap:wrap; }
.lu-varlabel{ display:flex; align-items:center; gap:6px; font-size:.8rem; font-weight:700; color:var(--text-muted); white-space:nowrap; }
.lu-varlabel i{ color:var(--green); }
.lu-varsel{ flex:1; min-width:130px; height:38px; padding:0 10px; border-radius:9px; background:var(--bg); border:1px solid var(--border-strong); color:var(--text); font-size:13.5px; }
.lu-tool:disabled{ opacity:.4; cursor:default; }

/* ---- Admin: Gegner-Logo-Upload ---- */
.logo-up-form{ display:flex; flex-direction:column; gap:10px; margin:10px 0 6px; }
.logo-preview{ max-width:120px; max-height:120px; border-radius:12px; background:#10161f; border:1px solid var(--border); padding:8px; align-self:flex-start; object-fit:contain; }
.logo-status{ font-size:.85rem; color:var(--text-muted); min-height:1.1em; }
.logo-row{ display:flex; align-items:center; gap:12px; padding:8px 12px; border-radius:var(--radius); background:var(--surface-secondary); border:1px solid var(--border); margin-bottom:6px; }
.logo-thumb{ width:40px; height:40px; object-fit:contain; background:#10161f; border-radius:8px; padding:3px; flex:0 0 auto; }
.logo-row .logo-name{ flex:1; font-weight:700; word-break:break-word; }
.logo-del{ flex:0 0 auto; background:transparent; border:1px solid var(--border); border-radius:8px; padding:7px 9px; color:var(--text-muted); cursor:pointer; }
.logo-del:hover{ border-color:#ff6b6b; color:#ff6b6b; }

/* ---- RSVP: Trainer zählen nicht als Spieler ---- */
.rsvp-staff-tag{ font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:var(--text-faint); background:var(--surface-secondary); border:1px solid var(--border); padding:1px 6px; border-radius:6px; margin-left:6px; vertical-align:middle; }
.rsvp-row.is-staff{ opacity:.82; }

/* ---- Gegner-Chip mit Logo (Upload direkt am Chip) ---- */
.roster-chip.opp{ padding-left:4px; }
.roster-logo{ position:relative; width:24px; height:24px; flex:0 0 auto; border-radius:50%; overflow:hidden; border:none; padding:0; cursor:pointer; background:#10161f; display:grid; place-items:center; }
.roster-logo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.roster-logo-fb{ display:grid; place-items:center; color:var(--text-faint); font-size:13px; line-height:1; }
.roster-logo:hover{ box-shadow:0 0 0 2px var(--green); }

/* ---- Spieler-Chip: Spielerbild + Freisteller ---- */
.roster-chip.has-num{ padding-left:4px; }
.roster-cut{ width:24px; height:24px; flex:0 0 auto; border-radius:7px; border:1px solid var(--border); background:var(--surface-secondary); color:var(--text-muted); cursor:pointer; display:grid; place-items:center; padding:0; }
.roster-cut i{ font-size:14px; }
.roster-cut:hover{ border-color:var(--green); color:var(--green); }

/* ============ Mobile-Feinschliff ============ */
/* iOS: kein Auto-Zoom beim Antippen von Eingaben (Schrift >= 16px) */
@media (max-width:768px){
  .field input[type="text"], .field input[type="number"], .field input[type="password"],
  .field input[type="email"], .field input[type="search"], .field input[type="tel"],
  .field input[type="url"],
  .field select, .field textarea,
  .login-input, .roster-opponent-input, .roster-num{ font-size:16px; }
}
/* Sauberes Touch-Verhalten: kein grauer Tap-Blitz beim Antippen */
html{ -webkit-tap-highlight-color:transparent; }
button, a, [role="button"]{ -webkit-tap-highlight-color:transparent; }
/* Overlays/Panels: Scrollen bleibt im Element (kein Durchreichen zur Seite) + weiches Momentum */
.modal-overlay, .modal-body, .notif-panel, .qa-sheet{ overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }

/* Mobil: Dialoge mit fixem Kopf & Fuß, nur der Body scrollt (Speichern-Buttons immer erreichbar) */
@media (max-width:768px){
  .modal-overlay{ padding:10px; align-items:center; }
  .modal{ max-height:calc(100vh - 20px); max-height:calc(100svh - 20px); display:flex; flex-direction:column; margin:0; }
  .modal-head, .modal-foot{ flex:0 0 auto; }
  .modal-body{ flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch; min-height:0; }
  .modal-foot{ flex-wrap:wrap; }
}

/* Mobil: größere Touch-Ziele für kleine Steuer-Buttons */
@media (max-width:768px){
  .modal-close{ width:40px; height:40px; font-size:22px; }
  .modal-btn{ min-height:44px; }
}

/* ---- Ticker: Bildanhang bei Kommentaren ---- */
.live-btn-img{ flex:0 0 auto; background:var(--surface-secondary); color:var(--text-muted); border:1px solid var(--border); }
.live-btn-img:hover{ color:var(--green); border-color:var(--green); }
.live-img-pre{ display:flex; align-items:center; gap:10px; margin-top:8px; padding:8px 10px; background:var(--surface-secondary); border:1px solid var(--border); border-radius:10px; }
.live-img-pre img{ width:44px; height:44px; object-fit:cover; border-radius:8px; flex:0 0 auto; }
.live-img-pre span{ flex:1; font-size:12.5px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.live-img-x{ flex:0 0 auto; background:transparent; border:1px solid var(--border); border-radius:8px; padding:6px 8px; color:var(--text-muted); cursor:pointer; }
.live-img-x:hover{ border-color:#ff6b6b; color:#ff6b6b; }
.live-tk-img{ display:block; width:100%; max-width:260px; margin:8px 0 2px; border-radius:10px; border:1px solid var(--border); }

/* ============ Ticker-Eingabe: moderneres Design (an den öffentlichen Ticker angeglichen) ============ */
.live-score{ position:relative; overflow:hidden; background:linear-gradient(165deg,var(--surface-secondary),var(--surface) 70%);
  border:1px solid var(--border); border-radius:18px; padding:16px 16px 14px; box-shadow:0 10px 30px rgba(0,0,0,.28); }
.live-score::after{ content:''; position:absolute; inset:0 0 auto; height:1px;
  background:linear-gradient(90deg,transparent,rgba(0,204,255,.5),transparent); }
.live-scoreline{ flex-wrap:wrap; justify-content:center; row-gap:5px; }
.live-gf, .live-ga{ font-size:30px; font-weight:900; font-variant-numeric:tabular-nums; }
.live-colon{ color:var(--text-faint); }
.live-clock{ flex:0 0 100%; display:inline-flex; align-items:center; justify-content:center; margin-top:1px; padding:3px 10px; border-radius:99px;
  background:rgba(0,204,255,.12); border:1px solid rgba(0,204,255,.32); color:var(--green);
  font-size:12px; font-weight:800; font-variant-numeric:tabular-nums; letter-spacing:.02em; }
.live-clock.paused{ background:rgba(224,185,59,.13); border-color:rgba(224,185,59,.35); color:#e0b93b; }

/* Buttons: weicher, klarer */
.live-btn{ border-radius:11px; transition:transform .08s, border-color .12s, background .12s; }
.live-btn:active{ transform:scale(.97); }
.live-btn-goal{ background:#12b6e6; color:#04222e; font-weight:800; }
.live-btn-ghost{ border-radius:99px; padding:0 14px; }
.live-btn-ghost:hover{ color:var(--text); border-color:var(--green); }

/* Ticker-Zeilen: luftiger, mit Bild-Support */
.live-tk{ align-items:flex-start; border-radius:13px; padding:10px 12px; }
.live-tk-ico{ border-radius:10px; }
.live-tk-wiederanpfiff{ border-left-color:var(--green); }
.live-tk-wiederanpfiff .live-tk-ico{ color:var(--green); }
.live-tk-kommentar{ border-left-color:var(--text-faint); }
.live-tk-text{ line-height:1.5; }

/* ============ Aufstellung: bessere Bedienung (v. a. mobil) ============ */
/* Antippen-Platzieren: gewählter Spieler */
.lu-chip.lu-sel .lu-token{ box-shadow:0 0 0 3px var(--green), 0 6px 16px rgba(0,0,0,0.45); }
.lu-bench .lu-chip.lu-sel{ border-color:var(--green); background:rgba(0,204,255,.1); }
/* Während ein Spieler gewählt ist: freie Positionen einladend hervorheben */
.lu-pitch.lu-placing .lu-token.empty{ border-color:var(--green); background:rgba(0,204,255,.18); animation:luPulse 1.3s infinite; }
@keyframes luPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.1); } }
.lu-pitch.lu-placing{ cursor:copy; }

/* Picker: Suche + Abwesenheits-Warnung */
.lu-picker-search{ width:100%; height:42px; margin:0 0 10px; padding:0 12px; border-radius:10px;
  background:var(--bg); border:1px solid var(--border-strong, var(--border)); color:var(--text); font-size:16px; }
.lu-pick.unavail{ opacity:.72; }
.lu-pick-tag.warn{ color:#ff6b6b; background:rgba(255,107,107,.14); }

@media (max-width:768px){
  /* Bank umbrechen statt horizontal scrollen – Chips blockierten das Wischen */
  .lu-bench{ flex-wrap:wrap; overflow-x:visible; }
  .lu-bench .lu-chip{ flex:0 0 auto; }
  /* größere Touch-Ziele */
  .lu-token{ width:48px; height:48px; }
  .lu-slot{ width:66px; }
  .lu-name{ font-size:11px; }
  .lu-pitch{ max-height:58vh; }
  .lu-pick{ min-height:52px; }
  .lu-picker-card{ max-height:78vh; }
}

/* ---- Saison: Torjäger-Podest ---- */
.tj-podium{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px; }
.tj{ position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; padding:14px 6px 12px;
  border-radius:14px; background:linear-gradient(160deg,var(--surface-secondary),var(--bg)); border:1px solid var(--border); }
.tj-1{ border-color:rgba(224,185,59,.55); box-shadow:0 8px 26px rgba(224,185,59,.14); }
.tj-2{ border-color:rgba(190,200,215,.4); }
.tj-3{ border-color:rgba(190,130,80,.4); }
.tj-rank{ position:absolute; top:6px; left:8px; font-size:10px; font-weight:900; color:var(--text-faint); }
.tj-1 .tj-rank{ color:#e0b93b; }
.tj-ava{ width:42px; height:42px; border-radius:50%; display:grid; place-items:center; font-weight:900; font-size:13px;
  color:#04222e; background:#12b6e6; }
.tj-1 .tj-ava{ background:linear-gradient(180deg,#fde68a,#e0b93b); }
.tj-name{ font-size:12px; font-weight:800; text-align:center; line-height:1.2; max-width:100%;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tj-goals{ display:flex; flex-direction:column; align-items:center; font-size:19px; font-weight:900; color:var(--green); line-height:1; }
.tj-goals small{ font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--text-faint); margin-top:2px; }

/* ---- Aufstellung: Scrollen auf Touch-Geräten wiederherstellen ----
   touch-action:none (nötig fürs Ziehen mit der Maus) blockierte auf dem Handy
   das Wischen über Feld und Chips. Auf Touch-Geräten wird stattdessen
   „antippen → Position antippen“ genutzt, Scrollen bleibt frei. */
@media (pointer:coarse){
  .lu-pitch{ touch-action:pan-y; }
  .lu-chip{ touch-action:pan-y; }
  /* Nur im Frei-Modus wird das Feld zum Verschieben gesperrt */
  .lu-pitch.lu-freemoving{ touch-action:none; }
  .lu-freemoving .lu-slot{ touch-action:none; }
}

/* ---- Ort als Navigations-Link ---- */
.loc-link{ color:inherit; text-decoration:none; border-bottom:1px dashed rgba(0,204,255,.45); display:inline-flex; align-items:center; gap:5px; }
.loc-link:hover{ color:var(--green); border-bottom-color:var(--green); }
.loc-link i{ font-size:.85em; opacity:.7; }

/* ---- Saison: Spielerkarte erstellen ---- */
.psl-card{ flex:0 0 auto; width:30px; height:30px; border-radius:8px; display:grid; place-items:center;
  background:transparent; border:1px solid var(--border); color:var(--text-muted); cursor:pointer; margin-left:4px; }
.psl-card:hover{ border-color:var(--green); color:var(--green); }

/* ============ iOS: Safe-Area OBEN (Notch / Statusleiste) ============
   Mit viewport-fit=cover reicht der Inhalt bis unter die Statusleiste.
   Ohne diesen Abstand lag die Topbar (inkl. Menü-Button) unerreichbar darunter. */
@media (max-width:768px){
  .mobile-topbar{
    /* constant() = älteres iOS 11, env() = iOS 11.2+ */
    height:calc(54px + constant(safe-area-inset-top));
    height:calc(54px + env(safe-area-inset-top));
    padding-top:constant(safe-area-inset-top);
    padding-top:env(safe-area-inset-top);
    padding-left:calc(12px + env(safe-area-inset-left));
    padding-right:calc(12px + env(safe-area-inset-right));
    box-sizing:border-box;
  }
  .main{
    padding-top:calc(68px + constant(safe-area-inset-top)) !important;
    padding-top:calc(68px + env(safe-area-inset-top)) !important;
  }
  .sidebar{
    padding-top:constant(safe-area-inset-top);
    padding-top:env(safe-area-inset-top);
  }
  .menu-backdrop{ top:0; }
}
@media (max-width:480px){
  .main{
    padding-top:calc(66px + constant(safe-area-inset-top)) !important;
    padding-top:calc(66px + env(safe-area-inset-top)) !important;
  }
}

/* ---- iOS: Glocke & Mitteilungs-Panel unter die Statusleiste holen ---- */
@media (max-width:768px){
  .notif-bell{
    top:calc(8px + constant(safe-area-inset-top));
    top:calc(8px + env(safe-area-inset-top));
    right:calc(12px + env(safe-area-inset-right));
  }
  .notif-panel{
    padding-top:constant(safe-area-inset-top);
    padding-top:env(safe-area-inset-top);
  }
  .notif-panel-head{ padding-top:10px; }
}
@media (max-width:768px){
  #login-overlay{
    padding-top:constant(safe-area-inset-top);
    padding-top:env(safe-area-inset-top);
    padding-bottom:env(safe-area-inset-bottom);
  }
}

/* ---- Wetter zum Anstoß ---- */
.wx{ display:inline-flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; font-weight:600; }
.wx > i{ font-size:1.15em; color:var(--green); }
.wx b{ font-size:1.05em; font-weight:800; }
.wx-t{ color:var(--text-muted); font-size:.9em; }
.wx-d{ display:inline-flex; align-items:center; gap:3px; font-size:.82em; color:var(--text-faint); font-weight:600; }
.wx-d i{ font-size:1em; }

/* ---- Trainer: eigener Block bei den Rückmeldungen ---- */
.rsvp-group-sum{ margin-left:auto; font-size:.72rem; font-weight:700; color:var(--text-faint); text-transform:none; letter-spacing:0; }
.rsvp-group-label{ display:flex; align-items:center; gap:7px; }
.hub-staff{ display:flex; align-items:center; gap:7px; margin-top:8px; padding:7px 11px; border-radius:10px;
  background:rgba(255,255,255,.04); border:1px solid var(--border); font-size:.8rem; font-weight:600; color:var(--text-muted); }
.hub-staff i{ color:var(--green); font-size:1.05em; flex:0 0 auto; }
.hub-staff span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ============ Bundesliga-Tippspiel ============ */
.tipp-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.tipp-pot{ display:flex; flex-direction:column; gap:2px; padding:14px 18px; border-radius:16px;
  background:linear-gradient(160deg, rgba(0,204,255,.14), rgba(0,204,255,.04)); border:1px solid rgba(0,204,255,.32); }
.tipp-pot-v{ font-size:24px; font-weight:900; color:var(--green); font-variant-numeric:tabular-nums; line-height:1; }
.tipp-pot-k{ font-size:11px; font-weight:700; color:var(--text-muted); }
.tipp-season{ font-size:12px; font-weight:800; color:var(--text-faint); }
.tipp-join{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
  padding:16px; border-radius:14px; margin-bottom:14px;
  background:var(--surface-secondary); border:1px solid var(--border); }
.tipp-join span{ font-size:13px; color:var(--text-muted); }
.tipp-note{ display:flex; align-items:center; gap:10px; padding:13px 15px; border-radius:12px; margin-bottom:14px;
  background:var(--surface-secondary); border:1px solid var(--border); font-size:13.5px; color:var(--text-muted); }
.tipp-note.wait{ border-color:rgba(224,185,59,.4); color:#e0b93b; background:rgba(224,185,59,.08); }
.tipp-tabs{ display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; }
.tipp-tab{ display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:99px; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted);
  font-family:inherit; font-size:12.5px; font-weight:700; }
.tipp-tab.on{ background:rgba(0,204,255,.12); border-color:rgba(0,204,255,.4); color:var(--green); }
.tipp-mdnav{ display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:12px; }
.tipp-mdbtn{ width:36px; height:36px; border-radius:10px; display:grid; place-items:center; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted); }
.tipp-mdbtn:disabled{ opacity:.35; cursor:default; }
.tipp-mdtitle{ font-weight:800; font-size:14.5px; }
.tipp-now{ font-size:10px; font-weight:900; color:var(--green); background:rgba(0,204,255,.1);
  border:1px solid rgba(0,204,255,.3); padding:2px 8px; border-radius:99px; margin-left:6px; vertical-align:middle; }
.tipp-list{ display:flex; flex-direction:column; gap:8px; }
.tipp-match{ display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:13px;
  background:var(--surface-secondary); border:1px solid var(--border); flex-wrap:wrap; }
.tipp-match.locked{ opacity:.85; }
.tipp-ko{ flex:0 0 110px; font-size:11.5px; color:var(--text-faint); font-weight:600; }
.tipp-teams{ flex:1; display:flex; align-items:center; gap:10px; min-width:240px; }
.tipp-t{ flex:1; font-size:13px; font-weight:700; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tipp-t.t1{ text-align:right; }
.tipp-in{ display:inline-flex; align-items:center; gap:5px; flex:0 0 auto; }
.tipp-in input{ width:46px; height:40px; text-align:center; border-radius:10px; font-size:16px; font-weight:800;
  background:var(--bg); border:1px solid var(--border-strong, var(--border)); color:var(--text); font-family:inherit; }
.tipp-in input:disabled{ opacity:.5; }
.tipp-in input.saved{ border-color:var(--green); box-shadow:0 0 0 2px rgba(0,0,0,0.45); }
.tipp-colon{ font-weight:900; color:var(--text-faint); }
.tipp-right{ flex:0 0 auto; display:flex; align-items:center; gap:8px; margin-left:auto; }
.tipp-res{ font-weight:900; font-size:14px; font-variant-numeric:tabular-nums; }
.tipp-res.open{ color:var(--text-faint); }
.tipp-pts{ font-size:11px; font-weight:900; padding:3px 8px; border-radius:7px; }
.tipp-pts.p4{ background:rgba(0,204,255,.16); color:var(--green); border:1px solid rgba(0,204,255,.4); }
.tipp-pts.p3{ background:rgba(52,211,153,.14); color:#34d399; border:1px solid rgba(52,211,153,.35); }
.tipp-pts.p2{ background:rgba(224,185,59,.13); color:#e0b93b; border:1px solid rgba(224,185,59,.32); }
.tipp-pts.p0{ background:rgba(255,255,255,.05); color:var(--text-faint); border:1px solid var(--border); }
.tipp-lock{ color:var(--text-faint); }
.tipp-hint{ display:flex; align-items:center; gap:8px; margin-top:12px; font-size:12px; color:var(--text-faint); }
.tipp-empty{ display:flex; align-items:center; justify-content:center; gap:9px; padding:34px 12px;
  color:var(--text-faint); font-size:13.5px; }
.tipp-spin{ animation:tippSpin 1s linear infinite; }
@keyframes tippSpin{ to{ transform:rotate(360deg); } }
.tipp-standings{ border:1px solid var(--border); border-radius:13px; overflow:hidden; }
.tipp-strow{ display:grid; grid-template-columns:44px 1fr auto 70px; align-items:center; gap:8px;
  padding:10px 14px; border-bottom:1px solid var(--border); font-size:13.5px; }
.tipp-strow:last-child{ border-bottom:none; }
.tipp-strow.me{ background:rgba(0,204,255,.07); }
.tipp-sthead{ font-size:10.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--text-faint); font-weight:800; background:var(--surface-secondary); }
.tipp-strank{ text-align:center; font-weight:800; }
.tipp-stname{ font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tipp-stx{ font-size:11px; color:var(--text-faint); font-weight:600; }
.tipp-stpts{ text-align:right; font-weight:900; font-size:15px; color:var(--green); font-variant-numeric:tabular-nums; }
.tipp-plist{ display:flex; flex-direction:column; gap:7px; }
.tipp-prow{ display:flex; align-items:center; gap:10px; padding:10px 13px; border-radius:11px;
  background:var(--surface-secondary); border:1px solid var(--border); flex-wrap:wrap; }
.tipp-pname{ font-weight:700; font-size:13.5px; flex:1; min-width:120px; }
.tipp-badge{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:800; padding:4px 10px; border-radius:99px; }
.tipp-badge.ok{ background:rgba(52,211,153,.13); color:#34d399; border:1px solid rgba(52,211,153,.35); }
.tipp-badge.wait{ background:rgba(224,185,59,.12); color:#e0b93b; border:1px solid rgba(224,185,59,.32); }
.tipp-pact{ display:flex; gap:6px; margin-left:auto; }
.tipp-adminfoot{ margin-top:14px; display:flex; justify-content:flex-end; }
@media (max-width:560px){
  .tipp-ko{ flex:1 1 100%; }
  .tipp-teams{ min-width:0; flex:1 1 100%; }
  .tipp-right{ margin-left:0; width:100%; justify-content:flex-end; }
}

/* ---- Tippspiel: Logos ---- */
.tipp-lg{ width:30px; height:30px; flex:0 0 auto; display:grid; place-items:center; }
.tipp-lg img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; display:block; }
.tipp-lg.sm{ width:26px; height:26px; }
.tipp-lg-fb{ font-size:9px; font-weight:900; color:var(--green); background:rgba(0,204,255,.1);
  border:1px solid rgba(0,204,255,.28); border-radius:8px; padding:0; }
.tipp-t{ display:flex; align-items:center; gap:8px; }
.tipp-t.t1{ justify-content:flex-end; }
.tipp-tn{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---- Tippspiel: Bonus ---- */
.tipp-bhint, .tipp-bfield label b{ color:var(--green); }
.tipp-bhint{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-faint); margin-bottom:14px; }
.tipp-bfield{ margin-bottom:16px; }
.tipp-bfield > label{ display:block; font-size:13px; font-weight:700; margin-bottom:7px; }
.tipp-bfield select{ width:100%; height:44px; padding:0 12px; border-radius:11px; font-size:16px;
  background:var(--bg); border:1px solid var(--border-strong, var(--border)); color:var(--text); font-family:inherit; }
.tipp-bcount{ float:right; font-size:11px; font-weight:800; color:var(--text-faint); }
.tipp-abstgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:7px; }
.tipp-abst{ display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:10px; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); font-size:12.5px; font-weight:600; }
.tipp-abst input{ display:none; }
.tipp-abst.on{ border-color:var(--loss, #fb7185); background:rgba(251,113,133,.1); color:#fb7185; }
.tipp-abst input:disabled ~ span{ opacity:.5; }
.tipp-bsave{ display:flex; justify-content:flex-end; margin-top:6px; }
.tipp-bsummary{ border:1px solid var(--border); border-radius:13px; overflow:hidden; }
.tipp-brow{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 15px;
  border-bottom:1px solid var(--border); font-size:13.5px; }
.tipp-brow:last-child{ border-bottom:none; }
.tipp-blabel{ font-weight:700; }
.tipp-bval{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.tipp-bok{ color:#34d399; font-weight:900; }
.tipp-bno{ color:#fb7185; font-weight:900; }
.tipp-muted{ color:var(--text-faint); }
.tipp-abchip{ display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:99px;
  background:var(--surface-secondary); border:1px solid var(--border); font-size:12px; font-weight:700; }
.tipp-abchip.ok{ border-color:rgba(52,211,153,.4); color:#34d399; }
.tipp-abchip.no{ border-color:rgba(251,113,133,.35); color:#fb7185; }
.tipp-bactual{ padding:10px 15px; font-size:12px; color:var(--text-faint); background:var(--surface-secondary); }
.tipp-stbon{ margin-left:8px; color:#e0b93b; font-weight:800; }

/* ---- Tippspiel: Admin-Box ---- */
.tipp-adminbox{ margin-top:16px; padding:14px; border-radius:14px; border:1px dashed var(--border); background:var(--surface-secondary); }
.tipp-adminh{ display:flex; align-items:center; gap:8px; font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--text-faint); font-weight:800; margin-bottom:12px; }
.tipp-adminres{ margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }
.tipp-adminsub{ font-size:12.5px; font-weight:800; color:var(--text-muted); margin-bottom:12px; }

/* ---- Accounts: Werkzeugleiste (Suche + Filter) ---- */
.acc-toolbar{ display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.acc-search{ display:flex; align-items:center; gap:8px; padding:0 12px; height:42px; border-radius:11px;
  background:var(--bg); border:1px solid var(--border-strong, var(--border)); }
.acc-search > i{ color:var(--text-faint); font-size:17px; flex:0 0 auto; }
.acc-search input{ flex:1; min-width:0; background:none; border:none; outline:none; color:var(--text);
  font-family:inherit; font-size:15px; }
.acc-search-x{ flex:0 0 auto; background:none; border:none; color:var(--text-faint); cursor:pointer; padding:4px; display:grid; place-items:center; }
.acc-search-x:hover{ color:var(--text); }
.acc-filter-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.acc-chip{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:99px; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted);
  font-family:inherit; font-size:12px; font-weight:700; }
.acc-chip.on{ background:rgba(0,204,255,.12); border-color:rgba(0,204,255,.4); color:var(--green); }
.acc-chip-n{ font-size:10.5px; font-weight:800; opacity:.75; background:rgba(255,255,255,.06); padding:1px 6px; border-radius:99px; }
.acc-chip.on .acc-chip-n{ background:rgba(0,204,255,.18); }
/* ---- Accounts: Gruppen-Überschrift ---- */
.acc-group-label{ display:flex; align-items:center; gap:9px; margin:16px 0 8px; padding-bottom:6px; border-bottom:1px solid var(--border); }
.acc-group-label:first-child{ margin-top:2px; }
.acc-group-n{ font-size:11px; font-weight:800; color:var(--text-faint); }

/* ---- „Nicht dabei" (leichte Abwahl / Zeiträume) ---- */
.nn-sec-title{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:800; color:var(--text); margin-bottom:6px; }
.nn-sec-title.mt{ margin-top:22px; padding-top:18px; border-top:1px solid var(--border); }
.nn-hint{ font-size:12px; color:var(--text-faint); margin-bottom:11px; }
.nn-lg.period{ margin-left:6px; color:#e0b93b; white-space:nowrap; }
.nn-chips{ display:flex; flex-wrap:wrap; gap:7px; }
.nn-chip{ display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:99px; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted);
  font-family:inherit; font-size:12.5px; font-weight:600; }
.nn-chip i{ font-size:14px; }
.nn-chip.off{ background:rgba(251,113,133,.12); border-color:rgba(251,113,133,.4); color:#fb7185; }
.nn-chip.period{ background:rgba(224,185,59,.1); border-color:rgba(224,185,59,.35); color:#e0b93b; cursor:default; }
.nn-perform{ display:flex; flex-direction:column; gap:9px; padding:13px; border-radius:12px;
  background:var(--surface-secondary); border:1px solid var(--border); margin-bottom:14px; }
.nn-perform select, .nn-perform input[type="text"]{ width:100%; height:42px; padding:0 12px; border-radius:10px; font-size:16px;
  background:var(--bg); border:1px solid var(--border-strong, var(--border)); color:var(--text); font-family:inherit; }
.nn-dates{ display:flex; gap:10px; }
.nn-dates label{ flex:1; display:flex; flex-direction:column; gap:4px; font-size:11.5px; font-weight:700; color:var(--text-faint); }
.nn-dates input[type="date"]{ height:42px; padding:0 10px; border-radius:10px; font-size:15px;
  background:var(--bg); border:1px solid var(--border-strong, var(--border)); color:var(--text); font-family:inherit; }
.nn-perlist{ display:flex; flex-direction:column; gap:6px; }
.nn-perrow{ display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px;
  background:var(--surface-secondary); border:1px solid var(--border); }
.nn-perinfo{ flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.nn-perinfo b{ font-size:13px; }
.nn-perinfo span{ font-size:11.5px; color:var(--text-faint); }
.nn-perdel{ flex:0 0 auto; width:34px; height:34px; border-radius:8px; cursor:pointer;
  background:none; border:1px solid var(--border); color:var(--text-faint); display:grid; place-items:center; }
.nn-perdel:hover{ color:#fb7185; border-color:rgba(251,113,133,.4); }
.nn-empty{ font-size:12.5px; color:var(--text-faint); padding:8px 2px; }

/* ---- Tippspiel: Spieltags-Matrix (wie Kicktipp) ---- */
.tm-hint{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-faint); margin-bottom:10px; }
.tm-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--border); border-radius:12px; }
.tm-table{ border-collapse:collapse; width:100%; font-size:12.5px; }
.tm-table th, .tm-table td{ padding:7px 8px; text-align:center; white-space:nowrap; border-bottom:1px solid var(--border); }
.tm-table tr:last-child td{ border-bottom:none; }
.tm-name-h, .tm-name{ text-align:left; position:sticky; left:0; background:var(--surface); z-index:2; font-weight:700; }
.tm-name-h{ font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-faint); }
.tm-name{ max-width:120px; overflow:hidden; text-overflow:ellipsis; }
.tm-game{ vertical-align:bottom; line-height:1.25; color:var(--text-muted); font-weight:700; min-width:44px; }
.tm-game.started{ color:var(--text); }
.tm-gm, .tm-gm2{ display:block; font-size:10.5px; }
.tm-gm2{ color:var(--text-faint); }
.tm-gres{ display:block; margin-top:3px; font-size:11px; font-weight:900; color:var(--green); }
.tm-sum-h{ font-size:10.5px; text-transform:uppercase; color:var(--text-faint); }
.tm-cell{ font-variant-numeric:tabular-nums; font-weight:700; }
.tm-none{ color:var(--text-faint); opacity:.5; }
.tm-hidden{ color:var(--text-faint); letter-spacing:.5px; }
.tm-shown{ color:var(--text); }
.tm-shown .tm-tip{ display:block; }
.tm-shown .tm-pts{ display:block; font-size:9.5px; font-weight:900; margin-top:1px; }
.tm-shown.p4{ background:rgba(0,204,255,.14); } .tm-shown.p4 .tm-pts{ color:var(--green); }
.tm-shown.p3{ background:rgba(52,211,153,.12); } .tm-shown.p3 .tm-pts{ color:#34d399; }
.tm-shown.p2{ background:rgba(224,185,59,.11); } .tm-shown.p2 .tm-pts{ color:#e0b93b; }
.tm-shown.p0 .tm-pts{ color:var(--text-faint); }
.tm-row.tm-me td{ background:rgba(0,204,255,.07); }
.tm-row.tm-me .tm-name{ background:rgba(0,204,255,.1); color:var(--green); }
.tm-sum{ font-weight:900; color:var(--green); font-variant-numeric:tabular-nums; }

/* ---- Kader-Grafik: Aus Zusagen füllen ---- */
.kader-autofill-btn{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
  padding:11px 14px; margin-bottom:14px; border-radius:11px; cursor:pointer;
  background:rgba(0,204,255,.1); border:1px solid rgba(0,204,255,.35); color:var(--green);
  font-family:inherit; font-size:13.5px; font-weight:800; }
.kader-autofill-btn:hover{ background:rgba(0,204,255,.18); }
.kader-autofill-btn i{ font-size:17px; }

/* ---- Tippspiel: Fortschritts-Zähler ---- */
.tipp-progress{ display:inline-flex; align-items:center; gap:7px; margin:0 auto 12px; padding:7px 14px; border-radius:99px;
  background:var(--surface-secondary); border:1px solid var(--border); font-size:12.5px; font-weight:700; color:var(--text-muted);
  width:fit-content; }
.tipp-mdnav + .tipp-progress, .tipp-progress{ display:flex; }
.tipp-progress b{ color:var(--text); font-weight:900; }
.tipp-progress.full{ border-color:rgba(52,211,153,.4); color:#34d399; background:rgba(52,211,153,.08); }
.tipp-progress.full b{ color:#34d399; }
.tipp-progress.warn{ border-color:rgba(224,185,59,.4); color:#e0b93b; background:rgba(224,185,59,.08); }
.tipp-progress.warn b{ color:#e0b93b; }
.tipp-progress-open{ font-weight:700; opacity:.85; }
.tipp-tab-badge{ display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px;
  margin-left:5px; border-radius:99px; background:rgba(224,185,59,.2); border:1px solid rgba(224,185,59,.45);
  color:#e0b93b; font-size:10px; font-weight:900; }
.tipp-tab.on .tipp-tab-badge{ background:rgba(224,185,59,.25); }

/* ---- Tippspiel: Live-Stand & vorläufige Punkte ---- */
.tipp-res.livescore{ color:#fb7185; display:inline-flex; align-items:center; gap:5px; }
.tipp-livedot{ width:7px; height:7px; border-radius:50%; background:#fb7185; animation:tippLivePulse 1.4s ease-in-out infinite; }
@keyframes tippLivePulse{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }
.tipp-pts.live{ position:relative; }
.tipp-pts.live i{ font-size:10px; margin-left:3px; vertical-align:middle; }
.tm-cell.tm-live{ outline:1px dashed rgba(251,113,133,.5); outline-offset:-3px; }
.tm-cell.tm-live .tm-pts{ color:#fb7185 !important; }

/* ---- Tippspiel UX: Sprung, Countdown, Abschluss ---- */
.tipp-jump{ display:flex; align-items:center; justify-content:center; gap:7px; width:fit-content; margin:0 auto 10px;
  padding:7px 14px; border-radius:99px; cursor:pointer; background:rgba(0,204,255,.1); border:1px solid rgba(0,204,255,.35);
  color:var(--green); font-family:inherit; font-size:12.5px; font-weight:800; }
.tipp-jump:hover{ background:rgba(0,204,255,.18); }
.tipp-deadline{ display:flex; align-items:center; justify-content:center; gap:7px; width:fit-content; margin:0 auto 12px;
  padding:6px 13px; border-radius:99px; background:var(--surface-secondary); border:1px solid var(--border);
  font-size:12px; font-weight:700; color:var(--text-muted); }
.tipp-deadline.soon{ border-color:rgba(224,185,59,.45); color:#e0b93b; background:rgba(224,185,59,.08); }
.tipp-deadline.over{ border-color:rgba(251,113,133,.4); color:#fb7185; background:rgba(251,113,133,.08); }
.tipp-done-banner{ display:flex; align-items:center; gap:10px; margin:0 auto 14px; padding:12px 16px; border-radius:12px;
  background:rgba(52,211,153,.1); border:1px solid rgba(52,211,153,.4); color:#34d399; font-size:13.5px; font-weight:700;
  animation:tippDonePop .35s ease; }
.tipp-done-banner i{ font-size:19px; }
@keyframes tippDonePop{ 0%{ transform:scale(.96); opacity:0; } 100%{ transform:scale(1); opacity:1; } }

/* ---- Tippspiel: eigene Position (fixierte Karte) ---- */
.tipp-me-card{ display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:14px 14px 0 0;
  background:linear-gradient(135deg, rgba(0,204,255,.14), rgba(0,204,255,.05)); border:1px solid rgba(0,204,255,.32); border-bottom:none; }
.tipp-me-left{ display:flex; align-items:center; gap:8px; }
.tipp-me-rank{ font-size:26px; font-weight:900; color:var(--green); line-height:1; }
.tipp-me-mid{ flex:1; display:flex; flex-direction:column; gap:2px; }
.tipp-me-mid b{ font-size:15px; }
.tipp-me-last{ font-size:11px; color:var(--text-faint); font-weight:600; }
.tipp-me-right{ text-align:right; display:flex; flex-direction:column; }
.tipp-me-pts{ font-size:22px; font-weight:900; color:var(--text); line-height:1; }
.tipp-me-of{ font-size:10.5px; color:var(--text-faint); font-weight:600; }
.tipp-me-gap-row{ padding:9px 16px; border-radius:0 0 14px 14px; margin-bottom:16px;
  background:var(--surface-secondary); border:1px solid var(--border); border-top:none; text-align:center; }
.tipp-me-gap{ font-size:12.5px; font-weight:700; color:var(--text-muted); }

/* ---- Tippspiel: Bewegungspfeile & letzter Spieltag in der Rangliste ---- */
.tipp-strow{ grid-template-columns:38px 34px 1fr auto 34px 60px !important; }
.tipp-sthead .tipp-stmove, .tipp-sthead .tipp-stlast{ }
.tipp-stmove{ text-align:center; }
.tipp-move{ font-size:11px; font-weight:900; font-variant-numeric:tabular-nums; }
.tipp-move.up{ color:#34d399; }
.tipp-move.down{ color:#fb7185; }
.tipp-move.zero{ color:var(--text-faint); opacity:.4; }
.tipp-stlast{ font-size:11px; font-weight:800; color:var(--text-faint); text-align:right; }

/* ---- Tippspiel: Matrix-Aufklapp in der Rangliste ---- */
.tipp-matrix-toggle{ display:flex; align-items:center; gap:9px; margin-top:16px; padding:12px 15px; border-radius:12px; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); font-size:13px; font-weight:700; color:var(--text-muted); }
.tipp-matrix-toggle:hover{ color:var(--text); border-color:var(--border-strong, var(--border)); }
#tipp-matrix-wrap{ margin-top:12px; }

/* ---- Live-Tabelle: Rang- & Gesamt-Spalte ---- */
.tm-rank-h, .tm-rank{ text-align:center; white-space:nowrap; font-weight:800; position:sticky; left:0; background:var(--surface); z-index:3; }
.tm-rank-h{ font-size:10.5px; color:var(--text-faint); }
.tm-rank{ font-size:12px; }
.tm-rank .tipp-move{ font-size:9.5px; margin-left:3px; }
/* Name rückt hinter die Rang-Spalte, bleibt sticky */
.tm-name-h, .tm-name{ left:44px; }
.tm-total-h, .tm-total{ text-align:right; white-space:nowrap; position:sticky; right:0; background:var(--surface); z-index:3;
  font-weight:900; font-variant-numeric:tabular-nums; }
.tm-total-h{ font-size:10.5px; text-transform:uppercase; color:var(--text-faint); }
.tm-total{ color:var(--green); font-size:14px; }
.tm-total-live{ color:#fb7185 !important; }
.tm-sum-live{ color:#fb7185 !important; }
.tm-row.tm-me .tm-rank, .tm-row.tm-me .tm-total{ background:rgba(0,204,255,.1); }
.tm-game.live .tm-gres{ color:#fb7185; }

/* ---- Abstimmungen: Mehrfachauswahl ---- */
.poll-multi-hint{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; color:var(--green);
  background:rgba(0,204,255,.08); border:1px solid rgba(0,204,255,.28); border-radius:99px; padding:3px 10px; margin-bottom:10px; }
.poll-opt-box{ opacity:.4; }
.poll-multi-toggle{ display:flex; align-items:center; gap:10px; margin-top:14px; cursor:pointer; user-select:none; }
.poll-multi-toggle input{ position:absolute; opacity:0; width:0; height:0; }
.poll-multi-track{ position:relative; width:42px; height:24px; border-radius:99px; background:var(--surface-secondary);
  border:1px solid var(--border); flex:0 0 auto; transition:background .15s, border-color .15s; }
.poll-multi-knob{ position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:var(--text-faint);
  transition:transform .15s, background .15s; }
.poll-multi-toggle input:checked + .poll-multi-track{ background:rgba(0,204,255,.25); border-color:rgba(0,204,255,.5); }
.poll-multi-toggle input:checked + .poll-multi-track .poll-multi-knob{ transform:translateX(18px); background:var(--green); }
.poll-multi-label{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--text); }
.poll-multi-label i{ color:var(--green); }

/* ---- Instagram-Verweis (Startseite) ---- */
.ig-follow{ display:flex; align-items:center; gap:14px; margin:14px 0; padding:14px 16px; border-radius:14px;
  text-decoration:none; background:var(--surface); border:1px solid var(--border);
  transition:border-color .15s, transform .1s; }
.ig-follow:hover{ border-color:rgba(214,41,118,.5); transform:translateY(-1px); }
.ig-follow:active{ transform:translateY(0); }
.ig-follow-icon{ flex:0 0 auto; width:44px; height:44px; border-radius:12px; display:grid; place-items:center;
  background:linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.ig-follow-icon i{ font-size:24px; color:#fff; }
.ig-follow-text{ flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.ig-follow-title{ font-size:14.5px; font-weight:800; color:var(--text); }
.ig-follow-handle{ font-size:12.5px; color:var(--text-muted); font-weight:600; }
.ig-follow-arrow{ flex:0 0 auto; font-size:18px; color:var(--text-faint); }
.ig-follow:hover .ig-follow-arrow{ color:#dc2743; }

/* ---- Aufstellung: Freigabe für den öffentlichen Ticker ---- */
.lu-live-toggle{ margin-left:auto; white-space:nowrap; }
.lu-live-toggle.on{ background:rgba(52,211,153,.12); border-color:rgba(52,211,153,.45); color:#34d399; }
.lu-live-toggle.on i{ color:#34d399; }
.lu-live-toggle:not(.on){ opacity:.75; }

/* ---- Trikotnummern-Übersicht ---- */
.numboard-toggle{ display:flex; align-items:center; gap:8px; width:100%; margin-top:12px; padding:10px 13px; border-radius:11px;
  cursor:pointer; background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted);
  font-family:inherit; font-size:12.5px; font-weight:700; }
.numboard-toggle:hover{ color:var(--text); }
.numboard-toggle i:last-child{ margin-left:auto; }
#numboard{ margin-top:10px; }
.numboard-warn{ display:flex; align-items:flex-start; gap:8px; padding:9px 12px; margin-bottom:8px; border-radius:10px;
  background:rgba(251,113,133,.09); border:1px solid rgba(251,113,133,.35); color:#fb7185; font-size:12px; font-weight:700; }
.numboard-missing{ display:flex; align-items:flex-start; gap:8px; padding:9px 12px; margin-bottom:8px; border-radius:10px;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted); font-size:12px; }
.numboard-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(64px, 1fr)); gap:6px; }
.numcell{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:52px;
  padding:6px 4px; border-radius:10px; text-align:center; }
.numcell-n{ font-size:15px; font-weight:900; font-variant-numeric:tabular-nums; line-height:1; }
.numcell-name{ font-size:9.5px; font-weight:700; line-height:1.2; overflow:hidden; max-width:100%; text-overflow:ellipsis; }
.numcell.free{ background:var(--surface-secondary); border:1px dashed var(--border); color:var(--text-faint); cursor:pointer; }
.numcell.free:hover{ border-color:rgba(0,204,255,.4); color:var(--green); }
.numcell.taken{ background:rgba(0,204,255,.08); border:1px solid rgba(0,204,255,.3); color:var(--text); }
.numcell.taken .numcell-n{ color:var(--green); }
.numcell.conflict{ background:rgba(251,113,133,.1); border:1px solid rgba(251,113,133,.45); color:#fb7185; }

/* ---- Sticker-Karte: PNG-Export-Knopf ---- */
#map-export-btn.busy{ opacity:.55; cursor:progress; }
#map-export-btn:disabled{ pointer-events:none; }

/* ---- Kasse: Nichtzahler-Strafe (warnende Aktion) ---- */
.kasse-btn-warn{ border-color:rgba(224,185,59,.4); color:#e0b93b; }
.kasse-btn-warn:hover{ background:rgba(224,185,59,.1); border-color:rgba(224,185,59,.6); }
.kasse-btn-warn i{ color:#e0b93b; }

/* ---- Checklisten (Spieler-Tracking je Thema) ---- */
.cl-toolbar{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.cl-newbtn{ display:inline-flex; align-items:center; gap:7px; padding:9px 15px; border-radius:11px; cursor:pointer;
  background:rgba(0,204,255,.12); border:1px solid rgba(0,204,255,.4); color:var(--green);
  font-family:inherit; font-size:13px; font-weight:800; }
.cl-newbtn:hover{ background:rgba(0,204,255,.2); }
.cl-archbtn{ display:inline-flex; align-items:center; gap:7px; padding:9px 15px; border-radius:11px; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted);
  font-family:inherit; font-size:13px; font-weight:700; }
.cl-archbtn.on{ border-color:rgba(224,185,59,.45); color:#e0b93b; background:rgba(224,185,59,.08); }
.cl-empty{ display:flex; align-items:center; gap:10px; padding:22px; border-radius:14px;
  background:var(--surface-secondary); border:1px dashed var(--border); color:var(--text-faint); font-size:13.5px; }
.cl-empty i{ font-size:22px; }
.cl-empty.small{ padding:12px; font-size:12.5px; }

.cl-card{ border:1px solid var(--border); border-radius:14px; background:var(--surface); margin-bottom:10px; overflow:hidden; }
.cl-card.open{ border-color:rgba(0,204,255,.35); }
.cl-card.full{ border-color:rgba(52,211,153,.4); }
.cl-head{ display:flex; align-items:center; gap:14px; width:100%; padding:14px 16px; cursor:pointer;
  background:none; border:none; text-align:left; font-family:inherit; color:var(--text); }
.cl-head-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.cl-title{ font-size:15px; font-weight:800; }
.cl-title i{ color:#34d399; font-size:15px; vertical-align:-2px; }
.cl-note{ font-size:12px; color:var(--text-faint); }
.cl-bar{ height:5px; border-radius:99px; background:var(--surface-secondary); overflow:hidden; margin-top:2px; }
.cl-bar span{ display:block; height:100%; border-radius:99px; background:var(--green); transition:width .25s; }
.cl-card.full .cl-bar span{ background:#34d399; }
.cl-head-side{ flex:0 0 auto; display:flex; align-items:center; gap:9px; color:var(--text-muted); }
.cl-count{ font-size:13px; font-weight:900; font-variant-numeric:tabular-nums; }
.cl-card.full .cl-count{ color:#34d399; }

.cl-search{ display:flex; align-items:center; gap:8px; margin:0 16px 10px; padding:0 12px; height:40px; border-radius:10px;
  background:var(--bg); border:1px solid var(--border); }
.cl-search i{ color:var(--text-faint); }
.cl-search input{ flex:1; min-width:0; background:none; border:none; outline:none; color:var(--text);
  font-family:inherit; font-size:16px; }
.cl-players{ display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:6px; padding:0 16px 14px; }
.cl-row{ display:flex; align-items:stretch; gap:0; border-radius:10px; overflow:hidden;
  background:var(--surface-secondary); border:1px solid var(--border); }
.cl-row.on{ background:rgba(52,211,153,.1); border-color:rgba(52,211,153,.4); }
.cl-p{ flex:1; min-width:0; display:flex; align-items:center; gap:9px; padding:9px 11px; cursor:pointer;
  background:none; border:none; color:var(--text-muted);
  font-family:inherit; font-size:13px; font-weight:600; text-align:left; }
.cl-row:hover{ border-color:var(--border-strong, var(--border)); }
.cl-p:hover{ color:var(--text); }
.cl-p i{ font-size:18px; flex:0 0 auto; }
.cl-row.on .cl-p{ color:#34d399; }
.cl-row.on .cl-p i{ color:#34d399; }
.cl-p:disabled{ cursor:default; opacity:.75; }
.cl-pname{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cl-when{ flex:0 0 auto; font-size:10px; font-weight:700; opacity:.8; }
.cl-cardfoot{ display:flex; flex-wrap:wrap; gap:6px; padding:0 16px 14px; }
.cl-mini{ display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:9px; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted);
  font-family:inherit; font-size:12px; font-weight:700; }
.cl-mini:hover{ color:var(--text); }
.cl-mini.danger:hover{ color:#fb7185; border-color:rgba(251,113,133,.4); }

/* ---- Checklisten: Spieler ausschließen ---- */
.cl-ex{ flex:0 0 auto; width:34px; display:grid; place-items:center; cursor:pointer;
  background:none; border:none; border-left:1px solid var(--border); color:var(--text-faint); }
.cl-ex:hover{ color:#fb7185; background:rgba(251,113,133,.08); }
.cl-ex i{ font-size:15px; }
.cl-exwrap{ margin:0 16px 14px; padding-top:12px; border-top:1px dashed var(--border); }
.cl-exhead{ display:flex; align-items:center; gap:7px; font-size:11.5px; font-weight:800; letter-spacing:.04em;
  text-transform:uppercase; color:var(--text-faint); margin-bottom:8px; }
.cl-exlist{ display:flex; flex-wrap:wrap; gap:6px; }
.cl-exchip{ display:inline-flex; align-items:center; gap:5px; padding:5px 6px 5px 11px; border-radius:99px;
  background:var(--surface-secondary); border:1px dashed var(--border); color:var(--text-faint);
  font-size:12px; font-weight:600; }
.cl-exchip button{ width:22px; height:22px; display:grid; place-items:center; border-radius:50%; cursor:pointer;
  background:none; border:none; color:var(--text-faint); }
.cl-exchip button:hover{ color:var(--green); background:rgba(0,204,255,.12); }
.cl-exchip button i{ font-size:13px; }

/* ---- WhatsApp-Teilen ---- */
.wa-btn{ display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:10px 16px; border-radius:11px;
  cursor:pointer; background:rgba(37,211,102,.13); border:1px solid rgba(37,211,102,.42); color:#25d366;
  font-family:inherit; font-size:13px; font-weight:800; }
.wa-btn:hover{ background:rgba(37,211,102,.22); }
.wa-btn i{ font-size:17px; }
/* ---- Instagram-Direktpost ---- */
.ig-direct-btn{ flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:8px 12px; border-radius:var(--radius); cursor:pointer;
  background:var(--green-light); border:1px solid var(--green); color:var(--green-dark);
  font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; transition:all .12s; }
.ig-direct-btn:hover{ background:var(--green); color:var(--on-accent); }
.ig-direct-btn:active{ transform:scale(.985); }
.ig-direct-btn:disabled{ opacity:.45; cursor:not-allowed; }
.ig-direct-btn i{ font-size:15px; }
.ig-plan-btn{ flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:8px 12px; border-radius:var(--radius); cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted);
  font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; transition:all .12s; }
.ig-plan-btn:hover{ color:var(--text); border-color:var(--green); }
.ig-plan-btn:active{ transform:scale(.985); }
.ig-plan-btn i{ font-size:15px; }
.modal-btn-wa{ border-color:rgba(37,211,102,.42) !important; color:#25d366 !important; }
.modal-btn-wa:hover{ background:rgba(37,211,102,.14) !important; }
.tipp-wa{ display:flex; align-items:center; justify-content:center; gap:7px; width:fit-content; margin:0 auto 12px;
  padding:7px 14px; border-radius:99px; cursor:pointer; background:rgba(37,211,102,.12);
  border:1px solid rgba(37,211,102,.4); color:#25d366; font-family:inherit; font-size:12.5px; font-weight:800; }
.tipp-wa:hover{ background:rgba(37,211,102,.2); }
#map-share-btn{ color:#25d366; }

/* ---- RSVP: automatische Frist-Kennzeichnung ---- */
.rsvp-dl-auto{ opacity:.7; font-weight:600; font-size:.9em; }

/* ===================================================================
   Termin-Detailansicht (Info-Modus) – Hero, Info-Zeilen, RSVP-Übersicht
   =================================================================== */
.ev-hero{ display:flex; gap:14px; align-items:flex-start; padding:16px; border-radius:var(--radius-lg);
  background:linear-gradient(150deg, rgba(0,204,255,.1), rgba(0,204,255,.02)); border:1px solid rgba(0,204,255,.22);
  margin-bottom:14px; }
.ev-hero-match{ background:linear-gradient(150deg, rgba(0,204,255,.14), rgba(0,204,255,.03)); }
.ev-hero-ico{ flex:0 0 auto; width:48px; height:48px; border-radius:13px; display:grid; place-items:center;
  background:rgba(0,204,255,.16); border:1px solid rgba(0,204,255,.3); }
.ev-hero-ico i{ font-size:26px; color:var(--green); }
.ev-hero-main{ flex:1; min-width:0; }
.ev-hero-type{ font-size:11.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--green); }
.ev-hero-title{ font-size:20px; font-weight:800; color:var(--text); line-height:1.2; margin:2px 0 6px; overflow-wrap:anywhere; }
.ev-hero-when{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--text-muted); }
.ev-hero-when i{ font-size:15px; color:var(--text-muted); }

.ev-info{ display:flex; flex-direction:column; gap:2px; margin-bottom:14px; }
.ev-info-row{ display:flex; align-items:flex-start; gap:11px; padding:10px 4px; border-bottom:1px solid var(--border); font-size:13.5px; }
.ev-info-row:last-child{ border-bottom:none; }
.ev-info-row > i{ flex:0 0 auto; font-size:17px; color:var(--green); margin-top:1px; width:20px; text-align:center; }
.ev-info-lbl{ flex:0 0 92px; color:var(--text-muted); font-weight:600; }
.ev-info-val{ flex:1; min-width:0; color:var(--text); font-weight:600; overflow-wrap:anywhere; }
.ev-info-val .loc-link{ color:var(--green); }
.ev-score{ font-size:16px; font-weight:800; color:var(--green); }

/* RSVP-Übersicht für Trainer/Admin */
.ev-rsvp-admin{ padding:14px; border-radius:var(--radius-lg); background:var(--surface-secondary);
  border:1px solid var(--border); margin-bottom:14px; }
.ev-rsvp-admin-head{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:800; color:var(--text); margin-bottom:11px; }
.ev-rsvp-admin-head i{ color:var(--green); font-size:18px; }
.ev-rsvp-admin-total{ margin-left:auto; font-size:12.5px; font-weight:800; color:var(--green); }
.ev-rsvp-bar{ display:flex; height:9px; border-radius:99px; overflow:hidden; background:rgba(255,255,255,.06); margin-bottom:11px; }
.ev-rsvp-bar .seg{ height:100%; }
.ev-rsvp-bar .seg.yes{ background:#34d399; }
.ev-rsvp-bar .seg.maybe{ background:#e0b93b; }
.ev-rsvp-bar .seg.no{ background:#fb7185; }
.ev-rsvp-bar .seg.open{ background:#5f6a78; }
.ev-rsvp-nums{ display:flex; flex-wrap:wrap; gap:7px; }
.ev-rsvp-num{ display:inline-flex; align-items:center; gap:5px; padding:5px 10px; border-radius:99px;
  font-size:12px; font-weight:700; background:var(--surface); border:1px solid var(--border); }
.ev-rsvp-num i{ font-size:13px; }
.ev-rsvp-num.yes{ color:#34d399; } .ev-rsvp-num.yes i{ color:#34d399; }
.ev-rsvp-num.no{ color:#fb7185; } .ev-rsvp-num.no i{ color:#fb7185; }
.ev-rsvp-num.maybe{ color:#e0b93b; } .ev-rsvp-num.maybe i{ color:#e0b93b; }
.ev-rsvp-num.open{ color:var(--text-muted); }
.ev-rsvp-details{ margin-top:11px; }
.ev-rsvp-details summary{ cursor:pointer; font-size:12.5px; font-weight:700; color:var(--text-muted); padding:5px 0; list-style:none; }
.ev-rsvp-details summary::-webkit-details-marker{ display:none; }
.ev-rsvp-details summary::before{ content:'▸'; display:inline-block; margin-right:6px; transition:transform .15s; }
.ev-rsvp-details[open] summary::before{ transform:rotate(90deg); }
.ev-rsvp-group{ margin-top:9px; }
.ev-rsvp-gh{ display:flex; align-items:center; gap:6px; font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; margin-bottom:6px; }
.ev-rsvp-gh.yes{ color:#34d399; } .ev-rsvp-gh.no{ color:#fb7185; } .ev-rsvp-gh.maybe{ color:#e0b93b; } .ev-rsvp-gh.open{ color:var(--text-muted); }
.ev-rsvp-names{ display:flex; flex-wrap:wrap; gap:5px; }
.ev-rsvp-chip{ display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:99px;
  font-size:12px; font-weight:600; background:var(--surface); border:1px solid var(--border); color:var(--text); }
.ev-rsvp-reason{ color:var(--text-faint); font-weight:500; font-style:italic; }
.ev-rsvp-manage{ display:flex; align-items:center; justify-content:center; gap:7px; width:100%; margin-top:12px;
  padding:10px; border-radius:var(--radius); cursor:pointer; background:rgba(0,204,255,.1);
  border:1px solid rgba(0,204,255,.35); color:var(--green); font-family:inherit; font-size:13px; font-weight:800; }
.ev-rsvp-manage:hover{ background:rgba(0,204,255,.18); }

/* ---- Team-Übersicht in der persönlichen Ansicht (Spieler) ---- */
.rsvp-team{ margin-top:16px; padding:14px; border-radius:var(--radius-lg); background:var(--surface-secondary); border:1px solid var(--border); }
.rsvp-team-head{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:800; color:var(--text); margin-bottom:11px; }
.rsvp-team-head i{ font-size:17px; color:var(--green); }
.rsvp-team-total{ margin-left:auto; font-size:12px; font-weight:800; color:#34d399; }
.rsvp-team .ev-rsvp-bar{ margin-bottom:11px; }
.rsvp-team .rsvp-summary{ margin:0 0 12px; }
.rsvp-team .rsvp-row{ background:var(--surface); }

/* ---- Feinschliff Admin-Übersicht ---- */
.ev-rsvp-admin{ box-shadow:0 2px 12px rgba(0,0,0,.15); }
.ev-rsvp-bar{ box-shadow:inset 0 1px 2px rgba(0,0,0,.2); }
.ev-rsvp-num{ transition:transform .1s; }
.ev-rsvp-chip{ transition:border-color .12s; }
.ev-rsvp-details summary:hover{ color:var(--text); }

/* Persönliche Antwort deutlicher vom Rest abheben */
.rsvp-inline-head{ font-size:15px; }
.rsvp-inline-head i{ font-size:19px; }

/* ===================================================================
   Startseite: kompaktere, aufgeräumte vertikale Rhythmik
   =================================================================== */
/* Einheitliche Abstände zwischen den Hauptblöcken statt vieler Einzel-Margins */
#section-overview > #hub-hero,
#section-overview > #hub-trainings,
#section-overview > #hub-announcements,
#section-overview > #hub-polls,
#section-overview > .ig-follow,
#section-overview > .hub-quick,
#section-overview > .dash-widgets,
#section-overview > .cmd-grid{ margin-top:0; margin-bottom:0; }

/* Leere dynamische Blöcke sollen keinen Platz belegen (kein Doppel-Abstand) */
#hub-hero:empty, #hub-trainings:empty, #hub-announcements:empty, #hub-polls:empty,
#hub-quick:empty, #hub-status:empty{ display:none; }

/* Gleichmäßiger Abstand über den ganzen Overview-Stapel (nur wenn aktiv sichtbar) */
#section-overview.active{ display:flex; flex-direction:column; gap:16px; }
#section-overview > .hub-header{ margin:0; }
#section-overview > .hub-status{ margin:0; }
#section-overview .section-label{ margin:6px 0 0; }
#section-overview .cmd-grid{ margin-bottom:8px; }

/* Dashboard-Widgets dichter */
#section-overview .dash-widgets{ margin:0; gap:14px; }
/* Ist das Statistik-Widget für Spieler ausgeblendet, nimmt „Heute" die ganze Breite */
.dash-widgets:has(#widget-stats[style*="display: none"]) #widget-today,
.dash-widgets:has(#widget-stats[style*="display:none"]) #widget-today{ grid-column:1 / -1; }

/* Instagram-Button kompakter in den Fluss einfügen */
#section-overview > .ig-follow{ margin:0; }

/* ===================================================================
   Grafik-Erstellung: Formular-Panel aufgewertet
   =================================================================== */
.form-panel{ padding:0 0 22px !important; overflow:hidden; border-radius:var(--radius-lg); }
.form-head{
  display:flex !important; align-items:center; gap:14px !important;
  margin:0 0 18px !important; padding:18px 22px !important;
  background:linear-gradient(150deg, rgba(0,204,255,.12), rgba(0,204,255,.02));
  border-bottom:1px solid rgba(0,204,255,.2) !important;
}
.form-head-icon{
  width:48px !important; height:48px !important; border-radius:14px !important;
  background:linear-gradient(150deg, rgba(0,204,255,.24), rgba(0,204,255,.08)) !important;
  border:1px solid rgba(0,204,255,.3);
  color:var(--green) !important; font-size:24px !important; flex:0 0 auto;
}
.form-title-text{ font-family:'Montserrat',sans-serif; font-size:19px !important; font-weight:800 !important; letter-spacing:-.01em; }
.form-subtitle{ font-size:12.5px !important; margin-top:2px; }

/* Der eigentliche Formularinhalt bekommt seitlichen Innenabstand
   (alle direkten Kinder außer der Kopfzeile) */
.form-panel > *:not(.form-head){ margin-left:22px; margin-right:22px; }

/* Felder etwas großzügiger & klarer */
.field label{ font-size:11px !important; font-weight:700 !important; color:var(--text-muted) !important; margin-bottom:6px !important; }
.field select,
.field input[type="text"], .field input[type="number"], .field input[type="password"],
.field input[type="email"], .field input[type="search"], .field input[type="tel"],
.field input[type="url"], .field textarea{
  padding:10px 13px !important; font-size:14px !important; border-radius:11px !important;
}
.field select{ padding-right:30px !important; }

/* Trenner mit Akzentstrich statt blasser Unterlinie */
.fields-separator{
  display:flex; align-items:center; gap:9px;
  font-size:12px !important; font-weight:800 !important; letter-spacing:.05em;
  color:var(--text-muted) !important; border-bottom:none !important;
  margin:22px 0 12px !important; padding-bottom:0 !important;
}
.fields-separator::before{ content:''; width:4px; height:14px; border-radius:2px; background:linear-gradient(180deg,var(--green),var(--green-mid)); flex:0 0 auto; }
.fields-separator::after{ content:''; flex:1; height:1px; background:var(--border); }

/* „Bild erstellen"-Button kräftiger */
.submit-btn{
  width:100%; margin-top:8px; padding:14px !important; border-radius:12px !important;
  font-size:15px !important; font-weight:800 !important;
  background:#12b6e6 !important; color:var(--on-accent) !important;
  border:none !important; box-shadow:0 8px 24px -8px rgba(0,0,0,0.45);
  transition:transform .12s, box-shadow .15s;
}
.submit-btn:hover{ transform:translateY(-2px); box-shadow:0 12px 30px -8px rgba(0,0,0,0.45); }
.submit-btn i{ font-size:19px; }

/* ===================================================================
   Kalender: lebendigere Monatsansicht
   =================================================================== */
/* Wochentagsköpfe klarer */
.cal-weekday{ color:var(--text-muted) !important; font-weight:800 !important; }

/* Wochenende dezent abgesetzt (dort finden die Spiele statt) */
.cal-cell.weekend{ background:rgba(0,204,255,.025); }
.cal-cell.weekend:hover{ background:var(--surface-secondary); }
.cal-cell.other-month.weekend{ background:rgba(0,0,0,.14); }

/* Heute deutlich hervorheben – nicht nur die Zahl */
.cal-cell.today{ background:rgba(0,0,0,0.45); box-shadow:inset 0 0 0 2px var(--green); position:relative; z-index:1; }
.cal-cell.today:hover{ background:rgba(0,204,255,.1); }
.cal-cell.today .cal-cell-num{ background:var(--green); color:var(--on-accent); font-weight:800; box-shadow:0 2px 8px -2px rgba(0,0,0,0.45); }

/* Terminchips: feiner, mit Farbpunkt und dezentem Verlauf statt Vollfläche */
.cal-event-chip{
  font-size:12px !important; font-weight:600;
  padding:4px 8px 4px 7px !important; border-radius:7px !important;
  background:var(--surface-secondary) !important; color:var(--text) !important;
  border:1px solid var(--border);
  gap:6px !important;
}
.cal-event-chip::before{
  content:''; flex:0 0 auto; width:6px; height:6px; border-radius:50%; background:var(--chip-dot,#888);
}
.cal-event-chip .chip-time{ color:var(--text-muted); opacity:1 !important; font-weight:700 !important; }
.cal-event-chip:hover{ filter:none !important; border-color:var(--border-strong); background:var(--surface) !important; }

/* Farbe pro Typ nur noch am Punkt + linkem Rand – ruhiger als Vollfläche */
.cal-event-chip.game{     background:rgba(0,204,255,.1) !important;   border-color:rgba(0,204,255,.3);   --chip-dot:var(--cal-game); }
.cal-event-chip.training{ background:rgba(52,211,153,.1) !important; border-color:rgba(52,211,153,.3); color:var(--text) !important; --chip-dot:#34d399; }
.cal-event-chip.event{    background:rgba(224,185,59,.1) !important; border-color:rgba(224,185,59,.3);  color:var(--text) !important; --chip-dot:#e0b93b; }
.cal-event-chip.reminder{ background:rgba(251,113,133,.1) !important; border-color:rgba(251,113,133,.3); --chip-dot:var(--cal-reminder,#fb7185); }
.cal-event-chip.birthday{ background:rgba(192,132,252,.1) !important; border-color:rgba(192,132,252,.3); --chip-dot:var(--cal-birthday,#c084fc); }

/* Spieltage (Spiele) zusätzlich betonen: kräftigerer linker Streifen */
.cal-event-chip.game{ border-left:3px solid var(--cal-game); font-weight:700; }

.cal-more{ font-weight:700; color:var(--green) !important; }

/* ===================================================================
   Spielerpass: Hero-Kopf + aufgewertete Stats
   =================================================================== */
.pp-hero{
  display:flex; align-items:center; gap:16px; margin:-4px -4px 18px; padding:20px 18px;
  border-radius:16px; position:relative; overflow:hidden;
  background:linear-gradient(135deg, rgba(0,204,255,.18), rgba(0,204,255,.03) 60%, transparent);
  border:1px solid rgba(0,204,255,.25);
}
.pp-hero::after{
  content:''; position:absolute; right:-40px; top:-40px; width:160px; height:160px; border-radius:50%;
  background:radial-gradient(circle, rgba(0,204,255,.16), transparent 70%); pointer-events:none;
}
.pp-hero-av{
  flex:0 0 auto; width:76px; height:76px; border-radius:20px; overflow:hidden; position:relative; z-index:1;
  background:linear-gradient(150deg,#202d42,#161f2e); border:2px solid rgba(0,204,255,.4);
  box-shadow:0 8px 24px -8px rgba(0,0,0,.5);
}
.pp-hero-av img{ width:100%; height:100%; object-fit:cover; }
.pp-hero-fb{ width:100%; height:100%; display:grid; place-items:center; font-family:'Montserrat',sans-serif; font-weight:800; font-size:32px; color:#cfe9f3; }
.pp-hero-info{ flex:1; min-width:0; position:relative; z-index:1; }
.pp-hero-name{ font-family:'Montserrat',sans-serif; font-size:22px; font-weight:800; color:var(--text); line-height:1.15; letter-spacing:-.01em; }
.pp-hero-meta{ display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.pp-hero-num{ display:inline-flex; align-items:center; font-family:'Montserrat',sans-serif; font-weight:800; font-size:13px; color:var(--green); background:rgba(0,204,255,.14); border:1px solid rgba(0,204,255,.3); padding:3px 11px; border-radius:99px; }
.pp-hero-pos{ display:inline-flex; align-items:center; font-size:12px; font-weight:700; color:var(--text-muted); background:var(--surface-secondary); border:1px solid var(--border); padding:3px 11px; border-radius:99px; }
.pp-hero-streak{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:#ffb066; background:rgba(255,140,40,.14); border:1px solid rgba(255,140,40,.3); padding:3px 11px; border-radius:99px; }

/* Stats etwas kräftiger */
.pp-stat{ transition:transform .12s; }
.pp-stat:hover{ transform:translateY(-2px); }
.pp-stat-v{ font-family:'Montserrat',sans-serif; }

/* ===================================================================
   Login-Screen: stimmungsvoller erster Eindruck
   =================================================================== */
#login-overlay{
  background:
    radial-gradient(900px 500px at 50% -5%, rgba(0,204,255,.16), transparent 62%),
    radial-gradient(700px 500px at 85% 110%, rgba(0,204,255,.08), transparent 60%),
    linear-gradient(180deg, #0d1420, var(--bg)) !important;
}
/* Dezentes Rasterpanel im Hintergrund */
.login-bg{
  position:absolute; inset:0; pointer-events:none; opacity:.4;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.login-card{
  position:relative;
  max-width:380px !important;
  padding:34px 28px 30px !important;
  background:linear-gradient(180deg, rgba(33,41,56,.9), rgba(21,27,36,.95)) !important;
  border:1px solid rgba(0,204,255,.18) !important;
  border-radius:22px !important;
  box-shadow:0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset !important;
  backdrop-filter:blur(8px);
}
.login-icon{
  width:100px !important; height:100px !important; border-radius:26px !important;
  border:2px solid rgba(0,204,255,.5) !important; margin-bottom:20px !important;
}
.login-eyebrow{
  display:inline-flex; align-items:center; gap:6px;
  font-size:11.5px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
  color:var(--green); background:rgba(0,204,255,.1); border:1px solid rgba(0,204,255,.24);
  padding:5px 13px; border-radius:99px; margin-bottom:14px;
}
.login-title{
  font-family:'Montserrat',sans-serif !important;
  font-size:24px !important; font-weight:800 !important; letter-spacing:-.02em;
  color:var(--text) !important; margin-bottom:6px !important; line-height:1.1;
}
.login-sub{ font-size:13.5px !important; color:var(--text-muted) !important; margin-bottom:24px !important; }

/* Eingabefelder mit Icon links */
.login-field{ position:relative; margin-bottom:12px; text-align:left; }
.login-field-ico{
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  font-size:18px; color:var(--text-faint); pointer-events:none; transition:color .15s;
}
.login-field:focus-within .login-field-ico{ color:var(--green); }
.login-input{
  padding:14px 14px 14px 44px !important; font-size:15px !important;
  text-align:left !important; border-radius:13px !important;
  border:1px solid var(--border-strong) !important; background:rgba(0,0,0,.25) !important;
}
.login-input:focus{ background:rgba(0,0,0,.35) !important; box-shadow:0 0 0 3px rgba(0,0,0,0.45) !important; }
.login-input::placeholder{ color:var(--text-faint); }

.login-error{
  display:none; align-items:center; gap:7px; justify-content:center;
  color:#ff8a8d !important; font-size:12.5px !important; font-weight:600;
  background:rgba(251,113,133,.1); border:1px solid rgba(251,113,133,.28);
  border-radius:10px; padding:9px 12px; margin-top:12px !important;
}
.login-error.show{ display:flex; }
.login-error i{ font-size:15px; flex:0 0 auto; }

.login-btn{
  width:100%; margin-top:20px !important; padding:14px 16px !important;
  border-radius:13px !important; font-size:15px !important; font-weight:800 !important;
  background:#12b6e6 !important; color:var(--on-accent) !important;
  box-shadow:0 12px 30px -10px rgba(0,0,0,0.45) !important;
}
.login-btn:hover{ filter:brightness(1.05); transform:translateY(-1px); }
.login-btn i{ font-size:18px; transition:transform .15s; }
.login-btn:hover i{ transform:translateX(3px); }

/* ===================================================================
   Tippspiel-Tableau: ruhiger, klarere Hierarchie
   =================================================================== */
/* Rahmen weicher, Kopf abgesetzt */
.tm-scroll{ border-radius:14px; box-shadow:0 2px 12px rgba(0,0,0,.12); }
.tm-table thead th, .tm-table tr:first-child th{
  background:var(--surface-secondary); position:sticky; top:0; z-index:4;
}
.tm-table th{ padding-top:9px !important; padding-bottom:9px !important; }

/* Zebra-Streifen für ruhigeres Scannen */
.tm-row:nth-child(odd) td{ background:rgba(255,255,255,.018); }
.tm-row:nth-child(odd) .tm-rank,
.tm-row:nth-child(odd) .tm-name{ background:#1a212c; }
.tm-row:nth-child(odd) .tm-total{ background:#1a212c; }
.tm-row:hover td{ background:rgba(0,204,255,.05); }
.tm-row:hover .tm-rank, .tm-row:hover .tm-name, .tm-row:hover .tm-total{ background:rgba(0,204,255,.09); }

/* Sticky Spalten mit feiner Trennkante, damit die Mitte klar abgegrenzt ist */
.tm-name, .tm-name-h{ box-shadow:1px 0 0 var(--border); }
.tm-total, .tm-total-h{ box-shadow:-1px 0 0 var(--border); }

/* Gesamt-Spalte klar als Wichtigstes hervorheben */
.tm-total-h{ background:var(--surface-secondary) !important; color:var(--green) !important; font-weight:800 !important; }
.tm-total{ font-family:'Montserrat',sans-serif; font-size:15px !important; font-weight:800 !important; padding-left:12px !important; padding-right:12px !important; }
.tm-total-h, .tm-total{ border-left:2px solid rgba(0,204,255,.18); }

/* ST-Spalte etwas zurücknehmen (sekundär ggü. Gesamt) */
.tm-sum{ color:var(--text-muted) !important; font-weight:800 !important; }
.tm-sum-h{ color:var(--text-faint); }

/* Podest: Top 3 Ränge dezent golden/silbern/bronzen tönen */
/* Kopf ist die erste <tr>, daher +1 Offset für die Datenzeilen */
.tm-row:nth-child(2) .tm-rank{ box-shadow:inset 3px 0 0 #e0b93b; }
.tm-row:nth-child(3) .tm-rank{ box-shadow:inset 3px 0 0 #c4ccd6; }
.tm-row:nth-child(4) .tm-rank{ box-shadow:inset 3px 0 0 #cd8b5b; }

/* Eigene Zeile noch klarer */
.tm-row.tm-me td{ background:rgba(0,204,255,.1) !important; }
.tm-row.tm-me .tm-name{ background:rgba(0,204,255,.14) !important; font-weight:800; }
.tm-row.tm-me .tm-rank, .tm-row.tm-me .tm-total{ background:rgba(0,204,255,.14) !important; }

/* Spielspalten-Kopf ruhiger */
.tm-game{ min-width:46px; }
.tm-gres{ display:block; font-size:9.5px; font-weight:800; color:var(--text-muted); margin-top:2px; }
.tm-game.started .tm-gres{ color:var(--text); }

/* „Meine Position"-Karte oben aufgewertet */
.tipp-me-card{ border-radius:16px; border:1px solid rgba(0,204,255,.25);
  background:linear-gradient(135deg, rgba(0,204,255,.14), rgba(0,204,255,.03)); }

/* ===================================================================
   Startseite beruhigen: klare Hierarchie, weniger konkurrierende Blöcke
   =================================================================== */
/* Einklappbarer „Grafik erstellen"-Bereich (Werkzeug, kein Dashboard-Inhalt) */
.hub-collapse{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  padding:12px 15px; margin:0; cursor:pointer;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  color:var(--text); font-family:inherit; transition:border-color .15s, background .15s;
}
.hub-collapse:hover{ border-color:var(--border-strong); background:var(--surface-secondary); }
.hub-collapse-lbl{ display:inline-flex; align-items:center; gap:9px; font-size:13.5px; font-weight:700; }
.hub-collapse-lbl i{ color:var(--green); font-size:17px; }
.hub-collapse-chev{ color:var(--text-faint); font-size:18px; transition:transform .2s; }
.hub-collapse[aria-expanded="true"] .hub-collapse-chev{ transform:rotate(180deg); }
/* Eingeklappt: Grid verstecken */
.cmd-grid.hub-collapsed{ display:none !important; }
/* Ausgeklappt: etwas Abstand zum Button */
#hub-grafik-grid:not(.hub-collapsed){ margin-top:12px; }

/* Instagram-Button leiser (sekundär, nicht so präsent) */
#section-overview > .ig-follow{ opacity:.9; }
#section-overview > .ig-follow:hover{ opacity:1; }

/* Mini-Stats ruhiger: nicht mehr cyan-Kacheln, nur dezent */
.mini-stat{ background:var(--surface-secondary) !important; border-color:var(--border) !important; }
.mini-stat-val{ color:var(--text) !important; }

/* Quick-Kacheln (Kalender/Kasse/Team) etwas zurücknehmen – Icons neutraler */
.hub-tile-ico{
  background:var(--surface-secondary) !important; border-color:var(--border) !important;
  color:var(--green-dark) !important;
}

/* ---- Checklisten-Modal: Geltungsbereich-Auswahl ---- */
.cl-scope{ display:flex; gap:8px; flex-wrap:wrap; }
.cl-scope-btn{
  flex:1 1 auto; min-width:140px; display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:11px 12px; border-radius:11px; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted);
  font-family:inherit; font-size:13px; font-weight:700; transition:border-color .15s, background .15s, color .15s;
}
.cl-scope-btn i{ font-size:16px; }
.cl-scope-btn:hover{ border-color:var(--border-strong); color:var(--text); }
.cl-scope-btn.is-on{ background:rgba(0,204,255,.12); border-color:rgba(0,204,255,.4); color:var(--green); }
.cl-scope-hint{ font-size:12px; color:var(--text-muted); margin-top:9px; line-height:1.4; }
.cl-scope-hint:empty{ display:none; }
.cl-scope-hint i{ color:var(--green); vertical-align:-1px; margin-right:3px; }

/* ---- Checklisten: Werte-Variante (mit Eingabefeld) ---- */
.cl-kind-ico{ color:var(--green); font-size:.9em; }
.cl-row-val{ display:flex; align-items:center; gap:10px; }
.cl-row-val .cl-vmain{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.cl-row-val .cl-pname{ font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cl-row-val.on{ border-color:rgba(0,204,255,.35); background:rgba(0,204,255,.05); }
.cl-vinput{ display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.cl-vinput input{
  width:64px; text-align:center; padding:8px 8px; border-radius:9px;
  background:var(--surface); border:1px solid var(--border-strong); color:var(--text);
  font-family:'Montserrat',sans-serif; font-weight:700; font-size:14px; font-variant-numeric:tabular-nums;
}
.cl-vinput input:focus{ border-color:var(--green); box-shadow:0 0 0 3px rgba(0,0,0,0.45); outline:none; }
.cl-vinput input:disabled{ opacity:.6; }
.cl-unit{ font-size:12px; font-weight:700; color:var(--text-muted); }

/* ---- Checklisten: Vorlagen-Auswahl im Modal ---- */
.cl-tpl-list{ display:flex; flex-direction:column; gap:7px; }
.cl-tpl-chip{
  display:flex; align-items:center; gap:10px; padding:10px 12px; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); border-radius:11px;
  transition:border-color .15s, background .15s;
}
.cl-tpl-chip:hover{ border-color:rgba(0,204,255,.4); background:rgba(0,204,255,.06); }
.cl-tpl-chip.is-on{ border-color:var(--green); background:rgba(0,204,255,.1); }
.cl-tpl-chip > i{ font-size:18px; color:var(--green); flex:0 0 auto; }
.cl-tpl-name{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; font-weight:700; font-size:13.5px; color:var(--text); }
.cl-tpl-meta{ font-size:11px; font-weight:600; color:var(--text-faint); }
.cl-tpl-x{
  flex:0 0 auto; width:26px; height:26px; border:none; background:transparent; color:var(--text-faint);
  border-radius:7px; cursor:pointer; display:grid; place-items:center;
}
.cl-tpl-x:hover{ color:#ff6b6b; background:rgba(255,107,107,.12); }

/* ===================================================================
   Startseiten-Hero: kompakte Leiste + ausklappbare Details
   =================================================================== */
/* Eingeklappt: kein großes Padding, nur die Leiste */
.hub-hero.is-collapsed{ padding:0; }
.hub-hero.is-collapsed .hub-hero-glow{ opacity:.6; }

/* Kompakte Kopfzeile (immer sichtbar, klickbar) */
.hub-hero-bar{
  display:flex; align-items:center; gap:12px; width:100%;
  padding:14px 16px; cursor:pointer; text-align:left;
  background:transparent; border:none; color:var(--text); font-family:inherit;
  position:relative; z-index:2;
}
.hub-hero-bar-ico{
  flex:0 0 auto; width:40px; height:40px; border-radius:12px; display:grid; place-items:center;
  background:rgba(0,204,255,.14); border:1px solid rgba(0,204,255,.3); color:var(--green); font-size:21px;
}
.hub-hero-bar-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.hub-hero-bar-eyebrow{ font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--green); }
.hub-hero-bar-title{ font-size:16px; font-weight:800; color:var(--text); line-height:1.15; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hub-hero-bar-when{ flex:0 0 auto; font-size:12.5px; font-weight:700; color:var(--text-muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.hub-hero-chev{ flex:0 0 auto; color:var(--text-faint); font-size:20px; transition:transform .2s; }
.hub-hero:not(.is-collapsed) .hub-hero-chev{ transform:rotate(180deg); }

/* Detailbereich */
.hub-hero-detail{ padding:0 20px 20px; }
.hub-hero.is-collapsed .hub-hero-detail{ display:none; }
/* Beim Ausklappen die Eyebrow-Zeile im Detail sparen wir, da schon in der Leiste – dezent lassen */
.hub-hero:not(.is-collapsed) .hub-hero-detail .hub-hero-top{ margin-top:2px; }

/* Mobile: Datum in der Leiste ggf. ausblenden, wenn zu eng */
@media (max-width:380px){
  .hub-hero-bar-when{ display:none; }
}
@media (max-width:768px){
  .hub-hero-bar{ padding:13px 14px; gap:10px; }
  .hub-hero-bar-ico{ width:38px; height:38px; font-size:20px; }
  .hub-hero-bar-title{ font-size:15px; }
  .hub-hero-detail{ padding:0 16px 16px; }
}

/* ---- Kompakte Rückmelde-Leiste im Hero (auch eingeklappt sichtbar) ---- */
.hub-quickrsvp{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:11px 16px; margin:0 12px 12px; position:relative; z-index:2;
  background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:12px;
}
/* Aufgeklappt übernimmt der volle RSVP-Block – dann kompakte Leiste ausblenden */
.hub-hero:not(.is-collapsed) .hub-quickrsvp{ display:none; }
.hub-qr-lbl{ font-size:12px; font-weight:700; color:var(--text-muted); display:inline-flex; align-items:center; gap:6px; }
.hub-qr-lbl i{ color:var(--green); font-size:15px; }
.hub-qr-btns{ display:flex; gap:7px; margin-left:auto; flex-wrap:wrap; }
.hub-qr-btn{
  display:inline-flex; align-items:center; gap:6px; padding:8px 13px; border-radius:10px; cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted);
  font-family:inherit; font-size:12.5px; font-weight:700; transition:transform .1s, border-color .15s, background .15s, color .15s;
}
.hub-qr-btn i{ font-size:15px; }
.hub-qr-btn:hover{ transform:translateY(-1px); color:var(--text); border-color:var(--border-strong); }
.hub-qr-btn.yes.on{ background:linear-gradient(160deg,rgba(52,211,153,.24),rgba(52,211,153,.08)); border-color:#34d399; color:#5ee9b5; }
.hub-qr-btn.no.on{ background:linear-gradient(160deg,rgba(251,113,133,.24),rgba(251,113,133,.08)); border-color:#fb7185; color:#ff8fa0; }
.hub-qr-btn.maybe.on{ background:linear-gradient(160deg,rgba(224,185,59,.24),rgba(224,185,59,.08)); border-color:#e0b93b; color:#f0cf6a; }
.hub-quickrsvp.locked .hub-qr-status{ margin-left:auto; font-size:12px; font-weight:800; padding:4px 11px; border-radius:99px; }
.hub-qr-status.yes{ color:#34d399; background:rgba(52,211,153,.14); }
.hub-qr-status.no{ color:#fb7185; background:rgba(251,113,133,.14); }
.hub-qr-status.maybe{ color:#e0b93b; background:rgba(224,185,59,.14); }
.hub-qr-status.open{ color:var(--text-muted); background:var(--surface-secondary); }
@media (max-width:768px){
  /* Label über den Buttons, Buttons teilen die Zeile – klarer auf dem Handy */
  .hub-quickrsvp{ flex-direction:column; align-items:stretch; gap:9px; margin:0 12px 12px; padding:12px 14px; }
  .hub-qr-lbl{ font-size:12.5px; }
  .hub-qr-btns{ width:100%; margin-left:0; gap:8px; }
  .hub-qr-btn{ flex:1 1 0; justify-content:center; min-height:44px; padding:0 8px; font-size:13px; }
  .hub-quickrsvp.locked{ flex-direction:row; align-items:center; }
  .hub-quickrsvp.locked .hub-qr-status{ margin-left:auto; }
}

/* ===================================================================
   Mobile-Kalender: Symbole statt abgehackter Text-Abkürzungen
   =================================================================== */
/* Auf Desktop bleibt das Icon versteckt (Punkt + Text wie gehabt) */
.cal-event-chip .chip-ico{ display:none; }

@media (max-width:768px){
  /* Chip zeigt nur noch das Typ-Icon, zentriert – kein abgehackter Text mehr */
  .cal-event-chip{
    justify-content:center; gap:0 !important; padding:5px 4px !important;
    min-height:26px;
  }
  .cal-event-chip::before{ display:none; }          /* Farbpunkt weg – das Icon trägt die Farbe */
  .cal-event-chip .chip-ico{ display:inline-block; font-size:16px; line-height:1; color:var(--chip-dot,#888); }
  .cal-event-chip .chip-label{ display:none; }        /* Titeltext ausblenden */
  .cal-event-chip .chip-time{ display:none !important; }
  /* Spiele (linker Streifen) bleiben erkennbar; Icon in Spielfarbe */
  .cal-event-chip.game .chip-ico{ color:var(--cal-game); }
  .cal-event-chip.training .chip-ico{ color:#34d399; }
  .cal-event-chip.event .chip-ico{ color:#e0b93b; }
  .cal-event-chip.reminder .chip-ico{ color:var(--cal-reminder,#fb7185); }
  .cal-event-chip.birthday .chip-ico{ color:var(--cal-birthday,#c084fc); }
}

/* ---- Import: fussball.de-Spielplan ---- */
.imp-fbde-btn{
  display:flex; align-items:center; gap:12px; width:100%; padding:13px 14px; cursor:pointer;
  border-radius:12px; font-family:inherit; text-align:left;
  background:linear-gradient(150deg, rgba(0,204,255,.14), rgba(0,204,255,.03));
  border:1px solid rgba(0,204,255,.32); color:var(--text);
  transition:border-color .15s, background .15s, transform .1s;
}
.imp-fbde-btn:hover{ background:rgba(0,204,255,.18); transform:translateY(-1px); }
.imp-fbde-btn:disabled{ opacity:.6; cursor:default; transform:none; }
.imp-fbde-ico{
  flex:0 0 auto; width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  background:rgba(0,204,255,.18); border:1px solid rgba(0,204,255,.34); color:var(--green); font-size:20px;
}
.imp-fbde-txt{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.imp-fbde-txt b{ font-size:13.5px; font-weight:800; }
.imp-fbde-txt small{ font-size:11.5px; color:var(--text-muted); }
.imp-fbde-arrow{ flex:0 0 auto; color:var(--text-faint); font-size:18px; }
.imp-note{ color:var(--text-muted); font-weight:600; }

/* ---- Import: Aktualisierungen + Aufräum-Knopf ---- */
.imp-badge.upd{ background:rgba(224,185,59,.16); color:#e0b93b; border-color:rgba(224,185,59,.4); }
.imp-row.upd{ border-color:rgba(224,185,59,.35); }
.modal-btn-ghost-danger{ color:var(--text-muted); }
.modal-btn-ghost-danger:hover{ color:#ff8fa0; border-color:rgba(251,113,133,.4); }
.imp-purge-btn{ margin-right:auto; }

/* ---- Kalender-Abo: Vorteil + Schritte ---- */
.abo-benefit{
  display:flex; gap:9px; align-items:flex-start; padding:11px 13px; margin-bottom:14px;
  border-radius:11px; font-size:12.5px; line-height:1.45; color:var(--text);
  background:rgba(52,211,153,.09); border:1px solid rgba(52,211,153,.28);
}
.abo-benefit i{ color:#34d399; font-size:17px; flex:0 0 auto; margin-top:1px; }
.abo-benefit strong{ font-weight:800; }
.abo-steps{ display:flex; flex-direction:column; gap:8px; margin:14px 0 10px; }
.abo-step{ display:flex; gap:10px; align-items:flex-start; font-size:12.5px; line-height:1.45; color:var(--text-muted); }
.abo-step strong{ color:var(--text); font-weight:700; }
.abo-step code{ background:var(--surface-secondary); border:1px solid var(--border); border-radius:5px; padding:1px 5px; font-size:11.5px; }
.abo-step-n{
  flex:0 0 auto; width:20px; height:20px; border-radius:50%; display:grid; place-items:center;
  background:rgba(0,204,255,.14); border:1px solid rgba(0,204,255,.32); color:var(--green);
  font-size:11px; font-weight:800; margin-top:1px;
}

/* ===================================================================
   Spielticker: aufgeräumte Steuerung (Phase + Aktions-Reiter)
   =================================================================== */
.live-body{ gap:12px; }

/* ---- Spielphase: nur der nächste Schritt ---- */
.lvp{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px;
  background:var(--surface-secondary); border:1px solid var(--border); }
.lvp-now{ flex:1; min-width:0; display:inline-flex; align-items:center; gap:7px;
  font-size:12.5px; font-weight:700; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lvp-now i{ font-size:14px; color:var(--green); }
.lvp-go{ flex:0 0 auto; display:inline-flex; align-items:center; gap:7px; cursor:pointer;
  padding:10px 16px; border-radius:11px; border:none; font-family:inherit; font-size:13.5px; font-weight:800;
  background:#12b6e6; color:var(--on-accent);
  box-shadow:0 8px 22px -10px rgba(0,0,0,0.45); transition:transform .1s, filter .15s; }
.lvp-go:hover{ transform:translateY(-1px); filter:brightness(1.06); }
.lvp-go i{ font-size:17px; }
.lvp-more{ flex:0 0 auto; width:34px; height:34px; border-radius:10px; cursor:pointer; display:grid; place-items:center;
  background:transparent; border:1px solid var(--border); color:var(--text-faint); font-size:17px; }
.lvp-more:hover, .lvp-more.is-on{ color:var(--text); border-color:var(--border-strong); background:rgba(255,255,255,.05); }
.lvp-all{ display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; padding:10px 12px; border-radius:12px;
  background:rgba(255,255,255,.03); border:1px dashed var(--border-strong); }
.lvp-alt{ padding:7px 12px; border-radius:9px; cursor:pointer; font-family:inherit; font-size:12px; font-weight:700;
  background:var(--surface); border:1px solid var(--border); color:var(--text-muted); }
.lvp-alt:hover{ color:var(--text); border-color:var(--border-strong); }
.lvp-alt.is-next{ border-color:rgba(0,204,255,.45); color:var(--green); }
.lvp-all-note{ flex:1 1 100%; font-size:11px; color:var(--text-faint); }

/* ---- Aktions-Reiter ---- */
.lvc{ border-radius:14px; background:var(--surface-secondary); border:1px solid var(--border); overflow:hidden; }
.lvc-tabs{ display:grid; grid-template-columns:repeat(4,1fr); gap:2px; padding:4px; background:rgba(0,0,0,.18); }
.lvc-tab{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; cursor:pointer;
  padding:9px 4px; border-radius:9px; border:none; background:transparent; color:var(--text-faint);
  font-family:inherit; font-size:11px; font-weight:700; transition:background .15s, color .15s; }
.lvc-tab i{ font-size:18px; }
.lvc-tab:hover{ color:var(--text-muted); background:rgba(255,255,255,.04); }
.lvc-tab.is-on{ background:var(--surface); color:var(--green); box-shadow:0 1px 6px rgba(0,0,0,.25); }

.lvc-pane{ padding:13px; display:flex; flex-direction:column; gap:10px; }
.lvc-fields{ display:flex; gap:8px; flex-wrap:wrap; }
.lvc-min{ flex:0 0 74px; width:74px; text-align:center; }
.lvc-sel{ flex:1 1 150px; min-width:0; }
.lvc-sel-wide{ flex:1 1 100%; }
.lvc-note{ flex:1 1 180px; min-width:0; }
.lvc-min, .lvc-sel, .lvc-note{
  padding:11px 12px; border-radius:10px; font-family:inherit; font-size:14px;
  background:var(--surface); border:1px solid var(--border-strong); color:var(--text);
}
.lvc-min:focus, .lvc-sel:focus, .lvc-note:focus{ outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(0,0,0,0.45); }

.lvc-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.lvc-do{ flex:1 1 0; min-width:130px; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:0 14px; border-radius:11px; cursor:pointer; border:1px solid var(--border);
  background:var(--surface); color:var(--text); font-family:inherit; font-size:13.5px; font-weight:800;
  transition:transform .1s, filter .15s, border-color .15s; }
.lvc-do:hover{ transform:translateY(-1px); }
.lvc-do i{ font-size:18px; }
.lvc-do-goal{ background:#12b6e6; color:var(--on-accent); border:none;
  box-shadow:0 8px 22px -10px rgba(0,0,0,0.45); }
.lvc-do-against{ border-color:rgba(251,113,133,.35); color:#ff8fa0; }
.lvc-do-sub{ background:#12b6e6; color:var(--on-accent); border:none; }
.lvc-do-note{ background:#12b6e6; color:var(--on-accent); border:none; }
.lvc-do-img{ flex:0 0 auto; min-width:0; }
.lvc-do-yellow{ border-color:rgba(224,185,59,.45); color:#e0b93b; }
.lvc-do-red{ border-color:rgba(251,113,133,.45); color:#fb7185; }
.lvc-card{ width:13px; height:17px; border-radius:3px; display:inline-block; box-shadow:0 1px 3px rgba(0,0,0,.4); }
.lvc-card.y{ background:#e0b93b; } .lvc-card.r{ background:#fb7185; }

@media (max-width:520px){
  .lvc-tab span{ font-size:10.5px; }
  .lvc-do{ flex:1 1 100%; }
  .lvc-do-img{ flex:0 0 auto; }
  .lvp-now{ flex:1 1 100%; order:-1; }
  .lvp{ flex-wrap:wrap; }
  .lvp-go{ flex:1; justify-content:center; }
}
.lvc-hint{ display:flex; align-items:center; gap:7px; font-size:11.5px; font-weight:600; color:var(--text-muted); padding-top:2px; }
.lvc-hint i{ font-size:14px; color:var(--green); flex:0 0 auto; }
.lvc-hint b{ color:var(--green); font-weight:800; }
.lvc-hint.off{ color:var(--text-faint); }
.lvc-hint.off i{ color:var(--text-faint); }

/* ===================================================================
   Mannschaft: Kennzahlen, Gruppen (Trainer/Kader), Suche
   =================================================================== */
.team-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin:14px 0 18px; }
.team-stat{ display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:var(--radius-lg);
  background:var(--surface); border:1px solid var(--border); transition:border-color .15s, transform .12s; }
.team-stat:hover{ border-color:var(--border-strong); }
.team-stat-ico{ flex:0 0 auto; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; font-size:20px;
  background:rgba(0,204,255,.1); border:1px solid rgba(0,204,255,.26); color:var(--green); line-height:1; }
.team-stat-ico i{ display:inline-flex; align-items:center; justify-content:center; line-height:1; }
.team-stat-ico i::before{ display:inline-block; }
.team-stat-ico.staff{ background:rgba(224,185,59,.1); border-color:rgba(224,185,59,.28); color:#e0b93b; }
.team-stat-ico.world{ background:rgba(52,211,153,.1); border-color:rgba(52,211,153,.28); color:#34d399; }
.team-stat-body{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.team-stat-body b{ font-family:'Montserrat',sans-serif; font-size:21px; font-weight:800; color:var(--text); line-height:1.05; }
.team-stat-body small{ font-size:11.5px; font-weight:600; color:var(--text-muted); }

.team-toolbar{ display:flex; gap:9px; align-items:center; margin-bottom:6px; flex-wrap:wrap; }
.team-search{ position:relative; flex:1 1 220px; min-width:0; display:flex; align-items:center; }
.team-search > i{ position:absolute; left:12px; font-size:17px; color:var(--text-faint); pointer-events:none; }
.team-search input{ width:100%; padding:11px 36px 11px 38px; border-radius:11px; font-family:inherit; font-size:14px;
  background:var(--surface); border:1px solid var(--border-strong); color:var(--text); }
.team-search input:focus{ outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(0,0,0,0.45); }
.team-search-x{ position:absolute; right:8px; width:24px; height:24px; border:none; background:transparent;
  color:var(--text-faint); border-radius:7px; cursor:pointer; display:grid; place-items:center; }
.team-search-x:hover{ color:#ff8fa0; background:rgba(255,107,107,.12); }

.team-group{ margin-top:16px; }
.team-group[hidden]{ display:none; }
.team-group-head{ display:flex; align-items:center; gap:10px; margin:0 0 10px; }
.team-group-title{ display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:800;
  letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.team-group-title i{ font-size:16px; color:var(--green); }
.team-group-count{ font-size:11.5px; font-weight:800; color:var(--green); background:rgba(0,204,255,.12);
  border:1px solid rgba(0,204,255,.28); border-radius:99px; padding:2px 9px; }
.team-group-head::after{ content:''; flex:1; height:1px; background:var(--border); }
#team-staff-wrap .team-group-title i{ color:#e0b93b; }
#team-staff-wrap .team-group-count{ color:#e0b93b; background:rgba(224,185,59,.12); border-color:rgba(224,185,59,.3); }

/* Trainerkacheln abgesetzt */
.team-player-card.is-staff{ border-color:rgba(224,185,59,.35); }
.team-player-card.is-staff:hover{ border-color:rgba(224,185,59,.6); }
.tpc-staff{ position:absolute; top:8px; left:8px; width:26px; height:26px; border-radius:8px;
  display:inline-flex; align-items:center; justify-content:center; line-height:1;
  background:rgba(224,185,59,.95); color:#1a1206; box-shadow:0 2px 8px rgba(0,0,0,.4); z-index:3; }
.tpc-staff i{ font-size:15px; line-height:1; }
.tpc-staff i::before{ display:inline-block; }
/* Haken: Profil ist vollständig genug für die Spielervorstellungs-Grafik.
   Sitzt oben links - dieselbe Stelle wie das Trainer-Abzeichen, was nicht
   kollidiert, da Spielerkacheln nie beides tragen. Unten wäre der Name im
   Wege. Nur für Trainer/Admin sichtbar. */
.tpc-ready{ position:absolute; top:8px; left:8px; width:24px; height:24px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center; line-height:1;
  background:rgba(61,220,151,.95); color:#04231a; box-shadow:0 2px 8px rgba(0,0,0,.4); z-index:3; }
.tpc-ready i{ font-size:15px; line-height:1; }
.tpc-ready i::before{ display:inline-block; }
.team-player-card.is-staff .tpc-pos{ color:#e0b93b; }

.team-empty{ padding:22px; text-align:center; color:var(--text-faint); font-size:13px; }
.team-empty[hidden]{ display:none; }

/* ---- Mannschaft: Positionsblöcke im Kader ---- */
.team-pos-group{ margin-bottom:18px; }
.team-pos-group:last-child{ margin-bottom:0; }
.team-pos-head{ display:flex; align-items:center; gap:8px; margin:0 0 9px; padding-left:2px; }
.team-pos-head i{ font-size:15px; color:var(--green); }
.team-pos-head span{ font-size:12px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--text-muted); }
.team-pos-head b{ font-size:11px; font-weight:800; color:var(--text-faint); background:var(--surface-secondary);
  border:1px solid var(--border); border-radius:99px; padding:1px 8px; }
.team-pos-head::after{ content:''; flex:1; height:1px; background:var(--border); opacity:.6; }

/* ===================================================================
   Startseite: angepinnte Termine
   =================================================================== */
#hub-pinned:empty{ display:none; }
#hub-pinned{ display:flex; flex-direction:column; gap:10px; }
.hub-pin-card{
  display:flex; align-items:center; gap:12px; padding:13px 14px; cursor:pointer;
  border-radius:var(--radius-lg); position:relative;
  background:linear-gradient(150deg, rgba(224,185,59,.12), rgba(224,185,59,.03));
  border:1px solid rgba(224,185,59,.32);
  transition:border-color .15s, transform .1s, background .15s;
}
.hub-pin-card:hover{ transform:translateY(-1px); border-color:rgba(224,185,59,.55); }
.hp-ico{
  flex:0 0 auto; width:42px; height:42px; border-radius:12px; display:grid; place-items:center; font-size:21px;
  background:rgba(224,185,59,.16); border:1px solid rgba(224,185,59,.34); color:#e0b93b;
}
.hp-body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.hp-top{ display:inline-flex; align-items:center; gap:6px; font-size:10.5px; font-weight:800;
  letter-spacing:.07em; text-transform:uppercase; color:#e0b93b; }
.hp-top i{ font-size:13px; }
.hp-title{ font-size:15.5px; font-weight:800; color:var(--text); line-height:1.2; overflow-wrap:anywhere; }
.hp-meta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:3px; }
.hp-meta span{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:var(--text-muted); }
.hp-meta i{ font-size:14px; color:var(--text-faint); }
.hp-loc{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.hp-unpin{
  flex:0 0 auto; width:32px; height:32px; border-radius:9px; cursor:pointer; display:grid; place-items:center;
  background:transparent; border:1px solid transparent; color:var(--text-faint); font-size:17px;
}
.hp-unpin:hover{ color:#ff8fa0; border-color:rgba(251,113,133,.35); background:rgba(255,107,107,.1); }

/* Knopf im Termin, wenn bereits angepinnt */
#ev-pin-btn.is-pinned{ color:#e0b93b; border-color:rgba(224,185,59,.45); background:rgba(224,185,59,.1); }

/* ---- Nicht nominierte Spieler (zählen nicht mit) ---- */
.ev-rsvp-gh.nn{ color:#a78bfa; }
.ev-rsvp-chip.nn{ color:var(--text-muted); border-style:dashed; }
.rsvp-nn{ margin-top:12px; padding-top:11px; border-top:1px dashed var(--border-strong); }
.rsvp-nn-head{ display:flex; align-items:center; gap:7px; font-size:11.5px; font-weight:800;
  text-transform:uppercase; letter-spacing:.04em; color:#a78bfa; margin-bottom:7px; }
.rsvp-nn-head i{ font-size:14px; }
.rsvp-nn-list{ display:flex; flex-wrap:wrap; gap:6px; }
.rsvp-nn-chip{ display:inline-flex; align-items:center; padding:4px 10px; border-radius:99px;
  font-size:12px; font-weight:600; color:var(--text-muted);
  background:var(--surface); border:1px dashed var(--border-strong); }

/* ---- Kasse-Automatik: Betrag je Verspätungsminute ---- */
.kauto-rate{ display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px; margin:2px 0 8px; border-radius:11px;
  background:rgba(0,204,255,.06); border:1px solid rgba(0,204,255,.24); }
.kauto-rate label{ font-size:12.5px; font-weight:700; color:var(--text-muted); }
.kauto-rate-in{ display:flex; align-items:center; gap:7px; }
.kauto-rate-in input{ width:76px; text-align:center; padding:8px 10px; border-radius:9px;
  background:var(--surface); border:1px solid var(--border-strong); color:var(--text);
  font-family:'Montserrat',sans-serif; font-weight:700; font-size:14px; }
.kauto-rate-in input:focus{ outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(0,0,0,0.45); }
.kauto-rate-in span{ font-size:12px; font-weight:700; color:var(--text-muted); }

/* ===================================================================
   Konsistenz: einheitlicher Fokus-Ring für alle Eingabefelder
   =================================================================== */
.roster-add input:focus,
.ev-guest-add input:focus,
.poll-opt-input:focus,
.lu-formation select:focus{
  border-color:var(--green) !important;
  box-shadow:0 0 0 3px rgba(0,0,0,0.45);
  outline:none;
}

/* ---- Checklisten: Datum auf der Karte ---- */
.cl-date{ display:inline-flex; align-items:center; gap:6px; margin-top:5px;
  font-size:11.5px; font-weight:600; color:var(--text-muted); }
.cl-date i{ font-size:13px; color:var(--text-faint); }

/* ===================================================================
   Tippspiel: anschauliche Spielkarten
   =================================================================== */
.tipp-list{ gap:11px; }
.tipp-match.tm{
  display:flex; flex-direction:column; gap:10px; padding:13px 14px 12px;
  border-radius:var(--radius-lg); background:var(--surface);
  border:1px solid var(--border); position:relative; transition:border-color .15s;
}
.tipp-match.tm.tipped{ border-color:rgba(0,204,255,.30); }
.tipp-match.tm.islive{ border-color:rgba(251,113,133,.40); background:linear-gradient(180deg, rgba(251,113,133,.05), var(--surface) 40%); }
.tipp-match.tm.locked{ opacity:.96; }

/* Kopfzeile: Status links, Punkte rechts */
.tm-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tm-status{ display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700;
  letter-spacing:.02em; color:var(--text-muted); }
.tm-status i{ font-size:13px; }
.tm-status.upcoming{ color:var(--text-faint); }
.tm-status.done{ color:var(--text-muted); }
.tm-status.done i{ color:#34d399; }
.tm-status.live{ color:#fb7185; font-weight:800; }
.tm-livedot{ width:7px; height:7px; border-radius:50%; background:#fb7185; box-shadow:0 0 0 0 rgba(251,113,133,.6); animation:tmPulse 1.4s infinite; }
@keyframes tmPulse{ 0%{box-shadow:0 0 0 0 rgba(251,113,133,.5);} 70%{box-shadow:0 0 0 6px rgba(251,113,133,0);} 100%{box-shadow:0 0 0 0 rgba(251,113,133,0);} }

/* Punkte-Abzeichen */
.tipp-match.tm .tipp-pts{ display:inline-flex; align-items:center; gap:4px; font-size:10.5px; font-weight:700;
  padding:3px 9px; border-radius:99px; background:var(--surface-secondary); color:var(--text-muted); border:1px solid var(--border); }
.tipp-match.tm .tipp-pts b{ font-size:13px; font-weight:900; }
.tipp-match.tm .tipp-pts.p4{ color:#34d399; border-color:rgba(52,211,153,.4); background:rgba(52,211,153,.1); }
.tipp-match.tm .tipp-pts.p3{ color:#7fd0ff; border-color:rgba(0,204,255,.4); background:rgba(0,204,255,.1); }
.tipp-match.tm .tipp-pts.p2{ color:#e0b93b; border-color:rgba(224,185,59,.4); background:rgba(224,185,59,.1); }
.tipp-match.tm .tipp-pts.p0{ color:var(--text-faint); }
.tipp-match.tm .tipp-pts.live{ border-style:dashed; }
.tipp-match.tm .tipp-pts i{ font-size:11px; }

/* Hauptzeile: Heim | Mitte | Auswärts */
.tm-body{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; }
.tm-side{ display:flex; align-items:center; gap:9px; min-width:0; }
.tm-home{ justify-content:flex-end; text-align:right; }
.tm-away{ justify-content:flex-start; }
.tm-side .tipp-lg{ width:40px; height:40px; }
.tm-name{ font-size:13.5px; font-weight:700; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Mitte: tatsächliches Ergebnis (groß) über dem eigenen Tipp */
.tm-mid{ display:flex; flex-direction:column; align-items:center; gap:3px; flex:0 0 auto; padding:0 4px; }
.tm-actual{ line-height:1; }
.tm-score{ font-family:'Montserrat',sans-serif; font-weight:800; font-size:22px; color:var(--text); letter-spacing:-.01em; }
.tm-score span{ margin:0 2px; color:var(--text-faint); font-weight:600; }
.tm-score.live{ color:#fb7185; }
.tm-guess{ display:inline-flex; align-items:center; gap:4px; }
.tm-inp{ width:38px; height:38px; text-align:center; border-radius:10px; font-family:'Montserrat',sans-serif;
  font-weight:800; font-size:16px; background:var(--surface-secondary); border:1px solid var(--border-strong); color:var(--text); }
.tm-inp::placeholder{ color:var(--text-faint); font-weight:600; }
.tm-inp:focus{ outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(0,204,255,.16); }
.tm-inp:disabled{ opacity:.7; background:var(--surface); }
.tm-colon{ font-weight:800; color:var(--text-faint); }
.tm-guesslabel{ font-size:9.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); }
.tipp-match.tm.tipped .tm-guesslabel{ color:var(--green); }

/* wenn es ein echtes Ergebnis gibt, wird die Tipp-Eingabe kompakter */
.tipp-match.tm.locked .tm-inp{ width:34px; height:32px; font-size:14px; }

/* Fußzeile bei gelaufenen Spielen: eigener Tipp als Chip */
.tm-foot{ display:flex; justify-content:center; padding-top:2px; }
.tm-mytip{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700;
  color:var(--text-muted); background:var(--surface-secondary); border:1px solid var(--border);
  padding:3px 10px; border-radius:99px; }
.tm-mytip i{ font-size:12px; }
.tm-mytip.empty{ color:var(--text-faint); font-style:italic; }

@media (max-width:420px){
  .tm-side .tipp-lg{ width:34px; height:34px; }
  .tm-name{ font-size:12px; }
  .tm-score{ font-size:19px; }
  .tm-inp{ width:34px; height:34px; font-size:15px; }
}

/* ---- Kasse-Automatik: Zeile mit Verwerfen-Knopf ---- */
.kauto-row{ cursor:default; }                 /* Container klickt nicht mehr selbst */
.kauto-pick{ flex:1; display:flex; align-items:center; gap:10px; min-width:0; cursor:pointer; }
.kauto-del{ flex:0 0 auto; width:30px; height:30px; border-radius:8px; display:grid; place-items:center;
  background:transparent; border:1px solid transparent; color:var(--text-faint); cursor:pointer;
  font-size:16px; transition:.12s; }
.kauto-del:hover{ color:#ff8fa0; border-color:rgba(251,113,133,.4); background:rgba(251,113,133,.1); }

/* ===================================================================
   Elfmeterschießen (Minispiel)
   =================================================================== */
.pk-wrap{ display:flex; flex-direction:column; gap:14px; max-width:560px; margin:0 auto; }
.pk-stage{ position:relative; width:100%; border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--border); background:#0b1510; box-shadow:0 6px 16px -8px rgba(0,0,0,.55); }
#pk-canvas{ display:block; width:100%; touch-action:manipulation; cursor:crosshair; }
.pk-overlay{ position:absolute; inset:0; display:none; align-items:center; justify-content:center;
  background:rgba(5,10,16,.55); backdrop-filter:blur(2px); padding:18px; text-align:center; }
.pk-card{ background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-lg);
  padding:20px 18px; max-width:340px; box-shadow:0 12px 30px -12px rgba(0,0,0,.6); }
.pk-card-title{ display:flex; align-items:center; justify-content:center; gap:8px; font-size:16px; font-weight:800; color:var(--text); }
.pk-card-title i{ color:var(--green); font-size:19px; }
.pk-card-text{ font-size:13px; color:var(--text-muted); line-height:1.5; margin:10px 0 16px; }
.pk-play{ display:inline-flex; align-items:center; gap:8px; padding:12px 22px; border:none; border-radius:12px;
  background:#12b6e6; color:var(--on-accent); font-family:inherit; font-size:14.5px; font-weight:800; cursor:pointer;
  transition:filter .15s, transform .1s; }
.pk-play:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.pk-play i{ font-size:18px; }
.pk-flash{ font-family:'Montserrat',sans-serif; font-weight:900; font-size:30px; letter-spacing:-.01em;
  text-shadow:0 3px 14px rgba(0,0,0,.6); animation:pkPop .25s ease; }
@keyframes pkPop{ from{ transform:scale(.7); opacity:0; } to{ transform:scale(1); opacity:1; } }
.pk-over .pk-final{ font-family:'Montserrat',sans-serif; font-weight:900; font-size:44px; color:var(--text); line-height:1; margin:6px 0 2px; }
.pk-over .pk-final span{ font-size:15px; font-weight:700; color:var(--text-muted); }
.pk-final-sub{ font-size:12.5px; color:var(--text-muted); margin-bottom:12px; }
.pk-rankline{ display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--text-muted); margin-bottom:16px; }
.pk-rankline b{ color:var(--text); }
.pk-rank{ font-weight:800; color:var(--green); }
.pk-newbest{ display:inline-flex; align-items:center; gap:6px; color:#e0b93b; font-weight:800; }
.pk-anon{ font-style:italic; color:var(--text-faint); }
.pk-spin{ animation:spin 1s linear infinite; }

/* HUD */
.pk-hud{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 4px; }
.pk-hud:empty{ display:none; }
.pk-hud-item{ display:flex; flex-direction:column; align-items:center; min-width:60px; }
.pk-hud-item small{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-faint); }
.pk-hud-item b{ font-family:'Montserrat',sans-serif; font-size:20px; font-weight:800; color:var(--text); }
.pk-hud-shots{ display:flex; gap:6px; }
.pk-dot{ width:10px; height:10px; border-radius:50%; background:var(--surface-secondary); border:1px solid var(--border-strong); }
.pk-dot.done{ background:#34d399; border-color:#34d399; }
.pk-dot.cur{ background:transparent; border-color:var(--green); box-shadow:0 0 0 2px rgba(0,204,255,.25); }

/* Bestenliste */
.pk-board-wrap{ border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--surface); overflow:hidden; }
.pk-board-head{ display:flex; align-items:center; justify-content:space-between; padding:11px 14px;
  border-bottom:1px solid var(--border); font-size:13px; font-weight:800; color:var(--text); }
.pk-board-head i{ color:#e0b93b; }
.pk-board-head > span{ display:inline-flex; align-items:center; gap:8px; }
.pk-refresh{ width:30px; height:30px; border-radius:8px; border:1px solid var(--border); background:transparent;
  color:var(--text-muted); cursor:pointer; display:grid; place-items:center; }
.pk-refresh:hover{ color:var(--green); border-color:var(--border-strong); }
.pk-board{ padding:6px; display:flex; flex-direction:column; }
.pk-board-empty{ padding:20px; text-align:center; color:var(--text-faint); font-size:13px; }
.pk-lb-row{ display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:10px; }
.pk-lb-row:nth-child(odd){ background:var(--surface-secondary); }
.pk-lb-row.me{ background:rgba(0,204,255,.1); border:1px solid rgba(0,204,255,.28); }
.pk-lb-rank{ flex:0 0 auto; width:28px; text-align:center; font-weight:800; font-size:14px; color:var(--text-muted); }
.pk-lb-name{ flex:1; min-width:0; font-weight:700; font-size:14px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pk-lb-row.me .pk-lb-name{ color:var(--green); }
.pk-lb-score{ flex:0 0 auto; font-family:'Montserrat',sans-serif; font-weight:800; font-size:16px; color:var(--text); }

/* ---- Sponsoren-Verwaltung (Admin) ---- */
.spon-admin{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.spon-hint{ font-size:12.5px; color:var(--text-muted); }
.spon-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; }
.spon-item{ display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:var(--radius);
  background:var(--surface-secondary); border:1px solid var(--border); }
.spon-thumb{ width:46px; height:34px; object-fit:contain; background:#fff; border-radius:6px; padding:3px; flex:0 0 auto; }
.spon-name{ flex:1; min-width:0; font-size:12.5px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.spon-del{ flex:0 0 auto; width:30px; height:30px; border-radius:8px; display:grid; place-items:center;
  background:transparent; border:1px solid var(--border); color:var(--text-muted); cursor:pointer; }
.spon-del:hover{ color:#ff8fa0; border-color:rgba(251,113,133,.4); }

/* ==================================================================
   VEREINSZENTRALE (Neuaufbau) – Präfix hz-
   Modern, kartenbasiert, kalender-inspiriert
   ================================================================== */
#section-overview{ padding-bottom:40px; }

/* ---- Kopfzeile ---- */
.hz-top{ display:flex; align-items:center; gap:13px; margin-bottom:16px; }
.hz-crest{ flex:0 0 auto; width:46px; height:46px; border-radius:13px; overflow:hidden;
  background:var(--surface-secondary); border:1px solid var(--border); display:grid; place-items:center; }
.hz-crest img{ width:100%; height:100%; object-fit:contain; padding:5px; }
.hz-crest-fb{ display:grid; place-items:center; color:var(--green); font-size:22px; }
.hz-top-text{ flex:1; min-width:0; }
.hz-hello{ font-size:20px; font-weight:800; color:var(--text); letter-spacing:-.02em; line-height:1.15; }
.hz-date{ font-size:12px; color:var(--text-muted); margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hz-cal-btn{ flex:0 0 auto; width:42px; height:42px; border-radius:12px; border:1px solid var(--border);
  background:var(--surface); color:var(--text-muted); display:grid; place-items:center; font-size:20px; cursor:pointer; transition:.14s; }
.hz-cal-btn:hover{ border-color:var(--green-mid); color:var(--green); }

/* ---- Form-Streifen ---- */
.hz-form{ display:flex; align-items:center; gap:10px; margin-bottom:14px; padding:0 2px; }
.hz-form-lbl{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); }
.hz-form-lbl i{ font-size:14px; }
.hz-form-pills{ display:flex; gap:5px; }
.hz-form-pill{ width:26px; height:26px; border-radius:8px; display:grid; place-items:center; font-size:12px; font-weight:800; color:#fff; }
.hz-form-pill.w{ background:#34d399; } .hz-form-pill.d{ background:#e0b93b; } .hz-form-pill.l{ background:#fb7185; }

/* ---- Hero-Karte ---- */
.hz-hero{ position:relative; overflow:hidden; border-radius:var(--radius-lg);
  background:linear-gradient(180deg, var(--surface) 0%, var(--surface-secondary) 100%);
  border:1px solid var(--border-strong); padding:18px; margin-bottom:16px;
  box-shadow:0 10px 26px -14px rgba(0,0,0,.6); }
.hz-hero.is-match{ border-color:rgba(0,204,255,.28); }
.hz-hero-glow{ position:absolute; top:-60%; right:-20%; width:70%; height:180%;
  background:radial-gradient(closest-side, rgba(0,204,255,.16), transparent 70%); pointer-events:none; }
.hz-hero.is-match .hz-hero-glow{ opacity:1; } .hz-hero:not(.is-match) .hz-hero-glow{ opacity:.4; }
.hz-hero > *{ position:relative; z-index:1; }
.hz-hero-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.hz-eyebrow{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:800;
  text-transform:uppercase; letter-spacing:.06em; color:var(--green-dark); }
.hz-eyebrow i{ font-size:15px; }
.hz-hero-actions{ display:flex; align-items:center; gap:8px; }
.hz-hero-open{ width:32px; height:32px; border-radius:9px; border:1px solid var(--border); background:transparent;
  color:var(--text-muted); display:grid; place-items:center; font-size:17px; cursor:pointer; transition:.14s; }
.hz-hero-open:hover{ border-color:var(--green-mid); color:var(--green); }
.hz-live{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:9px;
  border:1px solid rgba(251,113,133,.4); background:rgba(251,113,133,.1); color:#ff8fa0; font-size:12.5px; font-weight:700; cursor:pointer; }
.hz-live .live-dot{ width:7px; height:7px; border-radius:50%; background:#fb7185; }
.hz-live.is-live .live-dot{ animation:pulse 1.4s infinite; }

/* Matchup */
.hz-vs{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; padding:6px 0 14px; }
.hz-team{ display:flex; flex-direction:column; align-items:center; gap:9px; min-width:0; }
.hz-badge{ width:62px; height:62px; border-radius:16px; background:var(--surface); border:1px solid var(--border);
  display:grid; place-items:center; overflow:hidden; box-shadow:0 4px 12px -6px rgba(0,0,0,.5); }
.hz-badge-img{ width:100%; height:100%; object-fit:contain; padding:8px; }
.hz-badge-fb{ display:grid; place-items:center; font-size:20px; font-weight:800; color:var(--green); }
.hz-team.is-us .hz-badge{ border-color:rgba(0,204,255,.4); }
.hz-team-name{ font-size:13px; font-weight:700; color:var(--text); text-align:center; line-height:1.25; max-width:120px; }
.hz-vs-mid{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.hz-vs-x{ font-family:'Montserrat',sans-serif; font-size:22px; font-weight:900; color:var(--text-faint); letter-spacing:-.02em; }
.hz-homeaway{ font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; padding:3px 9px; border-radius:20px; }
.hz-homeaway.home{ background:var(--green-light); color:var(--green-dark); }
.hz-homeaway.away{ background:var(--surface-secondary); color:var(--text-muted); }
.hz-evtitle{ display:flex; align-items:center; gap:9px; font-size:18px; font-weight:800; color:var(--text); padding:4px 0 14px; }
.hz-evdot{ width:11px; height:11px; border-radius:50%; flex:0 0 auto; }

/* Countdown */
.hz-countdown{ display:inline-flex; align-items:center; gap:7px; padding:7px 13px; border-radius:10px;
  background:var(--surface-secondary); border:1px solid var(--border); font-size:13px; color:var(--text); margin-bottom:12px; }
.hz-countdown i{ color:var(--green); font-size:16px; }
.hz-countdown .cd-text{ font-weight:800; font-variant-numeric:tabular-nums; }
.hz-countdown .cd-target{ color:var(--text-faint); font-size:12px; }

/* Hero-Chips */
.hz-hchips{ display:flex; flex-wrap:wrap; gap:7px; margin-bottom:2px; }
.hz-hchip{ display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:9px;
  background:var(--surface-secondary); border:1px solid var(--border); font-size:12.5px; color:var(--text-muted); }
.hz-hchip i{ font-size:15px; color:var(--text-faint); }
.hz-hchip.accent{ background:var(--green-light); border-color:rgba(0,204,255,.3); color:var(--green-dark); }
.hz-hchip.accent i{ color:var(--green); }

/* RSVP im Hero */
.hz-rsvp{ margin-top:14px; padding-top:14px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:11px; }
.hz-rsvp-sums{ display:flex; gap:8px; }
.hz-sum{ display:inline-flex; align-items:center; gap:5px; padding:5px 11px; border-radius:9px; font-size:13px; font-weight:800; background:var(--surface-secondary); }
.hz-sum i{ font-size:14px; }
.hz-sum.yes{ color:#34d399; } .hz-sum.no{ color:#fb7185; } .hz-sum.maybe{ color:#e0b93b; } .hz-sum.open{ color:var(--text-faint); }
.hz-deadline{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); }
.hz-deadline.locked{ color:#fb7185; }
.hz-staff{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); }
.hz-staff i{ color:var(--green); }
.hz-rsvp-actions{ display:flex; flex-wrap:wrap; gap:8px; }
.hz-qr-btns{ display:flex; gap:8px; flex:1; }
.hz-qr-btn{ flex:1; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:11px; border-radius:11px;
  border:1px solid var(--border); background:var(--surface-secondary); color:var(--text-muted); font-family:inherit; font-size:13px; font-weight:700; cursor:pointer; transition:.14s; }
.hz-qr-btn i{ font-size:16px; }
.hz-qr-btn.yes.on{ background:#34d399; border-color:#34d399; color:#06251a; }
.hz-qr-btn.no.on{ background:#fb7185; border-color:#fb7185; color:#2a0910; }
.hz-qr-btn.maybe.on{ background:#e0b93b; border-color:#e0b93b; color:#2a2205; }
.hz-qr-btn:not(.on):hover{ border-color:var(--border-strong); color:var(--text); }
.hz-mystatus{ display:inline-flex; align-items:center; gap:6px; padding:9px 13px; border-radius:10px; font-size:13px; font-weight:700; background:var(--surface-secondary); }
.hz-mystatus.yes{ color:#34d399; } .hz-mystatus.no{ color:#fb7185; } .hz-mystatus.maybe{ color:#e0b93b; } .hz-mystatus.open{ color:var(--text-faint); }
.hz-btn{ display:inline-flex; align-items:center; gap:7px; padding:10px 15px; border-radius:11px; font-family:inherit; font-size:13px; font-weight:700; cursor:pointer; border:1px solid var(--border); }
.hz-btn.ghost{ background:var(--surface-secondary); color:var(--text); }
.hz-btn.ghost:hover{ border-color:var(--green-mid); color:var(--green); }

/* Hero leer */
.hz-hero-empty{ display:flex; align-items:center; gap:14px; }
.hz-hero-empty-ico{ width:50px; height:50px; border-radius:14px; background:var(--surface-secondary); display:grid; place-items:center; font-size:24px; color:var(--text-faint); }
.hz-hero-empty-txt{ display:flex; flex-direction:column; gap:2px; }
.hz-hero-empty-txt b{ font-size:15px; color:var(--text); }
.hz-hero-empty-txt span{ font-size:12.5px; color:var(--text-muted); }

/* ---- Persönliche Chip-Reihe ---- */
.hz-chips{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin-bottom:16px; }
.hz-chips:empty{ display:none; }
.hz-chip{ display:flex; align-items:center; gap:11px; padding:13px 14px; border-radius:var(--radius-lg);
  background:var(--surface); border:1px solid var(--border); cursor:pointer; text-align:left; transition:.14s; }
.hz-chip:hover{ border-color:var(--border-strong); transform:translateY(-1px); }
.hz-chip-ico{ flex:0 0 auto; width:38px; height:38px; border-radius:11px; display:grid; place-items:center; font-size:19px;
  background:var(--surface-secondary); color:var(--text-muted); }
.hz-chip.accent .hz-chip-ico{ background:var(--green-light); color:var(--green); }
.hz-chip.owe .hz-chip-ico{ background:rgba(251,113,133,.14); color:#fb7185; }
.hz-chip.credit .hz-chip-ico{ background:rgba(52,211,153,.14); color:#34d399; }
.hz-chip-txt{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.hz-chip-lbl{ font-size:13px; font-weight:700; color:var(--text); }
.hz-chip-val{ font-size:11.5px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hz-chip.owe .hz-chip-val{ color:#ff8fa0; font-weight:700; }
.hz-chip.credit .hz-chip-val{ color:#34d399; font-weight:700; }

/* ---- Kachel-Grid ---- */
.hz-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.hz-card{ border-radius:var(--radius-lg); background:var(--surface); border:1px solid var(--border); overflow:hidden; }
.hz-card:empty{ display:none; }
.hz-card-trainings{ grid-column:1 / -1; }
.hz-card-matches{ grid-column:1 / -1; }
.hz-card-head{ display:flex; align-items:center; gap:8px; padding:13px 15px 9px; font-size:13px; font-weight:800; color:var(--text); }
.hz-card-head i{ color:var(--green); font-size:16px; }
.hz-card-body{ padding:4px 10px 12px; }
.hz-empty{ padding:14px; text-align:center; font-size:12.5px; color:var(--text-faint); }

/* Überblick-Statistik */
.hz-stats-grid{ display:flex; gap:8px; padding:6px 12px 14px; }
.hz-stat{ flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 6px; border-radius:11px; background:var(--surface-secondary); }
.hz-stat-val{ font-family:'Montserrat',sans-serif; font-size:22px; font-weight:800; color:var(--text); line-height:1; }
.hz-stat-lbl{ font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); }

/* Mini-Zeilen (Heute / Kommende Spiele) */
.hz-card .mini-list{ display:flex; flex-direction:column; }
.hz-card .mini-row{ display:flex; align-items:center; gap:11px; padding:9px 8px; border-radius:10px; cursor:pointer; transition:.12s; }
.hz-card .mini-row:hover{ background:var(--surface-secondary); }
.hz-card .mini-row-dot{ flex:0 0 auto; width:9px; height:9px; border-radius:50%; }
.hz-card .mini-row-main{ flex:1; min-width:0; }
.hz-card .mini-row-title{ font-size:13.5px; font-weight:700; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hz-card .mini-row-sub{ font-size:11.5px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hz-card .mini-row-time{ flex:0 0 auto; font-size:12.5px; font-weight:700; color:var(--text-muted); font-variant-numeric:tabular-nums; }

/* Trainings-Kachel */
.hz-card-trainings .hub-tr-list{ display:flex; flex-direction:column; gap:8px; padding:4px 12px 12px; }
.hz-card-trainings .hub-tr{ display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:11px; background:var(--surface-secondary); border:1px solid var(--border); }
.hz-card-trainings .hub-tr-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.hz-card-trainings .hub-tr-title{ display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:700; color:var(--text); }
.hz-card-trainings .hub-tr-title i{ color:var(--green); }
.hz-card-trainings .hub-tr-meta{ font-size:11.5px; color:var(--text-muted); }
.hz-card-trainings .hub-tr-btns{ display:flex; gap:6px; }
.hz-card-trainings .hub-tr-btn{ width:34px; height:34px; border-radius:9px; border:1px solid var(--border); background:var(--surface); color:var(--text-muted); display:grid; place-items:center; font-size:16px; cursor:pointer; }
.hz-card-trainings .hub-tr-btn.yes.on{ background:#34d399; border-color:#34d399; color:#06251a; }
.hz-card-trainings .hub-tr-btn.no.on{ background:#fb7185; border-color:#fb7185; color:#2a0910; }
.hz-card-trainings .hub-tr-status{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:var(--text-muted); }
.hz-card-trainings .hub-tr-open{ display:inline-flex; align-items:center; gap:4px; padding:6px 9px; border-radius:9px; border:1px solid var(--border); background:var(--surface); color:var(--text-muted); cursor:pointer; font-size:12px; }
.hz-card-trainings .hub-sum.yes{ color:#34d399; font-weight:800; }

@media (max-width:520px){
  .hz-grid{ grid-template-columns:1fr; }
  .hz-hero{ padding:15px; }
  .hz-badge{ width:54px; height:54px; }
  .hz-vs-x{ font-size:19px; }
}

/* Live-Button Zustände (Ticker) */
.hz-live.is-live{ border-color:rgba(251,113,133,.6); background:rgba(251,113,133,.16); color:#ff8fa0; }
.hz-live.is-ended{ border-color:var(--border); background:var(--surface-secondary); color:var(--text-muted); }
.hz-live.is-ended .live-dot{ background:var(--text-faint); }

/* ---- Hero einklappbar ---- */
.hz-hero{ padding:0; }                     /* Padding wandert in bar/detail */
.hz-hero-bar{ display:flex; align-items:center; gap:12px; width:100%; padding:16px 18px;
  background:transparent; border:none; cursor:pointer; text-align:left; font-family:inherit; position:relative; z-index:1; }
.hz-hero-bar-ico{ flex:0 0 auto; width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  background:var(--green-light); color:var(--green); font-size:19px; }
.hz-hero-bar-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.hz-hero-bar-eyebrow{ font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--green-dark); }
.hz-hero-bar-title{ font-size:15px; font-weight:800; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hz-hero-bar-when{ flex:0 0 auto; font-size:12px; font-weight:700; color:var(--text-muted); white-space:nowrap; }
.hz-hero-chev{ flex:0 0 auto; font-size:18px; color:var(--text-faint); transition:transform .22s; }
.hz-hero.is-collapsed .hz-hero-chev{ transform:rotate(-90deg); }
.hz-hero-detail{ padding:0 18px 18px; overflow:hidden; }
.hz-hero.is-collapsed .hz-hero-detail{ display:none; }
.hz-hero-detail .hz-hero-top{ margin-top:2px; }
@media (max-width:520px){
  .hz-hero-bar{ padding:14px 15px; }
  .hz-hero-bar-when{ display:none; }        /* auf Handy: Zeit im Detail, Kopf bleibt schlank */
  .hz-hero-detail{ padding:0 15px 15px; }
}

/* Bei Spielern ist die Überblick-Kachel ausgeblendet -> "Heute" füllt die Zeile */
body.role-spieler .hz-card-today{ grid-column:1 / -1; }

/* === "Spieler-Accounts": einklappbarer Bereich (weniger sperrig im Admin-Panel) === */
.acc-collapsible .acc-box-head{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:none; border:none; padding:0; margin:0 0 14px; cursor:pointer; text-align:left;
  font-family:inherit;
}
.acc-collapsible .acc-box-head h3{ margin:0; }
.acc-collapsible .acc-box-chev{
  color:var(--text-dim,#8a97a8); font-size:18px; flex:0 0 auto;
  transition:transform .18s ease;
}
.acc-collapsible.is-collapsed .acc-box-chev{ transform:rotate(-90deg); }
.acc-collapsible .guide-sub-title{ margin-top:-8px; }
.acc-collapsible.is-collapsed .guide-sub-title{ display:none; }
.acc-collapsible .acc-box-body{
  overflow:hidden;
}
.acc-collapsible.is-collapsed .acc-box-body{ display:none; }

/* ---- Automatische Instagram-Posts (Admin-Panel) ----
   Bewusst eigene Klassen statt .field/.btn-load-table: Letztere werden nur
   im Grafik-Bereich nachgeladen bzw. erzwingen per !important ein Label-
   Format, das hier unpassend war (abgeschnittener Text, unformatierter
   Button). */
.auto-intro{ font-size:12.5px; line-height:1.6; color:var(--text-muted); margin:2px 0 16px; }
.auto-intro strong{ color:var(--text); }
.auto-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; align-items:end; }
@media(max-width:700px){ .auto-grid{ grid-template-columns:1fr; } }
.auto-check{ display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:var(--radius);
  background:var(--surface-secondary); border:1px solid var(--border); cursor:pointer;
  font-size:13px; font-weight:600; color:var(--text); transition:all .12s; }
.auto-check input{ width:17px; height:17px; accent-color:var(--green); cursor:pointer; flex:0 0 auto; }
.auto-check:hover{ border-color:var(--green); }
.auto-field{ display:flex; flex-direction:column; }
.auto-field label{ font-size:11px; font-weight:600; letter-spacing:.4px; text-transform:uppercase;
  color:var(--text-faint); margin-bottom:6px; }
.auto-field input{ padding:9px 13px; border-radius:var(--radius); background:var(--bg);
  border:1px solid var(--border); color:var(--text); font-family:inherit; font-size:13px; transition:all .12s; }
.auto-field select{ padding:9px 13px; border-radius:var(--radius); background:var(--bg);
  border:1px solid var(--border); color:var(--text); font-family:inherit; font-size:13px; cursor:pointer; transition:all .12s; }
.auto-field select:focus{ outline:none; border-color:var(--green); }
.auto-field input:focus{ outline:none; border-color:var(--green); }
.auto-actions{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:18px; }
.auto-save-btn{ display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:9px 16px; border-radius:var(--radius); cursor:pointer; background:var(--green); color:var(--on-accent);
  border:1px solid transparent; font-family:inherit; font-size:13px; font-weight:600; transition:all .12s; }
.auto-save-btn:hover{ background:var(--green-dark); }
.auto-save-btn i{ font-size:15px; }
.auto-hint{ font-size:12.5px; color:var(--text-muted); }
.auto-subhead{ margin:22px 0 8px; font-size:11px; font-weight:600; letter-spacing:.5px;
  text-transform:uppercase; color:var(--text-faint); }
.auto-queue{ font-size:12.5px; color:var(--text-muted); line-height:1.9; }
/* Warteschlange mit Vorschaubildern */
.auto-queue .aq-item{ display:flex; align-items:center; gap:13px; padding:10px 0; border-bottom:1px solid var(--border); }
.auto-queue .aq-item:last-child{ border-bottom:none; }
.aq-thumb{ flex:0 0 auto; width:54px; height:54px; object-fit:cover; object-position:center top;
  border-radius:var(--radius); border:1px solid var(--border); background:var(--surface-secondary); }
.aq-thumb.is-story{ width:38px; height:67px; }   /* hochkant = Story */
.aq-thumb-empty{ display:grid; place-items:center; color:var(--green); font-size:20px; }
.aq-main{ flex:1; min-width:0; line-height:1.5; }
.aq-top{ font-size:13px; font-weight:600; color:var(--text); display:flex; align-items:center; gap:8px; }
.aq-when{ font-size:12px; color:var(--text-muted); }
.aq-st{ font-size:12px; }
.aq-badge{ font-size:11px; font-weight:600; letter-spacing:.3px; text-transform:uppercase;
  padding:2px 7px; border-radius:999px; background:rgba(0,204,255,.15); color:var(--green); border:1px solid rgba(0,204,255,.4); }
.aq-badge-post{ background:var(--surface-secondary); color:var(--text-muted); border-color:var(--border); }
.aq-ok{ color:var(--green); } .aq-err{ color:#ff6b6b; } .aq-wait{ color:var(--text-muted); }
.aq-retrying{ color:#e0b93b; }
.aq-ok i, .aq-err i, .aq-wait i, .aq-retrying i{ font-size:14px; vertical-align:-2px; margin-right:3px; }
.aq-errmsg{ display:block; font-size:11.5px; color:var(--text-faint); line-height:1.45; margin-top:2px; }
.aq-retry{ flex:0 0 auto; width:30px; height:30px; border-radius:var(--radius); cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--green); display:grid; place-items:center; transition:all .12s; }
.aq-retry:hover{ border-color:var(--green); background:var(--green-light); }
.aq-retry:disabled{ opacity:.45; cursor:not-allowed; }
.aq-now{ flex:0 0 auto; width:30px; height:30px; border-radius:var(--radius); cursor:pointer;
  background:var(--green); border:1px solid var(--green); color:var(--on-accent); display:grid; place-items:center; transition:all .12s; }
.aq-now:hover{ background:var(--green-dark); }
.aq-now:disabled{ opacity:.45; cursor:not-allowed; }
.auto-insights-btn{ display:inline-flex; align-items:center; gap:7px; margin:0 0 12px; padding:8px 14px;
  border-radius:var(--radius); cursor:pointer; background:var(--surface-secondary); border:1px solid var(--border);
  color:var(--text-muted); font-family:inherit; font-size:12.5px; font-weight:600; transition:all .12s; }
.auto-insights-btn:hover{ border-color:var(--green); color:var(--text); }
.auto-insights-btn:disabled{ opacity:.6; cursor:default; }
.aq-stats{ display:block; font-size:11.5px; color:var(--text-muted); line-height:1.5; margin-top:2px; }
.aq-stats b{ color:var(--text); font-weight:600; }
.aq-stats a{ color:var(--green); text-decoration:none; }
.aq-stats a:hover{ text-decoration:underline; }
.aq-stats-none{ color:var(--text-faint); font-style:italic; }
.aq-del{ flex:0 0 auto; width:30px; height:30px; border-radius:var(--radius); cursor:pointer;
  background:var(--surface-secondary); border:1px solid var(--border); color:var(--text-muted); display:grid; place-items:center; transition:all .12s; }
.aq-del:hover{ color:#ff6b6b; border-color:#ff6b6b; }
.auto-check em{ font-style:normal; font-weight:400; color:var(--text-faint); font-size:12px; }
