/* NRW AC – Panel. ACP-Premium-Palette + Apple-Designprinzipien:
   transluzente Materialien als Hierarchie, Feedback auf pointer-down, nur transform/opacity
   animieren, Ease-out-Kurven (Response < 300 ms), Sheets kommen vom Ausloeser,
   groessenabhaengiges Tracking, reduzierte Bewegung/Transparenz respektieren. */

:root {
  --bg: #09090b; --surface: #111113; --surface2: #18181b; --raised: #1c1c20;
  --line: rgba(255,255,255,.07); --line-strong: rgba(255,255,255,.12);
  --text: #ededef; --soft: #8b8b94; --faint: #5f5f69;
  --accent: #7c8aff; --accent-strong: #5b6cff; --accent-soft: rgba(124,138,255,.14);
  --ok: #4ade80; --bad: #f87171; --warn: #fbbf24; --info: #60a5fa;
  --ok-soft: rgba(74,222,128,.12); --bad-soft: rgba(248,113,113,.12); --warn-soft: rgba(251,191,36,.12);
  --ease-out: cubic-bezier(.23,1,.32,1);
  --ease-drawer: cubic-bezier(.32,.72,0,1);
  --shadow: 0 0 0 1px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
  --shadow-pop: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px -12px rgba(0,0,0,.75), 0 4px 12px rgba(0,0,0,.4);
  --material: rgba(17,17,19,.72);
  --material-strong: rgba(12,12,14,.82);
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  font: 400 14px/1.5 Inter, ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before { /* sanfter Lichtschein hinter dem Glas – gibt dem Material etwas zum Brechen */
  content: ''; position: fixed; inset: -20% -10% auto -10%; height: 70vh; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 60% at 30% 0%, rgba(124,138,255,.16), transparent 70%),
              radial-gradient(40% 50% at 85% 10%, rgba(74,222,128,.06), transparent 70%);
}
::selection { background: rgba(124,138,255,.32); color: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px; }
[hidden] { display: none !important; }

/* ── Typografie: Tracking abhaengig von der Groesse ── */
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 650; }
h1 { font-size: 26px; line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }
h2 { font-size: 17px; line-height: 1.25; letter-spacing: -.012em; }
h3 { font-size: 14px; line-height: 1.3; letter-spacing: -.005em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.muted { color: var(--soft); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }

/* ── Buttons: Feedback auf pointer-down ── */
button, .btn {
  font: inherit; font-weight: 550; font-size: 13.5px; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--line-strong);
  transition: transform 110ms var(--ease-out), background 140ms var(--ease-out), border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent; user-select: none; white-space: nowrap;
}
@media (hover: hover) { button:hover, .btn:hover { background: var(--raised); border-color: rgba(255,255,255,.18); text-decoration: none; } }
button:active:not(:disabled), .btn:active { transform: scale(.97); transition-duration: 60ms; }
button:disabled { opacity: .5; cursor: not-allowed; }
button svg, .btn svg { width: 16px; height: 16px; flex: none; }
.primary { background: var(--accent-strong); border-color: rgba(255,255,255,.14); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(0,0,0,.4); }
@media (hover: hover) { .primary:hover { background: #6a79ff; border-color: rgba(255,255,255,.22); } }
.danger { background: var(--bad-soft); border-color: rgba(248,113,113,.3); color: #fecaca; }
@media (hover: hover) { .danger:hover { background: rgba(248,113,113,.2); border-color: rgba(248,113,113,.45); } }
.ghost { background: transparent; border-color: transparent; }
@media (hover: hover) { .ghost:hover { background: rgba(255,255,255,.05); border-color: transparent; } }
.icon-btn { min-height: 32px; width: 32px; padding: 0; border-radius: 9px; }
.discord { background: #5865f2; border-color: rgba(255,255,255,.16); color: #fff; min-height: 44px; font-size: 14.5px; width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
@media (hover: hover) { .discord:hover { background: #6772f5; } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Fokus nur per Tastatur ── */
:focus { outline: none; }
:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(124,138,255,.7) !important; }

/* ── Formulare ── */
label.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 550; color: var(--soft); }
label.field > small { font-weight: 400; color: var(--faint); }
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--text); width: 100%;
  background: rgba(0,0,0,.25); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 9px 12px; min-height: 38px;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out);
}
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: rgba(124,138,255,.6); background: rgba(0,0,0,.35); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b94' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-stack { display: grid; gap: 14px; }

/* Schalter (iOS-artig, Knopf folgt mit Ease-out) */
.switch { position: relative; display: inline-flex; width: 40px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; min-height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.12); transition: background 180ms var(--ease-out); }
.switch span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform 220ms var(--ease-out); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(124,138,255,.7); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row b { font-weight: 550; font-size: 13.5px; display: block; }

/* Segment-Control */
.segmented { display: inline-flex; padding: 3px; gap: 3px; border-radius: 11px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.segmented button { min-height: 30px; padding: 5px 14px; border: 0; background: transparent; color: var(--soft); border-radius: 8px; }
.segmented button.on { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); }
.segmented button.on.enforce { background: rgba(248,113,113,.18); color: #fecaca; }

/* ── Shell ── */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 264px minmax(0,1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px 14px;
  background: var(--material); border-right: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  display: flex; flex-direction: column; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 6px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #7c8aff, #4f5fe0); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px -6px rgba(124,138,255,.7); }
.brand-mark svg { width: 19px; height: 19px; color: #fff; }
.brand b { display: block; font-size: 15.5px; letter-spacing: -.015em; }
.brand span { display: block; font-size: 11.5px; color: var(--faint); }
.lic-switch { display: grid; gap: 6px; padding: 0 4px; }
.lic-switch select { min-height: 36px; font-size: 13px; background-color: rgba(255,255,255,.04); }
.nav { display: grid; gap: 2px; }
.nav-label { padding: 10px 10px 4px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  color: var(--soft); font-weight: 520; font-size: 13.5px; text-decoration: none;
  transition: background 120ms var(--ease-out), color 120ms var(--ease-out), transform 110ms var(--ease-out);
}
.nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
@media (hover: hover) { .nav a:hover { background: rgba(255,255,255,.045); color: var(--text); text-decoration: none; } }
.nav a:active { transform: scale(.985); }
.nav a.active { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(124,138,255,.2); }
.nav a.active svg { color: var(--accent); opacity: 1; }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--faint); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--raised); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: var(--soft); overflow: hidden; border: 1px solid var(--line-strong); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who span { display: block; font-size: 11.5px; color: var(--faint); }

.main { min-width: 0; }
.nav-scrim { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 28px;
  background: linear-gradient(to bottom, rgba(9,9,11,.86), rgba(9,9,11,.6));
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.topbar::after { /* Scroll-Kante statt harter Linie */
  content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(9,9,11,.5), transparent);
}
.topbar .crumb { min-width: 0; }
.topbar .crumb .eyebrow { display: block; }
.topbar .crumb h1 { font-size: 21px; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.content { padding: 10px 28px 48px; display: grid; gap: 18px; max-width: 1400px; }
.page-intro { color: var(--soft); max-width: 760px; margin: -4px 0 2px; }

/* ── Karten ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; flex-wrap: wrap; }
.card-head p { margin: 3px 0 0; color: var(--soft); font-size: 12.5px; }
.card-body { padding: 0 18px 18px; }
.card-body.flush { padding: 0; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: 2fr 1fr; align-items: start; }

/* Kennzahlen */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1180px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 16px 18px; display: grid; gap: 6px; position: relative; overflow: hidden; }
.stat .label { font-size: 12.5px; color: var(--soft); display: flex; align-items: center; gap: 7px; }
.stat .label svg { width: 15px; height: 15px; }
.stat .value { font-size: 30px; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .hint { font-size: 12px; color: var(--faint); }
.stat.accent .label svg { color: var(--accent); } .stat.ok .label svg { color: var(--ok); }
.stat.bad .label svg { color: var(--bad); } .stat.warn .label svg { color: var(--warn); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: rgba(255,255,255,.06); color: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: #86efac; border-color: rgba(74,222,128,.22); }
.badge.bad { background: var(--bad-soft); color: #fca5a5; border-color: rgba(248,113,113,.25); }
.badge.warn { background: var(--warn-soft); color: #fcd34d; border-color: rgba(251,191,36,.25); }
.badge.accent { background: var(--accent-soft); color: #c7cdff; border-color: rgba(124,138,255,.25); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot.live { box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); } 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.chip { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 8px; border-radius: 7px; font-size: 11.5px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
td .chip { max-width: 200px; display: inline-block; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--faint); letter-spacing: .03em; text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
@media (hover: hover) { tbody tr:hover td { background: rgba(255,255,255,.018); } }
td.num { font-variant-numeric: tabular-nums; }
td.actions { text-align: right; white-space: nowrap; }
.empty { padding: 34px 18px; text-align: center; color: var(--faint); display: grid; gap: 8px; justify-items: center; }
.empty svg { width: 28px; height: 28px; opacity: .6; }

/* Risiko-Balken */
.risk { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.risk-bar { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.risk-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transform-origin: left; }
.risk-bar i.mid { background: var(--warn); } .risk-bar i.high { background: var(--bad); }

/* Diagramm */
.chart { width: 100%; height: 170px; display: block; }
.chart .bar { fill: rgba(124,138,255,.55); }
.chart .bar:hover { fill: var(--accent); }
.chart .axis { fill: var(--faint); font-size: 10px; }
.chart .grid { stroke: rgba(255,255,255,.06); }

/* Liste */
.list { display: grid; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .grow span { display: block; font-size: 12px; color: var(--faint); }

/* Code-Block */
.codeblock { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px; line-height: 1.6; position: relative; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; overflow-x: auto; white-space: pre; color: #d4d4dc; }
.codeblock .copy { position: absolute; top: 8px; right: 8px; }
details.raw summary { cursor: pointer; color: var(--soft); font-size: 12px; }
details.raw pre { margin: 8px 0 0; white-space: pre-wrap; word-break: break-all; background: rgba(0,0,0,.35); padding: 10px; border-radius: 8px; border: 1px solid var(--line); }

.shot { padding: 0; min-height: 0; width: 96px; height: 54px; border-radius: 8px; overflow: hidden; background: #000; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-full { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line); }
.key-reveal { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 11px; background: rgba(74,222,128,.07); border: 1px solid rgba(74,222,128,.25); }
.key-reveal code { flex: 1; word-break: break-all; color: #bbf7d0; font-size: 13px; }
.callout { display: flex; gap: 12px; padding: 13px 15px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(124,138,255,.22); color: #d5d9ff; font-size: 13px; }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }
.callout.warn { background: var(--warn-soft); border-color: rgba(251,191,36,.25); color: #fde68a; }
.callout.warn svg { color: var(--warn); }
.callout.bad { background: var(--bad-soft); border-color: rgba(248,113,113,.28); color: #fecaca; }
.callout.bad svg { color: var(--bad); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input[type=search] { max-width: 300px; }
.toolbar select { width: auto; min-width: 160px; }
.steps { counter-reset: s; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; border: 1px solid rgba(124,138,255,.25); }

/* ── Sheet/Dialog: materialisiert vom Ausloeser aus ── */
.scrim { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(4,4,6,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 200ms var(--ease-out); }
.scrim.open { opacity: 1; }
.sheet { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: rgba(24,24,27,.86); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  opacity: 0; transform: scale(.94); transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-drawer); }
.scrim.open .sheet { opacity: 1; transform: none; }
.sheet.wide { width: min(760px, 100%); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; }
.sheet-head p { margin: 4px 0 0; color: var(--soft); font-size: 13px; }
.sheet-body { padding: 12px 22px 8px; display: grid; gap: 14px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; }

/* Toasts */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(460px, calc(100vw - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 13px; font-size: 13.5px;
  background: rgba(28,28,32,.88); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out); }
.toast.in { opacity: 1; transform: none; }
.toast svg { width: 17px; height: 17px; flex: none; }
.toast.ok svg { color: var(--ok); } .toast.bad svg { color: var(--bad); } .toast.info svg { color: var(--accent); }

/* ── Login ── */
.auth { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); padding: 30px 28px 26px; display: grid; gap: 18px;
  background: rgba(17,17,19,.7); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255,255,255,.07);
  animation: rise 420ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.auth-card .brand { padding: 0; }
.auth-card .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
.auth-card .brand-mark svg { width: 24px; height: 24px; }
.auth-card .brand b { font-size: 21px; letter-spacing: -.02em; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.auth-foot { text-align: center; font-size: 12px; color: var(--faint); }

.skeleton { border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Mobil ── */
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-104%);
    transition: transform 320ms var(--ease-drawer); box-shadow: var(--shadow-pop); background: var(--material-strong); }
  .shell.nav-open .sidebar { transform: none; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease-out); }
  .shell.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 8px 16px 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .toolbar input[type=search] { max-width: none; flex: 1; }
}
@media (max-width: 520px) {
  .stat .value { font-size: 25px; }
  .sheet { border-radius: 18px 18px 0 0; align-self: end; }
  .scrim { padding: 0; place-items: end stretch; }
  .sheet { width: 100%; transform: translateY(24px); }
  h1 { font-size: 22px; }
}

/* ── Barrierefreiheit ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  button:active, .btn:active, .nav a:active { transform: none !important; }
  .sheet { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .sidebar, .topbar, .sheet, .toast, .auth-card, .scrim { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .sidebar { background: #0f0f11; } .topbar { background: #09090b; } .sheet, .toast { background: #1c1c20; } .auth-card { background: #111113; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(255,255,255,.2); --line-strong: rgba(255,255,255,.32); --soft: #b4b4bd; --faint: #9a9aa3; }
}
