/* ====================================================
   components.css
   Basisklassen fuer wiederkehrende UI-Container.

   Gem. alter UNIVERSAL_GUIDELINES (Archiv: doc/archiv/guidelines/):
   - Wiederkehrende Komponenten brauchen Basisklassen
   - Werte nur ueber CSS-Custom-Properties aus tokens.css
   - Basisklassen in EIGENER CSS-Datei (diese)

   Lade-Reihenfolge:
   premium-design-tokens.css  ->  combined-all.css  ->  theme.css
                               ->  components.css   (DIESE DATEI)
                               ->  seitenspezifisches CSS
   (Hinweis: 1-core-variables.css + 2-semantic-tokens.css wurden 2026-05-22
    in premium-design-tokens.css konsolidiert.)
   ==================================================== */

/* Scroll-/Chat-FAB-Basisklasse — ausgelagert 2026-06-18 (single source).
   @import MUSS vor allen Regeln stehen. */
@import url('scroll-fab.css');
/* Hinweiszeilen + Knoepfe — ausgelagert 2026-10-10 (single source),
   damit Seiten ohne components.css sie einzeln laden koennen. */
@import url('banner.css');
@import url('buttons.css');
/* Karte + Dialog-Box (.card, .card--floating) — ausgelagert 2026-10-12 (single source),
   damit die Classroom-Seite (ohne components.css) Dialoge nicht durchsichtig zeigt. */
@import url('card.css');


/* ─────────────────────────────────────────────────────
   CARD — clean white surface (1px border, radius-lg)
   Kein Gradient, kein Shadow, kein 3px-Rand.
   ───────────────────────────────────────────────────── */

/* .card steht seit 2026-10-12 in card.css (per @import oben eingebunden). */

/* Modifier: mit leichtem Shadow (leicht erhöht) */
.card--elevated {
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(6, 15, 28, 0.08));
}

/* Variante: floating — Dialoge / Modals */
/* .card--floating steht seit 2026-10-12 in card.css. */

/* Modifier: kein Padding (Container mit eigener Padding-Logik,
   z.B. Accordion mit innerem .acc-inner) */
.card--flush {
    padding: 0;
}

/* Modifier: klickbare Card mit Hover-Lift */
@media (hover: hover) and (pointer: fine) {
    .card--interactive {
        cursor: pointer;
        transition: transform var(--transition-fast, 0.15s ease),
                    box-shadow var(--transition-fast, 0.15s ease);
    }
    .card--interactive:hover {
        transform:  var(--card-hover-lift);
        box-shadow: var(--card-hover-shadow);
    }
}




/* ─────────────────────────────────────────────────────
   BUTTON-STANDARD-BLACK
   Einheitlicher Aktions-Button mit Icon + Label.
   Design: weißer Hintergrund, 3px schwarzer Rahmen, rund.
   Basiert auf .card-mag-quick-actions-Button-Design.

   Verwendung:
     <button class="button-standard-black">
       <span class="btn-icon"><svg ...></svg></span>
       <span class="btn-label">Label</span>
     </button>
   ───────────────────────────────────────────────────── */

.button-standard-black {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    min-height: 44px;
    font-size: var(--text-caption, 12px);
    font-weight: var(--weight-semibold, 600);
    font-family: inherit;
    border: 1px solid var(--color-900);
    border-radius: 6px;
    background: var(--neutral-0);
    color: var(--color-900);
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .button-standard-black:hover {
        background: var(--neutral-100); /* WP-4: #f5f5f5 → nearest --neutral-100 (#f1f3f5) */
    }
}

.button-standard-black:active {
    background: var(--neutral-200); /* WP-4: #ebebeb → nearest --neutral-200 (#e9ecef) */
}

.button-standard-black:disabled,
.button-standard-black[disabled],
.button-standard-black[aria-disabled="true"] { /* gesperrt, aber klickbar für einen Hinweis (2026-10-06) */
    opacity: 0.45;
    cursor: not-allowed;
}

/* Icon-Wrapper */
.button-standard-black .btn-icon {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
}

/* Icon-Only-Variante (kein Label) */
.button-standard-black.btn-icon-only {
    padding: 8px;
    min-width: 44px;
}

/* State: aktiv / ausgewählt */
.button-standard-black.active {
    background: var(--color-900); /* WP-4 */
    color: var(--neutral-0);        /* WP-4 */
}

@media (hover: hover) and (pointer: fine) {
    .button-standard-black.active:hover {
        background: var(--neutral-900); /* WP-4: #222 → --neutral-900 (#212529) */
    }
}

/* ============================================================
   DARK MODE — button-standard-black
   Invertiertes Schema: dunkler BG, heller Rand + Text
   .active bleibt hell-auf-dunkel (invertierter Kontrast)
   ============================================================ */
@media (prefers-color-scheme: dark) and (max-width: 0) { /* Dunkel abgeschaltet 2026-10-10 */
    .button-standard-black {
        background: var(--neutral-800);
        border-color: var(--neutral-50);  /* WP-4: #f9fafb → --neutral-50 (#f8f9fa, DECISION-B) */
        color: var(--neutral-50);         /* WP-4 */
    }
    .button-standard-black:active { background: var(--neutral-700); } /* WP-4: #374151 → --neutral-700 (#495057, DECISION-B) */
    .button-standard-black.active {
        background: var(--neutral-50);   /* WP-4 */
        color: var(--neutral-900);       /* WP-4: #111827 → --neutral-900 (#212529, DECISION-B) */
        border-color: var(--neutral-50); /* WP-4 */
    }
    @media (hover: hover) and (pointer: fine) {
        .button-standard-black:hover { background: var(--neutral-700); } /* WP-4 */
        .button-standard-black.active:hover { background: var(--neutral-200); } /* WP-4: #e5e7eb → --neutral-200 (#e9ecef, DECISION-B) */
    }
}




/* ─────────────────────────────────────────────────────
   BADGE SYSTEM
   Inline status chips mit semantischen Farben.
   ───────────────────────────────────────────────────── */

.badge {
    display:        inline-flex;
    align-items:    center;
    gap:            4px;
    padding:        2px 8px;
    font-size:      var(--text-caption, 12px);
    font-weight:    var(--weight-semibold, 600);
    line-height:    1.4;
    border-radius:  var(--radius-full, 9999px);
    white-space:    nowrap;
    border:         1px solid transparent;
}

.badge-success {
    background:   var(--success-bg,     #ecfdf3);
    color:        var(--success-text,   #047857);
    border-color: var(--success-border, #a7f3d0);
}

.badge-warn {
    background:   var(--warning-bg,     #fffbeb);
    color:        var(--warning-text,   #b45309);
    border-color: var(--warning-border, #fde68a);
}

.badge-error {
    background:   var(--danger-bg,     #fef2f2);
    color:        var(--danger-text,   #b91c1c);
    border-color: var(--danger-border, #fecaca);
}

.badge-info {
    background:   var(--info-bg,     #eff6ff);
    color:        var(--info-text,   #1d4ed8);
    border-color: var(--info-border, #bfdbfe);
}


/* ─────────────────────────────────────────────────────
   FORM SYSTEM
   Einheitliche Formular-Elemente.
   .form-group → .form-label + .form-input/.form-select + .form-hint
   ───────────────────────────────────────────────────── */

.form-group {
    display:        flex;
    flex-direction: column;
    gap:            6px;
}

.form-label {
    font-size:   var(--text-body, 16px);
    font-weight: var(--weight-semibold, 600);
    color:       var(--text-primary, #060f1c);
    line-height: 1.3;
}

.form-input,
.form-select {
    width:        100%;
    padding:      10px 14px;
    font-size:    var(--text-body, 16px);
    font-family:  inherit;
    color:        var(--text-primary, #060f1c);
    background:   var(--bg-surface, #fff);
    border:       1px solid var(--border-strong, #dee2e6);
    border-radius: var(--radius-md, 8px);
    transition:   border-color 120ms ease;
    appearance:   none;
}

.form-input:focus,
.form-select:focus {
    outline:      none;
    border-color: var(--color-primary, #5b87cc);
    box-shadow:   var(--focus-ring, 0 0 0 3px rgba(91, 135, 204, 0.35));
}

.form-input:disabled,
.form-select:disabled {
    background: var(--bg-subtle, #f1f3f5);
    color:      var(--text-disabled, #ced4da);
    cursor:     not-allowed;
}

.form-hint {
    font-size:   var(--text-caption, 12px);
    color:       var(--text-muted, #adb5bd);
    line-height: 1.4;
}

.form-hint--error {
    color: var(--danger-text, #b91c1c);
}


/* ─────────────────────────────────────────────────────
   MODAL OVERLAY
   Backdrop für Dialog-Inhalte.
   Dialog-Box selbst: .card.card--floating
   ───────────────────────────────────────────────────── */

.modal-overlay {
    position:        fixed;
    inset:           0;
    background:      rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index:         var(--z-modal-backdrop, 400);
    display:         flex;
    align-items:     center;
    justify-content: center;
    opacity:         0;
    transition:      opacity var(--duration-base, 200ms) ease;
}

.modal-overlay.is-open {
    opacity: 1;
}

/* Dialog-Box innerhalb .modal-overlay nutzt .card.card--floating */


/* ══════════════════════════════════════════════════════════════════════════
   [4/5] PORTIERT AUS HTML-PROJEKT components.css
   Additive Ergaenzung — keine bestehenden myLangSite-Klassen ueberschrieben.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Card Extensions ────────────────────────────────────────────────────── */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4, var(--space-4, 1rem));
  gap: var(--sp-3, var(--space-3, 0.75rem));
}
.card-title {
  font-size: var(--text-body, 16px);
  font-weight: var(--weight-semibold, 600);
  color: var(--neutral-900, #111827);
}
.card-description {
  font-size: var(--text-caption, 12px);
  color: var(--neutral-500, #6b7280);
  margin-top: var(--sp-1, var(--space-1, 0.25rem));
}

/* ── Table ──────────────────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  margin: 0 calc(-1 * var(--sp-4, 24px));
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-caption, 12px);
}
.table th {
  text-align: left;
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
  color: var(--neutral-500, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--sp-2, 8px) var(--sp-3, 16px);
  border-bottom: 1px solid var(--neutral-200, #e5e7eb);
  white-space: nowrap;
}
.table th:first-child { padding-left: var(--sp-4, 24px); }
.table th:last-child  { padding-right: var(--sp-4, 24px); text-align: right; }
.table td {
  padding: var(--sp-2, 8px) var(--sp-3, 16px);
  border-bottom: 1px solid var(--neutral-100, #f3f4f6);
  color: var(--neutral-700, #374151);
  vertical-align: middle;
}
.table td:first-child { padding-left: var(--sp-4, 24px); }
.table td:last-child  { padding-right: var(--sp-4, 24px); text-align: right; }
.table tr:last-child td { border-bottom: none; }
@media (hover: hover) and (pointer: fine) {
  .table tbody tr:hover td { background: var(--neutral-50, #f9fafb); }
}

/* ── Table cell modifiers ───────────────────────────────────────────────── */
.td-name         { font-weight: var(--weight-semibold, 600); color: var(--neutral-900, #111827); }
.td-meta         { color: var(--neutral-500, #6b7280); font-size: var(--text-caption, 12px); }
.table-empty-cell {
  text-align: center;
  padding: var(--sp-6, 48px) var(--sp-4, 24px);
  color: var(--neutral-500, #6b7280);
  font-size: var(--text-caption, 12px);
}

/* ── Badge Role & Status Variants ───────────────────────────────────────── */
.badge-admin     { background: var(--color-900, #0c2135); color: var(--neutral-0, #fff); }
.badge-teacher   { background: var(--color-700, #2b4d6b); color: var(--neutral-0, #fff); }
.badge-student   { background: var(--color-50, #f0f4fb);  color: var(--color-700, #2b4d6b); border: 1px solid var(--color-200, #bfd7ed); }
.badge-confirmed { background: var(--status-confirmed-bg, #ecfdf5); color: var(--status-confirmed-icon, #047857); border: 1px solid var(--status-confirmed-bd, #a7f3d0); }
.badge-released  { background: var(--status-held-bg, #fffbeb);      color: var(--status-held-tx, #b45309);         border: 1px solid var(--status-held-bd, #fde68a); }

/* ── Empty State ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-7, 64px) var(--sp-4, 24px);
  color: var(--neutral-500, #6b7280);
}
.empty-state svg { margin-bottom: var(--sp-3, 16px); color: var(--neutral-300, #d1d5db); }
.empty-state p   { font-size: var(--text-caption, 12px); }
.empty-state-padded { padding: var(--sp-3, 16px) var(--sp-4, 24px); }
.free-detail-padded { padding: var(--sp-1, 4px) var(--sp-3, 16px); }

/* ── Stats Row ──────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3, 16px);
  margin-bottom: var(--sp-5, 32px);
}
.stats-row--2col { grid-template-columns: repeat(2, 1fr); }
.stat-card {
  background: var(--neutral-0, #fff);
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: var(--sp-4, 24px);
}
.stat-label {
  font-size: var(--text-caption, 12px);
  color: var(--neutral-500, #6b7280);
  font-weight: var(--weight-semibold, 600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2, 8px);
}
.stat-value {
  font-size: var(--text-heading, 1.5rem);
  font-weight: var(--weight-semibold, 600);
  color: var(--neutral-900, #111827);
}

/* ── Dashboard Calendar Quick-Link ─────────────────────────────────────── */
.dash-calendar-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2, 8px);
  padding: var(--sp-3, 16px) var(--sp-4, 24px);
  background: var(--neutral-0, #fff);
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  color: var(--color-500, #3a6ea8);
  font-size: var(--text-body, 16px);
  font-weight: var(--weight-semibold, 600);
  text-decoration: none;
  margin-bottom: var(--sp-5, 32px);
  transition: background var(--transition, 150ms ease), border-color var(--transition, 150ms ease);
}
@media (hover: hover) and (pointer: fine) {
  .dash-calendar-btn:hover {
    background: var(--color-50, #f0f6ff);
    border-color: var(--color-300, #93c5fd);
  }
}
.dash-calendar-btn-arrow { margin-left: auto; color: var(--neutral-400, #9ca3af); }

/* ── Move / Recurring Dialog ────────────────────────────────────────────── */
.move-dialog { display: flex; flex-direction: column; gap: var(--sp-3, 16px); }
.move-dialog-info { margin: 0 0 var(--sp-1, 4px) 0; font-size: var(--text-body, 16px); font-weight: var(--weight-semibold, 600); color: var(--neutral-900, #111827); }
.move-dialog-actions { display: flex; gap: var(--sp-2, 8px); align-items: center; flex-wrap: wrap; }
.move-dialog-divider { border: none; border-top: 1px solid var(--neutral-200, #e5e7eb); margin: 0; }
.move-dialog-row  { display: flex; gap: var(--sp-3, 16px); flex-wrap: wrap; }
.move-dialog-col  { display: flex; flex-direction: column; gap: var(--sp-1, 4px); flex: 1; min-width: 120px; }
.move-check-result { font-size: var(--text-caption, 12px); font-weight: var(--weight-semibold, 600); min-height: 20px; padding: var(--sp-1, 4px) 0; }
.move-check-ok   { color: var(--status-confirmed-tx, #047857); }
.move-check-fail { color: var(--danger-tx, #b91c1c); }
.move-dialog-btns { display: flex; flex-direction: column; gap: var(--sp-2, 8px); margin-top: var(--sp-2, 8px); }
.move-dialog-btns .btn { width: 100%; justify-content: center; }

/* ── Verschieben-Toggle-Button ──────────────────────────────────────────── */
.btn-move {
  font-family: var(--font, var(--font-family-base));
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
  padding: 5px var(--sp-3, 16px);
  border: 1px solid var(--color-300, #93c5fd);
  border-radius: var(--radius-sm, 4px);
  background: transparent;
  color: var(--color-500, #3a6ea8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1, 4px);
  transition: background var(--transition, 150ms ease), color var(--transition, 150ms ease), border-color var(--transition, 150ms ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn-move:hover { background: var(--color-50, #f0f6ff); border-color: var(--color-400, #5b87cc); color: var(--color-600, #1e3a5f); }
}
.btn-move.is-active { background: var(--color-50, #f0f6ff); border-color: var(--color-400, #5b87cc); color: var(--color-600, #1e3a5f); }

/* ── Move-Panel ─────────────────────────────────────────────────────────── */
.move-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3, 16px);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 280ms ease, opacity 200ms ease;
}
.move-panel.is-open { max-height: 700px; opacity: 1; }

/* ── Modal (Dialog Box) ─────────────────────────────────────────────────── */
.modal {
  background: var(--neutral-0, #fff);
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-lg, 16px);
  padding: var(--sp-5, 32px);
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - var(--sp-4, 24px) - var(--sp-4, 24px));
  overflow-y: auto;
  animation: modal-in 200ms ease;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-4, 24px);
  gap: var(--sp-3, 16px);
}
.modal-title {
  font-size: var(--text-body, 16px);
  font-weight: var(--weight-semibold, 600);
  color: var(--neutral-900, #111827);
}
.modal-close {
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
  color: var(--neutral-500, #6b7280);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition, 150ms ease);
}
@media (hover: hover) and (pointer: fine) {
  .modal-close:hover { background: var(--neutral-100, #f3f4f6); }
}
.modal-close:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 3px rgba(91,135,204,.35)); }
.modal-body { display: flex; flex-direction: column; gap: var(--sp-3, 16px); }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-2, 8px);
  margin-top: var(--sp-5, 32px);
}

@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes modal-in {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Login Page ─────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4, 24px);
  background: var(--neutral-50, #f9fafb);
}
.login-card {
  background: var(--neutral-0, #fff);
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-lg, 16px);
  padding: var(--sp-6, 48px);
  width: 100%;
  max-width: 400px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2, 8px);
  margin-bottom: var(--sp-5, 32px);
  color: var(--neutral-900, #111827);
  font-size: var(--text-body, 16px);
  font-weight: var(--weight-semibold, 600);
}
.login-logo svg { color: var(--color-400, #5b87cc); }
.login-heading {
  font-size: var(--text-heading, 1.5rem);
  font-weight: var(--weight-semibold, 600);
  color: var(--neutral-900, #111827);
  margin-bottom: var(--sp-1, 4px);
}
.login-sub {
  font-size: var(--text-body, 16px);
  color: var(--neutral-500, #6b7280);
  margin-bottom: var(--sp-5, 32px);
}
.login-form { display: flex; flex-direction: column; gap: var(--sp-3, 16px); }
.login-btn  { width: 100%; margin-top: var(--sp-1, 4px); }
.login-hint {
  margin-top: var(--sp-4, 24px);
  padding: var(--sp-3, 16px);
  background: var(--neutral-50, #f9fafb);
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  font-size: var(--text-caption, 12px);
  color: var(--neutral-600, #4b5563);
  line-height: 1.7;
}
.login-hint strong { font-weight: var(--weight-semibold, 600); color: var(--neutral-900, #111827); display: block; margin-bottom: var(--sp-1, 4px); }
.login-hint code   { font-family: var(--font-family-mono, monospace); background: var(--neutral-200, #e5e7eb); padding: 1px 4px; border-radius: 3px; color: var(--neutral-700, #374151); }

/* ── Admin Layout ───────────────────────────────────────────────────────── */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5, 32px);
}
@media (max-width: 768px) {
  .admin-grid { grid-template-columns: 1fr; }
}

/* ── Admin Main Tabs ────────────────────────────────────────────────────── */
.admin-main-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--neutral-200, #e5e7eb);
  margin-bottom: var(--sp-4, 24px);
}
.admin-tab-btn {
  font-family: var(--font, var(--font-family-base));
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
  padding: var(--sp-2, 8px) var(--sp-4, 24px);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: var(--neutral-500, #6b7280);
  cursor: pointer;
  transition: color var(--transition, 150ms ease), border-color var(--transition, 150ms ease);
}
@media (hover: hover) and (pointer: fine) {
  .admin-tab-btn:hover { color: var(--neutral-700, #374151); }
}
.admin-tab-btn.active { color: var(--color-900, #0c2135); border-bottom-color: var(--color-900, #0c2135); }

/* ── Admin Escrow Panel ─────────────────────────────────────────────────── */
.admin-escrow-filters {
  display: flex;
  gap: var(--sp-1, 4px);
  padding: var(--sp-3, 16px) var(--sp-4, 24px);
  border-bottom: 1px solid var(--neutral-100, #f3f4f6);
  flex-wrap: wrap;
}
.admin-escrow-row  { cursor: default; }
.admin-escrow-links { display: flex; gap: var(--sp-2, 8px); margin-top: 3px; }
.admin-detail-link {
  font-size: var(--text-caption, 12px);
  color: var(--color-400, #5b87cc);
  text-decoration: none;
  font-weight: var(--weight-semibold, 600);
}
@media (hover: hover) and (pointer: fine) {
  .admin-detail-link:hover { color: var(--color-600, #1e3a5f); text-decoration: underline; }
}
.admin-release-btn { margin-top: var(--sp-1, 4px); }

/* ── Segmented Control ──────────────────────────────────────────────────── */
.segmented {
  display: inline-flex;
  background: var(--neutral-100, #f3f4f6);
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 3px;
  gap: 2px;
}
.segmented-btn {
  font-family: var(--font, var(--font-family-base));
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
  padding: var(--sp-1, 4px) var(--sp-3, 16px);
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--neutral-500, #6b7280);
  cursor: pointer;
  transition: background var(--transition, 150ms ease), color var(--transition, 150ms ease);
}
@media (hover: hover) and (pointer: fine) {
  .segmented-btn:hover { color: var(--neutral-700, #374151); }
}
.segmented-btn.active {
  background: var(--neutral-0, #fff);
  color: var(--neutral-900, #111827);
  box-shadow: var(--shadow, 0 1px 3px rgba(6,15,28,.08));
}
.segmented-btn:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 3px rgba(91,135,204,.35)); }

/* ── Remove Teacher Slot List ───────────────────────────────────────────── */
.remove-teacher-slot-list {
  list-style: none;
  margin: var(--sp-3, 16px) 0 0;
  padding: 0;
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}
.remove-teacher-slot-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2, 8px) var(--sp-3, 16px);
  border-bottom: 1px solid var(--neutral-100, #f3f4f6);
  font-size: var(--text-caption, 12px);
  color: var(--neutral-700, #374151);
}
.remove-teacher-slot-list li:last-child { border-bottom: none; }
.remove-teacher-slot-list li:nth-child(even) { background: var(--neutral-50, #f9fafb); }
.remove-teacher-slot-date { color: var(--neutral-600, #4b5563); }
.remove-teacher-slot-time { font-weight: var(--weight-semibold, 600); color: var(--neutral-900, #111827); }

/* ── Custom Dropdown ────────────────────────────────────────────────────── */
.custom-dropdown { position: relative; display: inline-block; min-width: 200px; }
.custom-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2, 8px);
  padding: var(--sp-2, 8px) var(--sp-3, 16px);
  background: var(--neutral-0, #fff);
  border: 1px solid var(--neutral-300, #d1d5db);
  border-radius: var(--radius, var(--radius-md, 8px));
  font-family: var(--font, var(--font-family-base));
  font-size: var(--text-body, 16px);
  color: var(--neutral-900, #111827);
  cursor: pointer;
  transition: border-color var(--transition, 150ms ease), box-shadow var(--transition, 150ms ease);
  text-align: left;
}
@media (hover: hover) and (pointer: fine) {
  .custom-dropdown-trigger:hover { border-color: var(--color-400, #5b87cc); }
}
.custom-dropdown-trigger.is-open { border-color: var(--color-400, #5b87cc); box-shadow: var(--focus-ring, 0 0 0 3px rgba(91,135,204,.35)); }
.custom-dropdown-chevron {
  flex-shrink: 0;
  color: var(--neutral-500, #6b7280);
  transition: transform 0.2s ease;
}
.custom-dropdown-trigger.is-open .custom-dropdown-chevron { transform: rotate(180deg); }
.custom-dropdown-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--neutral-0, #fff);
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius, var(--radius-md, 8px));
  box-shadow: 0 8px 24px rgba(6,15,28,.12);
  list-style: none;
  margin: 0;
  padding: var(--sp-1, 4px) 0;
  z-index: 400;
  max-height: 260px;
  overflow-y: auto;
}
.custom-dropdown-list.is-open { display: block; }
.custom-dropdown-item {
  padding: var(--sp-2, 8px) var(--sp-4, 24px);
  font-family: var(--font, var(--font-family-base));
  font-size: var(--text-body, 16px);
  color: var(--neutral-800, #1f2937);
  cursor: pointer;
  transition: background var(--transition, 150ms ease), color var(--transition, 150ms ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (hover: hover) and (pointer: fine) {
  .custom-dropdown-item:hover { background: var(--color-50, #f0f6ff); color: var(--neutral-900, #111827); }
}
.custom-dropdown-item.is-active { color: var(--color-600, #1e3a5f); font-weight: var(--weight-semibold, 600); }
.custom-dropdown-item.is-active::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-400, #5b87cc);
  flex-shrink: 0;
}
.custom-dropdown-search {
  padding: var(--sp-1, 4px) var(--sp-2, 8px);
  position: sticky;
  top: 0;
  background: var(--neutral-0, #fff);
  border-bottom: 1px solid var(--neutral-100, #f3f4f6);
  z-index: 1;
  list-style: none;
}
.custom-dropdown-search .search-input { height: 28px; font-size: var(--text-caption, 12px); }

/* ── Form Extensions ────────────────────────────────────────────────────── */
.form-textarea {
  font-family: var(--font, var(--font-family-base));
  font-size: var(--text-body, 16px);
  font-weight: var(--weight-regular, 400);
  color: var(--neutral-900, #111827);
  background: var(--neutral-0, #fff);
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-sm, 4px);
  padding: var(--sp-2, 8px) var(--sp-3, 16px);
  width: 100%;
  resize: vertical;
  transition: border-color var(--transition, 150ms ease), box-shadow var(--transition, 150ms ease);
  outline: none;
}
@media (hover: hover) and (pointer: fine) {
  .form-textarea:hover { border-color: var(--neutral-300, #d1d5db); }
  .form-textarea:focus { border-color: var(--color-400, #5b87cc); box-shadow: var(--focus-ring, 0 0 0 3px rgba(91,135,204,.35)); }
}
.form-textarea::placeholder { color: var(--neutral-300, #d1d5db); }
.input-error { border-color: var(--danger-bd, #fca5a5) !important; box-shadow: 0 0 0 3px rgba(192,57,43,.15) !important; }
.form-error-msg { font-size: var(--text-caption, 12px); color: var(--danger-tx, #b91c1c); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3, 16px);
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-stack { display: flex; flex-direction: column; gap: var(--sp-3, 16px); }

/* ── Button Modifiers ───────────────────────────────────────────────────── */
.btn-full       { width: 100%; justify-content: center; }
.btn-self-start { align-self: flex-start; }

/* ── Hint List Items ────────────────────────────────────────────────────── */
.hint-code { background: var(--neutral-100, #f3f4f6); padding: 1px 5px; border-radius: 3px; font-family: var(--font-family-mono, monospace); }
.hint-role { color: var(--neutral-500, #6b7280); }

/* ── Confirm / Release Dialog ───────────────────────────────────────────── */
.confirm-dialog-warning { background: var(--neutral-100, #f3f4f6); border: 1px solid var(--neutral-200, #e5e7eb); border-radius: var(--radius-sm, 4px); padding: var(--sp-3, 16px); color: var(--neutral-700, #374151); font-size: var(--text-body, 16px); }
.confirm-dialog-list    { margin: 0; padding-left: var(--sp-5, 32px); display: flex; flex-direction: column; gap: var(--sp-1, 4px); color: var(--neutral-700, #374151); font-size: var(--text-body, 16px); }

/* ── Username Input ─────────────────────────────────────────────────────── */
.auth-username-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--neutral-300, #d1d5db);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  transition: border-color var(--transition, 150ms ease), box-shadow var(--transition, 150ms ease);
}
.auth-username-wrap:focus-within { border-color: var(--color-400, #5b87cc); box-shadow: var(--focus-ring, 0 0 0 3px rgba(91,135,204,.35)); }
.auth-username-prefix {
  padding: 0 var(--sp-2, 8px) 0 var(--sp-3, 16px);
  font-size: var(--text-body, 16px);
  font-weight: var(--weight-semibold, 600);
  color: var(--neutral-500, #6b7280);
  background: var(--neutral-50, #f9fafb);
  border-right: 1px solid var(--neutral-200, #e5e7eb);
  height: 42px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.auth-username-input { border: none; border-radius: 0; box-shadow: none; flex: 1; }
.auth-username-input:focus { outline: none; box-shadow: none; }

/* ── Status Inline Badges ───────────────────────────────────────────────── */
.status-confirmed { color: var(--status-save-ok-tx, #047857);  font-weight: var(--weight-semibold, 600); }
.status-pending   { color: var(--pending-amber, #d97706);       font-weight: var(--weight-semibold, 600); }
.status-error     { color: var(--danger-strong-tx, #991b1b);    font-weight: var(--weight-semibold, 600); }

/* ── Payment Status Blocks ──────────────────────────────────────────────── */
.payment-status-block {
  margin-top: var(--sp-3, 16px);
  padding: var(--sp-2, 8px) var(--sp-3, 16px);
  border-radius: var(--radius-sm, 4px);
  font-size: var(--text-caption, 12px);
}
.payment-status-ok   { background: var(--status-confirmed-bg, #ecfdf5); color: var(--status-save-ok-tx, #047857); }
.payment-status-warn { background: var(--danger-hover-bg, #fef2f2);     color: var(--danger-strong-tx, #991b1b); }
.warn-badge { color: var(--danger-strong-tx, #991b1b); font-size: var(--text-caption, 12px); margin-left: var(--sp-1, 4px); }

/* ── Recur Table ────────────────────────────────────────────────────────── */
.recur-table     { width: 100%; border-collapse: collapse; }
.recur-th        { padding: var(--sp-1, 4px) var(--sp-2, 8px); text-align: left; font-size: var(--text-caption, 12px);
                   font-weight: var(--weight-semibold, 600); color: var(--neutral-500, #6b7280); background: var(--neutral-100, #f3f4f6);
                   text-transform: uppercase; letter-spacing: .04em; }
.recur-th--right  { text-align: right; }
.recur-th--center { text-align: center; }
.recur-td         { padding: var(--sp-1, 4px) var(--sp-2, 8px); font-size: var(--text-caption, 12px); color: var(--neutral-700, #374151);
                    border-top: 1px solid var(--neutral-100, #f3f4f6); }
.recur-td--right  { text-align: right; }
.recur-td--center { text-align: center; }
.recur-td--mono   { font-family: var(--font-family-mono, monospace); }
.recur-td--icon-ok   { text-align: center; color: var(--status-save-ok-tx, #047857); font-weight: var(--weight-semibold, 600); }
.recur-td--icon-warn { text-align: center; color: var(--pending-amber, #d97706);     font-weight: var(--weight-semibold, 600); }
.recur-td--icon-bad  { text-align: center; color: var(--danger-strong-tx, #991b1b);  font-weight: var(--weight-semibold, 600); }
.recur-td--note      { color: var(--neutral-400, #9ca3af); font-size: var(--text-caption, 12px); }
.recur-row--even { background: var(--neutral-0, #fff); }
.recur-row--odd  { background: var(--neutral-50, #f9fafb); }
.recur-row--warn { background: var(--pending-amber-bg, #fffbeb); }
.recur-row--bad  { background: var(--danger-hover-bg, #fef2f2); }
.recur-summary-line       { color: var(--status-save-ok-tx, #047857); }
.recur-summary-line--warn { color: var(--pending-amber, #d97706); }
.recur-summary-line--bad  { color: var(--danger-strong-tx, #991b1b); }

/* ── Text Utilities ─────────────────────────────────────────────────────── */
.text-accent { color: var(--color-500, #3a6ea8); }

/* ── Booking Total Row ──────────────────────────────────────────────────── */
.booking-total-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2, 8px) 0 var(--sp-1, 4px);
  border-top: 1px solid var(--neutral-200, #e5e7eb);
  font-weight: var(--weight-semibold, 600);
  font-size: var(--text-body, 16px);
}

/* ── Recurring Legacy Row Classes ──────────────────────────────────────── */
.recur-section     { border-top: 1px solid var(--neutral-200, #e5e7eb); padding-top: var(--sp-3, 16px); margin-top: var(--sp-1, 4px); }
.recur-toggle-btn  { width: 100%; justify-content: center; gap: var(--sp-2, 8px); }
.recur-toggle-btn.active { color: var(--color-600, #1e3a5f); }
.recur-panel  { display: flex; flex-direction: column; gap: var(--sp-3, 16px); margin-top: var(--sp-3, 16px); }
.recur-info   { font-size: var(--text-caption, 12px); color: var(--neutral-500, #6b7280); margin: 0; }
.recur-result { display: flex; flex-direction: column; gap: var(--sp-2, 8px); margin-top: var(--sp-2, 8px); }
.recur-summary { font-size: var(--text-body, 16px); font-weight: var(--weight-semibold, 600); color: var(--neutral-800, #1f2937); padding: var(--sp-1, 4px) 0; }
.recur-list    { max-height: 240px; overflow-y: auto; border: 1px solid var(--neutral-200, #e5e7eb); border-radius: var(--radius-sm, 4px); }
.recur-row     { display: flex; align-items: center; gap: var(--sp-2, 8px); padding: var(--sp-1, 4px) var(--sp-2, 8px); border-radius: var(--radius-sm, 4px); font-size: var(--text-caption, 12px); }
.recur-row-ok   { background: var(--status-confirmed-bg, #ecfdf5); }
.recur-row-fail { background: var(--status-failed-bg, #fef2f2); }
.recur-row-icon { font-weight: var(--weight-semibold, 600); flex-shrink: 0; width: 16px; text-align: center; }
.recur-row-ok   .recur-row-icon { color: var(--status-save-ok-tx, #047857); }
.recur-row-fail .recur-row-icon { color: var(--danger-strong-tx, #991b1b); }
.recur-row-date   { flex: 1; color: var(--neutral-700, #374151); white-space: nowrap; }
.recur-row-reason { color: var(--danger-strong-tx, #991b1b); font-size: var(--text-caption, 12px); }
.recur-row.recur-row-ok   td { color: var(--status-save-ok-tx, #047857); }
.recur-row.recur-row-fail td { color: var(--danger-strong-tx, #991b1b); }

/* ── Recurring Booking Dialog — neue Klassen ────────────────────────────── */
.recur-standalone { gap: var(--sp-4, 24px); }
.recur-source-date { font-size: var(--text-caption, 12px); color: var(--neutral-500, #6b7280); margin: 0 0 var(--sp-1, 4px) 0; }
.recur-mode-row {
  display: flex;
  gap: var(--sp-2, 8px);
  background: var(--neutral-100, #f3f4f6);
  border-radius: var(--radius-md, 8px);
  padding: var(--sp-1, 4px);
  margin-bottom: var(--sp-2, 8px);
}
.recur-mode-btn {
  flex: 1;
  padding: var(--sp-1, 4px) var(--sp-2, 8px);
  border: none;
  border-radius: var(--radius-sm, 4px);
  background: transparent;
  color: var(--neutral-500, #6b7280);
  font-family: var(--font, var(--font-family-base));
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.recur-mode-btn.is-active { background: var(--neutral-0, #fff); color: var(--color-900, #0c2135); box-shadow: var(--shadow, 0 1px 3px rgba(6,15,28,.08)); }
.recur-input-block { display: flex; flex-direction: column; gap: var(--sp-2, 8px); }
.recur-input-block.is-hidden { display: none; }
.recur-row-price {
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
  color: var(--color-600, #1e3a5f);
  margin-left: auto;
  flex-shrink: 0;
}
.recur-wallet-row {
  margin: var(--sp-1, 4px) var(--sp-2, 8px) var(--sp-2, 8px);
  border-radius: var(--radius-sm, 4px);
  padding: var(--sp-1, 4px) var(--sp-2, 8px);
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
}
.recur-wallet-ok   { background: var(--status-confirmed-bg, #ecfdf5); color: var(--status-save-ok-tx, #047857); }
.recur-wallet-warn { background: var(--status-held-bg, #fffbeb);      color: var(--status-held-tx, #b45309); }
.recur-deposit-sub {
  font-size: var(--text-caption, 12px);
  color: var(--neutral-400, #9ca3af);
  font-weight: var(--weight-regular, 400);
}
.recur-row-price--cash {
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
  color: var(--neutral-500, #6b7280);
  margin-left: auto;
  flex-shrink: 0;
  font-style: italic;
}

/* ── Day Recur Bar ──────────────────────────────────────────────────────── */
.day-recur-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2, 8px) var(--container-pad, 32px);
  background: var(--neutral-0, #fff);
  border-bottom: 1px solid var(--neutral-200, #e5e7eb);
}
.day-recur-bar.is-hidden { display: none; }
.day-recur-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2, 8px);
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
  color: var(--color-500, #3a6ea8);
  white-space: nowrap;
}
.day-recur-btn:hover { color: var(--color-700, #2b4d6b); }

/* ── Confirm / Cancel Dialog Helpers ────────────────────────────────────── */
.confirm-money-line     { margin-top: var(--sp-1, 4px); font-size: var(--text-caption, 12px); }
.confirm-notice-text    { font-size: var(--text-caption, 12px); color: var(--neutral-500, #6b7280); margin-top: var(--sp-1, 4px); }
.confirm-notice-info    { color: var(--color-500, #3a6ea8); }
.confirm-tier-badge     { margin-top: var(--sp-3, 16px); padding: var(--sp-2, 8px) var(--sp-3, 16px); border-radius: var(--radius-sm, 4px); font-weight: var(--weight-semibold, 600); font-size: var(--text-caption, 12px); }
.confirm-release-amount { color: var(--color-500, #3a6ea8); }
.confirm-detail-balance-row { border-top: 1px solid var(--neutral-100, #f3f4f6); margin-top: var(--sp-1, 4px); padding-top: var(--sp-1, 4px); }

/* ── Multi-Student Recurring Accordion ──────────────────────────────────── */
.recur-stu-list   { display: flex; flex-direction: column; gap: var(--sp-2, 8px); margin-top: var(--sp-2, 8px); }
.recur-stu-card   { border: 1px solid var(--neutral-200, #e5e7eb); border-radius: var(--radius-sm, 4px); overflow: hidden; }
.recur-stu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-1, 4px) var(--sp-2, 8px);
  background: var(--neutral-0, #fff);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.recur-stu-name  { font-size: var(--text-caption, 12px); font-weight: var(--weight-semibold, 600); color: var(--neutral-900, #111827); }
.recur-stu-count { font-size: var(--text-caption, 12px); font-weight: var(--weight-semibold, 600); }
.recur-stu-body  { background: var(--neutral-50, #f9fafb); border-top: 1px solid var(--neutral-100, #f3f4f6); }

/* ── Search Input ───────────────────────────────────────────────────────── */
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-2, 8px);
}
.search-input-wrap .search-icon {
  position: absolute;
  left: var(--sp-2, 8px);
  color: var(--neutral-400, #9ca3af);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  height: 34px;
  padding: 0 var(--sp-4, 24px) 0 calc(var(--sp-2, 8px) + 16px + var(--sp-1, 4px));
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  background: var(--neutral-50, #f9fafb);
  font-family: var(--font, var(--font-family-base));
  font-size: var(--text-caption, 12px);
  color: var(--neutral-900, #111827);
  outline: none;
  transition: border-color var(--transition, 150ms ease), box-shadow var(--transition, 150ms ease);
}
.search-input::placeholder { color: var(--neutral-400, #9ca3af); }
.search-input:focus {
  border-color: var(--color-400, #5b87cc);
  background: var(--neutral-0, #fff);
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(91,135,204,.35));
}
.search-input-clear {
  position: absolute;
  right: var(--sp-2, 8px);
  width: 18px; height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--neutral-300, #d1d5db);
  color: var(--neutral-0, #fff);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: var(--text-caption, 12px);
  line-height: 1;
  touch-action: manipulation;
  transition: background var(--transition, 150ms ease);
}
.search-input-wrap.has-value .search-input-clear { display: flex; }
.search-input-clear:hover { background: var(--neutral-500, #6b7280); }
.search-empty { font-size: var(--text-caption, 12px); color: var(--neutral-400, #9ca3af); padding: var(--sp-2, 8px) 0; text-align: center; }

/* ── Timezone Offset Badges ─────────────────────────────────────────────── */
.tz-offset-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
  color: var(--color-600, #1e3a5f);
  background: var(--color-50, #f0f4fb);
  border: 1px solid var(--color-200, #bfd7ed);
  border-radius: 10px;
  padding: 1px var(--sp-2, 8px);
  margin-left: var(--sp-1, 4px);
  white-space: nowrap;
  vertical-align: middle;
}
.tz-day-offset {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-caption, 12px);
  font-weight: var(--weight-semibold, 600);
  color: var(--pending-amber-tx, #92400e);
  background: var(--pending-amber-bg, #fffbeb);
  border: 1px solid var(--pending-amber-bd, #fde68a);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: var(--sp-1, 4px);
  white-space: nowrap;
  vertical-align: middle;
}

/* ── Shared Scroll-Up FAB ─────────────────────────────────────
   .scroll-up-fab lebt jetzt in css/scroll-fab.css (oben via @import
   eingebunden), damit schlanke Seiten ohne combined-all.css (index.html)
   sie ebenfalls laden können. Single source, kein Duplikat hier.
   ─────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════
   SAVE-FAB BASE — Pill-förmige Speichern/Verwerfen-Leiste
   Basisklasse für wiederkehrende Speichern-Verwerfen-Aktionen.
   Genutzt von:
     • .profile-save-fab  (teacher-edit-profile, student-edit-profile)
     • .cal-save-fab      (teacher-calendar, student-calendar)
   Sichtbar via .is-visible (JS-gesteuert).
   CSS-Ladereihenfolge: nach tokens → base, vor page-specific CSS.
   ══════════════════════════════════════════════════════════════ */
.save-fab {
    position: fixed;
    bottom: var(--sp-5, 32px);
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    width: fit-content;
    max-width: calc(100vw - 32px);
    z-index: 300;
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.save-fab.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Buttons innerhalb des Pill-Containers */
.save-fab-btn {
    display: flex;
    align-items: center;
    gap: var(--sp-2, 8px);
    border: none;
    padding: 12px var(--sp-4, 24px);
    font-family: inherit;
    font-size: var(--text-body, 16px);
    font-weight: var(--weight-semibold, 600);
    cursor: pointer;
    color: var(--neutral-0); /* WP-4 */
    transition: filter 150ms ease;
    white-space: nowrap;
    min-height: 44px;
}

.save-fab-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
    .save-fab-btn:not(:disabled):hover { filter: brightness(1.1); }
    .save-fab-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
}

/* Verwerfen-Button (links, rot) */
.save-fab-discard {
    background: var(--color-error, #b91c1c);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Speichern-Button (rechts, grün) */
.save-fab-save {
    background: var(--fab-save-bg, #15803d);
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE — components.css (S115)
   Alle neutralen Hintergründe (neutral-0/50/100) und
   Textfarben (neutral-900/800/700/600) auf semantische Tokens
   umgestellt. Primitive Tokens (neutral-0/50/100) bleiben in
   Light-Mode-Regeln, werden hier überschrieben.
   ══════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) and (max-width: 0) { /* Dunkel abgeschaltet 2026-10-10 */
    /* ── Stats Row ── */
    .stat-card {
        background: var(--bg-surface);
        border-color: var(--border-default);
    }
    .stat-label  { color: var(--text-muted); }
    .stat-value  { color: var(--text-primary); }

    /* ── Dashboard Calendar Quick-Link ── */
    .dash-calendar-btn {
        background: var(--bg-surface);
        border-color: var(--border-default);
    }
    @media (hover: hover) and (pointer: fine) {
        .dash-calendar-btn:hover {
            background: var(--neutral-700);
            border-color: var(--neutral-600);
        }
    }

    /* ── Modal (Dialog Box) ── */
    .modal {
        background: var(--bg-surface);
        border-color: var(--border-default);
    }
    .modal-title            { color: var(--text-primary); }
    .modal-close            { color: var(--text-muted); }
    @media (hover: hover) and (pointer: fine) {
        .modal-close:hover  { background: var(--neutral-700); }
    }

    /* ── Login Page ── */
    .login-page             { background: var(--bg-base); }
    .login-card             { background: var(--bg-surface); border-color: var(--border-default); }
    .login-logo, .login-heading { color: var(--text-primary); }
    .login-sub              { color: var(--text-muted); }
    .login-hint             { background: var(--bg-subtle); border-color: var(--border-default); color: var(--text-muted); }
    .login-hint strong      { color: var(--text-primary); }
    .login-hint code        { background: var(--neutral-700); color: var(--neutral-200); }

    /* ── Segmented Control ── */
    .segmented-btn.active   { background: var(--bg-surface); color: var(--text-primary); }

    /* ── Custom Dropdown ── */
    .custom-dropdown-trigger {
        background: var(--bg-surface);
        border-color: var(--border-default);
        color: var(--text-primary);
    }
    .custom-dropdown-list {
        background: var(--bg-surface);
        border-color: var(--border-default);
    }
    .custom-dropdown-item   { color: var(--text-primary); }
    @media (hover: hover) and (pointer: fine) {
        .custom-dropdown-item:hover { background: var(--neutral-700); color: var(--text-primary); }
    }
    .custom-dropdown-search {
        background: var(--bg-surface);
        border-bottom-color: var(--border-default);
    }

    /* ── Form Textarea ── */
    .form-textarea {
        background: var(--bg-surface);
        color: var(--text-primary);
        border-color: var(--border-default);
    }

    /* ── Recur Table Rows ── */
    .recur-row--even        { background: var(--bg-surface); }
    .recur-row--odd         { background: var(--bg-subtle); }
    .recur-td               { color: var(--text-primary); border-top-color: var(--border-default); }

    /* ── Recur Mode Toggle ── */
    .recur-mode-row         { background: var(--bg-subtle); }
    .recur-mode-btn.is-active { background: var(--bg-surface); color: var(--text-primary); }

    /* ── Remove Teacher Slot List ── */
    .remove-teacher-slot-list              { border-color: var(--border-default); }
    .remove-teacher-slot-list li           { border-bottom-color: var(--border-default); color: var(--text-primary); }
    .remove-teacher-slot-list li:nth-child(even) { background: var(--bg-subtle); }
    .remove-teacher-slot-date              { color: var(--text-muted); }
    .remove-teacher-slot-time              { color: var(--text-primary); }

    /* ── Multi-Student Recurring Accordion ── */
    .recur-stu-card         { border-color: var(--border-default); }
    .recur-stu-header       { background: var(--bg-surface); }
    .recur-stu-body         { background: var(--bg-subtle); border-top-color: var(--border-default); }
    .recur-stu-name         { color: var(--text-primary); }
    .recur-list             { border-color: var(--border-default); }

    /* ── Day Recur Bar ── */
    .day-recur-bar          { background: var(--bg-surface); border-bottom-color: var(--border-default); }

    /* ── Search Input ── */
    .search-input           { background: var(--bg-subtle); color: var(--text-primary); border-color: var(--border-default); }
    .search-input:focus     { background: var(--bg-surface); }
}

/* ── „Derzeit nicht verfügbar" (gesperrtes Konto, Sicht der Gegenseite) ──
   Baustein: js/account-unavailable.js createUnavailableBadge(). Neutral —
   keine Warnfarbe, kein „gesperrt" (Antwort 3b). Profil, Chat-Kopf, Lehrerliste.
   PD Sperre-durchsetzen [4e/8], 2026-10-07. */
.account-unavailable-badge {
    display: inline-block;
    margin-left: var(--space-1);
    padding: 1px var(--space-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: var(--text-caption);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
}

