/* ==========================================================================
   1. ALLGEMEINE SEITEN-STYLES & LAYOUT
   ========================================================================== */

html {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-size: 1em;
}

#page, 
#wrapper, 
.site {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    width: 100% !important;
}

.row, .col {
    position: relative; 
}

.row {
    left: 0px;
    right: 0px;
}

.body.row {
    top: 0px;
    bottom: 0px;
}

.content,
#content,
#main,
.site-content {
    flex: 1 0 auto !important;
    width: auto;
    padding-left: 100px;
    padding-right: 100px;
    overflow: hidden;
    background-color: #ffffff;
    margin-bottom: 30px !important;
}

a:link, a:active, a:visited {
    color: #147b71;
    font-style: normal;
}

a:hover {
    color: black;
    font-style: normal;
    background: rgba(0, 0, 39.22, .15);
}

h1, h2, h3, h4, h5 {
    color: #147b71;
}

h1 {
    margin-top: 0px;
}

.clear {
    clear: both;
}


/* ==========================================================================
   2. FIXIERTER HEADER (STICKY), LOGO & SLOGAN
   ========================================================================== */

.header, 
.header.row {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background-image: url("/wp-content/uploads/2022/08/startpic-text.jpg") !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: #147b71 !important;
    
    border-top: 10px solid #147b71 !important;
    border-bottom: 10px solid #147b71 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    
    min-height: 120px !important;
    height: auto !important;
    
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    padding-left: 100px !important;
    padding-right: 0 !important;
    
    margin-bottom: 30px !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
}

.header > a,
.header .slogan {
    display: inline-block !important;
    vertical-align: middle !important;
}

.header img.mein-logo,
.mein-logo {
    width: 149px !important;
    height: 106px !important;
    max-width: none !important;
    display: block !important;
    margin: 0 20px 0 0 !important;
    float: none !important;
}

.slogan,
.header .slogan {
    color: #43c1bc !important;
    font-size: 2.5em !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    white-space: normal !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
}


/* ==========================================================================
   3. HAUPTMENÜ & DROPDOWN-UNTERMENÜ
   ========================================================================== */

#menu,
.menu-header {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: -15px 0 -15px auto !important;
    padding: 0 !important;
    align-self: flex-start !important;
}

#menu-menue-oben,
.header .menu,
#site-navigation,
.main-navigation {
    background-color: #147b71 !important;
    font-size: 1.3em !important;
    font-weight: bold !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
}

#menu-menue-oben > li,
.header .menu > li,
.main-navigation li {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    white-space: nowrap !important;
}

#menu-menue-oben > li > a,
.header .menu > li > a,
.main-navigation a {
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 1em !important;
    padding-top: 18px !important;
    padding-bottom: 10px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    display: inline-block !important;
    line-height: 1 !important;
    background: transparent !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
    white-space: nowrap !important;
}

#menu-menue-oben > li > a:hover,
.header .menu > li > a:hover,
.main-navigation a:hover,
#menu-menue-oben > li.current-menu-item > a,
#menu-menue-oben > li.current_page_item > a,
#menu-menue-oben > li.current-menu-ancestor > a,
.header .menu > li.current-menu-item > a,
.header .menu > li.current_page_item > a,
li[class*="current"] > a {
    background: transparent !important;
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px !important;
}

#menu-menue-oben .sub-menu,
.header .menu .sub-menu,
ul.sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    background-color: #147b71 !important;
    min-width: 160px !important;
    width: max-content !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    z-index: 999999 !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border: none !important;
}

#menu-menue-oben > li:hover > .sub-menu,
.header .menu > li:hover > .sub-menu,
#menu-menue-oben li:hover > ul.sub-menu,
.header .menu li.menu-item-has-children:hover > .sub-menu,
#menu-menue-oben li.menu-item-has-children:hover > .sub-menu,
.menu-header ul li:hover > ul.sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#menu-menue-oben .sub-menu li a,
.header .menu .sub-menu li a {
    display: block !important;
    padding: 10px 18px !important;
    color: #ffffff !important;
    background-color: #147b71 !important;
    font-size: 0.9em !important;
    font-weight: bold !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

#menu-menue-oben .sub-menu li a:hover,
.header .menu .sub-menu li a:hover {
    background-color: #0e544d !important;
    color: #ffffff !important;
    text-decoration: underline !important;
}


/* ==========================================================================
   4. STARTSEITEN-SLIDER & INHALTS-ELEMENTE
   ========================================================================== */

.startpage {
    text-align: center;
    font-size: initial;
}

.startpage > p {
    color: black;
}

.startpage_background {
    background-color: white;
    background-size: cover;
    padding-top: 0px;
    margin: 0px;
    border-bottom: solid 10px #147b71;
}

.startpage > h1, .welcome > h1 {
    color: #147b71;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-left: 0px;
    text-align: center;
}

.welcome {
    font-size: 1.5em;
}

#changing_pics {
    border-top: 10px solid #147b71;
    border-bottom: 10px solid #147b71;
    background-image: url('/wp-content/uploads/2022/08/IMG_9048-1024x683-1.jpg');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    width: calc(100vw - 450px);
    background-size: cover;
    height: calc(100vh - 146px - 185px);
    margin-left: 225px;
    animation: change 60s infinite cubic-bezier(1, -0.60, 0.60, 1);
}

@keyframes change {
    0%, 100% { background-image: url('/wp-content/uploads/2022/08/IMG_9048-1024x683-1.jpg'); }
    14.3% { background-image: url('/wp-content/uploads/2022/08/nanni10.jpg'); }
    28.5% { background-image: url('/wp-content/uploads/2022/08/mango2.jpg'); }
    42.7% { background-image: url('/wp-content/uploads/2022/08/viggahoopers062020_11.jpg'); }
    56.9% { background-image: url('/wp-content/uploads/2022/08/nanni-fliegt.jpg'); }
    71.2% { background-image: url('/wp-content/uploads/2022/09/perrohoopers2.jpg'); }
    85.4% { background-image: url('/wp-content/uploads/2022/09/cc3hunde3.jpg'); }
}

.content > h1, .content > h2 {
    text-align: center;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 3em;
}

.newsitem {
    font-size: initial;
    background: white;
    padding: 20px;
    border: #147b71 double;
}

.newsheader {
    font-size: 1.3em;
    color: #147b71;
    padding-top: 20px;
    margin: 0px;
    line-height: 1em;
}


/* ==========================================================================
   5. OPTIMIERTER, SYMMETRISCHER & STICKY FOOTER
   ========================================================================== */

footer, 
.site-footer, 
footer#colophon {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    background-color: #147b71 !important;
    color: #ffffff !important;
    padding-top: 35px !important;
    padding-bottom: 25px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.footer-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 100px !important;
    padding-right: 100px !important;
    margin: 0 auto !important;
}

.footer-grid,
.footer-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px !important;
    margin-bottom: 30px !important;
    text-align: left !important;
    width: 100% !important;
}

footer h4, .site-footer h4, .footer-column h4, .footer-col h4 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: bold !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding-bottom: 6px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
}

footer p, .site-footer p, .footer-column p, .footer-col p,
footer ul, .site-footer ul, .footer-column ul, .footer-col ul {
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

footer a, .site-footer a, .footer-column a, .footer-col a {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: opacity 0.2s ease-in-out !important;
}

footer a:hover, .site-footer a:hover, .footer-column a:hover {
    color: #ffffff !important;
    opacity: 0.75 !important;
    background: transparent !important;
}

.footer-bottom, .footer-bottom-bar, #mottooerv {
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding-top: 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
    font-size: 13px !important;
}

.footer-bottom-text {
    color: #ffffff !important;
    margin: 0 !important;
}

.oekv-logo-img {
    height: 38px !important;
    width: auto !important;
    display: block !important;
}


/* ==========================================================================
   6. MEDIA QUERIES (PERFEKTER MOBIL-UMBRUCH FÜR FOOTER & HEADER)
   ========================================================================== */

@media screen and (max-width: 1000px) {
    #changing_pics {
        width: calc(100vw - 280px);
        height: calc((100vw - 280px)/1500*850);
        margin-left: 140px;
    }
}

@media screen and (max-width: 850px) {
    #wpadminbar {
        display: none !important;
    }

    .content,
    .footer-container {
        padding-left: 15px !important; 
        padding-right: 15px !important;
    }

    .footer-grid,
    .footer-grid-container {
        display: block !important;
        width: 100% !important;
    }

    .footer-column, .footer-col {
        width: 100% !important;
        margin-bottom: 25px !important;
        display: block !important;
    }

    .footer-column p, .footer-column a {
        word-break: break-word !important;
    }

    .footer-bottom, .footer-bottom-bar {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .oekv-logo-img {
        margin: 0 auto !important;
    }

    .header.row, .header {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 10px !important;
        min-height: auto !important;
        margin-bottom: 15px !important;
    }

    .header img.mein-logo, .mein-logo {
        width: 75px !important;
        height: auto !important;
        margin: 0 10px 0 0 !important;
    }

    #menu, .menu-header {
        margin: 6px 0 0 0 !important;
        width: 100% !important;
        align-self: center !important;
    }

    #menu-menue-oben, .header .menu {
        float: none !important;
        width: 100% !important;
        justify-content: center !important;
        font-size: 1.1em !important;
        flex-wrap: wrap !important;
    }

    #menu-menue-oben > li > a, .header .menu > li > a {
        padding: 5px 8px !important;
    }

    html body .header .slogan, html body .slogan {
        font-size: 1.15em !important;
        line-height: 1.25 !important;
        text-align: left !important;
        max-width: calc(100% - 95px) !important;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8em !important;
        line-height: 1.2 !important;
    }

    #menu-menue-oben, .header .menu {
        font-size: 0.95em !important;
    }
}