/* ==========================================================================
   Linknetz — Design System (Light Theme)

   LN-UX-401 (Nacht-Audit 2026-09-05): der frühere Dark-Mode-Tokenblock
   ([data-theme="dark"], seit Commit 64bec43 "Theme-Umschalter gestrichen"
   unerreichbar — kein Toggle, kein matchMedia/prefers-color-scheme, kein
   localStorage-Zugriff, header.ejs/profile.ejs/app-sidebar.ejs sind hart
   auf data-theme="light" fixiert) wurde entfernt statt reaktiviert. Ein
   Dark Mode ist damit aktuell keine unterstützte Option — siehe auch die
   inzwischen überholte Aussage dazu in
   docs/superpowers/specs/2026-09-01-landingpage-redesign-design.md:66-72.
   ========================================================================== */

@import './fonts.css';

:root,
[data-theme="light"] {
  /* Color Scheme */
  color-scheme: light;

  /* Surfaces (Things 3 / Apple Clean Minimalist Aesthetics) */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.95);
  --bg-sidebar: #f8fafc;
  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;
  --bg-hover: rgba(0, 0, 0, 0.04);
  --bg-active: rgba(0, 0, 0, 0.08);

  /* Borders */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-light: #e2e8f0;
  --border-glass: rgba(226, 232, 240, 0.85);
  --border-glow: rgba(14, 116, 144, 0.25);

  /* Accents (Tuned for Crisp Light Contrast) */
  --accent-cyan: #0e7490;
  --accent-cyan-glow: #0e7490;
  --cyan-primary: #0e7490;
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-purple: #7c3aed;
  /* --accent-emerald/--accent-amber auf AA-konforme Kontrastwerte (≥4.5:1
     auf Weiß) angehoben — Vollaudit UX/A11y, Hoch. Alte Werte: #059669
     (3.77:1) / #d97706 (3.19:1), unterschritten AA für Normaltext. */
  --accent-emerald: #047857;
  --accent-rose: #e11d48;
  --accent-amber: #b45309;

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-placeholder: #94a3b8;

  /* Shadows (Diffuse & Ambient) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-window: 0 12px 32px -4px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-popover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.12);
  --glow-cyan: 0 0 15px rgba(14, 116, 144, 0.12);
  --glow-indigo: 0 0 20px rgba(79, 70, 229, 0.1);
  --bg-glow-opacity: 0.12;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale (8pt-Grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[id] {
  scroll-margin-top: 90px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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);
  will-change: transform;
  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;
}

/* Typography Helpers */
.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 50%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(14, 116, 144, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(14, 116, 144, 0.35);
  filter: brightness(1.08);
}

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

.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: 0.45rem 0.95rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: 12px;
}

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

.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  box-shadow: var(--shadow-window);
}

.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
}

/* ==========================================================================
   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: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top var(--transition-fast, 0.15s ease);
}

.skip-link:focus {
  top: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  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;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon-box {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 10px;
  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: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.version-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-cyan-glow);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

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

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 0.2rem;
  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-divider,
.mobile-nav-btn {
  display: none;
}

.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: 10px;
  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;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-window);
  z-index: 99;
}

.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: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  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 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-cyan-glow);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  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;
}

@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: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.gradient-text {
  background: none;
  color: var(--accent-cyan-glow);
  -webkit-background-clip: unset;
  -webkit-text-fill-color: currentColor;
}

[data-theme="light"] .gradient-text {
  background: none;
  color: var(--accent-cyan);
  -webkit-background-clip: unset;
  -webkit-text-fill-color: currentColor;
}

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

/* Interaktiver Wunsch-Link Claimer */
.claimer-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
  transition: all var(--transition-normal);
}

.claimer-card:focus-within {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.15);
}

[data-theme="light"] .claimer-card {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -12px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .claimer-card:focus-within {
  border-color: rgba(14, 116, 144, 0.45);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 32px -12px rgba(14, 116, 144, 0.18);
}

.claimer-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  transition: all var(--transition-fast);
}

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

.claimer-prefix {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  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: 0.65rem 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  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: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  flex-shrink: 0;
}

.claimer-feedback {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 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);
}

.claimer-feedback code {
  font-family: var(--font-mono);
  background: var(--bg-surface-subtle);
  padding: 1px 5px;
  border-radius: 4px;
}

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

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

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

.hero-right-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.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 rgba(6, 182, 212, 0.15), inset 0 0 2px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.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 rgba(6, 182, 212, 0.25);
}

[data-theme="light"] .phone-device {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15), 0 0 30px rgba(14, 116, 144, 0.12);
}

/* 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-cyan), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 1.25rem auto 0.75rem;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-normal);
}

.phone-device:hover .mockup-avatar-wrap {
  transform: scale(1.05);
}

.mockup-profile-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

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

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

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

.mockup-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.mockup-link-card:hover {
  border-color: var(--accent-cyan-glow);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.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);
}

.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: 0.4rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.mockup-legal-links {
  display: flex;
  gap: 0.65rem;
}

.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: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.65rem;
  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 rgba(6, 182, 212, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan-glow);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 20;
}

/* ==========================================================================
   Bento Grid Section (Die 4 Säulen von Linknetz)
   ========================================================================== */

.bento-section {
  padding: 6rem 0;
  position: relative;
}

.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: 0.8125rem;
  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: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

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

.bento-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.bento-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-window), 0 0 25px rgba(6, 182, 212, 0.15);
}

.bento-card-large {
  grid-column: span 2;
}

.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan-glow);
  font-size: 1.5rem;
}

[data-theme="light"] .bento-icon-wrapper {
  background: #ecfeff;
}

.bento-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.bento-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.bento-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.bento-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.bento-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.bento-feature-list li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.bento-metric-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-cyan-glow);
  font-size: 1.15rem;
  margin-top: auto;
  width: fit-content;
}

.bento-metric-badge small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   Comparison Section: Linknetz vs US-Bio-Link Tools
   ========================================================================== */

.comparison-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
}

.comparison-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-window);
  overflow-x: auto;
}

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

.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.comparison-table th {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-hover);
}

.comparison-table th.col-linknetz {
  color: var(--accent-cyan-glow);
  background: rgba(34, 211, 238, 0.1);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.comparison-table td.col-linknetz {
  background: rgba(34, 211, 238, 0.04);
  font-weight: 600;
  color: var(--text-primary);
}

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

.compare-badge-good {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

.compare-badge-bad {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-rose);
  font-weight: 500;
}

/* ==========================================================================
   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: 18px;
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: all var(--transition-smooth);
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--shadow-card);
}

.process-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(34, 211, 238, 0.3);
  margin-bottom: 0.75rem;
}

[data-theme="light"] .process-number {
  color: rgba(14, 116, 144, 0.45);
}

.process-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

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

/* ==========================================================================
   Target Audience / Social Proof Section
   ========================================================================== */

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

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

.audience-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.audience-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
}

.audience-icon {
  width: 34px;
  height: 34px;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.audience-role {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.audience-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.audience-highlight {
  font-size: 0.8125rem;
  color: var(--accent-cyan-glow);
  font-weight: 600;
  margin-top: auto;
}

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

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

.cta-banner-box {
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.2), rgba(15, 23, 42, 0.95) 80%);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(6, 182, 212, 0.2);
}

[data-theme="light"] .cta-banner-box {
  background: radial-gradient(circle at 50% 0%, rgba(14, 116, 144, 0.12), #ffffff 85%);
  border-color: rgba(14, 116, 144, 0.25);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08);
}

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

.cta-subtitle {
  font-size: 1.125rem;
  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 {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 max(2rem, env(safe-area-inset-bottom));
  margin-top: 2rem;
}

.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: 1.05rem;
}

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

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

.footer-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  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 {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-badge-germany {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-left-col {
    align-items: center;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card-large {
    grid-column: span 2;
  }

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

  .audience-grid {
    grid-template-columns: 1fr;
  }
}

@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: 0.4rem 0;
  }

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

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card-large {
    grid-column: span 1;
  }

  .comparison-card {
    padding: 1rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.85rem;
  }

  .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;
  }
}

@media (max-width: 640px) {
  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
  }

  .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(0.6rem, env(safe-area-inset-top));
    padding-bottom: 0.6rem;
    max-width: 100vw;
    overflow-x: clip;
  }

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

  #loginBtn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    min-height: 40px;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .version-badge {
    display: none;
  }

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

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.875rem;
    line-height: 1.22;
    letter-spacing: -0.03em;
    margin-bottom: 0.875rem;
    word-break: break-word;
  }

  .hero-description {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 16px;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .highlight-item {
    font-size: 0.8125rem;
    gap: 0.4rem;
    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: 16px;
    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: 0.72rem;
    padding: 0.2rem 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: 0.4rem;
    padding: 0 0.1rem 0.25rem;
    margin: 0;
    max-width: 100%;
  }

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

  .list-item {
    flex-shrink: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    font-size: 0.8125rem;
    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: 0.875rem;
    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: 1.75rem;
    word-break: break-word;
  }

  .section-subtitle {
    font-size: 0.9375rem;
  }

  .bento-card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .bento-title {
    font-size: 1.2rem;
  }

  .cta-banner {
    padding: 2rem 1.25rem;
    border-radius: 16px;
    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: 20px 20px 0 0;
    border-bottom: none;
    padding: 1.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
    max-height: 90dvh;
    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-card {
    padding: 1.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
    border-radius: 14px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   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: 20px;
  box-shadow: var(--shadow-window);
}

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

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.legal-back-link:hover {
  background: var(--bg-active);
  transform: translateX(-3px);
}

.legal-main-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.875rem;
  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: 0.96875rem;
  line-height: 1.75;
}

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

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

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

.legal-block p {
  margin-bottom: 0.875rem;
}

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

.legal-block li {
  margin-bottom: 0.35rem;
}

.legal-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--bg-surface-subtle);
  border-radius: 10px;
  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: 0.9375rem;
}

.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 10px 10px 0;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}

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

  .legal-main-title {
    font-size: 1.75rem;
  }

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

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

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

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

.pricing-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pricing-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan-glow);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

[data-theme="light"] .pricing-hero-badge {
  background: #ecfeff;
}

.pricing-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

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

.pricing-card-pro {
  border: 2px solid var(--accent-cyan);
  position: relative;
}

.pricing-recommended-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-cyan);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.pricing-card-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  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: 1.5rem;
  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: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

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

.pricing-price-vat-note {
  font-size: 0.8rem;
  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: 0.85rem;
  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(--border-subtle);
  border-radius: 9999px;
  transition: background 0.15s ease;
}

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

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

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

.pricing-interval-savings {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

.pricing-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  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: 0.95rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.pricing-feature-check {
  color: var(--accent-emerald);
  font-weight: bold;
}

.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: 8px;
  padding: 12px;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  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: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.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-emerald);
}

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

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

/* ==========================================================================
   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;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.25rem;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  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);
}

.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: 0.35rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

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

.modal-logo-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  /* 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, rgba(14, 116, 144, 0.15), rgba(79, 70, 229, 0.15));
  border: 1px solid var(--border-glow);
  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: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.875rem;
  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: #e11d48;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  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: #e11d48;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9375rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
  background: var(--bg-input-focus);
}

.auth-submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8125rem;
}

.auth-info-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--accent-emerald);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  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);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-window);
}

[data-theme="light"] .auth-card {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -12px rgba(15, 23, 42, 0.1);
}

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

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

.auth-subtitle {
  font-size: 0.9375rem;
  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-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.slug-input-wrapper:focus-within {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
  background: var(--bg-input-focus);
}

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

.slug-input-field {
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.75rem 0.5rem 0.75rem 0.15rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  outline: none;
}

.slug-status-indicator {
  padding-right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slug-feedback-msg {
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 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: 0.35rem;
  border-radius: 6px;
  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: 0.8125rem;
}

.auth-link {
  color: var(--accent-cyan-glow);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

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

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

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

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

.public-profile-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.public-url-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-cyan-glow);
  font-weight: 600;
  text-decoration: none;
}

.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: 14px;
  padding: 1.5rem;
}

.dashboard-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  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: 6px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.link-move-btn:hover:not(:disabled),
.link-edit-btn:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-primary);
}

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

.link-delete-btn:hover {
  background: var(--bg-surface-subtle);
  color: var(--accent-rose);
  border-color: var(--accent-rose);
}

.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(--border-subtle);
  border-radius: 9999px;
  transition: background 0.15s ease;
}

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

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

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

/* ==========================================================================
   Einstellungen — Reiter & Status-Pills
   ========================================================================== */

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  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: rgba(217, 119, 6, 0.1);
  color: var(--accent-amber);
  border-color: rgba(217, 119, 6, 0.2);
}

.status-pill-ok {
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-emerald);
  border-color: rgba(5, 150, 105, 0.2);
}

.status-pill-danger {
  background: rgba(190, 18, 60, 0.14);
  color: #9f1239;
  border-color: rgba(190, 18, 60, 0.25);
}

.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;
}

.settings-tab {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0 0.85rem 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: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.15rem 0;
}

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

.plan-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.1rem 0;
}

.plan-meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.plan-meta-value {
  font-size: 0.9375rem;
  font-weight: 600;
}

.plan-note {
  font-size: 0.8125rem;
  color: var(--accent-amber);
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin: 1.1rem 0;
}

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

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

.plan-card-free {
  opacity: 0.82;
}

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

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.plan-card-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan-primary);
}

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

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

.plan-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.plan-card-price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

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

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

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

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

/* ==========================================================================
   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 0.875rem;
  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: 0.625rem 0.5rem;
}

.app-sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 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: rgba(34, 211, 238, 0.12);
  color: var(--cyan-primary);
}

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

.app-sidebar-profile {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  padding: 0 0.625rem;
  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: 0.375rem;
  border-radius: 8px;
  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: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.app-sidebar-profile-menu {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0.625rem;
  right: 0.625rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: var(--shadow-window);
  padding: 0.35rem;
  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 {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  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 {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  margin-top: 0.25rem;
  padding: 0.4rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.app-mobile-logout {
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  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;
}

.app-footer-link {
  font-size: 0.8125rem;
  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);
}

.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;
    padding-bottom: 64px;
  }

  .app-footer {
    position: static;
    left: auto;
    right: auto;
    height: auto;
    padding: 1.5rem 1rem 1rem 1rem;
    margin: 0 auto;
    max-width: 1000px;
  }

  .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;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
  }

  .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%;
  }

  .app-mobile-tab-profile .app-sidebar-profile-menu {
    bottom: calc(100% + 8px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 180px;
  }
}

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

.link-click-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan-glow);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.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: 12px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease;
}

.stats-kpi-card:hover {
  border-color: var(--border-medium);
}

.stats-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.stats-kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stats-kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.stats-chart-wrapper {
  position: relative;
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  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: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.stats-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8125rem;
  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: #818cf8;
}

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

.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: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  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: 0.9rem;
}

.stats-empty-state-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.stats-ranking-header {
  font-size: 0.95rem;
  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: 0.9rem;
  color: var(--text-primary);
}

.stats-ranking-url {
  font-size: 0.75rem;
  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: 0.9rem;
  color: var(--accent-cyan-glow);
  flex-shrink: 0;
  text-align: right;
}

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

/* Pro Teaser Card für Free Users */
.stats-teaser-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  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: 9999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan-glow);
  border: 1px solid rgba(34, 211, 238, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.stats-teaser-desc {
  font-size: 0.95rem;
  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: 0.875rem;
  color: var(--text-secondary);
}

.stats-teaser-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

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



.consent-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  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: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 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: 12px; padding: var(--space-4); box-shadow: var(--shadow-card); }
.admin-kpi-tile span {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.admin-kpi-tile label { font-size: 0.8125rem; color: var(--text-muted); }
.admin-kpi-tile-zero { border-color: rgba(5, 150, 105, 0.25); }

.admin-report-group { margin-bottom: var(--space-6); }
.admin-report-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 10px; 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(0,0,0,0.4); z-index: 100; }
.admin-modal.is-open { display: flex; align-items: center; justify-content: center; }
.admin-modal-content { background: var(--bg-surface); border-radius: 12px; padding: var(--space-6); max-width: 480px; width: 90%; max-height: min(85dvh, 600px); overflow-y: auto; box-shadow: var(--shadow-window); position: relative; }

.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; }
.admin-audit-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.admin-audit-table th, .admin-audit-table td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-subtle); }

/* ==========================================================================
   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: 14px;
  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: 0.9375rem;
}

.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;
  }
}
