/* Schröck Webdesign — DSGVO-Selbsttest
 * Eigenständiger Nachbau des claude.ai/design-Entwurfs, ohne Abhängigkeit
 * von externer Runtime. Tokens 1:1 aus dem Design-System übernommen.
 */

/* Nunito lokal selbst gehostet statt von fonts.googleapis.com nachgeladen -
 * kein externer Request an Google-Server beim Seitenaufruf (siehe DSGVO-Check-
 * Hinweis "Google Fonts extern geladen"). */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Nunito-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Nunito-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Nunito-Bold.woff2') format('woff2');
}

:root {
  /* Farben */
  --color-dunkelblau: #00112E;
  --color-orange:     #F97626;
  --color-weiss:      #FFFFFF;
  --color-hellgrau:   #F0F2F5;

  --color-slate-500: #5a6b85;
  --color-slate-400: #8694a8;
  --color-slate-300: #b9c2d0;
  --color-slate-200: #dde2ea;
  --color-slate-100: #F0F2F5;
  --color-ink:       #0b1a30;

  --color-orange-700: #d85b12;
  --color-orange-600: #F97626;
  --color-orange-100: #fde7d8;
  --color-orange-50:  #fef4ec;

  --color-success:    #1f9d6b;
  --color-success-bg: #e6f7f0;
  --color-warning:     #a66a15;
  --color-warning-bg:  #fdf3df;
  --color-danger:      #b3392c;
  --color-danger-bg:   #fbeae8;

  /* Semantische Aliase */
  --surface-base: var(--color-weiss);
  --surface-alt:  var(--color-hellgrau);
  --surface-dark: var(--color-dunkelblau);

  --text-on-dark:       var(--color-weiss);
  --text-on-dark-muted: var(--color-slate-300);
  --text-body:          var(--color-ink);
  --text-muted:         var(--color-slate-500);
  --text-heading:       var(--color-dunkelblau);
  --text-accent:        var(--color-orange-600);
  --text-link:          var(--color-orange-600);

  --border-subtle:  var(--color-slate-200);
  --border-strong:  var(--color-slate-300);
  --border-on-dark: rgba(255,255,255,0.14);

  --accent:          var(--color-orange-600);
  --accent-hover:    var(--color-orange-700);
  --accent-contrast: var(--color-weiss);

  /* Typografie */
  --font-sans: 'Nunito', 'Segoe UI', Arial, sans-serif;

  --text-display-xl: 48px;
  --text-display-m:  32px;
  --text-heading-l:  28px;
  --text-heading-m:  24px;
  --text-body-l:     18px;
  --text-body-m:     16px;
  --text-caption:    14px;
  --text-meta:       13px;

  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-normal: 1.55;

  --tracking-wide: 0.04em;

  /* Layout */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-pill: 999px;

  --shadow-focus: 0 0 0 3px rgba(249, 118, 38, 0.35);

  --container-narrow: 760px;
  --container-max:    1200px;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-base: 200ms;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface-alt);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

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

section { padding: 88px 24px; }

.container-narrow { max-width: var(--container-narrow); margin: 0 auto; }
.container-max { max-width: var(--container-max); margin: 0 auto; }

/* ── Eyebrow ─────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-accent);
}

/* ── Button ──────────────────────────────────────────── */
.btn {
  font-family: var(--font-sans);
  font-size: var(--text-body-m);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 15px 28px;
  min-height: 52px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-full { width: 100%; }

.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-on-dark { background: var(--accent); color: var(--accent-contrast); }
.btn-on-dark:hover:not(:disabled) { background: var(--accent-hover); }

.btn-secondary {
  background: var(--color-weiss);
  color: var(--text-body);
  border-color: var(--border-subtle);
  text-align: left;
  justify-content: flex-start;
  padding-left: 20px;
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--color-orange-50);
}

.btn-text {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}
.btn-text:hover { color: var(--text-body); }
.btn-text-underline { text-decoration: underline; }

/* ── Card ────────────────────────────────────────────── */
.card {
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px;
}
@media (max-width: 640px) {
  .card { padding: 24px; }
}

/* ── Tag ─────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-meta);
  font-weight: 700;
  white-space: nowrap;
}
.tag-accent  { background: var(--color-orange-50); color: var(--color-orange-700); }
.tag-success { background: var(--color-success-bg); color: var(--color-success); }
.tag-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.tag-danger  { background: var(--color-danger-bg); color: var(--color-danger); }

/* ── Input ───────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--text-body);
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-body-m);
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--color-weiss);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.field-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.field-checkbox label {
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
  background: var(--surface-dark);
  padding: 24px 24px 0;
}
.site-header-inner { display: flex; }
.site-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--text-body-m);
  color: var(--text-on-dark);
  letter-spacing: 0.02em;
}
.site-logo:hover { color: var(--text-accent); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: var(--surface-dark);
  padding: 64px 24px 104px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero h1 {
  font-size: var(--text-display-xl);
  line-height: var(--leading-tight);
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0;
  text-wrap: pretty;
}
.hero p {
  font-size: var(--text-body-l);
  line-height: var(--leading-normal);
  color: var(--text-on-dark-muted);
  margin: 0;
  max-width: 560px;
}
@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
}

.hero-check-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  margin-top: 8px;
}
.hero-check-form input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: var(--text-body-m);
  color: var(--text-body);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 16px;
  min-height: 52px;
  background: var(--color-weiss);
}
.hero-check-form input:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}
@media (max-width: 560px) {
  .hero-check-form { flex-direction: column; }
}

/* ── Ergebnis ────────────────────────────────────────── */
.quiz-result-header {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 8px 0; border-bottom: 1px solid var(--border-subtle);
}
.quiz-result-header .score { font-size: 56px; font-weight: 800; color: var(--text-heading); line-height: 1; }
.quiz-result-header p { font-size: var(--text-body-m); color: var(--text-muted); margin: 0; max-width: 440px; }

.block-row { display: flex; flex-direction: column; gap: 2px; }
.block-row-top { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.block-row-top span:first-child { font-size: var(--text-caption); color: var(--text-body); line-height: var(--leading-normal); flex: 1; }
.block-row-note { font-size: var(--text-meta); color: var(--text-muted); font-style: italic; }
.block-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.block-steps li { font-size: var(--text-caption); color: var(--text-body); line-height: var(--leading-normal); }

/* ── CTA / Kontakt ───────────────────────────────────── */
.cta-section { background: var(--surface-dark); }
.cta-header { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 32px; }
.cta-header h2 { font-size: var(--text-display-m); font-weight: 700; color: var(--text-on-dark); margin: 0; }
.cta-header p { font-size: var(--text-body-m); color: var(--text-on-dark-muted); margin: 0; max-width: 480px; line-height: var(--leading-normal); }

.cta-form { display: flex; flex-direction: column; gap: 16px; }
.cta-note { margin: 0; font-size: var(--text-meta); color: var(--text-muted); text-align: center; }
.cta-thanks { text-align: center; padding: 16px 8px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.cta-thanks p { margin: 0; font-size: var(--text-body-m); color: var(--text-body); }

/* ── Disclaimer ──────────────────────────────────────── */
.disclaimer { background: var(--surface-alt); padding: 40px 24px; }
.disclaimer p { margin: 0; font-size: var(--text-meta); color: var(--text-muted); line-height: var(--leading-normal); text-align: center; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--surface-dark); padding: 24px; }
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--text-meta);
  color: var(--text-on-dark-muted);
}
.site-footer-links { display: flex; gap: 20px; }
.site-footer-links a { color: var(--text-on-dark-muted); }
.site-footer-links a:hover { color: var(--text-on-dark); }

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