/* PA Bewertungen – öffentliches Formular
   Mobile-first, Pro-Akustik-Branding (#002636 / #ff9a12), border-radius 0 */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Layout ────────────────────────────────────────────────────────────── */

.pabw-body {
    background: #f4f5f6;
    font-family: 'Fira Sans', Arial, sans-serif;
    font-size: 16px;
    color: #002636;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px 48px;
}

.pabw-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    padding: 32px 24px;
    box-shadow: 0 2px 12px rgba(0, 38, 54, 0.10);
}

.pabw-card--danke {
    text-align: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

/* ── Logo / Kopf ────────────────────────────────────────────────────────── */

.pabw-logo {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #002636;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid #ff9a12;
}

.pabw-heading {
    font-size: 22px;
    font-weight: 700;
    color: #002636;
    margin-bottom: 16px;
    line-height: 1.2;
}

.pabw-intro {
    font-size: 15px;
    color: #445a64;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */

.pabw-alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    border-left: 4px solid;
}

.pabw-alert--error {
    background: #fff4f4;
    border-color: #cc0000;
    color: #990000;
}

/* ── Formular-Felder ────────────────────────────────────────────────────── */

.pabw-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pabw-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pabw-label {
    font-size: 14px;
    font-weight: 600;
    color: #002636;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pabw-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #778c96;
    font-size: 13px;
}

.pabw-input,
.pabw-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ccd5d9;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    color: #002636;
    background: #fff;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.pabw-input:focus,
.pabw-textarea:focus {
    outline: none;
    border-color: #002636;
}

.pabw-input--code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pabw-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Fieldsets / Legenden ───────────────────────────────────────────────── */

.pabw-fieldset {
    border: none;
    padding: 0;
}

.pabw-legend {
    font-size: 14px;
    font-weight: 600;
    color: #002636;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    display: block;
}

.pabw-legend--required::after {
    content: ' *';
    color: #ff9a12;
}

/* ── Sterne ──────────────────────────────────────────────────────────────
   Radio-Inputs sind visuell versteckt; Labels zeigen den Stern.
   RTL-Trick: Sterne von 5→1 im DOM, angezeigt von links nach rechts via flex-direction:row-reverse.
   Hover/Checked färbt den angeklickten Stern und alle größeren.
───────────────────────────────────────────────────────────────────────── */

.pabw-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.pabw-star-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pabw-star-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 36px;
    line-height: 1;
    color: #ccd5d9;
    cursor: pointer;
    transition: color 0.12s, transform 0.10s;
    /* Großes Touch-Target */
    min-width: 44px;
    min-height: 44px;
}

/* Beim Hovern über ein Label: dieses + alle nachfolgenden (größer) einfärben */
.pabw-stars .pabw-star-label:hover,
.pabw-stars .pabw-star-label:hover ~ .pabw-star-label {
    color: #ff9a12;
}

/* Wenn ein Radio checked: entsprechendes Label + alle nachfolgenden (größer) einfärben */
.pabw-star-input:checked ~ .pabw-star-label {
    color: #ff9a12;
}

/* Fokus-Ring für Tastaturnavigation */
.pabw-star-input:focus-visible + .pabw-star-label {
    outline: 2px solid #002636;
    outline-offset: 2px;
}

.pabw-star-label:active {
    transform: scale(0.90);
}

/* ── Weiterempfehlung ────────────────────────────────────────────────────── */

.pabw-empfehlung-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pabw-radio-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pabw-empfehlung-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    min-height: 48px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    border: 2px solid #ccd5d9;
    color: #445a64;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    user-select: none;
}

.pabw-empfehlung-label:hover {
    border-color: #002636;
    color: #002636;
}

.pabw-radio-input:checked + .pabw-empfehlung-label--ja {
    background: #002636;
    border-color: #002636;
    color: #ffffff;
}

.pabw-radio-input:checked + .pabw-empfehlung-label--nein {
    background: #445a64;
    border-color: #445a64;
    color: #ffffff;
}

.pabw-radio-input:focus-visible + .pabw-empfehlung-label {
    outline: 2px solid #ff9a12;
    outline-offset: 2px;
}

/* ── Abschicken-Button ───────────────────────────────────────────────────── */

.pabw-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #ff9a12;
    color: #002636;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    min-height: 52px;
}

.pabw-btn:hover {
    background: #e08800;
}

.pabw-btn:active {
    background: #c87900;
}

.pabw-btn:focus-visible {
    outline: 3px solid #002636;
    outline-offset: 2px;
}

/* ── Danke-Seite ─────────────────────────────────────────────────────────── */

.pabw-danke-icon {
    font-size: 64px;
    color: #ff9a12;
    margin-bottom: 20px;
    display: block;
}

.pabw-danke-text {
    font-size: 16px;
    color: #445a64;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.pabw-danke-sub {
    font-size: 14px;
    color: #778c96;
}

/* ── Desktop ─────────────────────────────────────────────────────────────── */

@media (min-width: 600px) {
    .pabw-body {
        align-items: center;
        padding: 48px 16px;
    }
    .pabw-card {
        padding: 40px 40px;
    }
    .pabw-heading {
        font-size: 26px;
    }
    .pabw-star-label {
        width: 52px;
        height: 52px;
        font-size: 40px;
    }
}
