:root {
  --navy-950: #0b1629;
  --navy-900: #10233d;
  --navy-800: #193452;
  --ink: #132238;
  --muted: #617086;
  --muted-strong: #40536b;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-tint: #edf3f7;
  --line: #dbe2e9;
  --line-strong: #c5d0db;
  --accent: #1e7a65;
  --accent-soft: #e1f1ec;
  --warning: #a56800;
  --warning-soft: #fff3d7;
  --danger: #bd3f43;
  --danger-soft: #fbe7e8;
  --info: #2d5b9d;
  --info-soft: #e6eefb;
  --shadow: 0 14px 35px rgba(16, 35, 61, .07);
  --radius: 12px;
  --radius-small: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-soft);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--surface-soft); line-height: 1.5; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; width: 18px; height: 18px; fill: currentColor; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; transform: translateY(-180%); padding: 10px 14px; border-radius: 7px; background: var(--surface); color: var(--navy-900); box-shadow: var(--shadow); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #7ab9da; outline-offset: 3px; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; min-height: 100vh; padding: 25px 16px 18px; background: var(--navy-950); color: #eef4f8; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: transparent; color: var(--navy-900); font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: #9eb0c5; font-size: 11px; }
.primary-nav { display: grid; gap: 5px; margin-top: 55px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 0 11px; border-radius: 8px; color: #a9b7c7; text-decoration: none; font-size: 14px; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover { background: rgba(255,255,255,.08); color: white; }
.nav-link.is-active { background: #21425d; color: white; }
.nav-count { margin-left: auto; color: #8da1b6; font-size: 11px; font-weight: 500; }
.sidebar-footer { display: grid; gap: 23px; margin-top: auto; }
.system-brief { display: flex; align-items: center; gap: 9px; padding: 14px 10px; border: 1px solid rgba(208, 229, 244, .12); border-radius: 9px; background: rgba(255,255,255,.045); }
.system-brief strong, .system-brief small { display: block; }
.system-brief strong { color: #e6eff6; font-size: 12px; }
.system-brief small { margin-top: 2px; color: #91a5ba; font-size: 10px; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(67, 174, 140, .14); }
.status-dot.status-warning { background: #d59621; box-shadow: 0 0 0 3px rgba(213, 150, 33, .14); }
.status-dot.status-danger { background: #e2676b; box-shadow: 0 0 0 3px rgba(226, 103, 107, .14); }
.status-dot.status-muted { background: #8ca0b3; box-shadow: none; }
.logout-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: #a9b7c7; font-size: 13px; text-decoration: none; }
.logout-link:hover { color: white; }
.logout-link svg { width: 16px; height: 16px; }

.main-content { min-width: 0; }
.topbar { display: flex; align-items: center; min-height: 76px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.breadcrumbs strong { color: var(--ink); font-weight: 650; }
.topbar-actions { display: flex; gap: 9px; margin-left: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button svg { width: 16px; height: 16px; }
.button-primary { background: var(--navy-900); color: white; }
.button-primary:hover { background: var(--navy-800); }
.button-secondary { border-color: var(--line-strong); background: white; color: var(--navy-900); }
.button-secondary:hover { background: var(--surface-tint); border-color: #aebdca; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted-strong); }
.icon-button:hover { background: var(--surface-tint); color: var(--ink); }
.menu-toggle { display: none; margin-right: 10px; }

.content-wrap { width: min(1440px, 100%); margin: 0 auto; padding: 44px 42px 64px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 31px; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; color: var(--navy-950); font-size: clamp(28px, 3vw, 39px); letter-spacing: -.04em; line-height: 1.08; }
h2 { margin-bottom: 0; color: var(--navy-950); font-size: 23px; letter-spacing: -.025em; line-height: 1.2; }
h3 { margin-bottom: 3px; color: var(--navy-950); font-size: 15px; letter-spacing: -.01em; }
.intro-copy { max-width: 600px; margin-bottom: 0; color: var(--muted); font-size: 14px; }
.sync-note { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.flash { margin-bottom: 21px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted-strong); font-size: 13px; }
.flash.is-success { border-color: #b7dccc; background: var(--accent-soft); color: #195b4c; }
.flash.is-error { border-color: #edbfc1; background: var(--danger-soft); color: #8b3034; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 49px; }
.summary-card { min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 18px rgba(16,35,61,.025); }
.summary-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 650; }
.summary-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--surface-tint); color: var(--navy-800); }
.summary-icon svg { width: 16px; height: 16px; }
.summary-value { margin: 14px 0 4px; color: var(--navy-950); font-size: 25px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.summary-meta { margin: 0; color: var(--muted); font-size: 11px; }

.section-block { margin-top: 47px; scroll-margin-top: 22px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-note { color: var(--muted); font-size: 12px; }
.search-field { display: flex; align-items: center; gap: 8px; width: min(260px, 100%); height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); }
.search-field:focus-within { border-color: #86aab9; box-shadow: 0 0 0 3px rgba(69, 133, 151, .13); }
.search-field svg { width: 16px; height: 16px; }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr); align-items: start; gap: 15px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 18px rgba(16,35,61,.025); }
.clients-card, .detail-card, .reports-card, .jobs-card { overflow: hidden; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; min-height: 77px; padding: 20px 21px 16px; border-bottom: 1px solid var(--line); }
.card-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.record-count { padding: 5px 8px; border-radius: 999px; background: var(--surface-tint); color: var(--muted-strong); font-size: 11px; font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 550px; font-size: 12px; }
.data-table th { padding: 12px 21px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 12px 21px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.client-row-button { display: block; width: 100%; padding: 4px 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.client-row-button:hover .client-name { color: var(--accent); }
.client-row.is-selected { background: #f0f6f6; }
.client-name { display: block; font-weight: 750; }
.client-domain { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.phase-pill, .status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.phase-pill { background: var(--info-soft); color: var(--info); }
.phase-pill.production { background: var(--accent-soft); color: #146049; }
.status-pill.good { background: var(--accent-soft); color: #146049; }
.status-pill.warning { background: var(--warning-soft); color: #875300; }
.status-pill.danger { background: var(--danger-soft); color: #913437; }
.status-pill.muted { background: #eef1f4; color: var(--muted); }
.source-summary { display: flex; align-items: center; gap: 6px; color: var(--muted-strong); white-space: nowrap; }
.source-summary .status-dot { width: 7px; height: 7px; box-shadow: none; }
.row-action { display: inline-flex; align-items: center; gap: 4px; color: var(--info); font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.row-action:hover { text-decoration: underline; }

.detail-card { min-height: 360px; }
.empty-state { display: grid; place-items: center; min-height: 360px; padding: 35px; color: var(--muted); text-align: center; }
.empty-state.compact { min-height: 360px; }
.empty-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 13px; border-radius: 11px; background: var(--surface-tint); color: var(--accent); font-size: 20px; font-weight: 700; }
.empty-state h3 { margin-bottom: 6px; font-size: 16px; }
.empty-state p { max-width: 250px; margin-bottom: 0; font-size: 12px; }
.detail-inner { padding: 20px 21px 22px; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.detail-header h3 { margin-bottom: 3px; font-size: 20px; letter-spacing: -.025em; }
.detail-header p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.detail-actions .button { min-height: 35px; padding: 0 10px; font-size: 11px; }
.detail-block { margin-top: 20px; }
.detail-block-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.detail-block-heading h4 { margin: 0; font-size: 12px; }
.detail-block-heading small { color: var(--muted); font-size: 10px; }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.source-item { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.source-item-top { display: flex; align-items: center; gap: 7px; }
.source-item strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.source-item p { margin: 5px 0 0 15px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.source-period { display: block; margin: 5px 0 0 15px; color: var(--muted); font-size: 10px; }
.gap-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gap-list li { display: flex; gap: 7px; align-items: flex-start; padding: 8px 9px; border-radius: 7px; background: var(--warning-soft); color: #79500c; font-size: 11px; }
.gap-list li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #d59a27; }
.gap-list li.good { background: var(--accent-soft); color: #195b4c; }
.gap-list li.good::before { background: var(--accent); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.metric-item { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.metric-item small { display: block; color: var(--muted); font-size: 10px; }
.metric-item strong { display: block; margin-top: 4px; color: var(--navy-950); font-size: 15px; letter-spacing: -.02em; }
.period-note { margin: 8px 0 0; color: var(--muted); font-size: 10px; }

.reports-card, .jobs-card { margin-bottom: 0; }
.reports-card .data-table, .jobs-card .data-table { min-width: 790px; }
.jobs-card .data-table { min-width: 600px; }
.empty-row { padding: 28px 21px !important; color: var(--muted); font-size: 12px; text-align: center; }
.status-cell { white-space: nowrap; }
.status-cell .status-pill { padding-top: 4px; padding-bottom: 4px; }
.metric-source-list { display: grid; gap: 10px; }
.metric-source-card { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }
.metric-source-card.is-baseline { border-color: #e5c987; background: #fffaf0; }
.metric-source-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.metric-source-head h5 { margin: 0; color: var(--navy-950); font-size: 12px; }
.metric-source-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.metric-source-badge { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; background: var(--surface-tint); color: var(--muted-strong); font-size: 10px; font-weight: 750; white-space: nowrap; }
.metric-source-card.is-baseline .metric-source-badge { background: var(--warning-soft); color: #875300; }
.metric-source-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 9px 0 10px; color: var(--muted); font-size: 10px; }
.metric-source-card .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 22px 70px rgba(7, 22, 42, .25); }
.dialog::backdrop { background: rgba(8, 20, 38, .52); }
.dialog-form { padding: 24px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.dialog-header h2 { font-size: 23px; }
.dialog-copy { margin: 9px 0 22px; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 12px; }
.field { display: grid; gap: 6px; color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.field-full { grid-column: 1 / -1; }
.field input { width: 100%; min-height: 43px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; outline: 0; color: var(--ink); background: white; font-size: 13px; }
.field input:focus { border-color: #6b9cac; box-shadow: 0 0 0 3px rgba(69, 133, 151, .13); }
.field small { color: var(--muted); font-size: 10px; font-weight: 450; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 25px; padding-top: 17px; border-top: 1px solid var(--line); }

@media (max-width: 1120px) {
  .topbar, .content-wrap { padding-right: 25px; padding-left: 25px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .detail-card { min-height: 0; }
  .empty-state.compact { min-height: 245px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 10; top: 0; bottom: 0; left: 0; width: min(280px, calc(100vw - 52px)); transform: translateX(-101%); transition: transform .2s ease; box-shadow: 8px 0 24px rgba(3, 16, 34, .25); }
  .sidebar.is-open { transform: translateX(0); }
  .menu-toggle { display: inline-grid; }
  .topbar { min-height: 68px; padding: 0 16px; }
  .breadcrumbs { font-size: 12px; }
  .topbar-actions .button:first-child { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .button { min-height: 38px; padding: 0 10px; }
  .topbar-actions .button svg { display: none; }
  .content-wrap { padding: 30px 16px 48px; }
  .page-intro { display: block; margin-bottom: 24px; }
  .sync-note { margin-top: 15px; }
  h1 { font-size: 31px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 38px; }
  .summary-card { min-height: 114px; padding: 14px; }
  .summary-value { margin-top: 13px; font-size: 21px; }
  .summary-icon { width: 28px; height: 28px; }
  .section-block { margin-top: 38px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 13px; }
  .search-field { width: 100%; }
  .card-heading { padding: 17px 15px 14px; }
  .data-table th, .data-table td { padding-right: 15px; padding-left: 15px; }
  .detail-inner { padding: 17px 15px 18px; }
  .detail-header { display: block; }
  .detail-actions { justify-content: flex-start; margin-top: 14px; }
  .source-list { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Besucherübersicht: bestehende Farben und Systemschrift weiterverwenden. */
#summaryGrid { display: none; }
.traffic-overview { margin-bottom: 48px; }
.overview-toolbar, .overview-table-heading, .overview-detail-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.overview-toolbar { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.period-buttons { display: flex; gap: 4px; }
.period-buttons button { min-height: 44px; padding: 10px 15px; border: 0; border-radius: 7px; background: var(--surface-soft); color: var(--muted-strong); font-weight: 600; }
.period-buttons button[aria-pressed="true"] { background: var(--navy-900); color: white; }
#overviewRange { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.traffic-overview label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted-strong); }
.traffic-overview input, .traffic-overview select { font: inherit; font-size: 14px; color: var(--ink); min-height: 44px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; padding: 9px 12px; }
.overview-table-heading { margin: 30px 0 16px; }
.overview-table-heading h2, .overview-detail h2 { margin: 0; font-size: 22px; }
.overview-table-heading p, .overview-detail-heading p { margin: 4px 0; color: var(--muted); }
#overviewUpdated { color: var(--muted); }
.overview-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.overview-table { min-width: 820px; }
.traffic-overview table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.traffic-overview th { padding: 14px 16px; font-size: 11px; color: var(--muted-strong); background: var(--surface-soft); font-weight: 600; }
.traffic-overview td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; }
.overview-table tr.selected td { background: var(--accent-soft); }
.overview-client { display: grid; gap: 4px; min-height: 44px; text-align: left; border: 0; background: transparent; padding: 0; color: var(--ink); }
.overview-client strong { font-size: 14px; }
.overview-client span { font-size: 12px; color: var(--muted-strong); }
.overview-number { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.trend-muted, .trend-up, .trend-down { display: block; font-size: 11px; margin-top: 5px; }
.trend-muted { color: var(--muted-strong); }.trend-up { color: #16634f; }.trend-down { color: #9d3035; }
.source-badge { font-size: 11px; color: var(--muted-strong); }.source-badge.ready { color: #16634f; }
.overview-detail { margin-top: 24px; padding: 26px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.overview-cards { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.overview-cards article { padding: 14px 10px; border-left: 2px solid var(--line); }
.overview-cards article>span { display: block; font-size: 11px; color: var(--muted-strong); }
.overview-cards strong { display: block; margin: 6px 0; font-size: 23px; font-variant-numeric: tabular-nums; }
.trend-chart { width: 100%; height: auto; min-height: 180px; overflow: visible; fill: none; }
.trend-chart text { fill: var(--muted-strong); font: 11px system-ui; }.chart-grid { stroke: var(--line); stroke-dasharray: 3 5; }.chart-line { stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }.chart-point { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart-empty { display: grid; place-items: center; min-height: 180px; color: var(--muted); background: var(--surface-soft); border-radius: 8px; text-align: center; padding: 20px; }
.chart-data { margin: 12px 0 24px; font-size: 12px; color: var(--muted-strong); }.chart-data summary { cursor: pointer; padding: 12px 0; }
.overview-breakdowns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }.overview-breakdowns section { min-width: 0; }.overview-breakdowns h3 { font-size: 16px; margin-bottom: 3px; }.overview-breakdowns p { font-size: 12px; color: var(--muted); }.overview-breakdowns td:first-child { overflow-wrap: anywhere; }.overview-breakdowns td:last-child { text-align: right; }
.overview-notes { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 26px; font-size: 12px; color: var(--muted-strong); }.overview-notes p { margin: 7px 0; }.overview-notes ul { padding-left: 18px; }
@media(max-width:1200px) { .overview-cards { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:650px) { .overview-toolbar { padding: 12px; }.period-buttons { width: 100%; }.period-buttons button { flex: 1; padding: 10px; }#overviewRange { width: 100%; }#overviewRange label { flex: 1; min-width: 0; }#overviewRange input { width: 100%; }.overview-detail { padding: 16px; }.overview-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }.overview-breakdowns { grid-template-columns: 1fr; }.overview-table-heading label { width: 100%; } }

/* CI aus Dein-Autopilot-2/design/tokens.json und src/components/Mark.astro. */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/public/fonts/manrope-latin-wght-normal.woff2') format('woff2'); }
:root { --navy-950: #33383E; --navy-900: #454B52; --navy-800: #5F666E; --ink: #33383E; --muted: #5F666E; --muted-strong: #454B52; --surface-soft: #FAF9F7; --surface-tint: #EDF3FC; --line: #DCE0E3; --line-strong: #b9c0c7; --accent: #1D6ED0; --accent-soft: #EDF3FC; --danger: #B42318; font-family: 'Manrope', system-ui, sans-serif; }
.brand { gap: 12px; }.brand .brand-mark { display: block; width: 37px; height: 36px; border-radius: 0; background: transparent; color: var(--accent); }.brand small { color: #d0d6dc; }.brand strong { color: white; font-size: 15px; }
.nav-link.is-active { background: #1D6ED0; }.nav-link { color: #d0d6dc; }.nav-count { color: inherit; }.sidebar { background: #33383E; }.system-brief small,.logout-link { color: #c4cbd3; }
.button-primary { background: #1D6ED0; border-color: #1D6ED0; }.button-primary:hover { background: #1658AA; }.period-buttons button[aria-pressed="true"] { background: #1D6ED0; }
.trend-chart text { font-family: 'Manrope',system-ui,sans-serif; }

.chart-comparison { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 5; fill: none; }.chart-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 11px; color: var(--muted-strong); margin-bottom: 14px; }.chart-controls label { display: flex; flex-direction: row; align-items: center; gap: 8px; }.chart-controls input { min-height: 20px; width: 18px; accent-color: var(--accent); }.chart-controls span { display: flex; align-items: center; gap: 6px; }.legend-current,.legend-previous { display: inline-block; width: 22px; border-top: 3px solid var(--accent); }.legend-previous { border-top: 2px dashed var(--muted); }

.overview-number.no-data { font-size: 13px; font-weight: 500; color: var(--muted); }
@media(min-width:901px) { .sidebar { position: sticky; top: 0; height: 100vh; min-height: 0; align-self: start; } }
@media(max-width:650px) {
  .period-buttons button { white-space: nowrap; padding: 10px 8px; font-size: 14px; }
  #overviewRange { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  #overviewRange button { grid-column: 1 / -1; }
  #overviewRange input { min-width: 0; }
}
/* Breite Tabellen scrollen im eigenen Rahmen, nicht auf der gesamten Handyseite. */
.main-content { position: relative; overflow-x: clip; }

/* Messqualität: Farbe plus Beschriftung und Linienmuster. */
.traffic-quality { margin: 28px 0; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.quality-heading, .quality-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.quality-heading h3 { margin:0; font-size:24px; }
.quality-toolbar { margin:22px 0; align-items:end; }
.quality-toolbar label { display:grid; gap:8px; font-weight:650; }
.quality-toolbar select { max-width:100%; min-height:44px; padding:10px; font:inherit; border:1px solid var(--line-strong); border-radius:6px; background:white; }
.quality-freshness { font-size:12px; color:#536174; }
.quality-toggles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:0; border:0; margin:20px 0; }
.quality-toggles legend { font-size:13px; margin-bottom:10px; }
.traffic-quality .quality-toggle { display:flex; align-items:center; gap:10px; min-height:86px; padding:14px; background:white; border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.quality-toggle:not(.is-active) { background:#eef1f5; }
.quality-toggle strong { display:block; font-size:24px; font-weight:750; color:var(--ink); }
.quality-toggle input { width:18px; height:18px; min-height:18px; accent-color:#1d6ed0; flex-shrink:0; }
.quality-swatch { width:24px; border-top:3px solid currentColor; flex-shrink:0; }
.quality-regular { color:#1d6ed0; stroke:#1d6ed0; fill:#1d6ed0; }
.quality-bot { color:#b35b00; stroke:#b35b00; fill:#b35b00; stroke-dasharray:8 4; border-top-style:dashed; }
.quality-unknown { color:#6951a5; stroke:#6951a5; fill:#6951a5; stroke-dasharray:2 4; border-top-style:dotted; }
.quality-line { fill:none; stroke-width:3; }
.quality-chart circle { stroke-dasharray:none; }
.quality-total { font-weight:650; }
.quality-warning { border-left:3px solid #b35b00; padding:10px 14px; background:#fff2df; }
.quality-explanation { margin-top:18px; font-size:14px; }
.quality-explanation summary { cursor:pointer; min-height:44px; padding:12px 0; font-weight:650; }
.quality-explanation li { margin-bottom:8px; }
@media(max-width:750px) {
 .traffic-quality { padding:16px; }
 .quality-toggles { grid-template-columns:1fr; }
 .quality-toggle { min-height:60px; }
 .quality-toggle strong { display:inline; margin-left:12px; font-size:20px; }
 .quality-toolbar label, .quality-toolbar select { width:100%; min-width:0; }
}
