
  *, *::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 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
    margin-bottom: 12px;
  }

  .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,204,255,0.16);
  }
  .cmd-card.active {
    border-color: var(--green);
    background: var(--green-light);
  }

  .cmd-icon {
    width: 34px; height: 34px;
    background: var(--green-light);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--green-dark);
    font-size: 17px;
    margin-bottom: 10px;
  }
  .cmd-card.active .cmd-icon { background: var(--surface); }
  .cmd-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
  .cmd-desc { font-size: 11px; 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 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,204,255,0.18);
    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,204,255,0.18); }
  .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: linear-gradient(135deg, #38d6ff 0%, #00a6dd 100%);
    --accent-glow: 0 10px 30px -10px rgba(0,204,255,0.55);

    --bg: #080b11;
    --bg-grad: radial-gradient(1100px 620px at 82% -8%, rgba(0,204,255,0.08), transparent 62%),
               radial-gradient(900px 500px at -5% 110%, rgba(0,204,255,0.05), transparent 60%);
    --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; }
  .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,204,255,0.45), 0 0 22px -4px rgba(0,204,255,0.55);
  }
  .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,204,255,0.8);
  }
  .status-dot { position: relative; box-shadow: 0 0 0 3px rgba(0,204,255,0.14); }

  /* ---------- 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,204,255,0.5);
  }
  .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,204,255,0.55);
  }
  .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,204,255,0.6);
  }

  /* ---------- 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,204,255,0.7);
  }
  .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,204,255,0.65);
    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,204,255,0.8);
    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,204,255,0.25); }

  /* ---------- 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: drop-shadow(0 0 8px rgba(0,204,255,0.6)); }

  /* ---------- 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,204,255,0.05);
    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,204,255,0.5), 0 0 34px -6px rgba(0,204,255,0.7);
    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,204,255,0.18); }
  .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,204,255,0.15), 0 0 28px -8px rgba(0,204,255,0.6);
  }
  .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,204,255,0.5);
  }
  .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-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 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow);
  }
  .widget-wide { grid-column: 1 / -1; }
  .widget-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  .widget-head i { color: var(--green); font-size: 14px; margin-right: 4px; }
  .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: 13px; padding: 8px 0; }

  /* 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(3, 1fr); gap: 10px; }
  .mini-stat { text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 6px; }
  .mini-stat-val { display: block; font-size: 24px; font-weight: 600; color: var(--text); line-height: 1.1; }
  .mini-stat-lbl { display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 4px; }

  /* 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: 7px 12px; border-radius: var(--radius);
    background: var(--surface-secondary); color: var(--text);
    border: 1px solid var(--border); cursor: pointer;
    font-size: 12.5px; font-weight: 600;
  }
  .cal-tool-btn:hover { border-color: var(--green); color: var(--green); }
  .cal-tool-btn i { font-size: 15px; }

  .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,204,255,0.16); }
  .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,204,255,0.16); }
  .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;
    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;
    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; }

    .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(4,1fr); gap:12px; margin-bottom:18px; }
.kasse-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:14px 16px; }
.kasse-card-label{ font-size:12px; color:var(--text-muted); margin-bottom:4px; }
.kasse-card-val{ font-size:22px; font-weight:800; color:var(--text); font-variant-numeric:tabular-nums; }

.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:11px 14px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); margin-bottom:8px; }
.kasse-row-main{ flex:1; min-width:0; cursor:pointer; }
.kasse-row-name{ font-weight:700; color:var(--text); font-size:14px; }
.kasse-row-sub{ font-size:11.5px; color:var(--text-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kasse-bal{ font-weight:800; font-size:15px; font-variant-numeric:tabular-nums; min-width:90px; text-align:right; }
.kasse-bal.neg{ color:var(--cal-reminder, #ff6b6b); }
.kasse-bal.pos{ color:var(--green); }
.kasse-bal.zero{ color:var(--text-faint); }
.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:var(--radius); background:var(--surface); margin-bottom:7px; }
.kasse-log-date{ font-size:12px; color:var(--text-faint); min-width:78px; font-variant-numeric:tabular-nums; }
.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); }
.kasse-log-amt{ font-weight:800; font-variant-numeric:tabular-nums; min-width:78px; text-align:right; }
.kasse-log-amt.fine{ color:var(--cal-reminder, #ff6b6b); }
.kasse-log-amt.pay{ color:var(--green); }

@media (max-width:768px){
  .kasse-cards{ grid-template-columns:repeat(2,1fr); }
  .kasse-toolbar{ flex-direction:column; align-items:stretch; }
  .kasse-actions{ justify-content:stretch; }
  .kasse-btn{ flex:1; justify-content:center; }
  .kasse-bal{ min-width:74px; font-size:14px; }
}


/* ---- Mannschaftskasse: Rollen/Kontostand-Ergänzungen ---- */
.kasse-cards{ grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }
.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:6px; font-size:12.5px; color:var(--text-muted);
  background:var(--surface-secondary); border:1px solid var(--border); border-radius:var(--radius); padding:8px 11px; margin-bottom:12px; }
.rsvp-deadline-note.locked{ color:var(--cal-reminder,#ff6b6b); border-color:var(--cal-reminder,#ff6b6b); }
.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:600; }
.rsvp-status-btn i{ font-size:16px; }
.rsvp-status-btn.yes.active{   background:var(--green-light); border-color:var(--green); color:var(--green-dark); }
.rsvp-status-btn.no.active{    background:rgba(255,107,107,.15); border-color:var(--cal-reminder,#ff6b6b); color:var(--cal-reminder,#ff6b6b); }
.rsvp-status-btn.maybe.active{ background:rgba(245,197,66,.15); border-color:var(--cal-event,#f5c542); color:var(--cal-event,#f5c542); }
.rsvp-summary{ display:flex; gap:8px; flex-wrap:wrap; margin:14px 0 8px; }
.rsvp-sum{ font-size:13px; font-weight:700; padding:3px 10px; border-radius:999px; background:var(--surface-secondary); border:1px solid var(--border); }
.rsvp-sum.yes{ color:var(--green); } .rsvp-sum.no{ color:var(--cal-reminder,#ff6b6b); }
.rsvp-sum.maybe{ color:var(--cal-event,#f5c542); } .rsvp-sum.open{ color:var(--text-faint); }
.rsvp-roster{ display:flex; flex-direction:column; gap:5px; max-height:240px; overflow-y:auto; }
.rsvp-row{ display:flex; align-items:center; gap:8px; padding:7px 10px; border:1px solid var(--border);
  border-radius:var(--radius); background:var(--surface); }
.rsvp-name{ font-weight:600; font-size:13px; color:var(--text); min-width:96px; }
.rsvp-badge{ font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; }
.rsvp-badge.yes{ color:var(--green); background:var(--green-light); }
.rsvp-badge.no{ color:var(--cal-reminder,#ff6b6b); background:rgba(255,107,107,.13); }
.rsvp-badge.maybe{ color:var(--cal-event,#f5c542); background:rgba(245,197,66,.13); }
.rsvp-badge.open{ color:var(--text-faint); background:var(--surface-secondary); }
.rsvp-reason{ font-size:12px; color:var(--text-muted); font-style:italic; }
#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; }
#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:6px; margin-top:6px; }
.acc-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 13px;
  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); }
.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); 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:linear-gradient(180deg,#8af0ff,#00ccff);
  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:linear-gradient(180deg,#8af0ff,#00ccff); }
.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);
  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:drop-shadow(0 0 6px rgba(0,204,255,.5)); }
  .bottom-nav-fab{
    flex:0 0 auto; width:58px; height:58px; margin-top:-20px; border-radius:50%; border:3px solid var(--bg,#0f1620);
    background:linear-gradient(160deg,#3ae6ff,#00ccff); color:#04222e; font-size:27px; cursor:pointer;
    display:flex; align-items:center; justify-content:center; box-shadow:0 6px 20px rgba(0,204,255,.5);
    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; justify-content:space-between; gap:14px; margin:2px 0 18px; }
.hub-hello{ font-family:'Montserrat',sans-serif; font-weight:800; font-size:26px; 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:13px; font-weight:600; margin-top:3px; }
.hub-club i{ color:var(--green); }
.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,linear-gradient(135deg,#38d6ff,#00a6dd)); border:none; box-shadow:var(--accent-glow,0 10px 30px -10px rgba(0,204,255,.55)); }
.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:'JetBrains Mono',monospace; font-weight:700; 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(--green-dark); border-color:rgba(0,204,255,.32); background:var(--green-light); }
.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,linear-gradient(135deg,#38d6ff,#00a6dd)); color:var(--on-accent); box-shadow:var(--accent-glow,0 10px 30px -12px rgba(0,204,255,.6)); }
.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:40px; height:40px; flex:0 0 auto; border-radius:11px; display:grid; place-items:center; font-size:20px; color:var(--green-dark); background:var(--green-light); }
.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-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); transition:border-color .15s, background .15s; }
.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-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,linear-gradient(135deg,#38d6ff,#00a6dd)); 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,linear-gradient(135deg,#38d6ff,#00a6dd)); }
.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,linear-gradient(135deg,#38d6ff,#00a6dd)); 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,204,255,.16);
}

/* 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; }
.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; 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; }
