:root {
  --rot: #c62828;
  --rot-dunkel: #8e0000;
  --bg: #eef1f5;
  --karte: #ffffff;
  --text: #1a1f2b;
  --text-mute: #667085;
  --rand: #e2e5eb;
  --gruen: #2e7d32;
  --gelb: #b25b00;
  --orange-bg: #fff3e0;
  --rot-bg: #fdecea;
  --gruen-bg: #e8f5e9;
  --sidebar-bg: #161b28;
  --sidebar-bg-2: #1f2537;
  --sidebar-text: #98a2b8;
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: #2a3247;
}

* { box-sizing: border-box; }

.hidden { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-icon { font-size: 1.5rem; }

.brand-text {
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.sidebar-nav {
  flex: 1;
  padding: 0.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: none;
  color: var(--sidebar-text);
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-radius: 7px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.nav-btn:hover { background: rgba(255,255,255,0.06); color: white; }

.nav-btn.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--rot);
}

.nav-icon { font-size: 1.05rem; width: 1.3rem; text-align: center; }

.sidebar-schnellzugriffe {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-schnellzugriffe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sidebar-text);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.sidebar-schnellzugriffe-header button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-schnellzugriffe-header button:hover { background: rgba(255,255,255,0.2); }

.sidebar-schnellzugriff-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0;
}

.sidebar-schnellzugriff-item a {
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.79rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-schnellzugriff-item a:hover { color: white; text-decoration: underline; }

.sidebar-schnellzugriff-item button {
  background: none;
  border: none;
  color: var(--sidebar-text);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 0.15rem;
  flex-shrink: 0;
}

.sidebar-schnellzugriff-item button:hover { color: white; }

.sidebar-schnellzugriff-leer {
  color: var(--sidebar-text);
  font-size: 0.76rem;
  opacity: 0.7;
}

.sidebar-footer {
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user-name {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

.sidebar-user-role {
  color: var(--sidebar-text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.1rem;
}

.sidebar-logout {
  background: rgba(255,255,255,0.08);
  color: var(--sidebar-text-active);
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.76rem;
  cursor: pointer;
  margin: 0.6rem 0;
  width: 100%;
}

.sidebar-logout:hover { background: rgba(255,255,255,0.16); }

.sidebar-clock {
  color: white;
  font-family: "SF Mono", "Courier New", monospace;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sidebar-date {
  color: var(--sidebar-text);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

/* ---------- Main ---------- */

.main-area {
  flex: 1;
  min-width: 0;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 3rem;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.page-header h2 { margin: 0; font-size: 1.3rem; }

.page-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

h3, h4 { font-size: 1rem; }

.btn-primary {
  background: var(--rot);
  color: white;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-primary:hover { background: var(--rot-dunkel); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: white;
  border: 1px solid var(--rand);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-secondary:hover { background: #f6f7f9; }

.btn-danger {
  background: none;
  border: none;
  color: var(--rot);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25rem 0.45rem;
}

.btn-danger:hover { text-decoration: underline; }

.btn-edit {
  background: none;
  border: none;
  color: #1565c0;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25rem 0.45rem;
}

.btn-edit:hover { text-decoration: underline; }

.view-toggle {
  display: flex;
  border: 1px solid var(--rand);
  border-radius: 6px;
  overflow: hidden;
}

.view-toggle-btn {
  background: white;
  border: none;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text-mute);
}

.view-toggle-btn.active {
  background: var(--rot);
  color: white;
  font-weight: 600;
}

.search-box {
  width: 100%;
  padding: 0.55rem 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rand);
  border-radius: 6px;
  font-size: 0.85rem;
}

/* ---------- Tabelle ---------- */

.table-wrap {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 8px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--rand);
  vertical-align: middle;
}

th {
  background: #f8f9fb;
  font-weight: 600;
  color: var(--text-mute);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }

.empty-row td {
  text-align: center;
  color: var(--text-mute);
  padding: 1.6rem;
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ok { background: var(--gruen-bg); color: var(--gruen); }
.badge-warn { background: var(--orange-bg); color: var(--gelb); }
.badge-danger { background: var(--rot-bg); color: var(--rot-dunkel); }
.badge-neutral { background: #eef0f3; color: var(--text-mute); }

.rolle-badge-admin { background: #fdecea; color: #8e0000; }
.rolle-badge-vorstand { background: #eef2ff; color: #3949ab; }
.rolle-badge-gruppenfuehrer { background: #fff3e0; color: #b25b00; }
.rolle-badge-mitglied { background: #eef0f3; color: var(--text-mute); }

.qual-tag {
  display: inline-block;
  background: #eef2ff;
  color: #3949ab;
  font-size: 0.7rem;
  padding: 0.08rem 0.45rem;
  border-radius: 4px;
  margin: 0.08rem 0.15rem 0.08rem 0;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #dfe3ea;
}

.avatar-placeholder {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dfe3ea;
  color: #667;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- KPI-Karten ---------- */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.stat-card {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.stat-number {
  display: block;
  font-family: "SF Mono", "Courier New", monospace;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--rot);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-mute);
  margin-top: 0.2rem;
}

/* ---------- Panels / Dashboard-Grid ---------- */

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dash-col { display: flex; flex-direction: column; gap: 1rem; }

.panel {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.panel:last-child { margin-bottom: 0; }

.panel-header {
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--rand);
  background: #fafbfc;
}

.warning-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--rand);
  font-size: 0.82rem;
}

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

.warning-empty {
  padding: 1rem;
  color: var(--text-mute);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Diagramme ---------- */

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.chart-holder { padding: 0.9rem; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-axis-line { stroke: var(--rand); stroke-width: 1; }
.chart-axis-label { fill: var(--text-mute); font-size: 9px; }
.chart-value-label { fill: var(--text); font-size: 10px; font-weight: 600; }

.chart-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.82rem;
}

.chart-with-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  flex-wrap: wrap;
}

.chart-with-legend .chart-holder { padding: 0; flex-shrink: 0; }

.donut-svg { width: 160px; height: 160px; }
.donut-center-num { font-size: 26px; font-weight: 700; fill: var(--text); }
.donut-center-label { font-size: 10px; fill: var(--text-mute); }

.chart-legende { flex: 1; min-width: 160px; }

.legende-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.22rem 0;
}

.legende-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legende-label { flex: 1; color: var(--text); }
.legende-value { color: var(--text-mute); font-family: "SF Mono", "Courier New", monospace; font-size: 0.76rem; }

/* ---------- Kalender ---------- */

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.calendar-monat-label { font-weight: 700; font-size: 1rem; min-width: 160px; }

.calendar-legende {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-mute);
}

.calendar-legende span.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.3rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 1rem;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  padding-bottom: 0.2rem;
}

.calendar-day {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 6px;
  min-height: 76px;
  padding: 0.3rem;
  cursor: pointer;
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-day:hover { border-color: var(--rot); }
.calendar-day.ausserhalb { opacity: 0.4; }
.calendar-day.heute { border-color: var(--rot); box-shadow: inset 0 0 0 1px var(--rot); }
.calendar-day.ausgewaehlt { background: #fff6f5; }
.calendar-day-num { font-weight: 700; font-size: 0.78rem; }

.calendar-event {
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.66rem;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-more { font-size: 0.66rem; color: var(--text-mute); }

.tag-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--rand);
  font-size: 0.83rem;
}

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

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,20,0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem;
  overflow-y: auto;
  z-index: 100;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: white;
  border-radius: 10px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.modal.modal-wide { max-width: 780px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--rand);
}

.modal-header h3 { margin: 0; font-size: 1.05rem; }

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-mute);
  line-height: 1;
}

.modal-body { padding: 1.1rem 1.2rem; }

.form-row { margin-bottom: 0.85rem; }

.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 0.28rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--rand);
  border-radius: 6px;
  font-size: 0.86rem;
  font-family: inherit;
}

.form-row textarea { resize: vertical; min-height: 56px; }

.form-row-inline { display: flex; gap: 0.6rem; }
.form-row-inline .form-row { flex: 1; }

.qual-ampel {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.qual-ampel-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
}

.qual-list, .doc-list, .checkliste-box {
  border: 1px solid var(--rand);
  border-radius: 6px;
  padding: 0.55rem;
  margin-bottom: 0.55rem;
}

.qual-list-item, .doc-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.28rem 0;
  font-size: 0.82rem;
  gap: 0.5rem;
}

.qual-list-empty, .doc-list-empty {
  color: var(--text-mute);
  font-size: 0.82rem;
  padding: 0.28rem 0;
}

.checkbox-list {
  border: 1px solid var(--rand);
  border-radius: 6px;
  padding: 0.55rem;
  max-height: 170px;
  overflow-y: auto;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.22rem 0;
  font-size: 0.85rem;
}

.checkbox-item input { width: auto; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.small-btn {
  background: #eef2ff;
  color: #3949ab;
  border: none;
  padding: 0.38rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #dfe3ea;
  flex-shrink: 0;
}

.avatar-preview-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dfe3ea;
  color: #667;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Checkliste (Fahrzeugdetail) ---------- */

.check-item-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rand);
  font-size: 0.85rem;
}

.check-item-row:last-child { border-bottom: none; }
.check-item-text { flex: 1; }

.check-toggle {
  display: flex;
  border: 1px solid var(--rand);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.check-toggle button {
  border: none;
  background: white;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-mute);
}

.check-toggle button.ok-active { background: var(--gruen-bg); color: var(--gruen); font-weight: 700; }
.check-toggle button.nok-active { background: var(--rot-bg); color: var(--rot-dunkel); font-weight: 700; }
.check-toggle button.warn-active { background: var(--orange-bg); color: var(--gelb); font-weight: 700; }

.kontrolle-history-item { border-bottom: 1px solid var(--rand); padding: 0.6rem 0; }
.kontrolle-history-item:last-child { border-bottom: none; }

.kontrolle-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  cursor: pointer;
}

.kontrolle-history-details {
  margin-top: 0.4rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--rand);
  font-size: 0.78rem;
  display: none;
}

.kontrolle-history-details.offen { display: block; }

.kontrolle-detail-row { display: flex; justify-content: space-between; padding: 0.15rem 0; }

/* ---------- Auth-Seiten (Login, Einladung, Passwort) ---------- */

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--sidebar-bg);
  padding: 1.5rem;
}

.auth-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--rot);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.auth-card h2 { margin: 0 0 1.2rem; font-size: 1.2rem; }

.auth-submit { width: 100%; margin-top: 0.3rem; padding: 0.65rem; }

.auth-error {
  background: var(--rot-bg);
  color: var(--rot-dunkel);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.83rem;
  margin-bottom: 1rem;
}

.auth-info {
  background: #eef2ff;
  color: #3949ab;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.83rem;
  margin-bottom: 1rem;
}

.auth-links { margin-top: 1.1rem; text-align: center; font-size: 0.82rem; }
.auth-links a { color: var(--rot); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* ---------- Fotoalben ---------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.album-karte {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.album-karte:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

.album-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eef0f3;
}

.album-cover-leer {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0f3;
  color: var(--text-mute);
  font-size: 2.2rem;
}

.album-info { padding: 0.7rem 0.9rem; }
.album-info h4 { margin: 0 0 0.2rem; font-size: 0.92rem; }
.album-meta { font-size: 0.78rem; color: var(--text-mute); }

.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
}

.foto-karte {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rand);
  background: var(--karte);
}

.foto-karte img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.foto-unterschrift {
  font-size: 0.72rem;
  padding: 0.3rem 0.4rem;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.foto-loeschen {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

/* ---------- Print ---------- */

@media print {
  .sidebar, .page-actions, .search-box, .no-print, .modal-overlay { display: none !important; }
  .main-area { width: 100%; }
  main { max-width: 100%; padding: 0; }
  body { display: block; background: white; }
  .table-wrap { border: none; }
  th { background: white !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .dash-grid, .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; align-items: center; }
  .sidebar-brand { border-bottom: none; padding: 0.7rem 0.9rem; }
  .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 0.5rem; }
  .nav-btn span:last-child { display: none; }
  .sidebar-schnellzugriffe { display: none; }
  .sidebar-footer { display: none; }
  main { padding: 1rem; }
}
