/* =========================================
   GRUNDLAYOUT
   ========================================= */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

body {
    overflow-x: hidden;
}

.site-grid {
    margin: 0 !important;
    padding: 0 !important;
}

.container-banner {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================
   ONEPAGER – STARTSEITE
   ========================================= */

.onepager {
    width: 100%;
    height: 100vh;
    min-height: 100vh;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;

    background-image: url('/images/hintergrund.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-family: "Libre Franklin", sans-serif;

    overflow: hidden;
}


/* =========================================
   INHALTSBOX
   ========================================= */

.onepager-content {
    width: min(90%, 500px);

    padding: 55px 60px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.92);

    border-radius: 14px;

    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.18);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 25px;

    color: #58585d;
}


/* =========================================
   LOGO
   ========================================= */

.onepager-logo {
    display: block;

    width: auto;
    max-width: 350px;
    max-height: 160px;

    object-fit: contain;
}


/* =========================================
   TRENNLINIE
   ========================================= */

.onepager-divider {
    width: 55px;
    height: 2px;

    background: #258e71;

    margin: 5px 0;
}


/* =========================================
   ADRESSE
   ========================================= */

.onepager-address {
    font-size: 19px;
    line-height: 1.6;
}


/* =========================================
   KONTAKT
   ========================================= */

.onepager-contact {
    display: flex;
    flex-direction: column;

    gap: 5px;

    font-size: 18px;
    line-height: 1.5;
}


/* =========================================
   LABELS
   ========================================= */

.onepager-label {
    margin-bottom: 8px;

    color: #258e71;

    font-size: 18px;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================
   LINKS
   ========================================= */

.onepager-contact a {
    color: #58585d;
    text-decoration: none;

    transition: color 0.2s ease;
}

.onepager-contact a:hover {
    color: #258e71;
}


/* =========================================
   HOME – JOOMLA-INHALTSBEREICH AUSBLENDEN
   ========================================= */

body.itemid-101 .container-component {
    display: none !important;
}


/* =========================================
   IMPRESSUM / DATENSCHUTZ
   ========================================= */

body.itemid-109 {
    margin: 0 !important;
    padding: 0 !important;

    background-image: url('/images/hintergrund.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    background-attachment: fixed;

    font-family: "Libre Franklin", sans-serif;
}


/* Hintergrund für gesamten Seitenbereich */

body.itemid-109 .site-grid {
    min-height: 100vh;

    background-image: url('/images/hintergrund.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}


/* Joomla Inhaltsbereich */

body.itemid-109 .container-component {
    display: block !important;

    width: 100%;

    margin: 0 !important;

    padding: 60px 20px 120px !important;

    box-sizing: border-box;
}


/* =========================================
   IMPRESSUM BOX
   ========================================= */

body.itemid-109 .legal-page {
    width: min(90%, 850px);

    margin: 0 auto 80px;

    padding: 55px 65px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 14px;

    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.18);

    color: #58585d;

    font-family: "Libre Franklin", sans-serif;

    line-height: 1.7;
}


/* =========================================
   IMPRESSUM ÜBERSCHRIFT
   ========================================= */

body.itemid-109 .legal-page h1 {
    margin: 0 0 40px;

    color: #58585d;

    font-size: 32px;
    font-weight: 600;

    text-align: center;
}


/* =========================================
   IMPRESSUM UNTERÜBERSCHRIFTEN
   ========================================= */

body.itemid-109 .legal-page h2 {
    margin: 35px 0 10px;

    color: #258e71;

    font-size: 20px;
    font-weight: 600;

    letter-spacing: 0.5px;
}

body.itemid-109 .legal-page section:first-of-type h2 {
    margin-top: 0;
}


/* =========================================
   IMPRESSUM TEXT
   ========================================= */

body.itemid-109 .legal-page p {
    margin: 0 0 18px;

    font-size: 16px;
}


/* =========================================
   IMPRESSUM LINKS
   ========================================= */

body.itemid-109 .legal-page a {
    color: #258e71;

    text-decoration: none;
}

body.itemid-109 .legal-page a:hover {
    text-decoration: underline;
}


/* =========================================
   FOOTER
   ========================================= */

.onepager-footer {
    width: 100%;

    box-sizing: border-box;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 18px;

    padding: 12px 20px;

    background: #58585d;

    color: #ffffff;

    font-family: "Libre Franklin", sans-serif;

    font-size: 13px;

    line-height: 1.4;

    text-align: center;
}


/* Footer Links */

.onepager-footer a {
    color: #ffffff;

    text-decoration: none;
}

.onepager-footer a:hover {
    color: #258e71;
}


/* =========================================
   MOBILE – ONEPAGER
   ========================================= */

@media (max-width: 768px) {

    .onepager {
        height: 100vh;
        min-height: 100vh;

        background-image: url('/images/hintergrund.jpg');

        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .onepager-content {
        width: 82%;

        padding: 40px 25px;

        border-radius: 10px;

        gap: 20px;
    }

    .onepager-logo {
        max-width: 260px;
        max-height: 120px;
    }

    .onepager-address {
        font-size: 17px;
    }

    .onepager-contact {
        font-size: 16px;
    }

    .onepager-label {
        font-size: 17px;
    }
}


/* =========================================
   MOBILE – IMPRESSUM
   ========================================= */

@media (max-width: 768px) {

    body.itemid-109 .site-grid {
        min-height: 100vh;

        background-image: url('/images/hintergrund.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    body.itemid-109 .container-component {
        padding: 30px 12px 110px !important;
    }

    body.itemid-109 .legal-page {
        width: 94%;

        margin-bottom: 70px;

        padding: 35px 25px;

        border-radius: 10px;
    }

    body.itemid-109 .legal-page h1 {
        margin-bottom: 30px;

        font-size: 26px;
    }

    body.itemid-109 .legal-page h2 {
        margin-top: 28px;

        font-size: 18px;
    }

    body.itemid-109 .legal-page p {
        font-size: 15px;

        line-height: 1.6;
    }
}


/* =========================================
   MOBILE – FOOTER
   ========================================= */

@media (max-width: 768px) {

    .onepager-footer {
        flex-direction: column;

        align-items: center;

        gap: 4px;

        padding: 10px 15px;

        font-size: 11px;
    }
}


/* =========================================
   SEHR KLEINE SMARTPHONES
   ========================================= */

@media (max-width: 400px) {

    .onepager-content {
        width: 88%;

        padding: 30px 20px;

        gap: 17px;
    }

    .onepager-logo {
        max-width: 220px;
        max-height: 100px;
    }

    .onepager-address {
        font-size: 16px;
    }

    .onepager-contact {
        font-size: 15px;
    }

    .onepager-label {
        font-size: 16px;
    }

    .onepager-footer {
        font-size: 10px;

        padding: 8px 10px;
    }
}

/* =========================================
   FOOTER – VOLLE BREITE
   ========================================= */

/* Cassiopeia-Container des Footer-Moduls entfernen */

.container-footer {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
}


/* Äußerer Footer-Bereich */

.container-footer .grid-child {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
}


/* Unser eigentlicher Footer */

.container-footer .onepager-footer {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    box-sizing: border-box;

    background: #58585d !important;

    color: #ffffff;

    padding: 12px 20px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 18px;

    font-family: "Libre Franklin", sans-serif;
    font-size: 13px;
    line-height: 1.4;

    text-align: center;
}


/* Footer-Links */

.container-footer .onepager-footer a {
    color: #ffffff !important;

    text-decoration: none;
}

.container-footer .onepager-footer a:hover {
    color: #258e71 !important;
}


/* =========================================
   WEISSEN ABSTAND UNTER DEM ONEPAGER
   ========================================= */

body.itemid-101 .site-grid {
    margin: 0 !important;
    padding: 0 !important;
}


/* Banner ohne zusätzlichen Abstand */

body.itemid-101 .container-banner {
    margin: 0 !important;
    padding: 0 !important;
}


/* Footer direkt an den Onepager */

body.itemid-101 .container-footer {
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .container-footer .onepager-footer {
        flex-direction: column;

        gap: 4px;

        padding: 10px 15px;

        font-size: 11px;
    }
}