/* DigiCheck24 Demo-Portal – optisch wie stationsleiter_dashboard.php */

:root {
  --digi-yellow: #FFD700;
  --digi-navy: #0C2340;
  --win-border: #767676;
  --win-bg: #f0f0f0;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--win-bg);
  color: #000;
  font-size: 13px;
  line-height: 1.4;
  padding-bottom: 44px;
}

/* Demo-Hinweis – dezent wie sl-flash-info, nicht grell rot */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100000;
  background: #eff6ff; color: #1e3a5f; text-align: center;
  font-size: 12px; font-weight: 600; padding: 7px 12px;
  border-bottom: 1px solid #93c5fd;
}
body.has-demo-banner { padding-top: 32px; }
body.has-demo-banner .sidebar { top: 32px !important; height: calc(100vh - 32px) !important; height: calc(100dvh - 32px) !important; }

/* ── Sidebar (stationsleiter_navi.php) ── */
.sidebar {
  width: 240px !important; background: #0C2340 !important; color: white !important;
  padding: 15px 15px 52px 15px !important; position: fixed !important;
  height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; z-index: 9999;
  left: 0 !important; top: 0 !important;
  box-shadow: 4px 0 15px rgba(0,0,0,0.25);
}
.nav-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin-right: -4px; padding-right: 4px; }
.nav-content::-webkit-scrollbar { width: 5px; }
.nav-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.logo-area {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo-check { width: 45px; height: 45px; object-fit: contain; border-radius: 8px; }
.dc-brand-lines { display: flex; flex-direction: column; line-height: 1.2; gap: 1px; }
.dc-brand-line { display: block; color: #ffcb05; }
.dc-brand-line--1 { font-size: 17px; font-weight: 700; }
.dc-brand-line--2 { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-align: center; }
.dc-brand-line--3 { font-size: 11px; font-weight: 500; text-align: center; }

.toggle-all-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px; margin-bottom: 10px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  color: #7f8c8d; font-size: 11px; cursor: pointer;
}
.toggle-all-btn:hover { background: rgba(255,255,255,0.1); color: #ffcb05; }

.nav-btn {
  display: flex; align-items: center; gap: 12px; padding: 10px 15px;
  color: #ecf0f1; text-decoration: none; border-radius: 8px; font-size: 14px;
  margin-bottom: 4px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.06); transition: background .2s, border-color .2s;
}
.nav-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); color: #fff; }
.nav-btn.active {
  background: #0C2340 !important; color: #fff !important; font-weight: 600;
  border-color: rgba(255,203,5,0.35);
}
.nav-icon { font-size: 20px; width: 24px; text-align: center; flex-shrink: 0; }
.msg-badge {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: #e74c3c; color: #fff;
  font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.pre-badge { background: #ffcb05; color: #0C2340; font-size: 9px; padding: 2px 5px; border-radius: 4px; font-weight: 800; margin-left: 5px; }

.nav-cat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 10px; color: #95a5a6; font-size: 11px; font-weight: 700;
  text-transform: uppercase; margin-top: 12px; cursor: pointer;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); user-select: none;
}
.nav-cat-header:hover { background: rgba(255,255,255,0.05); color: #ecf0f1; }
.nav-cat-arrow { font-size: 10px; transition: transform 0.3s; }
.nav-cat-header.collapsed .nav-cat-arrow { transform: rotate(-90deg); }
.nav-cat-content { max-height: 800px; overflow: hidden; transition: max-height 0.3s, opacity 0.3s; opacity: 1; }
.nav-cat-content.collapsed { max-height: 0; opacity: 0; }

.nav-systemtools-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.15); }
.nav-systemtools-head-sl {
  width: 100%; text-align: left; background: transparent; border: 0; color: #95a5a6;
  padding: 8px 10px; cursor: pointer; display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700; text-transform: uppercase; font-family: inherit;
}
.nav-systemtools-panel-sl[hidden] { display: none !important; }

.sidebar-footer { flex-shrink: 0; margin: 8px -15px 0; padding: 10px 15px 6px; border-top: 1px solid rgba(255,255,255,0.12); }
.sidebar-footer-user { display: flex; gap: 10px; margin-bottom: 8px; align-items: center; }
.sidebar-footer-avatar {
  width: 36px; height: 36px; border-radius: 6px;
  background: rgba(255,203,5,0.18); border: 1px solid rgba(255,203,5,0.35);
  color: #ffcb05; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-footer-station-label { font-size: 10px; color: rgba(255,255,255,0.45); text-transform: uppercase; }
.sidebar-footer-station-name { font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-footer-person { font-size: 11px; color: rgba(255,255,255,0.55); }
.sidebar-footer-logout {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 27px; font-size: 13px; color: #1a1a1a; background: #ececec;
  border: 1px solid #767676; border-radius: 2px; text-decoration: none;
}
.sidebar-footer-legal { display: flex; justify-content: center; gap: 8px; margin-top: 8px; font-size: 11px; }
.sidebar-footer-legal a { color: rgba(255,255,255,0.62); text-decoration: none; }

.dc-footer {
  position: fixed; bottom: 0; left: 240px; right: 0; height: 44px;
  background: #0C2340; color: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; z-index: 9998; box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.dc-footer a { color: #ffcb05; text-decoration: none; }

/* ── Main ── */
.main-wrapper { margin-left: 256px; padding: 0 16px 24px; max-width: 1540px; box-sizing: border-box; }
.dashboard-stack { display: flex; flex-direction: column; gap: 12px; }

/* ── Top-Bar (CI) ── */
.top-bar {
  background: #0C2340; color: #FFD700; padding: 12px 22px; border-radius: 10px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 12px; margin-bottom: 12px; min-height: 72px;
}
.top-bar-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.top-bar-logo { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; flex: 0 0 auto; }
.top-bar h1 { margin: 0; font-size: 30px; font-weight: 500; color: #FFD700; line-height: 1; }
.top-bar-station { font-size: 15px; font-weight: 500; margin-top: 5px; color: #FFD700; }
.top-bar-center { text-align: center; pointer-events: none; justify-self: center; }
.top-bar-center-logo { width: 200px; max-width: min(42vw, 260px); height: auto; object-fit: contain; }
.top-bar-right { text-align: right; justify-self: end; color: #FFD700; white-space: nowrap; }
.top-bar-time, .top-bar-date { font-size: 17px; font-weight: 500; line-height: 1.1; color: #FFD700; }

/* ── Info-Zeile ── */
.info-bar {
  background: #fff; border: 1px solid var(--win-border); padding: 8px 12px;
  margin-bottom: 12px; display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600;
}
.info-chip { display: flex; align-items: center; gap: 7px; color: #444; }
.info-chip .badge {
  background: var(--digi-navy); color: #FFD700; padding: 2px 8px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--win-border);
}
.info-chip.birthday .badge { background: #f3e8ff; color: #6b21a8; border-color: #9333ea; }
a.info-chip-link { text-decoration: none; color: inherit; border-radius: 2px; transition: background .15s; }
a.info-chip-link:hover { background: #e5f1fb; }
.info-chip.muted { opacity: 0.55; }

/* ── Karten ── */
.card {
  background: #fff; border: 1px solid var(--win-border);
  padding: 12px 14px; margin-bottom: 12px;
}
.card-h2 { margin: 0; font-size: 14px; font-weight: 600; color: #000; }
.card-sub { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.card-head {
  display: flex; flex-direction: column; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid #d4d4d4;
}
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bl-card { border-left: 3px solid var(--digi-yellow); }

/* ── MHD-Ampel ── */
.mhd-ampel-card {
  background: #fff; border: 1px solid var(--win-border);
  border-left: 3px solid var(--digi-yellow); padding: 12px 14px; margin-bottom: 12px;
}
.mhd-ampel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.mhd-ampel-title { margin: 0; font-size: 14px; font-weight: 600; }
.mhd-ampel-sub { font-size: 11px; color: #64748b; }
.mhd-alert-banner {
  padding: 8px 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid #fecaca; color: #991b1b; background: #fde7e9;
}
.mhd-alert-banner.ok { border-color: #107c10; color: #0f5132; background: #dff6dd; }
.mhd-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.mhd-kpi { border: 1px solid var(--win-border); padding: 8px 10px; background: #fff; min-width: 0; }
.mhd-kpi .num { font-size: 22px; font-weight: 700; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.mhd-kpi .label { font-size: 10px; font-weight: 600; text-transform: uppercase; color: #444; }
.mhd-kpi.red { border-left: 3px solid #a80000; } .mhd-kpi.red .num { color: #a80000; }
.mhd-kpi.yellow { border-left: 3px solid #ca8a04; } .mhd-kpi.yellow .num { color: #92400e; }
.mhd-kpi.green { border-left: 3px solid #107c10; } .mhd-kpi.green .num { color: #107c10; }
.mhd-kpi.total { border-left: 3px solid #0078d4; } .mhd-kpi.total .num { color: #0078d4; }
.mhd-kpi.red.critical { box-shadow: 0 0 0 1px #a80000; animation: mhdPulse 1.6s ease-in-out infinite; }
@keyframes mhdPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.mhd-ampel-bars { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #f1f5f9; margin-bottom: 8px; }
.mhd-seg-red { background: #ef4444; } .mhd-seg-yellow { background: #f59e0b; } .mhd-seg-green { background: #22c55e; }
.mhd-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; font-weight: 700; color: #334155; }
.mhd-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* ── Backliste / Verderb Balken ── */
.bl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bl-title { margin: 0; font-size: 14px; font-weight: 600; }
.bl-sub { font-size: 11px; color: #64748b; margin-top: 2px; }
.bl-count-badge { background: var(--digi-navy); color: #FFD700; font-size: 12px; font-weight: 600; padding: 3px 10px; border: 1px solid var(--win-border); }
.bl-total-chip { background: #fff4ce; color: #78350f; border: 1px solid #ca8a04; font-size: 12px; font-weight: 600; padding: 3px 10px; }
.blc-hint { font-size: 12px; color: #6b7280; font-weight: 600; margin-bottom: 12px; }
.blc-chart { display: grid; grid-template-columns: max-content 1fr; align-items: center; row-gap: 7px; column-gap: 14px; }
.blc-label { text-align: right; white-space: nowrap; font-weight: 700; font-size: 13px; color: #1f2937; cursor: pointer; }
.blc-label:hover { color: #b45309; }
.blc-barcell { display: flex; align-items: center; gap: 9px; cursor: pointer; min-width: 0; }
.blc-bar { height: 18px; border-radius: 5px; min-width: 4px; transition: width .35s ease; }
.blc-val { font-weight: 800; font-size: 12.5px; color: #374151; white-space: nowrap; }
.blc-detail { display: none; grid-column: 1 / -1; margin: -2px 0 6px; padding: 8px 12px; background: #fafbfc; border-left: 3px solid #ffcb05; border-radius: 6px; }
.blc-occ { display: flex; align-items: center; gap: 12px; font-size: 12.5px; padding: 4px 0; border-bottom: 1px dashed #eef0f3; }
.blc-occ:last-child { border-bottom: 0; }
.blc-occ-time { font-weight: 800; color: #1f2937; }
.blc-occ-name { flex: 1; color: #6b7280; font-weight: 600; }
.blc-occ-menge { font-weight: 800; color: #92500a; background: #fff3cd; padding: 1px 10px; border-radius: 6px; }
.bl-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef0f3; }
.bl-link { font-size: 12px; font-weight: 600; color: #0066cc; text-decoration: none; }
.bl-link:hover { text-decoration: underline; }
.bl-live-hint { font-size: 11px; color: #9ca3af; font-weight: 700; }
.bl-live-hint::before { content: "🟢 "; }

/* ── Windows Controls ── */
.switcher { display: inline-flex; border: 1px solid #adadad; border-radius: 2px; overflow: hidden; background: #f0f0f0; }
.sw-btn {
  border: none; border-right: 1px solid #adadad; padding: 5px 14px;
  font-size: 14px; font-family: inherit; cursor: pointer; background: #f0f0f0; color: #000;
}
.sw-btn:last-child { border-right: none; }
.sw-btn.active { background: #cce4f7; }
.btn-win {
  display: inline-block; padding: 5px 16px; font-size: 14px; font-family: inherit;
  border-radius: 2px; border: 1px solid #adadad; background: #f0f0f0; color: #000;
  cursor: pointer; text-decoration: none; box-shadow: inset 0 0 0 1px #fff;
}
.btn-win:hover { background: #e5f1fb; border-color: #0078d4; }
select { padding: 5px 10px; border: 1px solid #adadad; font-size: 14px; font-family: inherit; background: #fff; }
.win-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ui-group { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }

/* ── KPI ── */
.sl-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sl-kpi { background: #fff; border: 1px solid var(--win-border); padding: 8px 10px; border-top: 3px solid #767676; }
.sl-kpi small { display: block; font-size: 11px; color: #444; margin-bottom: 4px; font-weight: 600; }
.sl-kpi strong { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sl-kpi-meta { font-size: 11px; color: #64748b; margin-top: 4px; }
.chart-box-flat { border: none; padding: 0; background: transparent; }
.card-title-row.start { align-items: flex-start; }
.sl-kpi.ok { border-top-color: #107c10; }
.sl-kpi.info { border-top-color: #0078d4; }
.sl-kpi.warn { border-top-color: #a80000; }
.sl-kpi.accent { border-top-color: #ca8a04; }

.chart-box { width: 100%; margin-top: 10px; border: 1px solid var(--win-border); padding: 12px; background: #fff; }
.chart-h260 { height: 260px; position: relative; }

/* ── Tabellen ── */
.demo-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.demo-table th, .demo-table td { border: 1px solid #e5e5e5; padding: 6px 10px; text-align: left; }
.demo-table th { background: var(--digi-navy); color: var(--digi-yellow); font-weight: 600; }
.demo-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.hub-intro { font-size: 13px; color: #444; line-height: 1.5; margin-bottom: 12px; }
.hub-intro strong { color: #000; }

.sl-alert-warn {
  margin: 0 0 12px; padding: 8px 12px; border: 1px solid #ca8a04;
  background: #fff4ce; color: #78350f; font-size: 13px; font-weight: 600;
}
.sl-panel { background: #fff; border: 1px solid var(--win-border); padding: 12px 14px; margin-top: 12px; }
.sl-panel-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.sl-summary-bar {
  margin-top: 12px; background: #fafafa; border: 1px solid var(--win-border);
  padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-size: 13px; font-weight: 600; color: #444;
}
.sl-summary-bar span { color: #000; font-weight: 700; }
.kf-wetter-wrap { margin-top: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--win-border); }
.kf-wetter-label { font-size: 12px; color: #64748b; margin-bottom: 8px; font-weight: 600; }
.kf-wetter-grid { display: grid; gap: 4px; width: 100%; }
.kf-wetter-day { text-align: center; padding: 4px 2px; background: #fff; border: 1px solid #d4d4d4; font-size: 10px; }
.kf-wetter-day-n { font-weight: 600; }
.hm-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.hm-dot { width: 14px; height: 14px; display: inline-block; border: 1px solid rgba(0,0,0,.15); vertical-align: middle; margin-right: 4px; }
.hm-dot.green { background: #107c10; } .hm-dot.yellow { background: #ca8a04; } .hm-dot.red { background: #a80000; }
.hm-scroll { overflow-x: auto; }
.hm-table { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 12px; text-align: center; }
.hm-table th, .hm-table .hm-row-label { background: #fafafa; padding: 6px; text-align: left; font-weight: 600; border: 1px solid #d4d4d4; }
.hm-table td { padding: 6px 4px; border: 1px solid #d4d4d4; font-weight: 600; }
.hm-low { background: #dff6dd; } .hm-mid { background: #fff4ce; } .hm-high { background: #fde7e9; color: #991b1b; }
.layout-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin: 4px 0 8px; }
.win-input { padding: 4px 6px; border: 1px solid var(--win-border); font: inherit; font-size: 13px; }
.sl-kpi.neutral { border-top-color: #767676; }
.sl-empty { text-align: center; padding: 40px 12px; color: #64748b; font-weight: 600; }
.chart-hint { margin-top: 8px; color: #64748b; font-size: 12px; text-align: center; }

.demo-page-intro {
  background: #eff6ff; border: 1px solid #93c5fd; padding: 10px 14px;
  margin-bottom: 12px; font-size: 13px; color: #1e3a5f;
}

/* Aufgaben Center (wie aufgaben_center.php) */
.ac-kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 12px;
}
.ac-team-kpi { margin-top: 8px; }
.kpi-card {
  background: #fff; border: 1px solid var(--win-border); padding: 10px 12px;
  border-top: 3px solid #767676;
}
.kpi-card .k-label { font-size: 11px; color: #64748b; font-weight: 600; margin-bottom: 4px; }
.kpi-card .k-value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-blue { border-top-color: #0078d4; }
.kpi-yellow { border-top-color: #ca8a04; }
.kpi-green { border-top-color: #107c10; }
.kpi-purple { border-top-color: #5b2d82; }
.kpi-red { border-top-color: #a80000; }
.kpi-orange { border-top-color: #d97706; }
.filter-box .filter-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 10px;
}
.filter-field-inline { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.filter-field-inline label { font-size: 11px; font-weight: 600; color: #444; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.export-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn-win, .link-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 27px; padding: 0 14px; font: inherit; font-size: 12px; font-weight: 600;
  border: 1px solid var(--win-border); background: #ececec; color: #000;
  cursor: default; border-radius: 0; text-decoration: none;
}
.btn-win-primary { background: var(--digi-navy); color: var(--digi-yellow); border-color: var(--digi-navy); }
.kanban-board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start;
}
.kanban-spalte {
  background: #fafafa; padding: 10px 12px; min-height: 100px;
  border: 1px solid var(--win-border); border-top-width: 3px;
}
.kanban-spalte.k-offen { border-top-color: #0078d4; }
.kanban-spalte.k-in_bearbeitung { border-top-color: #ca8a04; }
.kanban-spalte.k-erledigt { border-top-color: #107c10; }
.kanban-spalte.k-abgelehnt { border-top-color: #767676; }
.kanban-spalte-titel {
  font-size: 13px; font-weight: 600; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.kanban-count {
  background: var(--digi-navy); color: var(--digi-yellow); min-width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; padding: 0 6px; border: 1px solid var(--win-border);
}
.aufgabe-card-k {
  background: #fff; border: 1px solid var(--win-border); padding: 10px 12px; margin-bottom: 8px;
}
.aufgabe-card-k.ueberfaellig-k { border-left: 3px solid #a80000; }
.auk-titel { font-weight: 700; margin-bottom: 4px; }
.auk-meta { font-size: 11px; color: #64748b; }
.badge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 2px; }
.badge-prio-hoch { background: #fee2e2; color: #991b1b; }
.badge-prio-dringend { background: #fecaca; color: #7f1d1d; }
.badge-prio-mittel { background: #fef3c7; color: #92400e; }
.badge-prio-niedrig { background: #e0f2fe; color: #0c4a6e; }
.kanban-empty { font-size: 12px; color: #94a3b8; text-align: center; padding: 16px 8px; }
.demo-form-2col {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px;
}
.demo-form-full { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
  .demo-form-2col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kanban-board { grid-template-columns: 1fr; }
}

/* Verfügbare Module (wie stationsleiter_module.php) */
.header-controls {
  display: flex; justify-content: flex-end; align-items: center;
  margin-bottom: 12px; gap: 8px; flex-wrap: wrap;
}
.upgrade-hint {
  background: #eff6ff; color: #1e3a5f; padding: 10px 12px;
  border: 1px solid #93c5fd; margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.upgrade-hint-icon { font-size: 28px; flex-shrink: 0; }
.upgrade-hint-text h3 { margin-bottom: 4px; font-size: 14px; font-weight: 600; color: #1e3a5f; }
.upgrade-hint-text p { font-size: 13px; line-height: 1.45; color: #334155; margin: 0; }
.module-start-hint {
  background: #fff4ce; border: 1px solid #ca8a04; color: #78350f;
  padding: 10px 12px; margin-bottom: 12px;
  display: flex; align-items: flex-start; gap: 12px;
}
.module-start-hint-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.module-start-hint-text h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #78350f; }
.module-start-hint-text p { margin: 0; font-size: 13px; line-height: 1.5; }
.section.mod-section {
  background: #fff; padding: 12px 14px; margin-bottom: 12px;
  border: 1px solid var(--win-border);
}
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #d4d4d4;
  flex-wrap: wrap; gap: 8px;
}
.section-title { font-size: 14px; color: #000; font-weight: 600; margin: 0; }
.section-badge {
  background: var(--digi-navy); color: var(--digi-yellow);
  padding: 2px 8px; font-size: 11px; font-weight: 600; border: 1px solid var(--win-border);
}
.module-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px; align-items: stretch;
}
.module-card {
  background: #fff; border: 1px solid var(--win-border);
  border-left: 3px solid var(--digi-yellow); padding: 14px;
  position: relative; min-height: 280px; display: flex; flex-direction: column;
}
.module-card:hover { border-left-color: var(--digi-yellow); }
.module-card-body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.module-icon {
  margin-bottom: 12px; height: 50px; flex: 0 0 50px;
  display: flex; align-items: center; font-size: 42px; line-height: 1;
}
.module-name { font-size: 14px; font-weight: 600; color: #000; margin-bottom: 6px; line-height: 1.3; min-height: 2.6em; }
.module-meta { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.module-meta span { display: inline-block; margin-right: 12px; }
.module-beschreibung { font-size: 13px; color: #444; line-height: 1.45; flex: 1 1 auto; }
.module-actions {
  margin-top: auto; padding-top: 14px;
  display: grid; grid-template-rows: auto auto; gap: 8px;
}
.module-btn {
  width: 100%; box-sizing: border-box; padding: 6px 14px;
  font-size: 14px; font-weight: 400; text-decoration: none; cursor: pointer;
  border: 1px solid #adadad; background: #f0f0f0; color: #000;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  box-shadow: inset 0 0 0 1px #fff; border-radius: 2px;
}
.module-btn:hover { background: #e5f1fb; border-color: #0078d4; color: #000; }
.module-card .badge.badge-success {
  position: absolute; top: 10px; right: 10px;
  padding: 2px 8px; font-size: 10px; font-weight: 600; text-transform: uppercase;
  background: #dff6dd; color: #107c10; border: 1px solid #107c10;
}
.modal {
  display: none; position: fixed; inset: 0; z-index: 100001;
  background: rgba(0,0,0,0.35); align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
  background: #fff; padding: 16px 18px; max-width: 520px; width: 90%;
  max-height: 90vh; overflow-y: auto; border: 1px solid var(--win-border);
}
.modal-header {
  font-size: 14px; font-weight: 600; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid #d4d4d4;
}
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 5px 9px; border: 1px solid var(--win-border); font: inherit; font-size: 13px;
}
.icon-tabs { display: flex; margin-bottom: 10px; border: 1px solid var(--win-border); }
.icon-tab {
  padding: 5px 14px; background: #f0f0f0; border-right: 1px solid var(--win-border);
  font-size: 13px; cursor: default;
}
.icon-tab.active { background: #cce4f7; }
.icon-picker {
  display: flex; flex-wrap: wrap; gap: 6px; max-height: 160px; overflow-y: auto;
  padding: 8px; background: #fafafa; border: 1px solid var(--win-border);
}
.icon-option {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: 1px solid #d4d4d4; background: #fff; cursor: pointer;
}
.icon-option:hover { border-color: #0078d4; background: #e5f1fb; }
.icon-option.selected { border-color: #0078d4; background: #cce4f7; }
.icon-hint { font-size: 12px; color: #64748b; margin-top: 4px; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.demo-toast {
  position: fixed; bottom: 52px; left: 50%; transform: translateX(-50%);
  background: var(--digi-navy); color: var(--digi-yellow); padding: 10px 18px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--win-border);
  z-index: 100002; max-width: min(520px, 92vw); text-align: center;
}
.btn-demo {
  flex: 1; text-align: center; padding: 8px 10px; border: 1px solid var(--win-border);
  background: #ececec; font-size: 12px; font-weight: 600; text-decoration: none; color: #1a1a1a; border-radius: 2px;
}
.btn-demo-primary { background: var(--digi-navy); color: var(--digi-yellow); border-color: var(--digi-navy); }

/* ── Demo v2: Handbuch, MHD, Team, Schicht, … ── */
.pre-module-banner {
  background: #e5f1fb; border: 1px solid #0078d4; padding: 10px 12px;
  margin-bottom: 12px; font-size: 13px; color: #1e3a5f;
}
.pre-badge-inline {
  background: var(--digi-yellow); color: #000; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border: 1px solid #ca8a04; margin-right: 6px;
}
.dot-red { color: #a80000; font-weight: 700; }
.dot-yellow { color: #ca8a04; font-weight: 700; }
.dot-green { color: #107c10; font-weight: 700; }
.status-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border: 1px solid #d4d4d4; background: #fafafa; }
.status-pill.ok { background: #dff6dd; color: #107c10; border-color: #107c10; }
.status-pill.run { background: #e5f1fb; color: #0078d4; border-color: #0078d4; }
.status-pill.warn { background: #fff4ce; color: #92400e; border-color: #ca8a04; }
.hb-layout { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: start; }
.hb-sidebar { background: #fff; border: 1px solid var(--win-border); padding: 10px; position: sticky; top: 40px; }
.hb-group { margin-bottom: 12px; }
.hb-group-title { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 6px; }
.hb-nav-item { display: block; padding: 6px 8px; font-size: 12px; color: #000; text-decoration: none; border-left: 3px solid transparent; }
.hb-nav-item:hover { background: #f0f6fc; border-left-color: var(--digi-yellow); }
.hb-chapter-card { border: 1px solid #e5e5e5; padding: 12px; margin-bottom: 10px; background: #fafafa; }
.hb-chapter-card h3 { font-size: 14px; margin-bottom: 6px; }
.hb-shot-ph { background: #f0f0f0; border: 1px dashed #767676; padding: 16px; font-size: 12px; color: #64748b; margin-top: 8px; }
.hb-chapter-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.hb-demo-path { font-size: 11px; color: #64748b; }
.hb-sidebar-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e5e5e5; font-size: 11px; color: #64748b; }
.btn-win-sm { padding: 3px 10px; font-size: 12px; }
.mhd-regal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.mhd-regal-card {
  background: #fff; border: 1px solid var(--win-border); padding: 10px; font-size: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.mhd-regal-card strong { font-size: 13px; }
.mhd-regal-card span { color: #64748b; }
.mhd-regal-new { align-items: center; justify-content: center; min-height: 72px; cursor: pointer; color: #0078d4; font-weight: 600; }
.team-view-tabs { display: inline-flex; border: 1px solid var(--win-border); margin-bottom: 10px; }
.team-tab {
  padding: 5px 14px; border: none; background: #f0f0f0; font: inherit; font-size: 13px; cursor: pointer;
}
.team-tab.active { background: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--digi-yellow); }
.team-actions { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.alert-banner-info {
  background: #e5f1fb; border: 1px solid #0078d4; padding: 8px 12px; font-size: 12px; margin-bottom: 10px;
}
.cal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 12px; align-items: start; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-side .cal-today-item { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 12px; }
.cal-side .cal-today-item strong { display: block; }
.cal-side .cal-today-item span { color: #64748b; }
.cal-side .cal-today-item.highlight { background: #fff8e1; margin: 0 -12px; padding: 8px 12px; }
.ausw-footer { margin-left: 0; text-align: center; padding: 12px; font-size: 12px; background: #0C2340; color: #FFD700; }
.ausw-footer a { color: #FFD700; }
.muted { color: #64748b; font-size: 11px; }
.digitime-clock-card { text-align: center; padding: 20px; }
.digitime-clock-face { margin-bottom: 12px; }
.digitime-time { display: block; font-size: 42px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--digi-navy); }
.digitime-date { font-size: 13px; color: #64748b; }
.digitime-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.typ-pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 2px; }
.typ-lieferant { background: #e5f1fb; color: #0078d4; }
.typ-kunde { background: #e8f5e9; color: #107c10; }
.typ-sonstiges { background: #f3f4f6; color: #444; }
.wartung-ok { color: #107c10; font-size: 12px; }
.wartung-soon { color: #ca8a04; font-size: 12px; }
.wartung-overdue { color: #c50f1f; font-size: 12px; font-weight: 600; }
.shop-import-hint { background: #fff8e1; border-color: #FFD700; }
.shop-ampel-bar { margin-bottom: 12px; }
.topbar-right-ausw { text-align: right; }
.digischicht-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.digischicht-link {
  padding: 5px 12px; font-size: 12px; border: 1px solid var(--win-border);
  background: #f0f0f0; color: #000; text-decoration: none;
}
.digischicht-link:hover { background: #e5f1fb; }
.digischicht-link.active { background: #fff; border-color: #0078d4; font-weight: 600; }
.digischicht-subnav-wide { max-width: 100%; }
.shift-color { font-size: 16px; line-height: 1; }
.day-shift-live { border-left: 3px solid #107c10; background: #f0fdf4; }
.news-item.muted-style { opacity: 0.85; }
.werbe-kopf { font-size: 14px; opacity: 0.9; margin-bottom: 8px; }
.werbe-bg-blue { background: linear-gradient(135deg, #0C2340 0%, #1e3a5f 50%, #0C2340 100%); }
.werbe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.werbe-dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; cursor: pointer; }
.werbe-dot.active { background: var(--digi-yellow); }
.spar-canvas-red { background: linear-gradient(180deg, #c50f1f 0%, #8b0000 100%); }
.spar-canvas-blue { background: linear-gradient(180deg, #0078d4 0%, #0C2340 100%); }
.spar-canvas-green { background: linear-gradient(180deg, #107c10 0%, #0d5c0d 100%); }
.mhd-stats-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mhd-stat-chip {
  padding: 6px 12px; border: 1px solid var(--win-border); background: #fff;
  font-size: 12px; font-weight: 600; cursor: default;
}
.mhd-stat-chip.active { border-color: var(--digi-navy); background: #eff6ff; }
.mhd-stat-chip .led { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.mhd-stat-chip.rot .led { background: #a80000; }
.mhd-stat-chip.gelb .led { background: #ca8a04; }
.mhd-stat-chip.gruen .led { background: #107c10; }
.demo-tabs { display: flex; gap: 0; border: 1px solid var(--win-border); margin-bottom: 12px; }
.demo-tab {
  flex: 1; padding: 8px 12px; border: none; border-right: 1px solid var(--win-border);
  background: #f0f0f0; font: inherit; font-size: 13px; cursor: pointer;
}
.demo-tab:last-child { border-right: none; }
.demo-tab.active { background: #cce4f7; font-weight: 600; }
.demo-tab-panel { display: none; }
.demo-tab-panel.active { display: block; }
.filter-tabs-inline { display: flex; gap: 8px; margin-bottom: 12px; }
.filter-tab-pill { padding: 4px 12px; border: 1px solid var(--win-border); background: #f0f0f0; font-size: 12px; font-weight: 600; }
.filter-tab-pill.active { background: var(--digi-navy); color: var(--digi-yellow); }
.mhd-entry-list { display: flex; flex-direction: column; gap: 8px; }
.mhd-entry { background: #fff; border: 1px solid var(--win-border); border-left-width: 4px; padding: 10px 12px; }
.mhd-entry.rot { border-left-color: #a80000; }
.mhd-entry.gelb { border-left-color: #ca8a04; }
.mhd-entry.gruen { border-left-color: #107c10; }
.mhd-entry-main { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.mhd-entry-main span { font-weight: 400; color: #64748b; font-size: 12px; }
.mhd-entry-meta { font-size: 12px; color: #64748b; margin-top: 4px; }
.pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pdf-breadcrumb { font-size: 13px; margin-bottom: 12px; color: #64748b; }
.pdf-breadcrumb a { color: #0078d4; text-decoration: none; }
.pdf-breadcrumb strong { color: #000; }
.pdf-switch-row { display: flex; gap: 0; margin-bottom: 12px; border: 1px solid var(--win-border); width: fit-content; max-width: 100%; flex-wrap: wrap; }
.pdf-switch-btn {
  padding: 6px 16px; font-size: 13px; font-weight: 600; background: #f0f0f0;
  border-right: 1px solid var(--win-border); cursor: pointer; user-select: none;
}
.pdf-switch-btn:last-child { border-right: none; }
.pdf-switch-btn.active { background: #cce4f7; color: #000; }
.pdf-switch-btn:hover:not(.active) { background: #e5f1fb; }
.pdf-folder-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.pdf-folder-card {
  border: 1px solid var(--win-border); background: #fff; padding: 14px 12px;
  text-align: center; border-top: 3px solid var(--digi-navy); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; min-height: 200px;
}
.pdf-folder-card:hover { border-top-color: var(--digi-yellow); background: #fafafa; }
.pdf-folder-active { border-color: #0078d4; border-top-color: #0078d4; background: #eff6ff; }
.pdf-folder-icon { font-size: 40px; margin-bottom: 8px; }
.pdf-folder-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; line-height: 1.3; }
.pdf-folder-sub { font-size: 11px; color: #64748b; margin-bottom: 12px; flex: 1; }
.pdf-folder-card .module-btn { margin-top: auto; width: 100%; font-size: 12px; padding: 5px 8px; }
.pdf-card { display: flex; gap: 12px; border: 1px solid var(--win-border); padding: 12px; background: #fff; border-left: 3px solid var(--digi-yellow); }
.pdf-card-icon { font-size: 32px; }
.pdf-card-body strong { display: block; margin-bottom: 4px; }
.pdf-meta { display: block; font-size: 11px; color: #64748b; }
.pdf-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb-bar { margin-bottom: 12px; font-size: 13px; color: #64748b; }
.breadcrumb-bar a { color: #0078d4; }
.builder-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.module-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border: 1px solid; }
.badge-system { background: #e5f1fb; color: #0078d4; border-color: #0078d4; }
.builder-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.builder-layout-3col { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 12px; align-items: start; }
.builder-palette-panel { min-height: 320px; }
.builder-palette-item {
  padding: 7px 8px; margin-bottom: 6px; font-size: 12px; border: 1px solid #d4d4d4;
  background: #fafafa; cursor: pointer;
}
.builder-palette-item:hover { background: #e5f1fb; border-color: #0078d4; }
.builder-hint { font-size: 11px; color: #64748b; margin: -4px 0 10px; }
.builder-meta { margin-left: auto; font-size: 11px; color: #64748b; }
.builder-settings { margin-top: 12px; }
.bf-pflicht { font-size: 10px; color: #c50f1f; font-weight: 700; margin-left: 4px; }
.builder-panel { background: #fff; border: 1px solid var(--win-border); padding: 12px; min-height: 280px; }
.builder-panel-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #d4d4d4; }
.builder-field {
  padding: 8px 10px; border: 1px solid #d4d4d4; margin-bottom: 6px; background: #fafafa;
  display: flex; align-items: center; gap: 8px; font-size: 13px;
}
.builder-field-active { border-color: #0078d4; background: #e5f1fb; }
.bf-grip { color: #94a3b8; cursor: grab; }
.bf-type { font-size: 11px; font-weight: 700; color: #64748b; }
.bf-preview-form .bf-preview-row { display: block; margin-bottom: 10px; font-size: 13px; }
.bf-input { padding: 4px 8px; border: 1px solid var(--win-border); font: inherit; width: 100%; max-width: 280px; }
.bf-photo { padding: 12px; border: 1px dashed #767676; text-align: center; color: #64748b; }
.sensor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.sensor-card { border: 1px solid var(--win-border); padding: 12px; text-align: center; background: #fff; }
.sensor-card.ok { border-top: 3px solid #107c10; }
.sensor-card.warn { border-top: 3px solid #ca8a04; }
.sensor-val { font-size: 18px; font-weight: 700; margin: 6px 0; }
.sensor-name { font-size: 12px; color: #64748b; }
.live-dot { display: inline-block; width: 8px; height: 8px; background: #107c10; border-radius: 50%; margin-right: 4px; animation: demo-pulse 1.5s infinite; }
@keyframes demo-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.team-card { border: 1px solid var(--win-border); padding: 14px; background: #fff; text-align: center; border-top: 3px solid var(--digi-navy); }
.team-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--digi-navy); color: var(--digi-yellow); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 8px; }
.team-avatar.sl { background: #ca8a04; color: #000; }
.team-name { font-weight: 700; font-size: 14px; }
.team-role { font-size: 12px; color: #64748b; margin: 4px 0 8px; }
.team-status { font-size: 11px; font-weight: 600; }
.team-on { color: #107c10; } .team-off { color: #94a3b8; }
.team-contact { margin-top: 10px; }
.info-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.info-chip { padding: 8px 12px; border: 1px solid var(--win-border); background: #fafafa; font-size: 13px; }
.info-chip.highlight { background: #fff4ce; border-color: #ca8a04; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head span { font-weight: 700; text-align: center; font-size: 11px; color: #64748b; padding: 4px; }
.cal-day { text-align: center; padding: 8px 4px; border: 1px solid #e5e5e5; background: #fff; font-size: 12px; min-height: 36px; }
.cal-muted { background: transparent; border-color: transparent; }
.cal-today { background: #cce4f7; border-color: #0078d4; font-weight: 700; }
.cal-event { background: #fff4ce; border-color: #ca8a04; }
.cal-legend { display: flex; gap: 10px; font-size: 11px; }
.cal-leg { padding: 2px 8px; border: 1px solid #d4d4d4; }
.cal-today-leg { background: #cce4f7; } .cal-event-leg { background: #fff4ce; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.demo-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.demo-input, .demo-textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--win-border); font: inherit; font-size: 13px; }
.demo-upload { padding: 10px; border: 1px dashed #767676; background: #fafafa; font-size: 13px; }
.todo-list { list-style: none; }
.todo-item { padding: 10px 12px; border: 1px solid #e5e5e5; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; }
.todo-open { border-left: 3px solid #0078d4; }
.todo-done { opacity: .7; text-decoration: line-through; border-left: 3px solid #107c10; }
.todo-date { margin-left: auto; font-size: 11px; color: #64748b; }
.todo-prio { font-size: 10px; font-weight: 700; padding: 1px 6px; background: #fef3c7; color: #92400e; }
.todo-prio.high { background: #fee2e2; color: #991b1b; }
.shift-table-wrap { overflow-x: auto; }
.shift-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.shift-table th, .shift-table td { border: 1px solid #d4d4d4; padding: 8px 6px; text-align: center; }
.shift-table th { background: #fafafa; font-weight: 600; text-align: left; }
.shift-tom { background: #e5f1fb; } .shift-sarah { background: #fff4ce; } .shift-jan { background: #dff6dd; }
.shift-empty { color: #cbd5e1; }
.day-plan { margin-bottom: 12px; }
.day-shift { padding: 10px 12px; border: 1px solid var(--win-border); margin-bottom: 8px; background: #fafafa; }
.shift-time { display: inline-block; font-size: 11px; font-weight: 700; color: #64748b; margin-right: 8px; }
.temp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.temp-sensor { border: 1px solid var(--win-border); padding: 16px; text-align: center; background: #fff; }
.temp-ok { border-top: 3px solid #107c10; }
.temp-warn { border-top: 3px solid #a80000; background: #fef2f2; }
.temp-val { font-size: 22px; font-weight: 700; }
.temp-name { font-weight: 600; margin: 6px 0; }
.temp-range { font-size: 11px; color: #64748b; }
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--win-border); background: #fff; text-decoration: none; color: #000; border-left: 3px solid var(--digi-yellow); }
.link-item:hover { background: #f0f6fc; }
.li-icon { font-size: 24px; }
.li-text small { display: block; color: #64748b; font-size: 11px; }
.link-ext { margin-left: auto; color: #64748b; }
.news-item { padding: 12px; border: 1px solid var(--win-border); margin-bottom: 8px; background: #fff; position: relative; }
.news-new { border-left: 3px solid #0078d4; }
.news-badge { position: absolute; top: 10px; right: 10px; background: #0078d4; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; }
.news-date { font-size: 11px; color: #94a3b8; display: block; margin-top: 6px; }
.werbe-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.werbe-preview { background: #0C2340; color: #fff; padding: 32px 24px; text-align: center; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.werbe-price { font-size: 42px; font-weight: 800; color: var(--digi-yellow); }
.werbe-product { font-size: 20px; margin-top: 8px; }
.werbe-sub { font-size: 13px; opacity: .8; margin-top: 6px; }
.spar-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spar-canvas { background: #ffed00; border: 4px solid #e30613; padding: 24px; text-align: center; min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.spar-brand { font-size: 14px; font-weight: 800; color: #e30613; margin-bottom: 8px; }
.spar-old { text-decoration: line-through; font-size: 16px; }
.spar-new { font-size: 48px; font-weight: 900; color: #e30613; }
.spar-title { font-size: 18px; font-weight: 700; margin-top: 8px; }
.ausw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ausw-tile { display: block; padding: 14px; border: 1px solid var(--win-border); background: #fff; text-decoration: none; color: #000; border-left: 3px solid var(--digi-yellow); }
.ausw-tile:hover { background: #f0f6fc; }
.ausw-tile-icon { font-size: 28px; margin-bottom: 6px; }
.ausw-tile-title { font-weight: 700; font-size: 14px; }
.ausw-tile-desc { font-size: 12px; color: #64748b; margin-top: 4px; }
.ausw-tile-kpi { font-size: 16px; font-weight: 700; color: var(--digi-navy); margin-top: 8px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tool-item { border: 1px solid var(--win-border); padding: 14px; background: #fff; cursor: default; border-top: 3px solid #767676; }
.tool-item:hover { border-top-color: var(--digi-yellow); }
.tool-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.tool-item p { font-size: 12px; color: #64748b; margin-top: 4px; }
.alert-banner-warn { background: #fff4ce; border: 1px solid #ca8a04; padding: 10px 12px; margin-bottom: 12px; font-weight: 600; }
.aktivitaeten-scroll { overflow-x: auto; }
.chart-h260 { height: 260px; }

@media (max-width: 900px) {
  .main-wrapper { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .dc-footer { left: 0; }
  .mhd-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .top-bar { grid-template-columns: 1fr; }
  .hb-layout, .builder-layout, .builder-layout-3col, .cal-layout, .werbe-layout, .spar-editor { grid-template-columns: 1fr; }
  .hb-sidebar { position: static; }
}
