/* =========================================
   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%;

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

    box-sizing: border-box;

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

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

    text-align: center;
}


/* =========================================
   LOGO – WEISS-TRANSPARENTER BEREICH
   ========================================= */

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

    margin: 0 !important;
    padding: 20px !important;

    box-sizing: border-box;

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

    display: flex;
    justify-content: center;
    align-items: center;
}


/* Link um das Logo */

.onepager-logo-container a {
    display: block;

    margin: 0 auto;

    line-height: 0;

    text-align: center;
}


/* Logo */

.onepager-logo {
    display: block;

    width: auto;

    max-width: 200px;
    max-height: 160px;

    object-fit: contain;

    margin: 0 auto;
}


/* =========================================
   ABSTAND ZWISCHEN LOGO UND FOOTER
   ========================================= */

.onepager-spacer {
    width: 100%;

    flex: 1 1 auto;

    min-height: 60px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    background: transparent;
}


/* =========================================
   STARTSEITE – GRUNDSTRUKTUR
   ========================================= */

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

    overflow: hidden;
}


/* Inhalt ausblenden */

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


/* =========================================
   STARTSEITE – BILD
   ========================================= */

body.itemid-101 .container-banner {
    width: 100% !important;

    height: 100vh !important;
    min-height: 100vh !important;

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

    box-sizing: border-box;

    display: flex !important;
    flex-direction: column !important;

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


/* Onepager */

body.itemid-101 .onepager {
    width: 100% !important;

    height: 100% !important;
    min-height: 0 !important;

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

    box-sizing: border-box;

    background-image: none !important;
}


/* =========================================
   STARTSEITE – FOOTER FIX AM BILDSCHIRMRAND
   ========================================= */

body.itemid-101 .container-footer {
    position: fixed !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;

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

    z-index: 1000 !important;

    flex: none !important;
}


/* =========================================
   LEGAL-PAGE – GRUNDLAYOUT
   ========================================= */

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 !important;

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


/* =========================================
   LEGAL-PAGE – SITE GRID
   ========================================= */

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

    min-height: 100vh;

    background: transparent !important;
}


/* =========================================
   LEGAL-PAGE – INHALT
   ========================================= */

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

    width: 100% !important;

    margin: 0 !important;

    padding: 0 20px 120px !important;

    box-sizing: border-box;
}


/* =========================================
   LEGAL-PAGE – LOGO-BALKEN
   ========================================= */

body.itemid-109 .legal-logo-container {
    position: relative !important;

    width: 100vw !important;
    max-width: none !important;

    margin-top: 0 !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 40px !important;
    margin-left: calc(50% - 50vw) !important;

    padding: 20px !important;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.75) !important;

    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;
    outline: none !important;

    top: 0 !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}


/* Alle möglichen Abstände innerhalb des Logo-Bereichs */

body.itemid-109 .legal-logo-container,
body.itemid-109 .legal-logo-container *,
body.itemid-109 .legal-logo-container a {
    border-top: 0 !important;
    border-bottom: 0 !important;
    outline: none !important;
}


/* Link */

body.itemid-109 .legal-logo-container a {
    display: block !important;

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

    line-height: 0 !important;

    border: none !important;

    box-shadow: none !important;
}


/* Legal-Logo */

body.itemid-109 .legal-logo {
    display: block !important;

    width: auto !important;

    max-width: 200px !important;
    max-height: 160px !important;

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

    border: none !important;

    outline: none !important;

    box-shadow: none !important;
}


/* =========================================
   LEGAL-PAGE – 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;
}


/* =========================================
   LEGAL-PAGE – H1
   ========================================= */

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

    color: #58585d;

    font-size: 32px;

    font-weight: 600;

    text-align: center;
}


/* =========================================
   LEGAL-PAGE – H2
   ========================================= */

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;
}


/* =========================================
   LEGAL-PAGE – TEXT
   ========================================= */

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

    font-size: 16px;
}


/* =========================================
   LEGAL-PAGE – LINKS
   ========================================= */

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

    text-decoration: none;
}


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


/* =========================================
   FOOTER – GRUNDLAYOUT
   ========================================= */

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

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

    background: #58585d !important;
    background-image: none !important;

    box-sizing: border-box;
}


/* Innerer Cassiopeia-Container */

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

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

    background: #58585d !important;
    background-image: none !important;

    box-sizing: border-box;
}


/* Joomla-Modul */

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

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

    box-sizing: border-box;
}


/* =========================================
   FOOTER – DREI SPALTEN
   ========================================= */

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

    margin: 0 auto !important;

    padding: 20px 40px !important;

    box-sizing: border-box;

    display: grid !important;

    grid-template-columns: repeat(3, 1fr);

    column-gap: 60px;

    align-items: start;

    background: #58585d !important;
    background-image: none !important;

    color: #ffffff !important;

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

    font-size: 14px;

    line-height: 1.6;

    text-align: left !important;
}


/* =========================================
   FOOTER – SPALTEN
   ========================================= */

.container-footer .footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: flex-start;

    text-align: left !important;
}


/* =========================================
   FOOTER – ÜBERSCHRIFTEN
   ========================================= */

.container-footer .footer-label {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 17px;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    text-align: left !important;
}


/* =========================================
   FOOTER – LINKS
   ========================================= */

.container-footer .footer-column a {
    display: block;

    margin: 0 0 5px;

    color: #ffffff !important;

    text-decoration: none;

    text-align: left !important;

    transition: color 0.2s ease;
}


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


/* =========================================
   FOOTER – ZUSATZINFORMATION
   ========================================= */

.container-footer .footer-info {
    margin-top: 5px;

    color: #ffffff;

    text-align: left !important;
}


/* =========================================
   FOOTER – KONTAKT-ICONS
   ========================================= */

.container-footer .footer-contact-item {
    display: flex !important;

    align-items: center;

    gap: 9px;

    margin-bottom: 7px !important;

    text-align: left !important;
}


.container-footer .footer-icon {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.container-footer .footer-icon svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: #ffffff;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.container-footer .footer-contact-item:hover .footer-icon svg {
    stroke: #258e71;
}


/* =========================================
   MOBILE – STARTSEITE
   ========================================= */

@media (max-width: 768px) {

    /* Auf Mobile darf die Startseite scrollen */
    body.itemid-101 {
        overflow-x: hidden;
        overflow-y: auto;
    }


    /* Bildbereich auf Mobile als eigener,
       voll sichtbarer Bereich */

    body.itemid-101 .container-banner {
        height: 100dvh !important;
        min-height: 100dvh !important;
    }


    /* Footer auf Mobile NICHT fixieren.
       Er kommt nach dem Bild */

    body.itemid-101 .container-footer {
        position: static !important;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        width: 100% !important;

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

        z-index: auto !important;

        flex: none !important;
    }


    .onepager {
        min-height: 0;
    }


    /* Logo-Balken */

    .onepager-logo-container {
        padding: 20px !important;
    }


    /* Logo */

    .onepager-logo {
        max-width: 200px;

        max-height: 120px;
    }


    .onepager-spacer {
        min-height: 60px;
    }
}


/* =========================================
   MOBILE – LEGAL-PAGE
   ========================================= */

@media (max-width: 768px) {

    body.itemid-109 {
        background: none !important;

        position: relative;
    }


    body.itemid-109::before {
        content: "";

        position: fixed;

        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

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

        background-size: cover;

        background-position: center center;

        background-repeat: no-repeat;

        z-index: -1;
    }


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

        background: transparent !important;
    }


    /* Kein Abstand über dem Logo */

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


    /* Logo-Balken */

    body.itemid-109 .legal-logo-container {
        margin-top: 0 !important;

    margin-bottom: 40px !important;

        padding: 20px !important;
    }


    /* Logo */

    body.itemid-109 .legal-logo {
        max-width: 200px !important;

        max-height: 120px !important;
    }


    /* Inhaltsbox */

    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) {

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

        max-width: none !important;

        padding: 20px 25px !important;

        display: grid !important;

        grid-template-columns: 1fr;

        row-gap: 28px;

        column-gap: 0;

        text-align: left !important;
    }


    .container-footer .footer-column {
        align-items: flex-start;

        text-align: left !important;
    }


    .container-footer .footer-label {
        text-align: left !important;
    }


    .container-footer .footer-column a,
    .container-footer .footer-info {
        text-align: left !important;
    }
}


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

@media (max-width: 400px) {

    .onepager-logo-container {
        padding: 20px 15px !important;
    }


    .onepager-logo {
        max-width: 200px;

        max-height: 100px;
    }


    .onepager-spacer {
        min-height: 60px;
    }


    .container-footer .onepager-footer {
        padding: 20px !important;

        row-gap: 25px;

        font-size: 13px;
    }
}

/* =========================================================
   LEGAL-PAGE – UNGEWOLLTEN OBEREN ABSTAND ENTFERNEN
   ========================================================= */

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

body.itemid-109 main .container-component {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.itemid-109 main .container-component > * {
    margin-top: 0 !important;
}