@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat/Montserrat-Regular.ttf");
}

/* ========== VARIABLES CSS ========== */
:root {
    --header-height: 3.5rem;
    /*========== Colors ==========*/
    --first-color: #3e3e42;
    --second-background: #252526;
    --title-color: rgb(255, 255, 255);
    --text-color: rgb(255, 255, 255);
    --background: #111111;
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Poppins", sans-serif;
    --normal-font-size: .1rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;
    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 970px) {
    :root {
      --normal-font-size: 1rem;
      --small-font-size: .875rem;
      --smaller-font-size: .813rem;
    }
}
  
/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--background);
    color: var(--text-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

section {
    width: 100%;
    padding-top: 8rem;
    font-size: 1rem;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 100%;
    margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 8px hsla(220, 68%, 12%, 0.1);
    background-color: var(--second-background);
    z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
    height: var(--header-height);
}

.nav__data {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    column-gap: 2rem;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: var(--font-semi-bold);
    transition: color 0.3s;
}

.nav__toggle {
    position: relative;
    width: 32px;
    height: 32px;
}

.nav__toggle-menu, .nav__toggle-close {
    font-size: 2rem;
    color: var(--title-color);
    position: absolute;
    display: grid;
    place-items: center;
    inset: 0;
    cursor: pointer;
    transition: opacity 0.1s, transform 0.4s;
}

.nav__toggle-close {
    opacity: 0;
}

@media screen and (max-width: 970px) {
    .nav__menu {
        background-color: var(--background);
        position: absolute;
        font-size: 1rem;
        left: 0;
        top: 2.5rem;
        width: 100%;
        height: calc(100vh - 3.5rem);
        overflow: auto;
        padding-block: 1.5rem 4rem;
        pointer-events: none;
        opacity: 0;
        transition: top 0.4s, opacity 0.3s;
    }

/* width */
::-webkit-scrollbar {
    width: 10px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: rgb(22, 22, 22); 
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: var(--first-color);
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #4d4d4d; 
  }

    .prev-btn, .next-btn {
        display: none;
    }
}

.nav__link {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

/* Show menu */
.show-menu {
    opacity: 1;
    top: 3.5rem;
    pointer-events: initial;
}

/* Show icon */
.show-icon .nav__toggle-menu {
    opacity: 0;
    transform: rotate(90deg);
}

.show-icon .nav__toggle-close {
    opacity: 1;
    transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__button {
    cursor: pointer;
}

.dropdown__arrow {
    font-size: 1.5rem;
    font-weight: initial;
    transition: transform 0.4s;
}

.dropdown__content, .dropdown__group, .dropdown__list {
    display: grid;
}

.dropdown__container {
    background: var(--second-background);
    height: 0;
    overflow: hidden;
    transition: height 0.4s;
}

.dropdown__content {
    row-gap: 1.75rem;
    background: var(--second-background);
    border-radius: 10px;
}

.dropdown__group {
    padding-left: 2.5rem;
    row-gap: .5rem;
}

.dropdown__group:first-child {
    margin-top: 1.25rem;
}

.dropdown__group:last-child {
    margin-bottom: 1.25rem;
}

.dropdown__icon i {
    font-size: 1.25rem;
    color: var(--second-background);
}

.dropdown__title {
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.dropdown__list {
    row-gap: 1rem;
}

.dropdown__link {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    transition: color 0.3s;
}

.dropdown__link:hover {
    color: var(--title-color);
}

/* Rotate dropdown icon */
.show-dropdown .dropdown__arrow {
    transform: rotate(180deg);
}

/*=============== BREAKPOINTS ===============*/
/* For extra-small devices */
@media screen and (max-width: 300px) {
    .dropdown__group {
        padding-left: 1.5rem;
    }
}

/* For large devices */
@media screen and (min-width: 970px) {
    /* Nav */
    .nav {
        height: calc(var(--header-height) + 2rem);
        display: flex;
        justify-content: space-between;
    }

    .nav__toggle {
        display: none;
    }

    .nav__list {
        display: flex;
        column-gap: 3rem;
        height: 100%;
    }

    .nav li {
        display: flex;
    }

    .nav__link {
        padding: 0;
    }

    .nav__link:hover {
        background-color: initial;
    }

    /* Dropdown */
    .dropdown__button {
        column-gap: 0.25rem;
        pointer-events: none;
    }

    .dropdown__container {
        height: max-content;
        position: absolute;
        top: 6.5rem;
        background: var(--second-background);
        border-radius: 10px;
        box-shadow: 0 6px 8px hsla(220, 68%, 12%, 0.05);
        pointer-events: none;
        opacity: 0;
        transition: top 0.4s, opacity 0.3s;
    }

    .dropdown__content {
        padding-right: 3rem;
        column-gap: 6rem;
        max-width: 1120px;
        margin-inline: auto;
    }

    .dropdown__group {
        padding-left: 2rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
        align-content: baseline;
        row-gap: 1.25rem;
    }

    .dropdown__group:first-child, .dropdown__group:last-child {
        margin: 0;
    }

    .dropdown__list {
        row-gap: 0.75rem;
    }

    .dropdown__icon {
        width: 60px;
        height: 60px;
        background-color: var(--first-color);
        border-radius: 50%;
        display: grid;
        place-items: center;
        margin-bottom: 1rem;
    }

    .dropdown__icon i {
        font-size: 2rem;
    }

    .dropdown__title {
        font-size: var(--normal-font-size);
    }
    .dropdown__link {
        font-size: var(--normal-font-size);
        font-weight: 400;
        margin-bottom: 1rem;
    }

    .dropdown__link:hover {
        color: var(--first-color);
    }

    .dropdown__item {
        cursor: pointer;
    }

    .dropdown__item:hover .dropdown__arrow {
        transform: rotate(180deg);
    }

    .dropdown__item:hover > .dropdown__container {
        top: 5.5rem;
        opacity: 1;
        pointer-events: initial;
        cursor: initial;
    }
    
}

section h1, h2 {
    margin-left: 10%;
    margin-bottom: 2rem;
}

/*=============== IMAGES ===============*/
img {
    width: 600px;
}

.gallery {
    width: 80%;
    margin: 30px auto 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Gleichmäßige Aufteilung zwischen den Elementen */
    align-items: flex-start; /* Oben ausgerichtete Ausrichtung */
    gap: 50px;
}

.gallery img {
    width: 300px;
    flex: 1 1 calc(33.33% - 50px); /* Mindestbreite 250px, verteilt den verbleibenden Platz gleichmäßig */
    /* margin-bottom: 5px; Abstand zwischen den Bildern */
    border-radius: 5%;
    transition: .3s ease;
}

.gallery img:hover {
    transform: scale(1.1);
}

.full-img {
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, .9);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: .3s ease;
}

.full-img img{
    width: 60%;
    border-radius: 3%;
}

.full-img span {
    width: 40px;
    height: 40px;
    line-height: 45px; /* Zentriert den Text vertikal im Kreis */
    text-align: center; /* Zentriert den Text horizontal im Kreis */
    position: absolute;
    top: 7%;
    right: 5%;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: #34383e;
    border-radius: 50%;
}

.full-img span:hover {
    background: var(--background);
}

.full-img .prev-btn,
.full-img .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    line-height: 40px; /* Zentriert den Text vertikal im Kreis */
    text-align: center; /* Zentriert den Text horizontal im Kreis */
    background: #34383e; /* Hintergrundfarbe wie beim 'X' */
    border: none;
    outline: none;
    z-index: 1;
    width: 40px;
    height: 40px;
    line-height: 45px;
    border-radius: 50%;
}

.full-img .prev-btn {
    left: 5%;
}

.full-img .next-btn {
    right: 5%;
}

.full-img .prev-btn:hover,
.full-img .next-btn:hover {
    background: var(--background);
}

@media (max-width: 970px) {
    .full-img img {
        width: 100%;
        height: auto;
        max-height: 100vh;
        object-fit: contain;
    }

    section {
        padding-top: 5rem;
    }
}

/*=============== KONTAKT ===============*/
.kontakt {
    margin-bottom: 3rem;
}

.kontakt h1 {
    font-size: 34px;
}

.kontakt span {
    font-weight: bold;
}

.kontakt-data {
    padding-left: 10%;
}
.kontakt-conent {
    margin-bottom: 10px;
}

/* CSS für die Zustimmungsabfrage und Google Map */
.map {
    display: flexbox;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

#map-consent {
    text-align: center;
    justify-content: center;
    align-items: center;
    background: var(--first-color);
    margin: 0 10% 0;
    border-radius: 10px;
    padding: 150px;
}

.accept {
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: var(--second-background);
    border-radius: 30px;
    border: 1px solid var(--background);
    display: inline-block;
    cursor: pointer;
    color: var(--text-color);
    font-size: var(--normal-font-size);
    padding: 10px;
    text-decoration: none;
}

.accept:hover {
    background: var(--background);    
}

#google-map {
    text-align: center;
}

iframe {
    width: 80%;
    height: 450px;
    border-radius: 20px;
}

.kontakt span {
    font-weight: bold;
}

.kontakt a {
    font-weight: bold;
    color: var(--text-color);
}

.kontakt a:hover {
    color: var(--first-color);
}

@media (max-width: 970px) {
    .map {
        display: block;
    }

    #map-consent {
        font-size: .8rem;
        padding: 50px;
    }

    .accept {
        font-size: 1rem;
    }

    iframe {
        height: 350px;
    }
}

/*=============== FOOTER ===============*/
.footer {
    padding: 1rem 9%;
    bottom: 0;
    background: var(--second-background);
}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-content {
    text-align: center;
    align-items: center;
}
  
.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}
  
.footer-links a {
    text-decoration: none;
    color: var(--title-color);
    font-weight: bold;
}

.footer-iconTop a {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .5rem;
    background: var(--first-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 10% var(--first-color);
}

.footer-iconTop a i {
    font-size: 2rem;
    color: var(--title-color);
}

.footer-icons {
    position: fixed; /* Position auf festgelegt setzen */
    bottom: 20px; /* 20px Abstand vom unteren Rand */
    left: 50%; /* Horizontal in der Mitte ausrichten */
    transform: translateX(-50%); /* Horizontal in der Mitte ausrichten */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Optional: Z-Index festlegen, um sicherzustellen, dass die Icons über anderen Inhalten liegen */
  }

.footer-icons .telefon,
.footer-icons .mobil,
.footer-icons .mail {
  margin: 0 10px; /* Abstand zwischen den Icons hinzufügen */
}

.footer-icons i {
    font-size: 24px; /* Größe der Icons anpassen */
    color: var(--text-color);
    background: rgb(63, 76, 97);
    border-radius: 50%;
    padding: .6rem;
}

@media (max-width: 970px) {
    .footer-content p {
        font-size: .8rem;
    }

    .footer-container {
        display: block;
        top: 5px;
    }
    .footer-links {
        justify-content: center;
        font-size: .8rem;
    }

    .footer-icons {
        display: flex;
    }
}

/*=============== IMPRESSUM ===============*/
.impressum span {
    font-weight: bold;
}

.impressum-content {
    background: var(--second-background);
    border-radius: 15px;
    margin: 0 5% 2rem;
    padding: 2rem;
}

.impressum-content ol li {
    margin-bottom: 2rem;
}

.impressum-content a {
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none   ;
}

.impressum-content a:hover {
    color: var(--first-color);
}