/*
Theme Name: Rara Theme
Theme URI: http://annika-feder.de
Author: LeSch
Author URI: http://leon-schulze.de
Description: Eine sonderanfertigung für Rara big GHAH
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: annika-feder.de
*/

/* root */

:root {
    --black: #0e0e0e;
    --dark-green: #042A2B;
    --white: #fff;
    --cyan: #B2F5D4;
    --orange: #FFC85A;
    --petrol: #035F60;
    --main-font: 'Rubik', sans-serif;
    --green-rgba: rgba(0, 195, 3, 0.25);
}

/* Allgemeines */

body {
    margin: 0;
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-family: var(--main-font);
    color: var(--black);
}

ol,
ul {
    padding-left: 1.5rem;
}

:is(h1, h2, h3, h4, h5, h6) {
    color: var(--dark-green);
    font-weight: 900;
    margin-bottom: 1rem;
    hyphens: auto;
    width: 100%;
}

a {
    color: var(--petrol);
    text-decoration: underline;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.button-style a {
    display: inline-block;
    color: var(--petrol);
    padding: 0.75rem 1.2rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--white);
    border: 3px solid var(--petrol);
    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    -ms-transition: all 400ms ease;
    -o-transition: all 400ms ease;
    transition: all 400ms ease;
}

.button-style a:focus,
.button-style a:hover {
    text-decoration: unset !important;
    background-color: var(--petrol);
    color: var(--white);
}

/* Hauptheader-Stile */

#header {
    margin: 0;
    padding: 1rem 0;
    width: 100%;
    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    -ms-transition: all 400ms ease;
    -o-transition: all 400ms ease;
    transition: all 400ms ease;
}

.scrolled #header {
    padding-bottom: 1rem;
    top: 0;
    left: 0;
    z-index: 2;
    position: fixed;
}

@media(max-width:991px) {
    #header {
        position: absolute;
    }
}

@media (min-width:992px) {

    .scrolled #header {
        backdrop-filter: blur(10px);
        z-index: 10;
        background-color: rgba(0, 0, 0, 0.45);
    }

    .scrolled #header .logo img {
        max-width: 80px;
    }

    .admin-bar #header {
        top: 2rem;
    }
}

/* Logo */

.logo img {
    max-width: 150px;
    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    -ms-transition: all 400ms ease;
    -o-transition: all 400ms ease;
    transition: all 400ms ease;
}

@media (max-width:991px) {
    .logo img {
        max-width: 100px;
    }
}

@media(min-width:1660px) {
    .logo img {
        max-width: 180px;
    }
}

/* Hauptnavigationsstil Mobile */

.navbar-collapse li {
    position: relative;
}

@media (max-width:991px) {

    .menu-hauptmenue-container {
        display: flex;
        justify-content: space-between;
    }

    .navbar-collapse {
        list-style: none;
        height: 100%;
        width: 100%;
        padding: 0;
    }

    .navbar-collapse li a {
        color: var(--white);
        text-decoration: none;
        font-size: 1.25rem;
        position: relative;
        font-weight: 600;
        padding: 0.9rem 0.5rem;
        display: block;
    }

    .navbar-collapse .menu-item-has-children .sub-menu {
        list-style: none;
        background-color: rgba(235, 235, 235, 0.8);
        display: none;
    }

    .sub-menu-open .sub-menu {
        display: block !important;
    }

    .navbar-collapse .menu-item-has-children .sub-toggle-button {
        display: block;
        height: 45px;
        width: 45px;
        background-color: var(--white);
        position: absolute;
        top: 0;
        right: 0;
        border-radius: 50%;
        cursor: pointer;
        -webkit-transition: all 400ms ease;
        -moz-transition: all 400ms ease;
        -ms-transition: all 400ms ease;
        -o-transition: all 400ms ease;
        transition: all 400ms ease;
    }

    .navbar-collapse .menu-item-has-children .sub-toggle-button::before {
        content: "";
        position: absolute;
        border-color: var(--white);
        border-style: solid;
        border-width: 0 0 3px 3px;
        height: 8px;
        width: 8px;
        top: calc(50% - 4px);
        left: calc(50% - 4px);
        transform: rotate(225deg);
        -webkit-transform: rotate(225deg);
    }

    .sub-menu-open .sub-toggle-button {
        transform: rotate(90deg);
        -webkit-transform: rotate(90deg);
    }

    .menu-hauptmenue-container {
        position: fixed;
        top: 0;
        left: -100%;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 15px;
        width: 100%;
        height: 100% !important;
        background: var(--main-blue);
        z-index: 200;
        -webkit-transition: all 200ms linear;
        -moz-transition: all 200ms linear;
        -ms-transition: all 200ms linear;
        -o-transition: all 200ms linear;
        transition: all 200ms linear;
    }

    .navbar-collapse .sub-menu li a {
        font-size: 1rem;
    }

    .toggled .menu-hauptmenue-container {
        left: 0;
    }

    .navbar-toggle {
        position: fixed;
        right: 25px;
        top: 25px;
        background: var(--white);
        padding: 12px 8px 8px 8px;
        border-radius: unset;
        z-index: 1002;
        box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.35);
        min-height: 45px;
        min-width: 45px;
        border: none;
    }

    .navbar-toggle .icon-bar {
        display: block;
        width: 35px;
        height: 3px;
        border-radius: 0;
        margin-bottom: 5px;
        background-color: var(--main-blue);
        -webkit-transition: transform 200ms linear;
        -moz-transition: transform 200ms linear;
        -ms-transition: transform 200ms linear;
        -o-transition: transform 200ms linear;
        transition: transform 200ms linear;
    }

    .navbar-default .navbar-toggle .icon-bar {
        background-color: var(--dark-green);
    }

    .navbar-toggle span.icon-bar:nth-child(2) {
        width: 20px;
        margin-left: auto;
    }

    .navbar-toggle span.icon-bar:nth-child(3) {
        width: 28px;
        margin-left: auto;
    }

    .toggled .navbar-toggle span.icon-bar:nth-child(1) {
        -webkit-transform: rotate(45deg) translate(1px, 0px);
        transform: rotate(45deg) translate(1px, 0px);
        margin: 0;
    }

    .toggled .navbar-toggle span.icon-bar:nth-child(2) {
        -webkit-transform: rotate(-45deg) translate(2px, -2px);
        transform: rotate(-45deg) translate(2px, -2px);
        margin: 0;
        width: unset;
    }

    .toggled .navbar-toggle span.icon-bar:nth-child(3) {
        display: none;
    }
}


/* Hauptnavigationsstil Desktop */

@media(min-width:992px) {

    .navbar-collapse .menu-item-has-children .sub-toggle-button {
        display: none;
    }

    .navbar-toggle {
        border: none;
        display: none;
    }

    .main-navigation,
    .menu-primary-container {
        height: 100%;
        display: flex;
        justify-content: space-between;
    }

    .menu-hauptmenue-container {
        width: 100%;
    }

    .navbar-collapse {
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        align-content: center;
        height: 100%;
    }

    .navbar-collapse li a {
        color: var(--white);
        text-decoration: none;
        font-size: 1.1rem;
        position: relative;
        font-weight: 400;
        padding: 0.4rem 0.5rem;
    }

    .navbar-collapse>li>a::before {
        content: '';
        display: block;
        position: absolute;
        bottom: -0.6rem;
        left: 0;
        height: 3px;
        width: 0;
        background-color: var(--white);
        -webkit-transition: all 400ms ease;
        -moz-transition: all 400ms ease;
        -ms-transition: all 400ms ease;
        -o-transition: all 400ms ease;
        transition: all 400ms ease;
    }

    .navbar-collapse>li>a::after {
        content: '';
        display: block;
        position: absolute;
        top: -0.6rem;
        right: 0;
        height: 3px;
        width: 0;
        background-color: var(--white);
        -webkit-transition: all 400ms ease;
        -moz-transition: all 400ms ease;
        -ms-transition: all 400ms ease;
        -o-transition: all 400ms ease;
        transition: all 400ms ease;
    }

    .navbar-collapse li a:hover {
        text-decoration: none !important;
    }

    .navbar-collapse>li>a:hover::before,
    .navbar-collapse>li>a:hover::after {
        width: 100%;
    }

    .navbar-collapse>li.current_page_item>a::before,
    .navbar-collapse>li.current_page_item>a::after {
        width: 100%;
        background-color: var(--dark-green);
    }

    .navbar-collapse>li.current_page_item>a {
        color: var(--dark-green);
    }

    .navbar-collapse .menu-item-has-children .sub-menu {
        position: absolute;
        top: 0;
        left: 0;
        list-style: none;
        margin-top: 2.4rem;
        min-width: 250px;
        display: none;
        opacity: 0;
        background-color: var(--white);
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
        z-index: 999;
        padding: 10px 15px;
        -webkit-transition: all 400ms ease;
        -moz-transition: all 400ms ease;
        -ms-transition: all 400ms ease;
        -o-transition: all 400ms ease;
        transition: all 400ms ease;
    }

    .navbar-collapse .menu-item-has-children::before {
        content: '';
        display: block;
        position: absolute;
        bottom: -2.4rem;
        left: 0;
        height: 2.4rem;
        width: 100%;
    }

    .navbar-collapse .menu-item-has-children:hover .sub-menu {
        display: block;
        opacity: 1;
    }

    .navbar-collapse .menu-item-has-children .sub-menu li a {
        font-weight: 400;
        font-size: 1rem;
        height: 100%;
        width: 100%;
        display: block;
        color: var(--white);
        position: relative;
    }

    .navbar-collapse .menu-item-has-children .sub-menu li a::before {
        content: '';
        display: block;
        position: absolute;
        top: calc(50% - 0.5rem);
        left: -2rem;
        height: 1rem;
        width: 1rem;
        opacity: 0;
        border-radius: 50%;
        background-color: var(--main-blue);
        -webkit-transition: all 400ms ease;
        -moz-transition: all 400ms ease;
        -ms-transition: all 400ms ease;
        -o-transition: all 400ms ease;
        transition: all 400ms ease;
    }

    .navbar-collapse .menu-item-has-children .sub-menu li a:hover::before {
        left: -0.7rem;
        opacity: 1;
    }

    .navbar-collapse .menu-item-has-children .sub-menu li a:hover {
        text-decoration: underline;
    }
}

@media(min-width:1200px) {
    .navbar-collapse li a {
        font-size: 1.375rem;
    }
}

/* content */

.content {
    padding: 2rem 0;
}

.no-image {
    margin-top: 8rem;
}

@media(min-width:992px) {
    .no-image {
        margin-top: 17rem;
    }
}

@media(min-width:1200px) {

    .content {
        padding: 4rem 0;
    }
}

/* 404 - Page */

.error404 {
    min-height: 100vh;
    margin: 20vh 0;
}

/* Footer */

footer {
    background-color: var(--main-blue);
    color: var(--white);
    font-size: 1rem;
}

footer .inner-footer>.row>div {
    align-content: center;
}

footer .page-59>div {
    align-content: flex-start;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .style-headline {
    font-size: clamp(1.25rem, 4vw, 1.875rem);
}

footer h4 {
    font-weight: 600;
    font-size: clamp(1.0625rem, 4vw, 1.25rem);
    margin-bottom: 2.1875rem;
}

footer .page-59 {
    padding: 2rem 0;
    margin-top: 2rem;
}

footer .page-59>div:first-child {
    text-align: center;
}

#menu-vorteile {
    display: flex;
    flex-wrap: wrap;
}

#menu-vorteile li {
    width: 100%;
}

.vorteile-menu,
.links-menu {
    margin-top: 2rem;
}

.vorteile-menu ul,
.links-menu ul {
    list-style: none;
    padding: 0;
}

.vorteile-menu ul li,
.links-menu ul li {
    display: block;
    margin: 0 0 1.6rem 0;
}

.footer-menue {
    list-style: none;
    padding: 0;
    display: block;
}

.footer-logo img {
    max-width: 100px;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.inner-footer {
    background-color: var(--dark-green);
    color: var(--main-blue);
    padding: 2.5rem 0;
    font-size: 1rem;
}

.inner-footer a {
    color: var(--main-blue);
    font-size: 1rem;
}

@media(max-width:767px) {
    .inner-footer>.row {
        text-align: center;
        gap: 2rem;
    }

    .inner-footer>.row>div:first-child {
        order: 2;
    }

    .footer-menue li+li {
        margin-top: 0.7rem;
    }
}

@media(min-width:768px) {

    .footer-menue {
        display: flex;
        justify-content: space-between;
    }
}

@media(min-width:992px) {

    .footer-logo img {
        padding: 0;
    }

    footer .page-59 {
        margin-top: 10rem;
    }

    #menu-vorteile li {
        width: 50%;
    }

    .vorteile-menu,
    .links-menu {
        margin-top: 0rem;
    }

    footer .page-59>div:first-child {
        text-align: left;
    }

    footer .page-59>div {
        align-content: center;
    }

}

/* Cookie Banner Grundstil */

.cookie-banner-wrapper {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--main-blue-rgba);
    height: 100%;
}

#cookie-banner {
    width: calc(100% - 2rem);
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    flex-wrap: wrap;
    background-color: var(--white);
    color: var(--black);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: opacity 0.5s ease, bottom 0.5s ease;
}

#cookie-banner p {
    margin: 0 0 1rem 0;
    width: 100%;
}

#cookie-banner p a {
    color: var(--main-blue);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#cookie-banner button {
    background-color: var(--main-blue);
    border: 2px solid var(--main-blue) !important;
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
}

#cookie-banner button:hover {
    background-color: var(--white);
    color: var(--main-blue);
}

/* Versteckt den Cookie-Banner */
.cookie-banner-hidden {
    opacity: 0;
    bottom: -100px;
    visibility: hidden;
}

@media(min-width:992px) {
    #cookie-banner {
        width: 40%;
    }
}