#lfk-stec-themen:has(> .lfk-stec-pilot) > .lfk-stec-cal-content {
    display: none !important;
}
.lfk-stec-icon-nav.lfk-stec-pilot-nav {
    right: max(5px, env(safe-area-inset-right, 0px));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.lfk-stec-pilot {
    --lfk-pilot-navy: #1e3f59;
    --lfk-pilot-card: #f5f2e9;
    padding: 0 max(12px, calc(64px - (100vw - 100%) / 2)) 18px 0;
}
.lfk-stec-pilot-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 12px;
    padding: 10px;
    background: var(--lfk-pilot-card);
    color: var(--lfk-pilot-navy);
}
.lfk-stec-pilot-toolbar h2 { flex-basis: 100%; margin: 0; color: inherit; }
.lfk-stec-pilot-toolbar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.lfk-stec-pilot-toolbar > a { color: var(--lfk-pilot-navy); text-decoration: underline; }
#lfk-stec-ausstellungen .stec-submit-event { display: none; }
.lfk-stec-pilot-toolbar nav a { padding: .35rem .6rem; color: inherit; }
.lfk-stec-pilot-toolbar nav a[aria-current] { background: var(--lfk-pilot-navy); color: white; border-radius: 4px; }

.lfk-stec-pilot-museum .lfk-stec-pilot-museum-card {
    position: relative;
    display: block;
    max-width: 540px;
    background: var(--stec-grid-cell-bg, var(--lfk-pilot-card));
    color: var(--stec-grid-title-color, #454850);
    border: 1px solid #b7b7b3;
    border-radius: 6px;
    overflow: hidden;
}
.lfk-stec-pilot-museum-card summary {
    display: block;
    list-style: none;
    cursor: pointer;
}
.lfk-stec-pilot-museum-card summary::-webkit-details-marker { display: none; }
.lfk-stec-pilot-tag { display: inline-block; padding: 4px 9px; color: white; background: var(--lfk-pilot-navy); border-radius: 6px; }
.lfk-stec-pilot-museum-card .stec-grid-event-container-wrapper { display: block; }
.lfk-stec-pilot-museum-card .stec-grid-event-title { display: block; }
.lfk-stec-pilot-details { background: var(--lfk-pilot-card); padding: 14px; color: #454850; }
.lfk-stec-pilot-details summary { cursor: pointer; font-weight: 700; margin-bottom: .5rem; }
.lfk-stec-pilot-details a { text-decoration: underline; }

.lfk-stec-pilot-map {
    position: relative;
    height: clamp(240px, 55vw, 420px);
    overflow: hidden;
    background: #e5e7de;
    border-radius: 6px;
    margin-bottom: 10px;
}
.lfk-stec-pilot-tiles img { position: absolute; max-width: none; width: 256px; height: 256px; }
.lfk-stec-pilot-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -85%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--lfk-pilot-navy);
    color: white !important;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 22px;
}
.lfk-stec-pilot-osm { position: absolute; right: 0; bottom: 0; padding: 2px 6px; background: #fff; color: #203e56; font-size: 11px; }

.lfk-stec-pilot-museum .stec-layout-grid-wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    width: 100%;
}
.lfk-stec-pilot-museum .lfk-stec-pilot-museum-card { width: 100%; max-width: none; min-width: 0; }
.lfk-stec-pilot-museum .stec-grid-event-title { overflow-wrap: anywhere; }
.lfk-stec-pilot-map-locations { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .65rem; }
.lfk-stec-pilot-map-locations a { display: inline-block; padding: .35rem .5rem; background: #f5f2e9; color: #1e3f59; }
.lfk-stec-pilot-map-locations a[aria-current] { background: #1e3f59; color: #fff; outline: 1px solid white; }
@media (max-width: 1050px) {
    .lfk-stec-pilot-museum .stec-layout-grid-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 790px) {
    .lfk-stec-pilot-museum .stec-layout-grid-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .lfk-stec-pilot-museum .stec-layout-grid-wrap { grid-template-columns: minmax(0, 1fr); }
}

.lfk-stec-pilot .lfk-stec-card-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
    margin: 0 .9rem .65rem;
    text-align: center;
    color: var(--stec-grid-text-color, #454850);
}

.lfk-stec-catalog-filters { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: end; width: 100%; }
.lfk-stec-catalog-filters label { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.lfk-stec-catalog-filters button { padding: .4rem .65rem; border: 1px solid #1e3f59; color: #1e3f59; background: #fff; }
.lfk-stec-pilot-map-locations label { padding: .35rem .5rem; background: #f5f2e9; color: #1e3f59; }
.lfk-stec-pilot-map .lfk-stec-pilot-pin { width: 31px; height: 31px; font-size: 15px; cursor: pointer; }
.lfk-stec-pilot-osm { z-index: 2; }
.lfk-stec-catalog-empty { color: white; }

.lfk-kultur-cover { display: block; height: clamp(88px, 12vw, 150px); overflow: hidden; }
.lfk-kultur-cover img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.lfk-kultur-cover-empty { display: grid; place-items: center; color: #4b6578; background: #e3e9ec; font-size: 2rem; }
.lfk-kultur-galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: .5rem; }
.lfk-kultur-galerie img { display: block; width: 100%; height: auto; }
.lfk-stec-exhibit-preview .stec-layout-grid-wrap {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    width: 100%;
    height: auto !important;
}
.lfk-stec-exhibit-preview .stec-layout-grid-wrap > .stec-grid-event {
    position: relative !important;
    width: 100% !important;
    min-width: 0;
    transform: none !important;
    inset: auto !important;
}
@media (max-width: 1050px) {
    .lfk-stec-exhibit-preview .stec-layout-grid-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 790px) {
    .lfk-stec-exhibit-preview .stec-layout-grid-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .lfk-stec-exhibit-preview .stec-layout-grid-wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Keep native STEC cards while letting the selected order drive their row positions. */
.lfk-stec-exhibit-preview .stec-layout-grid-wrap > div,
.lfk-stec-exhibit-preview .stec-layout-grid-wrap > div > div,
.lfk-stec-exhibit-preview .stec-layout-grid-wrap > div > div > div {
    display: contents !important;
}
.lfk-stec-exhibit-preview .stec-layout-grid-wrap .stec-grid-event {
    width: 100%;
    min-width: 0;
}

.lfk-stec-pilot .stec-grid-event .stec-grid-event-nfo:has(> i.fa-map-marker-alt) {
    justify-content: flex-start;
    text-align: left;
}

.lfk-stec-pilot-map { touch-action: none; cursor: grab; }
.lfk-stec-pilot-map.lfk-map-dragging { cursor: grabbing; }
.lfk-stec-region-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lfk-stec-region-overlay path { fill-opacity: .49; }
.lfk-stec-region-overlay [data-lfk-region="extern"] { fill-opacity: .66; }
.lfk-stec-map-controls { position: absolute; z-index: 2; top: 8px; left: 8px; display: grid; gap: 3px; }
.lfk-stec-map-controls button { width: 40px; height: 40px; border: 1px solid #61717d; border-radius: 4px; background: #fff; color: #1e3f59; font-size: 19px; cursor: pointer; }
.lfk-stec-map-controls button:disabled { opacity: .5; cursor: default; }
.lfk-map-pin-count { position: absolute; top: -6px; right: -7px; padding: 0 3px; min-width: 14px; color: #1e3f59; background: #fff; border-radius: 12px; font-size: 10px; line-height: 1.35; }
.lfk-stec-map-legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; padding: .45rem .65rem; margin: 0 0 .75rem; list-style: none; color: #1e3f59; background: #f5f2e9; }
.lfk-stec-map-legend li { margin: 0; display: flex; align-items: center; gap: .3rem; }
.lfk-stec-map-legend span { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.lfk-stec-pilot-osm a { color: inherit; }

.lfk-stec-map-legend button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .5rem;
    background: transparent;
    color: inherit;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}
.lfk-stec-map-legend button:hover,
.lfk-stec-map-legend button[aria-pressed="true"] {
    border-color: #1e3f59;
    background: #fff;
}
.lfk-stec-map-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 2px 6px;
    background: #fff;
    color: #203e56;
    font-size: 10px;
    line-height: 1.4;
}
@media (max-width: 770px) {
    .lfk-stec-map-credit { bottom: 32px; }
    .lfk-stec-pilot-osm { max-width: 100%; line-height: 1.15; }
}

/* Blend against the base map while keeping cards, pins and controls outside the blend. */
.lfk-stec-pilot-map { isolation: isolate; }
.lfk-stec-pilot-map:is([data-blend="multiplizieren"], [data-blend="kontur"]) .lfk-stec-region-overlay {
    mix-blend-mode: multiply;
}
.lfk-stec-pilot-map:is([data-blend="multiplizieren"], [data-blend="kontur"]) .lfk-stec-region-overlay path {
    fill-opacity: .65;
}
.lfk-stec-pilot-map:is([data-blend="multiplizieren"], [data-blend="kontur"]) .lfk-stec-region-overlay [data-lfk-region="extern"] {
    fill-opacity: .66;
}
.lfk-stec-pilot-map[data-blend="kontur"] .lfk-stec-region-overlay path:not([data-lfk-region="extern"]) {
    fill-opacity: .56;
    stroke: #273746;
    stroke-width: 1;
    stroke-opacity: .55;
    stroke-linejoin: round;
}

.lfk-stec-pilot-map[data-blend="leuchtend"] .lfk-stec-region-overlay path {
    fill-opacity: .58;
}
.lfk-stec-pilot-map[data-blend="leuchtend"] .lfk-stec-region-overlay [data-lfk-region="extern"] {
    fill-opacity: .81;
}
.lfk-stec-map-legend [data-lfk-focus-region="extern"] span {
    box-shadow: inset 0 0 0 1px #8b9aa6;
}
