/**
 * Abzock-Schutz Web — Style V3.1 (Clean Dashboard 2-Column Split)
 * Beruhigendes, hochmodernes Design ohne nervige Animationsstreifen.
 */

/* ═══════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════ */
:root {
  /* Cyber Theme (Clean & Beruhigend) */
  --bg: #0a0e1a;
  --bg-card: #111827;
  --bg-card-surface: #1a1f35;
  --border-card: #1e293b;
  --border-subtle: #334155;

  /* Sparkassen / FinTech Palette (1:1 aus Kotlin) */
  --serioes-blau: #0F2C59;
  --sparkassen-rot: #E30613;
  --safe-green: #00875A;
  --adac-gelb: #FFCC00;
  --troll-purple: #5E35B1;

  /* Text */
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accent */
  --accent-cyan: #38bdf8;
  --accent-pink: #f472b6;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);

  /* Radius */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.hidden { display: none !important; }
.id-hidden { display: none !important; }
.hidden-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

/* ═══════════════════════════════════════════════
   DEZENTER HINTERGRUND (Ohne Scanlines)
   ═══════════════════════════════════════════════ */
.cyber-grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  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: 90px;
}

/* ═══════════════════════════════════════════════
   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;
}

.header-shield-logo {
  width: 44px;
  height: 44px;
  background: var(--serioes-blau);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-scanner {
  font-size: 10px;
  font-weight: 700;
  color: var(--sparkassen-rot);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-aktiv {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 135, 90, 0.15);
  border: 1px solid rgba(0, 135, 90, 0.4);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 700;
  color: var(--safe-green);
}

.aktiv-dot {
  width: 5px;
  height: 5px;
  background: var(--safe-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@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 var(--serioes-blau);
}

.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, var(--serioes-blau), #1E40AF);
  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: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
}

.dd-body textarea:focus {
  outline: none;
  border-color: var(--serioes-blau);
}

.dd-body textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

.dd-submit-btn {
  height: 48px;
}

/* ═══════════════════════════════════════════════
   INPUT CARD
   ═══════════════════════════════════════════════ */
.input-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
}

.input-section-header i {
  color: var(--serioes-blau);
  font-size: 16px;
}

.margin-top-sm {
  margin-top: 4px;
}

.input-card textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s;
}

.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
   ═══════════════════════════════════════════════ */
.cyber-footer {
  text-align: center;
  padding: 20px 0 10px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════
   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; }

/* ═══════════════════════════════════════════════
   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(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
  padding: 16px;
}

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

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

.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.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  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; }
}
