body,
html {
    margin: 0;
    padding: 0;
    font-family: "Barlow Condensed", sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.elegant {
    font-family: "Alex Brush", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1.3em;
}

::-webkit-scrollbar {
    display: none;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 80px;
    height: 80px;
    border: 10px solid #243382;
    border-radius: 50%;
    border-top: 10px solid #fff;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.header {
    position: fixed;
    width: 100%;
    height: 80px;
    background-color: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
    transition: height 0.3s;
    -webkit-transition: height 0.3s;
    z-index: 1000;
    border-bottom: 3px solid #243382;
}

.header.shrink {
    height: 40px;
}

.header.shrink .logo img {
    max-height: 30px;
}


.container {
    max-width: 980px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s;
    -webkit-transition: padding 0.3s;
}

.logo img {
    max-height: 65px;
    margin-top: 5px;
    transition: max-height 0.3s;
    -webkit-transition: max-height 0.3s;
}

.header.shrink .logo img {
    max-height: 30px;
}


.hero {
    position: relative;
    width: 100%;
    height: 850px;
    overflow: hidden;
    background: url('img/header_webp.webp') no-repeat center center fixed;
    background-size: cover;
    will-change: transform;
    background-attachment: fixed;
    /* Keep this for other browsers */
}


.hero-text {
    position: absolute;
    top: 35%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: auto;
    width: 300px;
    color: white;
    text-align: center;
    font-size: 2em;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
}

.hero-text p {
    display: block;
    /* Jedes Span-Element wird auf eine neue Zeile verschoben */
}

.content-box {
    max-width: 980px;
    margin: 20px auto;
    padding: 20px 0;
    border-bottom: 3px solid #243382;
    display: flex;
    align-items: center;
}

.content-box-gallery {
    max-width: 980px;
    margin: 20px auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.content-box .title {
    font-size: 1.5em;
    flex: 1;
}

.content-box .text {
    flex: 2;
    padding-left: 20px;
}

.feature-boxes {
    max-width: 980px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature-box {
    flex: 1 1 calc(25% - 10px);
    box-sizing: border-box;
    margin: 10px 5px;
    padding: 20px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
    -webkit-transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-box img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.feature-box .title {
    font-size: 1.2em;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .feature-box {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .feature-box {
        flex: 1 1 100%;
    }
}

.text-image-section {
    max-width: 980px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 1s ease-out, opacity 1s ease-out;
    -webkit-transition: transform 1s ease-out, opacity 1s ease-out;
}

.text-image-section.visible {
    opacity: 1;
    transform: translateX(0);
}

.text-image-section .text {
    flex: 1 1 45%;
    padding: 20px;
    box-sizing: border-box;
}

.text-image-section .image {
    flex: 1 1 45%;
    padding: 20px;
    box-sizing: border-box;
}

.text-image-section img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.text-image-section-left {
    max-width: 980px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 1s ease-out, opacity 1s ease-out;
    -webkit-transition: transform 1s ease-out, opacity 1s ease-out;
}

.text-image-section-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.text-image-section-left .text {
    flex: 1 1 45%;
    padding: 20px;
    box-sizing: border-box;
}

.text-image-section-left .image {
    flex: 1 1 45%;
    padding: 20px;
    box-sizing: border-box;
}

.text-image-section-left img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 768px) {

    .hero-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 980px;
        width: 100%;
        color: white;
        text-align: center;
        font-size: 2em;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 20px;
        box-sizing: border-box;
    }


    .text-image-section,
    .text-image-section-left {
        flex-direction: column;
    }

    .text-image-section .text,
    .text-image-section .image,
    .text-image-section-left .text,
    .text-image-section-left .image {
        flex: 1 1 100%;
        padding: 10px;
    }

    .text-image-section .text {
        order: 2;
    }

    .text-image-section .image {
        order: 1;
    }

    .text-image-section-left .text {
        order: 2;
    }

    .text-image-section-left .image {
        order: 1;
    }
}

.carousel {
    max-width: 980px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    border: 2px solid #243382;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    -webkit-transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}

.carousel-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.carousel-item .name {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
}

.carousel-item .testimonial {
    font-size: 1em;
    margin-top: 5px;
    font-style: italic;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-control {
    background-color: #243382;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    border: none;
    font-size: 1.5em;
}

.parallax {
    position: relative;
    width: 100%;
    max-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1em;
    overflow: hidden;
    background: url('img/sommergarten2_webp.webp') no-repeat center center;
    background-size: cover;
    will-change: background-position;
    background-attachment: fixed;
    /* Keep this for other browsers */
}

.person-boxes {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 50px 0;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.person-box {
    flex: 1 1 calc(25% - 10px);
    box-sizing: border-box;
    margin: 10px 5px;
    perspective: 1000px;
}

.person-box-inner {
    position: relative;
    width: 100%;
    height: 200px;
    text-align: center;
    transition: transform 0.6s;
    -webkit-transition: transform 0.6s;
    transform-style: preserve-3d;
    border: 1px solid #ccc;
    border-radius: 4px;
    border-top: 3px solid #243382;
    background-color: rgba(255, 255, 255, 0.8);
}

.person-box:hover .person-box-inner {
    transform: rotateY(180deg);
}

.person-box-front,
.person-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 20px;
}

.person-box-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #243382;
}

.person-box-front img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.person-box-front .name {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
}

.person-box-back {
    background-color: #243382;
    color: #fff;
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .person-box {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .person-box {
        flex: 1 1 100%;
        margin: 10px 10px 10px 10px;
    }

    .person-box-inner {
        padding: 0px;
        box-sizing: border-box;
        overflow: visible;
    }

    .person-box-front,
    .person-box-back {
        height: auto;
        padding: 20px;
        box-sizing: border-box;
        overflow: visible;
    }

    .carousel {
        position: relative;
        z-index: 3;
    }

    .contact-section {
        position: relative;
        z-index: 4;
    }
}

.contact-section {
    max-width: 980px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    opacity: 0;
}

.contact-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form {
    flex: 1 1 45%;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form a {
    font-size: 7em;
    color: #243382;
    text-decoration: none;
}

.contact-form h2 {
    margin-top: 0;
    font-size: 1.5em;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form .form-group textarea {
    height: 100px;
}

.contact-form button {
    background-color: #243382;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-text {
    flex: 1 1 45%;
    padding: 20px;
    background-color: #243382;
    color: #fff;
    border: 1px solid #243382;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-text h2,
.contact-text p {
    margin: 0;
    margin-bottom: 15px;
}


@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
    }

    .contact-form,
    .contact-text {
        flex: 1 1 100%;
        padding: 10px;
    }

    .logo {
        margin: 0 auto;
    }
}

.footer {
    background-color: #243382;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    flex: 1;
    text-align: center;
}

.footer-left p {
    margin: 10px 0;
    font-size: 14px;
}

.footer-left a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
}

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

.footer-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-right img {
    margin: 0 10px;
    height: 50px;
    transition: transform 0.3s;
    -webkit-transition: transform 0.3s;
}

.footer-right img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-right img {
        margin: 10px;
    }
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #243382;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

/* FAQ Section Styles */

.content-box-config {
    max-width: 980px;
    margin: 20px auto;
    margin-bottom: -20px;
    padding: 20px 0;
    border-top: 3px solid #243382;
    display: flex;
    align-items: center;
}

.content-box-config h1 {
    font-weight: bold;
    font-size: 1.5em;
}

.faq-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.faq-container h1 {
    color: #fff;
    text-align: center;
}

.faq-container details {
    background-color: #243382;
    border-bottom: 3px solid #fff;
    color: #fff;
    font-size: 1rem;
    width: 100%;
    max-width: 980px;
    margin: 0px 0;

}

.faq-container summary {
    padding: .5em 1.3rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    transition: height 1s ease;
}


.faq-inner {
    background-color: #fff;
    color: #000;
    display: flex;
    flex-wrap: nowrap;
    /* Damit die Tabellen umbrechen können */
    gap: 20px;
    justify-content: center;
    align-items: center;
    max-width: 100%;


}

.faq-inner img {
    max-width: 200px;
}

.faq-inner table {
    flex: 1 1 48%;
    /* Die Tabellen sollen 48% der Breite einnehmen und nebeneinander stehen */
    border: 1px solid #ccc;
    border-collapse: collapse;
}

.faq-inner th,
.faq-inner td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
    /* Inhalt horizontal zentrieren */
    vertical-align: middle;
    /* Inhalt vertikal zentrieren */
}

.faq-inner th {
    background-color: #243382;
    /* Blaue Hintergrundfarbe wie auf der gesamten Seite */
    color: white;
    /* Weiße Schrift */
}






.grid-gallery {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    /* Acht Spalten für größere Bildschirme */
    grid-gap: 10px;
    /* Gleichmäßiger Abstand zwischen den Kacheln auf größeren Bildschirmen */
    justify-items: stretch;
    /* Stellt sicher, dass die Kacheln den Platz gleichmäßig ausfüllen */
}

.grid-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(60%);
    /* Bilder erscheinen zunächst blasser */
}

.grid-item:hover img {
    transform: scale(1.10);
    /* Bild zoomt leicht bei Hover */
    filter: brightness(100%);
    /* Bei Hover-Effekt volle Helligkeit */
}

/* Kleine Kacheln */
.grid-item.small {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1/1;
    /* Quadratisch */
    height: 100px;
    /* Höhe von 100px */
}

/* Breite Kacheln */
.grid-item.wide-short {
    grid-column: span 2;
    /* Nimmt die Breite von zwei Spalten ein */
    grid-row: span 1;
    aspect-ratio: 2/1;
    /* Doppelt so breit wie die kleinen Kacheln */
    height: 100px;
    /* Gleiche Höhe wie die kleinen Kacheln */
}

/* Große Kachel */
.grid-item.large {
    grid-column: span 2;
    /* Nimmt die Breite von zwei Spalten ein */
    grid-row: span 2;
    /* Nimmt die Höhe von zwei Reihen ein */
    aspect-ratio: 2/2;
    /* Doppelt so breit und etwas höher */
    height: calc(200px + 10px);
    /* Doppelte Höhe der kleinen Kacheln + 10px (für den zusätzlichen Abstand) */
}

/* Responsive Anpassungen für mobile Geräte */
@media (max-width: 768px) {
    .grid-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Zwei Spalten für mobile Geräte */
        grid-gap: 10px;
    }

    .grid-item {
        width: 100%;
    }

    .grid-item img {
        width: 100%;
        height: 162.5px;
        /* Feste Höhe */
        object-fit: cover;
        /* Zuschneiden der Bilder, um die Größe zu füllen */
    }

    /* Große und breite Kacheln auf mobile in small ändern */
    .grid-item.large,
    .grid-item.wide-short {
        grid-column: span 1;
        /* Kleine Kacheln */
        grid-row: span 1;
        height: 100px;
        /* Höhe für kleine Kacheln */
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }

    .parallax {
        background-attachment: scroll;
    }

    .content-box-config {
        max-width: 980px;
        margin: 20px auto;
        margin-bottom: -20px;
        padding: 20px;
        border-top: 3px solid #243382;
        display: flex;
        align-items: center;
    }

    .faq-inner img {
        max-width: 50%;
    }

    .faq-inner table {
        width: 100%;
        /* Tabellen nehmen 100% der Breite ein */
    }

    .faq-inner table {
        display: block;
        /* Blockdarstellung für mobile Ansicht */
        overflow-x: auto;
        /* Ermöglicht horizontales Scrollen */
        width: 100%;
        /* Breite auf 100% begrenzen */
    }

    .faq-inner th,
    .faq-inner td {
        word-break: break-all;
        /* Lange Wörter umbrechen, damit sie in die Zelle passen */
    }
}

@media (max-width: 480px) {

    .faq-inner {
        width: 100%;
        padding-left: 0px !important;
        padding-right: 0px !important;
        flex-direction: column;
        /* Tabellen untereinander anordnen im mobilen Bereich */
    }
}

.faq-container summary::-webkit-details-marker {
    display: none;
}

.faq-container summary:after {
    content: "\002B";
}

.faq-container details[open] summary {
    border-bottom: 1px solid #aaa;
}

.faq-container details[open] summary:after {
    content: "\00D7";
}

.faq-container details[open] div {
    padding: .5em 1em;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }

    .parallax {
        background-attachment: scroll;
    }
}