/* Kategorien – Karten wie Veranstaltungen. Ersetzt tmp/prostyle.css (Regeln oben übernommen). */
html, body { scroll-behavior: auto !important; }
.kat-suche {
    width: 100%;
    margin: 0 0 0.45rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #e0d6c8;
    border-radius: 8px;
    font-size: 1rem;
}
.kat-az { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.45rem; }
.kat-az a {
    min-width: 1.85rem;
    min-height: 1.85rem;
    line-height: 1.85rem;
    text-align: center;
    padding: 0 0.25rem;
    border-radius: 4px;
    background: #f4efe6;
    color: #3d3428;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
}
.kat-wahl-rechts .kat-gruppe {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}
.kat-seite #map.suchergebnis-karte {
    height: 340px;
    margin: 0 0 0.8rem;
    scroll-margin-top: 0;
    position: relative;
    z-index: 1;
    background: #e9ecef;
}
/* Karte wieder fest: in kategorienliste-preview.inc $katKarteFest = true; */
.kat-seite.kat-karte-fest #map.suchergebnis-karte {
    position: sticky !important;
    top: var(--kat-kopf, 0px);
    z-index: 20;
}
div#Kopf { position: sticky !important; top: 0 !important; z-index: 40; background-color: #fefed3; }
.kat-seite article.kat-eintrag-aktiv {
    outline: 2px solid #b0893e;
    outline-offset: 3px;
}
.kat-unten-platz { height: 0; min-height: 0; }
.preview-hinweis { margin: 0.6rem 0 0.8rem; font-size: 0.95rem; color: #5c5348; }
.kat-hoch {
    display: none;
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 50;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: #3d3428;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(40, 30, 10, 0.22);
}
.kat-hoch.is-on { display: block; }

.kat-wahl, .kat-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(40, 30, 10, 0.06);
    padding: 0.85rem 1rem;
    margin-bottom: 0.7rem;
}
.kat-wahl {
    position: relative;
    background: linear-gradient(180deg, #fbf8f4 0%, #efe6da 100%);
    border: 1px solid rgba(80, 60, 40, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(60, 40, 20, 0.06);
}
.kat-wahl-links { width: 230px; max-width: 230px; }
.kat-wahl-rechts-wrap {
    position: absolute;
    top: 0.85rem;
    bottom: 0.85rem;
    left: calc(1rem + 230px + 1rem);
    right: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.kat-wahl-rechts { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.kat-suchleiste {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 10px;
    padding: 0.45rem 0.55rem 0.3rem;
    box-shadow: 0 6px 14px rgba(120, 70, 10, 0.08);
}
.kat-ad-horizontal { margin: 0.4rem 0 0.8rem; }
.kat-ad-vertikal { margin-top: 0.6rem; }
.kat-link {
    display: block;
    padding: 0.4rem 0.6rem;
    margin: 0.12rem 0;
    border-radius: 6px;
    color: #3d3428;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.3;
}
.kat-link:hover { background: #f4efe6; text-decoration: none; color: #1a1a1a; }
.kat-link-aktiv, .kat-link-aktiv:hover { background: #0a58ca; color: #fff; font-weight: 600; }
.kat-pill {
    display: inline-block;
    margin: 0.2rem 0.3rem 0.2rem 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f4efe6;
    color: #3d3428;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.35;
}
.kat-pill:hover { background: #e7dfd2; text-decoration: none; color: #1a1a1a; }
.kat-pill-komm:not(.kat-pill-aktiv) { background: #f3e4c4; }
.kat-pill-komm:not(.kat-pill-aktiv):hover { background: #ead6ae; }
.kat-pill-aktiv, .kat-pill-aktiv:hover { background: #0a58ca; color: #fff; }
.kat-block h3 { font-size: 1.2rem; margin: 0 0 1rem; color: #2c241c; }
.kat-seite .veranstaltung-karte-komm {
    height: auto !important;
    border: 2px solid #9ec5fe;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.12);
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
}
.kat-seite .such-karte-komm-zeile {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin: 0;
}
.kat-seite .veranstaltung-komm-bild {
    flex: 0 0 34%;
    max-width: 34%;
    min-height: 160px !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 12px;
}
.kat-seite .veranstaltung-komm-bild a { display: flex; align-items: center; justify-content: center; width: 100%; }
.kat-seite .such-bild-komm {
    width: auto !important;
    max-width: 100% !important;
    max-height: 200px !important;
    height: auto !important;
    object-fit: contain;
}
.kat-seite .such-karte-komm-zeile > .col-md-8,
.kat-seite .such-karte-komm-zeile > .d-flex {
    flex: 1 1 auto;
    max-width: 66%;
    background: #fff;
}
.kat-seite .veranstaltung-komm-titel { color: #0a58ca; font-size: 1.25rem; }
.kat-seite .veranstaltung-komm-bild {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 12px;
}
.kat-seite .such-bild-komm {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}
.kat-seite .such-karte-klein-bild {
    display: block;
    width: 100%;
    height: 150px !important;
    min-height: 0 !important;
    max-height: 150px !important;
    overflow: hidden;
    line-height: 0;
    background: #f5f5f5;
    flex-shrink: 0;
}
.kat-seite .such-karte-klein-img {
    display: block;
    width: 100% !important;
    height: 150px !important;
    max-height: 150px !important;
    object-fit: cover !important;
    object-position: center center;
}
.kat-seite .such-karte-klein .card-title { color: #0a58ca; font-size: 1rem; }
.kat-seite .btn-primary {
    color: #222 !important;
    background: #ddd !important;
    border: 1px solid #aaa !important;
}
@media (max-width: 767.98px) {
    .kat-wahl-links, .kat-wahl-rechts-wrap { max-width: none; width: 100%; }
    .kat-wahl-rechts-wrap {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        margin-top: 0.6rem;
        overflow: visible;
    }
    .kat-wahl-links { max-height: none; }
    .kat-wahl-rechts { max-height: 55vh; }
    .kat-seite #map.suchergebnis-karte,
    .kat-seite #map.leaflet-container {
        height: 160px !important;
        max-height: 160px !important;
        touch-action: pan-y pinch-zoom !important;
    }
    .kat-link, .kat-pill, .kat-az a { min-height: 2.5rem; }
    .kat-link { display: flex; align-items: center; }
    .kat-pill { padding: 0.45rem 0.85rem; }
    .kat-seite .such-karte-komm-zeile { flex-direction: column; }
    .kat-seite .veranstaltung-komm-bild,
    .kat-seite .veranstaltung-komm-bild.col-4,
    .kat-seite .kat-karte-text {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    .kat-seite .such-karte-komm-zeile { flex-direction: column; }
    .kat-seite .such-karte-komm-zeile > .col-md-8,
    .kat-seite .such-karte-komm-zeile > .d-flex { max-width: 100%; }
}

