
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Roboto Bold';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
}
a {
    margin-right: 10px;
    text-transform: uppercase;
    text-decoration: none;
    color:#1D244F;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}
a span {
    text-transform: none;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #1D244F;
}
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    op; /* Ändere diesen Wert, um die Deckkraft anzupassen */
    z-index: -1;
}
html, body {
    height: 100%;
    margin: 0;
}
form {
    width: 50%;
    margin: 0 auto 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form div {
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

form label {
    display: inline-block;
    width: 10%;
    text-align: left;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form textarea {
    height: 100px;
}


form input[type="submit"] {
    width: 30%;
    padding: 10px 20px;
    background-color: #1D244F;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: auto;
}

form input[type="submit"]:hover {
    background-color: #333;
}
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}
.container {
    flex: 1;
    width: 50%;
    min-height: 40rem;
    background-color: white;
    border-radius: 10px; /* Leicht abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: fügt einen leichten Schatten hinzu */
    overflow: hidden; /* Verhindert, dass der Inhalt über die abgerundeten Ecken hinausgeht */
    margin-top: 12rem; /* Abstand zur Navigation */
    margin-bottom: 1em; /* Abstand zum Footer */
}

.nav {
    width: 100%;
    height: 10rem;
    text-align: center;
    margin-bottom: 20px;
    position: absolute;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap:5rem;
}
.nav .logo {
    position: absolute;
    right: 2rem;
}
.nav a {
    margin-right: 10px;
    text-transform: uppercase;
    text-decoration: none;
    color:#1D244F;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
}
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 50%;
    padding: 2rem;
    background-color: #EBDE0E;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#nav-menu {
    display: flex;
}
.section {
    display: none;
}
.section.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#aboutus.section.active, #planung.section.active {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    height: 100%;
}
.section h1 {
    /*
    background-image: url('path/to/your/image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    */
    color: #1D244F;
    padding: 50px 0;
    margin: 0;
}
.section p {
    padding: 0 3rem;
    align-self: flex-start;
}
.footer {
    width: 100%;
    height: 10rem;
    background-color: white;
    color: #1D244F;
    text-align: center;
    padding: 10px 0;
}
.footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.footer-logo {
    height: 78px;
    width: 200px;
    margin: 0 10px;
}
.footer-logo-line {
    flex-grow: 1;
    height: 1px;
    background-color: blue;
}
.footer p {
    text-align: center;
}
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tablink {
    background-color: #1D244F;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 4px;
}

.tablink:hover {
    background-color: #333;
}

.tabcontent {
    display: none;
}

.tabcontent.active {
    display: block;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Festlegt, dass das Grid 3 Spalten hat */
    gap: 10px;
}
.gallery img {
    border-radius: 10px;
    cursor: pointer;
    width: 350px;
    height: 350px;
    aspect-ratio: auto 350 / 350;
}
/* Overlay-Container */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Bild im Overlay */
.overlay img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background-color: white;
    padding: 10px;
}

/* Schließen-Button */
.overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    display: block;
}

p {
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.8rem;
    margin: 1rem;
}

ul li {
    margin: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.8rem;
}

.float-image {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
    width: 15rem;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.accordion {
    width: 90%;
    margin: 1rem 0;
    padding: 0 3rem;
}

.accordion-button {
    background-color: #1D244F;
    color: #FFFFFF;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: 0.4s;
}

.accordion-button.active, .accordion-button:hover {
    background-color: #2E3A73;
}

.accordion-content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: white;
}

#home.section.active p {
    padding: 0 3rem;
    align-self: center;
}

#contact.section.active {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
}

#contact.section.active p {
    padding: 0 3rem;
    align-self: center;
}

#contact.section.active ul {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    list-style-type: none;
    width: 30%;
}
#contact.section.active ul li {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    gap: 3rem;
}
#contact.section.active ul li a  {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    gap: 3rem;
}
#contact.section.active ul li div {
    font-weight: 700;
}

#impressum.section.active ul {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    list-style-type: none;
    width: 50%;
}
#impressum.section.active ul li {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
}
#impressum.section.active ul li a  {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
}
#impressum.section.active ul li div {
    font-weight: 700;
}
address {
    font-style: normal;
    float: right;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #1D244F;
    margin: 4px 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    display: none;
}

@media (max-width: 1920px) {
    nav {
        width: 60%;
        justify-content: space-around;
    }
    .nav a {
        font-size: 1.3rem;
    }
    .content-wrapper {
        min-height: unset;
    }
    .container {
        width: 60%;
        min-height: unset;
        padding: 1rem;
    }
    .gallery img {
        width: 300px;
        height: 300px;
        aspect-ratio: auto 300 / 300;
    }
    #contact.section.active ul {
        width: 50%;
    }
}

@media (max-width: 1280px) {

    .hamburger {
        position: absolute;
        left: 2rem;
        display: flex;
    }
    .close-btn {
        display: block;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #1D244F;
        z-index: 999;
        opacity: 0.9;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu a {
        padding: 10px;
        text-align: center;
        border-top: 1px solid #ccc;
        color: white;
    }

    .nav {
        margin-bottom: 0;
    }
    .nav a {
        font-size: 1.1rem;
    }
    .container {
        display: flex;
        width: 100%;
        margin-top: 9rem;
        padding: 0;
    }
    .section p {
        padding: 0 0;
    }
    #contact.section.active ul {
        display: grid;
        width: 90%;
    }
    .gallery img {
        width: 200px;
        height: 200px;
        aspect-ratio: auto 200 / 200;
    }

    #home.section.active p {
        padding: 0 0;
    }
    .float-image {
        width: 100%;
    }
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* Festlegt, dass das Grid 3 Spalten hat */
        gap: 10px;
    }
    .gallery img {
        width: 150px;
        height: 150px;
        aspect-ratio: auto 150 / 150;
    }
    #impressum.section.active ul {
        width: 100%;
    }
    #impressum.section.active ul li {
        flex-direction: column;
        gap: 1rem;
    }
    #impressum.section.active ul li a  {
        flex-direction: column;
        gap: 1rem;
    }

    .tabs {
        width: 100%;
        flex-wrap: wrap;
    }
    .tablink {
        word-wrap: break-word;
        font-size: 0.6rem;
        width: 45%;
        margin-bottom: 1rem;
    }
}
