/* ==========================================================================
   Rechnungsnotarzt — Modernist-Redesign
   ==========================================================================

   Umsetzung des Design-Handoffs "Rechnungsnotarzt Redesign":
   flacher, architektonischer Look, Archivo, grüner Akzent auf weißem Grund,
   sichtbare 2px-Trennlinien, gerundete Ecken (8/14/22px).

   Diese Datei wird NACH site.css geladen und arbeitet bewusst als Theme-Ebene:
   Sie definiert die vorhandenen Design-Tokens neu und stellt anschließend die
   Komponenten um, die sich strukturell unterscheiden. Dadurch gilt das
   Redesign für alle Seiten gleichzeitig und jedes bestehende Jinja-Binding,
   jede Route und jede Formularlogik bleibt unverändert - so wie es der
   Handoff verlangt ("only the presentation layer changes").
   ========================================================================== */

/* Archivo wird selbst ausgeliefert, nicht von Google geladen.
   Zwei Gründe:
   1. Die Content-Security-Policy erlaubt "style-src 'self' 'unsafe-inline'".
      Ein @import von fonts.googleapis.com wird dadurch blockiert - die Schrift
      käme auf dem Produktivsystem nie an.
   2. Beim Laden von Google-Servern würde die IP jedes Besuchers an Google
      übertragen. Für ein Produkt mit AVV, Subprozessorenliste und
      Löschfristen-Seite ist das ein unnötiges Datenschutzrisiko; das LG München I
      hat eine solche Einbindung 2022 als DSGVO-Verstoß eingestuft (3 O 17493/20).
   Archivo steht unter der SIL Open Font License, die das Selbst-Hosten erlaubt.
   Es handelt sich um eine Variable Font: eine Datei deckt alle Schnitte ab. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben aus theme-override.css des Handoffs */
  --color-bg: #ffffff;
  --color-surface: #f2f6f3;
  --color-text: #1b1f1d;
  --color-accent: #1a9c53;
  --color-divider: color-mix(in srgb, #1b1f1d 38%, transparent);

  --color-accent-100: #eaf7ef;
  --color-accent-200: #cceddb;
  --color-accent-300: #9edcb9;
  --color-accent-400: #64c48f;
  --color-accent-500: #2eac6c;
  --color-accent-600: #1a9c53;
  --color-accent-700: #137a41;
  --color-accent-800: #0e5c31;
  --color-accent-900: #0a4123;

  --color-neutral-100: #fbfbfb;
  --color-neutral-200: #f0efef;
  --color-neutral-300: #dedcdc;
  --color-neutral-800: #494444;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  /* Bestehende Tokens der site.css auf die neue Palette umbiegen. Dadurch
     folgen alle Komponenten, die bereits var(--brand) usw. verwenden. */
  --ink: #1b1f1d;
  --muted: color-mix(in srgb, #1b1f1d 70%, transparent);
  --brand: #1a9c53;
  --brand-2: #137a41;
  --accent: #1a9c53;
  --accent-soft: #eaf7ef;
  --surface: #f2f6f3;
  --surface-soft: #f2f6f3;
  --line: color-mix(in srgb, #1b1f1d 38%, transparent);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #302c2c 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #302c2c 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #302c2c 22%, transparent);
  --shadow: var(--shadow-sm);

  /* Der Handoff arbeitet mit max-width 1360px und clamp-Innenabständen. */
  --container: 1360px;
  --container-pad: 40px;
  --section-y: clamp(48px, 6vw, 72px);
}

/* --------------------------------------------------------------------------
   2. Grundlagen
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  /* Der bisherige Verlauf weicht dem reinen Weiß des Handoffs. */
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

/* Die bisherigen Überschriften waren deutlich größer als im Handoff. */
h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-bottom: 20px;
}
h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
h3 { font-size: 18px; margin-bottom: 10px; }

.lead {
  font-size: 16px;
  line-height: 1.6;
  max-width: 64ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin-bottom: 28px;
}

/* 4,5:1 statt 3,54:1 - siehe Begruendung beim Primaerbutton. */
a { color: var(--color-accent-700); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.text-link { color: var(--color-accent-700); font-weight: 600; }

/* Kicker: im Handoff kein Pill, sondern eine grüne Versalzeile. */
.eyebrow {
  width: auto;
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}

/* --------------------------------------------------------------------------
   3. Buttons — im Handoff gerundete Rechtecke, keine Pillen
   -------------------------------------------------------------------------- */
.button {
  min-height: 0;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: none;
  border: 1px solid transparent;
}
/* Barrierefreiheit vor Pixeltreue:
   Der Handoff nennt #1a9c53 als Akzent. Weiße 14px-Schrift darauf erreicht nur
   3,54:1 und verfehlt damit die von WCAG AA geforderten 4,5:1 (die Ausnahme für
   große Schrift greift erst ab 18,66px fett). accent-700 stammt aus derselben
   Farbrampe, sieht praktisch identisch aus und erreicht 5,40:1.
   Der volle Akzentton bleibt dort, wo er großflächig wirkt: CTA-Banner, Punkte,
   Rahmen und Markierungen. */
.button--primary {
  background: var(--color-accent-700);
  color: #ffffff;
  box-shadow: none;
}
.button--primary:hover { background: var(--color-accent-800); }
.button--primary:active { background: var(--color-accent-900); }

.button--secondary,
.button--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-divider);
}
.button--secondary:hover,
.button--ghost:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }

/* --------------------------------------------------------------------------
   4. Kopf- und Fußbereich
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--color-bg);
  backdrop-filter: none;
  border-bottom: 2px solid var(--color-divider);
}
.site-header__inner { min-height: 72px; }

.nav a,
.nav-group > summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}
.nav a:hover,
.nav-group > summary:hover { color: var(--color-accent); }

.nav-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.nav-panel__item span { font-family: var(--font-heading); font-weight: 800; }
.nav-panel__item small { color: color-mix(in srgb, var(--color-text) 65%, transparent); }

/* Der Handoff-Footer steht auf weißem Grund mit 2px-Trennlinie,
   nicht mehr auf dunklem Marineblau. */
.site-footer {
  background: var(--color-bg);
  color: var(--color-text);
  border-top: 2px solid var(--color-divider);
  padding: clamp(40px, 5vw, 56px) 0;
}
.site-footer__inner { padding-bottom: 8px; }
.footer-brand p { color: color-mix(in srgb, var(--color-text) 65%, transparent); }
.footer-grid h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--color-text);
}
.footer-grid a { color: var(--color-accent-700); font-size: 13.5px; }
.footer-grid span { color: color-mix(in srgb, var(--color-text) 65%, transparent); font-size: 13.5px; }
.footer-brand__logo { filter: none; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
/* Im Handoff steht die Hero-Spalte frei auf dem Grund, ohne Kartenrahmen. */
.hero-card {
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  justify-content: flex-start;
}
.hero-grid { align-items: flex-start; gap: clamp(32px, 5vw, 64px); }

/* Vertrauenszeile: Trennlinie oben, danach nur Text - keine Kacheln. */
.trust-row {
  border-top: 2px solid var(--color-divider);
  padding-top: 24px;
  margin-top: 40px;
  gap: 24px;
  /* auto-fit statt fester 3 Spalten: Die Zeile wird an mehreren Stellen mit
     unterschiedlich vielen Punkten verwendet; feste Spalten ließen sonst
     einzelne Einträge allein in der letzten Zeile stehen. */
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.trust-item {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.trust-item strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 6px;
}
.trust-item span {
  font-size: 13.5px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* Die dunkle Produktvorschau wird zur hellen, umrandeten Karte. */
.product-panel {
  min-height: 0;
  max-height: none;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}
.panel-topline {
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
}
.invoice-card-preview,
.home-demo__card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.preview-status strong,
.home-demo__status strong {
  background: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  padding: 0;
}
.preview-status span,
.home-demo__status span {
  background: var(--color-accent-100);
  color: var(--color-accent-800);
  border-radius: calc(var(--radius-md) * 0.75);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}
.preview-grid span,
.home-demo__facts dt {
  /* 55% ergaben nur 3,77:1. */
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.preview-grid strong,
.home-demo__facts dd { color: var(--color-text); font-size: 13.5px; }
.preview-actions span,
.home-demo__actions span {
  background: var(--color-neutral-100);
  color: var(--color-neutral-800);
  border: 0;
  border-radius: calc(var(--radius-md) * 0.75);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.home-demo__note,
.home-demo__topline {
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   6. Karten und Raster
   -------------------------------------------------------------------------- */
.card,
.faq-card,
.panel,
.form-card,
.empty-state,
.comparison-card,
.content-card,
.mini-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.card p,
.faq-card p,
.panel p,
.content-card p,
.empty-state p {
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
  font-size: 13.5px;
  line-height: 1.55;
}
.card h3,
.faq-card h3,
.content-card h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
}

/* Nummernkreis wird zur schlichten grünen Ziffer, wie im Handoff. */
.card__icon {
  width: auto;
  height: auto;
  display: block;
  background: none;
  border-radius: 0;
  color: var(--color-accent-700);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Der Handoff nutzt durchgehend auto-fit statt fester Spaltenzahl. Damit
   verteilen sich die Karten gleichmäßig und es bleibt keine einzelne Karte
   als Waise in der letzten Zeile stehen. */
.feature-grid,
.security-grid,
.faq-grid,
.content-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.feature-grid--three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* Aufzählungen mit grünen Punkten statt Standard-Bullets. */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Prozessschritte: Trennlinien statt Kacheln. */
.steps { gap: 0; }
.step {
  grid-template-columns: 22px 1fr;
  gap: 18px;
  padding: 16px 0;
  border: 0;
  border-top: 2px solid var(--color-divider);
  border-radius: 0;
  background: none;
}
.steps .step:last-child { border-bottom: 2px solid var(--color-divider); }
.step span {
  width: auto;
  height: auto;
  display: block;
  background: none;
  border-radius: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   7. Flächige Abschnitte
   -------------------------------------------------------------------------- */
.section--split,
.section--muted {
  background: var(--color-surface);
  border-top: 2px solid var(--color-divider);
  border-bottom: 2px solid var(--color-divider);
}

/* Aus dem dunkelblauen Sicherheitsband wird das grüne Abschluss-Banner. */
.security-band {
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  padding: 26px;
}
.security-band p { color: color-mix(in srgb, var(--color-text) 75%, transparent); }
.security-band h2 { color: var(--color-text); }
.security-list li {
  padding: 0 0 0 18px;
  position: relative;
  background: none !important;
  border: 0 !important;
  border-radius: 0;
  color: var(--color-text) !important;
  font-size: 13.5px;
}
.security-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.eyebrow--on-dark {
  background: none !important;
  color: var(--color-accent-700) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 12px !important;
}

/* --------------------------------------------------------------------------
   8. Tabellen, Formulare, Status
   -------------------------------------------------------------------------- */
.comparison-table,
.resource-table { font-size: 14px; }
.comparison-table th,
.resource-table th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  border-bottom: 2px solid var(--color-divider);
}
.comparison-table td,
.resource-table td { border-bottom: 1px solid var(--color-divider); }
.comparison-table-wrap,
.resource-table-wrap {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

input, select, textarea {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 14px;
}
input, select { min-height: 40px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--color-accent); }
label { font-family: var(--font-heading); font-weight: 600; font-size: 12px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }

.status-pill,
.plan-badge {
  border-radius: calc(var(--radius-md) * 0.75);
  background: var(--color-neutral-100);
  color: var(--color-neutral-800);
  font-size: 11px;
  font-weight: 600;
  min-height: 0;
  padding: 3px 10px;
}
.status-pill--parsed,
.status-pill--uploaded,
.plan-badge--featured {
  background: var(--color-accent-100);
  color: var(--color-accent-800);
}
.status-pill--error,
.status-pill--failed {
  background: color-mix(in srgb, #b3261e 15%, transparent);
  color: #8c1d17;
}

/* --------------------------------------------------------------------------
   9. Preisseite
   -------------------------------------------------------------------------- */
.price-card { padding: 26px; }
.price-card--featured { border: 2px solid var(--color-accent); }
.price-line {
  /* Ohne wrap bricht der längere Enterprise-Preis mitten in der Währung um. */
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.price-line strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.price-line span { font-size: 13px; color: color-mix(in srgb, var(--color-text) 65%, transparent); }
.feature-list li { font-size: 13.5px; }

/* --------------------------------------------------------------------------
   10. Kontobereich: Kopfzeile, Seitenleiste, Fußzeile
   -------------------------------------------------------------------------- */
.app-topbar {
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-divider);
  position: sticky;
  top: 0;
  z-index: 20;
}
.app-topbar__inner {
  width: min(var(--container), calc(100vw - var(--container-pad)));
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.app-topbar__meta { display: flex; align-items: center; gap: 14px; }

/* Nur für Screenreader: Das Avatar-Kürzel allein sagt nicht, wer angemeldet ist. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.brand--app .brand__logo { max-height: 30px; width: auto; }

/* Kürzel statt Profilbild - im Entwurf ein Kreis mit zwei Buchstaben. */
.avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--color-neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  color: var(--color-text);
}
.tag--accent {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
  background: var(--color-accent-100);
  color: var(--color-accent-800);
  font-size: 11px;
  font-weight: 600;
}
.button--small { min-height: 0; padding: 7px 12px; font-size: 13px; }

.app-footer {
  margin-top: auto;
  border-top: 2px solid var(--color-divider);
  padding: 18px 0;
  background: var(--color-bg);
}
.app-footer__inner {
  width: min(var(--container), calc(100vw - var(--container-pad)));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
}
.app-footer__inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.app-footer__inner a { color: var(--color-accent-700); text-decoration: none; }

/* Seitenleiste: im Entwurf durch eine Trennlinie abgesetzt, nicht als Karte. */
.dashboard-nav {
  border: 0;
  border-right: 2px solid var(--color-divider);
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 8px 0 24px;
  gap: 0;
}
.dashboard-nav__org {
  display: block;
  padding: 0 20px 16px;
  border-bottom: 2px solid var(--color-divider);
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
}
.dashboard-nav a {
  border-radius: 0;
  padding: 9px 20px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text);
  /* Aktivmarkierung als grüne Kante links statt gefüllter Fläche. */
  border-left: 2px solid transparent;
  background: none;
}
.dashboard-nav a:hover {
  background: none;
  color: var(--color-accent-700);
  border-left-color: color-mix(in srgb, var(--color-accent) 40%, transparent);
}
.dashboard-nav a[aria-current="page"] {
  background: none;
  color: var(--color-accent-700);
  font-weight: 600;
  border-left-color: var(--color-accent);
}

/* Unterhalb der Breakpoint-Grenze klappt die Seitenleiste in eine waagerechte
   Leiste. Eine linke Kante wirkt dort deplatziert - die Markierung gehört unter
   den aktiven Eintrag. */
@media (max-width: 1180px) {
  .dashboard-nav {
    border-right: 0;
    border-bottom: 2px solid var(--color-divider);
    padding: 0 0 2px;
  }
  .dashboard-nav__org {
    border-bottom: 0;
    margin-bottom: 0;
    padding: 9px 16px;
    align-self: center;
  }
  .dashboard-nav a {
    border-left: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 14px;
  }
  .dashboard-nav a:hover { border-bottom-color: color-mix(in srgb, var(--color-accent) 40%, transparent); }
  .dashboard-nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }
}

/* Nutzungsbalken */
.usage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}
.usage-bar__text strong { font-family: var(--font-heading); font-weight: 800; font-size: 14px; }
.usage-bar__text p {
  margin: 4px 0 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.usage-bar__track {
  width: 200px;
  height: 8px;
  flex: none;
  border-radius: 999px;
  background: var(--color-neutral-200);
  overflow: hidden;
}
.usage-bar__fill { height: 100%; background: var(--color-accent); border-radius: 999px; }
/* Ab 90 % wird das Kontingent knapp - das soll auffallen. */
.usage-bar__fill--critical { background: #b3261e; }
.metric,
.usage-card {
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.metric strong { font-family: var(--font-heading); font-weight: 800; font-size: 28px; }
.dashboard-head h1,
.dashboard-topbar h1 { font-size: clamp(28px, 3.4vw, 40px); }
.filter-bar {
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   11. Hinweise und Meldungen
   -------------------------------------------------------------------------- */
.flash {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  font-weight: 600;
  font-size: 14px;
}
.flash--success { background: var(--color-accent-100); color: var(--color-accent-900); }
.flash--error { background: color-mix(in srgb, #b3261e 12%, transparent); color: #8c1d17; }
.notice-card { border-radius: var(--radius-md); }
.checklist-list span {
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
  font-weight: 400;
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   12. Abschluss-Banner (grün, volle Breite)
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--color-accent);
  color: #ffffff;
}
.cta-banner .section-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: clamp(48px, 6vw, 80px);
}
.cta-banner h2 {
  color: #ffffff;
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  max-width: 18ch;
}
.cta-banner .button--primary { background: #ffffff; color: var(--color-accent-800); }
.cta-banner .button--primary:hover { background: var(--color-neutral-200); }
.cta-banner .button--secondary,
.cta-banner .button--ghost { border-color: #ffffff; color: #ffffff; background: transparent; }
.cta-banner .button--secondary:hover,
.cta-banner .button--ghost:hover { background: color-mix(in srgb, #ffffff 16%, transparent); }

/* --------------------------------------------------------------------------
   13. Responsiv
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .trust-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 720px) {
  :root { --container-pad: 24px; }
  h1 { font-size: clamp(30px, 8vw, 38px); max-width: none; }
  .trust-row { grid-template-columns: 1fr; margin-top: 28px; }
  .card, .faq-card, .panel, .form-card, .comparison-card, .content-card { padding: 20px; }
  .cta-banner .section-inner { flex-direction: column; align-items: flex-start; }
}
