@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto-400-xRBWAAv.woff2") format('woff2');
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/roboto-500-_EFgm1W.woff2") format('woff2');
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto-700-hVJMMUj.woff2") format('woff2');
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/roboto-900-q3p1VY2.woff2") format('woff2');
}

:root {
    --dl-primary: #007a4f;
    --dl-primary-dark: #056B45;
    --dl-header: #2f7a4a;
    --dl-cream: #ffe6ab;
    --dl-text: #454545;
    --dl-muted: #565655;
    --dl-card: #ffffff;
    --dl-border: #d8e5dc;
    --dl-danger: #b00020;
    /* Dunkler als Remote #00905d — weiße Utility-Links brauchen AA ≥4,5:1 */
    --dl-footer-bar: #006b48;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    padding-top: 70px;
    font-family: Roboto, sans-serif;
    color: var(--dl-text);
    /* Gradient liegt auf .site-band (hohes Inhaltsband wie WP), sonst driftet die Farbe */
    background: #fff;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--dl-primary);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/*
 * WP-Hauptsection: linear-gradient(55deg, #009E65 30%, #ffe6ab 100%) auf ~4028px Höhe.
 * Unser Band ist kürzer (2-Schritt-Formular) — ohne background-size verdichtet sich der
 * Verlauf und die sichtbaren Farben weichen ab.
 */
.site-band {
    flex: 1 0 auto;
    background-color: #009E65;
    background-image: linear-gradient(55deg, #009E65 30%, #ffe6ab 100%);
    background-size: 100% 4028px;
    background-repeat: no-repeat;
    background-position: top left;
}

/*
 * WP-Header (Elementor, 1280×900 / 390×844): Höhe 70px, #5cb779,
 * Schatten rgba(0,0,0,0.2) 0 10px 20px; Container max 1140 + 10px Innenpadding
 * (Logo left 72.5 bei 1265 Clientbreite); Logo 160×~35; Nav-Links padding 6px 11px,
 * margin 2.5px, 16px/400, lh 20px; aktives „Dorf registrieren“ border 1px solid #fff,
 * radius 5px. Mobile: Logo left 10, Toggle 37.5 right 10.
 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 70px;
    background: var(--dl-header);
    box-shadow: rgba(0, 0, 0, 0.2) 0 10px 20px 0;
}

.site-header__inner {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    height: 70px;
    box-sizing: border-box;
}

.site-header__brand {
    display: inline-block;
    flex-shrink: 0;
    line-height: 0;
}

.site-header__brand img {
    display: block;
    height: 35px;
    width: 160px;
    object-fit: contain;
}

.site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 37.5px;
    height: 37.5px;
    padding: 6.25px;
    border: 0 solid #009E66;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    cursor: pointer;
    flex-shrink: 0;
}

.site-header__toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #009E66;
    border-radius: 1px;
}

.site-header__nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    justify-content: flex-end;
    /* CDP 1280: lokale Nav lag ~7px rechts von Remote (firstNav 412.9 vs 405.6) */
    margin: 0 7px 0 0;
    padding: 0;
}

.site-header__nav a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    padding: 6px 11px;
    margin: 0 2.5px;
    border: 0 none transparent;
    border-radius: 0;
    box-sizing: border-box;
    white-space: nowrap;
}

.site-header__nav a:first-child {
    margin-left: 0;
}

.site-header__nav a:last-child {
    margin-right: 0;
}

.site-header__nav a:hover {
    text-decoration: underline;
}

/* Remote elementor-item-active auf /anmeldung/ */
.site-header__nav a.is-active,
.site-header__nav a[aria-current="page"] {
    border: 1px solid #fff;
    border-radius: 5px;
    text-decoration: none;
}

.site-main {
    max-width: 1140px;
    margin: 0 auto;
    /* 80px unter fixed Header → Titel ~150px wie Referenz */
    padding: 80px 1rem 3.5rem;
}

.steps-intro {
    color: #fff;
    margin-bottom: 2.75rem;
    text-align: center;
}

.steps-intro__title {
    margin: 0 auto 20px;
    max-width: 1120px;
    font-size: 40px;
    font-weight: 900;
    line-height: 48px;
    letter-spacing: normal;
    color: #454545;
}

.steps-intro__lead {
    /* WP: margin-bottom ~25px; Abstand Lead→Badge kommt über list-margin */
    margin: 0 auto 25px;
    max-width: 672px;
    line-height: 26px;
    font-size: 18px;
    font-weight: 400;
    color: #454545;
}

.steps-intro__list {
    list-style: none;
    margin: 0;
    /* Lead→Badge ~95px: 25px lead-mb + ~70px list-margin-top */
    margin-top: 70px;
    /* Referenz: Step-Block links im 1140px-Container (~118px vom Container-Rand) */
    margin-left: max(0px, calc((100% - 1140px) / 2 + 118px));
    margin-right: auto;
    padding: 0;
    display: grid;
    gap: 40px;
    text-align: left;
    max-width: 712px;
}

.steps-intro__item {
    display: grid;
    grid-template-columns: 143px 536px;
    column-gap: 34px;
    align-items: center;
    justify-content: center;
}

.steps-intro__badge {
    display: block;
    width: 143px;
    height: 123px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.steps-intro__badge-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.steps-intro__badge-svg--down {
    display: none;
}

.steps-intro__badge-svg--right {
    display: block;
}

.steps-intro__card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    color: var(--dl-muted);
    box-shadow: none;
    box-sizing: border-box;
}

.steps-intro__card h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 900;
    color: #454545;
    line-height: 1.25;
}

.steps-intro__card p {
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    color: #454545;
}

.site-form__title {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: 40px;
    text-align: center;
    font-weight: 900;
    line-height: 1.2;
}

/* Titel volle Containerbreite; Karte wie WP-CF7-Wrap 536px / 40px / ohne Schatten */
.site-form {
    max-width: 1140px;
    margin: 0 auto;
}

/* Formkarte in derselben Spalte wie Step-Karten (nicht zentriert) */
.registration-wizard,
.bestaetigung {
    max-width: 536px;
    /* list-inset 118 + badge 143 + gap 34 = 295 — wie .steps-intro__card */
    margin-left: max(0px, calc((100% - 1140px) / 2 + 295px));
    margin-right: auto;
}

.registration-wizard__card,
.bestaetigung {
    background: var(--dl-card);
    border-radius: 12px;
    box-shadow: none;
    padding: 40px;
}

.bestaetigung h1 {
    margin: 0 0 0.75rem;
    color: var(--dl-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.bestaetigung__block {
    margin: 1.25rem 0;
}

.bestaetigung a {
    color: var(--dl-primary);
}

.registration-wizard__section-title {
    margin: 0 0 1rem;
    font-size: 24px;
    font-weight: 600;
    color: #565655;
    text-align: left;
}

.registration-wizard__card .registration-wizard__section-title:not(:first-child) {
    margin-top: 1.5rem;
}

.registration-wizard__field {
    margin-bottom: 0.9rem;
}

.registration-wizard__divider {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1.25rem 0;
}

.registration-wizard__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 16px;
    font-weight: 400;
    color: #565655;
}

.registration-wizard__field--checkbox label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-weight: 400;
    line-height: 1.4;
}

.registration-wizard__field--checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.registration-wizard__field input[type="text"],
.registration-wizard__field input[type="email"],
.registration-wizard__field input[type="tel"],
.registration-wizard__field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    border: 1px solid #666;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    min-height: 43px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.registration-wizard__progress {
    margin: 0 0 1.25rem;
    max-width: 536px;
}

.registration-wizard__progress-list {
    list-style: none;
    margin: 0;
    padding: 1rem 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    position: relative;
    background: var(--dl-card, #fff);
    border-radius: 12px;
    box-shadow: none;
    box-sizing: border-box;
}

.registration-wizard__progress-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    position: relative;
}

.registration-wizard__progress-btn,
.registration-wizard__progress-static {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: default;
    appearance: none;
    -webkit-appearance: none;
}

.registration-wizard__progress-btn:not(.is-inert) {
    cursor: pointer;
}

.registration-wizard__progress-btn.is-inert {
    cursor: default;
    pointer-events: none;
}

.registration-wizard__progress-btn:focus-visible {
    outline: 2px solid var(--dl-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.registration-wizard__progress-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: #fff;
    color: #454545;
    border: 2px solid #c5d0c9;
}

.registration-wizard__progress-item.is-current .registration-wizard__progress-num {
    background: #fff;
    border-color: var(--dl-header, #2f7a4a);
    color: #454545;
}

.registration-wizard__progress-item.is-done .registration-wizard__progress-num {
    background: #fff;
    border-color: var(--dl-primary, #007a4f);
    color: #454545;
}

.registration-wizard__progress-label {
    font-size: 0.75rem;
    color: #565655;
    font-weight: 500;
}

.registration-wizard__intro,
.registration-wizard__message-intro,
.registration-wizard__subsection-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.45;
    color: #454545;
}

.registration-wizard__subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
}

.registration-wizard__captcha-question {
    margin: 0.35rem 0 0.5rem;
    font-weight: 600;
    color: #454545;
}

.registration-wizard__checkbox-label {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    cursor: pointer;
}

.registration-wizard__checkbox-label input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--dl-primary, #007a4f);
}

.registration-wizard__checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--dl-primary);
    outline-offset: 2px;
}

.store-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.store-tiles__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 0.75rem;
    background: #f7faf8;
    border-radius: 12px;
    border: 1px solid #e0e8e3;
    text-align: center;
}

.store-tiles__qr {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.store-tiles__link {
    color: var(--dl-primary, #007a4f);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
}

.store-tiles__logo {
    width: 40px;
    height: 40px;
}

.registration-wizard__duplicate,
.bestaetigung {
    max-width: 100%;
}

@media (max-width: 767px) {
    .store-tiles {
        grid-template-columns: 1fr;
    }

    .registration-wizard__progress-label {
        font-size: 0.65rem;
    }
}

.registration-wizard__field input[readonly] {
    background: #f3f6f4;
    color: #333;
}

.registration-wizard__field input:focus,
.registration-wizard__field textarea:focus {
    outline: 2px solid rgba(0, 158, 101, 0.35);
    border-color: var(--dl-primary);
}

.registration-wizard__field textarea {
    min-height: 5rem;
    resize: vertical;
}

.registration-wizard__captcha-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.registration-wizard__captcha-row img {
    border: 1px solid var(--dl-border);
    border-radius: 0.35rem;
    background: #fff;
}

.registration-wizard__hint {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--dl-muted);
}

.registration-wizard__required-hint {
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
    color: var(--dl-muted);
}

.registration-wizard__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.registration-wizard__btn {
    display: inline-block;
    width: auto;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 10px 15px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    text-align: center;
    min-height: 41px;
}

.registration-wizard__btn--compact {
    width: auto;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    min-height: 0;
}

.registration-wizard__btn--primary {
    /* WP .anmelden-btn */
    background: linear-gradient(90deg, rgb(1, 159, 101) 0%, rgb(30, 190, 101) 100%);
    color: #fff;
    border: 0;
    width: 170px;
}

.registration-wizard__btn--primary:hover {
    background: linear-gradient(90deg, rgb(0, 144, 90) 0%, rgb(20, 170, 90) 100%);
}

.registration-wizard__btn--secondary {
    background: #fff;
    color: var(--dl-primary);
    border: 1px solid var(--dl-primary);
}

.registration-wizard__field.is-invalid input,
.registration-wizard__field.is-invalid textarea {
    border-color: var(--dl-danger);
    outline-color: var(--dl-danger);
}

.registration-wizard__field--checkbox.is-invalid .registration-wizard__checkbox-label {
    outline: 1px solid var(--dl-danger);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.registration-wizard__field-error,
.registration-wizard__form-error {
    margin: 0.35rem 0 0;
    color: var(--dl-danger);
    font-size: 0.875rem;
    line-height: 1.3;
}

.registration-wizard__form-error {
    margin: 0 0 1rem;
}

/* Kein margin-top: body ist weiß — Abstand würde als weißer Streifen zwischen
 * site-band und Footer sichtbar (WP-Footer margin: 0). */
.site-footer {
    margin: 0;
}

/*
 * Footer bewusst ohne site-footer__main (Auftrag: vom Remote abweichen).
 * Nur Utility-Bar #00905d — Desktop 46px / Links 13px 20px; Mobile wrap 13px.
 */
.site-footer__inner {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.site-footer__bar {
    background: var(--dl-footer-bar);
    padding: 0;
    min-height: 46px;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    min-height: 46px;
}

.site-footer__nav a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    padding: 13px 20px;
}

.site-footer__nav a:hover {
    text-decoration: underline;
}

.site-float {
    position: fixed;
    /* WP sticky-icons: right 30px CSS, optisch ~20px inkl. Scrollbar */
    right: 5px;
    top: 276px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 999;
}

.site-float__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 0 8px;
    border-radius: 10px;
    background: var(--dl-primary);
    color: #fff;
    text-decoration: none;
    box-shadow: none;
    font-size: 24px;
    line-height: 1;
}

.site-float__btn:hover {
    background: var(--dl-primary-dark);
    color: #fff;
}

.site-float__btn i,
.site-float__icon {
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: block;
}

.site-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 640px) {
    .registration-wizard__actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .registration-wizard__actions .registration-wizard__btn {
        flex: 0 0 auto;
    }
}

/*
 * Header-Menü: Elementor Tablet/Desktop-Grenze 1024/1025
 * (Remote CDP: 1024 Hamburger, 1025 horizontale Nav).
 */
@media (max-width: 1024px) {
    .site-header__inner {
        max-width: none;
        padding: 0 10px;
        position: relative;
    }

    .site-header__toggle {
        display: flex;
        margin-left: auto;
    }

    .site-header__nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        background: var(--dl-header);
        padding: 0.5rem 0 1rem;
        box-shadow: rgba(0, 0, 0, 0.15) 0 8px 16px 0;
        z-index: 1000;
    }

    .site-header__nav.is-open {
        display: flex;
    }

    .site-header__nav a,
    .site-header__nav a:first-child,
    .site-header__nav a:last-child {
        margin: 0;
        padding: 12px 16px;
        font-size: 16px;
        line-height: 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        white-space: normal;
    }

    .site-header__nav a.is-active,
    .site-header__nav a[aria-current="page"] {
        margin: 8px 16px 0;
        padding: 6px 11px;
        border: 1px solid #fff;
        border-radius: 5px;
        border-bottom-color: #fff;
        justify-content: center;
        text-align: center;
    }
}

/* Übriges Mobile-Layout (Steps, Typo, Floats, Footer) ≤767px */
@media (max-width: 767px) {
    /* Floats bleiben auf WP-Mobile sichtbar */
    .site-float {
        display: flex;
        top: 248px;
        right: 5px;
    }

    .steps-intro__title,
    .site-form__title {
        font-size: 26px;
        line-height: 31.2px;
        max-width: none;
    }

    .steps-intro__lead {
        max-width: none;
        width: 100%;
        margin-bottom: 25px;
    }

    .steps-intro__list {
        max-width: 100%;
        margin-left: 0;
        margin-top: 48px;
        gap: 32px;
    }

    .steps-intro__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        grid-template-columns: none;
        column-gap: 0;
        row-gap: 20px;
    }

    .steps-intro__badge {
        width: 100px;
        height: auto;
        aspect-ratio: 124 / 143;
    }

    .steps-intro__badge-svg--right {
        display: none;
    }

    .steps-intro__badge-svg--down {
        display: block;
        width: 100%;
        height: auto;
    }

    .steps-intro__card {
        width: 100%;
        padding: 25px;
    }

    .steps-intro__card h2 {
        font-size: 20px;
        line-height: 1.2;
    }

    .steps-intro__card p {
        font-size: 16px;
        line-height: 24px;
    }

    .site-main {
        padding: 80px 10px 3rem;
    }

    .registration-wizard,
    .bestaetigung {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .registration-wizard__card,
    .bestaetigung {
        padding: 20px;
    }

    /* Utility-Bar Mobile: wrappt, 13px / padding 13px */
    .site-footer__nav a {
        font-size: 13px;
        padding: 13px;
    }
}

/* Sichtbarer Tastaturfokus (WCAG) */

:focus-visible {

    outline: 3px solid var(--dl-primary);

    outline-offset: 2px;

}

.site-header__nav a:focus-visible,

.site-header__toggle:focus-visible,

.registration-wizard__btn:focus-visible,

.site-float__btn:focus-visible,

a:focus-visible {

    outline: 3px solid #fff;

    outline-offset: 2px;

}

.site-header__nav a:focus-visible {

    outline-color: #fff;

}

.registration-wizard__btn:focus-visible,

.site-float__btn:focus-visible,

.skip-link:focus-visible {

    outline-color: var(--dl-primary);

}
