/* =========================================================================
   Fullwood-Mitarbeiter-Umfrage — Design-System
   Welt: Holz, Werkstatt, Handwerk. Warmes Sägewerk-Papier, Espresso-Tinte,
   Fullwood-Rostorange als einziger lauter Akzent. Oswald (gestempelt) + Dosis.
   ========================================================================= */

/* ---------- Schriften (selbst gehostet, DSGVO-sauber) ---------- */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/oswald-latin.woff2') format('woff2');
    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: 'Oswald';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/oswald-latin-ext.woff2') format('woff2');
    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;
}
@font-face {
    font-family: 'Dosis';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/dosis-latin.woff2') format('woff2');
    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: 'Dosis';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/dosis-latin-ext.woff2') format('woff2');
    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;
}

/* ---------- Tokens ---------- */
:root {
    --rost:       #CB572B;   /* Fullwood-Markenakzent */
    --rost-tief:  #A6431F;   /* dunkler: Hover/Aktiv */
    --rost-hell:  #E9A183;   /* heller: aktueller Fortschritt */
    --tinte:      #2B211A;   /* Espresso — Text & dunkle Flächen */
    --tinte-weich:#5F4E3F;   /* zweitrangiger Text */
    --papier:     #EFE6D5;   /* Sägewerk-Papier — Seitenhintergrund */
    --karte:      #FBF6EC;   /* gehobeltes Holz — Kartenfläche */
    --karte-rand: #E4D8C1;   /* warme Haarlinie */
    --holz-tief:  #3A2C20;   /* Walnuss — dunkle Bänder */
    --gruen:      #5B6B3A;   /* Moos — sparsamer Zweitakzent (z.B. „zufrieden“) */

    --schrift-display: 'Oswald', system-ui, sans-serif;
    --schrift-text:    'Dosis', system-ui, sans-serif;

    --radius:     4px;       /* kantig wie gesägtes Holz, nur leicht gebrochen */
    --radius-gr:  10px;
    --schatten:   0 1px 0 rgba(58,44,32,.05), 0 18px 40px -24px rgba(58,44,32,.45);
    --spur:       .14em;     /* Laufweite für gestempelte Labels */

    --breite:     720px;
    --ease:       cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--schrift-text);
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--tinte);
    background-color: var(--papier);
    /* feine Sägemehl-/Papierkörnung */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
    outline: 3px solid var(--rost);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Grundgerüst ---------- */
.site {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--karte-rand);
}
.topbar__logo { height: 34px; width: auto; }
.topbar__logo svg, .topbar__logo img { height: 34px; width: auto; }

/* Öffentliche Seiten: Logo als zentrierte Hauptrolle im Kopf */
.page-survey .topbar,
.page-done .topbar {
    justify-content: center;
    padding-top: 1.7rem;
    padding-bottom: 1.7rem;
    border-bottom: none;
}
.page-survey .topbar__logo svg,
.page-done .topbar__logo svg { height: 54px; }
@media (max-width: 560px) {
    .page-survey .topbar__logo svg,
    .page-done .topbar__logo svg { height: 40px; }
}

.topbar__tag {
    font-family: var(--schrift-display);
    text-transform: uppercase;
    letter-spacing: var(--spur);
    font-size: .72rem;
    font-weight: 600;
    color: var(--tinte-weich);
}
.topbar__tag b { color: var(--rost); font-weight: 600; }

.stage {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 3.25rem) clamp(1rem, 4vw, 2rem) 3rem;
}

.card {
    width: 100%;
    max-width: var(--breite);
    background: var(--karte);
    border: 1px solid var(--karte-rand);
    border-radius: var(--radius-gr);
    box-shadow: var(--schatten);
    padding: clamp(1.5rem, 4.5vw, 3.25rem);
    position: relative;
}

/* ---------- Fortschritt: der Holzbalken ---------- */
.progress {
    margin-bottom: 2.25rem;
}
.progress__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: .6rem;
}
.progress__step {
    font-family: var(--schrift-display);
    text-transform: uppercase;
    letter-spacing: var(--spur);
    font-size: .74rem;
    font-weight: 600;
    color: var(--tinte-weich);
}
.progress__pct {
    font-family: var(--schrift-display);
    font-size: .74rem;
    font-weight: 600;
    color: var(--rost);
    letter-spacing: .04em;
}
.timber {
    display: flex;
    gap: 5px;
}
.timber__seg {
    flex: 1;
    height: 12px;
    border-radius: 2px;
    background: #E7DAC2;
    box-shadow: inset 0 0 0 1px rgba(58,44,32,.10);
    transition: background-color .45s var(--ease), box-shadow .45s var(--ease);
    position: relative;
    overflow: hidden;
}
.timber__seg.is-done {
    background-color: var(--rost);
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,.10) 0 2px,
        rgba(0,0,0,.06) 2px 5px,
        rgba(255,255,255,.05) 5px 9px);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}
.timber__seg.is-current {
    background-color: var(--rost-hell);
    box-shadow: inset 0 0 0 1px rgba(166,67,31,.45);
}

/* ---------- Kapitel-Bild ---------- */
.step__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.75rem;
    background: #E7DAC2;
    border: 1px solid var(--karte-rand);
    box-shadow: 0 14px 34px -20px rgba(58,44,32,.55);
}

/* ---------- Typografie in den Schritten ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--schrift-display);
    text-transform: uppercase;
    letter-spacing: var(--spur);
    font-weight: 600;
    font-size: .8rem;
    color: var(--rost);
    margin: 0 0 .9rem;
}
.eyebrow__num {
    font-variant-numeric: tabular-nums;
    background: var(--rost);
    color: #fff;
    padding: .12em .5em;
    border-radius: 3px;
    letter-spacing: .05em;
}

.step-title {
    font-family: var(--schrift-display);
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: .005em;
    color: var(--tinte);
    margin: 0 0 1.4rem;
    text-wrap: balance;
}

.narrative p {
    margin: 0 0 1.15rem;
    color: var(--tinte-weich);
    font-weight: 500;
}
.narrative p:last-child { margin-bottom: 0; }

.pull-quote {
    margin: 1.5rem 0;
    padding: .3rem 0;
    font-family: var(--schrift-display);
    font-weight: 500;
    font-size: clamp(1.35rem, 3.6vw, 1.85rem);
    line-height: 1.18;
    color: var(--tinte);
    text-wrap: balance;
}
.pull-quote::before { content: "„"; color: var(--rost); }
.pull-quote::after  { content: "“"; color: var(--rost); }

/* ---------- Frage / Felder ---------- */
.question { margin-top: 2rem; }
.question + .question { margin-top: 1.75rem; }

.question__label {
    display: block;
    font-family: var(--schrift-text);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--tinte);
    margin-bottom: .9rem;
    text-wrap: pretty;
}
.question--follow .question__label {
    font-size: 1.02rem;
    color: var(--tinte-weich);
    font-weight: 600;
}
.question__hint {
    font-family: var(--schrift-display);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .68rem;
    font-weight: 600;
    color: var(--tinte-weich);
    margin-left: .5rem;
    white-space: nowrap;
}

.field {
    width: 100%;
    font-family: var(--schrift-text);
    font-weight: 500;
    font-size: 1.08rem;
    color: var(--tinte);
    background: #fff;
    border: 1.5px solid var(--karte-rand);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field::placeholder { color: #B4A88E; }
.field:focus {
    outline: none;
    border-color: var(--rost);
    box-shadow: 0 0 0 4px rgba(203,87,43,.14);
}
textarea.field { min-height: 132px; resize: vertical; line-height: 1.5; }

/* ---------- Mehrfachauswahl: Holz-Chips ---------- */
.options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .6rem;
}
.option {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem .95rem;
    background: #fff;
    border: 1.5px solid var(--karte-rand);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--tinte);
    transition: border-color .16s var(--ease), background-color .16s var(--ease), transform .08s var(--ease);
    user-select: none;
}
.option:hover { border-color: var(--rost-hell); }
.option:active { transform: translateY(1px); }
.option input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
    margin: 0;
}
.option__box {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    border: 2px solid var(--karte-rand);
    border-radius: 4px;
    display: grid;
    place-items: center;
    transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.option__box svg { width: 13px; height: 13px; stroke: #fff; opacity: 0; transform: scale(.5); transition: opacity .14s var(--ease), transform .14s var(--ease); }
.option.is-checked { border-color: var(--rost); background: #FCEDE5; color: var(--tinte); }
.option.is-checked .option__box { background: var(--rost); border-color: var(--rost); }
.option.is-checked .option__box svg { opacity: 1; transform: scale(1); }
.option.is-locked { opacity: .42; cursor: not-allowed; }
.option.is-locked:hover { border-color: var(--karte-rand); }
.option input:focus-visible + .option__box {
    outline: 3px solid var(--rost);
    outline-offset: 2px;
}

.options__counter {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .9rem;
    font-family: var(--schrift-display);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .74rem;
    font-weight: 600;
    color: var(--tinte-weich);
}
.options__counter b { color: var(--rost); font-variant-numeric: tabular-nums; }
.options__counter.is-full b { color: var(--gruen); }

/* ---------- Buttons / Navigation ---------- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--karte-rand);
}
.btn {
    font-family: var(--schrift-display);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    font-size: .92rem;
    padding: .85rem 1.6rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .08s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: var(--rost);
    color: #fff;
    box-shadow: 0 10px 22px -14px var(--rost-tief);
}
.btn--primary:hover { background: var(--rost-tief); }
.btn--ghost {
    background: transparent;
    color: var(--tinte-weich);
    border-color: var(--karte-rand);
}
.btn--ghost:hover { color: var(--tinte); border-color: var(--tinte-weich); }
.btn[hidden] { display: none; }
.btn--lg { font-size: 1.02rem; padding: 1.05rem 2rem; }
.nav__spacer { flex: 1 1 auto; }

/* Honeypot – für Menschen unsichtbar, für Bots ein Köder */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Intro / Ende ---------- */
.hero__eyebrow, .hero__badge {
    font-family: var(--schrift-display);
    text-transform: uppercase;
    letter-spacing: var(--spur);
    font-weight: 600;
}
.hero__eyebrow { color: var(--rost); font-size: .82rem; display: block; margin-bottom: 1rem; }
.hero__title {
    font-family: var(--schrift-display);
    font-weight: 600;
    font-size: clamp(2.1rem, 6.5vw, 3.5rem);
    line-height: 1.02;
    color: var(--tinte);
    margin: 0 0 1.5rem;
    text-wrap: balance;
    white-space: pre-line;
}
.hero__lead { font-size: 1.18rem; color: var(--tinte); margin: 0 0 1.5rem; }
.hero__note { color: var(--tinte-weich); }

.kinds {
    list-style: none;
    margin: 1rem 0 1.75rem;
    padding: 0;
    display: grid;
    gap: .5rem;
}
.kinds li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 600;
    color: var(--tinte);
}
.kinds li::before {
    content: "";
    flex: 0 0 auto;
    width: 12px; height: 12px;
    border-radius: 2px;
    background: var(--rost);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

.privacy-note {
    background: #F3EAD8;
    border: 1px solid var(--karte-rand);
    border-left: 4px solid var(--gruen);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    font-size: 1rem;
    color: var(--tinte-weich);
    margin: 0 0 2rem;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.4rem;
}
.badge {
    font-family: var(--schrift-display);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--tinte-weich);
    background: #F3EAD8;
    border: 1px solid var(--karte-rand);
    border-radius: 100px;
    padding: .4rem .85rem;
}

.done__title { font-family: var(--schrift-display); font-weight: 600; font-size: clamp(2.1rem,6.5vw,3.4rem); color: var(--tinte); margin: .3rem 0 1.4rem; line-height: 1.03; }
.done p { color: var(--tinte-weich); font-size: 1.15rem; }
.done__ps { margin-top: 1.75rem; font-style: italic; color: var(--rost-tief); font-weight: 600; }

/* ---------- Umfrage-Melden-Fußzeile (nur Deko/Info) ---------- */
.stage-foot {
    text-align: center;
    padding: 0 1rem 2.5rem;
    color: var(--tinte-weich);
    font-size: .82rem;
}
.stage-foot a { color: var(--rost-tief); }

/* ---------- Schritt-Wechsel-Animation ---------- */
.js .step.is-active { animation: stepIn .4s var(--ease) both; }
@keyframes stepIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Wenn JS aktiv ist, blenden wir alle Schritte außer dem aktiven aus. */
.js .step:not(.is-active) { display: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 560px) {
    body { font-size: 1.06rem; }
    .options { grid-template-columns: 1fr; }
    .nav { flex-direction: row; }
    .btn { padding: .8rem 1.15rem; }
}

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