/* Generelle Korrektur für den Header auf Mobilgeräten */
@media (max-width: 576px) {
    /* Verhindert, dass der gesamte Kopfbereich starr nach rechts rausragt */
    .header {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Macht den Haupttitel kleiner und erlaubt den automatischen Zeilenumbruch */
    .navbar-brand .site-title {
        font-size: 1.5rem !important; /* Etwas kleiner als vorheriger Entwurf, damit es passt */
        line-height: 1.3 !important;
        white-space: normal !important; /* Erlaubt dem Text, in die nächste Zeile zu springen */
        display: block !important;
    }

    /* Passt die Unterüberschrift ("Unsere alte Webseite...") an */
    .navbar-brand .site-description {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        display: block !important;
        margin-top: 5px;
    }
}
/* ===================================================
   Waldenserverein Palmbach
   Modernes Hauptmenü für Cassiopeia
   =================================================== */

/* Header */
.container-header{
    background:#24396d;
    border-top:4px solid #c8a36a;
    box-shadow:0 2px 10px rgba(0,0,0,.15);
}

/* Menü mittig */
.container-header .mod-menu{
    justify-content:center;
    gap:4px;
}

/* Hauptmenüpunkte */
.container-header .mod-menu > li > a{
    color:#fff;
    font-weight:600;
    font-size:0.95rem;
    padding:12px 14px;
    position:relative;
    transition:.25s;
    text-decoration:none;
}

/* Goldene Trennlinie */
.container-header .mod-menu > li:not(:last-child) > a::after{
    content:"";
    position:absolute;
    right:-2px;
    top:25%;
    height:50%;
    width:1px;
    background:rgba(200,163,106,.45);
}

/* Goldene Linie unten */
.container-header .mod-menu > li > a::before{
    content:"";
    position:absolute;
    left:15%;
    bottom:4px;
    width:0;
    height:3px;
    background:#c8a36a;
    transition:.25s;
}

/* Hover */
.container-header .mod-menu > li > a:hover{
    color:#c8a36a;
}

/* Aktiver Menüpunkt */
.container-header .mod-menu > li.active > a{
    color:#c8a36a;
}

/* Goldene Linie einblenden */
.container-header .mod-menu > li > a:hover::before,
.container-header .mod-menu > li.active > a::before{
    width:70%;
}

/* Dropdown */
.container-header .mod-menu .mod-menu__sub{
    border-radius:10px;
    border:none;
    box-shadow:0 10px 30px rgba(0,0,0,.18);
    overflow:hidden;
}

/* Dropdown-Einträge */
.container-header .mod-menu .mod-menu__sub a{
    color:#24396d;
    padding:10px 18px;
    transition:.2s;
}

.container-header .mod-menu .mod-menu__sub a:hover{
    background:#f5f5f5;
    color:#c8a36a;
}

/* ==========================================
   Waldenserverein Palmbach
   Modernes Hauptmenü
   ========================================== */


/* Überschriften */

h1,h2,h3,h4{
    color:#24396d;
}

/* Links */

a{
    color:#24396d;
}

a:hover{
    color:#c8a36a;
}
/* =========================================================
   Hauptmenü
   ========================================================= */
/* ==========================================
   Mobiles Menü reparieren
   ========================================== */

@media (max-width: 991px){

    .container-header .mod-menu{
        display:block;
    }

    .container-header .mod-menu .mod-menu__sub{
        display:none;
        position:static;
        box-shadow:none;
        border-radius:0;
        margin-left:20px;
        background:#2d447f;
    }

    .container-header .mod-menu .metismenu-item.mm-active > .mod-menu__sub{
        display:block;
    }

    .container-header .mod-menu .mod-menu__sub a{
        color:#ffffff;
        padding:8px 15px;
    }

  /* Hauptmenü kompakter */
.container-header .mod-menu > li > a{
    padding:10px 12px;
    font-size:0.95rem;
}

.container-header .mod-menu__toggle-sub{
    padding:0 6px;
}
    .container-header .mod-menu .mod-menu__sub a:hover{
        background:#3d5699;
        color:#c8a36a;
    }

}
/* ==========================================
   Suchfeld
   ========================================== */

.mod-finder {
    margin: 20px 0;
}

.mod-finder__search {
    border: 2px solid #24396d;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all .3s ease;
}

.mod-finder__search:focus {
    border-color: #c8a36a;
    box-shadow: 0 0 8px rgba(200,163,106,.35);
    outline: none;
}

.mod-finder button,
.mod-finder .btn {
    background: #24396d;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
}

.mod-finder button:hover,
.mod-finder .btn:hover {
    background: #c8a36a;
    color: #24396d;

}
/* ==========================================
   Startseiten-Boxen Waldenserverein
   ========================================== */

.startbox{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 5px 18px rgba(0,0,0,.10);
    border:1px solid #e5e5e5;
    margin-bottom:30px;
}

.startbox .card-header{
    background:#f8f8f8;
    border-top:4px solid #c8a36a;
    border-bottom:1px solid #e5e5e5;
    padding:14px 20px;
}

.startbox .card-header h3,
.startbox h3{
    margin:0;
    color:#24396d;
    font-size:1.6rem;
    font-weight:600;
}

.startbox ul{
    list-style:none;
    margin:0;
    padding:15px 20px;
}

.startbox li{
    padding:10px 0;
    border-bottom:1px solid #f0f0f0;
}

.startbox li:last-child{
    border-bottom:none;
}

.startbox li a{
    color:#24396d;
    font-size:1.15rem;
    font-weight:500;
    text-decoration:none;
    transition:.25s;
}

.startbox li a:hover{
    color:#c8a36a;
    padding-left:6px;
}
/* ==========================================
   Rechte Seitenleiste kleiner
   ========================================== */

.sidebar-right .startbox h3,
.sidebar-right .startbox .card-header h3{
    font-size:1.15rem;
    font-weight:600;
}

.sidebar-right .startbox li a{
    font-size:0.95rem;
    font-weight:300;
    line-height:1.4;
}

.sidebar-right .startbox .card-body,
.sidebar-right .startbox .module-body{
    padding:12px 15px;
}

/* ==========================================
   Einheitliches Design aller Beitragsmodule
   ========================================== */

/* Linkliste */
.mod-list li,
.mod-articles li{
    padding:6px 0 !important;
    margin:0 !important;
    border-bottom:1px solid #ececec;
}

/* Letzte Zeile ohne Trennlinie */
.mod-list li:last-child,
.mod-articles li:last-child{
    border-bottom:none;
}

/* Links */
.mod-list li a,
.mod-articles li a{
    display:block;
    font-size:0.95rem !important;
    font-weight:500 !important;
    line-height:1.35 !important;
    color:#24396d;
    text-decoration:none;
}

/* Hover */
.mod-list li a:hover,
.mod-articles li a:hover{
    color:#c8a36a;
}
/* ==========================================================
   Joomla 6.1.2 Menü-Pfeile korrigieren
   ========================================================== */

.container-header .mod-menu li {
    display: flex;
    align-items: center;
}

.container-header .mod-menu li > a {
    display: flex;
    align-items: center;
}

.container-header .mod-menu__toggle-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #ffffff;
    vertical-align: middle;
}

.container-header .mod-menu__toggle-sub:hover {
    color: #c8a36a;
}
/* ==========================================================
   Smartphone-Optimierung
   ========================================================== */

@media (max-width: 768px) {

    /* Weniger Rand links und rechts */
    .grid-child {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Module etwas dichter zusammen */
    .startbox {
        margin-bottom: 18px;
    }

    /* Überschriften der Module */
    .startbox h3 {
        font-size: 1.45rem;
    }

    /* Beitragslinks */
    .mod-list li a,
    .mod-articles li a {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }

    /* Suchfeld */
    .mod-finder {
        margin: 12px 0 18px;
    }

    .mod-finder input {
        width: 100%;
    }
}
@media (max-width:768px){

.container-header .navbar-brand img{
    max-width:200px;
    height:auto;
}

}
@media (max-width:768px){

.startbox h3{
    font-size:1.2rem;
}

.startbox ul{
    padding:8px 16px;
}

.startbox li{
    padding:6px 0;
}

}
/* Smartphone: Startseiten-Module ausblenden */
@media (max-width:768px){

.container-top-a{
    display:none;
}

}
/* Smartphone: Breadcrumb ausblenden */
@media (max-width:768px){

.breadcrumb{
    display:none;
}

}
/* Mobiles Menü kompakter */
.container-header .mod-menu > li > a{
    padding:8px 10px;
}

.container-header .mod-menu li{
    margin:0;
}
/* Hellgrauer Seitenrand*/
body {
    background-color: #eeeeee;
}

.site {
    background-color: #ffffff;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.18);
}
body {
    background-color: #eeeeee;
}