/**
 * Sicherheits-Assistent Web — Style V4.0 (FinTech Light Mode)
 * Modernes, vertrauenswürdiges Banking-Design mit Premium-Tiefe.
 * Light Mode Default + Dark Mode Toggle.
 */

/* ═══════════════════════════════════════════════
   CSS CUSTOM PROPERTIES — LIGHT MODE (Default)
   ═══════════════════════════════════════════════ */
:root {
  /* FinTech Light Theme */
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-surface: #F1F5F9;
  --bg-recessed: #F8FAFC;
  --border-card: #E2E8F0;
  --border-subtle: #CBD5E1;

  /* Sparkassen / FinTech Palette */
  --serioes-blau: #0F2C59;
  --sparkassen-rot: #E30613;
  --safe-green: #00875A;
  --adac-gelb: #FFCC00;
  --troll-purple: #5E35B1;

  /* Gradient-Varianten für Depth */
  --gradient-danger: linear-gradient(135deg, #DC2626, #B91C1C);
  --gradient-troll: linear-gradient(135deg, #7C3AED, #5B21B6);
  --gradient-safe: linear-gradient(135deg, #059669, #047857);

  /* Text */
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  /* Accent (beibehalten für Kompatibilität) */
  --accent-cyan: #0EA5E9;
  --accent-pink: #EC4899;

  /* Multi-Layer Shadows (Premium Banking Depth) */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 2px 6px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.1), 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);

  /* Radius (moderner, etwas straffer) */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  /* Badge Backgrounds (Farbcodierte Circle-Badges) */
  --badge-bg-blue: #EFF6FF;
  --badge-bg-red: #FEF2F2;
  --badge-bg-green: #ECFDF5;
  --badge-bg-purple: #F5F3FF;
  --badge-bg-yellow: #FFFBEB;

  /* Spacing System */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

/* ═══════════════════════════════════════════════
   DARK MODE TOKENS (via Toggle)
   ═══════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-card: #111827;
  --bg-card-surface: #1a1f35;
  --bg-recessed: #0F172A;
  --border-card: #1e293b;
  --border-subtle: #334155;

  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #38bdf8;
  --accent-pink: #f472b6;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 2px 6px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);

  --badge-bg-blue: rgba(15, 44, 89, 0.3);
  --badge-bg-red: rgba(227, 6, 19, 0.15);
  --badge-bg-green: rgba(0, 135, 90, 0.15);
  --badge-bg-purple: rgba(94, 53, 177, 0.15);
  --badge-bg-yellow: rgba(255, 204, 0, 0.15);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none !important;
}

.id-hidden {
  display: none !important;
}

.hidden-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   SUBTILER HINTERGRUND (FinTech Light Gradient)
   ═══════════════════════════════════════════════ */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, #EFF6FF 0%, var(--bg) 35%, var(--bg) 100%);
  transition: background 0.3s ease;
}

[data-theme="dark"] .cyber-grid {
  background:
    radial-gradient(circle at 50% 0%, rgba(15, 44, 89, 0.3), transparent 70%),
    linear-gradient(rgba(56, 189, 248, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* ═══════════════════════════════════════════════
   APP CONTAINER — Responsive Max Width
   ═══════════════════════════════════════════════ */
.app-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 30px;
}

/* ═══════════════════════════════════════════════
   HEADER — Identisch mit Kotlin
   ═══════════════════════════════════════════════ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* GATO DYNAMICS HEADER LOGO */
.header-gato-logo-wrapper {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.header-gato-logo-wrapper:hover {
  transform: scale(1.05);
}

.gato-logo-svg {
  width: 100%;
  height: 100%;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.4));
  transition: color 0.3s ease, filter 0.3s ease;
}

.gato-logo-svg-footer {
  width: 22px;
  height: 22px;
  color: var(--accent-cyan);
}

.header-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════════════
   GATO DYNAMICS AUGEN STATUS-ANIMATIONEN
   ═══════════════════════════════════════════════════════════════ */
.gato-eyes {
  transition: color 0.3s ease;
}

.gato-eye-xx {
  display: none;
}

/* 1. IDLE: Sanftes blaues Atmen */
.gato-eyes--idle .gato-eye-dot {
  display: block;
  fill: #00E5FF;
  animation: gato-eye-breathe 2.4s ease-in-out infinite alternate;
}

@keyframes gato-eye-breathe {
  0% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 4px #00E5FF);
  }
}

/* 2. OFFLINE: Blaue X X ohne Blinken (Comic-Style) */
.gato-eyes--offline .gato-eye-dot {
  display: none !important;
}
.gato-eyes--offline .gato-eye-xx {
  display: block !important;
  stroke: #0EA5E9;
}

/* 3. SAFE (Sicher / Kein Scam): Grünes Blinken */
.gato-eyes--safe .gato-eye-dot {
  display: block;
  fill: #10B981;
  animation: gato-eye-pulse-green 1.4s ease-in-out infinite alternate;
}

@keyframes gato-eye-pulse-green {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 6px #10B981);
  }
}

/* 4. WARNING (Verdächtig): Orangefarbenes Blinken */
.gato-eyes--warning .gato-eye-dot {
  display: block;
  fill: #F59E0B;
  animation: gato-eye-pulse-orange 1.2s ease-in-out infinite alternate;
}

@keyframes gato-eye-pulse-orange {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 6px #F59E0B);
  }
}

/* 5. DANGER (Gefahr / Alarm): Schnelles, helles rotes Blinken */
.gato-eyes--danger .gato-eye-dot {
  display: block;
  fill: #EF4444;
  animation: gato-eye-alarm-red 0.55s ease-in-out infinite alternate;
}

@keyframes gato-eye-alarm-red {
  0% {
    opacity: 0.25;
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 8px #EF4444) drop-shadow(0 0 14px #DC2626);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ═══════════════════════════════════════════════
   HAMBURGER MENU
   ═══════════════════════════════════════════════ */
.hamburger-wrapper {
  position: relative;
}

.hamburger-btn {
  width: 46px;
  height: 46px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.hamburger-dropdown {
  position: absolute;
  top: 54px;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  min-width: 270px;
  box-shadow: var(--shadow-card);
  z-index: 100;
  overflow: hidden;
  animation: dropdown-in 0.15s ease-out;
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s;
}

.menu-item:hover {
  background: rgba(56, 189, 248, 0.08);
}

.menu-item i {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.menu-divider {
  height: 1px;
  background: var(--border-card);
  margin: 4px 0;
}

/* ═══════════════════════════════════════════════
   DESCRIPTION TEXT
   ═══════════════════════════════════════════════ */
.app-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 900px;
}

/* ═══════════════════════════════════════════════
   SPLIT DASHBOARD GRID (2 Spalten auf Desktop)
   ═══════════════════════════════════════════════ */
.split-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 900px) {
  .split-dashboard {
    grid-template-columns: 1.15fr 1fr;
  }
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .main-right {
    position: sticky;
    top: 20px;
  }
}

/* ═══════════════════════════════════════════════
   CARD BASE
   ═══════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════
   DIREKTER DRAHT CARD
   ═══════════════════════════════════════════════ */
.direkter-draht-card {
  border: 2px solid #2563eb;
  background: #0f172a;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.2);
  margin-bottom: 20px;
}

.direkter-draht-card.has-followup {
  border-color: var(--sparkassen-rot);
}

.dd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
}

.dd-header.followup-mode {
  background: linear-gradient(135deg, var(--sparkassen-rot), #DC2626);
}

.dd-header-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.dd-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dd-header-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  opacity: 0.85;
  text-transform: uppercase;
}

.dd-header-title {
  font-size: 15px;
  font-weight: 700;
}

.dd-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Rückfrage-Box */
.dd-followup-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 14px;
}

.dd-followup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sparkassen-rot);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dd-followup-question {
  color: #fca5a5;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}

.dd-body textarea {
  width: 100%;
  background: #1e293b !important;
  border: 2px solid #3b82f6 !important;
  border-radius: var(--radius-xs);
  padding: 14px;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.6;
  min-height: 110px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dd-body textarea:focus {
  outline: none;
  border-color: #60a5fa !important;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
}

.dd-body textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 0.85;
}

.dd-submit-btn {
  height: 48px;
}

/* ═══════════════════════════════════════════════
   INPUT CARD (MEDIEN & AUFNAHMEN)
   ═══════════════════════════════════════════════ */
.input-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #0f172a !important;
  border: 2px solid #2563eb !important;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.25) !important;
  border-radius: var(--radius);
}

.camera-btn-subtle {
  height: 48px !important;
  min-height: 48px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: #1e293b !important;
  border: 1px dashed #475569 !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.camera-btn-subtle:hover {
  border-color: var(--accent-cyan) !important;
  background: rgba(56, 189, 248, 0.06) !important;
}

.input-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.input-section-header i {
  color: var(--accent-cyan);
  font-size: 18px;
}

.margin-top-sm {
  margin-top: 4px;
}

.input-card textarea {
  width: 100%;
  background: #1e293b !important;
  border: 2px solid #475569 !important;
  border-radius: var(--radius-xs);
  padding: 14px;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.5;
  min-height: 120px;
  resize: vertical;
  transition: border-color 0.2s;
}

.input-card textarea:focus {
  outline: none;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.input-card textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 0.85;
}

.input-card textarea:focus {
  outline: none;
  border-color: var(--serioes-blau);
}

.input-card textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

/* OR Divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.or-line {
  flex: 1;
  height: 1px;
  background: var(--border-card);
}

.or-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Upload Zone */
.upload-zone {
  position: relative;
  width: 100%;
  min-height: 100px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.04);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px;
}

.drop-icon {
  font-size: 24px;
  color: var(--text-dim);
  opacity: 0.6;
}

.drop-text-primary {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.drop-text-secondary {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

/* Image/Video Preview */
.image-preview-container {
  width: 100%;
  position: relative;
}

.image-preview-container img,
.image-preview-container video {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-xs);
}

.image-preview-container img {
  display: none;
}

.image-preview-container video {
  display: none;
}

.remove-media-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.remove-media-btn:hover {
  background: var(--sparkassen-rot);
}

/* ═══════════════════════════════════════════════
   AUDIO INTERFACE
   ═══════════════════════════════════════════════ */
.audio-interface-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mic-recorder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.record-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.record-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}

.record-btn.recording {
  border-color: var(--sparkassen-rot);
  background: rgba(227, 6, 19, 0.2);
  color: var(--sparkassen-rot);
  animation: pulse-record 1.5s ease-in-out infinite;
}

@keyframes pulse-record {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(227, 6, 19, 0);
  }
}

.record-status {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-align: center;
}

.record-timer {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.visual-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.eq-bar {
  width: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: eq-bounce 0.5s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) {
  animation-delay: 0s;
  height: 6px;
}

.eq-bar:nth-child(2) {
  animation-delay: 0.1s;
  height: 12px;
}

.eq-bar:nth-child(3) {
  animation-delay: 0.2s;
  height: 4px;
}

.eq-bar:nth-child(4) {
  animation-delay: 0.3s;
  height: 14px;
}

.eq-bar:nth-child(5) {
  animation-delay: 0.15s;
  height: 8px;
}

@keyframes eq-bounce {
  to {
    height: 3px;
  }
}

.audio-upload-box {
  display: flex;
  flex-direction: column;
}

.drag-drop-zone-mini {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
}

.drag-drop-zone-mini:hover,
.drag-drop-zone-mini.dragover {
  border-color: var(--accent-cyan);
}

.audio-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
}

.audio-upload-icon {
  font-size: 22px;
  color: var(--text-dim);
}

.audio-upload-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.audio-player-preview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-details {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.audio-player-preview audio {
  width: 100%;
  height: 32px;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: none;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--serioes-blau);
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.2);
}

.btn-danger {
  background: var(--sparkassen-rot);
  color: white;
}

.btn-danger:hover {
  filter: brightness(1.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline-danger {
  background: transparent;
  color: var(--sparkassen-rot);
  border: 1px solid var(--sparkassen-rot);
}

.btn-troll {
  background: rgba(94, 53, 177, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(94, 53, 177, 0.4);
}

.btn-troll:hover {
  background: rgba(94, 53, 177, 0.25);
}

.btn-share {
  background: rgba(15, 44, 89, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
}

.btn-share:hover {
  background: rgba(56, 189, 248, 0.12);
}

.scan-btn {
  height: 52px;
  font-size: 15px;
  margin-top: 4px;
}

.scan-btn .loader-spinner {
  display: none;
}

.scan-btn.loading .btn-text {
  display: none;
}

.scan-btn.loading .loader-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-troll .loader-spinner {
  display: none;
}

.btn-troll.loading .btn-text {
  display: none;
}

.btn-troll.loading .loader-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════
   OUTPUT CARD (Rechte Spalte)
   ═══════════════════════════════════════════════ */
.output-card {
  padding: 0;
  min-height: 380px;
}

/* Placeholder / Idle */
.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 10px;
}

.placeholder-icon {
  font-size: 52px;
  color: var(--text-dim);
  opacity: 0.25;
}

.result-placeholder h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.result-placeholder p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Loading */
.scan-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}

.loading-spinner {
  font-size: 40px;
  color: var(--serioes-blau);
}

.scan-loading-panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.scan-loading-panel p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Result Panel */
.scan-result-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.result-header-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.threat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.threat-badge.badge-gefahr {
  background: rgba(227, 6, 19, 0.15);
  border: 1px solid rgba(227, 6, 19, 0.4);
  color: #fca5a5;
}

.threat-badge.badge-verdacht {
  background: rgba(255, 204, 0, 0.15);
  border: 1px solid rgba(255, 204, 0, 0.4);
  color: var(--adac-gelb);
}

.threat-badge.badge-sicher {
  background: rgba(0, 135, 90, 0.15);
  border: 1px solid rgba(0, 135, 90, 0.4);
  color: var(--safe-green);
}

.threat-badge.badge-kein-scam {
  background: rgba(15, 44, 89, 0.15);
  border: 1px solid rgba(15, 44, 89, 0.4);
  color: var(--accent-cyan);
}

.result-divider {
  height: 1px;
  background: var(--border-card);
}

.result-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-pink {
  color: var(--accent-pink);
}

.text-green {
  color: var(--safe-green);
}

.explanation-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

.report-inline-btn-row {
  display: flex;
  justify-content: flex-end;
}

.icon-btn-inline {
  background: transparent;
  border: none;
  color: var(--text-dim);
  opacity: 0.6;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.icon-btn-inline:hover {
  opacity: 1;
  color: var(--accent-pink);
}

.red-flags-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.red-flag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.red-flag-bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sparkassen-rot);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.red-flag-text {
  font-size: 14px;
  color: var(--text-main);
}

.action-plan-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-plan-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.action-plan-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 135, 90, 0.15);
  border: 1px solid var(--safe-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--safe-green);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.action-plan-text {
  font-size: 14px;
  color: var(--text-main);
}

.troll-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.troll-result-wrapper {
  background: rgba(94, 53, 177, 0.08);
  border: 1px solid rgba(94, 53, 177, 0.3);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.troll-instruction {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.troll-content {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

.troll-action-buttons-row {
  display: flex;
  gap: 10px;
}

.troll-action-buttons-row .btn {
  flex: 1;
}

.copy-success-badge {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 135, 90, 0.15);
  border: 1px solid var(--safe-green);
  border-radius: var(--radius-xs);
  color: var(--safe-green);
  font-size: 12px;
  font-weight: 700;
}

.ki-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: var(--radius-xs);
  padding: 10px;
}

.disclaimer-icon {
  color: #d97706;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ki-disclaimer p {
  font-size: 12px;
  color: #d4a043;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   GOOGLE ADMOB BANNER AD
   ═══════════════════════════════════════════════ */
.google-banner-ad-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #0f172a;
  border-top: 2px solid #4285F4;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
}

.google-ad-badge {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ad-content-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-text {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-btn-google {
  background: #1a73e8 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
  transition: all 0.2s ease;
  font-family: inherit;
}

.ad-btn-google:hover {
  background: #1557b0 !important;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   FOOTER (TDDDG / DSGVO COMPLIANT FOOTER NAV)
   ═══════════════════════════════════════════════ */
.cyber-footer {
  width: 100%;
  padding: 24px 16px 30px;
  background: rgba(10, 15, 29, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
  font-size: 13px;
  color: #94a3b8;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px dashed #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 14px;
}

.footer-copyright {
  font-weight: 500;
  color: #cbd5e1;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.15);
  text-decoration: none;
}

.footer-divider {
  color: #475569;
  font-size: 10px;
}

/* ═══════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════ */
.cyber-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.cyber-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
}

.modal-header {
  background: var(--serioes-blau);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 16px;
}

.modal-body p {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 8px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-actions {
  padding: 12px 16px;
}

.modal-actions-row {
  display: flex;
  gap: 10px;
}

.modal-actions-row .btn {
  flex: 1;
}

.report-status-msg {
  margin-top: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 13px;
}

/* Offizieller 110 Notruf Hinweis-Kasten */
.emergency-110-box {
  background: rgba(220, 53, 69, 0.07);
  border-left: 4px solid #dc3545;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 14px 0;
}

.emergency-110-box.compact {
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 13px;
}

.emergency-110-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc3545;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.emergency-110-body p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-main, #222);
  margin-bottom: 8px;
}

.emergency-110-body p:last-child {
  margin-bottom: 0;
}

.emergency-110-tag-ok {
  display: inline-block;
  background: #28a745;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.emergency-110-tag-stop {
  display: inline-block;
  background: #dc3545;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.emergency-110-tag-info {
  display: inline-block;
  background: #17a2b8;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.camera-modal-card {
  max-width: 480px;
}

.camera-modal-body {
  padding: 0;
}

.camera-stream-wrapper {
  position: relative;
  background: black;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.camera-stream-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-close-x-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

.camera-modal-actions {
  display: flex;
  gap: 8px;
  background: var(--bg-card-surface);
}

.camera-modal-actions .btn {
  flex: 1;
}

/* ═══════════════════════════════════════════════════════ */
/* ARCHIV MODAL STYLES (v1.9)                              */
/* ═══════════════════════════════════════════════════════ */
.archive-modal-card {
  max-width: 800px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.archive-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.archive-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-card);
}

.archive-count-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 184, 217, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 184, 217, 0.25);
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 55vh;
  padding-right: 4px;
}

.archive-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.archive-empty-state .empty-icon {
  font-size: 48px;
  color: var(--accent-blue);
  margin-bottom: 12px;
  opacity: 0.6;
}

.archive-empty-state p {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.archive-empty-state span {
  font-size: 12px;
}

.archive-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.archive-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(0, 184, 217, 0.1);
}

.archive-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-item-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.archive-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archive-item-prompt {
  font-size: 13px;
  color: var(--text-bright);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid var(--accent-cyan);
  word-break: break-word;
}

.archive-item-explanation {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.archive-item-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.text-red {
  color: #fca5a5 !important;
  border-color: rgba(227, 6, 19, 0.4) !important;
}

.text-red:hover {
  background: rgba(227, 6, 19, 0.15) !important;
}

/* ═══════════════════════════════════════════════
   INTERSTITIAL AD MODAL — GOOGLE ADMOB
   ═══════════════════════════════════════════════ */
.mock-interstitial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.google-interstitial-card {
  background: #111827 !important;
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  border: 2px solid #1a73e8 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.interstitial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #1f2937;
  border-bottom: 1px solid #374151;
}

.google-ad-header-badge {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.interstitial-close-label {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
}

.interstitial-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-interstitial-body {
  padding: 24px;
  text-align: center;
  color: #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.google-ad-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.2);
  border: 1px solid rgba(26, 115, 232, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-ad-big-logo {
  font-size: 32px;
  color: #1a73e8;
}

.google-interstitial-body h2 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
}

.interstitial-desc {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}

.google-ad-meta-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #374151;
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  width: 100%;
  text-align: left;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #9ca3af;
}

.google-ad-meta-box strong {
  color: #f3f4f6;
}

.btn-google-blue {
  background: #1a73e8 !important;
  color: #ffffff !important;
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  border: none !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.btn-google-blue:hover {
  background: #1557b0 !important;
}

/* ═══════════════════════════════════════════════
   LEGAL MODALS
   ═══════════════════════════════════════════════ */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
  padding: 16px;
}

.legal-modal-overlay--top {
  z-index: 1000 !important;
}

#datenschutz-modal {
  z-index: 99999 !important;
}

.legal-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--serioes-blau);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal-header {
  background: var(--serioes-blau);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.legal-modal-header span {
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.legal-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
}

.legal-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 220px;
}

.legal-modal-body p {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-modal-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-modal-body li {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 4px;
}

.legal-modal-footer {
  padding: 16px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   ONBOARDING MODAL
   ═══════════════════════════════════════════════ */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 350;
  padding: 16px;
}

.onboarding-card {
  background: var(--bg-card);
  border: 2px solid var(--serioes-blau);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: 100%;
}

.onboarding-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--serioes-blau);
}

.onboarding-icon-warning {
  color: #d97706;
}

.onboarding-step h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.onboarding-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.onboarding-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.onboarding-feature-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 44, 89, 0.15);
  border: 1px solid rgba(15, 44, 89, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: left;
}

.onboarding-feature-row i {
  color: var(--serioes-blau);
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.onboarding-feature-row span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.onboarding-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.onboarding-step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: left;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--serioes-blau);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.onboarding-step-row span {
  font-size: 14px;
  color: var(--text-main);
}

.onboarding-disclaimer-box {
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.onboarding-disclaimer-box p {
  font-size: 13px;
  color: #d4a043;
  line-height: 1.6;
  margin-bottom: 8px;
}

.onboarding-disclaimer-box p:last-child {
  margin-bottom: 0;
}

.onboarding-disclaimer-box strong {
  color: #fbbf24;
}

.onboarding-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: all 0.3s;
}

.dot.active {
  width: 10px;
  height: 10px;
  background: var(--serioes-blau);
}

.agb-notice-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 6px;
}

.agb-notice-tag {
  color: #1e40af;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-right: 6px;
}

.agb-notice-text {
  color: #0f172a;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
}

.agb-timer-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.agb-timer-box.unlocked {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.agb-timer-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agb-timer-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1e293b;
  flex: 1;
}

.agb-timer-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

.agb-timer-text {
  display: none;
  /* Text ausgeblendet für maximale Kompaktheit */
}

.agb-status-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

.agb-scroll-container {
  height: 500px !important;
  min-height: 380px !important;
  max-height: 60vh !important;
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 14px !important;
  color: #0f172a !important;
  line-height: 1.65;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
}

.onboarding-nav {
  display: flex;
  gap: 12px;
  width: 100%;
}

.onboarding-nav .btn {
  flex: 1;
  height: 48px;
}

.onboarding-next-btn.final-step {
  background: var(--sparkassen-rot);
}

/* ═══════════════════════════════════════════════
   LOGIN OVERLAY
   ═══════════════════════════════════════════════ */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 16px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--accent-cyan), var(--serioes-blau));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

.login-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
}

.login-description {
  font-size: 13px;
  color: var(--text-muted);
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-fields .input-wrapper input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 12px 12px 12px 36px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
}

.login-fields .input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.login-fields .input-wrapper input::placeholder {
  color: var(--text-dim);
}

.login-error-msg {
  color: var(--sparkassen-rot);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-card.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}

/* ═══════════════════════════════════════════════
   FOLLOW-UP INLINE BLOCK
   ═══════════════════════════════════════════════ */
#web-follow-up-container {
  background: rgba(239, 68, 68, 0.08);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#web-follow-up-container h4 {
  color: #ef4444;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}

#web-follow-up-container p {
  color: #fca5a5;
  font-weight: 700;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

#web-follow-up-input {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  resize: none;
}

#web-follow-up-input:focus {
  outline: none;
  border-color: #ef4444;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .app-container {
    padding: 12px;
    padding-bottom: 80px;
  }

  .app-title {
    font-size: 18px;
  }

  .audio-interface-grid {
    grid-template-columns: 1fr;
  }

  .dd-header-title {
    font-size: 14px;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════
   AGB STARTUP GATE & LEGAL EXTENSIONS
   ═══════════════════════════════════════════════ */
.legal-modal-header-blue {
  background: var(--serioes-blau);
}

.legal-modal-header-gradient {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

.legal-header-title-white {
  font-weight: bold;
  color: #ffffff;
}

.agb-startup-overlay {
  z-index: 9500;
  background: rgba(2, 6, 14, 0.98) !important;
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}

.agb-startup-card {
  max-width: 560px;
  max-height: 92vh;
}

.agb-timer-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.agb-timer-box.unlocked {
  background: #f0fdf4;
  border-color: #86efac;
}

.agb-timer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.agb-timer-header i {
  color: #2563eb;
  font-size: 13px;
}

.agb-timer-box.unlocked .agb-timer-header i {
  color: #16a34a;
}

.agb-timer-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1e293b;
  flex: 1;
}

.agb-timer-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}

.agb-timer-box.unlocked .agb-timer-badge {
  background: #16a34a;
}

.agb-timer-text {
  font-size: 12px;
  color: #334155 !important;
  line-height: 1.4;
  margin-bottom: 6px;
}

.agb-status-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 11px;
  font-weight: 700;
}

.agb-status-item {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.agb-status-item.done {
  color: #16a34a;
}

.agb-checkbox-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.3s ease;
}

.agb-checkbox-locked {
  opacity: 0.5;
  background: #f1f5f9;
  border-color: #cbd5e1;
  cursor: not-allowed;
}

.agb-checkbox-locked label,
.agb-checkbox-locked input {
  cursor: not-allowed !important;
}

.agb-checkbox-box.unlocked {
  opacity: 1;
  background: #fff1f2;
  border-color: #fecdd3;
}

.agb-startup-card {
  max-width: 680px !important;
  width: 95% !important;
  max-height: 92vh !important;
}

.agb-notice-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.agb-notice-tag {
  color: #1e40af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.agb-notice-text {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.agb-scroll-container {
  height: 380px !important;
  min-height: 280px !important;
  max-height: 50vh !important;
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 14px !important;
  color: #0f172a !important;
  line-height: 1.65;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
}

.agb-scroll-container p,
.agb-scroll-container strong,
.agb-scroll-container span,
.agb-text-paragraph,
.agb-text-strong {
  color: #0f172a !important;
}

.agb-text-paragraph {
  color: #0f172a !important;
  margin-bottom: 10px;
}

.agb-text-strong {
  color: #0f172a !important;
}

.agb-checkbox-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.agb-checkbox-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #1e40af;
}

.agb-checkbox-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  line-height: 1.4;
}

.agb-accept-btn {
  height: 48px;
  font-weight: 800;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════
   PRO FULLSCREEN CAMERA OVERLAY (VOLLBILD MIT LICHT/BLITZ)
   ═══════════════════════════════════════════════ */
.fullscreen-camera-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.camera-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  z-index: 10;
}

.camera-title-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.camera-tool-btn,
.camera-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.camera-tool-btn.torch-active {
  background: #f59e0b !important;
  color: #000000 !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.7);
}

.camera-viewfinder {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#camera-live-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-bottom-bar {
  padding: 24px 20px;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.camera-shutter-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.camera-shutter-btn:active {
  transform: scale(0.92);
}

.shutter-inner {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
}

/* ==============================
   INLINE-STYLE REPLACEMENTS
   ============================== */

.or-divider {
  margin: 16px 0;
}

.legal-modal-card--datenschutz {
  max-width: 580px;
  max-height: 88vh;
}

.legal-modal-card--notruf {
  max-width: 640px;
  max-height: 88vh;
}

.legal-modal-card--ad-consent {
  max-width: 480px;
}

.emergency-110-list {
  margin-left: 18px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #cbd5e1;
}

.emergency-legal-notice {
  background: rgba(239, 68, 68, 0.12);
  border-left: 3px solid #ef4444;
  padding: 12px 14px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 13px;
}

.emergency-legal-notice strong {
  color: #fca5a5;
}

.ad-consent-title {
  margin-bottom: 12px;
}

.ad-consent-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.ad-consent-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* STARTUP GATE FLEXBOX EXPANSION RULES */
.agb-startup-card {
  max-width: 650px !important;
  width: 92% !important;
  height: 85vh !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.agb-startup-card .legal-modal-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 12px !important;
}

.agb-startup-card .agb-scroll-container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
}

/* PROMINENTER ROTER MELDEBUTTON (CONTENT-REPORT) */
.report-inline-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  margin-bottom: 4px;
}

.btn-report-danger-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--badge-bg-red);
  color: var(--sparkassen-rot);
  border: 1px solid rgba(227, 6, 19, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-report-danger-inline:hover {
  background-color: rgba(227, 6, 19, 0.15);
  border-color: var(--sparkassen-rot);
  transform: translateY(-1px);
}

.btn-report-danger-inline:active {
  transform: translateY(0);
}

/* EU AI ACT & NOTRUF DISCLAIMER BOX */
.ki-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: var(--badge-bg-yellow);
  border: 1px solid #F59E0B;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.ki-disclaimer .disclaimer-icon {
  color: #D97706;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.ki-disclaimer .disclaimer-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ki-disclaimer .disclaimer-primary {
  font-size: 12px;
  font-weight: 700;
  color: #92400E;
  margin: 0;
  line-height: 1.4;
}

.ki-disclaimer .disclaimer-secondary {
  font-size: 12px;
  color: #78350F;
  margin: 0;
  line-height: 1.4;
}