/* =====================================================
   KREISPARTEITAGE
   FDP ANHALT-BITTERFELD
   MOBILE FIRST
===================================================== */


/* =====================================================
   BASIS
===================================================== */

.party-page {
    --party-section-gap: 76px;

    width: 100%;
    max-width: 100%;

    min-width: 0;

    padding:
        0
        0
        90px;

    overflow-x: clip;

    background: var(--fdp-white);

    color: #171717;

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

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

    line-height: 1.65;
}


/* =====================================================
   BREITE

   Gleiche Inhaltsbreite wie:
   - Beschlüsse
   - Initiativen
   - Aktuelles
   - Personen
===================================================== */

.party-shell {
    box-sizing: border-box;

    width: min(
        920px,
        calc(100% - 64px)
    );

    max-width: 100%;
    min-width: 0;

    margin-inline: auto;
}


/*
 * Lesesystem (.party-page--reading):
 * Hauptseite eines Parteitags und Wahlergebnisse.
 * Gleiche Geometrie wie normale Seiten (page.css).
 *
 * - Titel in der 920-px-Spalte
 * - Text und alle Bereiche in der 840-px-Lesespalte, mittig
 * - bis 1050 px: Titel und Text gemeinsam 860 px
 * - Abstand Titelbalken → Text wie normale Seiten:
 *   62 px, Smartphone 48 px
 * - Abstand zwischen Bereichen wie fdp.de:
 *   clamp(36px, 6vw, 54px)
 * - Fließtext auf allen Breiten wie normale Seiten
 *
 * Antragsbuch und Archiv behalten 920 px.
 */

.party-page.party-page--reading {
    --party-section-gap:
        clamp(
            36px,
            6vw,
            54px
        );
}


.party-page--reading .party-page__header {
    padding-bottom: 0;
}


.party-page--reading .party-page__header + .party-section {
    margin-top: var(--party-section-gap);
}


.party-page--reading .party-page__header + .party-subpage__content {
    padding-top: var(--party-section-gap);
}


.party-page--reading .party-page__intro {
    width: min(
        var(--fdp-body-content-width),
        100%
    );

    max-width: none;

    margin-top: 62px;
    margin-inline: auto;
}


.party-page--reading .party-section__intro,
.party-page--reading .party-copy {
    max-width: none;
}


.party-page--reading .party-page__intro,
.party-page--reading .party-section__intro,
.party-page--reading .party-copy {
    font-size: var(--fdp-body-font-size);
    line-height: var(--fdp-body-line-height);
}


/*
 * Punkte und Pfeile nur, wenn der Slider
 * tatsächlich etwas zu scrollen hat.
 * Sonst entsteht unter den Karten eine leere Leiste.
 */

.party-page--reading .party-carousel:not(.is-scrollable) .party-carousel__footer {
    display: none;
}


@media (min-width: 1051px) {

    .party-page--reading .party-section .party-shell,
    .party-page--reading .party-subpage__content .party-shell {
        width: min(
            var(--fdp-body-content-width),
            calc(100% - 64px)
        );
    }

}


@media (max-width: 1050px) {

    .party-page--reading .party-page__intro {
        width: 100%;
    }

}


@media (max-width: 767px) {

    .party-page--reading .party-page__intro {
        margin-top: 48px;
    }

}


/* =====================================================
   HAUPTKOPF

   Gleiches System wie die anderen Seiten.
===================================================== */

.party-page__header {
    padding:
        48px
        0
        28px;
}


/* =====================================================
   ZURÜCK-LINK

   Wird nur noch auf Unterseiten verwendet.
===================================================== */

.party-back {
    display: block;

    margin-bottom: 27px;
}




/* =====================================================
   HAUPTÜBERSCHRIFT
===================================================== */

.party-page__heading {
    width: 100%;

    min-width: 0;
}


.party-page__heading h1 {
    max-width: 100%;

    margin: 0;

    color: var(--fdp-blue);

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size:
        clamp(
            2.15rem,
            10vw,
            3rem
        );

    font-weight: 800;

    letter-spacing: -0.04em;

    line-height: 1;

    white-space: normal;

    overflow-wrap: anywhere;

    word-break: normal;

    hyphens: auto;
}


/* =====================================================
   CYAN-BALKEN HAUPTÜBERSCHRIFT
===================================================== */

.party-title-line {
    display: block;

    width: 105px;
    height: 7px;

    margin-top: 14px;

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


/* =====================================================
   SEITEN-EINLEITUNG
===================================================== */

.party-page__intro {
    width: 100%;
    max-width: var(--fdp-body-content-width);

    margin-top: 25px;

    color: #171717;

    font-family: var(--fdp-font);
    font-size: var(--fdp-body-font-size);
    font-weight: var(--fdp-body-weight);
    line-height: var(--fdp-body-line-height);
    letter-spacing: var(--fdp-body-letter-spacing);

    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: normal;
    overflow-wrap: normal;
}


.party-page__intro p {
    margin:
        0
        0
        20px;

    color: inherit;

    font-family: inherit;

    font-size: inherit;
    font-weight: inherit;

    line-height: inherit;
}


.party-page__intro p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   STATUS
===================================================== */

.party-status {
    display: none !important;
}


.motion-status,
.election-state {
    display: inline-flex;

    width: fit-content;

    align-items: center;
    justify-content: center;

    padding:
        6px
        11px;

    border-radius: 999px;

    background: #eef2f5;

    color: var(--fdp-blue);

    font-size: 0.72rem;
    font-weight: 700;

    line-height: 1.2;
}


.motion-status--adopted,
.election-state--completed {
    background: var(--fdp-yellow);
}


/* =====================================================
   ALTER BASISDATEN-BLOCK

   Wird nicht mehr ausgegeben.
===================================================== */

.party-summary {
    display: none;
}


/* =====================================================
   HAUPTBEREICHE
===================================================== */

.party-section {
    margin-top:
        var(--party-section-gap);
}


/*
 * Da der große Datenblock weggefallen ist,
 * beginnt der erste Inhaltsbereich etwas näher
 * unter dem Seitenkopf.
 */

.party-page__header + .party-section {
    margin-top: 42px;
}


/* =====================================================
   BEREICHSÜBERSCHRIFT
===================================================== */

.party-section__heading {
    display: block;

    width: 100%;

    margin:
        0
        0
        25px;
}


.party-section__heading h2 {
    position: relative;

    display: inline-block;

    max-width: 100%;

    margin: 0;

    padding-bottom: 13px;

    color: var(--fdp-blue);

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size:
        clamp(
            1.9rem,
            3vw,
            2.55rem
        );

    font-weight: 800;

    letter-spacing: -0.035em;

    line-height: 1.05;

    overflow-wrap: anywhere;
}


.party-section__heading h2::after {
    position: absolute;

    bottom: 0;
    left: 0;

    width: 78px;
    height: 5px;

    background: var(--fdp-cyan);

    content: "";
}


/* =====================================================
   OPTIONALER TEXT
===================================================== */

.party-section__intro {
    width: 100%;
    max-width: var(--fdp-body-content-width);

    margin:
        -3px
        0
        27px;

    color: #171717;

    font-family: var(--fdp-font);
    font-size: var(--fdp-body-font-size);
    font-weight: var(--fdp-body-weight);
    line-height: var(--fdp-body-line-height);
    letter-spacing: var(--fdp-body-letter-spacing);

    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: normal;
    overflow-wrap: normal;
}


.party-section__intro p {
    margin:
        0
        0
        18px;

    color: inherit;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}


.party-section__intro p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   NORMALER FLIESSTEXT
===================================================== */

.party-copy {
    width: 100%;
    max-width: var(--fdp-body-content-width);

    color: #171717;

    font-family: var(--fdp-font);
    font-size: var(--fdp-body-font-size);
    font-weight: var(--fdp-body-weight);
    line-height: var(--fdp-body-line-height);
    letter-spacing: var(--fdp-body-letter-spacing);

    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: normal;
    overflow-wrap: normal;
}


.party-copy p {
    margin:
        0
        0
        22px;

    color: #171717;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}


.party-copy p:last-child {
    margin-bottom: 0;
}


.party-copy strong,
.party-copy b {
    font-weight: 700;
}


/* =====================================================
   ZWISCHENÜBERSCHRIFTEN IM FLIESSTEXT
===================================================== */

.party-copy h2 {
    margin:
        40px
        0
        18px;

    color: var(--fdp-blue);

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 1.75rem;
    font-weight: 800;

    letter-spacing: -0.025em;

    line-height: 1.15;
}


.party-copy h2:first-child {
    margin-top: 0;
}


.party-copy h3 {
    margin:
        32px
        0
        15px;

    color: var(--fdp-blue);

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 1.4rem;
    font-weight: 800;

    letter-spacing: -0.02em;

    line-height: 1.2;
}


/* =====================================================
   LISTEN
===================================================== */

.party-copy ul,
.party-copy ol {
    margin:
        0
        0
        22px;

    padding-left: 1.5em;

    color: #171717;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}


.party-copy li {
    margin-bottom: 7px;

    color: #171717;

    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}


.party-copy li:last-child {
    margin-bottom: 0;
}


/* =====================================================
   LINKS IM FLIESSTEXT
===================================================== */

.party-copy a,
.party-section__intro a,
.party-page__intro 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);
}


.party-copy a:hover,
.party-section__intro a:hover,
.party-page__intro a:hover {
    color: var(--fdp-cyan);
}


/* =====================================================
   CAROUSEL
===================================================== */

.party-carousel {
    width: 100%;
    max-width: 100%;

    min-width: 0;
}


.party-carousel__track {
    display: grid;

    grid-auto-flow: column;

    width: 100%;
    max-width: 100%;

    min-width: 0;

    gap: 18px;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
        3px
        0
        9px;

    scroll-behavior: smooth;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}


.party-carousel__track::-webkit-scrollbar {
    display: none;
}


.party-carousel__track--four {
    grid-auto-columns:
        calc(
            (
                100%
                - 54px
            )
            / 4
        );
}


.party-carousel__track--three {
    grid-auto-columns:
        calc(
            (
                100%
                - 36px
            )
            / 3
        );
}


.party-carousel__track > * {
    min-width: 0;

    scroll-snap-align: start;
    scroll-snap-stop: always;
}


/* =====================================================
   CAROUSEL FOOTER
===================================================== */

.party-carousel__footer {
    display: flex;

    min-height: 48px;

    align-items: center;
    justify-content: flex-end;

    margin-top: 9px;
}


/* =====================================================
   PFEILE
===================================================== */

.party-carousel__arrows {
    display: flex;

    gap: 8px;
}


.party-carousel__arrows button {
    display: inline-flex;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1.5px solid
        rgba(
            3,
            45,
            103,
            0.20
        );

    border-radius: 50%;

    background: var(--fdp-white);

    color: var(--fdp-cyan);

    cursor: pointer;

    font-family: inherit;

    font-size: 1.25rem;
    font-weight: 500;
}


.party-carousel__arrows button:hover {
    border-color: var(--fdp-cyan);
}


.party-carousel__arrows button:disabled {
    opacity: 0.3;

    cursor: default;
}


/* Pfeil wie bei Kacheln und Terminkarten */

.party-carousel__arrows svg {
    display: block;

    width: 22px;
    height: 22px;

    fill: none;
    stroke: var(--fdp-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}


.party-carousel:not(.is-scrollable)
.party-carousel__arrows {
    visibility: hidden;
}


/* =====================================================
   FORTSCHRITTS-STRICH (HANDY)
   Wie bei den Kacheln, siehe .fdp-slider-progress.
===================================================== */

.party-carousel__dots {
    display: none;

    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 7px;
}


/* =====================================================
   BERICHTSKARTEN
===================================================== */

.party-report-card {
    overflow: hidden;

    aspect-ratio: 3 / 4;

    border-radius: 18px;

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


.party-report-card > a {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;

    color: inherit;

    text-decoration: none;
}


.party-report-card__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform
        0.35s
        ease;
}


.party-report-card:hover
.party-report-card__image {
    transform: scale(1.035);
}


.party-report-card__placeholder {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    background: var(--fdp-yellow);

    color: var(--fdp-blue);

    font-size: 2.3rem;
    font-weight: 800;
}


/* =====================================================
   VERLAUF BILDKARTEN
===================================================== */

.party-visual-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(
                0,
                0,
                0,
                0.80
            )
            0%,
            rgba(
                0,
                0,
                0,
                0.46
            )
            30%,
            rgba(
                0,
                0,
                0,
                0.08
            )
            62%,
            transparent
            78%
        );

    pointer-events: none;
}


/* =====================================================
   BERICHTSTITEL
===================================================== */

.party-report-card__title {
    position: absolute;

    z-index: 2;

    right: 16px;
    bottom: 17px;
    left: 16px;

    color: var(--fdp-yellow);

    font-size:
        clamp(
            0.95rem,
            1.4vw,
            1.17rem
        );

    font-weight: 800;

    letter-spacing: -0.025em;

    line-height: 1.08;

    text-shadow:
        0 2px 9px
        rgba(
            0,
            0,
            0,
            0.95
        );
}


/* =====================================================
   PERSONEN
===================================================== */

.party-person-card {
    overflow: hidden;

    aspect-ratio: 3 / 4;

    border-radius: 18px;

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


.party-person-card > a {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;

    text-decoration: none;
}


.party-person-card__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    transition:
        transform
        0.35s
        ease;
}


.party-person-card:hover
.party-person-card__image {
    transform: scale(1.035);
}


.party-person-card__placeholder {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    background: var(--fdp-yellow);

    color: var(--fdp-blue);

    font-size: 2.3rem;
    font-weight: 800;
}


.party-person-card__name {
    position: absolute;

    z-index: 2;

    right: 16px;
    bottom: 17px;
    left: 16px;

    color: var(--fdp-yellow);

    font-size:
        clamp(
            1rem,
            1.5vw,
            1.25rem
        );

    font-weight: 800;

    letter-spacing: -0.03em;

    line-height: 1.05;

    text-shadow:
        0 2px 9px
        rgba(
            0,
            0,
            0,
            0.95
        );
}


/* =====================================================
   INFO-KARTEN

   Dezenterer Schatten + sichtbarer Rand.
===================================================== */

.party-quick-card {
    display: flex;

    min-height: 270px;

    min-width: 0;

    flex-direction: column;

    align-items: flex-start;
    justify-content: space-between;

    padding:
        25px
        22px
        22px;

    overflow: hidden;

    border:
        1px solid
        rgba(
            3,
            45,
            103,
            0.08
        );

    border-radius: 18px;

    background: var(--fdp-white);

    box-shadow:
        0 4px 16px
        rgba(
            3,
            45,
            103,
            0.07
        );

    color: var(--fdp-blue);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.party-quick-card:hover {
    border-color:
        rgba(
            3,
            45,
            103,
            0.14
        );

    transform: translateY(-2px);

    box-shadow:
        0 9px 24px
        rgba(
            3,
            45,
            103,
            0.10
        );
}


.party-quick-card__icon {
    display: flex;

    width: 100%;

    flex: 1;

    align-items: center;
    justify-content: center;

    padding:
        10px
        8px
        22px;
}


.party-quick-card__icon img {
    display: block;

    width:
        min(
            110px,
            65%
        );

    max-height: 120px;

    object-fit: contain;
}


.party-quick-card__title {
    color: var(--fdp-blue);

    font-size: 1.15rem;
    font-weight: 800;

    letter-spacing: -0.025em;

    line-height: 1.12;
}


/* =====================================================
   DOKUMENTE
===================================================== */

/*
 * Nachbau von fdp.de (.type-download):
 * - Text = normaler Fließtext, in FDP-Blau
 * - Icon 37 px, 15 px Abstand zum Text
 * - 12 px zwischen den Einträgen
 * - Hover / Fokus: unterstrichen
 */

.party-documents {
    margin: 0;
    padding: 0;

    list-style: none;
}


.party-documents__item {
    margin:
        0
        0
        12px;
}


.party-documents__item:last-child {
    margin-bottom: 0;
}


.party-documents__link {
    display: inline-flex;

    max-width: 100%;

    align-items: center;

    gap: 15px;

    color: var(--fdp-blue);

    font-family: var(--fdp-font);
    font-size: var(--fdp-body-font-size);
    font-weight: var(--fdp-body-weight);
    line-height: var(--fdp-body-line-height);
    letter-spacing: var(--fdp-body-letter-spacing);

    text-decoration: none;

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


.party-documents__link:hover .party-documents__title,
.party-documents__link:focus-visible .party-documents__title {
    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);
}


.party-documents__icon {
    display: block;

    flex: 0 0 37px;

    width: 37px;
    height: 37px;
}


.party-documents__icon svg {
    display: block;

    width: 100%;
    height: 100%;
}


/* Nur für Screenreader */

.party-documents__sr {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;

    clip: rect(0 0 0 0);

    white-space: nowrap;

    border: 0;
}


/* =====================================================
   UNTERSEITEN
===================================================== */

.party-subpage,
.party-subpage__content {
    width: 100%;
    max-width: 100%;

    min-width: 0;
}


.party-subpage__content {
    padding:
        18px
        0
        20px;
}


.party-inner-section {
    margin-top: 68px;
}


/* =====================================================
   ORGANISATORISCHES
===================================================== */

.party-info-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 14px;
}


.party-info-box {
    display: flex;

    min-height: 145px;

    min-width: 0;

    flex-direction: column;

    gap: 6px;

    padding: 20px;

    border-radius: 16px;

    background: #f5f7f9;
}


.party-info-box > span {
    color: #747d86;

    font-size: 0.72rem;
    font-weight: 700;

    text-transform: uppercase;
}


.party-info-box strong {
    color: var(--fdp-blue);

    font-size: 1rem;
    font-weight: 700;
}


.party-info-box p {
    margin:
        5px
        0
        0;

    color: #5f6973;

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

    line-height: 1.5;
}


.party-action-row {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 22px;
}


/* =====================================================
   BUTTONS
===================================================== */

.party-button {
    display: inline-flex;

    min-height: 44px;

    align-items: center;
    justify-content: center;

    padding:
        9px
        18px;

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

    border-radius: 9px;

    background: var(--fdp-blue);

    color: var(--fdp-white);

    cursor: pointer;

    font-family:
        "Public Sans",
        Arial,
        sans-serif;

    font-size: 0.86rem;
    font-weight: 700;

    text-decoration: none;
}


.party-button:hover {
    border-color: var(--fdp-cyan);

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


.party-button--yellow {
    border-color: var(--fdp-yellow);

    background: var(--fdp-yellow);

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


.party-button--outline {
    background: transparent;

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


/* =====================================================
   ANTRAGSBUCH

   Suche, Filter und Trefferzahl kommen aus
   resolutions.css (gleich wie bei den Beschlüssen).
   Die Karte verhält sich wie eine Beschluss-Karte,
   behält aber den gelben Nummernstreifen.
===================================================== */

.motion-list {
    display: grid;
    gap: 17px;
}

.motion-card {
    position: relative;

    display: grid;
    grid-template-columns:
        76px
        minmax(0, 1fr);

    min-width: 0;
    overflow: hidden;

    border:
        1px solid
        rgba(3, 45, 103, 0.09);
    border-radius: 18px;

    background: var(--fdp-white);

    box-shadow:
        0 7px 24px
        rgba(3, 45, 103, 0.07);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.motion-card:hover {
    border-color: rgba(3, 45, 103, 0.16);

    transform: translateY(-3px);

    box-shadow:
        0 14px 34px
        rgba(3, 45, 103, 0.11);
}

.motion-card__main-link {
    position: absolute;
    z-index: 1;
    inset: 0;
}

.motion-card__main-link:focus-visible {
    border-radius: inherit;
    outline: 3px solid var(--fdp-cyan);
    outline-offset: -3px;
}

.motion-card__number {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 26px 8px;

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

    font-size: 1rem;
    font-weight: 800;
}

.motion-card__content {
    position: relative;
    z-index: 2;

    min-width: 0;
    padding: 23px 20px 24px;

    pointer-events: none;
}

.motion-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;

    margin-bottom: 13px;

    color: #555;
    font-size: 0.78rem;
    font-weight: 500;
}

.motion-card h2 {
    margin: 0 0 11px;

    color: var(--fdp-blue);

    font-family: "Public Sans", Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.13;

    transition: color var(--transition);
}

.motion-card:hover h2 {
    color: var(--fdp-cyan);
}

.motion-card__submitter {
    margin: 0;

    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}

.motion-card__excerpt {
    margin-top: 12px;

    color: #171717;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
}

.motion-card__excerpt p {
    margin: 0;
}

@media (min-width: 768px) {

    .motion-card {
        border-radius: 22px;
    }

    .motion-card__content {
        padding: 28px 30px;
    }

    .motion-card h2 {
        font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    }
}

@media (min-width: 1050px) {

    .motion-list {
        gap: 20px;
    }

    .motion-card__content {
        padding: 30px 34px;
    }
}


/* =====================================================
   WAHLEN

   Aufbau wie die übrigen Bereiche der Seite:
   Überschrift mit Cyan-Balken, Fließtext,
   darunter Ergebnisse mit schmalen Balken
   und eine ruhige Zahlenzeile.
===================================================== */

.election-list {
    display: grid;

    gap: var(--party-section-gap);
}


.election__eyebrow {
    margin:
        0
        0
        10px;

    color: var(--fdp-grey);

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.06em;

    line-height: 1.3;

    text-transform: uppercase;
}


/* Kandidierende */

.election-results {
    display: grid;

    gap: 22px;

    margin:
        28px
        0
        0;

    padding: 0;

    list-style: none;
}


.election-result__row {
    display: flex;

    align-items: baseline;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 10px;
}


.election-result__name {
    display: inline-flex;

    flex-wrap: wrap;

    align-items: center;

    gap:
        6px
        12px;

    color: var(--fdp-blue);

    font-size: var(--fdp-body-font-size);
    font-weight: 700;

    line-height: 1.3;
}


.election-result__badge {
    display: inline-flex;

    align-items: center;

    padding:
        4px
        11px;

    border-radius: 999px;

    background: #eef2f5;

    color: var(--fdp-blue);

    font-size: 0.72rem;
    font-weight: 700;

    line-height: 1.2;
}


.election-result--elected .election-result__badge {
    background: var(--fdp-yellow);
}


.election-result__numbers {
    display: inline-flex;

    flex: 0 0 auto;

    align-items: baseline;

    gap: 10px;

    white-space: nowrap;
}


.election-result__numbers strong {
    color: var(--fdp-blue);

    font-size: 1.15rem;
    font-weight: 800;

    letter-spacing: -0.01em;
}


.election-result__numbers span {
    color: var(--fdp-grey);

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


.election-result__bar {
    display: block;

    height: 10px;

    overflow: hidden;

    border-radius: 999px;

    background: #eef2f5;
}


.election-result__bar span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        rgba(
            3,
            45,
            103,
            0.35
        );
}


.election-result--elected .election-result__bar span {
    background: var(--fdp-yellow);
}


/* Zahlenzeile */

.election-facts {
    display: flex;

    flex-wrap: wrap;

    gap:
        16px
        40px;

    margin:
        32px
        0
        0;

    padding-top: 22px;

    border-top:
        1px solid
        var(--fdp-border);
}


.election-facts div {
    display: flex;

    flex-direction: column-reverse;

    gap: 2px;
}


.election-facts dt {
    color: var(--fdp-grey);

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

    line-height: 1.3;
}


.election-facts dd {
    margin: 0;

    color: var(--fdp-blue);

    font-size: 1.5rem;
    font-weight: 800;

    letter-spacing: -0.02em;

    line-height: 1.1;
}


/* =====================================================
   ARCHIV
===================================================== */

.party-archive__list {
    display: grid;

    gap: 18px;
}


.party-card {
    display: grid;

    grid-template-columns:
        112px
        minmax(
            0,
            1fr
        );

    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(
            3,
            45,
            103,
            0.09
        );

    border-radius: 20px;

    background: var(--fdp-white);

    box-shadow:
        0 8px 27px
        rgba(
            3,
            45,
            103,
            0.06
        );
}


.party-card__date {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding:
        20px
        10px;

    background: var(--fdp-yellow);

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


.party-card__date strong {
    font-size: 2.3rem;
    font-weight: 800;

    line-height: 1;
}


.party-card__date span {
    margin-top: 6px;

    font-size: 0.75rem;
    font-weight: 800;
}


.party-card__content {
    min-width: 0;

    padding:
        24px
        26px;
}


.party-card__content h2 {
    margin:
        12px
        0
        10px;

    color: var(--fdp-blue);

    font-size: 1.45rem;
    font-weight: 800;
}


.party-card__content h2 a {
    color: inherit;

    text-decoration: none;
}


.party-card__meta {
    display: flex;

    flex-wrap: wrap;

    gap:
        6px
        16px;

    margin-bottom: 14px;

    color: #64707a;

    font-size: 0.84rem;
    font-weight: 500;
}


.party-card__excerpt {
    margin-bottom: 18px;

    color: #171717;

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

    line-height: 1.6;
}


.party-card__excerpt p {
    margin: 0;
}


/* =====================================================
   LEER
===================================================== */

.party-empty {
    padding:
        23px
        25px;

    border-radius: 16px;

    background: #f6f8fa;
}


.party-empty p {
    margin: 0;

    color: #5f6973;

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

    line-height: 1.6;
}


/* =====================================================
   TABLET AB 768 PX
===================================================== */

@media (min-width: 768px) {

    /* =================================================
       HAUPTKOPF
    ================================================= */

    .party-page__header {
        padding:
            68px
            0
            36px;
    }


    .party-page__heading h1 {
        font-size:
            clamp(
                2.5rem,
                4vw,
                3.8rem
            );
    }


    .party-title-line {
        width: 140px;
        height: 8px;

        margin-top: 16px;
    }


}


/* =====================================================
   TABLET BIS 1050 PX
===================================================== */

@media (max-width: 1050px) {

    .party-shell {
        width:
            min(
                860px,
                calc(
                    100%
                    - 64px
                )
            );
    }


    .party-carousel__track--four {
        grid-auto-columns:
            calc(
                (
                    100%
                    - 18px
                )
                / 2
            );
    }


    .party-carousel__track--three {
        grid-auto-columns:
            calc(
                (
                    100%
                    - 18px
                )
                / 2
            );
    }



    .party-info-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

}


/* =====================================================
   DESKTOP AB 1050 PX
===================================================== */

@media (min-width: 1050px) {

    .party-page__header {
        padding-top: 76px;
    }

}


/* =====================================================
   SMARTPHONE
===================================================== */

@media (max-width: 767px) {

    .party-page {
        --party-section-gap: 56px;

        padding-bottom: 64px;
    }


    .party-shell {
        width:
            calc(
                100%
                - 32px
            );

        max-width: 100%;

        min-width: 0;
    }


    /* =================================================
       HAUPTKOPF
    ================================================= */

    .party-page__header {
        padding:
            48px
            0
            28px;
    }


    /*
     * Auf Unterseiten sitzt der Zurück-Link
     * noch oberhalb der Überschrift.
     */

    .party-subpage
    .party-back {
        margin-bottom: 22px;
    }


    /* =================================================
       HAUPTÜBERSCHRIFT
    ================================================= */

    .party-page__heading h1 {
        font-size:
            clamp(
                2.15rem,
                10vw,
                3rem
            );
    }


    .party-title-line {
        width: 105px;
        height: 7px;

        margin-top: 14px;
    }


    /*
     * Erster Bereich nach dem Hauptkopf.
     */

    .party-page__header + .party-section {
        margin-top: 34px;
    }


    /* =================================================
       SECTION HEADING
    ================================================= */

    .party-section__heading {
        margin-bottom: 22px;
    }


    .party-section__heading h2 {
        padding-bottom: 12px;

        font-size:
            clamp(
                1.8rem,
                9vw,
                2.35rem
            );
    }


    .party-section__heading h2::after {
        width: 72px;
        height: 5px;
    }


    .party-section__intro {
        margin-bottom: 23px;
    }


    /* =================================================
       FLIESSTEXT
    ================================================= */

    .party-copy,
    .party-section__intro,
    .party-page__intro {
        font-size: 1rem;

        line-height: 1.68;
    }


    /* =================================================
       MOBILE SLIDER
    ================================================= */

    .party-carousel__track {
        --party-carousel-side:
            42px;

        box-sizing: border-box;

        width:
            calc(
                100%
                +
                (
                    var(--party-carousel-side)
                    * 2
                )
            );

        max-width: none;

        margin:
            -22px
            calc(
                var(--party-carousel-side)
                * -1
            )
            -28px;

        padding:
            22px
            var(--party-carousel-side)
            38px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-padding-left:
            var(--party-carousel-side);
    }


    .party-carousel__track--four,
    .party-carousel__track--three {
        grid-auto-columns: 100%;
    }


    .party-carousel__arrows {
        display: none;
    }


    .party-carousel__footer {
        min-height: 32px;

        justify-content: center;

        margin-top: 4px;
    }


    .party-carousel__dots {
        display: flex;
    }


    .party-carousel:not(.is-scrollable)
    .party-carousel__dots {
        visibility: hidden;
    }


    /* =================================================
       BERICHTE
    ================================================= */

    .party-report-card {
        aspect-ratio: 4 / 5;

        border-radius: 17px;

        box-shadow:
            0
            12px
            36px
            rgba(
                3,
                45,
                103,
                0.11
            );
    }


    .party-report-card__title {
        right: 18px;
        bottom: 19px;
        left: 18px;

        font-size: 1.25rem;
    }


    /* =================================================
       PERSONEN
    ================================================= */

    .party-person-card {
        aspect-ratio: 4 / 5;

        border-radius: 17px;

        box-shadow:
            0
            12px
            36px
            rgba(
                3,
                45,
                103,
                0.11
            );
    }


    .party-person-card__name {
        right: 18px;
        bottom: 19px;
        left: 18px;

        font-size: 1.35rem;
    }


    /* =================================================
       INFO-KARTEN
    ================================================= */

    .party-quick-card {
        min-height: 255px;

        border-radius: 17px;

        box-shadow:
            0
            12px
            36px
            rgba(
                3,
                45,
                103,
                0.11
            );
    }


    .party-quick-card__title {
        font-size: 1.2rem;
    }


    /* =================================================
       ORGANISATORISCHES
    ================================================= */

    .party-info-grid {
        grid-template-columns: 1fr;
    }


    /* =================================================
       ANTRÄGE
    ================================================= */

    .motion-card {
        grid-template-columns: 1fr;
    }


    .motion-card__number {
        justify-content: flex-start;

        padding:
            10px
            20px;
    }


    /* =================================================
       WAHLEN
    ================================================= */

    /*
     * Zahlen immer in eigener Zeile,
     * damit alle Einträge gleich aussehen.
     */

    .election-result__row {
        flex-direction: column;

        align-items: flex-start;

        gap: 6px;
    }


    .election-facts {
        gap:
            16px
            28px;
    }


    /* =================================================
       ARCHIV
    ================================================= */

    .party-card {
        grid-template-columns: 1fr;
    }


    .party-card__date {
        flex-direction: row;

        justify-content: flex-start;

        gap: 8px;

        padding:
            12px
            18px;
    }


    .party-card__date strong {
        font-size: 1.6rem;
    }


    .party-card__date span {
        margin: 0;
    }

}


/* =====================================================
   KLEINE SMARTPHONES
===================================================== */

@media (max-width: 440px) {

    .party-shell {
        width:
            calc(
                100%
                - 28px
            );
    }


    .party-carousel__track {
        --party-carousel-side:
            40px;
    }

}

@media (min-width: 901px) {
    .party-quicklinks {
        overflow: visible;
        padding-top: 8px;
        padding-bottom: 18px;
    }

    .party-quick-card {
        box-shadow: 0 8px 24px rgba(3, 45, 103, 0.10);
    }

    .party-quick-card:hover {
        box-shadow: 0 12px 30px rgba(3, 45, 103, 0.14);
    }
}

