@font-face { font-family: 'Nunito'; src: url('/fonts/Nunito-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/Nunito-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #1f2421;
  --muted: #5f6763;
  --primary: #234b3c;
  --primary-ink: #ffffff;
  --accent: #c8492f;
  --line: #ddd6cc;
  --tint: #eef3ef;
  --error: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 20px rgba(0, 0, 0, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141816; --surface: #1d2320; --ink: #eef1ef; --muted: #a7b0ab; --primary: #8fd0b1; --primary-ink: #10231b;
    --accent: #ff9a7f; --line: #34403a; --tint: #1f2b25; --error: #ff8a80; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h2 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.site-header { padding: 16px 0; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: .95rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Formular */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 800; font-size: 1.35rem; margin-bottom: 4px; padding: 0; }
.field { margin: 18px 0; }
label, .label { display: block; font-weight: 800; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; margin-top: -2px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, .choice input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-color: var(--primary);
}
[aria-invalid=true] { border-color: var(--error) !important; }
.error { color: var(--error); font-size: .92rem; margin-top: 6px; }
.error:empty { display: none; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface);
}
.choice strong { display: block; }
.choice input:checked + span { border-color: var(--primary); background: var(--tint); box-shadow: inset 0 0 0 1px var(--primary); }

.row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.row > input { flex: 1; min-width: 0; }
.row > input.num { flex: 0 0 110px; }
.icon-btn { flex: 0 0 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 1.3rem; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px;
  border-radius: 12px; border: 0; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
  background: var(--primary); color: var(--primary-ink);
}
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.link { background: none; color: var(--primary); padding: 0 4px; min-height: 40px; text-decoration: underline; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 24px; }
.actions .btn { flex: 1 1 160px; }

.steps { display: flex; gap: 6px; margin: 4px 0 18px; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps span.done { background: var(--primary); }

.progress-dots { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.progress-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); animation: pulse 1.2s infinite ease-in-out; }
.progress-dots span:nth-child(2) { animation-delay: .2s; }
.progress-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .progress-dots span { animation: none; opacity: .7; } }

.station-list { list-style: none; padding: 0; margin: 0; counter-reset: st; }
.station-list li { border-top: 1px solid var(--line); padding: 12px 0 12px 44px; position: relative; counter-increment: st; }
.station-list li::before {
  content: counter(st); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint); color: var(--primary); font-weight: 800; display: grid; place-items: center;
}
.station-list .type { display: block; font-size: .85rem; color: var(--muted); }
.notice { border-radius: 12px; padding: 12px 14px; background: var(--tint); margin: 12px 0; }
.notice.error-box { background: color-mix(in srgb, var(--error) 12%, var(--surface)); color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 14px 0; }
.consent input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; }
.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--muted); margin-right: 14px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.legal h2 { font-size: 1.15rem; margin-top: 24px; }
.legal ul { padding-left: 1.2em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.chips button {
  font: inherit; font-size: .9rem; min-height: 36px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.chips button:hover, .chips button:focus-visible { border-color: var(--primary); background: var(--tint); }
.chips button[data-used] { opacity: .55; }
.designs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.designs .choice span { padding: 8px; }
.designs img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; margin-bottom: 6px; }
.theme-preview { margin: 14px 0 0; }
.theme-preview img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.theme-preview figcaption { text-align: center; margin-top: 6px; }
@media (max-width: 480px) { .designs .small { display: none; } }
