/* ============================================================
   atra.software — Design-System (abgeleitet aus atra.homepage)
   Einzige Quelle für Farbe, Typografie, Radius und Bewegung.
   Tokens: Light in :root, Dark in .dark (auf <html>).
   Werte: feste Hex/rgba, bewusst ohne color-mix()/oklch() und
   ohne Rechenausdrücke in Custom Properties (Safari).
   Referenz: atra.homepage/src/styles/global.css
   ============================================================ */

/* ── Primitive (theme-unabhängig) ─────────────────────────── */
:root {
  --primary-450: #415c92;
  --primary-500: #3a5ea8;
  --primary-550: #22499e;
  --primary-600: #264892;   /* ★ CD Dunkelblau */
  --primary-800: #1b3670;
  --primary-860: #1e2d4a;
  --primary-900: #0c1b3a;
  --primary-945: #101b33;
  --primary-950: #070e1e;
  --primary-970: #0a1121;
  --primary-980: #060c1a;
  --primary-a05: rgba(38,72,146,.05);
  --primary-a10: rgba(38,72,146,.10);
  --primary-a20: rgba(38,72,146,.20);
  --primary-a30: rgba(38,72,146,.30);
  --primary-a50: rgba(38,72,146,.50);
  --primary-a80: rgba(38,72,146,.80);

  --lightblue-400: #a7c6eb; /* ★ CD Hellblau */
  --lightblue-a05: rgba(167,198,235,.05);
  --lightblue-a10: rgba(167,198,235,.10);
  --lightblue-a20: rgba(167,198,235,.20);
  --lightblue-a30: rgba(167,198,235,.30);
  --lightblue-a50: rgba(167,198,235,.50);
  --lightblue-a80: rgba(167,198,235,.80);

  --neutral-50:  #f2f4f9;
  --neutral-100: #e9edf5;
  --neutral-200: #dedede;   /* ★ CD Hellgrau */
  --neutral-300: #c8cdd8;
  --neutral-350: #b6c1d4;
  --neutral-450: #a0a9bb;
  --neutral-550: #8892a6;
  --neutral-600: #777777;   /* ★ CD Dunkelgrau */
  --neutral-650: #696f7a;
  --neutral-700: #5a606b;
  --neutral-800: #393f4b;

  --accent-600:      #dc421e; /* ★ CD Dunkel-Orange */
  --accent-a10:      rgba(220,66,30,.10);
  --accent-a20:      rgba(220,66,30,.20);
  --accent-a30:      rgba(220,66,30,.30);
  --accentlight-500: #f98752; /* ★ CD Hell-Orange */
  --accentlight-a10: rgba(249,135,82,.10);
  --accentlight-a30: rgba(249,135,82,.30);

  --green-50:#f0fdf4; --green-200:#bbf7d0; --green-400:#4ade80; --green-600:#16a34a; --green-800:#166534;
  --red-50:#fef2f2;   --red-200:#fecaca;   --red-800:#991b1b;

  --white: #ffffff;
  --white-a10: rgba(255,255,255,.10);
  --white-a20: rgba(255,255,255,.20);
  --white-a25: rgba(255,255,255,.25);
  --white-a40: rgba(255,255,255,.40);
  --white-a60: rgba(255,255,255,.60);
  --white-a90: rgba(255,255,255,.90);

  /* ── Semantik — Light ──────────────────────────────────── */
  --surface: #ffffff;
  --surface-alt: #f2f4f9;
  --surface-dark: #070e1e;
  --text: #393f4b;
  --text-muted: #5a606b;
  --text-soft: #696f7a;
  --heading: #0c1b3a;
  --border: #dedede;
  --badge-bg: rgba(38,72,146,.10);
  --badge-text: #264892;
  --interactive: #264892;
  --interactive-on: #ffffff;
  --interactive-muted: rgba(38,72,146,.10);
  --interactive-hover: rgba(38,72,146,.20);
  --interactive-border: rgba(38,72,146,.30);
  --interactive-ring: rgba(38,72,146,.20);
  --card-icon-bg: rgba(38,72,146,.10);
  --card-shadow: rgba(38,72,146,.10);
  --card-border-hover: rgba(38,72,146,.30);
  --header-bg: rgba(255,255,255,.90);
  --popover-bg: rgba(255,255,255,.95);
  --success-surface:#f0fdf4; --success-border:#bbf7d0; --success-text:#166534; --success-accent:#16a34a;
  --error-surface:#fef2f2;   --error-border:#fecaca;   --error-text:#991b1b;   --error-accent:#dc2626;
  --warn-surface: rgba(220,66,30,.06); --warn-border: rgba(220,66,30,.25); --warn-text:#8a2a10;
  --chip-risk-bg: rgba(220,66,30,.10); --chip-risk-border: rgba(220,66,30,.20); --chip-risk-text:#b83617;
  --focus-ring: #264892;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #b6c1d4;
  --text-on-dark-link: rgba(167,198,235,.80);
  --shadow-sm: 0 1px 2px rgba(7,14,30,.06);
  --shadow-md: 0 6px 20px rgba(7,14,30,.08);
  --shadow-lg: 0 18px 50px rgba(7,14,30,.14);
  --scrollbar-thumb: #c8cdd8;

  /* Button-Farben: Primär bleibt in beiden Themes Navy (wie Homepage bg-primary) */
  --btn-primary-bg: #264892;
  --btn-primary-bg-hover: #3a5ea8;
  --btn-primary-text: #ffffff;

  /* ── Typografie, Radius, Motion ────────────────────────── */
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-card: 1rem;
  --radius-lg: .75rem;
  --radius-md: .5rem;
  --radius-sm: .375rem;
  --ease-out-soft: cubic-bezier(.22,1,.36,1);
  --ease-smooth: cubic-bezier(.4,0,.2,1);
  --dur-hover: .6s;
  --dur-reveal: .8s;
  --z-grain: 30;
  --z-header: 50;
  --z-modal: 1000;
  --header-h: 72px;
}

/* ── Semantik — Dark ──────────────────────────────────────── */
.dark {
  --surface: #0a1121;
  --surface-alt: #101b33;
  --surface-dark: #060c1a;
  --text: #c8cdd8;
  --text-muted: #a0a9bb;
  --text-soft: #8892a6;
  --heading: #e9edf5;
  --border: #1e2d4a;
  --badge-bg: rgba(167,198,235,.10);
  --badge-text: #a7c6eb;
  --interactive: #a7c6eb;
  --interactive-on: #0a1121;
  --interactive-muted: rgba(167,198,235,.10);
  --interactive-hover: rgba(167,198,235,.20);
  --interactive-border: rgba(167,198,235,.30);
  --interactive-ring: rgba(167,198,235,.20);
  --card-icon-bg: rgba(167,198,235,.10);
  --card-shadow: rgba(167,198,235,.05);
  --card-border-hover: rgba(167,198,235,.30);
  --header-bg: rgba(10,17,33,.90);
  --popover-bg: rgba(10,17,33,.95);
  --success-surface: rgba(5,46,22,.30); --success-border: rgba(22,101,52,.50); --success-text:#bbf7d0; --success-accent:#4ade80;
  --error-surface: rgba(69,10,10,.30);  --error-border: rgba(153,27,27,.50);  --error-text:#fecaca;   --error-accent:#f87171;
  --warn-surface: rgba(249,135,82,.08); --warn-border: rgba(249,135,82,.30); --warn-text:#fcd0b8;
  --chip-risk-bg: rgba(249,135,82,.10); --chip-risk-border: rgba(249,135,82,.30); --chip-risk-text:#f98752;
  --focus-ring: #a7c6eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.30);
  --shadow-md: 0 6px 20px rgba(0,0,0,.35);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.50);
  --scrollbar-thumb: #1e2d4a;
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s, color .3s;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: var(--heading); line-height: 1.15; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
input, textarea, button, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
code, pre, .mono { font-family: var(--font-mono); }
::selection { background: var(--primary-600); color: var(--white); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent; }

/* Film-Grain — über Content, unter Header/Modal */
body::after {
  content: ''; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Utilities ────────────────────────────────────────────── */
.bg-gradient-navy   { background: linear-gradient(160deg, #070e1e 0%, #0c1b3a 40%, #1b3670 100%); }
.bg-gradient-hero   { background: linear-gradient(135deg, #0c1b3a 0%, #1b3670 25%, #264892 50%, #22499e 75%, #0c1b3a 100%); background-size: 300% 300%; animation: gradient-shift 12s ease infinite; }
.bg-gradient-accent { background: linear-gradient(135deg, #dc421e 0%, #f98752 50%, #dc421e 100%); background-size: 200% 200%; animation: gradient-shift 8s ease infinite; }
@keyframes gradient-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.bg-grid-white { background-image: linear-gradient(var(--white-a40) 1px, transparent 1px), linear-gradient(90deg, var(--white-a40) 1px, transparent 1px); background-size: 80px 80px; }
.bg-grid-blue  { background-image: linear-gradient(var(--lightblue-a50) 1px, transparent 1px), linear-gradient(90deg, var(--lightblue-a50) 1px, transparent 1px); background-size: 80px 80px; }
.text-gradient-brand { background: linear-gradient(135deg, #a7c6eb 0%, #ffffff 40%, #f98752 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.watermark-num::before { content: attr(data-num); }
.on-dark { color: var(--text-on-dark); }
.on-dark-muted { color: var(--text-on-dark-muted); }
.text-dim { color: var(--text-muted); font-size: .85rem; }
.text-soft { color: var(--text-soft); }
.hidden { display: none !important; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity var(--dur-reveal) var(--ease-out-soft), transform var(--dur-reveal) var(--ease-out-soft); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-gradient-hero, .bg-gradient-accent { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Dekorative Glow-Blobs auf dunklen Flächen */
.glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.glow-cool { background: var(--lightblue-a20); }
.glow-warm { background: var(--accent-a20); }

/* Eyebrow / Section-Label */
.eyebrow, .page-eyebrow, .section-label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: .6rem;
}
.eyebrow::before, .page-eyebrow::before, .section-label::before { content: ''; width: 22px; height: 2px; background: var(--accent-600); }
.on-dark .eyebrow, .eyebrow.on-dark, .section-label.on-dark { color: var(--text-on-dark-muted); }

/* ── Header (Glas) ────────────────────────────────────────── */
.topnav, .site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 1.5rem;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.site-header.is-scrolled { background: var(--header-bg); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .header-inner { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav-brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 44px; height: 26px; flex-shrink: 0; background: url('/assets/atra-icon.svg') center / contain no-repeat; }

.brand-text { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--heading); white-space: nowrap; }
.brand-text .brand-suffix { color: var(--text-muted); font-weight: 500; }
.site-header:not(.is-scrolled) .brand-text { color: var(--white); }
.site-header:not(.is-scrolled) .brand-text .brand-suffix { color: var(--white-a60); }
.nav-tool { display: none; }
.nav-sep { display: none; }
.nav-logo { display: none; }

.nav-right { display: flex; align-items: center; gap: .5rem; }
.nav-user { display: inline-flex; align-items: center; gap: .5rem; font-size: 12.5px; font-weight: 600; color: var(--text-muted); padding: .35rem .75rem; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); }
.nav-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: .45rem .85rem;
  background: transparent; transition: all .2s var(--ease-smooth);
}
.nav-btn:hover { border-color: var(--interactive); color: var(--interactive); }
.nav-btn-danger:hover { border-color: var(--error-accent); color: var(--error-accent); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--heading); }
.site-header:not(.is-scrolled) .nav-links a { color: var(--white-a60); }
.site-header:not(.is-scrolled) .nav-links a:hover { color: var(--white); }

/* Theme-Toggle */
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); transition: color .2s, background-color .2s, border-color .2s; }
.theme-toggle:hover { color: var(--heading); border-color: var(--interactive-border); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.dark .theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-sun { display: block; }
.site-header:not(.is-scrolled) .theme-toggle { background: var(--white-a10); color: var(--white-a90); border-color: var(--white-a20); }
.site-header:not(.is-scrolled) .theme-toggle:hover { background: var(--white-a20); color: var(--white); }
.theme-toggle-ghost { background: var(--white-a10); color: var(--white-a90); border-color: var(--white-a20); }
.theme-toggle-ghost:hover { background: var(--white-a20); color: var(--white); border-color: var(--white-a40); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn, .btn-blue, .btn-primary, .btn-outline, .btn-accent, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-weight: 700; font-size: .875rem; letter-spacing: .01em; line-height: 1;
  padding: .8rem 1.4rem; border-radius: var(--radius-lg); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth), background-color .3s, border-color .3s, color .3s;
}
.btn-blue, .btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); box-shadow: var(--shadow-sm); }
.btn-blue:hover, .btn-primary:hover { background: var(--btn-primary-bg-hover); box-shadow: 0 8px 24px var(--primary-a30); transform: translateY(-1px) scale(1.02); }
.btn-accent { background: var(--accent-600); color: #fff; }
.btn-accent:hover { background: var(--accentlight-500); box-shadow: 0 12px 32px var(--accent-a30); transform: translateY(-1px) scale(1.02); }
.btn-secondary { background: var(--surface-alt); color: var(--heading); border-color: var(--border); font-weight: 600; }
.btn-secondary:hover { border-color: var(--interactive); }
.btn-outline, .btn-ghost { background: var(--white-a10); color: #fff; border-color: var(--white-a25); font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-outline:hover, .btn-ghost:hover { background: var(--white-a20); border-color: var(--white-a40); }
.btn-full { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: .9rem; }
.btn-outline-sm {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: var(--radius-md); padding: .5rem .9rem; font-size: .8rem; font-weight: 600;
  transition: all .2s var(--ease-smooth);
}
.btn-outline-sm:hover { border-color: var(--interactive); color: var(--interactive); }
.btn svg, .btn-blue svg, .btn-primary svg, .btn-accent svg, .btn-outline-sm svg { width: 16px; height: 16px; }

/* ── Layout (Panel) ───────────────────────────────────────── */
.layout { display: flex; flex: 1; }
.sidebar {
  width: 236px; flex-shrink: 0;
  background: var(--surface-alt); border-right: 1px solid var(--border);
  padding: 1.5rem 1rem; display: flex; flex-direction: column; justify-content: space-between;
  position: sticky; top: var(--header-h); height: calc(100vh - 72px);
}
.sidebar-nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar-item {
  position: relative; display: flex; align-items: center; gap: .7rem;
  padding: .65rem .85rem; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: background-color .2s, color .2s;
}
.sidebar-item:hover { background: var(--interactive-muted); color: var(--heading); }
.sidebar-item.active { background: var(--surface); color: var(--heading); font-weight: 600; box-shadow: var(--shadow-sm); }
.sidebar-item.active::before { content: ''; position: absolute; left: -1rem; top: 50%; transform: translateY(-50%); width: 3px; height: 55%; background: var(--accent-600); border-radius: 0 3px 3px 0; }
.sidebar-icon { width: 20px; height: 20px; display: inline-grid; place-items: center; color: var(--text-soft); flex-shrink: 0; }
.sidebar-item.active .sidebar-icon, .sidebar-item:hover .sidebar-icon { color: var(--interactive); }
.sidebar-icon svg { width: 17px; height: 17px; }
.sidebar-badge { margin-left: auto; background: var(--badge-bg); color: var(--badge-text); font-size: 11px; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; font-variant-numeric: tabular-nums; }
.sidebar-footer { display: flex; flex-direction: column; gap: .2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.sidebar-ext { font-size: 11.5px; color: var(--text-soft); padding: .25rem 0; transition: color .2s; }
.sidebar-ext:hover { color: var(--interactive); }
.main-content { flex: 1; min-width: 0; padding: 2.5rem 2.25rem 3rem; }

.page-header { margin-bottom: 1.75rem; }
.page-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; }

/* ── Karten ───────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.card-header { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .75rem; }
.card-title { font-size: 15px; font-weight: 700; }
.card-count { background: var(--badge-bg); color: var(--badge-text); font-size: 12px; font-weight: 700; border-radius: 999px; padding: .1rem .6rem; font-variant-numeric: tabular-nums; }
.card-body { padding: 1.5rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.25rem 1.5rem; transition: border-color .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth), transform .3s var(--ease-smooth); }
.stat-card:hover { border-color: var(--card-border-hover); box-shadow: 0 12px 32px var(--card-shadow); transform: translateY(-2px); }
.stat-card::before { content: attr(data-num); position: absolute; top: -.7rem; right: 1rem; font-size: 5rem; font-weight: 900; line-height: 1; letter-spacing: -.05em; color: var(--interactive); opacity: .06; pointer-events: none; }
.stat-label { position: relative; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .4rem; }
.stat-value { position: relative; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat-value .accent { color: var(--accent-600); }
.dark .stat-value .accent { color: var(--accentlight-500); }

/* ── Formulare ────────────────────────────────────────────── */
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.field-group { display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 160px; }
.field-group.flex-2 { flex: 2; }
.field-label { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.field-input {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: .65rem .85rem; font-size: .9rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field-input:hover { border-color: var(--interactive-border); }
.field-input:focus { border-color: var(--interactive); box-shadow: 0 0 0 3px var(--interactive-ring); outline: none; }
.field-input::placeholder { color: var(--text-soft); opacity: .8; }
.field-input:disabled, .field-input.is-readonly { background: var(--surface-alt); color: var(--text-muted); }
select.field-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a606b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.25rem; }
.input-addon { display: flex; }
.input-addon-text { background: var(--surface-alt); border: 1px solid var(--border); border-right: 0; color: var(--text-muted); padding: .65rem .75rem; font-size: .82rem; font-family: var(--font-mono); border-radius: var(--radius-md) 0 0 var(--radius-md); white-space: nowrap; }
.addon-right { border-radius: 0 var(--radius-md) var(--radius-md) 0 !important; }
.utm-details { margin: 0 0 1.25rem; border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: .4rem .85rem; background: var(--surface-alt); }
.utm-details[open] { padding-bottom: 1rem; }
.utm-summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--text-muted); user-select: none; list-style: none; padding: .45rem 0; }
.utm-summary::-webkit-details-marker { display: none; }
.utm-summary:hover { color: var(--interactive); }
.utm-row { margin-top: .5rem; margin-bottom: 0; }
.utm-input { font-family: var(--font-mono); font-size: .82rem; }

/* ── Tabellen ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); padding: .8rem 1rem; background: var(--surface-alt); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background-color .15s; }
.data-table tbody tr:hover td { background: var(--interactive-muted); }
.data-table tbody tr.pw-row td { background: var(--surface-alt); }
.link-code { font-family: var(--font-mono); font-weight: 600; color: var(--interactive); font-size: .85rem; }
.link-url { display: block; color: var(--text-muted); font-size: .8rem; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-url:hover { color: var(--heading); }
.qr-thumb { border-radius: .4rem; display: block; margin: 0 auto; background: #fff; padding: 2px; }
.badge-blue { background: var(--badge-bg); color: var(--badge-text); border-radius: 999px; padding: .15rem .6rem; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.role-badge, .status-badge { display: inline-block; border-radius: 999px; padding: .15rem .6rem; font-size: 11px; font-weight: 700; letter-spacing: .04em; border: 1px solid transparent; }
.role-admin { background: var(--chip-risk-bg); color: var(--chip-risk-text); border-color: var(--chip-risk-border); }
.role-user { background: var(--badge-bg); color: var(--badge-text); }
.status-active { color: var(--success-accent); font-size: 12px; font-weight: 700; }
.status-inactive { color: var(--text-soft); font-size: 12px; font-weight: 700; }
.status-badge.status-active { background: var(--success-surface); color: var(--success-text); border-color: var(--success-border); }
.status-badge.status-inactive { background: var(--surface-alt); color: var(--text-muted); border-color: var(--border); }
.status-badge.status-expired { background: var(--error-surface); color: var(--error-text); border-color: var(--error-border); }
.status-badge.status-limit { background: var(--chip-risk-bg); color: var(--chip-risk-text); border-color: var(--chip-risk-border); }
.action-group { display: flex; gap: .15rem; justify-content: center; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); color: var(--text-muted); background: transparent; border: 0; transition: background-color .15s, color .15s; font-size: .95rem; line-height: 1; }
.icon-btn:hover { background: var(--interactive-muted); color: var(--interactive); }
.icon-btn-danger:hover { background: var(--error-surface); color: var(--error-accent); }
.icon-btn svg { width: 16px; height: 16px; }

/* ── Alerts / Boxen ───────────────────────────────────────── */
.alert { padding: .85rem 1rem; border-radius: var(--radius-lg); margin-bottom: 1rem; font-size: .875rem; border: 1px solid; }
.alert-success { background: var(--success-surface); border-color: var(--success-border); color: var(--success-text); }
.alert-error { background: var(--error-surface); border-color: var(--error-border); color: var(--error-text); }
.info-box { background: var(--interactive-muted); border: 1px solid var(--interactive-border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; font-size: .9rem; margin: 1.25rem 0; color: var(--text); }
.warn-box { background: var(--warn-surface); border: 1px solid var(--warn-border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; font-size: .9rem; margin: 1.25rem 0; color: var(--warn-text); }
.code-sample { background: var(--primary-950); color: var(--neutral-300); padding: .85rem 1rem; border-radius: var(--radius-md); font-size: .75rem; overflow: auto; margin-top: .5rem; line-height: 1.6; }

/* ── Filter-Bar ───────────────────────────────────────────── */
.filter-bar { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--surface-alt); flex-wrap: wrap; }
.search-wrap { flex: 1; min-width: 200px; }
.search-wrap .field-input { padding: .5rem .85rem; font-size: .85rem; }
.filter-pills { display: flex; gap: .35rem; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; padding: .35rem .8rem; font-size: .78rem; font-weight: 600; transition: all .2s var(--ease-smooth); }
.pill:hover { border-color: var(--interactive); color: var(--interactive); }
.pill.active { background: var(--interactive); color: var(--interactive-on); border-color: var(--interactive); }
.pill-count { background: var(--interactive-muted); border-radius: 999px; padding: 0 .45rem; font-size: .7rem; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.pill.active .pill-count { background: rgba(255,255,255,.22); }
.dark .pill.active .pill-count { background: rgba(10,17,33,.25); }
.pill-mine { border-color: var(--chip-risk-border); color: var(--chip-risk-text); }
.pill-mine:hover { border-color: var(--accent-600); }
.pill-mine.active { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.pill-mine.active .pill-count { background: rgba(255,255,255,.25); }

/* ── Modal ────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,14,30,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); max-width: 540px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: modal-in .35s var(--ease-out-soft); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-header { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-body { padding: 1.5rem; }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; }

/* ── Empty / Profile / Footer ─────────────────────────────── */
.empty-state { padding: 3rem; text-align: center; color: var(--text-muted); }
.empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-card); background: var(--card-icon-bg); color: var(--interactive); margin-bottom: .75rem; font-size: 1.6rem; }
.empty-icon svg { width: 24px; height: 24px; }
.profile-info { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .75rem; }
.profile-info-row { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; }
.simple-footer { background: var(--surface-alt); border-top: 1px solid var(--border); padding: 1rem 1.5rem; display: flex; gap: 1.5rem; align-items: center; font-size: .8rem; color: var(--text-soft); flex-wrap: wrap; }
.simple-footer a { color: var(--text-soft); transition: color .2s; }
.simple-footer a:hover { color: var(--interactive); }

/* ── Login-Hero ───────────────────────────────────────────── */
.login-hero { position: relative; overflow: hidden; flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; color: var(--white); }
.login-hero .hero-grid { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.login-hero .glow-cool { width: 520px; height: 520px; top: -160px; right: -120px; }
.login-hero .glow-warm { width: 380px; height: 380px; bottom: -160px; left: -120px; opacity: .8; }
.login-stack { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.login-logo { height: 64px; width: auto; margin-bottom: 1.25rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--white-a10); border: 1px solid var(--white-a20); border-radius: 999px; padding: .35rem .9rem; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--white-a90); margin-bottom: 1.25rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; color: var(--white); text-align: center; margin-bottom: .6rem; }
.hero-h1 em { font-style: normal; }
.hero-sub { font-size: .95rem; color: var(--text-on-dark-muted); text-align: center; line-height: 1.6; margin-bottom: 1.75rem; max-width: 380px; }
.login-card { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 2rem; box-shadow: 0 30px 80px rgba(6,12,26,.45); }
.login-form .field-group { margin-bottom: .875rem; }
.login-hero .simple-links { margin-top: 1.5rem; display: flex; gap: 1.25rem; font-size: .78rem; color: var(--text-on-dark-muted); }
.login-hero .simple-links a:hover { color: var(--white); }
.login-toggle { position: absolute; top: 1.25rem; right: 1.25rem; }
.dot-green { width: 7px; height: 7px; border-radius: 50%; background: var(--green-400); display: inline-block; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(74,222,128,.18); }

/* ── Landingpage ──────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: var(--white); padding: calc(72px + 6rem) 1.5rem 6rem; }
.hero .hero-grid { position: absolute; inset: 0; opacity: .06; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 75%); }
.hero .glow-cool { width: 640px; height: 640px; top: -260px; right: -200px; }
.hero .glow-warm { width: 460px; height: 460px; bottom: -220px; left: -160px; }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; color: var(--white); margin-bottom: 1.5rem; max-width: 14ch; }
.hero h1 em { font-style: normal; }
.hero-sub { font-size: 1.1rem; color: var(--text-on-dark-muted); max-width: 560px; line-height: 1.7; margin-bottom: 2.5rem; text-align: left; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-meta { margin-top: 3.5rem; display: flex; gap: 2rem; flex-wrap: wrap; color: var(--text-on-dark-muted); font-size: .8rem; }
.hero-meta strong { display: block; color: var(--white); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }

section { padding: 6.5rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
h2.section-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1rem; }
h2.section-title em { font-style: normal; color: var(--interactive); }
.section-sub { font-size: 1.02rem; color: var(--text-muted); max-width: 560px; line-height: 1.7; }
.section-alt { background: var(--surface-alt); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.feature-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 2rem; transition: border-color .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth), transform .3s var(--ease-smooth); }
.feature-card:hover { border-color: var(--card-border-hover); box-shadow: 0 16px 40px var(--card-shadow); transform: translateY(-3px); }
.feature-card::before { content: attr(data-num); position: absolute; top: -.6rem; right: 1.2rem; font-size: 6rem; font-weight: 900; line-height: 1; letter-spacing: -.06em; color: var(--interactive); opacity: .06; pointer-events: none; }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--card-icon-bg); color: var(--interactive); display: grid; place-items: center; margin-bottom: 1.25rem; transition: background-color .3s; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card:hover .feature-icon { background: var(--interactive-hover); }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; letter-spacing: -.015em; }
.feature-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }
.feature-card strong { color: var(--heading); font-family: var(--font-mono); font-weight: 600; font-size: .9em; }

.stats { position: relative; overflow: hidden; color: var(--white); }
.stats .hero-grid { position: absolute; inset: 0; opacity: .05; pointer-events: none; }
.stats .section-inner { position: relative; }
.stats h2.section-title { color: var(--white); }
.stats h2.section-title em { color: var(--lightblue-400); }
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-top: 3rem; }
.stat { padding: 1.5rem 0; border-top: 1px solid var(--white-a10); }
.stat-num { font-size: 3.2rem; font-weight: 800; letter-spacing: -.05em; color: var(--white); line-height: 1; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.stat-num span { color: var(--accentlight-500); }
.stats .stat-label { color: var(--text-on-dark-muted); text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 500; }

.steps { display: flex; flex-direction: column; margin-top: 3.5rem; max-width: 760px; }
.step { display: flex; gap: 1.75rem; position: relative; padding-bottom: 2.5rem; }
.step:last-child { padding-bottom: 0; }
.step-left { display: flex; flex-direction: column; align-items: center; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--interactive); color: var(--interactive-on); display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex-shrink: 0; box-shadow: 0 0 0 6px var(--interactive-muted); }
.step-line { width: 2px; flex: 1; background: var(--border); margin: .5rem 0; }
.step:last-child .step-line { display: none; }
.step-body { padding-top: .55rem; }
.step-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.step-body p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }
.step-body code { background: var(--surface-alt); border: 1px solid var(--border); padding: .1rem .4rem; border-radius: .3rem; font-size: .85em; color: var(--heading); }

.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.security-item { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--interactive); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; transition: border-color .3s, box-shadow .3s; }
.security-item:hover { box-shadow: 0 10px 28px var(--card-shadow); }
.security-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.security-item p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }
.check { display: inline-flex; align-items: center; gap: .35rem; color: var(--success-accent); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; }
.check svg { width: 14px; height: 14px; }

.cta-section { position: relative; overflow: hidden; color: var(--white); text-align: center; }
.cta-section .hero-grid { position: absolute; inset: 0; opacity: .05; pointer-events: none; }
.cta-section .glow-warm { width: 520px; height: 520px; left: 50%; bottom: -320px; margin-left: -260px; }
.cta-section .section-inner { position: relative; }
.cta-section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: var(--text-on-dark-muted); font-size: 1rem; max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }

/* ── Seiten-Hero (Rechtsseiten) & Legal ───────────────────── */
.page-hero { position: relative; overflow: hidden; color: var(--white); padding: calc(72px + 4rem) 1.5rem 4rem; }
.page-hero .hero-grid { position: absolute; inset: 0; opacity: .05; pointer-events: none; }
.page-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; color: var(--white); margin-bottom: .75rem; }
.page-hero-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-on-dark-muted); margin-bottom: .75rem; }
.page-hero-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accentlight-500); }
.page-hero-meta { font-size: .9rem; color: var(--text-on-dark-muted); }
.legal-wrap { padding: 3.5rem 1.5rem 5rem; background: var(--surface-alt); flex: 1; }
.legal-inner { max-width: 860px; margin: -6.5rem auto 0; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: clamp(1.5rem, 4vw, 3.5rem); box-shadow: var(--shadow-lg); }
.legal-section { margin-bottom: 2.5rem; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: .9rem; letter-spacing: -.02em; }
.legal-section h3 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.legal-section p, .legal-section li { font-size: .95rem; color: var(--text); line-height: 1.75; margin-bottom: .8rem; }
.legal-section ul, .legal-section ol { padding-left: 1.4rem; margin-bottom: .8rem; }
.legal-section a { color: var(--interactive); text-decoration: underline; text-decoration-color: var(--interactive-border); text-underline-offset: 3px; }
.legal-section a:hover { text-decoration-color: currentColor; }
.legal-section code { background: var(--surface-alt); border: 1px solid var(--border); padding: .1rem .4rem; border-radius: .3rem; font-size: .85em; }
.legal-section strong { color: var(--heading); }
.section-num { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .4rem; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 2.25rem 0; }
.legal-inner .data-table { font-size: .85rem; margin: 1rem 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.legal-inner .data-table td { color: var(--text); }
.legal-inner .data-table tbody tr:hover td { background: transparent; }

/* ── Site-Footer (Landing/Legal, fest dunkel) ─────────────── */
.site-footer { background: var(--surface-dark); color: var(--text-on-dark-muted); padding: 4rem 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; max-width: 280px; line-height: 1.7; }
.footer-col h5 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--white); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .875rem; color: var(--text-on-dark-muted); margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-col .addr { font-size: .8rem; margin-top: .5rem; color: rgba(182,193,212,.6); line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .8rem; }
.footer-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: .35rem .8rem; font-size: .75rem; color: var(--text-on-dark-muted); }

/* ── Fehlerseiten (index.php) ─────────────────────────────── */
.error-page { position: relative; overflow: hidden; flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; color: var(--white); text-align: center; }
.error-page .hero-grid { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.error-page .glow-cool { width: 520px; height: 520px; top: -200px; right: -160px; }
.error-page .glow-warm { width: 360px; height: 360px; bottom: -180px; left: -120px; }
.error-inner { position: relative; max-width: 520px; }
.error-code { font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; letter-spacing: -.06em; margin-bottom: 1rem; }
.error-inner h1 { color: var(--white); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .75rem; }
.error-inner p { color: var(--text-on-dark-muted); line-height: 1.7; margin-bottom: 2rem; }
.error-inner code { background: var(--white-a10); border: 1px solid var(--white-a20); padding: .1rem .45rem; border-radius: .3rem; color: var(--white); }
.error-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .main-content { padding: 1.5rem 1.25rem 2.5rem; }
  .nav-user { display: none; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card::before { font-size: 3.5rem; top: -.3rem; }
  .hero { padding: calc(72px + 3.5rem) 1.25rem 4rem; }
  section { padding: 4.5rem 1.25rem; }
  .legal-inner { margin-top: -3rem; }
  .step { gap: 1.1rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .topnav, .site-header { padding: 0 1rem; }
  .card-body { padding: 1.1rem; }
  .login-card { padding: 1.5rem; }
  .hero-actions .btn, .hero-actions .btn-accent, .hero-actions .btn-ghost, .hero-actions .btn-outline { width: 100%; }
}

/* Mobile-Tab-Leiste (Panel ohne Sidebar) */
.mobile-tabs { display: none; }
@media (max-width: 860px) {
  .mobile-tabs { display: flex; gap: .4rem; margin-bottom: 1.25rem; overflow-x: auto; padding-bottom: .25rem; }
  .mobile-tabs a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--text-muted); background: var(--surface); }
  .mobile-tabs a.active { background: var(--interactive); color: var(--interactive-on); border-color: var(--interactive); }
  .mobile-tabs svg { width: 14px; height: 14px; }
}
