@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('fonts/dm-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --green: #00D546; --green-dk: #00a838; --green-lt: #e8faf0; --green-mid: #c0f0d0;
  --text: #1F1F1F; --muted: #5a5a5a; --faint: #8a8a8a;
  --bg: #FFFFFF; --surface: #F5F5F5; --surface2: #ECECEC; --border: #D3D3D3;
  --red: #d32f2f; --red-lt: #ffebee;
  --radius: 14px; --radius-sm: 8px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.04);
  --focus: 0 0 0 3px rgba(0,213,70,.35);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif; background: var(--surface); color: var(--text);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--green-dk); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ── Kopf ── */
.topbar { background: var(--bg); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 760px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.topbar img { height: 26px; width: auto; display: block; }
.topbar .tag { margin-left: auto; font-size: 13px; color: var(--muted); }
.progress { height: 3px; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s ease; }

/* ── Layout ── */
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; }
.hero h1 { font-size: clamp(24px, 4.5vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.hero p { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.hero p.greeting { color: var(--text); font-weight: 600; font-size: 17px; margin-top: 14px; }
.card > .section-part { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-top: 20px; box-shadow: var(--shadow-sm);
}
.card > h2 { font-size: 18px; font-weight: 700; }
.card > .section-desc { color: var(--muted); margin-top: 4px; font-size: 15px; }

/* ── Fragen ── */
.q { padding: 18px 0; border-top: 1px solid var(--surface2); }
.card > h2 + .q, .card > .section-desc + .q { border-top: 0; padding-top: 12px; }
.card > .q:first-child { border-top: 0; padding-top: 0; }
.card > .q:last-child { padding-bottom: 0; }
.q-label { display: block; font-weight: 600; font-size: 16px; }
.q-label .req { color: var(--green-dk); margin-left: 2px; }
.q-help { color: var(--muted); font-size: 14px; margin-top: 2px; }
.q-body { margin-top: 10px; }
.q-error { color: var(--red); font-size: 14px; margin-top: 6px; font-weight: 500; }
.q.has-error .input, .q.has-error .choice, .q.has-error .scale-btn { border-color: var(--red); }

.input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
  padding: 11px 14px; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--green); box-shadow: var(--focus); }
textarea.input { min-height: 110px; resize: vertical; }
input.input[type=number] { max-width: 220px; }
select.input { max-width: 420px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.counter { font-size: 12px; color: var(--faint); text-align: right; margin-top: 4px; }

.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--grey, #b5b5b5); }
.choice input { appearance: none; width: 20px; height: 20px; flex: 0 0 20px; border: 2px solid var(--border); background: var(--bg); display: grid; place-content: center; transition: all .15s; }
.choice input[type=radio] { border-radius: 50%; }
.choice input[type=checkbox] { border-radius: 5px; }
.choice input::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .12s; }
.choice input[type=checkbox]::after { width: 10px; height: 6px; border-radius: 0; background: none; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; }
.choice input:checked { background: var(--green); border-color: var(--green); }
.choice input:checked::after { transform: scale(1); }
.choice input[type=checkbox]:checked::after { transform: rotate(-45deg) scale(1); }
.choice input:focus-visible { box-shadow: var(--focus); outline: none; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-lt); }
.other-input { margin-top: 8px; }

.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale-btn {
  flex: 1 1 0; min-width: 44px; height: 46px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); font-weight: 600; cursor: pointer; transition: all .15s; position: relative;
}
.scale-btn:hover { border-color: #b5b5b5; }
.scale-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.scale-btn[aria-checked=true] { background: var(--green); border-color: var(--green); color: #fff; }
.scale.nps .scale-btn { min-width: 0; }
.scale-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; gap: 12px; }
.scale-labels span:last-child { text-align: right; }

/* ── Abschluss ── */
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.consent input { margin-top: 3px; }
.consent-box { border: 0; padding: 0; background: none; }
.consent-box .choice { align-items: flex-start; }
.consent-box .choice input { margin-top: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: 999px; padding: 13px 28px; font-weight: 700; font-size: 16px; cursor: pointer;
  background: var(--green); color: #fff; transition: background .15s, transform .05s; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: var(--green-dk); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--surface); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.form-error { color: var(--red); font-weight: 500; }
.fineprint { color: var(--faint); font-size: 13px; margin-top: 28px; text-align: center; }

.state { text-align: center; padding: 48px 24px; }
.state .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-lt); display: grid; place-items: center; margin: 0 auto 16px; }
.state .icon svg { width: 32px; height: 32px; stroke: var(--green-dk); }
.state h1 { font-size: 26px; line-height: 1.25; }
.state p { color: var(--muted); margin: 10px auto 0; max-width: 52ch; }

.skeleton { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--surface2), var(--surface), var(--surface2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 10px 0; }
.skeleton.w60{width:60%}.skeleton.w75{width:75%}.skeleton.w90{width:90%}
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 560px) {
  .wrap { padding: 20px 16px 48px; }
  .card { padding: 18px 16px; border-radius: 12px; }
  .scale.nps { display: grid; grid-template-columns: repeat(6, 1fr); }
  .scale-btn { height: 44px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.input[readonly] { background: var(--surface); color: var(--muted); cursor: default; }
.input[readonly]:focus { border-color: var(--border); box-shadow: none; }
.notice { margin-top: 10px; font-size: 14px; background: var(--green-lt); border-radius: var(--radius-sm); padding: 8px 12px; }

.preview-banner { display: inline-block; margin-bottom: 14px; background: #fff3e0; color: #8a4b00; border: 1px solid #ffd59e; border-radius: var(--radius-sm); padding: 6px 12px; font-size: 14px; font-weight: 600; }
