:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1a2030;
  --muted: #5a6478;
  --line: #e1e5ee;
  --accent: #2f5bea;
  --accent-hover: #2548c4;
  --on-accent: #ffffff;
  --ok-bg: #e7f6ed;
  --ok: #16603a;
  --err-bg: #fdeced;
  --err: #9b1c1c;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1218;
    --card: #161b25;
    --text: #e8ebf2;
    --muted: #98a2b5;
    --line: #262d3b;
    --accent: #7a96ff;
    --accent-hover: #96acff;
    --on-accent: #0b1020;
    --ok-bg: #12281d;
    --ok: #7fdca5;
    --err-bg: #2d1618;
    --err: #ff9b9b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 32px;
}

header { margin-bottom: 32px; }

.eyebrow {
  margin: 0 0 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.lead { margin: 0; color: var(--muted); }

.card {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

h2 { margin: 0 0 12px; font-size: 1.125rem; }
p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

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

.field { margin-bottom: 16px; }

label {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 600;
}

.opt { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}

textarea { min-height: 140px; resize: vertical; }

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

button {
  padding: 11px 22px;
  font: inherit;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}

button:hover { background: var(--accent-hover); }
button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: progress; }

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: .95rem;
  border-radius: 10px;
}
.notice[hidden] { display: none; }
.notice.ok  { background: var(--ok-bg);  color: var(--ok); }
.notice.err { background: var(--err-bg); color: var(--err); }

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fineprint { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }

footer {
  margin-top: 28px;
  font-size: .8rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 480px) {
  main { padding-top: 36px; }
  .card { padding: 20px; }
}
