/* Seitentitel fett darstellen */
.container-header .navbar-brand,
.container-header .navbar-brand a,
.container-header .site-title {
    font-weight: 700;
}
/* Villator: Gestaltung ähnlich der bisherigen Website */

html {
    background: #f4f6f7;
}

/* Zentrierte weiße Seite */
body.site {
    --cassiopeia-font-family-body: Arial, Helvetica, sans-serif;
    --cassiopeia-font-family-headings: Arial, Helvetica, sans-serif;
    width: calc(100% - 32px);
    max-width: 1000px;
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgb(0 0 0 / 5%);
}

/* Weißer Kopfbereich statt blauem Verlauf */
.container-header {
    background: #fff;
    background-image: none;
    box-shadow: none;
}

.container-header > .grid-child {
    padding: 16px 20px 0;
}

.container-header .navbar-brand,
.container-header .navbar-brand a {
    color: #163340;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

/* Abstand zum Seitenrand */
.site-grid {
    padding: 0 20px 20px;
}

/* Helle Boxen für Hauptmenü und Login */
.container-sidebar-right .card {
    background: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: none;
}

.container-sidebar-right .card-header {
    padding: 14px 16px 0;
    background: transparent;
    border-bottom: 0;
    color: #333;
    font-size: 18px;
    font-weight: 400;
}

.container-sidebar-right .card-body {
    padding: 12px 16px 16px;
}

/* Kompaktes Menü */
.container-sidebar-right .mod-menu {
    gap: 0;
    font-size: 13px;
    line-height: 1.4;
}

.container-sidebar-right .mod-menu a {
    padding-top: 2px;
    padding-bottom: 2px;
    color: #006b94;
    text-decoration: none;
}

.container-sidebar-right .mod-menu a:hover,
.container-sidebar-right .mod-menu a:focus-visible {
    text-decoration: underline;
}

/* Überschriften und Beitragsbilder */
.container-component h1 {
    font-size: 26px;
}

.container-component h2 {
    font-size: 24px;
}

.container-component img {
    max-width: 100%;
    height: auto;
}

/* Kleinere Außenabstände auf schmalen Bildschirmen */
@media (max-width: 767px) {
    body.site {
        width: calc(100% - 16px);
        margin: 8px auto;
        min-height: calc(100vh - 16px);
    }

    .container-header .navbar-brand,
    .container-header .navbar-brand a {
        font-size: 28px;
    }

    .site-grid {
        padding: 0 12px 16px;
    }
}
/* Untermenüs in der rechten Seitenleiste dauerhaft anzeigen */
.container-sidebar-right .mod-menu .mod-menu__sub {
    display: block !important;
    position: static;
    visibility: visible;
    opacity: 1;
    height: auto !important;
    margin: 4px 0 8px;
    padding-inline-start: 14px;
}

/* Nicht mehr benötigte Aufklapp-Schalter ausblenden */
.container-sidebar-right .mod-menu .mod-menu__toggle-sub {
    display: none !important;
}
