.qp-queertreff-event,
.qp-queertreff-series-intro,
.qp-queertreff-page,
.qp-queertreff-series-page,
.qp-queertreff-category-page {
    --qp-qt-blue: #302e72;
    --qp-qt-pink: #fe9fc6;
    --qp-qt-pink-soft: #fff2f7;
    --qp-qt-pink-light: #ffb4d3;
    --qp-qt-white: #ffffff;
    --qp-qt-shadow: 0 16px 42px rgba(48, 46, 114, .13);
    color: var(--qp-qt-blue);
    font-family: "Safiro", Arial, sans-serif;
}

.qp-queertreff-event *,
.qp-queertreff-event *::before,
.qp-queertreff-event *::after,
.qp-queertreff-series-intro *,
.qp-queertreff-series-intro *::before,
.qp-queertreff-series-intro *::after {
    box-sizing: border-box;
}

.qp-queertreff-event > * + * {
    margin-top: 24px;
}

.qp-queertreff-event__hero,
.qp-queertreff-series-intro__hero {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
    border-radius: 30px;
    background: var(--qp-qt-blue);
    color: var(--qp-qt-white);
    box-shadow: var(--qp-qt-shadow);
}

.qp-queertreff-event__hero::after,
.qp-queertreff-series-intro__hero::after {
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border: 44px solid rgba(254, 159, 198, .16);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.qp-queertreff-event__eyebrow,
.qp-queertreff-series-intro__eyebrow {
    margin: 0 0 11px !important;
    color: var(--qp-qt-pink) !important;
    -webkit-text-fill-color: var(--qp-qt-pink) !important;
    font-size: .78rem !important;
    font-weight: 750 !important;
    letter-spacing: .12em;
    line-height: 1.35 !important;
    text-transform: uppercase;
}

.qp-queertreff-event h2,
.qp-queertreff-event h3,
.qp-queertreff-event h4,
.qp-queertreff-series-intro h2,
.qp-queertreff-series-intro h3 {
    font-family: "Safiro", Arial, sans-serif !important;
    letter-spacing: -.025em;
}

.qp-queertreff-event__hero h2,
.qp-queertreff-series-intro__hero h2 {
    position: relative;
    z-index: 1;
    max-width: 950px;
    margin: 0 0 18px !important;
    color: var(--qp-qt-pink) !important;
    -webkit-text-fill-color: var(--qp-qt-pink) !important;
    font-size: clamp(2.2rem, 5vw, 4.4rem) !important;
    font-weight: 800 !important;
    line-height: .98 !important;
}

.qp-queertreff-event__lead,
.qp-queertreff-series-intro__hero > p:not(.qp-queertreff-series-intro__eyebrow) {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 !important;
    color: var(--qp-qt-white) !important;
    -webkit-text-fill-color: var(--qp-qt-white) !important;
    font-size: clamp(1.04rem, 2vw, 1.3rem) !important;
    line-height: 1.58 !important;
}

.qp-queertreff-event__actions,
.qp-queertreff-series-intro__actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

/* Fallback, falls das zentrale QP-Button-System kurzzeitig deaktiviert ist. */
.qp-queertreff-event a.qp-button--primary,
.qp-queertreff-event a.qp-button--secondary,
.qp-queertreff-series-intro a.qp-button--primary,
.qp-queertreff-series-intro a.qp-button--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    border: 2px solid var(--qp-qt-blue);
    border-radius: 12px;
    font-family: "Safiro", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none !important;
}

.qp-queertreff-event .qp-section--blue a.qp-button--primary,
.qp-queertreff-series-intro .qp-section--blue a.qp-button--primary {
    border-color: var(--qp-qt-pink);
    background: var(--qp-qt-pink);
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
}

.qp-queertreff-event .qp-section--blue a.qp-button--secondary,
.qp-queertreff-series-intro .qp-section--blue a.qp-button--secondary {
    border-color: var(--qp-qt-white);
    background: transparent;
    color: var(--qp-qt-white) !important;
    -webkit-text-fill-color: var(--qp-qt-white) !important;
}

.qp-queertreff-event__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.qp-queertreff-event__fact {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 3px 14px;
    align-items: center;
    min-width: 0;
    min-height: 148px;
    padding: 22px;
    border: 2px solid var(--qp-qt-blue);
    border-radius: 22px;
    background: var(--qp-qt-white);
}

.qp-queertreff-event__fact--pink {
    background: var(--qp-qt-pink);
}

.qp-queertreff-event__fact-icon {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--qp-qt-blue);
    color: var(--qp-qt-white) !important;
    -webkit-text-fill-color: var(--qp-qt-white) !important;
    font-size: 1.5rem;
}

.qp-queertreff-event__fact-label {
    color: var(--qp-qt-blue) !important;
    font-size: .74rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.qp-queertreff-event__fact strong {
    min-width: 0;
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
    font-size: clamp(1rem, 1.7vw, 1.22rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.qp-queertreff-event__welcome {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 6vw, 70px);
    padding: clamp(28px, 5vw, 52px);
    border-radius: 26px;
    background: var(--qp-qt-pink-soft);
}

.qp-queertreff-event__welcome h3,
.qp-queertreff-event__expect h3,
.qp-queertreff-event__signup h3,
.qp-queertreff-event__location h3,
.qp-queertreff-event__next h3 {
    margin: 0 !important;
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
    font-size: clamp(1.7rem, 3vw, 2.55rem) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
}

.qp-queertreff-event__welcome-copy p,
.qp-queertreff-event__signup p,
.qp-queertreff-event__location p {
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
    font-size: 1.04rem !important;
    line-height: 1.62 !important;
}

.qp-queertreff-event__welcome-copy p:first-child {
    margin-top: 0 !important;
}

.qp-queertreff-event__welcome-copy p:last-child,
.qp-queertreff-event__signup p:last-of-type,
.qp-queertreff-event__location p:last-of-type {
    margin-bottom: 0 !important;
}

.qp-queertreff-event__expect {
    padding: clamp(28px, 5vw, 48px);
    border: 2px solid var(--qp-qt-blue);
    border-radius: 26px;
    background: var(--qp-qt-white);
}

.qp-queertreff-event__expect-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.qp-queertreff-event__expect-grid article {
    min-width: 0;
    padding: 23px;
    border-radius: 19px;
    background: var(--qp-qt-pink-soft);
}

.qp-queertreff-event__expect-grid article:nth-child(2) {
    background: var(--qp-qt-pink);
}

.qp-queertreff-event__expect-grid article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--qp-qt-blue);
    color: var(--qp-qt-white) !important;
    -webkit-text-fill-color: var(--qp-qt-white) !important;
    font-size: 1.25rem;
}

.qp-queertreff-event__expect-grid h4 {
    margin: 0 0 8px !important;
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
}

.qp-queertreff-event__expect-grid p {
    margin: 0 !important;
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
    line-height: 1.55 !important;
}

.qp-queertreff-event__first,
.qp-queertreff-event__more {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 26px;
    background: var(--qp-qt-blue);
    color: var(--qp-qt-white);
}

.qp-queertreff-event__first h3,
.qp-queertreff-event__more h3 {
    margin: 0 0 13px !important;
    color: var(--qp-qt-pink) !important;
    -webkit-text-fill-color: var(--qp-qt-pink) !important;
    font-size: clamp(1.7rem, 3vw, 2.55rem) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
}

.qp-queertreff-event__first p:not(.qp-queertreff-event__eyebrow),
.qp-queertreff-event__more p:not(.qp-queertreff-event__eyebrow) {
    max-width: 850px;
    margin-bottom: 0 !important;
    color: var(--qp-qt-white) !important;
    -webkit-text-fill-color: var(--qp-qt-white) !important;
    font-size: 1.04rem !important;
    line-height: 1.62 !important;
}

.qp-queertreff-event__signup {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 24px;
    padding: clamp(28px, 5vw, 48px);
    border: 3px solid var(--qp-qt-blue);
    border-radius: 26px;
    background: var(--qp-qt-pink);
}

.qp-queertreff-event__signup-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--qp-qt-blue);
    color: var(--qp-qt-white) !important;
    -webkit-text-fill-color: var(--qp-qt-white) !important;
    font-size: 2rem;
    font-weight: 800;
}

.qp-queertreff-event__location {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
    gap: clamp(28px, 5vw, 55px);
    align-items: center;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 26px;
    background: var(--qp-qt-pink-soft);
}

.qp-queertreff-event__location-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 24px;
    border-radius: 50%;
    background: var(--qp-qt-blue);
    color: var(--qp-qt-white);
    text-align: center;
}

.qp-queertreff-event__location-mark span {
    color: var(--qp-qt-pink) !important;
    -webkit-text-fill-color: var(--qp-qt-pink) !important;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1;
}

.qp-queertreff-event__location-mark strong {
    margin-top: 10px;
    color: var(--qp-qt-white) !important;
    -webkit-text-fill-color: var(--qp-qt-white) !important;
    font-size: clamp(.75rem, 1.5vw, 1rem);
    letter-spacing: .08em;
    line-height: 1.3;
}

.qp-queertreff-event__next {
    padding: clamp(28px, 5vw, 48px);
    border-radius: 26px;
    background: var(--qp-qt-white);
    box-shadow: var(--qp-qt-shadow);
}

.qp-queertreff-event__section-head {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.qp-queertreff-event__date-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.qp-queertreff-event__date-card,
.qp-queertreff-event__date-card:visited {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 2px solid var(--qp-qt-blue);
    border-radius: 18px;
    background: var(--qp-qt-pink-soft);
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
    text-decoration: none !important;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.qp-queertreff-event__date-card:hover,
.qp-queertreff-event__date-card:focus-visible {
    background: var(--qp-qt-pink);
    box-shadow: 0 10px 24px rgba(48, 46, 114, .14);
    transform: translateY(-3px);
}

.qp-queertreff-event__date-card span {
    color: var(--qp-qt-blue) !important;
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.qp-queertreff-event__date-card strong {
    margin: 7px 0 5px;
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
    font-size: 1.2rem;
    line-height: 1.2;
}

.qp-queertreff-event__date-card small {
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
    font-size: .93rem;
}

.qp-queertreff-event__more .qp-queertreff-event__actions {
    margin-top: 0;
    justify-content: flex-end;
}

/* Serien- und Kategorieübersicht */
.qp-queertreff-series-intro {
    margin: 0 0 36px;
}

.qp-queertreff-series-intro__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 16px;
}

.qp-queertreff-series-intro__facts span {
    display: block;
    min-width: 0;
    padding: 17px 19px;
    border: 2px solid var(--qp-qt-blue);
    border-radius: 16px;
    background: var(--qp-qt-white);
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
    line-height: 1.4;
}

.qp-queertreff-series-intro__facts span:nth-child(2) {
    background: var(--qp-qt-pink);
}

.qp-queertreff-series-intro__heading {
    margin: 42px 0 18px;
}

.qp-queertreff-series-intro__heading h2 {
    margin: 0 !important;
    color: var(--qp-qt-blue) !important;
    -webkit-text-fill-color: var(--qp-qt-blue) !important;
    font-size: clamp(2rem, 4vw, 3.4rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.qp-queertreff-series-page .tribe-events,
.qp-queertreff-category-page .tribe-events {
    font-family: "Safiro", Arial, sans-serif !important;
}

.qp-queertreff-series-page .tribe-events-pro-summary__event-row,
.qp-queertreff-series-page .tribe-events-calendar-list__event-row,
.qp-queertreff-category-page .tribe-events-calendar-list__event-row {
    padding: 18px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: var(--qp-qt-white) !important;
    box-shadow: 0 10px 28px rgba(48, 46, 114, .1) !important;
}

.qp-queertreff-series-page .tribe-events-pro-summary__event-date-tag-datetime,
.qp-queertreff-category-page .tribe-events-calendar-list__event-date-tag-datetime {
    border-radius: 14px !important;
    background: var(--qp-qt-pink) !important;
}

/* Nur QueerTreff-Einzelseiten: Metadaten passend gestalten. */
.qp-queertreff-page .tribe-events-event-meta {
    margin-top: 30px !important;
    padding: clamp(24px, 4vw, 38px) !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: var(--qp-qt-blue) !important;
    color: var(--qp-qt-white) !important;
}

.qp-queertreff-page .tribe-events-event-meta,
.qp-queertreff-page .tribe-events-event-meta * {
    color: var(--qp-qt-white) !important;
    -webkit-text-fill-color: var(--qp-qt-white) !important;
}

.qp-queertreff-page .tribe-events-event-meta a,
.qp-queertreff-page .tribe-events-event-meta a:visited,
.qp-queertreff-page .tribe-events-single-section-title {
    color: var(--qp-qt-pink) !important;
    -webkit-text-fill-color: var(--qp-qt-pink) !important;
}

.qp-queertreff-page .tribe-events-event-meta a:hover,
.qp-queertreff-page .tribe-events-event-meta a:focus-visible {
    color: var(--qp-qt-white) !important;
    -webkit-text-fill-color: var(--qp-qt-white) !important;
}

@media (max-width: 900px) {
    .qp-queertreff-event__facts,
    .qp-queertreff-event__expect-grid,
    .qp-queertreff-event__date-grid,
    .qp-queertreff-series-intro__facts {
        grid-template-columns: 1fr 1fr;
    }

    .qp-queertreff-event__facts > :last-child,
    .qp-queertreff-event__expect-grid > :last-child,
    .qp-queertreff-series-intro__facts > :last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .qp-queertreff-event > * + * {
        margin-top: 18px;
    }

    .qp-queertreff-event__hero,
    .qp-queertreff-series-intro__hero,
    .qp-queertreff-event__welcome,
    .qp-queertreff-event__expect,
    .qp-queertreff-event__first,
    .qp-queertreff-event__signup,
    .qp-queertreff-event__location,
    .qp-queertreff-event__next,
    .qp-queertreff-event__more {
        padding: 21px 18px;
        border-radius: 21px;
    }

    .qp-queertreff-event__hero h2,
    .qp-queertreff-series-intro__hero h2 {
        font-size: clamp(1.9rem, 9vw, 2.65rem) !important;
        line-height: 1.03 !important;
    }

    .qp-queertreff-event__lead,
    .qp-queertreff-series-intro__hero > p:not(.qp-queertreff-series-intro__eyebrow) {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }

    .qp-queertreff-event__actions,
    .qp-queertreff-series-intro__actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 21px;
    }

    .qp-queertreff-event__actions a,
    .qp-queertreff-series-intro__actions a,
    .qp-queertreff-event__first > a {
        width: 100% !important;
        min-height: 44px !important;
        padding: 10px 15px !important;
        font-size: 15px !important;
    }

    .qp-queertreff-event__facts,
    .qp-queertreff-event__expect-grid,
    .qp-queertreff-event__date-grid,
    .qp-queertreff-series-intro__facts {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .qp-queertreff-event__facts > :last-child,
    .qp-queertreff-event__expect-grid > :last-child,
    .qp-queertreff-series-intro__facts > :last-child {
        grid-column: auto;
    }

    .qp-queertreff-event__fact {
        min-height: 0;
        padding: 17px;
        border-radius: 17px;
    }

    .qp-queertreff-event__welcome,
    .qp-queertreff-event__first,
    .qp-queertreff-event__location,
    .qp-queertreff-event__more {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .qp-queertreff-event__signup {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .qp-queertreff-event__signup-badge {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
    }

    .qp-queertreff-event__expect-grid article {
        padding: 19px;
    }

    .qp-queertreff-event__location-mark {
        width: min(240px, 76vw);
        margin: 0 auto;
    }

    .qp-queertreff-event__section-head {
        display: block;
        margin-bottom: 17px;
    }

    .qp-queertreff-event__section-head .qp-button--link {
        display: inline-flex;
        margin-top: 12px;
    }

    .qp-queertreff-event__more .qp-queertreff-event__actions {
        justify-content: stretch;
    }

    .qp-queertreff-page .tribe-events-event-meta,
    .qp-queertreff-page .tribe-events-event-meta.primary,
    .qp-queertreff-page .tribe-events-event-meta.secondary {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 24px 18px !important;
    }

    .qp-queertreff-page .tribe-events-meta-group {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 24px !important;
        padding: 0 !important;
    }

    .qp-queertreff-page .tribe-events-meta-group:last-child {
        margin-bottom: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qp-queertreff-event__date-card {
        transition: none;
    }
}
