/* =====================================================
   ANMELDESEITE (single-fdp_registration.php)
   FDP Anhalt-Bitterfeld

   Wie die Anmeldeseiten der Landespartei: farbiger
   Hintergrund, weiße Karte über die ganze Höhe.
   Schrift, Felder und Buttons wie im Theme.
===================================================== */

body.fdp-reg-page {
    min-height: 100vh;
    min-height: 100dvh;

    margin: 0;

    background-color: var(--fdp-yellow);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;

    color: #171717;
}

body.fdp-reg-page--blue {
    background-color: var(--fdp-blue);
}

body.fdp-reg-page--grey {
    background-color: #e9edf3;
}

body.fdp-reg-page--image {
    background-color: var(--fdp-blue);
}

/* Platzierung wie bei der Landespartei: Abstand nach oben
   und unten, Karte rückt proportional zur Breite ein.
   Ecken wie die Formular-Kästen der Mitmach-Seiten. */
.fdp-reg {
    box-sizing: border-box;
    width: auto;

    margin: 0 32px 0 max(32px, 9.3vw);
    padding: 80px 0;
}

.fdp-reg__card {
    box-sizing: border-box;
    width: min(100%, 780px);

    padding: 56px clamp(28px, 5vw, 72px) 40px;

    border-radius: 30px;

    background: var(--fdp-white);
}


/* Kopf: Verbandsname und Logo */

.fdp-reg__head {
    display: flex;

    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding-bottom: 32px;

    border-bottom: 1px solid rgba(3, 45, 103, 0.14);
}

.fdp-reg__org {
    margin: 0;

    color: var(--fdp-blue);

    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.fdp-reg__logo {
    display: inline-flex;
    flex: 0 0 auto;
}

.fdp-reg__logo img {
    display: block;

    width: auto;
    max-width: 190px;
    height: 46px;
}


/* Titel und Einleitung */

.fdp-reg__intro {
    padding: 44px 0 34px;

    border-bottom: 1px solid rgba(3, 45, 103, 0.14);
}

.fdp-reg__title {
    margin: 0;

    color: var(--fdp-blue);

    font-size: clamp(2rem, 4.6vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.06;
}

.fdp-reg__title::after {
    display: block;

    width: 105px;
    height: 7px;

    margin-top: 16px;

    background: var(--fdp-cyan);

    content: "";
}

.fdp-reg__teaser,
.fdp-reg__details {
    font-size: var(--fdp-body-font-size);
    line-height: var(--fdp-body-line-height);

    hyphens: auto;
    -webkit-hyphens: auto;
}

.fdp-reg__teaser {
    margin-top: 28px;
}

.fdp-reg__teaser > :first-child,
.fdp-reg__details > :first-child {
    margin-top: 0;
}

.fdp-reg__teaser > :last-child,
.fdp-reg__details > :last-child {
    margin-bottom: 0;
}

.fdp-reg__teaser p,
.fdp-reg__details p {
    margin: 0 0 1.1rem;
}

.fdp-reg__teaser a,
.fdp-reg__details a {
    color: var(--fdp-blue);

    font-weight: 700;

    text-decoration: underline;
    text-decoration-color: var(--fdp-link-underline-color);
    text-decoration-thickness: var(--fdp-link-underline-thickness);
    text-underline-offset: var(--fdp-link-underline-offset);
}


/* Datum und Ort */

.fdp-reg__facts {
    display: grid;
    gap: 14px;

    padding: 30px 0;

    border-bottom: 1px solid rgba(3, 45, 103, 0.14);
}

.fdp-reg__fact {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 14px;

    margin: 0;

    color: #171717;

    font-size: var(--fdp-body-font-size);
    font-weight: 500;
    line-height: 1.55;
}

.fdp-reg__fact svg {
    width: 24px;
    height: 24px;

    margin-top: 2px;

    color: var(--fdp-blue);

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fdp-reg__details {
    padding: 30px 0;

    border-bottom: 1px solid rgba(3, 45, 103, 0.14);
}


/* Formular */

.fdp-reg__form.fdp-form {
    margin: 0;
    padding: 36px 0 44px;
}

.fdp-reg__section-title {
    margin: 0 0 24px;

    color: var(--fdp-blue);

    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.fdp-reg__form .fdp-form__form {
    display: grid;
    gap: 22px;
}

.fdp-reg__hint {
    margin: 0;

    color: var(--fdp-grey);

    font-size: 0.9rem;
    line-height: 1.5;
}


.fdp-reg__other {
    display: grid;
    gap: 8px;

    margin-top: 6px;
}

.fdp-reg__other[hidden] {
    display: none;
}


/* Begleitpersonen */

.fdp-reg__companions {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.fdp-reg__companion-list {
    display: grid;
    gap: 14px;

    width: 100%;
}

.fdp-reg__companion-list:empty {
    display: none;
}

.fdp-reg__companion {
    position: relative;

    margin: 0;
    padding: 18px 18px 14px;

    border: 2px solid rgba(3, 45, 103, 0.1);
    border-radius: 12px;

    background: var(--fdp-light);
}

.fdp-reg__companion legend {
    padding: 0 6px;

    color: var(--fdp-blue);
}

.fdp-reg__remove {
    margin-top: 10px;
    padding: 0;

    border: 0;

    background: none;
    color: #8f1616;

    cursor: pointer;

    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.fdp-reg__add {
    display: inline-flex;
    min-height: 48px;

    align-items: center;

    padding: 10px 20px;

    border: 2px solid var(--fdp-blue);
    border-radius: 9px;

    background: var(--fdp-white);
    color: var(--fdp-blue);

    cursor: pointer;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;

    transition:
        background var(--transition),
        color var(--transition);
}

.fdp-reg__add:hover {
    background: var(--fdp-blue);
    color: var(--fdp-white);
}

.fdp-reg__add[hidden] {
    display: none;
}

.fdp-reg__add:focus-visible,
.fdp-reg__remove:focus-visible {
    outline: 3px solid rgba(0, 167, 231, 0.45);
    outline-offset: 3px;
}


/* Fuß */

.fdp-reg__footer {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 24px;

    padding-top: 24px;

    border-top: 1px solid rgba(3, 45, 103, 0.14);
}

.fdp-reg__footer a {
    color: var(--fdp-blue);

    font-size: 0.9rem;
    font-weight: 500;

    text-decoration: underline;
    text-decoration-color: var(--fdp-link-underline-color);
    text-underline-offset: 4px;
}

.fdp-reg__footer a:hover {
    color: var(--fdp-cyan);
}


/* =====================================================
   TABLET
===================================================== */

@media (min-width: 768px) and (max-width: 1100px) {

    .fdp-reg {
        margin: 0 24px;
        padding: 48px 0;
    }

    .fdp-reg__card {
        width: min(100%, 720px);
        margin: 0 auto;

        padding: 48px 48px 40px;
    }
}


/* =====================================================
   HANDY
   Kleiner gelber Rahmen rund um die Karte.
===================================================== */

@media (max-width: 767px) {

    body.fdp-reg-page {
        padding: 12px;
    }

    .fdp-reg {
        margin: 0;
        padding: 0;
    }

    .fdp-reg__card {
        min-height: calc(100vh - 24px);
        min-height: calc(100dvh - 24px);

        padding: 28px 18px 32px;

        border-radius: 23px;
    }

    .fdp-reg__head {
        gap: 12px;

        padding-bottom: 22px;
    }

    .fdp-reg__org {
        font-size: 1rem;
        white-space: nowrap;
    }

    .fdp-reg__logo img {
        max-width: 120px;
        height: 30px;
    }

    .fdp-reg__intro {
        padding: 30px 0 26px;
    }

    .fdp-reg__facts,
    .fdp-reg__details {
        padding: 24px 0;
    }

    body.fdp-reg-page {
        background-attachment: scroll;
    }
}


@media (max-width: 440px) {

    .fdp-reg__card {
        border-radius: 21px;
    }
}
