/* ═══════════════════════════════════════════
   TRAINER-APP – Design System
   Mobile First, iPhone-optimiert
═══════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────── */
:root {
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  --orange:      #ea580c;
  --orange-light: #fff7ed;
  --red:         #dc2626;
  --red-light:   #fef2f2;
  --blue:        #2563eb;
  --blue-light:  #eff6ff;
  --yellow:      #d97706;
  --yellow-light:#fffbeb;

  --white: #ffffff;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 2px 8px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --header-h: 56px;
  --nav-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--gray-900);
  min-height: 100dvh;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── App Shell ──────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Header ─────────────────────────────── */
#app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--safe-top) + 10px) 16px 10px;
  background: var(--green-800);
  color: var(--white);
  min-height: var(--header-h);
  box-shadow: var(--shadow);
}
#page-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
  transition: background .15s;
}
.icon-btn:hover, .icon-btn:active { background: rgba(255,255,255,.15); }

/* ── Main Content ───────────────────────── */
#main-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
}

/* ── Bottom Nav ─────────────────────────── */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px;
  color: var(--gray-400);
  font-size: 0.65rem;
  font-weight: 500;
  transition: color .15s;
  min-height: 56px;
}
.nav-btn.active { color: var(--green-700); }
.nav-icon { font-size: 1.35rem; line-height: 1; }
.nav-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.01em; }

/* ── Page Container ─────────────────────── */
.page {
  padding: 16px;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Cards ──────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card + .card { margin-top: 12px; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--gray-100);
}
.card-header h2 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-body { padding: 12px 16px; }

/* ── Section Title ──────────────────────── */
.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 20px 0 8px;
}

/* ── List Items ─────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: background .1s;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--gray-50); }

.list-item-main { flex: 1; min-width: 0; }
.list-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item-sub {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 1px;
}
.list-item-action {
  color: var(--gray-400);
  font-size: 1.1rem;
  padding: 4px;
}

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity .15s, transform .1s;
  min-height: 48px;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--green-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-800); }
.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger {
  background: var(--red-light);
  color: var(--red);
}
.btn-full { width: 100%; }
.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
  min-height: 36px;
}

/* ── FAB ────────────────────────────────── */
.fab {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  right: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(22,101,52,.4);
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.fab:active { transform: scale(0.94); box-shadow: 0 2px 8px rgba(22,101,52,.3); }

/* ── Forms ──────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .15s;
  min-height: 48px;
}
.form-control:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.form-control.error { border-color: var(--red); }
.form-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 4px;
}
.form-error {
  font-size: 0.75rem;
  color: var(--red);
  margin-top: 4px;
}

/* ── Attendance Buttons (core UX) ───────── */
.attendance-grid {
  display: grid;
  gap: 12px;
}
.attendance-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.attendance-row:last-child { border-bottom: none; }
.attendance-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.92rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attendance-number {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-right: 2px;
}
.attendance-chips {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.chip {
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .1s;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}
.chip-da    { background: var(--gray-100); color: var(--gray-500); border-color: var(--gray-200); }
.chip-da.active    { background: var(--green-100); color: var(--green-800); border-color: var(--green-600); }
.chip-ent   { background: var(--gray-100); color: var(--gray-500); border-color: var(--gray-200); }
.chip-ent.active   { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.chip-unent { background: var(--gray-100); color: var(--gray-500); border-color: var(--gray-200); }
.chip-unent.active { background: var(--orange-light); color: var(--orange); border-color: var(--orange); }
.chip-krank { background: var(--gray-100); color: var(--gray-500); border-color: var(--gray-200); }
.chip-krank.active { background: var(--red-light); color: var(--red); border-color: var(--red); }
.chip-spaet { background: var(--gray-100); color: var(--gray-500); border-color: var(--gray-200); }
.chip-spaet.active { background: var(--yellow-light); color: var(--yellow); border-color: var(--yellow); }

/* ── Badges ─────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-green  { background: var(--green-100);  color: var(--green-800); }
.badge-gray   { background: var(--gray-200);   color: var(--gray-600); }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-red    { background: var(--red-light);  color: var(--red); }

/* ── Empty State ────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.empty-state-sub { font-size: 0.85rem; }

/* ── Modal ──────────────────────────────── */
#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: flex-end;
  padding: 0;
}
@media (min-width: 600px) {
  #modal-overlay { align-items: center; padding: 24px; }
}
#modal-box {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-bottom);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 600px) {
  #modal-box {
    border-radius: var(--radius-xl);
    max-width: 480px;
    margin: auto;
    max-height: 80dvh;
    padding-bottom: 0;
  }
}
#modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
#modal-title { font-size: 1.1rem; font-weight: 700; }
#modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
}
#modal-body { padding: 16px 20px; flex: 1; overflow-y: auto; }
#modal-footer {
  padding: 12px 20px 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}
#modal-footer:empty { display: none; }

/* ── Toast ──────────────────────────────── */
#toast {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--gray-900);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 1;
  transition: opacity .3s;
}
#toast.hidden { opacity: 0; pointer-events: none; }

/* ── Utility ────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-400); font-size: 0.82rem; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.flex  { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-1 { flex: 1; }

/* ── Stats Row ──────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.stat-box {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.65rem;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* ── Dashboard Tiles ────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.dash-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .15s;
}
.dash-tile:active { box-shadow: var(--shadow); }
.dash-tile-icon { font-size: 1.5rem; margin-bottom: 6px; }
.dash-tile-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}
.dash-tile-lbl {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 3px;
}

/* ── Training Date Badge ────────────────── */
.training-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
}
.training-summary {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.ts-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
}
.ts-da   { background: var(--green-100);  color: var(--green-800); }
.ts-ent  { background: var(--blue-light); color: var(--blue); }
.ts-unent{ background: var(--orange-light); color: var(--orange); }
.ts-krank{ background: var(--red-light);  color: var(--red); }
.ts-spaet{ background: var(--yellow-light); color: var(--yellow); }
.ts-espaet{ background: var(--orange-light); color: var(--orange); }

/* ── Player Avatar ──────────────────────── */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar-inactive {
  background: var(--gray-200);
  color: var(--gray-500);
}

/* ── Remark Buttons ─────────────────────── */
.remark-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.remark-btn {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-500);
  cursor: pointer;
}
.remark-btn.active-pos { background: var(--green-100); color: var(--green-800); border-color: var(--green-600); }
.remark-btn.active-crit { background: var(--red-light); color: var(--red); border-color: var(--red); }

/* ── Desktop Layout ─────────────────────── */
@media (min-width: 768px) {
  #app { flex-direction: row; }

  #app-header {
    display: none;
  }

  #bottom-nav {
    position: fixed;
    top: 0; bottom: 0;
    left: 0;
    width: 200px;
    flex-direction: column;
    border-top: none;
    border-right: 1px solid var(--gray-200);
    padding: 0;
    box-shadow: none;
    justify-content: flex-start;
    padding-top: 24px;
    background: var(--white);
  }

  .nav-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: 48px;
    border-radius: var(--radius-sm);
    margin: 2px 8px;
  }
  .nav-btn.active {
    background: var(--green-50);
    color: var(--green-800);
  }
  .nav-icon { font-size: 1.1rem; }
  .nav-label { font-size: 0.88rem; font-weight: 600; }

  /* Desktop header inside main */
  #main-content {
    margin-left: 200px;
    padding-bottom: 0;
  }

  /* Desktop top bar (replaces mobile header) */
  #main-content::before {
    content: '';
    display: block;
    height: 56px;
    background: var(--green-800);
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .page { padding: 24px 32px; max-width: 780px; }

  .fab { right: 32px; bottom: 32px; }

  #modal-overlay { align-items: center; padding: 24px; }
  #modal-box { border-radius: var(--radius-xl); max-width: 480px; margin: auto; }
}

/* Desktop nav logo area */
@media (min-width: 768px) {
  #bottom-nav::before {
    content: '⚽ Trainer-App';
    display: block;
    padding: 16px 20px 20px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--green-800);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 8px;
    width: 100%;
    text-align: left;
  }
}

/* ── Desktop Page Header ────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
}

/* ── Inline mobile page title (always shown on mobile) ── */
@media (max-width: 767px) {
  .page-header { margin-top: 4px; }
}

/* ═══════════════════════════════════════════
   ERGAENZUNGEN v2
═══════════════════════════════════════════ */

/* ── Stats Table ─────────────────────────── */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.stats-table th {
  background: var(--green-800);
  color: var(--white);
  padding: 9px 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  border-bottom: 2px solid var(--green-700);
}
.stats-table th:first-child { text-align: left; }
.stats-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.stats-table td:first-child { font-size: 0.88rem; }
.stats-table tbody tr:last-child td { border-bottom: none; }
.stats-table tbody tr:hover { background: var(--gray-50); }
.stats-table tbody tr:nth-child(even) { background: var(--gray-50); }
.stats-table tbody tr:nth-child(even):hover { background: var(--gray-100); }

/* ── Game Player Row ────────────────────── */
.game-player-row {
  background: var(--white);
}
.game-player-row:last-child > div:last-child { display: none; }

/* ── Squad Chips ─────────────────────────── */
.squad-chip {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-500);
  cursor: pointer;
  transition: all .1s;
  min-height: 32px;
}
.squad-chip:hover { background: var(--gray-100); }

/* ── Playtime Chips ─────────────────────── */
.playtime-chip {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-500);
  cursor: pointer;
  transition: all .1s;
  min-height: 30px;
}
.playtime-chip.pt-active {
  background: var(--green-100);
  color: var(--green-800);
  border-color: var(--green-600);
}

/* ── Counter Button ─────────────────────── */
.counter-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  transition: background .1s;
}
.counter-btn:hover { background: var(--gray-200); }

/* ── Tab Buttons (for modal) ────────────── */
.tab-btn { transition: background .15s, color .15s; }

/* ── Desktop Table Improvements ─────────── */
@media (min-width: 768px) {
  .stats-table { font-size: 0.88rem; }
  .stats-table th, .stats-table td { padding: 10px 14px; }
}

/* ═══════════════════════════════════════════
   LIVE-MODUS & PLAYER-PICKER  v4
═══════════════════════════════════════════ */

/* Live Action Buttons */
.live-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
  min-height: 80px;
}
.live-action-btn:active { transform: scale(0.95); box-shadow: var(--shadow); }

/* Spieler-Auswahl-Grid (Tor/Vorlage) */
.player-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 400px) { .player-pick-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 600px) { .player-pick-grid { grid-template-columns: repeat(5, 1fr); } }

.player-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: background .1s, border-color .1s;
  min-height: 72px;
}
.player-pick-btn:hover, .player-pick-btn:active {
  background: var(--green-50);
  border-color: var(--green-600);
}

/* Badge orange (fehlte noch) */
.badge-orange { background: var(--orange-light); color: var(--orange); }

/* ═══════════════════════════════════════════
   BERICHTE  v1
═══════════════════════════════════════════ */

/* Report textarea */
#squad-text, #game-text, #player-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--gray-50);
  border-color: var(--gray-200);
}

/* 7-Button Bottom-Nav: etwas kompakter */
@media (max-width: 767px) {
  #bottom-nav { justify-content: space-around; }
  .nav-btn { padding: 8px 2px; min-height: 52px; }
  .nav-icon { font-size: 1.2rem; }
  .nav-label { font-size: 0.58rem; }
}

/* Desktop Sidebar: 7. Eintrag passt ohne Änderung */

/* ═══════════════════════════════════════════
   KADERPLANUNG  v1
═══════════════════════════════════════════ */

/* 8-Button Mobile Nav: noch kompakter */
@media (max-width: 767px) {
  .nav-btn { padding: 6px 1px; min-height: 50px; }
  .nav-icon { font-size: 1.15rem; }
  .nav-label { font-size: 0.55rem; }
}

/* ── Chip e(spät) – v8 ──────────────────── */
.chip-espaet { background: var(--gray-100); color: var(--gray-500); border-color: var(--gray-200); }
.chip-espaet.active { background: var(--orange-light); color: var(--orange); border-color: var(--orange); }

/* ── 6-Chip-Reihe: kompaktere Chips ─────── */
.attendance-chips .chip {
  min-width: 28px;
  padding: 6px 5px;
  font-size: 0.72rem;
}
