/* ===========================================================================
   INFINA Wohnlounge – Gewinnspiel
   Eigene Stile aufbauend auf Bootstrap 5.
   Alle Werte sind aus dem Screendesign unter projekt/screendesign abgeleitet.
   =========================================================================== */

:root {
    /* Markenfarben (direkt aus den Screens ausgelesen) */
    --wl-teal: #0d99a6;
    --wl-teal-dark: #0a8290;
    --wl-navy: #123068;
    --wl-navy-dark: #0d2450;
    --wl-green: #65b32e;
    --wl-blue: #006cb5;

    --wl-field-bg: #eceff0;
    --wl-field-bg-focus: #ebf7f8;
    --wl-placeholder: #707b83;
    --wl-muted: #8099ac;
    --wl-value: #b0bec7;
    --wl-white: #fff;

    /* Layout */
    --wl-shell: 1148px;
    --wl-card: 516px;
    --wl-card-pad-x: 48px;
    --wl-card-pad-y: 44px;
    --wl-radius-card: 12px;

    --wl-font: 'Mulish', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------------------------
   Grundlagen
   --------------------------------------------------------------------------- */

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

body.wl-page {
    min-height: 100vh;
    margin: 0;
    background-color: #0b9aa8;
    color: var(--wl-navy);
    font-family: var(--wl-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wl-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1080;
    padding: 12px 20px;
    background: var(--wl-white);
    color: var(--wl-navy);
    border-radius: 0 0 8px 0;
}

.wl-skip-link:focus {
    left: 0;
}

/* Hintergrund: Farbverlauf plus Gebaeude-Visual, beide als Bild fuer
   verlustfreie WebP-Fallbacks. */
.wl-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.wl-backdrop img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.wl-backdrop__visual {
    mix-blend-mode: soft-light;
    opacity: 0.9;
}

/* ---------------------------------------------------------------------------
   Seitengeruest
   --------------------------------------------------------------------------- */

.wl-main {
    display: block;
    padding: 70px 0 0;
}

.wl-shell {
    width: 100%;
    max-width: var(--wl-shell);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

/* ---------------------------------------------------------------------------
   Karte
   --------------------------------------------------------------------------- */

.wl-card {
    max-width: var(--wl-card);
    margin: 0 auto;
    padding: var(--wl-card-pad-y) var(--wl-card-pad-x);
    background: var(--wl-white);
    border-radius: var(--wl-radius-card);
    box-shadow: 0 18px 45px rgba(4, 42, 60, 0.12);
    text-align: center;
}

.wl-card--form,
.wl-card--message {
    padding-bottom: 34px;
}

.wl-card--legal {
    max-width: 720px;
    text-align: left;
}

.wl-card__title {
    margin: 0 0 20px;
    color: var(--wl-teal);
    font-size: 27px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.1px;
}

.wl-card__title--navy {
    color: var(--wl-navy);
}

.wl-card__title--left {
    text-align: left;
}

.wl-card__lead {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.7;
}

.wl-card__lead strong {
    font-weight: 700;
}

.wl-card__choice {
    margin: 0 0 34px;
    font-size: 19px;
    font-weight: 400;
}

.wl-card__choice strong {
    color: var(--wl-teal);
    font-weight: 400;
}

.wl-card__body {
    margin: 0 auto 6px;
    max-width: 400px;
    font-size: 14px;
    line-height: 1.6;
}

.wl-card__body p {
    margin: 0 0 10px;
}

.wl-card__body p:last-child {
    margin-bottom: 0;
}

.wl-card__icon {
    margin: 0 0 14px;
    line-height: 0;
}

.wl-card--success .wl-card__icon {
    color: var(--wl-teal);
}

.wl-card--info .wl-card__icon {
    color: var(--wl-muted);
}

.wl-card--error .wl-card__icon {
    color: #c0392b;
}

.wl-card__actions {
    margin: 26px 0 0;
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */

.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 33px;
    padding: 6px 22px;
    border: 0;
    border-radius: 999px;
    color: var(--wl-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.wl-btn--wide {
    min-width: 207px;
}

.wl-btn--xwide {
    min-width: 277px;
}

.wl-btn--primary {
    background-color: var(--wl-teal);
}

.wl-btn--primary:hover,
.wl-btn--primary:focus-visible {
    background-color: var(--wl-teal-dark);
    color: var(--wl-white);
}

.wl-btn--navy {
    background-color: var(--wl-navy);
}

.wl-btn--navy:hover,
.wl-btn--navy:focus-visible {
    background-color: var(--wl-navy-dark);
    color: var(--wl-white);
}

.wl-btn--ghost {
    background-color: transparent;
    border: 1px solid var(--wl-teal);
    color: var(--wl-teal);
}

.wl-btn--ghost:hover,
.wl-btn--ghost:focus-visible {
    background-color: var(--wl-teal);
    color: var(--wl-white);
}

/* Deaktivierter Zustand entspricht dem Screendesign "Abstimmen" ohne Auswahl. */
.wl-btn:disabled,
.wl-btn[aria-disabled='true'] {
    background-color: rgba(13, 153, 166, 0.45);
    color: rgba(255, 255, 255, 0.85);
    cursor: not-allowed;
}

.wl-btn:focus-visible {
    outline: 2px solid var(--wl-navy);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Abstimmung (Schritt 1)
   --------------------------------------------------------------------------- */

.wl-vote__fieldset {
    display: inline-block;
    margin: 44px 0 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.wl-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 26px;
}

.wl-radio + .wl-radio {
    margin-top: 0.5px;
}

.wl-radio__input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 0;
    border: 1px solid #c7d0d6;
    border-radius: 50%;
    background: var(--wl-white);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wl-radio__input:checked {
    border-color: var(--wl-teal);
    box-shadow: inset 0 0 0 3px var(--wl-white), 0 0 0 4px rgba(13, 153, 166, 0.16);
    background: var(--wl-teal);
}

.wl-radio__input:focus-visible {
    outline: 2px solid var(--wl-teal);
    outline-offset: 2px;
}

.wl-radio__label {
    color: var(--wl-navy);
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
}

.wl-radio__input:checked + .wl-radio__label {
    color: var(--wl-teal);
}

/* Hinweisblock */
.wl-hint {
    margin: 44px 0 0;
}

.wl-hint__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.wl-hint__text,
.wl-hint__next {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.wl-hint__next {
    margin-top: 26px;
}

.wl-hint__next a,
.wl-card__body a {
    color: var(--wl-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Ergebnis (Schritt 2)
   --------------------------------------------------------------------------- */

.wl-results {
    width: auto;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.wl-results__key {
    width: 34px;
    padding: 0;
    color: var(--wl-navy);
    font-size: 22px;
    font-weight: 400;
    text-align: left;
    vertical-align: middle;
}

.wl-results__bars {
    width: 150px;
    padding: 0 20px 0 8px;
    vertical-align: middle;
}

.wl-bars {
    display: flex;
    align-items: center;
    gap: 3.6px;
    height: 22px;
}

.wl-bars__bar {
    display: block;
    width: 3.6px;
    height: 22px;
    border-radius: 1.8px;
    background: currentColor;
}

.wl-bars--green {
    color: var(--wl-green);
}

.wl-bars--blue {
    color: var(--wl-blue);
}

.wl-bars--teal {
    color: var(--wl-teal);
}

.wl-results__value {
    padding: 0;
    color: var(--wl-value);
    font-size: 26px;
    font-weight: 400;
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.wl-results__stand {
    margin: 22px 0 0;
    color: var(--wl-muted);
    font-size: 13px;
}

.wl-results__stand strong {
    font-weight: 700;
}

.wl-results__legend {
    margin: 46px 0 0;
    color: var(--wl-navy);
    font-size: 13px;
    line-height: 1.5;
}

.wl-results__sep {
    display: inline-block;
    padding: 0 8px;
    color: var(--wl-navy);
}

/* ---------------------------------------------------------------------------
   Formulare
   --------------------------------------------------------------------------- */

.wl-form {
    margin: 0;
}

/* Honeypot: fuer Menschen und Screenreader unsichtbar, fuer Bots verlockend. */
.wl-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wl-consent {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    max-width: 380px;
    margin: 0 auto 20px;
    text-align: left;
}

.wl-consent__input {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin: 3px 0 0;
    border: 1px solid #c7d0d6;
    border-radius: 50%;
    background: var(--wl-white);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.wl-consent__input:checked {
    border-color: var(--wl-navy);
    box-shadow: inset 0 0 0 2.5px var(--wl-white);
    background: var(--wl-navy);
}

.wl-consent__input.is-invalid {
    border-color: #c0392b;
}

.wl-consent__input:focus-visible {
    outline: 2px solid var(--wl-teal);
    outline-offset: 2px;
}

.wl-consent__label {
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.wl-consent__label a {
    color: var(--wl-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wl-fieldrow {
    display: flex;
    gap: 14px;
    margin: 0 0 14px;
}

.wl-field {
    flex: 1 1 0;
    min-width: 0;
}

.wl-input {
    display: block;
    width: 100%;
    height: 39px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--wl-field-bg);
    color: var(--wl-navy);
    font-family: inherit;
    font-size: 15px;
    line-height: 37px;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.wl-input::placeholder {
    color: var(--wl-placeholder);
    opacity: 1;
}

.wl-input:focus {
    border-color: var(--wl-teal);
    background: var(--wl-field-bg-focus);
    outline: 0;
}

.wl-input.is-invalid {
    border-color: #c0392b;
    background: #fdf2f0;
}

/* E-Mail-Feld mit anliegendem Button (siehe Screendesign) */
.wl-inputgroup {
    position: relative;
    display: flex;
    align-items: center;
}

.wl-inputgroup .wl-input {
    padding-right: 158px;
}

.wl-inputgroup__btn {
    position: absolute;
    top: 0;
    right: 0;
    height: 39px;
    min-width: 144px;
}

.wl-formnote {
    margin: 14px 0 0;
    color: var(--wl-muted);
    font-size: 13px;
    line-height: 1.5;
}

.wl-formnote a {
    color: var(--wl-teal);
    text-decoration: underline;
}

.wl-fielderror {
    margin: -14px 0 14px;
    color: #c0392b;
    font-size: 12px;
}

.wl-alert {
    margin: 16px 0 0;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    list-style: none;
    text-align: left;
}

ul.wl-alert {
    padding-left: 32px;
    list-style: disc;
}

.wl-alert--error {
    background: #fdf2f0;
    color: #a5281a;
}

.wl-alert--success {
    background: rgba(13, 153, 166, 0.1);
    color: var(--wl-teal-dark);
    text-align: center;
}

/* Captcha */
.wl-captcha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 0;
}

.wl-captcha__image {
    display: block;
    width: 130px;
    height: 39px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--wl-field-bg);
}

.wl-captcha__reload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--wl-teal);
    cursor: pointer;
}

.wl-captcha__reload:hover {
    background: rgba(13, 153, 166, 0.1);
}

.wl-input--captcha {
    width: 180px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Der Platzhalter soll ungesperrt und in Normalschrift stehen,
   damit "Sicherheitscode" vollstaendig sichtbar bleibt. */
.wl-input--captcha:placeholder-shown {
    text-transform: none;
    letter-spacing: normal;
}

.wl-input--captcha::placeholder {
    text-transform: none;
    letter-spacing: normal;
}

/* ---------------------------------------------------------------------------
   Preise
   --------------------------------------------------------------------------- */

.wl-prizes__heading {
    margin: 32px 0 0;
    color: var(--wl-white);
    font-size: 22px;
    font-weight: 300;
    line-height: 1.3;
    text-align: center;
}

.wl-prizes__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 12px;
    max-width: 564px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.wl-prizes--hero .wl-prizes__list {
    margin-top: 34px;
}

.wl-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wl-prize__count,
.wl-prize__title,
.wl-prize__note {
    margin: 0;
}

.wl-prize__count {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.wl-prize__title {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.wl-prize__note {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.wl-prize__media {
    display: block;
    width: 96px;
    height: 96px;
    margin-top: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--wl-white);
}

.wl-prize__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Variante unterhalb der Karte: weisse Typografie */
.wl-prizes--hero .wl-prize__count,
.wl-prizes--hero .wl-prize__title,
.wl-prizes--hero .wl-prize__note {
    color: var(--wl-white);
}

/* Variante innerhalb der Karte: Markenfarben, etwas kompakter */
.wl-prizes--card {
    margin-top: 32px;
}

.wl-prizes--card .wl-prizes__list {
    max-width: none;
}

.wl-prizes--card .wl-prize__count {
    color: var(--wl-navy);
    font-size: 22px;
}

.wl-prizes--card .wl-prize__title {
    color: var(--wl-teal);
}

.wl-prizes--card .wl-prize__note {
    color: var(--wl-navy);
}

.wl-prizes--card .wl-prize__media {
    width: 84px;
    height: 84px;
    margin-top: 16px;
    background: var(--wl-navy);
}

/* ---------------------------------------------------------------------------
   Claim
   --------------------------------------------------------------------------- */

.wl-claim {
    margin: 92px 0 0;
    color: var(--wl-white);
    font-size: 22px;
    font-weight: 300;
    line-height: 1.4;
    text-align: center;
}

/* ---------------------------------------------------------------------------
   Fussbereich
   --------------------------------------------------------------------------- */

.wl-footer {
    position: relative;
    margin-top: 52px;
    padding-bottom: 32px;
}

.wl-footer__rule {
    width: 100%;
    max-width: 508px;
    margin: 0 auto;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.wl-footer__brand {
    display: block;
    width: 187px;
    margin: 36px auto 0;
}

.wl-footer__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.wl-footer__links {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: -16px;
}

.wl-footer__group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wl-footer__link,
.wl-footer__sep {
    color: var(--wl-white);
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

.wl-footer__link:hover,
.wl-footer__link:focus-visible {
    color: var(--wl-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Overlays
   --------------------------------------------------------------------------- */

.wl-modal .modal-dialog {
    max-width: 560px;
}

.wl-modal__content {
    border: 0;
    border-radius: var(--wl-radius-card);
    box-shadow: 0 18px 45px rgba(4, 42, 60, 0.2);
}

.wl-modal__header {
    align-items: flex-start;
    padding: 34px 40px 4px;
    border-bottom: 0;
}

.wl-modal__title {
    margin: 0;
    color: var(--wl-navy);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
}

.wl-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -4px -8px 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wl-navy);
    cursor: pointer;
}

.wl-modal__close:hover {
    color: var(--wl-teal);
}

.wl-modal__body {
    padding: 18px 40px 36px;
}

.wl-modal__lead {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
}

.wl-modal .modal-backdrop.show {
    opacity: 0.35;
}

/* ---------------------------------------------------------------------------
   Fliesstext (Teilnahmebedingungen, Impressum, Datenschutz)
   --------------------------------------------------------------------------- */

.wl-prose {
    color: var(--wl-navy);
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
}

.wl-prose p {
    margin: 0 0 16px;
}

.wl-prose h3 {
    margin: 26px 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.wl-prose h3:first-child {
    margin-top: 0;
}

.wl-prose ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.wl-prose li {
    margin-bottom: 4px;
}

.wl-prose dl {
    margin: 0 0 16px;
}

.wl-prose dt {
    font-weight: 700;
}

.wl-prose dd {
    margin: 0 0 8px;
}

.wl-prose a {
    color: var(--wl-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.wl-legal__back {
    margin: 28px 0 0;
}

/* ---------------------------------------------------------------------------
   Responsives Verhalten
   --------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    :root {
        --wl-card-pad-x: 24px;
        --wl-card-pad-y: 32px;
    }

    .wl-main {
        padding-top: 28px;
    }

    .wl-card__title {
        font-size: 24px;
    }

    .wl-card__lead {
        font-size: 15px;
    }

    .wl-card__lead br,
    .wl-hint__text br {
        display: none;
    }

    .wl-card__choice {
        margin-bottom: 26px;
        font-size: 17px;
    }

    .wl-vote__fieldset {
        margin-top: 32px;
    }

    .wl-radio {
        min-height: 34px;
    }

    .wl-hint {
        margin-top: 32px;
    }

    .wl-results__value {
        font-size: 22px;
    }

    .wl-results__bars {
        width: auto;
        padding-right: 12px;
    }

    .wl-btn--wide,
    .wl-btn--xwide {
        min-width: 0;
        width: 100%;
    }

    .wl-fieldrow {
        flex-direction: column;
        gap: 12px;
    }

    .wl-inputgroup {
        flex-direction: column;
        gap: 12px;
    }

    .wl-inputgroup .wl-input {
        padding-right: 20px;
    }

    .wl-inputgroup__btn {
        position: static;
        width: 100%;
    }

    .wl-captcha {
        flex-wrap: wrap;
    }

    .wl-input--captcha {
        width: 100%;
        order: 3;
    }

    .wl-prizes__list {
        gap: 0 8px;
    }

    .wl-prize__count {
        font-size: 20px;
    }

    .wl-prize__title {
        font-size: 13px;
    }

    .wl-prize__note {
        font-size: 11px;
    }

    .wl-prize__media,
    .wl-prizes--card .wl-prize__media {
        width: 72px;
        height: 72px;
        margin-top: 14px;
    }

    .wl-claim {
        margin-top: 48px;
        font-size: 18px;
    }

    .wl-claim br {
        display: none;
    }

    .wl-footer {
        margin-top: 40px;
    }

    .wl-footer__links {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        gap: 8px;
    }

    .wl-modal__header {
        padding: 24px 24px 4px;
    }

    .wl-modal__body {
        padding: 14px 24px 28px;
    }
}

@media (max-width: 400px) {
    .wl-prizes__list {
        grid-template-columns: 1fr;
        gap: 26px 0;
        max-width: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
