@font-face { font-family: "PolySans Bulky"; src: url("PolySans-Bulky.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PolySans Slim"; src: url("PolySans-Slim.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --violet: #5b4bb0;
  --violet-dark: #46388f;
  --violet-soft: #ebe7f6;
  --violet-mid: #c9c0ea;
  --orange: #e8662f;
  --ink: #1d1d2b;
  --ink-2: #4a4a5a;
  --muted: #6b6b7b;
  --line: #ddd9e8;
  --paper: #ffffff;
  --bg: #f6f4fb;
  --display: "PolySans Bulky", "Helvetica Neue", Arial, sans-serif;
  --body: "PolySans Slim", "Helvetica Neue", Arial, sans-serif;
  --ui: "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.45; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; }
.eyebrow { font-family: var(--ui); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; color: var(--violet); }
.eyebrow--light { color: rgba(255,255,255,.8); }
[hidden] { display: none !important; }

/* Formular */
.hero { background: var(--violet); color: #fff; padding: 36px 16px 72px; }
.hero__inner { max-width: 720px; margin: 0 auto; }
.hero__logo { height: 34px; width: auto; display: block; margin-bottom: 36px; }
.hero h1 { font-size: clamp(34px, 8vw, 52px); margin-bottom: 14px; }
.hero__lead { margin: 0; font-size: 18px; color: rgba(255,255,255,.9); max-width: 620px; }
.hero__lead strong { color: #fff; }

.form-wrap { max-width: 720px; margin: -44px auto 0; padding: 0 16px 56px; position: relative; }
.progress { position: sticky; top: 0; z-index: 5; height: 6px; background: var(--violet-mid); margin-bottom: 14px; }
.progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s ease; }

.q { background: var(--paper); border: 1px solid var(--line); padding: 24px 22px; margin-bottom: 14px; transition: border-color .2s; }
.q h2 { font-size: 21px; margin-bottom: 16px; }
.q h2 label { cursor: text; }
.q--missing { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }
.req { color: var(--orange); }
.hint { font-family: var(--ui); font-size: 14px; color: var(--muted); margin: -8px 0 14px; }

textarea, input[type="text"], input[type="password"], select { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; border-radius: 0; }
textarea { resize: vertical; min-height: 96px; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }

/* Bewertungsmatrix */
.scale-head { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 6px; font-family: var(--ui); font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 6px; }
.scale-row { display: grid; grid-template-columns: 1.3fr 5fr; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--violet-soft); }
.scale-row__label { font-size: 16px; }
.scale-opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.scale-legend { display: none; font-family: var(--ui); font-size: 13px; color: var(--muted); margin: -8px 0 10px; }
.scale-opt { position: relative; }
.scale-opt input, .nps-opt input, .choice input[type="radio"], .choice input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.scale-opt b { font-family: var(--display); font-size: 17px; }
.scale-opt small { display: none; font-family: var(--ui); font-size: 11px; color: var(--muted); }
.scale-opt input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.scale-opt input:checked + span small { color: rgba(255,255,255,.85); }
.scale-opt input:focus-visible + span, .nps-opt input:focus-visible + span, .choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.scale-opt span:hover, .nps-opt span:hover { border-color: var(--violet); }
@media (max-width: 600px) {
  .scale-head { display: none; }
  .scale-row { grid-template-columns: 1fr; padding: 12px 0; }
  .scale-row__label { font-family: var(--display); }
  .scale-opt span { min-height: 48px; }
  .scale-legend { display: block; }
}

/* Weiterempfehlung */
.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.nps-opt span { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--line); background: var(--paper); font-family: var(--display); cursor: pointer; transition: background .15s; }
.nps-opt input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.nps-legend { display: flex; justify-content: space-between; font-family: var(--ui); font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 480px) { .nps { grid-template-columns: repeat(6, 1fr); } .nps-legend span:last-child { text-align: right; } }

/* Auswahl */
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.choice > span { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: background .15s, border-color .15s; }
.choice > span::before { content: ""; flex: 0 0 20px; height: 20px; border: 2px solid var(--violet); background: var(--paper); }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { background: var(--violet-soft); border-color: var(--violet); }
.choice input:checked + span::before { background: var(--violet); box-shadow: inset 0 0 0 3px var(--paper); }
.choice--other > span { flex: 0 0 auto; }
.choice--other .other-input { flex: 1 1 200px; min-height: 50px; }

.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; padding: 0 28px; border: 0; background: var(--violet); color: #fff; font-family: var(--display); font-weight: 700; font-size: 19px; cursor: pointer; }
.btn:hover { background: var(--violet-dark); }
.btn[disabled] { opacity: .55; cursor: default; }
.error { color: #b3261e; font-family: var(--ui); font-size: 15px; min-height: 22px; margin: 8px 0; }
.privacy { font-family: var(--ui); font-size: 13px; color: var(--muted); margin: 18px 0 0; }

.thanks { background: var(--paper); border: 1px solid var(--line); padding: 48px 28px; text-align: center; color: var(--violet); }
.thanks h2 { color: var(--ink); font-size: 30px; margin: 18px 0 8px; }
.thanks p { color: var(--ink-2); margin: 0; }

/* Auswertung */
.admin-bar { background: var(--violet); color: #fff; }
.admin-bar__inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.admin-bar__logo { height: 28px; width: auto; }
.admin-bar__title { font-family: var(--display); font-size: 18px; }
.admin-bar__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ghost { font-family: var(--ui); font-size: 14px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.6); padding: 8px 14px; cursor: pointer; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 20px 64px; }
.unlock { max-width: 460px; margin: 48px auto; background: var(--paper); border: 1px solid var(--line); padding: 32px 28px; }
.unlock h1 { font-size: 30px; margin-bottom: 10px; }
.unlock p { color: var(--ink-2); }
.unlock label { display: block; font-family: var(--ui); font-size: 14px; margin: 18px 0 6px; }
.unlock .btn { margin-top: 16px; }

.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-row label { font-family: var(--ui); font-size: 14px; color: var(--muted); }
.filter-row select { width: auto; min-width: 260px; }
.updated { margin-left: auto; font-family: var(--ui); font-size: 13px; color: var(--muted); }
.empty { background: var(--paper); border: 1px solid var(--line); padding: 32px; text-align: center; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--paper); border: 1px solid var(--line); padding: 20px; }
.kpi--accent { background: var(--violet); border-color: var(--violet); color: #fff; }
.kpi__val { display: block; font-family: var(--display); font-size: 42px; line-height: 1; }
.kpi__label { display: block; font-family: var(--ui); font-size: 14px; margin-top: 8px; color: var(--muted); }
.kpi--accent .kpi__label { color: rgba(255,255,255,.85); }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }

.panel { background: var(--paper); border: 1px solid var(--line); padding: 22px; margin-bottom: 14px; }
.panel h2 { font-size: 20px; margin-bottom: 4px; }
.panel h3 { font-size: 16px; margin-bottom: 10px; }
.panel__hint { font-family: var(--ui); font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-3 > .panel { margin-bottom: 0; }
.grid-3 + .panel { margin-top: 14px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.muted { color: var(--muted); font-size: 15px; }

.rating { display: grid; grid-template-columns: 150px 1fr 48px; gap: 12px; align-items: center; margin-bottom: 10px; }
.rating__label { font-size: 15px; }
.rating__avg { font-family: var(--display); color: var(--violet); text-align: right; }
.stack { display: flex; height: 28px; background: var(--violet-soft); }
.seg { display: flex; align-items: center; justify-content: center; font-family: var(--ui); font-size: 12px; color: #fff; }
.s1 { background: #e8662f; } .s2 { background: #f0a37f; color: var(--ink); } .s3 { background: #c9c0ea; color: var(--ink); } .s4 { background: #8577cc; } .s5 { background: #46388f; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--ui); font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; display: inline-block; }
@media (max-width: 600px) { .rating { grid-template-columns: 1fr 44px; } .rating__label { grid-column: 1 / -1; } }

.nps-chart { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; height: 170px; align-items: end; }
.col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.col__n { font-family: var(--ui); font-size: 13px; margin-bottom: 4px; }
.col__bar { width: 100%; min-height: 2px; }
.col__x { font-family: var(--ui); font-size: 13px; color: var(--muted); margin-top: 6px; }
.det { background: #e8662f; } .pas { background: #c9c0ea; } .pro { background: #5b4bb0; }
.nps-split { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.nps-split span { font-family: var(--ui); font-size: 13px; padding: 4px 10px; color: #fff; }
.nps-split .pas { color: var(--ink); }

.hbar { margin-bottom: 10px; }
.hbar__top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.hbar__top b { font-family: var(--display); color: var(--violet); }
.hbar__track { height: 10px; background: var(--violet-soft); margin-top: 4px; }
.hbar__track span { display: block; height: 100%; background: var(--violet); }

.quotes blockquote { margin: 0 0 10px; padding: 12px 14px; background: var(--bg); border-left: 3px solid var(--violet); }
.quotes blockquote p { margin: 0 0 4px; font-size: 15px; white-space: pre-line; }
.quotes cite { font-family: var(--ui); font-size: 12px; font-style: normal; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--ui); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
