/* ============================================
   KLJB Litzendorf — Einheitliches Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary:    #36393f;
  --bg-secondary:  #2f3136;
  --bg-tertiary:   #202225;
  --bg-card:       #40444b;
  --bg-card-hover: #484d55;
  --accent:        #4a9e5c;
  --accent-dark:   #3d8a4e;
  --accent-light:  #5cb870;
  --text-primary:  #dcddde;
  --text-white:    #ffffff;
  --text-muted:    #8e9297;
  --danger:        #ed4245;
  --danger-dark:   #c03537;
  --warning:       #faa81a;
  --info-color:    #7289da;
  --border:        rgba(255,255,255,0.06);
  --shadow:        0 4px 15px rgba(0,0,0,0.3);
  --radius:        10px;
  --radius-sm:     6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ── HEADER ─────────────────────────────── */
.app-header {
  background-color: var(--bg-tertiary);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.app-header .logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.header-right strong { color: var(--text-primary); }

.logout-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.2s;
}

.logout-link:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  text-decoration: none;
}

/* ── MAIN CONTENT ────────────────────────── */
.main-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ── PAGE TITLE ──────────────────────────── */
.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 18px;
}

.back-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent-light); text-decoration: none; }

/* ── CARDS ───────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

/* ── DASHBOARD NAVIGATION TILES ──────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.nav-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 14px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.nav-card:hover, .nav-card:active {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
  text-decoration: none;
}

.nav-icon   { font-size: 2rem; line-height: 1; }
.nav-label  { font-size: 0.9rem; font-weight: 600; color: var(--text-white); }
.nav-sub    { font-size: 0.73rem; color: var(--text-muted); }

.nav-card.c-green  { border-bottom: 3px solid var(--accent); }
.nav-card.c-yellow { border-bottom: 3px solid var(--warning); }

.nav-card.c-green .nav-icon { color: var(--accent); }
.nav-card.c-yellow .nav-icon { color: var(--warning); }

/* alert badge on nav-card */
.nav-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--danger);
  color: white;
  padding: 1px 7px;
  border-radius: 12px;
}

/* ── STATUS BOX ──────────────────────────── */
.status-box {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.status-box.live     { border-left: 4px solid var(--danger); }
.status-box.upcoming { border-left: 4px solid var(--accent); }
.status-box.idle     { border-left: 4px solid var(--text-muted); }

.status-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.status-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 3px;
}

.status-meta { font-size: 0.82rem; color: var(--text-muted); }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn:hover { text-decoration: none; }

.btn-primary  { background: var(--accent);     color: white; }
.btn-primary:hover  { background: var(--accent-dark); }

.btn-danger   { background: var(--danger);     color: white; }
.btn-danger:hover   { background: var(--danger-dark); }

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card); }

.btn-sm    { padding: 5px 12px; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn-mt    { margin-top: 10px; }

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

button:hover  { background: var(--accent-dark); }
button.danger { background: var(--danger); }
button.danger:hover { background: var(--danger-dark); }

/* ── FORMS ───────────────────────────────── */
.form-group { margin-bottom: 14px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  font-size: inherit;
  font-weight: normal;
  color: var(--text-primary);
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: auto;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 9px 13px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

textarea { resize: vertical; min-height: 80px; }

/* ── TABLES ──────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }

.table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.table tr:last-child td { border-bottom: none; }

/* ── ALERTS / FLASH ──────────────────────── */
.alert {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.alert-success { background: rgba(87,242,135,.1); border: 1px solid rgba(87,242,135,.3); color: #57f287; }
.alert-danger  { background: rgba(237,66,69,.1);  border: 1px solid rgba(237,66,69,.3);  color: #ed4245; }
.alert-warning { background: rgba(250,168,26,.1); border: 1px solid rgba(250,168,26,.3); color: #faa81a; }
.alert-info    { background: rgba(114,137,218,.1);border: 1px solid rgba(114,137,218,.3);color: #7289da; }

/* ── BADGES ──────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-green  { background: rgba(74,158,92,.2);    color: var(--accent-light); }
.badge-red    { background: rgba(237,66,69,.2);    color: #ed4245; }
.badge-yellow { background: rgba(250,168,26,.2);   color: #faa81a; }
.badge-gray   { background: rgba(255,255,255,.1);  color: var(--text-muted); }
.badge-admin  { background: rgba(114,137,218,.2);  color: #7289da; }

/* ── ADMIN BADGE (inline) ────────────────── */
.admin-badge {
  background: rgba(114,137,218,.2);
  color: #7289da;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.68em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  vertical-align: middle;
}

/* ── INFO BOARD ──────────────────────────── */
.info-form { display: flex; gap: 10px; margin-bottom: 12px; }
.info-form input { flex: 1; }

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  gap: 8px;
}

.info-item:last-child { border-bottom: none; }

.info-text { flex: 1; }

.info-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.delete-info {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.2s;
}
.delete-info:hover { color: var(--danger); }

/* ── SECTION HEADING ─────────────────────── */
.section-heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin: 20px 0 10px;
}

hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── ACCORDION (details/summary) ─────────── */
details {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  overflow: hidden;
}

details > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-white);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  user-select: none;
}

details > summary::-webkit-details-marker { display: none; }

details > summary::after {
  content: "▼";
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

details[open] > summary::after { transform: rotate(180deg); }

details > summary + * { padding: 0 18px 16px; }

/* ── LIST ITEMS ──────────────────────────── */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.list-item:last-child { border-bottom: none; }

/* ── LOGIN PAGE ──────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 20px;
}

.login-box {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 38px 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

.login-logo { text-align: center; margin-bottom: 28px; }

.login-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
}

.login-logo p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-box form { display: flex; flex-direction: column; gap: 12px; }

.error-msg {
  color: #ed4245;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
  background: rgba(237,66,69,.1);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

/* ── ADMIN BOX ───────────────────────────── */
.admin-box {
  background: rgba(114,137,218,.1);
  border: 1px solid rgba(114,137,218,.3);
  border-radius: var(--radius);
  padding: 11px 16px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.admin-box a { color: #7289da; font-weight: 500; }

/* ── SCHICHTPLAN ─────────────────────────── */
.schicht-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
}

.schicht-row:last-child { border-bottom: none; }

.schicht-info { flex: 1; }
.schicht-name { font-weight: 600; color: var(--text-white); font-size: 0.9rem; }
.schicht-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.schicht-status { font-size: 0.82rem; }
.schicht-free   { color: var(--warning); }
.schicht-taken  { color: var(--text-muted); }
.schicht-mine   { color: var(--accent-light); font-weight: 600; }

/* ── PROGRAMM / TAGESPLAN ────────────────── */
.tag-section { margin-bottom: 20px; }

.tag-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-light);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.programm-item {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.programm-item:last-child { border-bottom: none; }

.programm-time { font-size: 0.8rem; color: var(--text-muted); width: 55px; flex-shrink: 0; padding-top: 2px; }
.programm-name { font-weight: 500; color: var(--text-white); font-size: 0.9rem; }
.programm-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── TERMINE LIST ────────────────────────── */
.termin-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.termin-item:last-child { border-bottom: none; }

.termin-name { font-weight: 600; color: var(--text-white); font-size: 0.95rem; }
.termin-info { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
.termin-type { font-size: 0.7rem; color: var(--text-muted); }

/* ── ABSTIMMUNG ──────────────────────────── */
.abstimmung-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.abstimmung-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 7px; }
.abstimmung-buttons { display: flex; gap: 8px; margin-bottom: 8px; }
.abstimmung-ergebnis { display: flex; flex-wrap: wrap; gap: 5px; }
.abstimmung-chip {
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 500;
}
.chip-ja   { background: rgba(74,158,92,0.2); color: var(--accent-light); }
.chip-nein { background: rgba(237,66,69,0.2); color: var(--danger); }

/* ── TODO LIST ───────────────────────────── */
.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.todo-item:last-child { border-bottom: none; }

.todo-text  { flex: 1; font-size: 0.9rem; }
.todo-quelle { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.todo-done  { text-decoration: line-through; color: var(--text-muted); }

/* ── ARCHIV (Protokoll) ──────────────────── */
.archiv-item { margin-bottom: 8px; }

.protokoll-punkt { padding: 8px 0; border-bottom: 1px solid var(--border); }
.protokoll-punkt:last-child { border-bottom: none; }
.protokoll-titel { font-weight: 600; color: var(--text-white); font-size: 0.9rem; margin-bottom: 4px; }
.protokoll-inhalt { font-size: 0.85rem; color: var(--text-muted); white-space: pre-wrap; }

/* ── PACKLISTE ───────────────────────────── */
.packliste-kategorie { margin-bottom: 16px; }
.pack-item { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.pack-item:last-child { border-bottom: none; }

/* ── KONZEPTE / SPIELE ───────────────────── */
.konzept-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.konzept-item:last-child { border-bottom: none; }
.konzept-titel { font-weight: 600; color: var(--text-white); font-size: 0.95rem; }
.konzept-meta  { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

/* ── KÜCHE / REZEPTE ─────────────────────── */
.rezept-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.rezept-item:last-child { border-bottom: none; }
.rezept-name { font-weight: 600; color: var(--text-white); font-size: 0.9rem; }
.rezept-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ── GRID HELPERS ────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 400px) {
  .form-row { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── PASSWORT ────────────────────────────── */
.pw-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pw-box {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 32px 26px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.pw-box form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

.success-msg {
  color: var(--accent-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
  background: rgba(74,158,92,.1);
  border-radius: var(--radius-sm);
}

/* ── ADMIN KONSOLE ───────────────────────── */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.admin-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.admin-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.admin-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-white); margin-bottom: 4px; }
.admin-card p  { font-size: 0.78rem; color: var(--text-muted); }

/* ── UTILITY ─────────────────────────────── */
.text-muted   { color: var(--text-muted); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--accent-light); }
.text-warning { color: var(--warning); }
.text-white   { color: var(--text-white); }
.text-center  { text-align: center; }
.text-sm      { font-size: 0.82rem; }

.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 22px; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 14px; }
.mb-3 { margin-bottom: 22px; }

.flex         { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1        { gap: 8px; }
.gap-2        { gap: 14px; }
.w-full       { width: 100%; }
.hidden       { display: none; }

.icon {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    stroke-width: 2;
}
.icon-lg {
    width: 20px;
    height: 20px;
    vertical-align: -4px;
}

/* ── PROGRAMMBLÖCKE ──────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.status-entwurf    { background: rgba(142,146,151,0.2); color: var(--text-muted); }
.status-eingereicht { background: rgba(250,168,26,0.2); color: var(--warning); }
.status-uebernommen { background: rgba(74,158,92,0.2);  color: var(--accent-light); }

.kategorie-tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  text-transform: capitalize;
}

/* ── MULTI-SELECT COMBOBOX ───────────────────── */
.ms-container { position: relative; }

.ms-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: text;
  min-height: 42px;
  transition: border-color 0.2s;
}
.ms-box:focus-within { border-color: var(--accent); }

.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(74,158,92,0.2);
  color: var(--accent-light);
  border: 1px solid rgba(74,158,92,0.3);
  border-radius: 20px;
  padding: 3px 8px 3px 10px;
  font-size: 0.8rem;
  animation: msChipIn 0.15s ease;
}

.ms-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-light);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.ms-chip-remove:hover { opacity: 1; }

.ms-search {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  flex: 1;
  min-width: 120px;
  padding: 4px 0;
}
.ms-search::placeholder { color: var(--text-muted); }

.ms-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  box-shadow: var(--shadow);
}

.ms-option {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: background 0.15s;
}
.ms-option:hover { background: var(--bg-secondary); color: var(--text-white); }

.ms-empty {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  list-style: none;
}

@keyframes msChipIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── TEAM-VERWALTUNG PANELS ──────────────────── */
.role-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 680px) {
  .role-panels { grid-template-columns: 1fr; }
}

.role-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.role-panel > summary {
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-white);
  list-style: none;
  user-select: none;
  gap: 8px;
}

.role-panel > summary::-webkit-details-marker { display: none; }

.role-panel > summary .chevron {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.2s;
  margin-left: auto;
}

.role-panel[open] > summary .chevron {
  transform: rotate(90deg);
}

.role-panel-body {
  padding: 0 14px 10px;
  border-top: 1px solid var(--border);
}

.team-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.team-item:last-child { border-bottom: none; }

.team-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 5px;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.select-sm {
  padding: 3px 6px;
  font-size: 0.76rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  appearance: none;
}

.btn-xs { padding: 3px 8px; font-size: 0.75rem; }

/* ── PROTOKOLL ITEM ACTIONS ──────────────────── */
.protokoll-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.protokoll-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

.archiv-admin-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
