/* ==========================================
   VfH – Suche im linken Hauptmenü
   Hellblauer Hintergrund, Lupe und Trennlinie
   ========================================== */

.mod-menu li:has(> a.vfh-suche-menue) {
    border-bottom: 1px solid #c8cdd3;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.mod-menu a.vfh-suche-menue {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f2ff;
    border: 1px solid #c4d9f2;
    border-radius: 6px;
    padding: 11px 14px;
    color: #164b89 !important;
    font-weight: 700;
    text-decoration: none;
}

.mod-menu a.vfh-suche-menue:hover,
.mod-menu a.vfh-suche-menue:focus {
    background: #d3e6ff;
    color: #103a70 !important;
    text-decoration: none;
}

.mod-menu a.vfh-suche-menue::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20px;
    margin-right: 10px;
}

/* ==========================================
   Zurück-nach-oben-Button
   dauerhaft sichtbar und fest positioniert
   ========================================== */

#back-top {
    position: fixed !important;
    right: 25px !important;
    bottom: 25px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==========================================
   MKK – Kommunenliste in 3 Spalten
   ========================================== */

#kommunen-liste {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 0;
    align-items: start;
}

#kommunen-liste p {
    margin-top: 0;
    margin-bottom: 4px;
    font-weight: bold;
}

#kommunen-liste ul {
    margin-top: 0;
    margin-bottom: 18px;
    padding-left: 20px;
}

#kommunen-liste p,
#kommunen-liste ul {
    break-inside: avoid;
}

@media (max-width: 800px) {
    #kommunen-liste {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   VfH – Markierung Gemeinde + Mitglieder
   ========================================================= */

.vfh-gemeinde-block.kommune-highlight {
    background: transparent;
    border-radius: 0;
}

/* Gemeindeüberschrift */

.vfh-gemeinde-block.kommune-highlight > p {
    background: #ffd54f;
    padding: 4px 6px;
    margin: 0;
}

/* Mitglieder der ausgewählten Gemeinde */

.vfh-gemeinde-block.kommune-highlight > ul {
    background: #fff4c7;
    padding-top: 4px;
    padding-bottom: 4px;
    margin-top: 0;
    margin-bottom: 18px;
}

/* Platzhalter "Noch kein Mitgliedsverein" */

.vfh-gemeinde-block.kommune-highlight .member-placeholder {
    background: transparent;
}

/* ==========================================
   MKK – Suchbereich Kommunen und Mitglieder
   ========================================== */

.vfh-kommunen-info {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background: #fcfcfc;
}

.vfh-suchbereich {
    width: 100%;
}

.vfh-suchbereich input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
}

/* Abstand zwischen Karte und Kommunenliste */

.vfh-kommunen-liste {
    margin-top: 20px;
}

/* ==========================================
   Schema für die Mitgliederseite
   ========================================== */

.vfh-mitglied {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px 35px;
}

/* Vereinsname über die gesamte Breite */

.vfh-mitglied > h3 {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
}

.vfh-mitglied .vfh-mitglied-logo {
    flex: 0 0 auto;
}

.vfh-mitglied .vfh-mitglied-logo img {
    display: block;
    max-width: 200px;
    height: auto;
}

.vfh-mitglied .vfh-mitglied-daten {
    border-collapse: separate;
    border-spacing: 0 7px;
    width: auto;
}

.vfh-mitglied .vfh-mitglied-daten th {
    position: relative;
    background: #f7f7f7;
    color: #333;
    text-align: left;
    vertical-align: top;
    padding: 9px 18px 9px 16px;
    font-weight: 600;
    white-space: nowrap;
}

.vfh-mitglied .vfh-mitglied-daten th::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #b40000;
}

.vfh-mitglied .vfh-mitglied-daten td {
    position: relative;
    background: #f7f7f7;
    text-align: left;
    vertical-align: top;
    padding: 9px 18px 9px 16px;
}

.vfh-mitglied .vfh-mitglied-daten td::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d7d7d7;
}

.vfh-mitglied .vfh-mitglied-daten a {
    color: #0066cc;
}

@media (max-width: 800px) {
    .vfh-mitglied {
        flex-direction: column;
        gap: 20px;
    }

    .vfh-mitglied .vfh-mitglied-logo {
        flex: none;
    }

    .vfh-mitglied .vfh-mitglied-daten {
        width: 100%;
    }

    .vfh-mitglied .vfh-mitglied-daten th {
        width: 35%;
    }
}

/* ==========================================
   VfH – Trennlinie vor dem Mitgliederbereich
   ========================================== */

.mod-menu li:has(> a.vfh-menutrennung) {
    border-top: 1px solid #c8cdd3;
    margin-top: 18px;
    padding-top: 14px;
}

/* Kunena: Nur den Abmelde-Eintrag ausblenden */

#kunena.layout #logout-form {
    display: none !important;
}

/* ==========================================
   VfH – iCagenda Veranstaltungsliste
   ========================================== */

.vfh-veranstaltungsliste ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vfh-veranstaltungsliste li {
    background: #f7f7f7;
    border-left: 5px solid #b40000;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.vfh-veranstaltungsliste li a {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
}

.vfh-veranstaltungsliste li a:hover {
    text-decoration: underline;
}

.vfh-veranstaltungsliste li span {
    color: #666;
    font-size: 13px;
}

/* ==========================================
   Startseite 2026 – Kartenbereich
   ========================================== */

.vfh-karte-2026 {
    width: 100%;
    max-width: 650px;
    aspect-ratio: 650 / 627;
    overflow: hidden;
    position: relative;
    container-type: inline-size;
}

.vfh-karte-2026 img {
    max-width: none;
}

/* Beide Kartenbilder gemeinsam proportional skalieren */

.vfh-karte-2026 .vfh-kartenebenen {
    position: absolute;
    left: 0;
    top: 0;
    width: 650px;
    height: 627px;
    transform-origin: top left;
    transform: scale(calc(100cqw / 650px));
}

.vfh-karte-2026 .vfh-kartenebenen img {
    max-width: none;
}

/* Startseite 2026 – auf schmalen Bildschirmen einspaltig */

@media (max-width: 1000px) {
    .vfh-startseite-2026 {
        flex-direction: column !important;
        align-items: center !important;
    }

    .vfh-startseite-2026 > div {
        width: 100% !important;
        flex: 0 1 auto !important;
    }
}

/* ==========================================
   VfH – Fußzeile
   Datenschutz | Impressum | Copyright
   Bearbeiten-Buttons rechts
   ========================================== */

.container-footer {
    position: relative;
}

.container-footer .grid-child {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-right: 110px;
}

/* Rechtliche Links links */

.container-footer .vfh-footer-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Menüeinträge */

.container-footer .vfh-footer-menu li {
    margin: 0;
    padding: 0;
}

/* Joomla-Modulreihenfolge:
   Copyright-Modul zuerst,
   Menü Fußzeile danach.
   Anzeige umkehren. */

.container-footer .grid-child > .mod-footer {
    order: 2;
    margin: 0;
}

.container-footer .grid-child > .vfh-footer-menu {
    order: 1;
}

.container-footer .grid-child > ul.vfh-footer-menu {
    order: 1;
}

/* Bearbeiten-Button des Fußzeilenmenüs */

.container-footer .vfh-footer-menu .jmodedit {
    position: absolute;
    top: 15px;
    right: 110px;
    transform: none;
    z-index: 10;
}

/* Bearbeiten-Button des Copyright-Moduls */

.container-footer .mod-footer .jmodedit {
    position: absolute;
    top: 15px;
    right: 60px;
    transform: none;
    z-index: 10;
}

/* Veranstaltungstabelle auf Smartphones seitlich scrollbar */

@media (max-width: 767px) {
    .vfh-tabelle-scroll {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* Kopfleiste kompakter gestalten */
.container-header .navbar-brand {
    padding: 0;
    margin: 0;
}
.container-header .container-nav {
    padding-top: 0;
    padding-bottom: 5px;
}
@media (min-width: 1200px) {
    .container-header {
        position: relative;
    }
    .container-header .container-nav {
        position: absolute;
        right: 30px;
        bottom: 10px;
        width: auto;
        padding: 0;
    }
}
/* Hintergrundfarbe der Kopfleiste */
.container-header {
    background: #390B6D;
}
/* Kunena – Kategorie-Schnellauswahl ausblenden */
#kunena form#jumpto {
    display: none !important;
}
