/**
 * FW365 Pages-Layout — Ergänzt style.css App-Shell
 * Komponenten: Card, List, KPI, Pill, Alert, Grid, Form, Page-Header
 */

/* ═══ PAGE HEADER ══════════════════════════════════════════ */
.page-header { margin-bottom: 18px; }
.page-header h1 { font-size: 20px; font-weight: 700; color: var(--t1); letter-spacing: -0.02em; line-height: 1.2; }
.page-header p { font-size: 12.5px; color: var(--t2); margin-top: 3px; }

/* ═══ ALERT STRIP ══════════════════════════════════════════ */
.alert-strip { display: flex; align-items: center; gap: 10px; background: var(--red-bg); border: 1px solid var(--red-border); border-radius: var(--r-md); padding: 9px 13px; margin-bottom: 14px; font-size: 12px; }
.alert-strip--red   { background: var(--red-bg);   border-color: var(--red-border); }
.alert-strip--amber { background: var(--amber-bg);  border-color: rgba(178,80,0,0.2); }
.alert-strip--green { background: var(--green-bg);  border-color: rgba(28,124,58,0.18); }
.alert-strip--info  { background: var(--blue-bg);   border-color: rgba(0,102,204,0.18); }
.alert-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.alert-strip--amber .alert-dot { background: var(--amber); }
.alert-strip--green .alert-dot { background: var(--green); }
.alert-strip--info  .alert-dot { background: var(--blue); }
.alert-text { flex: 1; color: var(--t1); }
.alert-text strong { color: var(--red); font-weight: 600; }
.alert-action { font-size: 11.5px; font-weight: 600; color: var(--t-link); cursor: pointer; white-space: nowrap; text-decoration: none; }

/* ═══ KPI GRID ═════════════════════════════════════════════ */
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px 14px; }
.kpi-label { font-size: 11px; color: var(--t2); font-weight: 500; margin-bottom: 4px; }
.kpi-value { font-size: 26px; font-weight: 700; color: var(--t1); line-height: 1; letter-spacing: -0.025em; }
.kpi-meta  { font-size: 11px; color: var(--t3); margin-top: 4px; }
.kpi.warn .kpi-value { color: var(--red); }
.kpi.ok   .kpi-value { color: var(--green); }
@media (max-width: 1024px) { .kpi-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .kpi-value { font-size: 22px; } }

/* ═══ GRIDS ════════════════════════════════════════════════ */
.grid-2    { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.grid-3    { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 10px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px)  { .grid-2,.grid-3 { grid-template-columns: 1fr; } }

/* ═══ CARD ═════════════════════════════════════════════════ */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 8px; border-bottom: 1px solid var(--border); }
.card-title  { font-size: 12.5px; font-weight: 600; color: var(--t1); }
.card-action { font-size: 11px; font-weight: 600; color: var(--t-link); cursor: pointer; text-decoration: none; }
.card-body   { padding: 4px 0; }

/* ═══ LIST ROWS ════════════════════════════════════════════ */
.list-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 12px; cursor: pointer; transition: background 0.12s; }
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--bg-card-2); }
.list-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.list-dot.red   { background: var(--red);   }
.list-dot.green { background: var(--green); }
.list-dot.amber { background: var(--amber); }
.list-dot.blue  { background: var(--blue);  }
.list-main { flex: 1; color: var(--t1); font-weight: 450; line-height: 1.35; }
.list-sub  { font-size: 10.5px; color: var(--t3); margin-top: 1px; }
.list-meta { font-size: 11px; color: var(--t2); white-space: nowrap; }

/* ═══ PILLS ════════════════════════════════════════════════ */
.pill { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.pill-red   { background: var(--red-bg);   color: var(--red);   }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-blue  { background: var(--blue-bg);  color: var(--blue);  }

/* ═══ SECTION ══════════════════════════════════════════════ */
.section { margin-bottom: 16px; }
.section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.055em; text-transform: uppercase; color: var(--t3); margin-bottom: 8px; }

/* ═══ FLASH ════════════════════════════════════════════════ */
.flash-msg { padding: 9px 13px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 10px; border: 1px solid var(--border); background: var(--bg-card); }
.flash-success { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.flash-error, .flash-danger { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.flash-warning { background: var(--amber-bg); border-color: rgba(178,80,0,.2); color: var(--amber); }
.flash-info    { background: var(--blue-bg);  border-color: rgba(0,102,204,.2); color: var(--blue); }

/* ═══ SEARCH BAR ═══════════════════════════════════════════ */
.search-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.search-bar input { flex: 1; }

/* ═══ FORM INPUTS (global) ════════════════════════════════ */
input[type="text"], input[type="search"], input[type="email"],
input[type="number"], input[type="date"], input[type="datetime-local"],
input[type="time"], select, textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: var(--r-sm);
  font-size: 13px; font-family: inherit;
  color: var(--t1); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
textarea { height: auto; padding: 8px 10px; resize: vertical; }


/* --- Typografie & FlÃ¤che (globale Seiten) --- */
body.pages-theme main.container {
  max-width: min(1100px, 100%);
}

.pages-doc-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--text);
}

.pages-doc-sub {
  font-size: var(--text-subheadline);
  color: var(--muted);
  margin: 0 0 var(--space-lg);
}

/* --- Hero-Bereich: Dashboard & PersÃ¶nlich (gemeinsame Klassen) --- */
.hero-page.dashboard-h365 {
  color: var(--text);
  background: transparent;
}

.hero-page .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(12px, 4vw, 20px);
  width: 100%;
  box-sizing: border-box;
}

.hero-page .card,
.dashboard-h365 .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: clamp(12px, 3vw, 16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: clamp(12px, 3vw, 20px);
}

.dashboard-h365 .welcome-banner {
  background: var(--hero-gradient, linear-gradient(135deg, #0056b3 0%, #007aff 100%));
  color: #fff;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px);
  margin-bottom: clamp(16px, 3vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-h365 .welcome-banner h1 {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 800;
  margin: 0;
}

.dashboard-h365 .welcome-banner p {
  opacity: 0.85;
  margin: 4px 0 0;
  font-size: clamp(13px, 3vw, 15px);
}

.dashboard-h365 .welcome-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.dashboard-h365 .welcome-stat {
  text-align: center;
}

.dashboard-h365 .welcome-stat-value {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  line-height: 1;
}

.dashboard-h365 .welcome-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.dashboard-h365 .metric-grid {
  display: grid;
  gap: clamp(10px, 2vw, 14px);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: clamp(16px, 3vw, 24px);
}

@media (min-width: 640px) {
  .dashboard-h365 .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .dashboard-h365 .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dashboard-h365 .metric-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(12px, 2.5vw, 16px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
  min-height: 80px;
}

.dashboard-h365 .metric-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.personal-page .metric-grid {
  gap: clamp(8px, 1.5vw, 12px);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .personal-page .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.personal-page .metric-card {
  min-height: 72px;
  padding: clamp(10px, 2vw, 14px);
  border-radius: clamp(8px, 2vw, 10px);
  transition: box-shadow 0.12s, border-color 0.12s;
}

.personal-page .metric-card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-h365 .metric-card .metric-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--brand);
  background: var(--ring, rgba(0, 122, 255, 0.12));
  border-radius: 10px;
}

.personal-page .metric-card .metric-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  background: transparent;
  border-radius: 0;
}

.dashboard-h365 .metric-card .metric-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-h365 .metric-card .metric-title {
  font-size: clamp(10px, 2.2vw, 11px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.personal-page .metric-card .metric-title {
  font-size: clamp(10px, 2.2vw, 12px);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.dashboard-h365 .metric-card .metric-value {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.dashboard-h365 .metric-card .metric-arrow {
  margin-top: auto;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
}

.dashboard-h365 .section-title {
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-h365 .section-title svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

/* PersÃ¶nlich: Listen, Chips, Modal */
.hero-page .list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-page .item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 12px);
  padding: clamp(10px, 2.5vw, 12px) clamp(4px, 1vw, 8px);
  border-bottom: 1px solid var(--border);
}

.hero-page .item:last-child {
  border-bottom: 0;
}

.hero-page .item-title {
  font-weight: 700;
  font-size: clamp(14px, 3.5vw, 16px);
}

.hero-page .item-meta {
  font-size: clamp(11px, 2.5vw, 12px);
  color: var(--muted);
}

.hero-page .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(118, 118, 128, 0.08);
  text-decoration: none;
  color: inherit;
  font-size: clamp(12px, 3vw, 14px);
  min-height: 32px;
}

.hero-page .chip:hover {
  border-color: var(--brand);
}

.hero-page .btn {
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: clamp(13px, 3.5vw, 15px);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-stack);
}

.hero-page .btn-solid {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.hero-page .btn-outline {
  background: var(--card);
}

.hero-page .select,
.hero-page input[type="text"] {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(118, 118, 128, 0.12);
  padding: 0 12px;
  font-size: clamp(14px, 3.5vw, 16px);
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-stack);
  color: var(--text);
}

.hero-page .grid {
  display: grid;
  gap: clamp(12px, 3vw, 16px);
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .hero-page .grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero-page .modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  padding: 16px;
  overflow-y: auto;
}

.hero-page .modal.is-visible {
  display: grid;
}

.hero-page .modal-card {
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.hero-page .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.nav-icon-svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand);
}

@media (prefers-color-scheme: dark) {
  .dashboard-h365 {
    --text: #f2f2f7;
    --muted: #aeaeb2;
    --bg: #1c1c1e;
    --card: #2c2c2e;
    --border: #3a3a3c;
    --ring: rgba(0, 122, 255, 0.25);
  }

  .dashboard-h365 .welcome-banner {
    background: linear-gradient(135deg, #1c1c1e 0%, #0056b3 100%);
  }

  .hero-page .btn {
    background: var(--card);
    color: var(--text);
  }
}

/* --- Kalender (kalender.html) --- */
.cal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.cal-views {
  display: flex;
  gap: 4px;
}

.cal-views .btn {
  padding: 6px 14px;
  font-size: 13px;
}

.cal-views .btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.cal-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cal-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.cal-day-grid {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 960px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}

.cal-day-times {
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.cal-day-times span {
  display: block;
  height: 60px;
  font-size: 11px;
  color: var(--muted);
  padding: 2px 6px;
}

.cal-day-slots {
  position: relative;
  background: var(--card);
}

.cal-day-slot {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  border-bottom: 1px solid var(--separator);
}

.cal-day-events {
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  bottom: 0;
}

.cal-ev {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--info-bg);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  overflow: hidden;
  font-size: 12px;
}

.cal-ev strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-ev small {
  color: var(--muted);
}

.cal-week-grid {
  display: grid;
  grid-template-columns: 48px repeat(7, 1fr);
  min-height: 960px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}

.cal-week-day {
  border-right: 1px solid var(--border);
  min-width: 0;
}

.cal-week-day:last-child {
  border-right: none;
}

.cal-week-header {
  display: grid;
  grid-template-columns: 48px repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
}

.cal-week-header > div {
  padding: 8px;
  text-align: center;
  font-weight: 500;
}

.cal-week-header .day-num {
  font-size: 11px;
  color: var(--muted);
}

.cal-week-body {
  display: grid;
  grid-template-columns: 48px repeat(7, 1fr);
  flex: 1;
}

.cal-week-col {
  position: relative;
  min-height: 960px;
  height: 960px;
  border-right: 1px solid var(--separator);
}

.cal-week-col:last-child {
  border-right: none;
}

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}

.cal-month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.cal-month-cell {
  min-height: 100px;
  border-right: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  padding: 4px;
  overflow: hidden;
}

.cal-month-cell:nth-child(7n) {
  border-right: none;
}

.cal-month-cell.other-month {
  background: var(--bg);
  color: var(--muted);
}

.cal-month-cell.today {
  background: var(--info-bg);
}

.cal-month-cell .day-num {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cal-month-ev {
  font-size: 11px;
  padding: 2px 6px;
  margin-bottom: 2px;
  background: var(--info-bg);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-error-banner {
  background: var(--danger-bg);
  border: 1px solid rgba(255, 59, 48, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  color: var(--danger-text);
}

/* --- Login (index.html) --- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: clamp(16px, 4vw, 32px);
}

.login-card {
  background: var(--card);
  border: none;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 6vw, 48px);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.login-card .login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--hero-gradient, linear-gradient(180deg, #007aff 0%, #0056b3 100%));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card .login-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.login-card h1 {
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--text);
}

.login-card .login-subtitle {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: var(--text-body);
}

.login-card .btn-ms-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  min-height: 52px;
  font-family: var(--font-stack);
}

.login-card .btn-ms-login:hover {
  filter: brightness(0.95);
  text-decoration: none;
}

.login-card .btn-ms-login svg {
  width: 20px;
  height: 20px;
}

.login-card .login-domain {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-solid);
}

.login-card .login-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-card .login-links a {
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
}

.login-card .login-links a:hover {
  text-decoration: underline;
}

.login-card .login-divider {
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-solid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.login-card .login-divider::before,
.login-card .login-divider::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: var(--separator);
}

.login-card .btn-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--text);
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s;
  font-family: var(--font-stack);
}

.login-card .btn-demo:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

/* ═══ SUB-NAVIGATION ═══════════════════════════════════════ */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px 8px;
}
.subnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.subnav a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.subnav a:hover {
  background: var(--bg-card-2);
  color: var(--t1);
}
.subnav a.active {
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 600;
}

.login-card .error-box {
  background: var(--danger-bg);
  border: 0.5px solid rgba(255, 59, 48, 0.35);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  color: var(--danger-text);
  font-size: 14px;
  text-align: left;
}

/* ═══ DARK MODE EXPLIZIT ══════════════════════════════════════
   Alle Tokens sind in style.css :root definiert.
   Hier nur Komponenten die statische Farben statt Tokens nutzen.
   ═══════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  /* KPI-Karte */
  .kpi { background: var(--bg-card); border-color: var(--border); }
  .kpi-label { color: var(--t2); }
  .kpi-value { color: var(--t1); }
  .kpi-meta  { color: var(--t3); }

  /* Card */
  .card { background: var(--bg-card); border-color: var(--border); }
  .card-title { color: var(--t1); }

  /* List */
  .list-row { border-color: var(--border); }
  .list-row:hover { background: var(--bg-card-2); }
  .list-main { color: var(--t1); }
  .list-sub  { color: var(--t3); }

  /* Alert Strip */
  .alert-text { color: var(--t1); }

  /* Pill */
  .pill { border-color: var(--border); }

  /* Form Inputs */
  .form-input, .form-select, .form-textarea {
    background: var(--bg-card-2);
    color: var(--t1);
    border-color: var(--border-med);
  }
  .form-label { color: var(--t2); }

  /* Bottom Nav */
  .bottom-nav { background: var(--topbar-bg); border-color: var(--border); }
  .bn-item { color: var(--t3); }
  .bn-item.active { color: var(--blue); }
}

/* ═══ MOBILE RESPONSIVE ═══════════════════════════════════════ */
@media (max-width: 600px) {
  /* KPI Zahlen auf Mobile kleiner */
  .kpi-value { font-size: 20px; }
  /* Cards voller Breite */
  .card { border-radius: var(--r-md); }
  /* Alert-Text kürzer */
  .alert-action { display: none; }
}
