/* ==========================================================================
   Linknetz — Design System (Komponenten)

   Die Tokens (:root, .surface-dark, .surface-light) liegen seit Paket 8 in
   public/css/tokens.css und werden dort gepflegt. Diese Datei setzt sie nur
   ein. Jede Seite bindet tokens.css VOR style.css ein.

   fonts.css wird NICHT mehr von hier importiert: alle fuenf Vorlagen mit
   einem <link> auf style.css laden fonts.css bereits selbst — mit
   ?v=<assetVersion>. Der @import hier hatte keinen Query-Teil, war also eine
   ZWEITE URL und damit ein zweiter Abruf derselben 16 KB auf jeder Seite
   (Paket 8, im Browser nachgemessen).
   ========================================================================== */


.surface-dark .bg-grid-overlay {
  background-image:
    linear-gradient(to right, rgba(246, 245, 242, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 245, 242, 0.04) 1px, transparent 1px);
}

/* Claimer- und Demo-Handle-Feld sitzen in einem Wrapper mit eigenem
   :focus-within-Stil (weiter unten) — der Ring gehört dort auf die ganze
   Box statt nur aufs Eingabefeld. Diese Regel hat (Klasse + Pseudoklasse)
   höhere Spezifität als das :where() der Grundschicht (tokens.css) und
   gewinnt unabhängig von der Reihenfolge der Stylesheets. */
.claimer-field:focus-visible,
.demo-handle-input-box input:focus-visible {
  outline: none;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}

/* Ambient Background Glows Container — Garantiert 0% Horizontal-Overflow */
.bg-effects-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  contain: strict;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: var(--bg-glow-opacity);
  transform: translate3d(0, 0, 0);
  contain: strict;
  transition: opacity var(--transition-normal);
}

.bg-glow-primary {
  top: -150px;
  left: 50%;
  transform: translateX(-50%) translate3d(0, 0, 0);
  width: min(700px, 90vw);
  height: 450px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, var(--accent-indigo) 70%, transparent 100%);
}

.bg-glow-secondary {
  top: 900px;
  right: -50px;
  transform: translate3d(0, 0, 0);
  width: min(500px, 80vw);
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple) 0%, var(--accent-blue) 60%, transparent 100%);
}

.bg-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(128, 128, 128, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: var(--type-lg);
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-2-5) 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal), filter var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

/* Voller Akzent mit kontextabhängiger Textfarbe statt Verlauf mit weißer
   Schrift: der Verlauf endete bei --accent-indigo (bewusst fixe Dekorfarbe)
   und ergab mit weißem Text auf dem hellen Limeton zu wenig Kontrast.
   --accent-contrast folgt --accent selbst pro Abschnitt (hell/dunkel) —
   ein fest verdrahtetes #0e0f12 hätte auf hellen Abschnitten (z. B. die
   Bestätigungsseite) nur 2,71:1 Kontrast ergeben. Gleiche Behandlung wie
   .pricing-badge und .demo-link-toggle.is-on. */
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 4px 15px color-mix(in oklch, var(--accent) 25%, transparent);
}

/* Design-Review 2026-09-20, Mobile-H1: Hover-Zustand nur fuer echte
   Zeigegeraete, sonst haengt der Effekt am Touch-Geraet nach dem Tippen. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px color-mix(in oklch, var(--accent) 35%, transparent);
    filter: brightness(1.08);
  }
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
    transform: translateY(-2px);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--type-md);
}

.btn-lg {
  padding: var(--space-3-5) 1.75rem;
  font-size: var(--type-xl);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--cyan-primary);
    color: var(--cyan-primary);
  }
}

/* Groesse und Strich kommen aus .icon (weiter unten definiert, also bei
   gleicher Spezifitaet ohnehin staerker). Hier steht nur, was den Pfeil vom
   uebrigen Satz unterscheidet. */
.btn-arrow {
  margin-left: var(--space-1);
  transition: transform var(--transition-fast);
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn-arrow {
    transform: translateX(3px);
  }
}

/* Glass Panels — nur noch dem Namen nach: --bg-glass/--bg-glass-card sind
   seit dem Hell/Dunkel-Umbau blickdichte Aliasse auf --bg-surface (siehe
   Kommentar in :root). Ein backdrop-filter hinter einer blickdichten Flaeche
   rendert nichts und kostet trotzdem eine GPU-Ebene — am 22.09.2026 in den
   vier Glas-Regeln und in .mobile-nav-drawer ersatzlos gestrichen (Paket 5).
   Die drei Regeln mit echt durchscheinendem rgba-Hintergrund (.site-header
   0,85, .modal-overlay und .admin-modal je 0,6) behalten ihn. */
.glass-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-window);
}

.glass-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .glass-card:hover {
    border-color: color-mix(in oklch, var(--accent) 45%, transparent);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.35), 0 0 20px color-mix(in oklch, var(--accent) 20%, transparent);
  }
}

/* ==========================================================================
   Skip-Link (WCAG 2.4.1 Bypass Blocks)
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent-cyan);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: var(--type-md);
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  text-decoration: none;
  transition: top var(--transition-fast, 0.15s ease);
}

.skip-link:focus {
  top: env(safe-area-inset-top, 0px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* N-UI-M1 (P15): zu 85 % deckend stand der Kopf beim Laden als graues Band
     (#2e2f30) ueber der schwarzen Seite — hinter ihm liegt der helle body
     (--bg-base ohne Surface-Klasse). Beim Scrollen wechselte er die Farbe.
     Blickdicht, damit auch ohne backdrop-filter (der hinter blickdichter
     Flaeche nichts bewirkt, design-tokens.test.js). */
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: max(1rem, calc(0.5rem + env(safe-area-inset-top)));
  padding-bottom: 1rem;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon-box {
  width: 38px;
  height: 38px;
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
}

.logo-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-cyan-glow);
}

.brand-name {
  font-size: var(--type-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.version-badge {
  font-family: var(--font-mono);
  font-size: var(--type-2xs);
  font-weight: 700;
  /* Gleiche Korrektur wie .hero-badge-pill: grün auf grün getöntem
     Hintergrund liest sich schlecht. */
  color: var(--text-secondary);
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 25%, transparent);
  padding: var(--space-0-5) var(--space-2);
  border-radius: var(--radius-xs);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--type-lg);
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: var(--space-1);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  border-radius: 1px;
  background: var(--cyan-primary);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Hamburger Toggle Button (hidden by default, shown via the
   `display: flex` override inside `@media (max-width: 768px)` below) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--bg-hover);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.mobile-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  /* blickdicht — kein backdrop-filter, siehe .glass-panel oben */
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-window);
  z-index: 99;
  /* Design-Review 2026-09-20, Mobile-K1: der Drawer hing als
     position:absolute im sticky Header, ohne Hoehenbegrenzung und ohne
     eigenes Scrollen. Nachgerechnet am Stand 0.10.2 (8 Navigationspunkte):
     48px Innenabstand + 476,8px Navigation (8 x 49,6 + 7 x 8 + 24) +
     57,2px Primaerbutton + 12px Abstand + 46px "Anmelden" = 640px.
     Unterkante damit 704,2px unter der Viewport-Oberkante (Header 64,2px
     bei <=640px Breite). Weil der Header sticky ist, wandert der Drawer
     beim Scrollen mit — der Teil unter der Falz war nicht bloss unsichtbar,
     sondern prinzipiell unerreichbar. Ab 768px abwaerts ist der Drawer der
     einzige Login-Weg, weil .desktop-only-btn "Anmelden" aus der Kopfzeile
     ausblendet.
     100% bezieht sich auf den Containing Block — fuer ein absolut
     positioniertes Element ist das die PADDING-Box des .site-header, also
     seine Hoehe ohne den 1px-Unterrand (63,2px statt 64,2px bei <=640px).
     top:100% misst gegen denselben Kasten, Ober- und Unterkante heben sich
     damit auf: die Unterkante des Drawers liegt exakt bei 100dvh. Ein
     fester Abzug (z. B. 64px) waere bei 641-768px falsch, dort ist der
     Header 77px hoch. */
  max-height: calc(100vh - 100%);
  max-height: calc(100dvh - 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.mobile-nav-drawer.is-open {
  display: flex;
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--type-xl);
  font-weight: 600;
  transition: background var(--transition-fast);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: var(--bg-hover);
  color: var(--cyan-primary);
}

/* ==========================================================================
   Hero Section & Claimer
   ========================================================================== */

.hero-section {
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 3rem;
}

.metric-strip {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.metric-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}

.metric-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.metric-strip-value {
  font-family: var(--font-mono);
  font-size: var(--type-3xl);
  font-weight: 700;
  color: var(--accent);
  /* Design-Review Paket 6, UI-M12: Zaehler wechselt live. */
  font-variant-numeric: tabular-nums;
}

.metric-strip-label {
  font-size: var(--type-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Messdatum klein unter Wert/Label der Weiterleitungs-Kachel (2026-09-20) —
   da es aktuell keine laufende Messung gibt, muss sichtbar sein, wann
   zuletzt gemessen wurde. */
.metric-strip-date {
  font-size: var(--type-2xs);
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .metric-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .metric-strip-value {
    font-size: var(--type-2xl);
  }
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* Bricht auf jedem Telefon um (bei 375 px gemessen 55,6 px hoch). Ohne
     Ausgleich blieb "Deutschland" allein in der zweiten Zeile stehen. */
  text-wrap: balance;
  font-size: var(--type-sm);
  font-weight: 700;
  /* Korrektur 2026-09-16: Text+Icon liefen bisher in derselben grünen
     Akzentfarbe wie der (grün getönte) Hintergrund — grün auf grün liest
     sich schlecht, selbst mit rechnerisch ausreichendem Kontrast. Text/Icon
     jetzt in der normalen hellen Schriftfarbe, nur der pulsierende Punkt
     bleibt als Blickfang grün (siehe .badge-pulse-dot, eigene Farbe). */
  color: var(--text-primary);
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 25%, transparent);
  padding: var(--space-1-5) 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
  animation: pulseDot 2s infinite ease-in-out;
}

.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  max-width: 760px;
}

.gradient-text {
  color: var(--accent);
}

.hero-description {
  font-size: var(--type-xl);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 580px;
}

/* Interaktiver Wunsch-Link Claimer */
.claimer-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.claimer-card:focus-within {
  border-color: color-mix(in oklch, var(--accent) 45%, transparent);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 25px color-mix(in oklch, var(--accent) 15%, transparent);
}

/* [data-theme="light"] .claimer-card / :focus-within entfernt (2026-09-16):
   Altes, seitenweites Theme-Attribut aus der Vor-Redesign-Zeit — zum
   Zeitpunkt dieser Änderung setzte header.ejs data-theme="light" noch für
   damals nicht umgestaltete Seiten (Login/Register/Pricing), traf hier aber
   auch die neue, dunkle Hero-Karte der Startseite und zwang sie auf ein
   weißes Kartendesign. Mittlerweile (Stand Dark-Tech-Redesign) tragen nur
   noch admin-login.ejs/partials/admin-sidebar.ejs dieses Attribut.
   .claimer-card wird ausschließlich auf der Startseite verwendet, daher
   folgenlos für andere Seiten. */

.claimer-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-1-5) var(--space-1-5) var(--space-1-5) 1rem;
  transition: border-color var(--transition-fast), background var(--transition-fast), outline-color var(--transition-fast);
}

.claimer-input-box:focus-within {
  border-color: var(--cyan-primary);
  background: var(--bg-input-focus);
}

/* Der Ring gehoert nur um die Box, wenn das Eingabefeld selbst den Fokus
   hat — :focus-within feuert auch fuer den Absende-Button in der Box, der
   ueber :where() bereits seinen eigenen Ring bekommt. */
.claimer-input-box:has(.claimer-field:focus-visible) {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.claimer-prefix {
  font-family: var(--font-mono);
  font-size: var(--type-lg);
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
  white-space: nowrap;
}

.claimer-field {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: var(--space-2-5) 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--type-xl);
  font-weight: 700;
  outline: none;
}

.claimer-field::placeholder {
  color: var(--text-placeholder);
  font-weight: 400;
}

.claimer-status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  min-width: 28px;
}

.claimer-submit-btn {
  white-space: nowrap;
  padding: 0.75rem 1.35rem;
  font-size: var(--type-lg);
  font-weight: 700;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.claimer-feedback {
  margin-top: var(--space-2-5);
  font-size: var(--type-sm);
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  transition: color var(--transition-fast);
}

.claimer-feedback.is-available {
  color: var(--accent-emerald);
  font-weight: 600;
}

.claimer-feedback.is-taken {
  color: var(--accent-rose);
  font-weight: 600;
}

.claimer-feedback.is-loading {
  color: var(--accent-cyan);
}

.claimer-feedback.is-hint {
  color: var(--text-muted);
}

/* Der Hinweis unter dem Namensfeld sitzt auf --type-sm; 14px hielt der
   Bestand dort schon als Inline-Style. */
.claimer-hint-icon {
  width: 14px;
  height: 14px;
}

.claimer-feedback code,
.process-desc code {
  font-family: var(--font-mono);
  /* N-UI-N4 (P15): --bg-surface-subtle lag auf der dunklen Karte nur ΔL* 2,1
     darueber; der Chip war unsichtbar, sein Innenabstand las sich als
     Satzfehler („anna␣,"). Elevation + Rahmen, in beiden Themes. */
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  padding: 1px 5px;
  border-radius: 4px;
}

.claimer-perks-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: var(--type-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

.perk-check {
  color: var(--accent-emerald);
  font-weight: 700;
}

/* ==========================================================================
   Interactive Smartphone Showcase Mockup
   ========================================================================== */

.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  perspective: 1200px;
}

.phone-device {
  width: 100%;
  background: #090d16;
  border: 4px solid #1e293b;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px color-mix(in oklch, var(--accent) 15%, transparent), inset 0 0 2px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .phone-device:hover {
    transform: translateY(-6px) rotateY(-2deg) rotateX(2deg);
    box-shadow: 0 35px 75px -15px rgba(0, 0, 0, 0.95), 0 0 50px color-mix(in oklch, var(--accent) 25%, transparent);
  }
}

/* [data-theme="light"] .phone-device entfernt (2026-09-16), gleicher Grund
   wie bei .claimer-card oben — auch dieses Element gibt es nur auf der
   Startseite. */

/* Phone Screen */
.phone-screen {
  background: var(--bg-base);
  border-radius: 34px;
  padding: 1.5rem 1rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 520px;
}

/* Dynamic Island / Notch */
.phone-notch-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.phone-camera-lens {
  width: 9px;
  height: 9px;
  background: #0f172a;
  border-radius: 50%;
  border: 1.5px solid #1e293b;
}

/* Mockup Header & Avatar */
.mockup-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklch, var(--accent) 80%, #0e0f12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-contrast);
  font-size: var(--type-3xl);
  font-weight: 700;
  margin: 1.25rem auto 0.75rem;
  box-shadow: 0 6px 20px color-mix(in oklch, var(--accent) 35%, transparent);
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-normal);
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .phone-device:hover .mockup-avatar-wrap {
    transform: scale(1.05);
  }
}

.mockup-profile-name {
  font-size: var(--type-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-0-5);
  letter-spacing: -0.01em;
}

.mockup-profile-handle {
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  color: var(--accent-cyan-glow);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mockup-profile-bio {
  font-size: var(--type-xs);
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  max-width: 250px;
}

/* Dunkler Kopf der Vorschau, wie .profile-head in profile.css. Negative
   Raender = Innenabstand von .phone-screen, damit das Band bis an den
   Bildschirmrand laeuft; oben schneidet der Radius des Screens ab. */
.mockup-profile-head {
  width: calc(100% + 2rem);
  margin: -1.5rem -1rem var(--space-4);
  padding: 1.5rem 1rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Mockup Links List */
.mockup-links-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: 1.5rem;
}

.mockup-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--space-3-5);
  /* Wie .link-button in profile.css: weiss mit --border-medium. */
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--type-sm);
  font-weight: 600;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .mockup-link-card:hover {
    border-color: var(--accent-cyan-glow);
    background: var(--bg-surface-elevated);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in oklch, var(--accent) 20%, transparent);
  }
}

.mockup-link-card:active {
  transform: scale(0.97);
}

.mockup-link-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mockup-link-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.mockup-link-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .mockup-link-card:hover .mockup-link-chevron {
    color: var(--accent-cyan-glow);
    transform: translateX(2px);
  }
}

/* Mockup Footer Legal */
.mockup-footer-area {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1-5);
  font-size: var(--type-2xs);
  color: var(--text-muted);
}

.mockup-legal-links {
  display: flex;
  gap: var(--space-2-5);
}

.mockup-legal-links span {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.mockup-legal-links span:hover {
  color: var(--accent-cyan-glow);
}

.mockup-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-hover);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: var(--type-2xs);
  font-weight: 600;
}

/* Floating Mockup Tag */
.mockup-floating-tag {
  position: absolute;
  top: -12px;
  right: -10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-cyan-glow);
  box-shadow: 0 6px 20px color-mix(in oklch, var(--accent) 30%, transparent);
  padding: var(--space-1-5) 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--type-xs);
  font-weight: 700;
  color: var(--accent-cyan-glow);
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  z-index: 20;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--type-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan-glow);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--type-xl);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Nachprüfbarkeits-Sektion (ersetzt den früheren Wettbewerbsvergleich,
   2026-09-20) — nutzt bewusst dieselbe Karten-Klasse wie die
   3-Schritte-Sektion weiter unten (.process-steps-grid/.process-card),
   deshalb hier nur die Sektions-Abstände, keine neue Karten-Komponente.
   ========================================================================== */

.proof-section {
  padding: 6rem 0;
}

/* ==========================================================================
   Anwendungsfaelle (Design-Review Paket 9, Conversion-K1) — wie die
   Nachpruefbarkeits-Sektion nur Sektions-Abstaende: die Karten kommen aus
   .process-steps-grid/.process-card.
   ========================================================================== */

.usecase-section {
  padding: 6rem 0;
}

.usecase-closing {
  margin-top: 2rem;
  text-align: center;
  font-size: var(--type-lg);
  color: var(--text-muted);
}

/* ==========================================================================
   3-Step Process Section
   ========================================================================== */

.process-section {
  padding: 6rem 0;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.process-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .process-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklch, var(--accent) 30%, transparent);
    box-shadow: var(--shadow-card);
  }
}

.process-number {
  font-family: var(--font-mono);
  font-size: var(--type-5xl);
  font-weight: 700;
  /* N-UI-N5 (P15): opacity .35 auf dem Akzent ergab 1,73:1. */
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Preise
   ========================================================================== */

.pricing-section {
  padding: 6rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 760px;
  margin: 3rem auto 0;
}

.pricing-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: var(--type-xs);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.pricing-name {
  font-size: var(--type-xl);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: var(--type-5xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.pricing-vat {
  margin: -1.25rem 0 1.5rem;
  font-size: var(--type-sm);
  color: var(--text-muted);
}

.pricing-card-cta {
  width: 100%;
  margin-top: 1.5rem;
}

.pricing-price span {
  font-size: var(--type-xl);
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--type-lg);
  color: var(--text-secondary);
}

/* Paket 7: der Haken stand hier als CSS-content-Glyphe und war damit der
   einzige im Produkt, der nicht aus dem Icon-Satz kam. Jetzt traegt das <li>
   das Inline-SVG selbst — ein Mechanismus statt zwei.
   flex-start statt center: die Eintraege brechen auf 320px um, zentriert
   saesse der Haken dann auf halber Texthoehe. */
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.pricing-features li .icon {
  color: var(--accent);
  margin-top: 0.2em;
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.process-title {
  font-size: var(--type-2xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.process-desc {
  font-size: var(--type-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Roadmap
   ========================================================================== */

.roadmap-section {
  padding: 6rem 0;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.roadmap-phase {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.roadmap-phase-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.roadmap-phase h3 {
  font-size: var(--type-xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.roadmap-phase p {
  font-size: var(--type-md);
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ (native <details>/<summary>, siehe Global Constraints — Abweichung
   von der ursprünglichen Spec-Dateiliste, kein eigenes JS nötig)
   ========================================================================== */

.faq-section {
  padding: 6rem 0;
}

.faq-accordion {
  max-width: 760px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.25rem;
}

.faq-item summary {
  padding: 1rem 0;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: var(--type-2xl);
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: var(--type-lg);
  line-height: 1.6;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */

.cta-banner-section {
  padding: 5rem 0 7rem;
}

.cta-banner-box {
  /* Korrektur 2026-09-16: der vorherige, sehr breite/weiche Verlauf (80%
     Ausdehnung) wirkte wie ein unscharfer, undefinierter Fleck statt eines
     bewussten Lichteffekts. Jetzt ein enger begrenzter, klar abgesetzter
     Schein (fixe Größe, scharfer Rand bei 60%) vor der eigentlichen
     Flächenfarbe. */
  background: radial-gradient(circle 360px at 50% -20%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 60%), var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-window);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: var(--type-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.cta-buttons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  /* Abstand bewusst als Innenmaß (vorher zusätzlich margin-top: 2rem):
     ein Außenabstand zeigt den Body-Hintergrund, der unverändert hell ist
     (:root). Auf jeder durchgehend dunklen Seite (/pricing, /agb, /widerruf,
     /impressum, /datenschutz, /roadmap) stand dadurch ein 32px hoher heller
     Streifen zwischen Inhalt und Fußzeile. Gesamtabstand über dem
     Fußzeilen-Inhalt bleibt identisch: 2rem + 3rem = 5rem. */
  padding: 5rem 0 max(2rem, env(safe-area-inset-bottom));
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 340px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--type-xl);
}

.footer-claim {
  font-size: var(--type-md);
  color: var(--text-secondary);
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--type-md);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy-group {
  display: flex;
  align-items: center;
  gap: var(--space-2-5);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--type-sm);
  color: var(--text-muted);
}

.footer-badge-germany {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  font-size: var(--type-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .claimer-card {
    margin-left: auto;
    margin-right: auto;
  }

  .claimer-perks-row {
    justify-content: center;
  }

  .process-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 0 3.5rem;
  }

  .header-nav {
    display: none;
  }

  .desktop-only-btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .claimer-input-box {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
    align-items: stretch;
  }

  .claimer-field {
    padding: var(--space-1-5) 0;
  }

  .claimer-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .cta-banner-box {
    padding: 2.5rem 1.25rem;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  /* iOS Auto-Zoom Fix: Mindestens 16px auf Formularfeldern */
  .form-input,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="time"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Mindestklickflächen auf Tablets & Smartphones */
  .btn,
  .btn-lg,
  .modal-close-btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Design-Review 2026-09-20, Mobile-N2: zwischen 641 und 768px setzte
     bisher nur min-height, der Button blieb ~13px schmal (min-width erst
     im 640er-Block, s.u.). Eigene Regel statt an .btn/.btn-lg oben
     angehaengt, damit die nicht ungewollt eine Mindestbreite bekommen. */
  .modal-close-btn {
    min-width: 44px;
  }

  /* Spec-Abschnitt 8b, erste Messung 2026-09-22: Mobile-K2 war mit Paket 3
     nur fuer bestimmte Selektoren ausgeliefert, nicht produktweit. Der
     Browser-Lauf hat genau zwei echte Bedienelemente darunter gefunden —
     alle anderen Treffer waren Inline-Links im Fliesstext (WCAG 2.5.8 nimmt
     die aus) oder geschlossene Modale.

     .settings-tab war 26-82 x 31px: die Hoehe kommt allein aus
     `padding-bottom: var(--space-3-5)` unter einer 17px-Zeile. min-height
     waechst nach oben, die Unterstreichung bleibt, wo sie ist. */
  .settings-tab {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  /* .password-toggle-btn war 30x30 (nur Symbol plus --space-1-5 Polster).
     `right` muss mitwandern, sonst schiebt die groessere Flaeche das Symbol
     nach links: bei 30px lag seine Mitte 27px vom rechten Feldrand, bei
     44px und right:0.25rem liegt sie bei 26px. Das Feld bekommt dazu rechts
     Platz, damit der eingegebene Text nicht unter der Schaltflaeche
     verschwindet — 16px Polsterung liessen ihn schon vorher 26px darunter
     laufen.

     Der Selektor traegt den Elternteil mit, weil `right` weiter unten in
     .password-toggle-btn (Zeile ~2780) schon gesetzt ist: eine Medienabfrage
     erhoeht die Spezifitaet nicht, die spaetere Regel gewinnt sonst. min-width
     und min-height stehen dort nicht und braeuchten das nicht — sie stehen
     nur der Lesbarkeit halber im selben Block. */
  .password-input-wrapper .password-toggle-btn {
    right: 0.25rem;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .password-input-wrapper .form-input {
    padding-right: 3.25rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    max-width: 100vw !important;
    overflow-x: clip;
  }

  .site-header {
    padding-top: max(var(--space-2-5), env(safe-area-inset-top));
    padding-bottom: var(--space-2-5);
    max-width: 100vw;
    overflow-x: clip;
  }

  .header-start-btn {
    display: none !important;
  }

  #loginBtn {
    padding: var(--space-1-5) 0.75rem;
    font-size: var(--type-sm);
    min-height: 40px;
  }

  .brand-name {
    font-size: var(--type-xl);
  }

  .version-badge {
    display: none;
  }

  .hero-section {
    padding: 2.75rem 0 1.75rem;
    overflow: hidden;
  }

  .hero-title {
    font-size: var(--type-4xl);
    line-height: 1.22;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-3-5);
    word-break: break-word;
  }

  .hero-description {
    font-size: var(--type-lg);
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: var(--space-3-5) 1rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .highlight-item {
    font-size: var(--type-sm);
    gap: var(--space-1-5);
    white-space: nowrap;
  }

  /* Mockup Smartphone-Optimierung */
  .preview-section {
    padding: 2rem 0 3rem;
    overflow: hidden;
    max-width: 100%;
  }

  .mockup-wrapper {
    perspective: none;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .mockup-window {
    border-radius: var(--radius-md);
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .mockup-titlebar {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    max-width: 100%;
    overflow: hidden;
  }

  .window-title {
    font-size: var(--type-xs);
    padding: var(--space-1) 0.5rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .window-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .badge-live {
    display: none !important;
  }

  .mockup-sidebar {
    padding: 0.75rem 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(11, 17, 30, 0.85);
    max-width: 100%;
    overflow: hidden;
  }

  .sidebar-user,
  .sidebar-section-title,
  .btn-add-list {
    display: none !important;
  }

  .sidebar-lists {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-1-5);
    padding: 0 var(--space-0-5) 0.25rem;
    margin: 0;
    max-width: 100%;
  }

  .sidebar-lists::-webkit-scrollbar {
    display: none;
  }

  .list-item {
    flex-shrink: 0;
    padding: var(--space-1-5) var(--space-3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    font-size: var(--type-sm);
    white-space: nowrap;
  }

  .list-item.active {
    border: 1px solid rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.15);
  }

  .mockup-content {
    padding: 1rem 0.75rem;
    max-width: 100%;
    overflow: hidden;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: var(--space-3-5);
    max-width: 100%;
  }

  /* Section Spacing on Smartphones */
  .features-section,
  .benefits-section,
  .mobile-section,
  .cta-section,
  .process-section {
    padding: 3rem 0;
    overflow: hidden;
    max-width: 100%;
  }

  .section-header {
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .section-title {
    font-size: var(--type-4xl);
    word-break: break-word;
  }

  .section-subtitle {
    font-size: var(--type-lg);
  }

  .cta-banner {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-md);
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Mobile Bottom-Sheet Modals */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    max-width: 100% !important;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
    padding: 1.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
    /* min(..., 100%) statt nur 90dvh: dvh misst den Layout-Viewport, den die
       Tastatur unter iOS nicht verkleinert. Seit modal-a11y.js das Overlay
       per Inline-bottom ueber die Tastatur zieht, waere die Karte sonst
       weiterhin auf 90% der VOLLEN Hoehe gedeckelt und liefe oben aus dem
       geschrumpften Overlay heraus — auf einem iPhone SE (320x568) bei
       ~260px Tastatur um rund 90px, ohne dass ihr eigenes overflow-y
       greift. Ohne Tastatur ist 100% = 100dvh, min() liefert dann
       unveraendert 90dvh. Design-Review 2026-09-20, Mobile-H3. */
    max-height: min(90dvh, 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .modal-overlay.is-open .modal-card {
    transform: translateY(0);
  }

  .modal-close-btn {
    top: 1rem;
    right: 1rem;
    min-width: 44px;
    min-height: 44px;
  }
}

/* ==========================================================================
   Legal Pages (Impressum, Datenschutz, AGB)
   ========================================================================== */

.legal-section-wrapper {
  padding: 3rem 0 6rem;
}

.legal-container {
  max-width: 900px;
}

.legal-card {
  padding: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
}

/* Seit Titel und Stand im dunklen Kopf stehen (23.09.2026), beginnt die
   Karte oft mit dem Hinweiskasten — dessen Außenabstand kam oben zum
   Innenabstand der Karte dazu. */
.legal-card > :first-child {
  margin-top: 0;
}

/* Es gibt keine globale Linkfarbe: Links im Rechtstext und in den
   Seitenköpfen standen in Browser-Blau — auf dunklem Grund kaum lesbar. */
.legal-card a:not(.btn),
.roadmap-intro .section-subtitle a {
  color: var(--accent);
}

.legal-top-nav {
  margin-bottom: 2rem;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.5rem;
  color: var(--cyan-primary);
  text-decoration: none;
  font-size: var(--type-md);
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .legal-back-link:hover {
    background: var(--bg-active);
    transform: translateX(-3px);
  }
}

.legal-main-title {
  font-size: var(--type-5xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: var(--type-md);
  color: var(--text-muted);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content-body {
  color: var(--text-secondary);
  font-size: var(--type-lg);
  line-height: 1.75;
}

.legal-block {
  margin-bottom: 2.25rem;
}

.legal-block h2 {
  font-size: var(--type-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.legal-block h3 {
  font-size: var(--type-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}

.legal-block p {
  margin-bottom: var(--space-3-5);
}

.legal-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-block li {
  margin-bottom: var(--space-1-5);
}

.legal-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.legal-info-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--type-lg);
}

.legal-info-table td:first-child code {
  /* Die Zelle ist 600; JetBrains Mono gibt es in 400/500/700 (fonts.css). */
  font-weight: 500;
}

.legal-info-table tr:last-child td {
  border-bottom: none;
}

.legal-info-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 220px;
  background: var(--bg-hover);
}

.legal-highlight-box {
  background: var(--bg-surface-subtle);
  border-left: 4px solid var(--cyan-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-size: var(--type-lg);
}

/* /performance — Ladezeit- und Verfügbarkeits-Karten. Flex statt Grid,
   zentriert und je Karte gedeckelt: der Verfügbarkeits-Abschnitt hat nur
   EINE Karte, im Raster lief sie über die ganze Breite (seit 0.13.15 steht
   die Seite im Hell/Dunkel-Aufbau von /roadmap mit zentrierten Überschriften). */
.perf-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.perf-stat-card {
  flex: 1 1 240px;
  max-width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.perf-stat-label {
  font-size: var(--type-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.perf-stat-number {
  font-family: var(--font-mono);
  font-size: var(--type-5xl);
  font-weight: 700;
  color: var(--accent-cyan-glow);
  margin: var(--space-2) 0 0;
  line-height: 1.1;
  /* Design-Review Paket 6, UI-M12: Zaehler wechselt live. */
  font-variant-numeric: tabular-nums;
}

.perf-stat-caption {
  font-size: var(--type-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}

.perf-stat-empty {
  font-size: var(--type-lg);
  color: var(--text-muted);
  margin: var(--space-2) 0 var(--space-4);
}

/* Feste Höhe (statt %), damit die height:%-Angabe je Balken (siehe unten)
   eine eindeutige Bezugsgröße hat; align-items: flex-end lässt die Balken
   trotz fester Item-Höhe unten aufsitzen. */
.perf-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 48px;
}

.perf-sparkline-bar {
  flex: 1 1 0;
  min-width: 0;
  background: var(--cyan-primary);
  opacity: 0.7;
  border-radius: 2px 2px 0 0;
}

.perf-sparkline-bar-empty {
  background: var(--border-medium);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 1.75rem 1.25rem;
  }

  .legal-main-title {
    font-size: var(--type-4xl);
  }

  .legal-info-table td {
    display: block;
    width: 100% !important;
  }

  /* N-MOB-M3 (P13): nur die Zellen wurden zur Liste, die Kopfzeile blieb eine
     451px breite Tabellenzeile in einer 316px Karte und wurde abgeschnitten;
     darunter standen die Werte ohne Beschriftung. Kopf weg, jede Zelle traegt
     ihre Beschriftung selbst (data-label). */
  .legal-info-table thead {
    display: none;
  }

  .legal-info-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: var(--type-xs);
    font-weight: 600;
    color: var(--text-muted);
  }

  .legal-info-table td:first-child {
    background: transparent;
    padding-bottom: 0.25rem;
  }

  .legal-info-table td:last-child {
    padding-top: 0.25rem;
  }
}

/* Muss HINTER der Basisregel (.legal-card, oben) und dem 768er-Block stehen.
   Bis Paket 10 stand sie im grossen 640er-Block weiter oben — vor der Basis.
   Die hat bei gleicher Spezifitaet gewonnen, und die Rechtskarte hatte auf
   dem Telefon 48 px Innenabstand je Seite: bei 375 px blieben 245 px Text.
   Dasselbe galt fuer den 768er-Block, solange die Legal-Regeln ein zweites
   Mal weiter unten in dieser Datei standen (UI-H9). */
@media (max-width: 640px) {
  .legal-card {
    padding: 1.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
    border-radius: var(--radius-md);
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   Auth Modal (Login & Registration)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  /* N-UX-H1 (Neu-Bewertung 22.09.): opacity allein nimmt nichts aus dem
     Tab-Ablauf — die Knoepfe geschlossener Modale waren unsichtbare
     Tab-Stopps, „Ja, Abo jetzt kuendigen" per Enter ausloesbar, ohne dass der
     Dialog je erschien. visibility nimmt sie aus Tab-Ablauf und
     Barrierefreiheitsbaum; die Verzoegerung haelt die Ausblende-Animation. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
  padding: 1.25rem;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  /* Wie das Profil-Popover: das Modal ist die oberste Ebene, nicht dieselbe
     Flaeche wie eine Karte. Der Overlay rettete den Kontrast bisher, der
     Schatten darunter war im Dunklen wirkungslos. */
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-window);
  position: relative;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  /* Design-Review 2026-09-20: verhindert, dass eine Wischgeste am Ende des
     Modal-Inhalts auf die Seite dahinter durchschlaegt. */
  overscroll-behavior: contain;
}

.modal-overlay.is-open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-1-5);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.modal-logo-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-sm);
  /* LN-UX-402 (Nacht-Audit 2026-09-05): alte Vor-Redesign-Akzentfarbe
     (Sky-Blue #0284c7) durch die aktuelle Teal-Akzentfarbe ersetzt —
     dieselbe rgba-Form wurde beim Paket-2-Redesign an zwei anderen
     Stellen (Fokus-Ring) bereits gefixt, hier aber übersehen. */
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 15%, transparent), rgba(79, 70, 229, 0.15));
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
}

.modal-logo-icon svg {
  width: 24px;
  height: 24px;
  color: var(--cyan-primary);
}

.modal-title {
  font-size: var(--type-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1-5);
}

.modal-subtitle {
  font-size: var(--type-md);
  color: var(--text-secondary);
  line-height: 1.5;
}

.auth-error-banner {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--accent-rose);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--type-md);
  margin-bottom: 1.25rem;
  text-align: center;
}

/* C2/M17/M20 (Task 5, Admin-UI-Politur 2026-09-09): Inline-Fehleranzeige
   für per fetch() abgefangene Admin-Formulare — gleiche Farbpalette wie
   .auth-error-banner, aber nicht zentriert (steht am Formularende, nicht
   in einer eigenen Karte). */
.form-error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--accent-rose);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--type-md);
  margin-top: 0.75rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.form-label {
  font-size: var(--type-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: var(--type-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
  background: var(--bg-input-focus);
}

/* Platzhalter explizit auf den Token legen: ohne diese Regel rendert der
   Browser-Default, und --text-placeholder wirkte nur im Claimer-Feld
   (Design-Review H8). */
.form-input::placeholder {
  color: var(--text-placeholder);
}

.auth-submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: var(--space-3);
}

.auth-info-banner {
  background: color-mix(in oklch, var(--accent-emerald) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent-emerald) 28%, transparent);
  color: var(--accent-emerald);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--type-md);
  margin-bottom: 1.25rem;
  text-align: center;
  line-height: 1.5;
}

.auth-page-wrapper {
  min-height: calc(100vh - 180px);
  min-height: calc(100dvh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  position: relative;
  z-index: 2;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-window);
}

/* Bestellseite /upgrade (Rechtspaket 2026-09-23, Spec Abschnitt 3.1) */
.order-summary { margin: 0 0 1.5rem; padding: 1rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.order-summary .pricing-feature-list { margin: 0.75rem 0 0; }
.order-summary-price { margin: 0.25rem 0; }
.order-summary-term, .order-summary-legal, .order-summary-next { font-size: var(--type-sm); color: var(--text-muted); margin: 0.5rem 0; }

/* /pricing (Rechtspaket 2026-09-23, Spec Abschnitt 3.4): Hinweis unter dem Pro-Knopf, dass hier noch nichts bestellt wird. */
.pricing-cta-note { font-size: var(--type-sm); color: var(--text-muted); text-align: center; margin: 0.5rem 0 0; }

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: var(--type-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: var(--type-lg);
  color: var(--text-secondary);
  line-height: 1.5;
}

.slug-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), outline-color var(--transition-fast);
}

/* Design-Review 2026-09-20: box-shadow bei 20% Alpha ist im
   Windows-Kontrastmodus unsichtbar — an die Fassung der beiden
   Geschwister (.claimer-input-box:has(...), .demo-handle-input-box)
   angeglichen. Betrifft dieselbe Falle wie der produktweite
   :where()-Fokusring aus Paket 1. */
.slug-input-wrapper:focus-within {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
  background: var(--bg-input-focus);
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.slug-prefix {
  padding: 0.75rem 0.25rem 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: var(--type-md);
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
  white-space: nowrap;
}

.slug-input-field {
  flex: 1;
  /* N-MOB-N1 (P13): ohne min-width:0 behielt das Feld seine Standardbreite und
     ragte 70-140px aus dem Rahmen; bei langer Eingabe rollte der Rahmen mit
     und das Praefix stand als „z.de/" da. */
  min-width: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.75rem 0.5rem 0.75rem var(--space-0-5);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--type-lg);
  font-weight: 700;
  outline: none;
}

.slug-status-indicator {
  padding-right: var(--space-3-5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slug-feedback-msg {
  font-size: var(--type-sm);
  margin-top: var(--space-1-5);
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  transition: color var(--transition-fast);
}

.slug-feedback-msg.is-available {
  color: var(--accent-emerald);
}

.slug-feedback-msg.is-taken {
  color: var(--accent-rose);
}

.slug-feedback-msg.is-loading {
  color: var(--accent-cyan);
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1-5);
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
  color: var(--text-primary);
}

.auth-links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  font-size: var(--type-sm);
}

.auth-link {
  /* N-MOB-N2 (P15): „Passwort vergessen?" war 20,8px hoch, 5,5px neben dem
     Passwortfeld. Eigenstaendige Links, keine Inline-Links im Fliesstext. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-cyan-glow);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-trust-note {
  margin-top: var(--space-3);
  text-align: center;
  font-size: var(--type-sm);
  color: var(--text-muted);
  text-wrap: balance;
}

.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: var(--type-md);
  color: var(--text-secondary);
}

/* Dashboard Styles */
.dashboard-container {
  padding: 2.5rem 1rem 4rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Seitentitel der App-Shell und des Admin-Bereichs (Design-Review Paket 6,
   UI-M12). Vorher trugen zehn <h1> ihre Groesse inline: drei im Kundenbereich
   (1,75rem / 1,5rem / 1,5rem) und sieben im Admin (je 1,5rem) — dieselbe
   Rolle in zwei Groessen. Die Klasse ersetzt alle zehn Inline-Angaben. */
.page-title {
  font-size: var(--type-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem 0;
}

.dashboard-hero-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.public-profile-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in oklch, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 25%, transparent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.public-url-text {
  font-family: var(--font-mono);
  font-size: var(--type-lg);
  color: var(--accent-cyan-glow);
  font-weight: 700;
  text-decoration: none;
  /* P14: seit die Adresse aus PUBLIC_DOMAIN kommt, kann sie laenger sein als
     „linknetz.de/…" (dev: linknetz.dev.mwolf94.de/…) und hat keine
     Umbruchstelle — bei 320px ragte sie 2px aus dem Container. */
  min-width: 0;
  overflow-wrap: anywhere;
}

.public-url-text:hover {
  text-decoration: underline;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.dashboard-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3-5) 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.link-item-actions {
  flex-shrink: 0;
}

.link-move-btn,
.link-edit-btn,
.link-delete-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  /* Paket 5: lag bis 22.09.2026 auf --bg-surface-elevated — demselben Token
     wie .dashboard-link-item, auf dem die Buttons sitzen. Solange das Token
     ein Alias auf --bg-surface war, fiel das nicht auf; mit einer echten
     Elevationsebene waere der Button per Konstruktion unsichtbar geworden.
     Jetzt eine Stufe zurueckgesetzt (ΔL* 8,7 hell / 5,4 dunkel zur Zeile). */
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  font-size: var(--type-md);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .link-move-btn:hover:not(:disabled),
  .link-edit-btn:hover {
    /* Bewusst OHNE Fuellungswechsel. Der bisherige Wert --bg-surface-subtle
       waere ab Paket 5 der Ruhezustand selbst (No-Op), und --bg-hover als
       Ersatz kehrt im hellen Theme die Richtung um: die Auflage rgba(0,0,0,
       .04) auf der weissen Zeile ergibt #f5f5f5, der Button ruecke damit von
       ΔL* 11,2 auf 3,5 an die Zeile heran — er verschwaende beim Hover statt
       hervorzutreten. Die Flaechenleiter laeuft in den beiden Themes
       gegenlaeufig (hell ist --bg-surface-alt dunkler als --bg-surface,
       dunkel heller), also traegt kein Flaechen-Token hier in beide
       Richtungen. Textfarbe und Rahmen tun es: --border-control steht auf
       dem Ruhewert in beiden Themes bei 2,91:1. */
    color: var(--text-primary);
    border-color: var(--border-control);
  }
}

.link-move-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .link-delete-btn:hover {
    /* ohne Fuellungswechsel, s. .link-edit-btn:hover oben — Rahmen und
       Textfarbe tragen das Signal hier ohnehin schon */
    color: var(--accent-rose);
    border-color: var(--accent-rose);
  }
}

/* Design-Review 2026-09-20, Mobile-H1: Tap-Feedback fuer die Aktions-Icons,
   die keine .btn sind (.btn:active deckt die uebrigen Buttons bereits ab). */
.link-move-btn:active:not(:disabled),
.link-edit-btn:active,
.link-delete-btn:active {
  /* Das Tap-Feedback, um das es in dieser Regel geht, ist der Massstab —
     eine Fuellung waere aus demselben Grund gegenlaeufig wie beim Hover. */
  transform: scale(0.94);
}

.link-toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.link-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.link-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}

.link-toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: var(--bg-base);
  border-radius: 50%;
  transition: transform 0.15s ease;
}

/* N-UX-H2: das Input ist 0x0 und traegt den produktweiten Fokusring
   unsichtbar; der Ring gehoert auf die sichtbare Schiene. */
.link-toggle-switch input:focus-visible + .link-toggle-slider,
.pricing-interval-switch input:focus-visible + .pricing-interval-slider {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.link-toggle-switch input:checked + .link-toggle-slider {
  background: var(--accent-emerald);
}

.link-toggle-switch input:checked + .link-toggle-slider::before {
  transform: translateX(16px);
  background: var(--accent-contrast);
}

/* ==========================================================================
   Einstellungen — Reiter
   ========================================================================== */

.settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.settings-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  /* overflow-x: auto alone forces overflow-y to compute to auto too (CSS
     overflow spec) — without this, the ~1px sub-pixel overflow from the
     active tab's border-bottom triggers a permanent vertical scrollbar. */
  overflow-y: hidden;
  /* Mobile-M5: am Rand des Scrollers loeste die Wischgeste sonst die
     Zurueck-Navigation des Browsers aus. */
  overscroll-behavior-x: contain;
}

/* UX-M18 / Mobile-M10, gemessen 22.09.2026: ab 360 px passen alle fuenf
   Reiter, bei 320 px fehlten 28 px — ausgerechnet "Konto" (Kontoloeschung)
   lag unsichtbar hinter dem Rand. 4 x 8 px weniger Abstand reichen. */
@media (max-width: 359px) {
  .settings-tabs {
    gap: var(--space-4);
  }
}

.settings-tab {
  /* Seit Paket 11 ein <a> statt <button>: inline-flex + center zentriert den
     Text wie vorher der Button, wenn min-height (Touch) die Box streckt. */
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: var(--type-md);
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0 var(--space-3-5) 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.settings-tab:hover {
  color: var(--text-primary);
}

.settings-tab.active {
  color: var(--cyan-primary);
  border-bottom-color: var(--cyan-primary);
}

.settings-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.settings-panel.active {
  display: flex;
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.plan-name {
  font-size: var(--type-xl);
  font-weight: 700;
  margin: 0 0 var(--space-0-5) 0;
}

.plan-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  font-size: var(--type-md);
}

.plan-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-4-5) 0;
}

.plan-meta-label {
  font-size: var(--type-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.plan-meta-value {
  font-size: var(--type-lg);
  font-weight: 600;
}

.plan-note {
  font-size: var(--type-sm);
  color: var(--accent-amber);
  background: color-mix(in oklch, var(--accent-amber) 8%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent-amber) 18%, transparent);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-3-5);
  margin: var(--space-4-5) 0;
}

.plan-toggle-row {
  margin-bottom: 0;
}

.plan-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-card-highlight {
  border-color: var(--cyan-primary);
}

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2-5);
}

/* Abschnitts-Label der Einstellungen. Stand bis Paket 10 (UI-M7) sechsmal
   als kopierter Inline-Stil in einstellungen.ejs, obwohl es die Regel hier
   schon gab — nur unter dem Namen der Planungskarte. */
.section-eyebrow {
  /* UX-M4 (P15): in den Einstellungen sind die Eyebrows jetzt echte
     Ueberschriften (h2/h3) — Rand und Zeilenhoehe der Ueberschrift zuruecknehmen. */
  margin: 0;
  line-height: inherit;
  font-size: var(--type-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan-primary);
}

.section-eyebrow-spaced {
  margin-bottom: var(--space-4);
}

.section-eyebrow-danger {
  color: var(--accent-rose);
}

.section-eyebrow-muted {
  color: var(--text-muted);
}

.plan-card-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-1-5);
  margin-bottom: var(--space-3-5);
}

.plan-card-price-amount {
  font-size: var(--type-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-card-price-unit {
  font-size: var(--type-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.plan-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--type-md);
  padding: var(--space-1) 0;
  color: var(--text-secondary);
}

.plan-feature-check {
  color: var(--accent-emerald);
}

.plan-feature-dash {
  color: var(--text-muted);
  font-weight: 700;
}

/* ==========================================================================
   Micro-Typo & Accessibility Rules
   ========================================================================== */

.tabular-nums,
[tabular-nums],
.badge-tag,
.nav-count,
.notification-badge,
.notification-badge-pill,
.profile-stat-value,
.header-kbd-shortcut,
.spotlight-kbd,
kbd {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   App-Shell Navigation (Sidebar Desktop / Tab-Bar Mobile)
   ========================================================================== */

.app-body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-sidebar {
  width: 180px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem var(--space-3-5);
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2-5) 0.5rem;
}

.app-sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem var(--space-2-5);
  border-radius: var(--radius-xs);
  font-size: var(--type-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.app-sidebar-nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.app-sidebar-nav-link.active {
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  color: var(--cyan-primary);
}

.app-sidebar-spacer {
  flex: 1;
}

.app-sidebar-profile {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  padding: 0 var(--space-2-5);
  height: 60px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.app-sidebar-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--space-1-5);
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-align: left;
}

.app-sidebar-profile-btn:hover {
  background: var(--bg-hover);
}

.app-sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  flex-shrink: 0;
}

.app-sidebar-profile-text {
  overflow: hidden;
  line-height: 1.25;
}

.app-sidebar-profile-name {
  font-size: var(--type-xs);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-profile-plan {
  font-size: var(--type-xs);
  color: var(--text-muted);
}

.app-sidebar-profile-menu {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0.625rem;
  right: 0.625rem;
  /* UI-M9: lag auf --bg-surface, also exakt der Farbe der .app-sidebar, aus
     der es aufklappt — getrennt nur durch einen 1,155:1-Rahmen und einen
     schwarzen Schlagschatten, der auf #0e0f12 unsichtbar ist. Das Popover
     sah aus, als waere die Sidebar laenger geworden. */
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-window);
  padding: var(--space-1-5);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}

.app-sidebar-profile-menu.is-open {
  display: flex;
}

/* `button` mit aufgenommen (Vollaudit Kurzfristig, CSRF): der Abmelden-Eintrag
   ist jetzt ein `<button type="submit">` in einem `display: contents`-Form
   statt einem `<a>` (GET /logout musste einem POST-Formular weichen), soll
   aber optisch identisch zum verbleibenden `<a>`-Menüeintrag bleiben. */
.app-sidebar-profile-menu a,
.app-sidebar-profile-menu button {
  /* 13px x 1,6 + 2x8px Polsterung = 36,8px. Seit die mobile Admin-Leiste
     vier Navigationsziele in dieses Menue legt (Design-Review 2026-09-20,
     Mobile-H4), sind das echte Tap-Ziele und keine Desktop-Menuepunkte
     mehr — flex statt block, damit min-height greift. */
  display: flex;
  align-items: center;
  /* Paket 7: Abstand zwischen Icon und Beschriftung. Vorher stand hier eine
     Glyphe MIT Leerzeichen im Text ("↪ Abmelden"), das Leerzeichen war der
     Abstand. */
  gap: 0.5rem;
  min-height: 44px;
  width: 100%;
  background: transparent;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0.5rem var(--space-2-5);
  border-radius: var(--radius-xs);
  font-size: var(--type-sm);
  color: var(--text-secondary);
  text-decoration: none;
}

.app-sidebar-profile-menu a:hover,
.app-sidebar-profile-menu button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Immer sichtbarer Abmelde-Link (funktioniert ohne JavaScript). Seit der
   CSRF-Umstellung (Vollaudit Kurzfristig) sind die `<noscript>`-Fallbacks
   `<button type="submit">` statt `<a>` — ohne einen Chrome-Reset (background/
   border/font/cursor) bekämen sie sonst die Browser-Default-Optik eines
   Buttons statt wie der bisherige `<a>`-Link auszusehen (Whole-Branch-Review-
   Fund; gleiches Reset-Muster wie `.app-sidebar-profile-menu a, button` oben). */
.app-sidebar-logout {
  /* Paket 7: flex statt block — mit Inline-SVG statt Textglyphe braucht die
     Zeile eine Ausrichtung und einen echten Abstand. */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: transparent;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  margin-top: 0.25rem;
  padding: var(--space-1-5) var(--space-2-5);
  border-radius: var(--radius-xs);
  font-size: var(--type-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.app-sidebar-logout:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.app-mobile-logout {
  /* Paket 7: s. .app-sidebar-logout. */
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: var(--type-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.app-mobile-logout:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.app-main {
  flex: 1;
  min-width: 0;
  margin-left: 180px;
  padding-bottom: 4.5rem;
}

.app-footer {
  position: fixed;
  bottom: 0;
  left: 180px;
  right: 0;
  height: 60px;
  box-sizing: border-box;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 0 1.5rem;
  z-index: 30;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

/* Design-Review 2026-09-20, Mobile-H8: Trefferhoehe wie .footer-nav-link
   (oeffentliches Pendant) — Vorbild fuer diese Regel und den 768er-Umbruch
   unten. */
.app-footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--type-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.app-footer-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.app-mobile-topbar,
.app-mobile-tabbar {
  display: none;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.3);
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .btn-danger:hover {
    background: rgba(244, 63, 94, 0.18);
    border-color: var(--accent-rose);
  }
}

@media (max-width: 768px) {
  .app-body {
    flex-direction: column;
  }

  .app-sidebar {
    display: none;
  }

  .app-mobile-topbar {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
  }

  .app-main {
    margin-left: 0;
    /* Die Tab-Bar ist mit min-height:48px auf 1+8+48+max(8,inset) gewachsen:
       65px ohne Ausschnitt, 91px mit 34px Safe-Area. Die festen 64px plus
       16px Fusszeilen-Polsterung reichten dafuer nicht mehr — der letzte
       Pflicht-Rechtslink lag 11px unter der Bar. */
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .app-footer {
    position: static;
    left: auto;
    right: auto;
    height: auto;
    padding: 1.5rem 1rem 1rem 1rem;
    margin: 0 auto;
    max-width: 1000px;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.25rem;
  }

  .app-mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 0.5rem 0 max(0.5rem, env(safe-area-inset-bottom));
    z-index: 100;
  }

  .app-mobile-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: var(--type-2xs);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    min-height: 48px;
    touch-action: manipulation;
  }

  /* Design-Review 2026-09-20, Mobile-H5: Tap-Feedback fuer die Tabbar. */
  .app-mobile-tab:active { background: var(--bg-hover); }

  .app-mobile-tab.active {
    color: var(--cyan-primary);
  }

  /* Wrapper für Profil-Tab: Button und Dropdown als Geschwister */
  .app-mobile-tab-profile {
    flex: 1;
    position: relative;
    display: flex;
  }

  .app-mobile-tab-profile > .app-mobile-tab {
    flex: 1;
    width: 100%;
  }

  /* Rechtsbuendig statt ueber dem Tab zentriert: der Tab ist der letzte von
     vier, seine Mitte liegt bei 87,5% der Breite. Zentriert ragte das 180px
     breite Menue um 90 - Viewport/8 nach rechts hinaus (50px auf 320, 45px
     auf 360, 41px auf 390) — und html/body{overflow-x:clip} schneidet das
     ab, statt es scrollbar zu machen. Design-Review 2026-09-20; im
     Kundenbereich seit dem App-Shell-Umbau so, im Admin neu dazugekommen. */
  .app-mobile-tab-profile .app-sidebar-profile-menu {
    bottom: calc(100% + 8px);
    left: auto;
    right: 0.5rem;
    transform: none;
    width: 180px;
  }

  /* Design-Review 2026-09-20, Mobile-K2: Dashboard-Trefferflaechen unter
     44x44px, Loeschen-Button ohne Abstand zum Rest der Aktionsleiste. */
  .dashboard-link-item { flex-wrap: wrap; row-gap: 0.75rem; }
  /* flex-wrap + flex-shrink gehoeren zusammen: die Leiste braucht
     4x44 + 52 (Schalter) + 4x12 (gap) + 12 (margin-left) = 288px, hat aber
     erst ab 404px Viewport so viel Platz (Spur 300/328/358px bei 320/360/390,
     minus 50px .dashboard-section-card und 34px .dashboard-link-item).
     Ohne beides schrumpfen genau die Buttons, deren Groesse hier das Ziel
     ist — auf 320px auf 26px und damit unter die 28px von vorher. */
  /* row-gap steht hier, obwohl der Inline-Style aus app-dashboard.js ihn
     ueber `gap` ohnehin gewinnt: sonst haengt der Zeilenabstand der jetzt
     umbrechenden Leiste unsichtbar an einer fremden Datei. */
  .link-item-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; row-gap: 0.75rem; }
  .link-move-btn,
  .link-edit-btn,
  .link-delete-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    font-size: var(--type-xl);
    touch-action: manipulation;
  }
  /* P13 (N-MOB-M2): das Label ist die Trefferflaeche und war 52x30. Es ist
     jetzt 44 hoch; die sichtbare Schiene bleibt 30px (inset 7px oben/unten). */
  .link-toggle-switch { width: 52px; height: 44px; }
  .link-toggle-slider { inset: 7px 0; }
  /* left/bottom aus der Basisregel sind 2px und passen nur zum 16px-Knopf:
     bei 24px in einem 30px hohen Schalter ist (30-24)/2 = 3px die Mitte.
     translateX bleibt 22px (52 - 3 - 24 - 3). */
  .link-toggle-slider::before { width: 24px; height: 24px; left: 3px; bottom: 3px; }
  .link-toggle-switch input:checked + .link-toggle-slider::before { transform: translateX(22px); }
  /* Fehlgriff-Schutz: Loeschen vom Rest absetzen (Mobile-K2). */
  .link-delete-btn { margin-left: 0.75rem; }
}

/* ==========================================================================
   Dashboard Statistics (Paket 3)
   ========================================================================== */

.link-click-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--type-xs);
  font-weight: 700;
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  color: var(--accent-cyan-glow);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
  font-family: var(--font-mono);
  white-space: nowrap;
  /* Design-Review Paket 6, UI-M12: Zaehler wechselt live. */
  font-variant-numeric: tabular-nums;
}

.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-kpi-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4-5) 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease;
}

/* Design-Review 2026-09-20, Mobile-H1: s. .btn-primary:hover oben. */
@media (hover: hover) and (pointer: fine) {
  .stats-kpi-card:hover {
    border-color: var(--border-medium);
  }
}

.stats-kpi-label {
  font-size: var(--type-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1-5);
}

.stats-kpi-value {
  font-size: var(--type-3xl);
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.15;
  letter-spacing: -0.02em;
  /* Design-Review Paket 6, UI-M12: Zaehler wechselt live. */
  font-variant-numeric: tabular-nums;
}

.stats-kpi-sub {
  font-size: var(--type-xs);
  color: var(--text-muted);
  margin-top: var(--space-1-5);
}

.stats-chart-wrapper {
  position: relative;
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.stats-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stats-chart-title {
  font-size: var(--type-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.stats-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: var(--type-sm);
  color: var(--text-secondary);
}

.stats-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.stats-legend-dot.clicks {
  background: var(--accent-cyan-glow);
}

.stats-legend-dot.views {
  background: var(--accent-amber);
}

.stats-svg-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.stats-chart-svg {
  width: 100%;
  min-width: 500px;
  height: auto;
  display: block;
}

.stats-tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.15s ease;
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: var(--type-xs);
  font-family: var(--font-mono);
  box-shadow: var(--shadow-popover);
  z-index: 30;
  white-space: nowrap;
  margin-top: -8px;
}

.stats-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--border-medium) transparent transparent transparent;
}

.stats-empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--type-md);
}

.stats-empty-state-icon {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Link Performance Ranking */
.stats-ranking-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.stats-ranking-header {
  font-size: var(--type-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.stats-ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
}

.stats-ranking-row:last-child {
  border-bottom: none;
}

.stats-ranking-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-ranking-title {
  font-weight: 600;
  font-size: var(--type-md);
  color: var(--text-primary);
}

.stats-ranking-url {
  font-size: var(--type-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-ranking-clicks {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--type-md);
  color: var(--accent-cyan-glow);
  flex-shrink: 0;
  text-align: right;
  /* Design-Review Paket 6, UI-M12: Zaehler wechselt live. */
  font-variant-numeric: tabular-nums;
}

.stats-ranking-clicks-sub {
  font-size: var(--type-xs);
  font-weight: 400;
  color: var(--text-muted);
}

/* Pro Teaser Card für Free Users */
.stats-teaser-cta {
  font-weight: 700;
  padding: var(--space-3) 1.25rem;
}

.stats-teaser-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  text-align: center;
}

.stats-teaser-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 1rem 2rem;
  pointer-events: none;
  filter: blur(2px);
}

.stats-teaser-backdrop-bar {
  width: 14px;
  background: var(--accent-cyan-glow);
  border-radius: 3px 3px 0 0;
}

.stats-teaser-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
}

.stats-teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  color: var(--accent-cyan-glow);
  border: 1px solid color-mix(in oklch, var(--accent) 25%, transparent);
  font-size: var(--type-sm);
  font-weight: 700;
  margin-bottom: 1rem;
}

.stats-teaser-title {
  font-size: var(--type-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.stats-teaser-desc {
  font-size: var(--type-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.stats-teaser-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  margin: 0 auto 1.75rem auto;
  max-width: 360px;
  font-size: var(--type-md);
  color: var(--text-secondary);
}

.stats-teaser-feature-item {
  display: flex;
  /* Wie .plan-feature-row: der Haken gehoert an die ERSTE Zeile, nicht auf
     halbe Hoehe eines zweizeiligen Merkmals (Paket 7, Ikonografie-Konsistenz
     — vorher war es genauso, nur mit einem Textzeichen). */
  align-items: flex-start;
  gap: 8px;
}

.stats-teaser-check {
  color: var(--accent-emerald);
}



.consent-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-xs);
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.consent-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent-emerald);
}

.consent-checkbox-text {
  font-size: var(--type-md);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Avatar-Zuschnitt-Modal (Werkstatt #4aab3580)

   Die sichtbare quadratische Fläche IST der spätere 256x256-Ausschnitt —
   kein separater Auswahlrahmen nötig. Das Bild wird per Drag verschoben und
   per Zoom-Regler skaliert, .avatar-crop-stage bleibt fix und schneidet den
   Überstand per overflow:hidden ab.
   ========================================================================== */
.avatar-crop-card {
  max-width: 360px;
}

.avatar-crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  cursor: grab;
  touch-action: none;
}

.avatar-crop-stage.is-dragging {
  cursor: grabbing;
}

.avatar-crop-stage img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.avatar-crop-zoom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: var(--type-lg);
}

.avatar-crop-zoom input[type="range"] {
  flex: 1;
  accent-color: var(--cyan-primary);
  height: 44px;
}

.avatar-crop-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.avatar-crop-actions .btn {
  flex: 1;
}

@media (max-width: 640px) {
  .avatar-crop-card {
    max-width: none;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: max(2rem, env(safe-area-inset-top));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  /* Bleibt quadratisch — nur die Kantenlänge wächst mit dem Viewport,
     damit der sichtbare Ausschnitt weiterhin exakt dem Server-Crop
     entspricht (siehe Kommentar oben am Abschnitt). */
  .avatar-crop-stage {
    width: min(88vw, 420px);
    margin: 0 auto;
  }
}

/* ==========================================================================
   Live-Demo-Editor
   ========================================================================== */

.demo-section {
  padding: 6rem 0;
}

.demo-editor-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 3rem;
}

.demo-editor-panel {
  padding: 2rem;
  /* Per Playwright/WebKit-Mobile-Review 2026-09-16 gefunden: Grid-Items
     haben standardmäßig min-width:auto (= Inhalts-Mindestbreite), nicht 0.
     Ohne diese Zeile hat der Inhalt (Link-Zeilen mit Text + 3 Buttons) das
     "1fr"-Grid-Gleis in der mobilen Einspalten-Ansicht auf ~420px
     aufgeblasen — 30px über den iPhone-13-Pro-Viewport hinaus, unsichtbar
     abgeschnitten statt scrollbar (overflow-x:clip auf body/html). Klassischer
     CSS-Grid-"Blowout"; min-width:0 lässt das Item auf die Gleisbreite
     schrumpfen. */
  min-width: 0;
}

.demo-editor-field label {
  display: block;
  font-size: var(--type-sm);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.demo-handle-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-base);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
}

.demo-handle-input-box:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.demo-handle-prefix {
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

.demo-handle-input-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  outline: none;
  font-size: var(--type-xl);
  padding: 0.25rem 0.25rem 0.25rem var(--space-0-5);
}

.demo-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.demo-link-text {
  /* P13: ohne min-width:0 schrumpfte der Titel nicht unter sein laengstes Wort,
     und bei 320px ragten die Knoepfe 4px aus dem Container. */
  min-width: 0;
  font-size: var(--type-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.demo-link-controls {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  flex-shrink: 0;
}

.demo-link-move,
.demo-link-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.demo-link-toggle.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.demo-cta {
  margin: 1.25rem 0 0;
  text-align: center;
}

.demo-preview-panel {
  display: flex;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 1024px) {
  .demo-editor-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== App-spezifische Komponenten (aus altem style.css uebernommen) ===== */

/* .badge-pulse-dot bereits oben (Zeile 730) definiert, byte-identisch —
   Dublette beim Übernehmen entfernt (2026-09-16). */



/* ==========================================================================
   Pricing Page
   ========================================================================== */

/* Auf .legal-container skoped (2026-09-16): .pricing-grid/.pricing-card/
   .pricing-card-pro heißen hier genauso wie auf der Startseite ("Preise"-
   Teaser-Abschnitt), meinen aber die eigenständige, ausführlichere Gestaltung
   der dedizierten /pricing-Seite. Ohne Scope überschrieben diese Regeln
   unbeabsichtigt auch den schlankeren Homepage-Teaser (gleicher
   Klassenname, gleiche Spezifität, später im Stylesheet = gewinnt). */
.legal-container .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}



.legal-container .pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}



.legal-container .pricing-card-pro {
  border: 1.5px solid color-mix(in oklch, var(--accent) 50%, transparent);
  position: relative;
}



.pricing-recommended-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-cyan);
  color: var(--accent-contrast);
  font-size: var(--type-xs);
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}



.pricing-card-label {
  color: var(--text-secondary);
  font-size: var(--type-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}



.pricing-card-pro .pricing-card-label {
  color: var(--accent-cyan-glow);
}



.pricing-card-name {
  font-size: var(--type-3xl);
  font-weight: 700;
  margin-bottom: 1rem;
}



.pricing-price-box {
  margin-bottom: 1.5rem;
}



.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}



.pricing-price-value {
  font-size: var(--type-5xl);
  font-weight: 700;
  color: var(--text-primary);
}



.pricing-price-period {
  color: var(--text-muted);
  font-size: var(--type-lg);
}



.pricing-price-subnote {
  font-size: var(--type-md);
  color: var(--accent-cyan-glow);
  margin-top: 2px;
  font-weight: 600;
}



.pricing-price-vat-note {
  font-size: var(--type-sm);
  color: var(--text-muted);
  margin-top: 4px;
}



.pricing-interval-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}



.pricing-interval-label {
  font-size: var(--type-md);
  color: var(--text-muted);
  font-weight: 600;
}



.pricing-interval-label.is-active {
  color: var(--text-primary);
}



.pricing-interval-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}



.pricing-interval-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}



.pricing-interval-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}



.pricing-interval-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: var(--bg-base);
  border-radius: 50%;
  transition: transform 0.15s ease;
}



.pricing-interval-switch input:checked + .pricing-interval-slider {
  background: var(--accent);
}



.pricing-interval-switch input:checked + .pricing-interval-slider::before {
  transform: translateX(16px);
  background: var(--accent-contrast);
}



.pricing-interval-savings {
  font-size: var(--type-xs);
  color: var(--accent);
  font-weight: 700;
}



.pricing-card-desc {
  color: var(--text-secondary);
  font-size: var(--type-lg);
  margin-bottom: 1.5rem;
}



.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--type-lg);
}



.pricing-feature-item {
  display: flex;
  /* s. .stats-teaser-feature-item */
  align-items: flex-start;
  gap: 8px;
}



.pricing-feature-item.is-muted {
  color: var(--text-muted);
}



.pricing-feature-check,
.stats-teaser-check,
.plan-feature-check {
  margin-top: 0.2em;
}

.pricing-feature-check {
  color: var(--accent);
}



.pricing-feature-dash {
  color: var(--text-muted);
}



.pricing-inline-code {
  background: var(--bg-surface-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}



.checkout-consent-info {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 12px;
  margin-bottom: 1rem;
  font-size: var(--type-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}



.checkout-consent-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}



.checkout-consent-info a {
  color: var(--accent-cyan-glow);
  text-decoration: underline;
}



.pricing-compare-card {
  margin-top: 2rem;
}



.pricing-compare-title {
  font-size: var(--type-2xl);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}



.pricing-compare-table-wrapper {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}



.pricing-compare-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}



.pricing-compare-table th {
  padding: 12px;
  border-bottom: 1px solid var(--border-medium);
}



.pricing-compare-table th.is-pro-column {
  color: var(--accent-cyan-glow);
}



.pricing-compare-table th:not(:first-child),
.pricing-compare-table td:not(:first-child) {
  width: 25%;
  text-align: center;
}



.pricing-compare-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
}



.pricing-compare-table tr:last-child td {
  border-bottom: none;
}



.pricing-compare-check {
  color: var(--accent);
}



.pricing-compare-strong {
  font-weight: 600;
}



.pricing-compare-dash {
  color: var(--text-muted);
}



.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  font-size: var(--type-xs);
  font-weight: 700;
  padding: var(--space-1-5) 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 1px solid transparent;
}



.status-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}



.status-pill-warn {
  background: color-mix(in oklch, var(--accent-amber) 12%, transparent);
  color: var(--accent-amber);
  border-color: color-mix(in oklch, var(--accent-amber) 22%, transparent);
}



.status-pill-ok {
  background: color-mix(in oklch, var(--accent-emerald) 12%, transparent);
  color: var(--accent-emerald);
  border-color: color-mix(in oklch, var(--accent-emerald) 22%, transparent);
}



.status-pill-danger {
  background: color-mix(in oklch, var(--accent-rose) 14%, transparent);
  color: var(--accent-rose);
  border-color: color-mix(in oklch, var(--accent-rose) 25%, transparent);
}



.status-pill-muted {
  background: var(--bg-hover);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}



.toast {
  /* [hidden] hat dieselbe Spezifität wie die Klasse .toast, gewinnt aber
     nur, wenn die Regel NACH dieser hier steht — display hier deshalb
     bewusst nicht gesetzt, stattdessen unten explizit für den sichtbaren
     Fall. Sonst überschreibt .toast{display:flex} das hidden-Attribut und
     der Toast bleibt permanent sichtbar, unabhängig vom JS. */
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto 1.25rem;
  padding: var(--space-3-5) 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-card);
}

.toast:not([hidden]) {
  display: flex;
}

.toast-success {
  border-color: color-mix(in oklch, var(--accent-emerald) 30%, transparent);
  background: color-mix(in oklch, var(--accent-emerald) 8%, var(--bg-surface-elevated));
}

/* Gegenstueck zu .toast-success fuer Fehlermeldungen (Design-Review
   2026-09-20, UX-H9: abgelaufener Bestaetigungslink). Ohne diese Variante
   erbt ein Fehler-Toast die gruene Icon-Farbe unten und liest sich als
   Erfolg. Gleiche Bauweise wie .toast-success, nur mit --accent-rose. */
.toast-error {
  border-color: color-mix(in oklch, var(--accent-rose) 30%, transparent);
  background: color-mix(in oklch, var(--accent-rose) 8%, var(--bg-surface-elevated));
}

.toast-error .toast-icon {
  color: var(--accent-rose);
}

.toast-icon {
  color: var(--accent-emerald);
  /* Optisch auf die erste Textzeile (.toast-title) ausgerichtet, nicht auf
     die Mitte der zwei- bis dreizeiligen Meldung. */
  margin-top: 0.15em;
}

.toast-body { flex: 1; min-width: 0; }

.toast-title {
  font-weight: 700;
  font-size: var(--type-md);
  margin-bottom: var(--space-0-5);
}

.toast-desc {
  font-size: var(--type-sm);
  color: var(--text-muted);
}

.toast-close {
  /* Paket 7: font-size/line-height standen hier fuer das &times;-Zeichen und
     tragen an einem <svg> mit fester Groesse nichts mehr. flex zentriert das
     Icon im Knopf, wo vorher die Schriftgrundlinie das tat. */
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 var(--space-0-5);
}






/* Admin-Bereich (Task 15, Admin-Neubau 2026-09-08) — die Layout-Grundklassen
   (.app-sidebar, .app-main u. a.) existieren bereits und werden 1:1
   wiederverwendet. Nur drei rein admin-spezifische Klassen fehlen: KPI-
   Kacheln, das Begründungs-Modal (ersetzt window.prompt()/confirm(),
   Projektregel) und die Melde-Karten der Moderations-Queue. */
.admin-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-4); }


.admin-kpi-tile { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-4); box-shadow: var(--shadow-card); }


.admin-kpi-tile span {
  display: block;
  font-size: var(--type-3xl);
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}


.admin-kpi-tile label { font-size: var(--type-sm); color: var(--text-muted); }


.admin-kpi-tile-zero { border-color: color-mix(in oklch, var(--accent-emerald) 25%, transparent); }



.admin-report-group { margin-bottom: var(--space-6); }


.admin-report-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: var(--space-3); margin-bottom: var(--space-2); }



.admin-report-card p,
.admin-user-list a,
.admin-kpi-tile span {
  overflow-wrap: anywhere;
}



.admin-modal { display: none; position: fixed; inset: 0; background: rgba(4, 7, 13, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 100; }


.admin-modal.is-open { display: flex; align-items: center; justify-content: center; }


.admin-modal-content { background: var(--bg-surface-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-6); max-width: 480px; width: 90%; max-height: min(85dvh, 600px, 100%); overflow-y: auto; box-shadow: var(--shadow-window); position: relative; overscroll-behavior: contain; }



.admin-pagination {
  flex-wrap: wrap;
}



/* M9/M10 (Task 5, Admin-UI-Politur 2026-09-09): Audit-Log-Tabelle. Bewusst
   KEIN "display: block" auf der Tabelle selbst — das würde die Zellen aus
   dem Tabellen-Layout-Algorithmus herausnehmen (width: 100% griffe dann
   nicht mehr relativ zum Elternelement, Spalten könnten kollabieren).
   Stattdessen ein umschließender Wrapper mit overflow-x: auto (siehe
   admin-audit-log.ejs), die Tabelle bleibt display: table. */
.admin-audit-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }


.admin-audit-table { width: 100%; border-collapse: collapse; font-size: var(--type-sm); }


.admin-audit-table th, .admin-audit-table td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-subtle); }

/* ==========================================================================
   Roadmap (öffentliche Seite /roadmap)

   Nutzt die Bausteine des Startseiten-Abschnitts (.roadmap-section,
   .roadmap-grid, .roadmap-phase) weiter — hier stehen nur die Abweichungen
   der eigenen Seite. Alles über Tokens, damit es in hellen wie dunklen
   Abschnitten trägt.
   ========================================================================== */

.roadmap-intro {
  padding: 4.5rem 0 3.5rem;
}

.roadmap-intro .section-header {
  margin-bottom: 0;
}

/* Gruppen stehen direkt untereinander — 6rem je Abschnitt (Startseite)
   wäre bei drei Gruppen hintereinander zu viel Leerraum. */
.roadmap-page-section {
  padding: 3.5rem 0;
}

.roadmap-page-section .section-header {
  margin-bottom: 2.5rem;
}

/* Gruppenüberschrift: kleiner als der Seitentitel darüber, sonst
   konkurrieren drei gleich große Überschriften auf einer Seite. */
.roadmap-group-title {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  margin-bottom: 0.5rem;
}

/* Flex statt Grid: die Gruppen haben 1, 4 und 7 Punkte, also endet jede
   zweite Zeile unvollständig. Im Raster bliebe so eine Restzeile links
   kleben, obwohl die Überschrift darüber zentriert steht — Flexbox
   zentriert auch die angebrochene Zeile. */
.roadmap-grid-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.roadmap-grid-list .roadmap-phase {
  flex: 0 1 260px;
}

.roadmap-group-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  background: var(--text-muted-2);
}

.roadmap-group-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
}

@media (max-width: 640px) {
  .roadmap-grid-list .roadmap-phase {
    flex-basis: 100%;
  }
}

/* Vierte Karte im Startseiten-Anriss: führt auf /roadmap. Gleiche Optik wie
   eine Phasen-Karte, nur klickbar. */
.roadmap-phase-more {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

/* Aufgeteilt statt gemeinsam gekapselt (Mobile-H1, 2026-09-20): der
   :hover-Zweig gehoert hinter @media (hover: hover), der :focus-visible-Zweig
   nicht — gemeinsam eingewickelt haette die Tastaturbedienung auf
   Touch-Geraeten ihren Fokusstil verloren. */
@media (hover: hover) and (pointer: fine) {
  .roadmap-phase-more:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
}

.roadmap-phase-more:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.roadmap-phase-more h3 {
  color: var(--accent);
}

/* ==========================================================================
   Changelog (/changelog)

   Zeitleiste statt Karten: Datum links (bleibt beim Scrollen stehen),
   Einträge rechts untereinander, Haarlinie zwischen den Tagen. Die Karten
   im Raster wurden verschieden hoch und brachen mittig um — gelesen wird
   die Seite aber von oben nach unten wie ein Protokoll.
   ========================================================================== */

.changelog {
  padding: 1.5rem 0 4rem;
}

.changelog-list {
  max-width: 880px;
}

.changelog-day {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-medium);
}

.changelog-day:last-child {
  border-bottom: 0;
}

/* top: unter dem sticky .site-header. */
.changelog-when {
  position: sticky;
  top: 6rem;
  align-self: start;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--type-md);
  font-weight: 700;
  line-height: 1.4;
}

.changelog-when time {
  display: block;
}

.changelog-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--type-xs);
  font-weight: 500;
  color: var(--text-muted);
}

.changelog-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.changelog-items li {
  position: relative;
  padding-left: 1.25rem;
}

.changelog-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.changelog-items h3 {
  font-size: var(--type-xl);
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.changelog-items p {
  margin: 0;
  max-width: 62ch;
  font-size: var(--type-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .changelog-day {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.75rem 0;
  }

  .changelog-when {
    position: static;
  }
}

/* Impressum-Editor (P16): Auswahl der Quelle in den Einstellungen. */
.imprint-choice,
.imprint-block {
  border: 0;
  margin: 0 0 1rem 0;
  padding: 0;
  min-width: 0;
}

.imprint-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--type-md);
  color: var(--text-primary);
  cursor: pointer;
}

.imprint-option input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin: 0;
}

.imprint-option:has(input:disabled) {
  color: var(--text-muted);
  cursor: default;
}

.imprint-pro-hint {
  font-size: var(--type-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.field-error {
  display: block;
  font-size: var(--type-sm);
  color: var(--accent-rose);
}

.form-input[aria-invalid="true"] {
  border-color: var(--accent-rose);
}

/* P13 (N-MOB-M1): unter 360px passte „Kostenlos starten" nicht mehr neben Logo
   und Menueknopf — der Knopf ragte 16px aus der Kopfzeile, vom Menueknopf waren
   noch 27,7 von 44px zu sehen. Beide Handlungen stehen in der Schublade. */
@media (max-width: 359px) {
  .nav-actions > .btn-primary {
    display: none;
  }
}

/* P13 (N-MOB-M2): die sichtbare Schiene bleibt 36x20, die Trefferflaeche des
   Labels waechst auf 44x44. */
@media (max-width: 768px) {
  .pricing-interval-switch {
    width: 44px;
    height: 44px;
  }

  .pricing-interval-slider {
    inset: 12px 4px;
  }
}

/* P14: Leiste „Link gelöscht — Rückgängig" in der Link-Karte. */
.link-undo-bar {
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  font-size: var(--type-md);
  color: var(--text-secondary);
}

.link-undo-bar:not([hidden]) {
  display: flex;
}
