
/* =========================================================
   EASY USE – Globale Seitengestaltung
   Joomla 6 / Cassiopeia Extended / SP Page Builder
   ========================================================= */

/* Allgemeine Typografie */

h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
}

/* Einheitliche Seitenüberschriften */

.easyuse-page-title h1,
h1.easyuse-page-title {
    color: #244A78;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 18px;
}

/* Einheitlicher Seiteninhalt */

.easyuse-page-text {
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* =========================================================
   EASY USE – Allgemeine Header-Einstellungen
   ========================================================= */

/* Logo immer proportional darstellen */

.container-header .navbar-brand img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 75px;
    object-fit: contain;
}

/* =========================================================
   EASY USE – Desktop ab 992px
   ========================================================= */

@media (min-width: 992px) {

    /* Drei Headerbereiche nebeneinander */

    .container-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        padding: 8px 24px !important;
        gap: 20px;
    }

    /* Standardabstände der Headerbereiche entfernen */

    .container-header > .container-topbar,
    .container-header > .grid-child {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        min-width: 0;
    }

    /* Sprachflaggen links */

    .container-header > .container-topbar {
        order: 1;
        flex: 0 0 auto;
    }

    /* Navigation neben den Flaggen */

    .container-header > .container-nav {
        order: 2;
        flex: 1 1 auto;
    }

    /* Logo ganz rechts */

    .container-header > .grid-child:not(.container-nav) {
        order: 3;
        flex: 0 0 auto;
        margin-left: auto !important;
    }

    .container-header .navbar-brand {
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header .navbar-brand img {
        max-height: 70px;
    }

    /* Linke Seitenspalte ausreichend breit */

    .site-grid.has-sidebar-left {
        grid-template-columns:
            minmax(250px, 22%)
            minmax(0, 1fr);
    }
}

/* =========================================================
   EASY USE – Tablet und Smartphone bis 991px
   ========================================================= */

@media (max-width: 991px) {

    /* Kompakte Anordnung in einer Zeile */

    .container-header {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px;
        padding: 8px 16px !important;
    }

    /* Standardabstände entfernen */

    .container-header > .container-topbar,
    .container-header > .grid-child {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        min-width: 0;
    }

    /* Sprachflaggen links */

    .container-header > .container-topbar {
        order: 1;
        flex: 0 0 auto !important;
    }

    /* Hamburger-Menü daneben */

    .container-header > .container-nav {
        order: 2;
        flex: 0 0 auto !important;
        padding: 0 !important;
    }

    /* Logo rechts */

    .container-header > .grid-child:not(.container-nav) {
        order: 3;
        flex: 0 1 auto !important;
        margin-left: auto !important;
    }

    .container-header .navbar-brand {
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header .navbar-brand img {
        max-height: 65px;
    }
}

/* =========================================================
   EASY USE – Smartphone bis 575px
   ========================================================= */

@media (max-width: 575px) {

    .container-header {
        gap: 8px;
        padding: 8px 12px !important;
    }

    .container-header .navbar-brand img {
        width: 75px !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Seitenüberschriften mobil */

    .easyuse-page-title h1,
    h1.easyuse-page-title {
        font-size: 1.65rem;
    }

    .easyuse-page-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}
