:root {
  --bg: #0A0E1A;
  --bg-elev: #131A2C;
  --bg-elev-2: #1B2340;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F4F6FB;
  --text-mute: #8B94B0;
  --safe: #00C896;
  --danger: #FF4757;
  --warning: #FFB547;
  --accent: #4C7DFF;
  --shadow-glow-safe: 0 0 80px rgba(0, 200, 150, 0.35);
  --shadow-glow-danger: 0 0 80px rgba(255, 71, 87, 0.35);
  --shadow-glow-warn: 0 0 80px rgba(255, 181, 71, 0.35);
  --shadow-glow-accent: 0 0 80px rgba(76, 125, 255, 0.25);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--safe), var(--accent));
  box-shadow: 0 0 20px rgba(0, 200, 150, 0.5);
}

.brand-name { font-size: 17px; letter-spacing: 3px; text-transform: uppercase; }

.topnav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.topnav a {
  color: var(--text-mute);
  transition: color 0.2s ease;
}
.topnav a:hover { color: var(--text); text-decoration: none; }

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.lang-btn {
  background: transparent;
  border: 0;
  color: var(--text-mute);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: rgba(76, 125, 255, 0.15);
  color: var(--accent);
}

@media (max-width: 720px) {
  .topbar { padding: 18px 20px; }
  .topnav a { display: none; }
  .topnav { gap: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 40px;
  text-align: center;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; }

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(76, 125, 255, 0.35), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(0, 200, 150, 0.25), transparent 55%);
  filter: blur(80px);
  pointer-events: none;
  animation: heroFloat 12s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 3%, 0) scale(1.06); }
}

.pill {
  display: inline-block;
  background: rgba(76, 125, 255, 0.12);
  color: #C6D3FF;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(76, 125, 255, 0.35);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #b3c1e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-mute);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--safe));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(76, 125, 255, 0.35);
}
.btn.primary:hover { box-shadow: 0 14px 40px rgba(76, 125, 255, 0.5); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn.small { padding: 10px 16px; font-size: 14px; }

/* ---------- Checker ---------- */
.checker {
  max-width: 900px;
  margin: 40px auto 100px;
  padding: 0 24px;
}

.checker-card {
  background: linear-gradient(180deg, var(--bg-elev) 0%, #0f1526 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), var(--shadow-glow-accent);
  transition: box-shadow 0.5s ease;
}
.checker-card[data-state="safe"]    { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), var(--shadow-glow-safe); }
.checker-card[data-state="danger"]  { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), var(--shadow-glow-danger); }
.checker-card[data-state="warning"] { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), var(--shadow-glow-warn); }

.checker-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.verdict-orb {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(76, 125, 255, 0.12);
  border: 1px solid rgba(76, 125, 255, 0.4);
  display: grid;
  place-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.orb-core {
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
  transition: color 0.4s ease;
}
.orb-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: orbSpin 6s linear infinite;
}
@keyframes orbSpin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}
.checker-card[data-state="loading"] .orb-ring { border-top-color: var(--accent); }
.checker-card[data-state="safe"]    .verdict-orb { background: rgba(0, 200, 150, 0.12); border-color: rgba(0, 200, 150, 0.55); }
.checker-card[data-state="safe"]    .orb-core    { color: var(--safe); }
.checker-card[data-state="danger"]  .verdict-orb { background: rgba(255, 71, 87, 0.12); border-color: rgba(255, 71, 87, 0.55); }
.checker-card[data-state="danger"]  .orb-core    { color: var(--danger); }
.checker-card[data-state="warning"] .verdict-orb { background: rgba(255, 181, 71, 0.12); border-color: rgba(255, 181, 71, 0.55); }
.checker-card[data-state="warning"] .orb-core    { color: var(--warning); }

.checker-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.checker-title {
  margin: 0 0 4px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
}
.checker-sub {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
}

/* ---------- Modes-Strip ---------- */
.modes {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.modes li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-mute);
}
.modes strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.mode-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(76, 125, 255, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 4px;
}
@media (max-width: 640px) {
  .modes { grid-template-columns: 1fr; }
}

/* ---------- Checker form ---------- */
.input-row {
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  transition: border-color 0.2s ease;
}
.input-row:focus-within { border-color: rgba(76, 125, 255, 0.55); }

#urlInput {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  font-family: inherit;
  min-width: 0;
}
#urlInput::placeholder { color: rgba(255, 255, 255, 0.35); }

.input-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, background 0.2s ease;
}
.chip:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.input-hint {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-mute);
}

/* ---------- Camera ---------- */
.camera-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.camera-wrap video {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #000;
}

/* ---------- Result ---------- */
.result { margin-top: 28px; animation: fadeUp 0.4s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.check-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.check-item .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--text-mute);
}
.check-item.passed .dot   { background: var(--safe); box-shadow: 0 0 10px rgba(0, 200, 150, 0.6); }
.check-item.warning .dot  { background: var(--warning); box-shadow: 0 0 10px rgba(255, 181, 71, 0.6); }
.check-item.danger .dot   { background: var(--danger); box-shadow: 0 0 10px rgba(255, 71, 87, 0.6); }
.check-item .label { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.check-item .detail { color: var(--text-mute); font-size: 13px; }

.result-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Preview ---------- */
.preview {
  margin: 22px 0 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.preview img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
  object-fit: cover;
}
.preview figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-mute);
  background: rgba(0, 0, 0, 0.4);
}

/* ---------- History ---------- */
.history {
  margin-top: 32px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.history-header h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.history-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}
.history-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-mute);
}
.history-item.safe .history-dot    { background: var(--safe); }
.history-item.warning .history-dot { background: var(--warning); }
.history-item.danger .history-dot  { background: var(--danger); }
.history-domain { font-weight: 600; font-size: 14px; }
.history-raw {
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.history-recheck {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(76, 125, 255, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.history-recheck:hover { background: rgba(76, 125, 255, 0.1); }
.history-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-mute);
}

/* ---------- Steps ---------- */
.steps {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.steps h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.step {
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
}
.step h3 { margin: 12px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--text-mute); font-size: 14px; }
.step-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(76, 125, 255, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

/* ---------- Pricing ---------- */
.pricing {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 32px;
}
.price-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(0, 200, 150, 0.08), rgba(76, 125, 255, 0.06));
  border: 1px solid var(--border);
}
.price-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 12px 0 12px;
  letter-spacing: -0.01em;
}
.price-card p {
  color: var(--text-mute);
  max-width: 560px;
  margin: 0 auto 24px;
}
.price-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Ad Slots ---------- */
.ad-slot {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 0 24px;
  position: relative;
}
.ad-slot-wide {
  max-width: 1100px;
  margin: 40px auto 20px;
  padding: 0 32px;
}
.ad-label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
  opacity: 0.7;
}
.ad-card {
  --ad-accent: var(--accent);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.ad-card:hover {
  text-decoration: none;
  border-color: var(--ad-accent);
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.ad-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--ad-accent) 15%, transparent);
  color: var(--ad-accent);
  border: 1px solid color-mix(in srgb, var(--ad-accent) 40%, transparent);
  white-space: nowrap;
}
.ad-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.ad-body {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.5;
}
.ad-cta {
  font-size: 13px;
  color: var(--ad-accent);
  font-weight: 600;
}
@media (max-width: 560px) {
  .ad-card { grid-template-columns: 1fr; gap: 10px; }
  .ad-tag { justify-self: start; }
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 32px 20px 48px;
  color: var(--text-mute);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--text); margin: 0 6px; }
.footer button {
  background: none; border: 0; color: var(--text-mute); cursor: pointer;
  font: inherit; text-decoration: underline; padding: 0; margin: 0 6px;
}
.footer button:hover { color: var(--text); }

/* ---------- Consent-Banner ---------- */
.consent {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(19, 26, 44, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 18px 22px;
  animation: fadeUp 0.35s ease;
}
.consent-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.consent-text {
  flex: 1 1 300px;
  font-size: 13px;
  color: var(--text-mute);
}
.consent-text strong { color: var(--text); display: block; margin-bottom: 4px; }
.consent-text a { color: var(--accent); }
.consent-actions { display: flex; gap: 10px; }
@media (max-width: 560px) {
  .consent { bottom: 8px; left: 8px; right: 8px; padding: 16px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- Legal-Seiten ---------- */
.legal {
  max-width: 780px;
  margin: 20px auto 80px;
  padding: 0 24px;
  line-height: 1.7;
}
.legal h1 { font-size: 34px; margin: 20px 0 10px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal .updated { color: var(--text-mute); font-size: 13px; margin-top: 0; }
.legal p, .legal li { color: var(--text-mute); }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); }

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .checker-card { padding: 24px 20px; border-radius: 20px; }
  .checker-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .input-row { flex-direction: column; padding: 8px; gap: 8px; }
  #checkBtn { width: 100%; }
  .hero { padding: 60px 20px 24px; }
}
