/* ───────────────────────────────────────────────────────────
   DSGVO Risk Checker — Design System
   ─────────────────────────────────────────────────────────── */

/* Montserrat — lokal gehostet (DSGVO-konform, kein Transfer an Google) */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-base:        #08090e;
  --bg-surface:     #0f1117;
  --bg-card:        #141720;
  --bg-card-hover:  #1a1e2e;
  --border:         rgba(255,255,255,0.07);
  --border-bright:  rgba(255,255,255,0.15);

  --text-primary:   #f0f2ff;
  --text-secondary: #8b90a7;
  --text-muted:     #555a72;

  --red:            #ef4444;
  --red-dark:       #c93535;
  --red-glow:       rgba(239,68,68,0.25);
  --red-subtle:     rgba(239,68,68,0.10);

  --green:          #22c55e;
  --green-subtle:   rgba(34,197,94,0.10);

  --yellow:         #f59e0b;
  --yellow-subtle:  rgba(245,158,11,0.10);

  --blue:           #3b82f6;
  --blue-subtle:    rgba(59,130,246,0.10);

  --gradient-hero:  linear-gradient(135deg, #0f1117 0%, #0d0f1a 50%, #120d1a 100%);
  --gradient-red:   linear-gradient(135deg, #ef4444, #c93535);
  --gradient-card:  linear-gradient(135deg, #141720, #1a1e2e);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.6);
  --shadow-red:  0 0 40px rgba(239,68,68,0.2);

  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(8,9,14,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--gradient-red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 16px var(--red-glow);
}

.nav-badge {
  font-size: 11px;
  font-weight: 500;
  background: var(--red-subtle);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 20px;
  padding: 3px 8px;
  letter-spacing: 0.3px;
}

.nav-cta {
  background: var(--gradient-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  font-family: inherit;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(239,68,68,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  background: var(--red-subtle);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.hero-title-highlight {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── Scan Form ──────────────────────────────────────────────── */
.scan-form {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 8px 8px 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 580px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(239,68,68,0.08);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.scan-form:focus-within {
  border-color: rgba(239,68,68,0.4);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(239,68,68,0.15);
}

.scan-form-icon {
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.5;
}

.scan-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  padding: 8px 0;
  min-width: 0;
}

.scan-input::placeholder { color: var(--text-muted); }
.scan-input:-webkit-autofill,
.scan-input:-webkit-autofill:hover,
.scan-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.scan-btn {
  background: var(--gradient-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(239,68,68,0.35);
  display: flex;
  align-items: center;
  gap: 8px;
}

.scan-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(239,68,68,0.45);
}

.scan-btn:active { transform: translateY(0); }

.scan-btn.loading .btn-text { display: none; }
.scan-btn.loading .btn-loader { display: flex; }
.btn-loader { display: none; align-items: center; gap: 8px; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.scan-consent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 4px 0;
  user-select: none;
  transition: color var(--transition);
}
.scan-consent-label:hover { color: var(--text-primary); }
.scan-consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.scan-consent-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-bright);
  border-radius: 5px;
  display: grid;
  place-items: center;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.scan-consent-check svg {
  width: 12px;
  height: 10px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
}
.scan-consent-label input:checked + .scan-consent-check {
  background: var(--gradient-red);
  border-color: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}
.scan-consent-label input:checked + .scan-consent-check svg {
  opacity: 1;
  transform: scale(1);
}
.scan-consent-label input:focus-visible + .scan-consent-check {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.scan-consent-label a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scan-form-error {
  color: var(--red);
  font-size: 13px;
  text-align: center;
  margin-top: -16px;
  margin-bottom: 8px;
  min-height: 20px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}

.trust-icon { font-size: 15px; }

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Section header ─────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-surface); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── How it works ───────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step-card {
  background: var(--bg-card);
  padding: 36px 32px;
  transition: background var(--transition);
}
.step-card:hover { background: var(--bg-card-hover); }

.step-number {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.5;
}

.step-icon {
  width: 48px; height: 48px;
  background: var(--red-subtle);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Checks list ────────────────────────────────────────────── */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.check-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition);
}
.check-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.check-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--red-subtle);
  border: 1px solid rgba(239,68,68,0.2);
}

.check-card-body { flex: 1; min-width: 0; }
.check-card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.check-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

.check-fine {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-subtle);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 20px;
  padding: 3px 9px;
  margin-top: 10px;
  display: inline-block;
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-grid-3 {
  max-width: 1020px;
  grid-template-columns: repeat(3, 1fr);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  transition: border-color var(--transition);
}

.pricing-card.featured {
  border-color: rgba(239,68,68,0.4);
  background: linear-gradient(135deg, #1a1218 0%, #1a1220 100%);
  box-shadow: var(--shadow-red);
}

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 14px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.pricing-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-price sup {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: super;
  margin-right: 2px;
}

.pricing-price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.pricing-features { display: flex; flex-direction: column; gap: 12px; }

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-feature-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-feature-icon.yes { background: var(--green-subtle); color: var(--green); }
.pricing-feature-icon.no { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.pricing-feature-icon.no::after { content: '–'; }

.pricing-btn {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: all var(--transition);
  border: none;
}

.pricing-btn.primary {
  background: var(--gradient-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}
.pricing-btn.primary:hover { opacity: 0.9; transform: translateY(-1px); }

.pricing-btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}
.pricing-btn.secondary:hover { background: var(--bg-card-hover); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--text-primary); }

/* ════════════════════════════════════════════════════════════
   RESULTS PAGE
   ════════════════════════════════════════════════════════════ */

.results-page {
  padding-top: 80px;
  min-height: 100vh;
}

.results-hero {
  background: var(--gradient-hero);
  padding: 60px 0 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.results-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(239,68,68,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.results-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 48px;
}

.results-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.results-url-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  flex-shrink: 0;
}

.results-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.results-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Risk score card */
.score-section {
  padding: 0 0 60px;
  position: relative;
  z-index: 1;
}

.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

/* Circular gauge */
.gauge-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.gauge-svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 12;
}

.gauge-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
}

.gauge-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-score {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.gauge-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Score info */
.score-info { min-width: 0; }

.score-fine {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 10px;
}

.score-fine.danger { color: var(--red); text-shadow: 0 0 30px rgba(239,68,68,0.3); }
.score-fine.warning { color: var(--yellow); }
.score-fine.safe { color: var(--green); }

.score-fine-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.score-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.score-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.meta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.meta-dot.fail { background: var(--red); }
.meta-dot.pass { background: var(--green); }

/* ── Check results ──────────────────────────────────────────── */
.checks-section {
  padding: 60px 0;
}

.checks-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.result-checks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-check-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition);
}

.result-check-item.fail {
  border-left: 3px solid var(--red);
  border-color: rgba(239,68,68,0.25);
  background: linear-gradient(90deg, rgba(239,68,68,0.04) 0%, var(--bg-card) 100%);
}

.result-check-item.pass {
  border-left: 3px solid var(--green);
  border-color: rgba(34,197,94,0.15);
}

.result-check-status {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.result-check-status.fail { background: var(--red-subtle); color: var(--red); }
.result-check-status.pass { background: var(--green-subtle); color: var(--green); }

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

.result-check-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.result-check-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.result-check-fine {
  flex-shrink: 0;
  text-align: right;
}

.fine-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-subtle);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  white-space: nowrap;
}

.fine-badge.pass {
  color: var(--green);
  background: var(--green-subtle);
  border-color: rgba(34,197,94,0.2);
}

/* ── CTA section ────────────────────────────────────────────── */
.cta-section {
  padding: 60px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.cta-card {
  background: linear-gradient(135deg, #1a1218, #1a1220);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-red);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(239,68,68,0.12) 0%, transparent 70%);
}

.cta-card-content { position: relative; z-index: 1; }

.cta-icon {
  font-size: 44px;
  margin-bottom: 20px;
  display: block;
}

.cta-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-features {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.cta-feature-icon { color: var(--green); font-size: 15px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(239,68,68,0.4);
  text-decoration: none;
}
.cta-btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(239,68,68,0.5); }

.cta-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.cta-price-old {
  font-size: 14px;
  text-decoration: line-through;
  opacity: 0.6;
}
.cta-price-new { font-size: 19px; }

/* ── CTA email input ─────────────────────────────────────────── */
.cta-email-wrap {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 18px;
}

.cta-email-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.cta-email-input::placeholder { color: var(--text-muted); }

.cta-email-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,62,62,0.15);
}

.cta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ── Scan again ─────────────────────────────────────────────── */
.scan-again-section {
  padding: 40px 0;
  text-align: center;
}

.scan-again-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  text-decoration: none;
}
.scan-again-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
  background: var(--bg-card);
}

/* ── Loading overlay ────────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,9,14,0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-icon {
  width: 80px; height: 80px;
  background: var(--red-subtle);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(239,68,68,0.2); }
  50% { box-shadow: 0 0 40px rgba(239,68,68,0.4); }
}

.loading-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.loading-step.active { color: var(--text-primary); }
.loading-step.done { color: var(--green); }

.loading-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s;
}

.loading-step.active .loading-step-dot {
  background: var(--red);
  animation: pulse 1s infinite;
}

.loading-step.done .loading-step-dot { background: var(--green); }

/* ── Utility ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-yellow { color: var(--yellow); }

/* ── Cookie Consent Banner ──────────────────────────────────── */
#cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.3s;
}
#cc-overlay.cc-hide { opacity: 0; pointer-events: none; }

#cc-banner {
  width: 100%;
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 32px 24px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
}
.cc-text strong {
  font-size: 16px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}
.cc-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}
.cc-text a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
}
.cc-btn:hover { opacity: 0.88; }
.cc-btn:active { transform: scale(0.97); }
.cc-btn-primary {
  background: var(--gradient-red);
  color: #fff;
}
.cc-btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}
.cc-btn-link {
  background: none;
  color: var(--text-secondary);
  padding: 10px 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Settings modal */
#cc-settings {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cc-settings-inner {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.cc-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cc-settings-header strong {
  font-size: 16px;
  color: var(--text-primary);
}
.cc-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.cc-close:hover { color: var(--text-primary); }

.cc-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.cc-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.cc-cat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}
.cc-cat-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cc-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-base);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s;
}
.cc-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.cc-toggle input:checked + .cc-slider {
  background: var(--red);
  border-color: var(--red);
}
.cc-toggle input:checked + .cc-slider::before {
  transform: translateX(20px);
  background: #fff;
}
.cc-toggle-locked {
  opacity: 0.5;
  pointer-events: none;
}

.cc-settings-actions {
  display: flex;
  gap: 10px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .scan-form { flex-direction: column; padding: 12px; border-radius: var(--radius-lg); }
  .scan-btn { width: 100%; justify-content: center; }
  .scan-form-icon { display: none; }
  .scan-input { width: 100%; }

  .stats-grid { gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  .score-card { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .gauge-wrapper { margin: 0 auto; }
  .score-meta { justify-content: center; }

  .result-check-fine { display: none; }

  .cta-card { padding: 32px 20px; }

  .footer-inner { flex-direction: column; text-align: center; }

  .nav-badge { display: none; }

  /* How it works — compact 2-column rows instead of tall stacks */
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 6px;
    padding: 18px 16px;
    align-items: start;
  }
  .step-number {
    font-size: 26px;
    letter-spacing: -1px;
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1;
    line-height: 1;
    opacity: 0.65;
  }
  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 2;
    flex-shrink: 0;
  }
  .step-title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.3;
    align-self: center;
  }
  .step-desc {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
  }

  #cc-banner { padding: 22px 18px 20px; }
  .cc-actions { flex-direction: column; }
  .cc-actions .cc-btn { width: 100%; text-align: center; }
  .cc-settings-inner { padding: 20px; }
  .cc-settings-actions { flex-direction: column; }
  .cc-settings-actions .cc-btn { width: 100%; text-align: center; }
}

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

@media (max-width: 480px) {
  .hero-trust { gap: 14px; }
  .trust-item { font-size: 12px; }
  .score-fine { font-size: 36px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Locked detail overlay (Tier 0) ────────────────────────── */

.result-check-detail-locked {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.detail-blur {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.5;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.detail-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(15, 17, 23, 0.6);
  border-radius: 6px;
}

/* ── Agency form textarea ──────────────────────────────────── */

.agency-form textarea.cta-email-input {
  padding: 12px 16px;
  line-height: 1.5;
}

/* ── Layout tightening for results flow ──────────────────── */
#top-issues-section { padding: 32px 0 16px; }
#top-issues-section .checks-section-title { margin-bottom: 16px; }

/* Mobile & tablet responsive additions */
@media (max-width: 768px) {
  #top-issues-section { padding: 20px 0 12px; }
  .result-check-item { padding: 14px 16px; gap: 12px; }
  .result-check-title { font-size: 14px; }
  .result-check-detail { font-size: 12px; }
  #abmahnung-preview { margin: 12px auto 0 !important; }
  #abmahnung-preview > div:first-child { padding: 12px 16px !important; }
  #abmahnung-preview > div:nth-child(2) { padding: 16px !important; }
  #blurred-preview { margin: 4px 0 !important; }
  #email-gate-section { margin-top: -60px !important; }
  #email-gate-section .container > div { padding: 32px 20px !important; border-radius: 20px !important; }
  #competitor-section .container > div { padding: 24px 16px !important; }
  #competitor-section input { min-width: auto !important; width: 100% !important; flex: none !important; }
  #competitor-section button { width: 100% !important; }
  #share-badge-section .container > div { padding: 16px !important; }
}

@media (max-width: 480px) {
  .result-check-item { flex-wrap: wrap; gap: 8px; }
  .result-check-status { width: 28px; height: 28px; font-size: 12px; }
  #abmahnung-preview > div:nth-child(2) p { font-size: .8rem !important; }
}

/* ── Scan Live Feed ──────────────────────────────────────── */
.scan-step {
  padding: 10px 16px; margin: 4px 0; border-radius: 10px;
  font-size: .88rem; color: var(--text-secondary);
  animation: fadeSlideIn 0.4s ease;
  background: rgba(255,255,255,0.02);
}
.scan-step.fail {
  background: rgba(248,113,113,0.08);
  border-left: 3px solid #f87171;
  color: #f87171; font-weight: 600;
  animation: fadeSlideIn 0.4s ease, shake 0.4s ease;
}
.scan-step.pass { color: var(--green); }
@keyframes fadeSlideIn {
  from { opacity:0; transform:translateY(10px) }
  to { opacity:1; transform:translateY(0) }
}
@keyframes shake {
  0%,100% { transform: translateX(0) }
  20%,60% { transform: translateX(-4px) }
  40%,80% { transform: translateX(4px) }
}
