:root {
  --bg: #ffffff;
  --bg-alt: #eef3fc;
  --bg-elevated: #ffffff;
  --border: #e1e8f5;
  --text: #0b1220;
  --text-dim: #5b6478;
  --blue: #2f6feb;
  --blue-dark: #1d4fc4;
  --blue-soft: #eaf1fe;
  --blue-pale: #dbe7fd;
  --green: #16a34a;
  --green-soft: #e8f8ee;
  --yellow: #d97706;
  --yellow-soft: #fdf3e2;
  --red: #dc2626;
  --red-soft: #fdeaea;
  --radius: 16px;
  --shadow-sm: 0 12px 30px -18px rgba(20, 40, 90, 0.18);
  --shadow-lg: 0 30px 70px -30px rgba(20, 40, 90, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 1300px;
  height: 800px;
  background: radial-gradient(circle at center, rgba(47, 111, 235, 0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.accent { color: var(--blue); }

/* Full-width alternating background bands */
.band { position: relative; overflow: hidden; }
.band-alt { background: var(--bg-alt); }
.band-dots {
  background-image: radial-gradient(rgba(47,111,235,0.16) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 60px, black calc(100% - 60px), transparent);
  mask-image: linear-gradient(to bottom, transparent, black 60px, black calc(100% - 60px), transparent);
}

.section-num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 130px;
  font-weight: 800;
  color: rgba(47, 111, 235, 0.07);
  letter-spacing: -0.04em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 700px) { .section-num { font-size: 84px; top: -8px; } }

/* Topbar */
.topbar { padding: 20px 0; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; font-size: 15px; font-style: normal;
  box-shadow: 0 6px 14px -6px rgba(47,111,235,0.6);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } }
.topbar-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid var(--blue-pale);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Hero */
.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 84px 24px 40px;
  position: relative;
}

.eyebrow {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  background: var(--blue-soft);
  border: 1px solid var(--blue-pale);
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 24px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }

h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 780px;
}

.lead {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 620px;
  margin: 0 0 36px;
}

.scan-form { max-width: 560px; width: 100%; }
.input-row { display: flex; gap: 10px; flex-wrap: wrap; }

#store-url {
  flex: 1;
  min-width: 220px;
  padding: 15px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
#store-url:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,111,235,0.14); }

#scan-btn {
  padding: 15px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px -10px rgba(47,111,235,0.6);
}
#scan-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(47,111,235,0.7); }
#scan-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.form-error {
  margin-top: 12px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.price-note {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 13.5px;
}
.price-note strong { color: var(--text); }

.stat-row { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat-row.centered { justify-content: center; text-align: left; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--blue); letter-spacing: -0.01em; }
.stat-label { color: var(--text-dim); font-size: 13px; max-width: 160px; margin-top: 4px; }

/* Hero visual — floating dashboard card */
.hero-visual { margin-top: 56px; display: flex; flex-direction: column; align-items: center; position: relative; }
.preview-caption { color: var(--text-dim); font-size: 12px; margin-bottom: 12px; font-weight: 500; }
.scorecard-preview {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
}
.scorecard-preview::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  background: radial-gradient(circle at 30% 20%, rgba(47,111,235,0.16), transparent 60%);
  filter: blur(6px);
}
.scorecard-header { display: flex; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.badge-live { color: var(--green); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; background: var(--green-soft); padding: 3px 8px; border-radius: 999px; }

.score-ring-preview { position: relative; width: 140px; height: 140px; margin: 0 auto 20px; }
.score-ring-preview svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 10; }
.ring-fg {
  fill: none;
  stroke: var(--blue);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 72;
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}
.ring-fg.green { stroke: var(--green); }
.ring-fg.yellow { stroke: var(--yellow); }
.ring-fg.red { stroke: var(--red); }
.score-ring-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800;
}

.preview-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-dim); font-weight: 500; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.red { background: var(--red); }

/* Section headings (generic, centered) */
.section-head { text-align: center; padding: 64px 24px 8px; position: relative; }
.section-head h2, .section-title { font-size: 32px; margin: 0 0 10px; text-align: center; font-weight: 800; letter-spacing: -0.01em; }
.section-sub { color: var(--text-dim); font-size: 15px; margin: 0; }

/* Feature grid (Prüfbereiche) */
.features { padding: 8px 24px 80px; position: relative; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  background: var(--blue-soft);
  border-radius: 50%;
  margin-bottom: 16px;
}
.feature-card h3, .why-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.feature-card p, .why-card p { color: var(--text-dim); font-size: 14px; margin: 0; line-height: 1.5; }
.feature-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; }
.feature-list li { font-size: 13px; color: var(--text-dim); padding-left: 20px; position: relative; line-height: 1.4; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.feature-list li.blurred { filter: blur(3.5px); opacity: 0.65; user-select: none; }

/* How it works */
.how { padding: 64px 24px 80px; text-align: center; position: relative; }
.how-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-top: 36px; }
.how-step { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 260px; }
.how-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 22px -10px rgba(47,111,235,0.55);
}
.how-step h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.how-step p { color: var(--text-dim); font-size: 14px; margin: 0; }
.how-line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px); margin-top: 26px; min-width: 24px; }
@media (max-width: 760px) {
  .how-steps { flex-direction: column; gap: 28px; }
  .how-line { display: none; }
}

/* Why grid */
.why { padding: 64px 24px 80px; text-align: center; position: relative; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; text-align: left; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }

/* Final CTA */
.final-cta { padding: 8px 24px 88px; }
.final-cta-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 60%, #4f8bff);
  border-radius: 24px;
  padding: 60px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.final-cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1.6px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 30% 30%, black, transparent 70%);
  mask-image: radial-gradient(circle at 30% 30%, black, transparent 70%);
}
.final-cta-panel h2 { margin: 0 0 12px; font-size: 30px; font-weight: 800; color: #fff; position: relative; }
.final-cta-panel p { color: rgba(255,255,255,0.85); margin: 0 0 28px; position: relative; }
.cta-button {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 28px -12px rgba(0,0,0,0.35);
  transition: transform 0.15s ease;
}
.cta-button:hover { transform: translateY(-2px); }

/* Report */
.report-section { padding: 20px 24px 80px; }
.report-loading { text-align: center; padding: 60px 0; color: var(--text-dim); }
.scan-bar {
  width: 100%;
  max-width: 320px;
  height: 6px;
  margin: 0 auto;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.scan-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #6fa0ff);
  animation: scan-bar-slide 1.4s ease-in-out infinite;
}
@keyframes scan-bar-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}

.loading-steps {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 320px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loading-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.loading-steps li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.loading-steps li.active { opacity: 1; color: var(--text); font-weight: 600; }
.loading-steps li.active::before {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,111,235,0.18);
  animation: step-pulse 1s ease-in-out infinite;
}
.loading-steps li.done { opacity: 0.7; }
.loading-steps li.done::before { background: var(--green); box-shadow: none; animation: none; }
@keyframes step-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

.report-error {
  background: var(--red-soft);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--red);
}

.report-header {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.report-header h2 { margin: 0; font-size: 22px; font-weight: 800; }
.report-header .url { color: var(--text-dim); font-size: 14px; word-break: break-all; margin-bottom: 8px; }
.report-ring { position: relative; width: 140px; height: 140px; margin: 4px 0 4px; }
.report-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.report-ring-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800;
}
.overall-score { text-align: center; }
.overall-score .num { font-size: 48px; font-weight: 800; }
.overall-score .risk { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; display: inline-block; margin-top: 6px; }
.risk-green { background: var(--green-soft); color: var(--green); }
.risk-yellow { background: var(--yellow-soft); color: var(--yellow); }
.risk-red { background: var(--red-soft); color: var(--red); }

.category-grid { display: grid; gap: 18px; }
.category-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.category-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; cursor: pointer; }
.category-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.category-score { font-weight: 800; }
.bar-track { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-fill.green { background: var(--green); }
.bar-fill.yellow { background: var(--yellow); }
.bar-fill.red { background: var(--red); }

.findings-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.finding { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.finding .sev-badge {
  flex-shrink: 0; font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px; height: fit-content; letter-spacing: 0.03em;
}
.sev-critical { background: var(--red-soft); color: #c02626; }
.sev-high { background: var(--yellow-soft); color: #b3630a; }
.sev-medium { background: #fef9e7; color: #a17c05; }
.sev-low { background: #eef1f6; color: #5b6478; }
.sev-info { background: var(--green-soft); color: var(--green); }
.finding-body strong { color: var(--text); display: block; margin-bottom: 2px; }
.finding-body { white-space: pre-line; word-break: break-word; }
.finding-category {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--blue-dark); background: var(--blue-soft);
  padding: 1px 8px; border-radius: 999px; margin: 0 0 4px;
}

.issue-summary {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; margin-top: 18px;
  box-shadow: var(--shadow-sm);
}
.issue-summary h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.issue-summary-sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 18px; }
.issue-summary-list .finding { padding: 12px 0; border-top: 1px solid var(--border); }
.issue-summary-list .finding:first-child { border-top: none; padding-top: 0; }

.issue-checklist {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; margin-top: 18px;
  box-shadow: var(--shadow-sm);
}
.issue-checklist h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.checklist-box {
  width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0;
  border: 2px solid var(--border); border-radius: 5px; cursor: pointer;
}
.checklist-box.checked { background: var(--green); border-color: var(--green); }
.checklist-item.done .checklist-text { color: var(--text-dim); text-decoration: line-through; }
.checklist-cat { color: var(--text-dim); font-size: 12.5px; font-weight: 400; }

.notice-banner {
  background: var(--blue-soft); border: 1px solid var(--blue-pale);
  color: var(--blue-dark); padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 500;
}

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-dim); font-size: 13px; text-align: center; }
.footer-credit { margin: 6px 0 0; opacity: 0.7; }

/* Mobile optimizations */
@media (max-width: 640px) {
  .hero-centered { padding-top: 48px; padding-bottom: 32px; }
  h1 { font-size: 34px; }

  .input-row { flex-direction: column; }
  #scan-btn { width: 100%; }

  .hero-visual { margin-top: 40px; }
  .scorecard-preview { transform: none; }

  /* Stat-Zeile (73% / 8 / Alle) auf Mobile als saubere, zentrierte Spalte
     statt schiefem 2+1-Umbruch durch flex-wrap. */
  .stat-row.centered { flex-direction: column; align-items: center; gap: 22px; margin-top: 32px; }
  .stat-label { max-width: 260px; text-align: center; }

  .section-head { padding: 48px 0 8px; }
  .section-head h2, .section-title { font-size: 24px; }
  /* .features sitzt bereits in .container (24px Padding) - eigenes
     Padding würde das verdoppeln, deshalb hier auf 0 zurücksetzen. */
  .features { padding-left: 0; padding-right: 0; padding-top: 8px; padding-bottom: 56px; }

  .how { padding-top: 40px; padding-bottom: 44px; }
  /* Schritte enger zusammenrücken statt viel Leerraum zwischen jedem Kreis. */
  .how-steps { margin-top: 24px; gap: 16px; }
  .how-step { max-width: 300px; }
  .how-circle { width: 42px; height: 42px; font-size: 16px; margin-bottom: 10px; }
  .how-step h3 { margin-bottom: 4px; }

  .why { padding-top: 40px; padding-bottom: 44px; }

  .final-cta-panel { padding: 40px 20px; }
  .final-cta-panel h2 { font-size: 24px; }

  .report-header { padding: 24px 18px; }
}
