/* =========================================================================
   G+L Kundenzufriedenheitsumfrage – Frontend
   ========================================================================= */

:root {
    --brand-900: #01293b;
    --brand-800: #00405c;
    --brand-700: #005477;
    --brand-600: #06729b;
    --brand-500: #128fbe;
    --brand-100: #d7edf6;
    --brand-050: #eef7fb;

    --accent:     #0f9d8f;
    --accent-600: #0b8378;

    --good:  #1f9d55;
    --ok:    #7cb342;
    --mid:   #e0a208;
    --warn:  #ef7d21;
    --bad:   #dc4c3f;

    --bg:        #f1f5f8;
    --bg-alt:    #e6eef3;
    --surface:   #ffffff;
    --surface-2: #f7fafc;
    --line:      #dde5ea;
    --line-soft: #eaf0f4;
    --text:      #16242c;
    --text-soft: #5b7280;
    --text-mute: #8298a5;

    --radius:    14px;
    --radius-sm: 9px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(9, 40, 56, .06), 0 2px 8px rgba(9, 40, 56, .05);
    --shadow:    0 2px 6px rgba(9, 40, 56, .06), 0 12px 32px rgba(9, 40, 56, .09);
    --shadow-lg: 0 8px 20px rgba(9, 40, 56, .10), 0 28px 60px rgba(9, 40, 56, .14);

    --font: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    --maxw: 820px;
    --ease: cubic-bezier(.22, .68, .32, 1);
}

html[data-theme="dark"] {
    --bg:        #0d161c;
    --bg-alt:    #111e26;
    --surface:   #16242d;
    --surface-2: #1b2c36;
    --line:      #273b47;
    --line-soft: #1f313c;
    --text:      #e6eef3;
    --text-soft: #a3b7c2;
    --text-mute: #7d949f;
    --brand-100: #12384b;
    --brand-050: #102b39;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow:    0 2px 6px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, .4), 0 30px 64px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.survey-body {
    margin: 0;
    padding: 0 0 140px;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background:
        radial-gradient(900px 420px at 15% -10%, var(--brand-050), transparent 60%),
        radial-gradient(700px 380px at 90% 0%, rgba(15, 157, 143, .10), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--brand-700); color: #fff; padding: 10px 16px; z-index: 100;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ Topbar */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar__inner {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.brand__logo { height: 34px; width: auto; }
.brand__mark {
    width: 36px; height: 36px; flex: none;
    display: grid; place-items: center;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--brand-600), var(--brand-800));
    color: #fff; font-weight: 700; font-size: 18px;
    box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__text strong { font-size: 15px; letter-spacing: -.01em; }
.brand__text em {
    font-style: normal; font-size: 12.5px; color: var(--text-mute);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__actions { display: flex; align-items: center; gap: 8px; }

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; color: var(--text-soft);
    background: var(--surface-2); border: 1px solid var(--line);
    padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}

.iconbtn {
    width: 36px; height: 36px; display: grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 10px; cursor: pointer; color: var(--text-soft);
    transition: .18s var(--ease);
}
.iconbtn:hover { color: var(--brand-600); border-color: var(--brand-500); }
.ico { width: 20px; height: 20px; flex: none; }
.ico--sm { width: 15px; height: 15px; }
.ico--moon { display: none; }
html[data-theme="dark"] .ico--sun { display: none; }
html[data-theme="dark"] .ico--moon { display: block; }

/* Fortschrittsbalken */
.progress { height: 4px; background: var(--line-soft); overflow: hidden; }
.progress__bar {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--brand-500), var(--accent));
    transition: width .45s var(--ease);
}

/* ----------------------------------------------------------------- Stepper */
.stepper {
    max-width: var(--maxw); margin: 0 auto; padding: 14px 20px 0;
    overflow-x: auto; scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }
.stepper ol {
    display: flex; gap: 6px; list-style: none; margin: 0; padding: 0 0 6px;
}
.stepper__dot {
    display: flex; align-items: center; gap: 7px;
    background: transparent; border: 1px solid transparent;
    border-radius: 999px; padding: 5px 11px 5px 5px;
    cursor: pointer; color: var(--text-mute); font: inherit; font-size: 12.5px;
    white-space: nowrap; transition: .2s var(--ease);
}
.stepper__num {
    width: 22px; height: 22px; flex: none; display: grid; place-items: center;
    border-radius: 50%; background: var(--line-soft); color: var(--text-mute);
    font-size: 11.5px; font-weight: 700; transition: .2s var(--ease);
}
.stepper__label { display: none; font-weight: 600; }
.stepper__dot.is-active { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: var(--shadow-sm); }
.stepper__dot.is-active .stepper__num { background: var(--brand-700); color: #fff; }
.stepper__dot.is-active .stepper__label { display: inline; }
.stepper__dot.is-done .stepper__num { background: var(--accent); color: #fff; }
.stepper__dot:hover:not(.is-active) { color: var(--text-soft); }

/* ------------------------------------------------------------------- Cards */
main { max-width: var(--maxw); margin: 0 auto; padding: 18px 20px 0; }

.step { display: none; }
.step.is-active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px 30px 26px;
    margin-bottom: 22px;
}

.card--intro h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 5vw, 34px); letter-spacing: -.025em; line-height: 1.15;
}
.lead { color: var(--text-soft); font-size: 16.5px; margin: 0 0 22px; }

.facts {
    list-style: none; margin: 0 0 22px; padding: 0;
    display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.facts li {
    display: flex; gap: 11px; align-items: flex-start;
    background: var(--surface-2); border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm); padding: 13px 14px;
    font-size: 13.5px; color: var(--text-soft);
}
.facts svg { color: var(--brand-600); margin-top: 1px; }
.facts strong { color: var(--text); font-size: 14px; }

.deadline {
    display: flex; align-items: center; gap: 8px;
    background: color-mix(in srgb, var(--mid) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--mid) 35%, var(--surface));
    color: var(--text); border-radius: var(--radius-sm);
    padding: 11px 14px; font-size: 14px; margin: 0 0 22px;
}

/* Kategorie-Kopf */
.cat-head { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 6px; }
.cat-icon {
    width: 46px; height: 46px; flex: none; display: grid; place-items: center;
    border-radius: 13px;
    background: linear-gradient(140deg, var(--brand-100), color-mix(in srgb, var(--accent) 18%, var(--brand-100)));
    color: var(--brand-700);
}
html[data-theme="dark"] .cat-icon { color: var(--brand-100); }
.cat-head h2 { margin: 2px 0 2px; font-size: 22px; letter-spacing: -.02em; }
.cat-desc { margin: 0; color: var(--text-soft); font-size: 14.5px; }

/* --------------------------------------------------------------- Fragen */
.questions { margin-top: 22px; }

.question {
    padding: 22px 0;
    border-top: 1px solid var(--line-soft);
}
.question:first-child { border-top: 0; padding-top: 6px; }

.question__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 15px; }
.question__num {
    width: 25px; height: 25px; flex: none; display: grid; place-items: center;
    border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line);
    color: var(--text-mute); font-size: 12px; font-weight: 700; margin-top: 1px;
}
.question__text { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.42; letter-spacing: -.01em; }
.question__help { margin: 5px 0 0; font-size: 13.5px; color: var(--text-mute); }
.req { color: var(--bad); margin-left: 3px; }

.question.has-error .question__text { color: var(--bad); }
.question__error { margin: 9px 0 0 37px; color: var(--bad); font-size: 13px; font-weight: 600; }

/* Skala */
.scale { display: grid; grid-template-columns: 1fr; gap: 8px; margin-left: 37px; }
.scale__pole { display: none; font-size: 12px; color: var(--text-mute); }
.scale__options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

.scale__opt { position: relative; cursor: pointer; }
.scale__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale__box {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 76px; padding: 10px 6px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface-2);
    transition: .16s var(--ease);
    text-align: center;
}
.scale__value { font-size: 19px; font-weight: 700; color: var(--text-soft); line-height: 1; }
.scale__label { font-size: 11px; line-height: 1.25; color: var(--text-mute); font-weight: 600; }

.scale__opt:hover .scale__box { border-color: var(--brand-500); transform: translateY(-2px); }
.scale__opt input:focus-visible + .scale__box { outline: 3px solid color-mix(in srgb, var(--brand-500) 45%, transparent); outline-offset: 2px; }

.scale__opt input:checked + .scale__box {
    border-color: var(--brand-700); background: var(--brand-050);
    box-shadow: 0 4px 14px rgba(0, 84, 119, .16);
}
.scale__opt input:checked + .scale__box .scale__value,
.scale__opt input:checked + .scale__box .scale__label { color: var(--brand-700); }
html[data-theme="dark"] .scale__opt input:checked + .scale__box .scale__value,
html[data-theme="dark"] .scale__opt input:checked + .scale__box .scale__label { color: var(--brand-100); }

/* Farbcodierung nur bei bewertenden Skalen */
.scale--eval .scale__opt[data-value="1"] input:checked + .scale__box { border-color: var(--bad);  background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
.scale--eval .scale__opt[data-value="2"] input:checked + .scale__box { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
.scale--eval .scale__opt[data-value="3"] input:checked + .scale__box { border-color: var(--mid);  background: color-mix(in srgb, var(--mid) 13%, var(--surface)); }
.scale--eval .scale__opt[data-value="4"] input:checked + .scale__box { border-color: var(--ok);   background: color-mix(in srgb, var(--ok) 13%, var(--surface)); }
.scale--eval .scale__opt[data-value="5"] input:checked + .scale__box { border-color: var(--good); background: color-mix(in srgb, var(--good) 13%, var(--surface)); }
.scale--eval .scale__opt[data-value="1"] input:checked + .scale__box * { color: var(--bad); }
.scale--eval .scale__opt[data-value="2"] input:checked + .scale__box * { color: var(--warn); }
.scale--eval .scale__opt[data-value="3"] input:checked + .scale__box * { color: color-mix(in srgb, var(--mid) 80%, #000); }
.scale--eval .scale__opt[data-value="4"] input:checked + .scale__box * { color: var(--ok); }
.scale--eval .scale__opt[data-value="5"] input:checked + .scale__box * { color: var(--good); }
html[data-theme="dark"] .scale--eval .scale__opt[data-value="3"] input:checked + .scale__box * { color: var(--mid); }

/* Keine Angabe */
.na {
    display: inline-flex; align-items: center; gap: 7px;
    margin: 10px 0 0 37px; font-size: 13px; color: var(--text-mute); cursor: pointer;
    padding: 4px 10px 4px 8px; border-radius: 999px; border: 1px dashed var(--line);
    transition: .16s var(--ease);
}
.na:hover { color: var(--text-soft); border-color: var(--text-mute); }
.na input { accent-color: var(--text-mute); margin: 0; }
.na:has(input:checked) { background: var(--surface-2); border-style: solid; color: var(--text-soft); }

/* NPS */
.nps { margin-left: 37px; }
.nps__options { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; }
.nps__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.nps__opt > span {
    display: grid; place-items: center; height: 44px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface-2); font-weight: 700; font-size: 14px; color: var(--text-soft);
    cursor: pointer; transition: .16s var(--ease);
}
.nps__opt:hover > span { border-color: var(--brand-500); transform: translateY(-2px); }
.nps__opt[data-value="0"] input:checked + span,
.nps__opt[data-value="1"] input:checked + span,
.nps__opt[data-value="2"] input:checked + span,
.nps__opt[data-value="3"] input:checked + span,
.nps__opt[data-value="4"] input:checked + span,
.nps__opt[data-value="5"] input:checked + span,
.nps__opt[data-value="6"] input:checked + span { background: var(--bad); border-color: var(--bad); color: #fff; }
.nps__opt[data-value="7"] input:checked + span,
.nps__opt[data-value="8"] input:checked + span { background: var(--mid); border-color: var(--mid); color: #fff; }
.nps__opt[data-value="9"] input:checked + span,
.nps__opt[data-value="10"] input:checked + span { background: var(--good); border-color: var(--good); color: #fff; }
.nps__poles { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-mute); margin-top: 7px; }

/* Ja / Nein */
.yesno { display: flex; gap: 10px; margin-left: 37px; }
.yesno__opt input { position: absolute; opacity: 0; }
.yesno__opt > span {
    display: inline-block; padding: 11px 26px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface-2); font-weight: 600; cursor: pointer; transition: .16s var(--ease);
}
.yesno__opt input:checked + span { border-color: var(--brand-700); background: var(--brand-050); color: var(--brand-700); }

/* Text */
.input {
    width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
    color: var(--text); background: var(--surface-2);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    transition: .16s var(--ease);
}
.input:focus {
    outline: none; border-color: var(--brand-500); background: var(--surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 16%, transparent);
}
textarea.input { resize: vertical; min-height: 96px; line-height: 1.55; }
.textwrap { position: relative; margin-left: 37px; }
.question > .input { margin-left: 37px; width: calc(100% - 37px); }
.counter {
    position: absolute; right: 12px; bottom: 9px;
    font-size: 11.5px; color: var(--text-mute); pointer-events: none;
    background: color-mix(in srgb, var(--surface-2) 85%, transparent); padding: 1px 5px; border-radius: 5px;
}

/* --------------------------------------------------------- Intro-Formular */
.fieldset {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px 20px; margin: 0 0 20px; background: var(--surface-2);
}
.fieldset legend { font-weight: 700; font-size: 14.5px; padding: 0 8px; }
.opt { font-weight: 400; color: var(--text-mute); font-size: 13px; }
.hint { margin: 0 0 14px; font-size: 13.5px; color: var(--text-mute); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 15px; }
.grid2.is-hidden { display: none; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.field--wide { grid-column: 1 / -1; }

.switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch__track {
    width: 44px; height: 25px; border-radius: 999px; background: var(--line);
    position: relative; transition: .2s var(--ease); flex: none;
}
.switch__knob {
    position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
    border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
    transition: .2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--brand-600); }
.switch input:checked + .switch__track .switch__knob { transform: translateX(19px); }
.switch input:focus-visible + .switch__track { outline: 3px solid color-mix(in srgb, var(--brand-500) 45%, transparent); outline-offset: 2px; }
.switch__text { font-size: 14.5px; font-weight: 600; }

.consent {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 15px 16px; border-radius: var(--radius);
    border: 1.5px solid var(--line); background: var(--surface-2);
    font-size: 14px; cursor: pointer; transition: .16s var(--ease);
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand-600); flex: none; }
.consent.has-error { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); }
.consent a { color: var(--brand-600); }
.privacy-note { font-size: 12.5px; color: var(--text-mute); margin: 12px 0 0; line-height: 1.6; }
.privacy-note a { color: var(--brand-600); }

/* ---------------------------------------------------- Zusammenfassung */
.summary { margin: 20px 0 26px; }
.summary__cat {
    border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 10px; overflow: hidden; background: var(--surface-2);
}
.summary__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 16px; font-weight: 600; font-size: 14.5px;
    cursor: pointer; width: 100%; background: none; border: 0; color: inherit; font-family: inherit; text-align: left;
}
.summary__count { font-size: 12.5px; color: var(--text-mute); font-weight: 600; white-space: nowrap; }
.summary__count.is-incomplete { color: var(--warn); }
.summary__body { display: none; padding: 0 16px 14px; }
.summary__cat.is-open .summary__body { display: block; }
.summary__row {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 8px 0; border-top: 1px dashed var(--line);
    font-size: 13.5px;
}
.summary__row span:first-child { color: var(--text-soft); }
.summary__row b { white-space: nowrap; font-weight: 700; }
.summary__row b.is-empty { color: var(--text-mute); font-weight: 500; }

.card--final { padding-bottom: 40px; }
.final-actions { text-align: center; }
.final-note { font-size: 12.5px; color: var(--text-mute); margin: 12px 0 0; }

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-size: 15px; font-weight: 650;
    padding: 11px 20px; border-radius: 11px; border: 1.5px solid transparent;
    cursor: pointer; transition: .18s var(--ease); white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary {
    background: linear-gradient(140deg, var(--brand-600), var(--brand-800));
    color: #fff; box-shadow: 0 4px 14px rgba(0, 64, 92, .28);
}
.btn--primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(0, 64, 92, .34); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text-soft); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-600); }
.btn--lg { font-size: 16.5px; padding: 15px 34px; border-radius: 13px; }

.linkbtn {
    background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px;
    color: var(--brand-600); cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.linkbtn:hover { text-decoration: underline; }

/* -------------------------------------------------------------- Navbar */
.navbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}
.navbar__inner {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 20px;
}
.navbar__status {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    font-size: 12.5px; color: var(--text-mute); text-align: center; min-width: 0;
}
.savestate { font-size: 11.5px; color: var(--accent); min-height: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- Footer */
.foot {
    max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 30px;
    text-align: center; color: var(--text-mute); font-size: 12.5px;
}
.foot a { color: var(--text-soft); }
.foot__legal { margin-top: 6px; }

/* ----------------------------------------------------------------- Toast */
.toast {
    position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px);
    background: var(--brand-900); color: #fff; padding: 11px 20px;
    border-radius: 999px; font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
    transition: .28s var(--ease); z-index: 60; max-width: calc(100vw - 40px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--bad); }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------- Danke-Seite */
.thanks {
    max-width: 620px; margin: 8vh auto; padding: 0 20px; text-align: center;
}
.thanks__card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 46px 34px;
}
.thanks__icon {
    width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(140deg, var(--accent), var(--good));
    box-shadow: 0 10px 30px rgba(15, 157, 143, .35);
    animation: pop .5s var(--ease);
}
.thanks__icon svg { width: 38px; height: 38px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.thanks h1 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.02em; }
.thanks p { color: var(--text-soft); margin: 0 0 10px; }
.thanks__meta {
    margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft);
    font-size: 13px; color: var(--text-mute);
}

/* ------------------------------------------------- Impressum / Datenschutz */
.legal-body { padding-bottom: 40px; }
.legal { max-width: 780px; margin: 0 auto; padding: 24px 20px 0; }
.legal__card { padding: 38px 40px 34px; }
.legal__card h1 { margin: 0 0 6px; font-size: clamp(25px, 4.5vw, 32px); letter-spacing: -.025em; }
.legal__card h2 {
    margin: 34px 0 10px; font-size: 18.5px; letter-spacing: -.015em;
    padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.legal__card h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 26px; }
.legal__card h3 { margin: 22px 0 8px; font-size: 15.5px; color: var(--text-soft); }
.legal__card p { margin: 0 0 13px; font-size: 15px; line-height: 1.68; }
.legal__card ul { margin: 0 0 14px; padding-left: 20px; }
.legal__card li { margin-bottom: 7px; font-size: 15px; line-height: 1.6; }
.legal__card a { color: var(--brand-600); }
.legal__card code {
    font-family: ui-monospace, Consolas, monospace; font-size: .88em;
    background: var(--surface-2); border: 1px solid var(--line-soft);
    padding: 1px 6px; border-radius: 5px;
}

.legal__lead { color: var(--text-soft); font-size: 16px !important; margin-bottom: 22px !important; }
.legal__note {
    font-size: 13.5px !important; color: var(--text-mute);
    background: var(--surface-2); border-left: 3px solid var(--line);
    padding: 11px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal__box {
    background: var(--brand-050); border: 1px solid color-mix(in srgb, var(--brand-500) 25%, transparent);
    border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px;
}
.legal__box strong { display: block; margin-bottom: 9px; color: var(--brand-700); font-size: 15px; }
html[data-theme="dark"] .legal__box strong { color: var(--brand-100); }
.legal__box ul { margin: 0; padding-left: 19px; }
.legal__box li { font-size: 14.5px; }

.legal__dl { display: grid; grid-template-columns: 190px 1fr; gap: 7px 16px; margin: 0 0 14px; }
.legal__dl dt { font-size: 14px; color: var(--text-mute); font-weight: 600; }
.legal__dl dd { margin: 0; font-size: 15px; }

.legal__table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.legal__table th {
    text-align: left; padding: 9px 12px; background: var(--surface-2);
    border-bottom: 1px solid var(--line); font-size: 12.5px;
    text-transform: uppercase; letter-spacing: .03em; color: var(--text-mute);
}
.legal__table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.5; }
.legal__table tr:last-child td { border-bottom: 0; }

.legal__stand {
    margin-top: 30px !important; padding-top: 16px; border-top: 1px solid var(--line-soft);
    font-size: 13px !important; color: var(--text-mute);
}
.legal__nav { text-align: center; font-size: 13.5px; color: var(--text-mute); padding: 4px 0 30px; }
.legal__nav a { color: var(--brand-600); text-decoration: none; }
.legal__nav a:hover { text-decoration: underline; }
.legal__nav span { margin: 0 8px; }

@media (max-width: 640px) {
    .legal { padding: 14px 12px 0; }
    .legal__card { padding: 24px 20px 22px; }
    .legal__dl { grid-template-columns: 1fr; gap: 2px; }
    .legal__dl dd { margin-bottom: 10px; }
    .legal__table { font-size: 13px; }
    .legal__table th, .legal__table td { padding: 8px 9px; }
}

/* -------------------------------------------------------------- Responsive */
@media (min-width: 700px) {
    .stepper__label { display: inline; }
    .stepper__dot { color: var(--text-mute); }
    .scale { grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
    .scale__pole { display: block; max-width: 76px; line-height: 1.3; }
    .scale__pole--right { text-align: right; }
}

@media (max-width: 640px) {
    body.survey-body { padding-bottom: 130px; }
    .card { padding: 22px 18px 20px; border-radius: var(--radius); }
    main { padding: 14px 12px 0; }
    .topbar__inner, .navbar__inner, .stepper { padding-left: 14px; padding-right: 14px; }
    .pill--time { display: none; }
    .grid2 { grid-template-columns: 1fr; }

    .question__head { gap: 9px; }
    .scale, .nps, .yesno, .textwrap { margin-left: 0; }
    .question > .input { margin-left: 0; width: 100%; }
    .na { margin-left: 0; }
    .question__error { margin-left: 0; }

    .scale__options { gap: 5px; }
    .scale__box { min-height: 66px; padding: 8px 3px; }
    .scale__value { font-size: 17px; }
    .scale__label { font-size: 9.5px; }

    .nps__options { grid-template-columns: repeat(6, 1fr); gap: 6px; }
    .nps__opt > span { height: 42px; }

    .btn { padding: 11px 15px; font-size: 14.5px; }
    .btn--lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    .topbar, .stepper, .navbar, .foot, .toast { display: none !important; }
    .step { display: block !important; }
    .card { box-shadow: none; border-color: #ccc; page-break-inside: avoid; }
}

/* [hidden] muss auch bei Flex-Elementen greifen */
[hidden] { display: none !important; }
