/* ==========================================================
   Queer Pfaffenhofen – Kalenderdesign 2.1.10
   Zentrale TEC-Oberflaeche fuer /kalender/, Kategoriearchive,
   Serienarchive und technische Kalenderansichten.
   ========================================================== */

body.qp-calendar-ui {
    --qp-cal-blue:#302e72;
    --qp-cal-pink:#fe9fc6;
    --qp-cal-pink-light:#ffb4d3;
    --qp-cal-pink-soft:#fff2f7;
    --qp-cal-white:#ffffff;
    --qp-cal-radius:12px;
    --qp-cal-card-radius:20px;
    --qp-cal-shadow:0 12px 30px rgba(48,46,114,.12);
}

body.qp-calendar-category #tm-main,
body.qp-calendar-archive #tm-main,
body.qp-calendar-series-page #tm-main {
    background:var(--qp-cal-blue) !important;
}

body.qp-calendar-category .tribe-common,
body.qp-calendar-archive .tribe-common,
body.qp-calendar-series-page .tribe-common,
body.qp-calendar-page .tribe-common {
    font-family:"Safiro",Arial,sans-serif !important;
}

body.qp-calendar-category .tribe-events-l-container,
body.qp-calendar-archive .tribe-events-l-container,
body.qp-calendar-series-page .tribe-events-l-container,
body.qp-calendar-page .tribe-events-l-container {
    padding-top:0 !important;
}

/* Breadcrumbs auf dunklen Kalenderflaechen */
body.qp-calendar-category .tribe-events-c-breadcrumbs,
body.qp-calendar-category .tribe-events-c-breadcrumbs *,
body.qp-calendar-archive .tribe-events-c-breadcrumbs,
body.qp-calendar-archive .tribe-events-c-breadcrumbs * {
    color:var(--qp-cal-white) !important;
    -webkit-text-fill-color:var(--qp-cal-white) !important;
}

body.qp-calendar-category .tribe-events-c-breadcrumbs a,
body.qp-calendar-archive .tribe-events-c-breadcrumbs a {
    text-decoration-color:var(--qp-cal-pink-light) !important;
    text-underline-offset:4px;
}

/* ----------------------------------------------------------
   Suche + Ansichtswahl
   2.1: keine grosse weisse Sammelbox mehr. Suche und Ansicht sind
   zwei klar getrennte Werkzeuggruppen auf der blauen Kalenderflaeche.
   ---------------------------------------------------------- */
@media (min-width:768px) {
    body.qp-calendar-ui .tribe-events-header__events-bar,
    body.qp-calendar-ui .tribe-events-c-events-bar {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) auto !important;
        align-items:center !important;
        gap:22px !important;
        min-height:0 !important;
        margin:0 0 28px !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        overflow:visible !important;
    }

    body.qp-calendar-ui .tribe-events-c-events-bar__search-container,
    body.qp-calendar-ui .tribe-events-c-events-bar__search {
        display:flex !important;
        align-items:center !important;
        width:100% !important;
        min-width:0 !important;
        min-height:60px !important;
        margin:0 !important;
        padding:6px !important;
        border:0 !important;
        border-radius:var(--qp-cal-radius) !important;
        background:var(--qp-cal-white) !important;
        box-shadow:none !important;
        box-sizing:border-box !important;
    }

    body.qp-calendar-ui .tribe-events-c-search {
        display:flex !important;
        align-items:center !important;
        gap:8px !important;
        width:100% !important;
        min-width:0 !important;
        min-height:48px !important;
        margin:0 !important;
    }

    body.qp-calendar-ui .tribe-events-c-search__input-group {
        flex:1 1 auto !important;
        min-width:0 !important;
    }

    body.qp-calendar-ui .tribe-events-c-search__input-control {
        display:flex !important;
        align-items:center !important;
        width:100% !important;
        min-width:0 !important;
        height:48px !important;
        margin:0 !important;
        padding:0 14px !important;
        border:0 !important;
        border-radius:8px !important;
        background:transparent !important;
        box-shadow:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-search__input-control input {
        width:100% !important;
        min-width:0 !important;
        border:0 !important;
        background:transparent !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        font-family:"Safiro",Arial,sans-serif !important;
        box-shadow:none !important;
        outline:0 !important;
    }

    body.qp-calendar-ui .tribe-events-c-search__input-control:focus-within {
        box-shadow:inset 0 0 0 2px var(--qp-cal-pink) !important;
    }

    body.qp-calendar-ui .tribe-events-c-search__button {
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        flex:0 0 auto !important;
        min-width:210px !important;
        height:48px !important;
        min-height:48px !important;
        margin:0 !important;
        padding:0 18px !important;
        border:2px solid var(--qp-cal-pink) !important;
        border-radius:var(--qp-cal-radius) !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        font-family:"Safiro",Arial,sans-serif !important;
        font-weight:700 !important;
        line-height:1.15 !important;
        box-sizing:border-box !important;
        outline:none !important;
        box-shadow:none !important;
        transform:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-search__button:hover {
        border-color:var(--qp-cal-white) !important;
        background:var(--qp-cal-white) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        outline:none !important;
        box-shadow:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-search__button:focus-visible {
        border-color:transparent !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        outline:3px solid var(--qp-cal-white) !important;
        outline-offset:3px !important;
        box-shadow:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-events-bar__views,
    body.qp-calendar-ui .tribe-events-c-view-selector,
    body.qp-calendar-ui .tribe-events-c-view-selector__content {
        position:static !important;
        display:flex !important;
        align-items:center !important;
        width:auto !important;
        height:auto !important;
        min-height:48px !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        overflow:visible !important;
        clip-path:none !important;
        transform:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-view-selector__list {
        display:flex !important;
        align-items:center !important;
        gap:8px !important;
        width:auto !important;
        min-height:48px !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
    }

    body.qp-calendar-ui .tribe-events-c-view-selector__list-item {
        display:flex !important;
        align-items:center !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        overflow:visible !important;
        transform:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-view-selector__list-item::before,
    body.qp-calendar-ui .tribe-events-c-view-selector__list-item::after,
    body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link::before,
    body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link::after {
        content:none !important;
        display:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link {
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        min-width:78px !important;
        min-height:48px !important;
        height:48px !important;
        margin:0 !important;
        padding:0 16px !important;
        border:2px solid rgba(255,255,255,.72) !important;
        border-radius:var(--qp-cal-radius) !important;
        background:transparent !important;
        color:var(--qp-cal-white) !important;
        -webkit-text-fill-color:var(--qp-cal-white) !important;
        font-family:"Safiro",Arial,sans-serif !important;
        font-weight:650 !important;
        line-height:1 !important;
        text-align:center !important;
        box-sizing:border-box !important;
        box-shadow:none !important;
        overflow:visible !important;
        transform:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link:hover {
        border-color:var(--qp-cal-white) !important;
        background:var(--qp-cal-white) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        outline:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link:focus-visible {
        border-color:transparent !important;
        background:var(--qp-cal-blue) !important;
        color:var(--qp-cal-white) !important;
        -webkit-text-fill-color:var(--qp-cal-white) !important;
        outline:3px solid var(--qp-cal-white) !important;
        outline-offset:3px !important;
        box-shadow:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link:focus-visible {
        border-color:transparent !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
    }

    body.qp-calendar-ui .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link {
        border-color:var(--qp-cal-pink) !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        font-weight:750 !important;
    }

    body.qp-calendar-ui .tribe-events-c-view-selector__list-item-text {
        margin:0 !important;
        padding:0 !important;
        color:inherit !important;
        -webkit-text-fill-color:inherit !important;
        line-height:1 !important;
    }

    body.qp-calendar-ui .tribe-events-c-view-selector__list-item-icon,
    body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link > svg,
    body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link > [class*="icon"] {
        display:none !important;
    }
}

@media (min-width:768px) and (max-width:1024px) {
    body.qp-calendar-ui .tribe-events-header__events-bar,
    body.qp-calendar-ui .tribe-events-c-events-bar {
        grid-template-columns:minmax(0,1fr) !important;
        gap:14px !important;
    }

    body.qp-calendar-ui .tribe-events-c-events-bar__views {
        justify-content:flex-start !important;
    }

    body.qp-calendar-ui .tribe-events-c-search__button {
        min-width:180px !important;
    }
}

/* Mobile: native TEC-Oeffnungslogik bleibt bestehen, die beiden Einstiege
   stehen jedoch ohne zusaetzliche Sammelbox direkt auf der Kalenderflaeche. */
@media (max-width:767px) {
    body.qp-calendar-ui .tribe-events-header__events-bar,
    body.qp-calendar-ui .tribe-events-c-events-bar {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
        align-items:center !important;
        gap:10px !important;
        width:100% !important;
        margin:0 0 24px !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        overflow:visible !important;
    }

    body.qp-calendar-ui .tribe-events-c-events-bar__search-button,
    body.qp-calendar-ui .tribe-events-c-view-selector__button {
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:8px !important;
        width:100% !important;
        min-width:0 !important;
        min-height:48px !important;
        margin:0 !important;
        padding:10px 12px !important;
        border:2px solid var(--qp-cal-white) !important;
        border-radius:var(--qp-cal-radius) !important;
        background:transparent !important;
        color:var(--qp-cal-white) !important;
        -webkit-text-fill-color:var(--qp-cal-white) !important;
        font-family:"Safiro",Arial,sans-serif !important;
        font-weight:700 !important;
        box-shadow:none !important;
    }

    body.qp-calendar-ui .tribe-events-c-events-bar__search-button {
        border-color:var(--qp-cal-pink) !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
    }

    body.qp-calendar-ui .tribe-events-c-events-bar__search-button-text,
    body.qp-calendar-ui .tribe-events-c-view-selector__button-text {
        position:static !important;
        width:auto !important;
        height:auto !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
        clip:auto !important;
        clip-path:none !important;
        white-space:normal !important;
        font-size:15px !important;
        line-height:1.15 !important;
        color:inherit !important;
        -webkit-text-fill-color:inherit !important;
    }

    body.qp-calendar-ui .tribe-events-c-events-bar__search-button:focus-visible,
    body.qp-calendar-ui .tribe-events-c-view-selector__button:focus-visible {
        outline:3px solid var(--qp-cal-pink) !important;
        outline-offset:3px !important;
    }

    body.qp-calendar-ui .tribe-events-c-events-bar__search-button:focus-visible {
        outline-color:var(--qp-cal-white) !important;
    }

    body.qp-calendar-ui .tribe-events-c-events-bar__search-container,
    body.qp-calendar-ui .tribe-events-c-events-bar__views,
    body.qp-calendar-ui .tribe-events-c-view-selector {
        min-width:0 !important;
        width:100% !important;
        margin:0 !important;
    }
}

/* ----------------------------------------------------------
   Kategorienfilter
   ---------------------------------------------------------- */
body.qp-calendar-ui .tec-events-category-color-filter {
    position:relative !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    width:auto !important;
    min-height:52px !important;
    margin:0 !important;
    padding:0 14px !important;
    border-radius:var(--qp-cal-radius) !important;
    box-sizing:border-box !important;
    font-family:"Safiro",Arial,sans-serif !important;
    line-height:1 !important;
}

body.qp-calendar-category .tec-events-category-color-filter,
body.qp-calendar-archive .tec-events-category-color-filter,
body.qp-calendar-page .tec-events-category-color-filter {
    border:2px solid var(--qp-cal-white) !important;
    background:transparent !important;
    color:var(--qp-cal-white) !important;
}

body.qp-calendar-ui .tec-events-category-color-filter::before {
    content:"Kategorien filtern";
    margin:0 !important;
    font-weight:700;
    pointer-events:none;
}


body.qp-calendar-ui .tec-events-category-color-filter__colors {
    display:flex !important;
    align-items:center !important;
    margin:0 !important;
    padding:0 !important;
}

body.qp-calendar-ui .tec-events-category-color-filter__dropdown-icon {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
}

body.qp-calendar-ui .tribe-events-c-top-bar {
    column-gap:18px !important;
    row-gap:14px !important;
    margin-bottom:30px !important;
}

body.qp-calendar-ui .tribe-events-c-top-bar .tec-events-category-color-filter {
    margin-left:auto !important;
}

body.qp-calendar-ui .tec-events-category-color-filter:hover,
body.qp-calendar-ui .tec-events-category-color-filter:focus-visible,
body.qp-calendar-ui .tec-events-category-color-filter:focus-within {
    border-color:var(--qp-cal-pink) !important;
    background:var(--qp-cal-pink) !important;
    color:var(--qp-cal-blue) !important;
    outline:0 !important;
}

body.qp-calendar-ui .tec-events-category-color-filter__dropdown {
    z-index:80 !important;
    min-width:300px !important;
    max-width:min(380px,calc(100vw - 24px)) !important;
    max-height:min(70vh,520px) !important;
    overflow-y:auto !important;
    border:1px solid rgba(48,46,114,.12) !important;
    border-radius:var(--qp-cal-radius) !important;
    background:var(--qp-cal-white) !important;
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
    box-shadow:0 16px 40px rgba(48,46,114,.22) !important;
}

body.qp-calendar-ui .tec-events-category-color-filter__dropdown-header,
body.qp-calendar-ui .tec-events-category-color-filter__dropdown-header *,
body.qp-calendar-ui .tec-events-category-color-filter__dropdown-list,
body.qp-calendar-ui .tec-events-category-color-filter__dropdown-item,
body.qp-calendar-ui .tec-events-category-color-filter__dropdown-item label {
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
    opacity:1 !important;
}

body.qp-calendar-ui .tec-events-category-color-filter__dropdown-item label {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    width:100% !important;
}

body.qp-calendar-ui a.tec-events-category-color-filter__label.tec-events-category-color-filter__color-circle {
    position:static !important;
    display:block !important;
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
    font-family:"Safiro",Arial,sans-serif !important;
    font-size:15px !important;
    font-weight:600 !important;
    line-height:1.4 !important;
    text-indent:0 !important;
    white-space:normal !important;
    overflow:visible !important;
    clip:auto !important;
    clip-path:none !important;
    opacity:1 !important;
}

body.qp-calendar-ui a.tec-events-category-color-filter__label:focus-visible {
    outline:2px solid var(--qp-cal-pink) !important;
    outline-offset:4px !important;
}

body.qp-calendar-ui .tec-events-category-color-filter__dropdown .tec-events-category-color-filter__color-dot {
    display:inline-block !important;
    flex:0 0 12px !important;
    width:12px !important;
    height:12px !important;
    min-width:12px !important;
    min-height:12px !important;
    border-radius:50% !important;
    opacity:1 !important;
}

@media (max-width:767px) {
    body.qp-calendar-ui .tec-events-category-color-filter {
        width:100% !important;
        max-width:100% !important;
    }
    body.qp-calendar-ui .tec-events-category-color-filter__dropdown {
        min-width:min(300px,calc(100vw - 24px)) !important;
    }
}

/* ----------------------------------------------------------
   Datum / Navigation / Monatsplaketten
   ---------------------------------------------------------- */
body.qp-calendar-ui .tribe-events-c-top-bar__datepicker-button,
body.qp-calendar-ui .tribe-events-c-top-bar__datepicker-button:hover,
body.qp-calendar-ui .tribe-events-c-top-bar__datepicker-button:focus-visible,
body.qp-calendar-ui .tribe-events-c-top-bar__datepicker-button[aria-expanded="true"] {
    border-radius:var(--qp-cal-radius) !important;
}

body.qp-calendar-ui .tribe-events-c-top-bar__datepicker-button:focus-visible,
body.qp-calendar-ui .tribe-events-c-top-bar__nav-link:focus-visible {
    outline:3px solid var(--qp-cal-pink) !important;
    outline-offset:3px !important;
}

body.qp-calendar-ui .tribe-events-calendar-list__month-separator {
    margin:30px 0 18px !important;
    background:transparent !important;
}

body.qp-calendar-ui .tribe-events-calendar-list__month-separator::after {
    display:none !important;
    content:none !important;
}

body.qp-calendar-ui .tribe-events-calendar-list__month-separator h3,
body.qp-calendar-ui .tribe-events-calendar-list__month-separator-text,
body.qp-calendar-ui time.tribe-events-calendar-list__month-separator-text {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    margin:0 !important;
    padding:9px 20px !important;
    border:0 !important;
    border-radius:var(--qp-cal-radius) !important;
    background:var(--qp-cal-pink-light) !important;
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
    font-family:"Safiro",Arial,sans-serif !important;
    font-weight:700 !important;
    line-height:1.12 !important;
}

/* ----------------------------------------------------------
   Listen-/Tageskarten
   ---------------------------------------------------------- */
body.qp-calendar-ui .tribe-events-calendar-list__event-row,
body.qp-calendar-ui .tribe-events-calendar-day__event {
    margin-bottom:18px !important;
    padding:18px !important;
    border:0 !important;
    border-radius:var(--qp-cal-card-radius) !important;
    background:var(--qp-cal-white) !important;
    box-shadow:var(--qp-cal-shadow) !important;
}

body.qp-calendar-ui .tribe-events-calendar-list__event-date-tag-datetime,
body.qp-calendar-ui .tribe-events-calendar-day__event-datetime-wrapper {
    border-radius:var(--qp-cal-radius) !important;
}

body.qp-calendar-ui .tribe-events-calendar-list__event-date-tag-datetime {
    background:var(--qp-cal-pink-light) !important;
}

body.qp-calendar-ui .tribe-events-calendar-list__event-title,
body.qp-calendar-ui .tribe-events-calendar-list__event-title a,
body.qp-calendar-ui .tribe-events-calendar-day__event-title,
body.qp-calendar-ui .tribe-events-calendar-day__event-title a {
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
}

body.qp-calendar-ui .tribe-events-calendar-list__event-featured-image-wrapper img,
body.qp-calendar-ui .tribe-events-calendar-day__event-featured-image-wrapper img {
    border-radius:16px !important;
}

/* ----------------------------------------------------------
   Monatsansicht: nur sichere Lesbarkeits- und Rundungsregeln
   ---------------------------------------------------------- */
body.qp-calendar-ui .tribe-events-calendar-month {
    border-radius:var(--qp-cal-card-radius) !important;
    overflow:hidden !important;
    background:var(--qp-cal-white) !important;
}

body.qp-calendar-ui .tribe-events-calendar-month__header-column-title,
body.qp-calendar-ui .tribe-events-calendar-month__day-date,
body.qp-calendar-ui .tribe-events-calendar-month__day-date a,
body.qp-calendar-ui .tribe-events-calendar-month__calendar-event-title,
body.qp-calendar-ui .tribe-events-calendar-month__calendar-event-title a {
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
}

body.qp-calendar-ui .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-link {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:36px !important;
    min-height:36px !important;
    padding:4px 8px !important;
    border-radius:var(--qp-cal-radius) !important;
    background:var(--qp-cal-pink) !important;
    color:var(--qp-cal-blue) !important;
}

/* ----------------------------------------------------------
   Untere Navigation + Kalender abonnieren
   ---------------------------------------------------------- */
body.qp-calendar-ui .tribe-events-c-nav__prev,
body.qp-calendar-ui .tribe-events-c-nav__next,
body.qp-calendar-ui .tribe-events-c-nav__prev a,
body.qp-calendar-ui .tribe-events-c-nav__next a,
body.qp-calendar-ui .tribe-events-c-subscribe-dropdown__button {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    min-height:48px !important;
    padding:11px 20px !important;
    border-radius:var(--qp-cal-radius) !important;
    font-family:"Safiro",Arial,sans-serif !important;
    font-size:16px !important;
    font-weight:700 !important;
    line-height:1.15 !important;
    text-decoration:none !important;
    box-shadow:none !important;
    transform:none !important;
}

body.qp-calendar-ui .tribe-events-c-nav__prev,
body.qp-calendar-ui .tribe-events-c-nav__next,
body.qp-calendar-ui .tribe-events-c-nav__prev a,
body.qp-calendar-ui .tribe-events-c-nav__next a {
    border:2px solid var(--qp-cal-pink) !important;
    background:transparent !important;
    color:var(--qp-cal-pink) !important;
    -webkit-text-fill-color:var(--qp-cal-pink) !important;
}

body.qp-calendar-ui .tribe-events-c-nav__prev:hover,
body.qp-calendar-ui .tribe-events-c-nav__next:hover,
body.qp-calendar-ui .tribe-events-c-nav__prev a:hover,
body.qp-calendar-ui .tribe-events-c-nav__next a:hover,
body.qp-calendar-ui .tribe-events-c-nav__prev a:focus-visible,
body.qp-calendar-ui .tribe-events-c-nav__next a:focus-visible {
    background:var(--qp-cal-white) !important;
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
}

body.qp-calendar-ui .tribe-events-c-subscribe-dropdown__button {
    border:2px solid var(--qp-cal-pink) !important;
    background:var(--qp-cal-pink) !important;
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
}

body.qp-calendar-ui .tribe-events-c-subscribe-dropdown__button:hover,
body.qp-calendar-ui .tribe-events-c-subscribe-dropdown__button:focus-visible,
body.qp-calendar-ui .tribe-events-c-subscribe-dropdown__button[aria-expanded="true"] {
    background:var(--qp-cal-white) !important;
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
}

body.qp-calendar-ui .tribe-events-c-subscribe-dropdown__content {
    border-radius:var(--qp-cal-radius) !important;
    overflow:hidden !important;
}

@media (max-width:767px) {
    body.qp-calendar-ui .tribe-events-c-nav__list {
        display:grid !important;
        grid-template-columns:1fr 1fr !important;
        gap:10px !important;
        width:100% !important;
    }
    body.qp-calendar-ui .tribe-events-c-nav__prev,
    body.qp-calendar-ui .tribe-events-c-nav__next,
    body.qp-calendar-ui .tribe-events-c-nav__prev a,
    body.qp-calendar-ui .tribe-events-c-nav__next a,
    body.qp-calendar-ui .tribe-events-c-subscribe-dropdown__button {
        width:100% !important;
        min-width:0 !important;
        min-height:44px !important;
        padding:9px 13px !important;
        font-size:15px !important;
        white-space:normal !important;
        text-align:center !important;
    }
}

@media (prefers-reduced-motion:reduce) {
    body.qp-calendar-ui *,
    body.qp-calendar-ui *::before,
    body.qp-calendar-ui *::after {
        scroll-behavior:auto !important;
        transition-duration:.001ms !important;
        animation-duration:.001ms !important;
        animation-iteration-count:1 !important;
    }
}
.qp-series-event,
.qp-series-intro,
.qp-series-event-page,
.qp-series-page,
.qp-series-category-page {
    --qp-series-blue: #302e72;
    --qp-series-pink: #fe9fc6;
    --qp-series-pink-soft: #fff2f7;
    --qp-series-pink-light: #ffb4d3;
    --qp-series-white: #ffffff;
    --qp-series-shadow: 0 16px 42px rgba(48, 46, 114, .13);
    color: var(--qp-series-blue);
    font-family: "Safiro", Arial, sans-serif;
}

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

/* V1.0.2: Abstand zwischen den redaktionellen Serien-Bloecken robust
   ueber Flex-Gap steuern. So koennen TEC-/Theme-Margin-Resets die Abstaende
   nicht mehr aufheben. Gilt ausschliesslich innerhalb der Serien-Serie. */
.qp-series-event {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.qp-series-event > * + * {
    margin-top: 0 !important;
}

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

/* Das Serienarchiv liegt bereits auf der dunkelblauen Kalenderflaeche.
   Deshalb kein weiterer "Kasten im Kasten" um die Einleitung. */
.qp-series-intro__hero {
    position: relative;
    overflow: visible;
    padding: 26px 0 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--qp-series-white);
    box-shadow: none;
}

.qp-series-event__hero::after,
.qp-series-intro__hero::after {
    display: none !important;
    content: none !important;
}

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

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

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

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

/* V1.0.2: kontrastsichere Hero-Farben mit bewusst hoeherer Spezifitaet.
   Das bestehende Event-Detail-Design bleibt aktiv; nur Serien wird hier
   gegen spaeter geladene TEC-/Theme-Farbregeln abgesichert. */
body.single-tribe_events.qp-series-event-page .tribe-events-single-event-description .qp-series-event__hero {
    color: var(--qp-series-white) !important;
    -webkit-text-fill-color: var(--qp-series-white) !important;
}

body.single-tribe_events.qp-series-event-page .tribe-events-single-event-description .qp-series-event__hero .qp-series-event__eyebrow,
body.single-tribe_events.qp-series-event-page .tribe-events-single-event-description .qp-series-event__hero h2 {
    color: var(--qp-series-pink) !important;
    -webkit-text-fill-color: var(--qp-series-pink) !important;
}

body.single-tribe_events.qp-series-event-page .tribe-events-single-event-description .qp-series-event__hero .qp-series-event__lead {
    color: var(--qp-series-white) !important;
    -webkit-text-fill-color: var(--qp-series-white) !important;
}

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

/* Farben und Hover der Serienaktionen kommen ausschliesslich aus dem zentralen QP-Button-System. */

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

.qp-series-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-series-blue);
    border-radius: 22px;
    background: var(--qp-series-white);
}

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

.qp-series-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-series-blue);
    color: var(--qp-series-white) !important;
    -webkit-text-fill-color: var(--qp-series-white) !important;
    font-size: 1.5rem;
}

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

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

.qp-series-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-series-pink-soft);
}

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

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

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

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

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

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

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

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

.qp-series-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-series-blue);
    color: var(--qp-series-white) !important;
    -webkit-text-fill-color: var(--qp-series-white) !important;
    font-size: 1.25rem;
}

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

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

.qp-series-event__first,
.qp-series-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-series-blue);
    color: var(--qp-series-white);
}

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

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

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

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

.qp-series-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-series-pink-soft);
}

.qp-series-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-series-blue);
    color: var(--qp-series-white);
    text-align: center;
}

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

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

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

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

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

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

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

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

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

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

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

/* Serien- und Kategorieuebersicht: editorial, flach und semantisch klar. */
.qp-series-intro {
    margin: 0 0 18px;
}

.qp-series-intro__actions {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:14px 22px;
    margin-top:28px;
}

.qp-series-intro__facts {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:0;
    margin:0 !important;
    padding:18px 0 !important;
    border-top:1px solid rgba(255,255,255,.34);
    border-bottom:1px solid rgba(255,255,255,.34);
    list-style:none !important;
}

.qp-series-intro__facts li,
.qp-series-intro__facts span {
    display:flex;
    align-items:center;
    min-width:0;
    min-height:46px;
    margin:0 !important;
    padding:0 22px;
    border:0;
    background:transparent;
    color:var(--qp-series-white) !important;
    -webkit-text-fill-color:var(--qp-series-white) !important;
    line-height:1.45;
}

.qp-series-intro__facts li:first-child,
.qp-series-intro__facts span:first-child {
    padding-left:0;
}

.qp-series-intro__facts li + li,
.qp-series-intro__facts span + span {
    border-left:1px solid rgba(255,255,255,.28);
}

.qp-series-intro__facts strong {
    margin-right:.28em;
    color:var(--qp-series-pink-light) !important;
    -webkit-text-fill-color:var(--qp-series-pink-light) !important;
}

.qp-series-intro__heading {
    margin:0 !important;
    padding:28px 0 16px;
}

.qp-series-intro__heading h2 {
    max-width:900px;
    margin:0 !important;
    color:var(--qp-series-pink-light) !important;
    -webkit-text-fill-color:var(--qp-series-pink-light) !important;
    font-size:clamp(1.9rem,3.4vw,2.8rem) !important;
    font-weight:800 !important;
    line-height:1.05 !important;
}

/* Der Serienkopf liefert bereits eindeutige Orientierung und eine sichtbare H1.
   Die darunter erneut ausgegebene TEC-Breadcrumb-Zeile waere redundant. */
body.qp-series-category-page .tribe-events-c-breadcrumbs {
    display:none !important;
}

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

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

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

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

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

@media (max-width: 767px) {
    .qp-series-event {
        gap: 20px;
    }

    .qp-series-event > * + * {
        margin-top: 0 !important;
    }

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

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

    .qp-series-event__lead {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

}

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

/* Zentrale Serien-Feinregeln */
.qp-series-intro__eyebrow {
    display:inline-block;
    max-width:100%;
    margin:0 0 10px !important;
    padding:0 !important;
    overflow:visible !important;
}

body.qp-series-category-page .tribe-events-header__title {
    display:none !important;
}

body.qp-series-category-page .tribe-events-header {
    margin-top:0 !important;
    padding-top:0 !important;
}

@media (max-width:900px) {
    .qp-series-intro__facts {
        grid-template-columns:1fr !important;
        padding:8px 0 !important;
    }

    .qp-series-intro__facts li,
    .qp-series-intro__facts span,
    .qp-series-intro__facts li:first-child,
    .qp-series-intro__facts span:first-child {
        min-height:0;
        padding:12px 0 !important;
    }

    .qp-series-intro__facts li + li,
    .qp-series-intro__facts span + span {
        border-top:1px solid rgba(255,255,255,.24);
        border-left:0;
    }
}

@media (max-width:767px) {
    .qp-series-intro__hero {
        padding:18px 0 20px !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        overflow:visible !important;
    }

    .qp-series-intro__hero h1,
    .qp-series-intro__hero h2 {
        margin-bottom:14px !important;
        font-size:clamp(2.1rem,11vw,3rem) !important;
        line-height:1.02 !important;
    }

    .qp-series-intro__lead {
        font-size:1rem !important;
        line-height:1.55 !important;
    }

    .qp-series-intro__actions {
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
        margin-top:22px;
    }

    .qp-series-intro__actions .qp-button--primary,
    .qp-series-intro__actions .qp-button--secondary,
    .qp-series-intro__actions .qp-button--campaign {
        width:100% !important;
    }

    .qp-series-intro__actions .qp-button--link {
        width:auto !important;
    }

    .qp-series-intro__heading {
        padding:24px 0 12px;
    }
}

/* ==========================================================
   Queer Pfaffenhofen – Einzelveranstaltungen
   Nur für body.single-tribe_events
   ========================================================== */

body.single-tribe_events #tm-main,
body.single-tribe_events main#tm-main.uk-section-default {
  background: #302e72 !important;
}

body.single-tribe_events #tribe-events-pg-template {
  background: #302e72 !important;
}

/* Zurück zur Veranstaltungsübersicht: sekundär auf dunklem Grund. */
body.single-tribe_events .tribe-events-back a.qp-button--secondary,
body.single-tribe_events .tribe-events-back a.uk-button-secondary {
  border: 2px solid #fe9fc6 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #fe9fc6 !important;
  -webkit-text-fill-color: #fe9fc6 !important;
  box-shadow: none !important;
}

body.single-tribe_events .tribe-events-back a.qp-button--secondary:hover,
body.single-tribe_events .tribe-events-back a.qp-button--secondary:focus-visible,
body.single-tribe_events .tribe-events-back a.uk-button-secondary:hover,
body.single-tribe_events .tribe-events-back a.uk-button-secondary:focus-visible {
  border-color: #fe9fc6 !important;
  background: #ffffff !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
}

body.single-tribe_events .tribe-events-back a.qp-button--secondary:hover *,
body.single-tribe_events .tribe-events-back a.qp-button--secondary:focus-visible *,
body.single-tribe_events .tribe-events-back a.uk-button-secondary:hover *,
body.single-tribe_events .tribe-events-back a.uk-button-secondary:focus-visible * {
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
}

/* Terminplakette: kompakt und mit neuer 12-px-Rundung. */
body.single-tribe_events .tribe-events-schedule {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-height: 48px !important;
  margin: 0 0 30px !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fe9fc6 !important;
  color: #302e72 !important;
  box-shadow: none !important;
}

body.single-tribe_events .tribe-events-schedule,
body.single-tribe_events .tribe-events-schedule div,
body.single-tribe_events .tribe-events-schedule span,
body.single-tribe_events .tribe-events-schedule time,
body.single-tribe_events .tribe-events-schedule h2 {
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
}

/* Zum Kalender hinzufügen: gleiche Rundung und Buttonlogik. */
body.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: auto !important;
  min-height: 48px !important;
  padding: 11px 20px !important;
  border: 2px solid #fe9fc6 !important;
  border-radius: 12px !important;
  background: #fe9fc6 !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
  box-shadow: none !important;
}

body.single-tribe_events .tribe-events-c-subscribe-dropdown__button *,
body.single-tribe_events .tribe-events-c-subscribe-dropdown__button svg,
body.single-tribe_events .tribe-events-c-subscribe-dropdown__button svg path {
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

body.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover,
body.single-tribe_events .tribe-events-c-subscribe-dropdown__button:focus-within {
  border-color: #fe9fc6 !important;
  background: #ffffff !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
}


/* Der innere Text-Button des Subscribe-Elements darf keine zweite Pinkfläche erzeugen. */
body.single-tribe_events .tribe-events-c-subscribe-dropdown__button .tribe-events-c-subscribe-dropdown__button-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
  font: inherit !important;
}

body.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover .tribe-events-c-subscribe-dropdown__button-text,
body.single-tribe_events .tribe-events-c-subscribe-dropdown__button:focus-within .tribe-events-c-subscribe-dropdown__button-text {
  background: transparent !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
}

/* Ruhige, einheitliche Lesefläche für den eigentlichen Veranstaltungsbeitrag. */
body.single-tribe_events .tribe-events-single-event-description {
  padding: clamp(24px, 3vw, 38px) !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff8fb !important;
  color: #302e72 !important;
  box-shadow: none !important;
}

/* Nur normale Inhaltselemente auf der Lesefläche einfärben.
   Verschachtelte redaktionelle Boxen behalten ihre eigene Farblogik. */
body.single-tribe_events .tribe-events-single-event-description > h2,
body.single-tribe_events .tribe-events-single-event-description > h3,
body.single-tribe_events .tribe-events-single-event-description > p,
body.single-tribe_events .tribe-events-single-event-description > ul > li,
body.single-tribe_events .tribe-events-single-event-description > ol > li {
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
}

body.single-tribe_events .tribe-events-single-event-description > :first-child {
  margin-top: 0 !important;
}

body.single-tribe_events .tribe-events-single-event-description > :last-child {
  margin-bottom: 0 !important;
}

body.single-tribe_events .tribe-events-c-subscribe-dropdown__content {
  margin-top: 8px !important;
}


/* Dunkelblaue redaktionelle Inhaltsboxen: Farben des Inhalts respektieren
   und bei explizitem QP-Dunkelblau sicher auf Weiß setzen. */
body.single-tribe_events .tribe-events-single-event-description [style*="background:#302e72"],
body.single-tribe_events .tribe-events-single-event-description [style*="background: #302e72"],
body.single-tribe_events .tribe-events-single-event-description [style*="background-color:#302e72"],
body.single-tribe_events .tribe-events-single-event-description [style*="background-color: #302e72"],
body.single-tribe_events .tribe-events-single-event-description [style*="background:#302E72"],
body.single-tribe_events .tribe-events-single-event-description [style*="background: #302E72"],
body.single-tribe_events .tribe-events-single-event-description [style*="background-color:#302E72"],
body.single-tribe_events .tribe-events-single-event-description [style*="background-color: #302E72"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.single-tribe_events .tribe-events-single-event-description [style*="background:#302e72"] :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,em),
body.single-tribe_events .tribe-events-single-event-description [style*="background: #302e72"] :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,em),
body.single-tribe_events .tribe-events-single-event-description [style*="background-color:#302e72"] :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,em),
body.single-tribe_events .tribe-events-single-event-description [style*="background-color: #302e72"] :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,em),
body.single-tribe_events .tribe-events-single-event-description [style*="background:#302E72"] :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,em),
body.single-tribe_events .tribe-events-single-event-description [style*="background: #302E72"] :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,em),
body.single-tribe_events .tribe-events-single-event-description [style*="background-color:#302E72"] :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,em),
body.single-tribe_events .tribe-events-single-event-description [style*="background-color: #302E72"] :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,em) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.single-tribe_events .tribe-events-single-event-description [style*="background:#302e72"] a:not(.wp-block-button__link),
body.single-tribe_events .tribe-events-single-event-description [style*="background: #302e72"] a:not(.wp-block-button__link),
body.single-tribe_events .tribe-events-single-event-description [style*="background-color:#302e72"] a:not(.wp-block-button__link),
body.single-tribe_events .tribe-events-single-event-description [style*="background-color: #302e72"] a:not(.wp-block-button__link),
body.single-tribe_events .tribe-events-single-event-description [style*="background:#302E72"] a:not(.wp-block-button__link),
body.single-tribe_events .tribe-events-single-event-description [style*="background: #302E72"] a:not(.wp-block-button__link),
body.single-tribe_events .tribe-events-single-event-description [style*="background-color:#302E72"] a:not(.wp-block-button__link),
body.single-tribe_events .tribe-events-single-event-description [style*="background-color: #302E72"] a:not(.wp-block-button__link) {
  color: #fe9fc6 !important;
  -webkit-text-fill-color: #fe9fc6 !important;
}



/* ==========================================================
   Event-Metadaten – ruhiger QP-Infobereich
   Zentral für alle Einzelveranstaltungen
   ========================================================== */
body.single-tribe_events .tribe-events-single-section.tribe-events-event-meta.primary {
  display: grid !important;
  grid-template-columns: 1.15fr .9fr 1.15fr !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 42px 0 0 !important;
  padding: 28px 26px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff8fb !important;
  box-shadow: none !important;
}

/* Gewünschte Reihenfolge: Details – Veranstalter – Veranstaltungsort. */
body.single-tribe_events .tribe-events-meta-group-details { order: 1; }
body.single-tribe_events .tribe-events-meta-group-organizer { order: 2; }
body.single-tribe_events .tribe-events-meta-group-venue { order: 3; }

/* Statt drei einzelner Kacheln bildet der Metabereich bewusst eine ruhige gemeinsame Fläche. */
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group {
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-left: 1px solid rgba(48, 46, 114, .14) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group:first-child,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group-details {
  padding-left: 0 !important;
  border-left: 0 !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group:last-child,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group-venue {
  padding-right: 0 !important;
}

/* TEC und Theme setzen an einzelnen Unterelementen eigene helle Farben.
   Innerhalb der hellen Infofläche gilt deshalb verbindlich QP-Dunkelblau. */
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group * {
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-single-section-title {
  position: relative !important;
  margin: 0 0 18px !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  letter-spacing: .015em !important;
  text-transform: uppercase !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-single-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: #ffb4d3;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-item {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-label {
  display: block !important;
  margin: 0 0 3px !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .055em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-value,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-address,
body.single-tribe_events .tribe-events-event-meta.primary abbr,
body.single-tribe_events .tribe-events-event-meta.primary address {
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
  font-style: normal !important;
  text-decoration: none !important;
}

/* Nicht hilfreiche Schlagwortliste im kompakten Infobereich ausblenden.
   Die Tags bleiben technisch am Event erhalten. */
body.single-tribe_events .tribe-events-event-meta.primary .tribe-event-tags-label,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-event-tags {
  display: none !important;
}

/* Die komplette Tag-Zeile aus dem kompakten Infobereich nehmen, damit kein leerer Abstand bleibt. */
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-item:has(.tribe-event-tags-label),
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-item:has(.tribe-event-tags) {
  display: none !important;
}

/* Beim klar benannten Aktionslink ist die zusätzliche Feldbezeichnung redundant. */
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-event-url-label {
  display: none !important;
}

/* Namen und Kategorie bleiben schlanke Textlinks. */
body.single-tribe_events .tribe-events-event-meta.primary .tribe-organizer > a,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-venue > a,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-event-categories a {
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-organizer > a:hover,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-venue > a:hover,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-event-categories a:hover {
  color: #bd08aa !important;
  -webkit-text-fill-color: #bd08aa !important;
  text-decoration: none !important;
}

/* Externe Aktionen bewusst als ruhige Aktionslinks statt weiterer Vollflächen-Buttons. */
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-event-url a,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-organizer-url a,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-gmap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere !important;
  box-shadow: none !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-event-url a::after,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-organizer-url a::after,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-gmap::after {
  content: "↗";
  display: inline-block;
  color: #bd08aa !important;
  -webkit-text-fill-color: #bd08aa !important;
  font-size: 13px;
  line-height: 1;
  text-decoration: none !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-event-url a:hover,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-event-url a:focus-visible,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-organizer-url a:hover,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-organizer-url a:focus-visible,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-gmap:hover,
body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-gmap:focus-visible {
  color: #bd08aa !important;
  -webkit-text-fill-color: #bd08aa !important;
  text-decoration: underline !important;
  text-decoration-color: #ffb4d3 !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-address {
  display: block !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-gmap {
  display: flex !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-top: 10px !important;
}

/* Desktop: Metadaten typografisch an die übrige Eventseite angleichen.
   Mobil bleibt die kompaktere, bereits bestätigte Größe unverändert. */
@media (min-width: 901px) {
  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-single-section-title {
    font-size: 19px !important;
  }

  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-item {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-label {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-event-url a,
  body.single-tribe_events .tribe-events-event-meta.primary .tribe-organizer-url a,
  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-gmap {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-event-url a::after,
  body.single-tribe_events .tribe-events-event-meta.primary .tribe-organizer-url a::after,
  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-gmap::after {
    font-size: 14px !important;
  }
}

@media (max-width: 900px) {
  body.single-tribe_events .tribe-events-single-section.tribe-events-event-meta.primary {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 24px 22px !important;
  }

  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group {
    padding: 22px 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(48, 46, 114, .14) !important;
  }

  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group:first-child,
  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group-details {
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group:last-child,
  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-meta-group-venue {
    padding-bottom: 0 !important;
  }

  body.single-tribe_events .tribe-events-event-meta.primary .tribe-events-single-section-title {
    margin-bottom: 16px !important;
  }
}

/* Untere Eventnavigation – dieselbe Buttonlogik wie im übrigen QP-System. */
body.single-tribe_events #tribe-events-footer {
  margin: 34px 0 0 !important;
  padding: 26px 0 0 !important;
  border-top: 1px solid rgba(255,255,255,.38) !important;
}

body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav {
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav li {
  display: flex !important;
  flex: 0 1 48% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-tribe_events #tribe-events-footer .tribe-events-nav-next {
  justify-content: flex-end !important;
  margin-left: auto !important;
}

body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 48px !important;
  padding: 10px 18px !important;
  border: 2px solid #ffb4d3 !important;
  border-radius: 12px !important;
  background: #ffb4d3 !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav a:hover,
body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav a:focus-visible {
  background: #ffffff !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
}

body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav a span {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  font-size: 21px !important;
  line-height: 1 !important;
}

/* Verwandte Termine ebenfalls als ruhige QP-Karten. */
body.single-tribe_events .tribe-events-related-events-title {
  margin: 48px 0 20px !important;
  color: #ffb4d3 !important;
  -webkit-text-fill-color: #ffb4d3 !important;
}

body.single-tribe_events .tribe-related-events > li {
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff8fb !important;
  box-shadow: none !important;
}

body.single-tribe_events .tribe-related-events-thumbnail,
body.single-tribe_events .tribe-related-events-thumbnail img {
  border-radius: 12px 12px 0 0 !important;
}

body.single-tribe_events .tribe-related-events .tribe-related-event-info {
  padding: 18px !important;
}

body.single-tribe_events .tribe-related-events :is(h3,a,time,span) {
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
}


/* ==========================================================
   PrideWeek – eigene Detailinszenierung
   Aktiv nur bei body.qp-prideweek-event
   ========================================================== */
body.single-tribe_events.qp-prideweek-event #tribe-events-content {
  position: relative;
}

body.single-tribe_events.qp-prideweek-event .qp-prideweek-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px !important;
  color: #ffffff;
  font-family: "Safiro", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.single-tribe_events.qp-prideweek-event .qp-prideweek-kicker__label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 12px;
  background: #fe9fc6;
  color: #302e72;
  -webkit-text-fill-color: #302e72;
}

body.single-tribe_events.qp-prideweek-event .qp-prideweek-kicker__sep {
  color: #fe9fc6;
}

body.single-tribe_events.qp-prideweek-event .qp-prideweek-kicker__meta {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

body.single-tribe_events.qp-prideweek-event .tribe-events-single-event-title {
  max-width: 980px;
  margin-bottom: 16px !important;
  color: #fe9fc6 !important;
  -webkit-text-fill-color: #fe9fc6 !important;
  font-size: clamp(42px, 5.2vw, 72px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.025em !important;
}

body.single-tribe_events.qp-prideweek-event .tribe-events-schedule {
  margin-bottom: 34px !important;
}

body.single-tribe_events.qp-prideweek-event .tribe-events-event-image {
  overflow: hidden !important;
  margin: 8px 0 34px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.single-tribe_events.qp-prideweek-event .tribe-events-event-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 620px !important;
  aspect-ratio: 16 / 9;
  object-fit: cover !important;
  border-radius: 18px !important;
}

body.single-tribe_events.qp-prideweek-event .qp-prideweek-content {
  position: relative;
  padding: clamp(28px, 4vw, 48px) !important;
  border-radius: 18px !important;
  background: #fff8fb !important;
}

body.single-tribe_events.qp-prideweek-event .qp-prideweek-content h2 {
  margin: 0 0 18px !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.08 !important;
}

body.single-tribe_events.qp-prideweek-event .qp-prideweek-content h3 {
  margin-top: 30px !important;
  color: #302e72 !important;
  -webkit-text-fill-color: #302e72 !important;
}

body.single-tribe_events.qp-prideweek-event .qp-prideweek-content p,
body.single-tribe_events.qp-prideweek-event .qp-prideweek-content li {
  max-width: 78ch;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

/* Letzten Praxis-Hinweis (z.B. Mitbringen) als ruhige Infobox hervorheben. */
body.single-tribe_events.qp-prideweek-event .qp-prideweek-content p:has(> strong:first-child) {
  margin-top: 30px !important;
  padding: 18px 20px !important;
  border-left: 5px solid #fe9fc6 !important;
  border-radius: 0 12px 12px 0 !important;
  background: #ffffff !important;
}

body.single-tribe_events.qp-prideweek-event .tribe-events-related-events-title {
  margin-top: 54px !important;
  color: #fe9fc6 !important;
  -webkit-text-fill-color: #fe9fc6 !important;
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.1 !important;
}

body.single-tribe_events.qp-prideweek-event .tribe-related-events > li {
  border-radius: 18px !important;
}

body.single-tribe_events.qp-prideweek-event .tribe-related-events-thumbnail,
body.single-tribe_events.qp-prideweek-event .tribe-related-events-thumbnail img {
  border-radius: 18px 18px 0 0 !important;
}


@media (max-width: 767px) {
  body.single-tribe_events .tribe-events-back a.qp-button--secondary,
  body.single-tribe_events .tribe-events-back a.uk-button-secondary,
  body.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
    min-height: 44px !important;
    padding: 9px 15px !important;
    font-size: 15px !important;
  }

  body.single-tribe_events .tribe-events-schedule {
    min-height: 44px !important;
    padding: 9px 14px !important;
  }

  body.single-tribe_events #tribe-events-footer {
    margin-top: 28px !important;
    padding-top: 22px !important;
  }

  body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav {
    flex-direction: column !important;
  }

  body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav li {
    flex: 1 1 auto !important;
    width: 100% !important;
  }

  body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav a {
    width: 100% !important;
    min-height: 44px !important;
    padding: 9px 14px !important;
  }
}


@media (max-width: 767px) {
  body.single-tribe_events.qp-prideweek-event .qp-prideweek-kicker {
    gap: 6px;
    margin-bottom: 12px !important;
    font-size: 12px;
  }

  body.single-tribe_events.qp-prideweek-event .qp-prideweek-kicker__label {
    min-height: 30px;
    padding: 5px 9px;
  }

  body.single-tribe_events.qp-prideweek-event .tribe-events-single-event-title {
    font-size: clamp(36px, 11vw, 50px) !important;
  }

  body.single-tribe_events.qp-prideweek-event .tribe-events-event-image,
  body.single-tribe_events.qp-prideweek-event .tribe-events-event-image img,
  body.single-tribe_events.qp-prideweek-event .qp-prideweek-content {
    border-radius: 14px !important;
  }

  body.single-tribe_events.qp-prideweek-event .qp-prideweek-content {
    padding: 24px 20px !important;
  }

  body.single-tribe_events.qp-prideweek-event .qp-prideweek-content p,
  body.single-tribe_events.qp-prideweek-event .qp-prideweek-content li {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
}


/* ==========================================================
   2.1.1 – Hierarchie und Bedienruhe
   - Serienaktionen in Hauptaktion + weiterfuehrende Links trennen
   - Kalenderwerkzeuge optisch entflechten
   - Suchfeld, Suche-Button und Ansicht nicht mehr als eine Sammelbox lesen
   ========================================================== */
.qp-series-intro__actions {
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    align-items:center !important;
    gap:16px 28px !important;
    margin-top:28px !important;
}

.qp-series-intro__primary-actions,
.qp-series-intro__secondary-actions {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px 24px;
    min-width:0;
}

.qp-series-intro__secondary-actions {
    padding-top:2px;
}

.qp-series-intro__secondary-actions .qp-button--link {
    margin:0 !important;
    padding:5px 0 !important;
}

/* Im Serienkopf sind die Pfeile nicht noetig: Unterstreichung und Fokus-
   zustand kennzeichnen die Links bereits eindeutig und ruhiger. */
.qp-series-intro__secondary-actions .qp-button--link::after {
    content:none !important;
    display:none !important;
}

.qp-series-intro__facts {
    margin-top:4px !important;
}

.qp-series-intro__heading {
    padding-top:32px !important;
    padding-bottom:20px !important;
}

@media (min-width:768px) {
    /* Werkzeugleiste ohne weisse Sammelbox. */
    html body.qp-calendar-ui .tribe-events-header__events-bar,
    html body.qp-calendar-ui .tribe-events-c-events-bar {
        grid-template-columns:minmax(0,1fr) auto !important;
        gap:28px !important;
        align-items:center !important;
        margin-bottom:30px !important;
        background:transparent !important;
        overflow:visible !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-container,
    html body.qp-calendar-ui .tribe-events-c-events-bar__search {
        padding:0 !important;
        background:transparent !important;
        border-radius:0 !important;
        box-shadow:none !important;
        overflow:visible !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search {
        gap:12px !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-group {
        min-height:52px !important;
        padding:2px 8px !important;
        border-radius:var(--qp-cal-radius) !important;
        background:var(--qp-cal-white) !important;
        box-shadow:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-control {
        height:48px !important;
        min-height:48px !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-group:focus-within {
        box-shadow:inset 0 0 0 3px var(--qp-cal-pink) !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__button {
        min-width:210px !important;
        height:52px !important;
        min-height:52px !important;
        border-radius:var(--qp-cal-radius) !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__views,
    html body.qp-calendar-ui .tribe-events-c-view-selector,
    html body.qp-calendar-ui .tribe-events-c-view-selector__content,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item {
        background:transparent !important;
        box-shadow:none !important;
        overflow:visible !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list {
        gap:10px !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link {
        min-width:82px !important;
        height:52px !important;
        min-height:52px !important;
        border:2px solid rgba(255,255,255,.72) !important;
        border-radius:var(--qp-cal-radius) !important;
        background:transparent !important;
        color:var(--qp-cal-white) !important;
        -webkit-text-fill-color:var(--qp-cal-white) !important;
        box-shadow:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link:hover,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link:focus-visible {
        border-color:var(--qp-cal-white) !important;
        background:var(--qp-cal-white) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link:hover,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link:focus-visible {
        border-color:var(--qp-cal-pink) !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
    }
}

@media (max-width:900px) {
    .qp-series-intro__actions {
        grid-template-columns:1fr !important;
        gap:14px !important;
    }

    .qp-series-intro__secondary-actions {
        gap:10px 20px;
    }
}

@media (max-width:767px) {
    .qp-series-intro__primary-actions,
    .qp-series-intro__secondary-actions {
        width:100%;
    }

    .qp-series-intro__primary-actions .qp-button--primary,
    .qp-series-intro__primary-actions .qp-button--secondary,
    .qp-series-intro__primary-actions .qp-button--campaign {
        width:100% !important;
    }

    .qp-series-intro__secondary-actions {
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
        padding-top:2px;
    }
}

/* ==========================================================
   2.1.2 – Werkzeugleiste final entkoppeln
   - Suchfeld und Suchbutton duerfen sich nicht ueberlagern.
   - Nur die aktive TEC-Ansicht ist pink.
   - Inaktive Ansichten bleiben dunkel/transparent mit weisser Kontur.
   ========================================================== */
@media (min-width:768px) {
    html body.qp-calendar-ui .tribe-events-header__events-bar,
    html body.qp-calendar-ui .tribe-events-c-events-bar {
        grid-template-columns:minmax(0,1fr) auto !important;
        column-gap:36px !important;
        row-gap:18px !important;
        align-items:center !important;
        overflow:visible !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-container,
    html body.qp-calendar-ui .tribe-events-c-events-bar__search,
    html body.qp-calendar-ui .tribe-events-c-search {
        position:static !important;
        width:100% !important;
        min-width:0 !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
        background:transparent !important;
        border:0 !important;
        border-radius:0 !important;
        box-shadow:none !important;
        transform:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) auto !important;
        align-items:center !important;
        gap:14px !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-group {
        position:relative !important;
        display:block !important;
        width:auto !important;
        min-width:0 !important;
        height:52px !important;
        min-height:52px !important;
        margin:0 !important;
        padding:2px 8px !important;
        border:0 !important;
        border-radius:var(--qp-cal-radius) !important;
        background:var(--qp-cal-white) !important;
        box-shadow:none !important;
        overflow:visible !important;
        box-sizing:border-box !important;
        transform:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__button {
        position:static !important;
        inset:auto !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:auto !important;
        min-width:220px !important;
        height:52px !important;
        min-height:52px !important;
        margin:0 !important;
        padding:0 22px !important;
        border:2px solid var(--qp-cal-blue) !important;
        border-radius:var(--qp-cal-radius) !important;
        background:var(--qp-cal-blue) !important;
        color:var(--qp-cal-white) !important;
        -webkit-text-fill-color:var(--qp-cal-white) !important;
        box-shadow:none !important;
        overflow:visible !important;
        box-sizing:border-box !important;
        transform:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__button::before,
    html body.qp-calendar-ui .tribe-events-c-search__button::after {
        content:none !important;
        display:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__button:hover,
    html body.qp-calendar-ui .tribe-events-c-search__button:focus-visible {
        border-color:var(--qp-cal-white) !important;
        background:var(--qp-cal-white) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        box-shadow:inset 0 0 0 2px var(--qp-cal-blue) !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__views {
        margin-left:0 !important;
        padding-left:0 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list {
        gap:12px !important;
    }

    /* Inaktive Ansichten: eindeutig nicht aktiv. */
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item:not(.tribe-events-c-view-selector__list-item--active) .tribe-events-c-view-selector__list-item-link,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item:not(.tribe-events-c-view-selector__list-item--active) .tribe-events-c-view-selector__list-item-link:visited {
        border:2px solid rgba(255,255,255,.88) !important;
        background:transparent !important;
        color:var(--qp-cal-white) !important;
        -webkit-text-fill-color:var(--qp-cal-white) !important;
        box-shadow:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item:not(.tribe-events-c-view-selector__list-item--active) .tribe-events-c-view-selector__list-item-link:hover,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item:not(.tribe-events-c-view-selector__list-item--active) .tribe-events-c-view-selector__list-item-link:focus-visible {
        border-color:var(--qp-cal-white) !important;
        background:var(--qp-cal-white) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        box-shadow:none !important;
    }

    /* Aktive Ansicht: einziges pinkes Element in der View-Auswahl. */
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item.tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item.tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link:visited,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item.tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link:hover,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item.tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link:focus-visible {
        border:2px solid var(--qp-cal-pink) !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        box-shadow:none !important;
    }
}

@media (min-width:768px) and (max-width:1024px) {
    html body.qp-calendar-ui .tribe-events-header__events-bar,
    html body.qp-calendar-ui .tribe-events-c-events-bar {
        grid-template-columns:minmax(0,1fr) !important;
        gap:16px !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__views {
        justify-content:flex-start !important;
    }
}


/* ==========================================================
   2.1.4 – Fokuszustaende Suche bereinigt
   - Suchfeld: genau ein sichtbarer Fokusrahmen statt Mehrfachkontur.
   - Suchbutton: klarer Normal-, Hover- und Tastaturfokuszustand.
   - Keine Aenderung an Liste/Monat/Tag oder Serienstruktur.
   ========================================================== */
@media (min-width:768px) {
    html body.qp-calendar-ui .tribe-events-c-search__input-group {
        border:3px solid transparent !important;
        padding:0 6px !important;
        box-shadow:none !important;
        outline:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-group:focus-within {
        border-color:var(--qp-cal-pink) !important;
        box-shadow:none !important;
        outline:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-control,
    html body.qp-calendar-ui .tribe-events-c-search__input-control:focus-within,
    html body.qp-calendar-ui .tribe-events-c-search__input,
    html body.qp-calendar-ui .tribe-events-c-search__input:focus,
    html body.qp-calendar-ui .tribe-events-c-search__input:focus-visible {
        border:0 !important;
        box-shadow:none !important;
        outline:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__button,
    html body.qp-calendar-ui .tribe-events-c-search__button:visited {
        border:2px solid var(--qp-cal-pink) !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        box-shadow:none !important;
        outline:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__button:hover {
        border-color:var(--qp-cal-white) !important;
        background:var(--qp-cal-white) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        box-shadow:none !important;
        outline:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__button:focus-visible,
    html body.qp-calendar-ui .tribe-events-c-search__button:hover:focus-visible {
        border-color:var(--qp-cal-pink) !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        box-shadow:none !important;
        outline:3px solid var(--qp-cal-white) !important;
        outline-offset:3px !important;
    }
}

/* ==========================================================
   2.1.6 – Mobile Kalenderwerkzeuge: native TEC-Logik, klar gestaltet
   - Keine versteckten TEC-Bereiche werden zwangsweise eingeblendet.
   - Suche und Ansicht bleiben native, funktionierende TEC-Controls.
   - Mobil zwei klare, vollbreite Einstiege; Dropdowns/Formular nur bei Bedarf.
   - Desktop unveraendert.
   ========================================================== */
@media (max-width:767px) {
    html body.qp-calendar-ui .tribe-events-header__events-bar,
    html body.qp-calendar-ui .tribe-events-c-events-bar {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
        gap:10px !important;
        width:100% !important;
        margin:0 0 26px !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        overflow:visible !important;
    }

    /* Native mobile controls: one clear search trigger + one clear view trigger. */
    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button,
    html body.qp-calendar-ui .tribe-events-c-view-selector__button {
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:10px !important;
        width:100% !important;
        min-width:0 !important;
        min-height:52px !important;
        margin:0 !important;
        padding:12px 16px !important;
        border:2px solid var(--qp-cal-white) !important;
        border-radius:var(--qp-cal-radius) !important;
        background:transparent !important;
        color:var(--qp-cal-white) !important;
        -webkit-text-fill-color:var(--qp-cal-white) !important;
        font-family:"Safiro",Arial,sans-serif !important;
        font-size:16px !important;
        font-weight:700 !important;
        line-height:1.15 !important;
        box-shadow:none !important;
        outline:none !important;
        box-sizing:border-box !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button {
        border-color:var(--qp-cal-pink) !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button:hover {
        border-color:var(--qp-cal-white) !important;
        background:var(--qp-cal-white) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button-text,
    html body.qp-calendar-ui .tribe-events-c-view-selector__button-text {
        position:static !important;
        display:inline !important;
        width:auto !important;
        height:auto !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
        clip:auto !important;
        clip-path:none !important;
        white-space:normal !important;
        color:inherit !important;
        -webkit-text-fill-color:inherit !important;
        font-size:16px !important;
        line-height:1.15 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button-icon-svg,
    html body.qp-calendar-ui .tribe-events-c-view-selector__button-icon,
    html body.qp-calendar-ui .tribe-events-c-view-selector__button-icon-caret-svg {
        flex:0 0 auto !important;
        color:inherit !important;
        fill:currentColor !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button:focus-visible,
    html body.qp-calendar-ui .tribe-events-c-view-selector__button:focus-visible {
        outline:3px solid var(--qp-cal-white) !important;
        outline-offset:3px !important;
        box-shadow:none !important;
    }

    /* Do not force hidden TEC panels open. Only reset layout when TEC opens them. */
    html body.qp-calendar-ui .tribe-events-c-events-bar__search-container,
    html body.qp-calendar-ui .tribe-events-c-events-bar__search,
    html body.qp-calendar-ui .tribe-events-c-events-bar__views,
    html body.qp-calendar-ui .tribe-events-c-view-selector {
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        margin:0 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-container {
        position:static !important;
        inset:auto !important;
        padding:12px 0 0 !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
        gap:10px !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
        background:transparent !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-group {
        width:100% !important;
        min-width:0 !important;
        min-height:52px !important;
        margin:0 !important;
        padding:0 10px !important;
        border:2px solid transparent !important;
        border-radius:var(--qp-cal-radius) !important;
        background:var(--qp-cal-white) !important;
        box-shadow:none !important;
        box-sizing:border-box !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-group:focus-within {
        border-color:var(--qp-cal-pink) !important;
        outline:none !important;
        box-shadow:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-control,
    html body.qp-calendar-ui .tribe-events-c-search__input-control:focus-within {
        min-height:48px !important;
        margin:0 !important;
        padding:0 8px !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        outline:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input,
    html body.qp-calendar-ui .tribe-events-c-search__input:focus,
    html body.qp-calendar-ui .tribe-events-c-search__input:focus-visible {
        width:100% !important;
        min-width:0 !important;
        border:0 !important;
        background:transparent !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        font-family:"Safiro",Arial,sans-serif !important;
        font-size:16px !important;
        box-shadow:none !important;
        outline:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__button,
    html body.qp-calendar-ui .tribe-events-c-search__button:visited {
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:100% !important;
        min-height:50px !important;
        margin:0 !important;
        padding:12px 16px !important;
        border:2px solid var(--qp-cal-pink) !important;
        border-radius:var(--qp-cal-radius) !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        font-family:"Safiro",Arial,sans-serif !important;
        font-size:16px !important;
        font-weight:700 !important;
        line-height:1.15 !important;
        box-shadow:none !important;
        outline:none !important;
        box-sizing:border-box !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__button:focus-visible {
        outline:3px solid var(--qp-cal-white) !important;
        outline-offset:3px !important;
    }

    /* Native view dropdown: full width and readable. */
    html body.qp-calendar-ui .tribe-events-c-view-selector {
        position:relative !important;
        display:block !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__content {
        left:0 !important;
        right:0 !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        margin-top:8px !important;
        padding:8px !important;
        border:0 !important;
        border-radius:var(--qp-cal-radius) !important;
        background:var(--qp-cal-white) !important;
        box-shadow:0 12px 28px rgba(18,17,65,.18) !important;
        box-sizing:border-box !important;
        z-index:20 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
        gap:6px !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
        list-style:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link {
        width:100% !important;
        min-width:0 !important;
        margin:0 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link:visited {
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:10px !important;
        min-height:48px !important;
        padding:11px 12px !important;
        border:0 !important;
        border-radius:10px !important;
        background:transparent !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        font-family:"Safiro",Arial,sans-serif !important;
        font-size:16px !important;
        font-weight:650 !important;
        line-height:1.2 !important;
        text-decoration:none !important;
        box-sizing:border-box !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link:hover,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link:focus-visible {
        background:#f7f4fb !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        outline:2px solid var(--qp-cal-pink) !important;
        outline-offset:-2px !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link:visited {
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        font-weight:750 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-icon {
        display:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-text {
        position:static !important;
        display:inline !important;
        width:auto !important;
        height:auto !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
        clip:auto !important;
        clip-path:none !important;
        white-space:normal !important;
        color:inherit !important;
        -webkit-text-fill-color:inherit !important;
        line-height:1.2 !important;
    }
}


/* ----------------------------------------------------------
   2.1.7 – Mobile Werkzeugleiste: native TEC-Funktion, klare Struktur
   ---------------------------------------------------------- */
@media (max-width:767px) {
    html body.qp-calendar-ui .tribe-events-header__events-bar,
    html body.qp-calendar-ui .tribe-events-c-events-bar {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
        grid-template-rows:auto auto !important;
        gap:10px !important;
        width:100% !important;
        margin:0 0 26px !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        overflow:visible !important;
    }

    /* Nur die echten TEC-Buttons in der ersten Zeile. */
    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button,
    html body.qp-calendar-ui .tribe-events-c-view-selector__button {
        min-height:52px !important;
        height:52px !important;
        padding:0 14px !important;
        border-radius:12px !important;
        box-sizing:border-box !important;
        font-size:16px !important;
        line-height:1 !important;
        text-align:center !important;
        white-space:nowrap !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button {
        grid-column:1 !important;
        grid-row:1 !important;
        border:2px solid var(--qp-cal-pink) !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__views {
        grid-column:2 !important;
        grid-row:1 !important;
        width:100% !important;
        min-width:0 !important;
        margin:0 !important;
        padding:0 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__button {
        border:2px solid var(--qp-cal-white) !important;
        background:transparent !important;
        color:var(--qp-cal-white) !important;
        -webkit-text-fill-color:var(--qp-cal-white) !important;
    }

    /* TEC fuegt an diesen Controls selbst Zusatztexte/Pseudoelemente ein.
       Mobil zeigen wir bewusst nur die eindeutige Hauptbeschriftung. */
    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button::before,
    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button::after,
    html body.qp-calendar-ui .tribe-events-c-view-selector__button::before,
    html body.qp-calendar-ui .tribe-events-c-view-selector__button::after {
        content:none !important;
        display:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button-icon-svg,
    html body.qp-calendar-ui .tribe-events-c-view-selector__button-icon {
        display:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__button-icon-caret-svg {
        display:block !important;
        width:12px !important;
        height:8px !important;
        margin-left:8px !important;
        color:inherit !important;
        fill:currentColor !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-button-text,
    html body.qp-calendar-ui .tribe-events-c-view-selector__button-text {
        position:static !important;
        display:inline-block !important;
        width:auto !important;
        height:auto !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
        clip:auto !important;
        clip-path:none !important;
        white-space:nowrap !important;
        color:inherit !important;
        -webkit-text-fill-color:inherit !important;
        font-size:16px !important;
        font-weight:700 !important;
        line-height:1 !important;
    }

    /* Geoeffnete Suche immer als eigene zweite Zeile, nicht als weisse Sammelbox. */
    html body.qp-calendar-ui .tribe-events-c-events-bar__search-container {
        grid-column:1 / -1 !important;
        grid-row:2 !important;
        position:static !important;
        inset:auto !important;
        width:100% !important;
        min-width:0 !important;
        margin:0 !important;
        padding:10px 0 0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        box-sizing:border-box !important;
        z-index:auto !important;
    }

    html body.qp-calendar-ui .tribe-events-c-events-bar__search-container .tribe-events-c-events-bar__search,
    html body.qp-calendar-ui .tribe-events-c-events-bar__search-container .tribe-events-c-search {
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
        gap:10px !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-group {
        min-height:52px !important;
        padding:0 12px !important;
        border:2px solid transparent !important;
        border-radius:12px !important;
        background:var(--qp-cal-white) !important;
        box-shadow:none !important;
        box-sizing:border-box !important;
        overflow:hidden !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__input-group:focus-within {
        border-color:var(--qp-cal-pink) !important;
    }

    html body.qp-calendar-ui .tribe-events-c-search__button {
        min-height:52px !important;
        width:100% !important;
        margin:0 !important;
        padding:0 16px !important;
        border:2px solid var(--qp-cal-pink) !important;
        border-radius:12px !important;
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        font-size:16px !important;
        font-weight:700 !important;
        line-height:1.1 !important;
        box-shadow:none !important;
        box-sizing:border-box !important;
    }

    /* Geoeffnete Ansichtsliste unter dem rechten Button. */
    html body.qp-calendar-ui .tribe-events-c-view-selector {
        position:relative !important;
        width:100% !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__content {
        left:auto !important;
        right:0 !important;
        top:calc(100% + 8px) !important;
        width:min(260px,calc(100vw - 32px)) !important;
        min-width:210px !important;
        margin:0 !important;
        padding:8px !important;
        border:0 !important;
        border-radius:12px !important;
        background:var(--qp-cal-white) !important;
        box-shadow:0 12px 28px rgba(18,17,65,.20) !important;
        box-sizing:border-box !important;
        z-index:100 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list {
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:6px !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-link {
        justify-content:flex-start !important;
        min-height:48px !important;
        width:100% !important;
        padding:10px 12px !important;
        border:0 !important;
        border-radius:10px !important;
        background:transparent !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        font-size:16px !important;
        text-decoration:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link {
        background:var(--qp-cal-pink) !important;
        color:var(--qp-cal-blue) !important;
        -webkit-text-fill-color:var(--qp-cal-blue) !important;
        font-weight:700 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector__list-item-icon {
        display:none !important;
    }
}

/* ==========================================================
   2.1.8 – Vollpruefung aller Kalenderansichten
   - Desktop: Ansichtswechsel auf allen TEC-Archiven sichtbar halten.
   - Monats-Datumwaehler: Jahresnavigation sichtbar und bedienbar.
   - Datepicker: nur ein klarer Fokus-/Auswahlrahmen.
   ========================================================== */
@media (min-width:768px) {
    html body.qp-calendar-ui .tribe-events-c-view-selector--tabs > .tribe-events-c-view-selector__button {
        display:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector--tabs > .tribe-events-c-view-selector__content {
        position:static !important;
        display:block !important;
        visibility:visible !important;
        opacity:1 !important;
        width:auto !important;
        min-width:0 !important;
        height:auto !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
        transform:none !important;
        background:transparent !important;
        box-shadow:none !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector--tabs .tribe-events-c-view-selector__list {
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        gap:12px !important;
        width:auto !important;
        margin:0 !important;
        padding:0 !important;
        visibility:visible !important;
        opacity:1 !important;
    }

    html body.qp-calendar-ui .tribe-events-c-view-selector--tabs .tribe-events-c-view-selector__list-item {
        display:block !important;
        visibility:visible !important;
        opacity:1 !important;
        width:auto !important;
        height:auto !important;
        margin:0 !important;
        padding:0 !important;
    }
}

/* TEC / Bootstrap Datepicker: Navigation darf nicht unsichtbar werden. */
html body.qp-calendar-ui .datepicker,
html body.qp-calendar-ui .datepicker-dropdown,
html body.qp-calendar-ui .tribe-events-c-top-bar__datepicker-container .datepicker {
    border:1px solid rgba(48,46,114,.18) !important;
    border-radius:12px !important;
    background:#fff !important;
    color:var(--qp-cal-blue) !important;
    box-shadow:0 14px 34px rgba(48,46,114,.18) !important;
}

html body.qp-calendar-ui .datepicker table {
    color:var(--qp-cal-blue) !important;
}

html body.qp-calendar-ui .datepicker table thead th,
html body.qp-calendar-ui .datepicker .datepicker-switch,
html body.qp-calendar-ui .datepicker .prev,
html body.qp-calendar-ui .datepicker .next {
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
    opacity:1 !important;
    visibility:visible !important;
}

html body.qp-calendar-ui .datepicker .prev,
html body.qp-calendar-ui .datepicker .next {
    display:table-cell !important;
    cursor:pointer !important;
    pointer-events:auto !important;
    min-width:42px !important;
    height:42px !important;
    border-radius:10px !important;
}

html body.qp-calendar-ui .datepicker .prev svg,
html body.qp-calendar-ui .datepicker .next svg,
html body.qp-calendar-ui .datepicker .prev .tribe-common-c-svgicon__svg-fill,
html body.qp-calendar-ui .datepicker .next .tribe-common-c-svgicon__svg-fill {
    color:var(--qp-cal-blue) !important;
    fill:var(--qp-cal-blue) !important;
    opacity:1 !important;
}

html body.qp-calendar-ui .datepicker .prev:hover,
html body.qp-calendar-ui .datepicker .next:hover,
html body.qp-calendar-ui .datepicker .datepicker-switch:hover {
    background:#f7f4fb !important;
}

html body.qp-calendar-ui .datepicker .datepicker-switch:focus,
html body.qp-calendar-ui .datepicker .datepicker-switch:focus-visible,
html body.qp-calendar-ui .datepicker .prev:focus,
html body.qp-calendar-ui .datepicker .prev:focus-visible,
html body.qp-calendar-ui .datepicker .next:focus,
html body.qp-calendar-ui .datepicker .next:focus-visible,
html body.qp-calendar-ui .datepicker table tr td span:focus,
html body.qp-calendar-ui .datepicker table tr td span:focus-visible,
html body.qp-calendar-ui .datepicker table tr td.day:focus,
html body.qp-calendar-ui .datepicker table tr td.day:focus-visible {
    outline:0 !important;
    box-shadow:inset 0 0 0 2px var(--qp-cal-blue) !important;
}

html body.qp-calendar-ui .datepicker table tr td span,
html body.qp-calendar-ui .datepicker table tr td.day {
    border:0 !important;
    box-shadow:none !important;
    outline:0 !important;
}

html body.qp-calendar-ui .datepicker table tr td span.active,
html body.qp-calendar-ui .datepicker table tr td span.active:hover,
html body.qp-calendar-ui .datepicker table tr td span.active:focus,
html body.qp-calendar-ui .datepicker table tr td.day.active,
html body.qp-calendar-ui .datepicker table tr td.day.active:hover,
html body.qp-calendar-ui .datepicker table tr td.day.active:focus {
    border:0 !important;
    border-radius:10px !important;
    background:var(--qp-cal-pink) !important;
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
    outline:0 !important;
    box-shadow:inset 0 0 0 2px var(--qp-cal-blue) !important;
}

html body.qp-calendar-ui .datepicker table tr td span.focused:not(.active),
html body.qp-calendar-ui .datepicker table tr td.day.focused:not(.active) {
    border:0 !important;
    border-radius:10px !important;
    background:#f7f4fb !important;
    outline:0 !important;
    box-shadow:none !important;
}

@media (max-width:767px) {
    html body.qp-calendar-ui .datepicker,
    html body.qp-calendar-ui .datepicker-dropdown {
        max-width:calc(100vw - 32px) !important;
    }
}


/* ==========================================================
   2.1.9 – Datepicker-Navigation sicher sichtbar
   Bootstrap/TEC kann die Pfeil-Glyphen farblich ueberschreiben.
   Deshalb werden die beiden Navigationszeichen zentral und
   kontrastreich als eigene Pseudozeichen gezeichnet.
   ========================================================== */
html body.qp-calendar-ui .datepicker thead tr:first-child th.prev,
html body.qp-calendar-ui .datepicker thead tr:first-child th.next,
html body.qp-calendar-ui .datepicker .prev,
html body.qp-calendar-ui .datepicker .next {
    display:table-cell !important;
    visibility:visible !important;
    opacity:1 !important;
    min-width:44px !important;
    width:44px !important;
    height:44px !important;
    padding:0 !important;
    border:2px solid var(--qp-cal-blue) !important;
    border-radius:10px !important;
    background:#fff !important;
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
    font-size:0 !important;
    line-height:44px !important;
    text-align:center !important;
    vertical-align:middle !important;
    cursor:pointer !important;
    pointer-events:auto !important;
    box-shadow:none !important;
    outline:0 !important;
}

html body.qp-calendar-ui .datepicker thead tr:first-child th.prev::before,
html body.qp-calendar-ui .datepicker .prev::before {
    content:"‹" !important;
}

html body.qp-calendar-ui .datepicker thead tr:first-child th.next::before,
html body.qp-calendar-ui .datepicker .next::before {
    content:"›" !important;
}

html body.qp-calendar-ui .datepicker thead tr:first-child th.prev::before,
html body.qp-calendar-ui .datepicker thead tr:first-child th.next::before,
html body.qp-calendar-ui .datepicker .prev::before,
html body.qp-calendar-ui .datepicker .next::before {
    display:inline-block !important;
    color:var(--qp-cal-blue) !important;
    -webkit-text-fill-color:var(--qp-cal-blue) !important;
    font-family:Arial, sans-serif !important;
    font-size:34px !important;
    font-weight:400 !important;
    line-height:38px !important;
    text-shadow:none !important;
    transform:none !important;
}

html body.qp-calendar-ui .datepicker thead tr:first-child th.prev > *,
html body.qp-calendar-ui .datepicker thead tr:first-child th.next > *,
html body.qp-calendar-ui .datepicker .prev > *,
html body.qp-calendar-ui .datepicker .next > * {
    display:none !important;
}

html body.qp-calendar-ui .datepicker thead tr:first-child th.prev:hover,
html body.qp-calendar-ui .datepicker thead tr:first-child th.next:hover,
html body.qp-calendar-ui .datepicker .prev:hover,
html body.qp-calendar-ui .datepicker .next:hover {
    background:var(--qp-cal-pink) !important;
}

html body.qp-calendar-ui .datepicker thead tr:first-child th.prev:focus-visible,
html body.qp-calendar-ui .datepicker thead tr:first-child th.next:focus-visible,
html body.qp-calendar-ui .datepicker .prev:focus-visible,
html body.qp-calendar-ui .datepicker .next:focus-visible {
    outline:3px solid var(--qp-cal-pink) !important;
    outline-offset:2px !important;
    box-shadow:none !important;
}
