:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --text: #232120;
  --muted: #9a9592;
  --border: #e4e3e0;
  --primary: #a32e3b;
  --primary-hover: #8a2732;
  --accent: #2e8b57;      /* Grünton für Erfolg/Bestätigung */
  --error: #c0392b;
  --error-bg: #fceae8;
  --ink-2: #57524e;              /* lesbarer Sekundaertext (Lead) */
  --muted-2: #6b6763;            /* Hilfetext mit ausreichend Kontrast */
  --primary-tint: rgba(163, 46, 59, 0.12);
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --font-head: "Bebas Neue", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header img { height: 38px; width: auto; }
.site-header .claim {
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  font-size: 20px;
  color: var(--muted);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.02;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}
.lead {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 30px;
  max-width: 62ch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.card-title {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 24px;
  line-height: 1.12;
  margin: 0 0 22px;
  padding: 0 0 15px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 4px;
  height: 0.92em;
  background: var(--primary);
  border-radius: 2px;
}

.field { margin-bottom: 20px; }
.field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.req { color: var(--error); }
.optional { color: var(--muted); font-weight: 400; font-size: 13px; }

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:hover,
input[type="email"]:hover { border-color: #cfccc8; }
input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.helptext { color: var(--muted-2); font-size: 13px; margin-top: 5px; }
.errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: var(--error);
  font-size: 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; }
.checkbox-row label { font-weight: 500; margin: 0; }

.section-text { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 4px; }

/* 2FA-Code: sechs Einzelkästchen */
.otp { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 2px; }
.otp input.otp-box {
  width: 48px;
  height: 58px;
  padding: 0;
  text-align: center;
  font-family: inherit;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  caret-color: var(--primary);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.otp input.otp-box:hover { border-color: #cfccc8; }
.otp input.otp-box:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.otp input.otp-box.filled { background: #fff; border-color: var(--ink-2, var(--text)); }
.otp input.otp-box.otp-error { border-color: var(--error); }
.otp-sep { color: var(--muted); font-size: 20px; padding: 0 2px; }
.otp-busy input.otp-box { opacity: .6; }
.otp-hidden { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .otp:has(.otp-error) { animation: otp-shake .35s ease-in-out; }
}
@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@media (max-width: 400px) {
  .otp { gap: 6px; }
  .otp input.otp-box { width: 40px; height: 50px; font-size: 22px; }
}

/* Honeypot – für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, box-shadow .18s, transform .18s;
}
.btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 18px rgba(163, 46, 59, .24);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--primary-tint); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.form-actions { text-align: right; }

.alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 15px;
}
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid #f0c8c3; }

.divider { height: 1px; background: var(--border); margin: 26px 0; border: 0; }
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted-2);
  margin: 0 0 16px;
}
.section-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--primary);
  flex: none;
}

.result { text-align: center; padding: 40px 48px; }
.result .lead { max-width: 54ch; margin-inline: auto; }
.result .icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.result .icon.ok { color: var(--accent); }
.result .icon.warn { color: #c88a00; }
.result .icon.err { color: var(--error); }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.site-footer .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.cf-turnstile { margin: 8px 0 4px; }

@media (max-width: 560px) {
  .card { padding: 20px; }
  .result { padding: 32px 20px; }
  .wrap { padding-top: 28px; }
  .lead { font-size: 16px; }
}

/* Orchestrierter Einblend-Moment beim Laden – nur bei erlaubter Bewegung. */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .5s cubic-bezier(.22, .61, .36, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
