body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    opacity: 0;
    transition: opacity .5s;
}

header {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #c6a7af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
}

nav ul li a:hover {
    color: #9c855c;
    text-decoration: underline;
}

.banner {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 200px;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("img/Banner.jpg") center/cover no-repeat;
    filter: blur(10px);
    z-index: 1;
    transition: transform 0.5s ease;
}

.logo-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: transform 0.5s ease;
}

.logo-banner img {
    width: 600px;
}

.banner-text {
    position: relative;
    z-index: 5;
    filter: blur(10px);
    color: white;
    transition: transform 0.5s ease;
}

.logo-banner:hover ~ .banner-image,
.logo-banner:hover ~ .banner-text,
.logo-banner:hover {
    filter: blur(0px);
    transform: scale(1.2);
    transition: transform 0.5s ease;
    opacity: 1;
}

.logo-banner:hover {
    opacity: 0;
}

.banner-text h1 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 3s ease-in-out;
}

.banner-text p {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.5rem;
    margin-top: 10px;
    animation: fadeIn 3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.services {
    padding: 50px 20px;
    background-color: #FFFFFF;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #9D8189;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
    margin: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; 
    transform: translateY(20px);
    cursor: pointer;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.image-container {
    overflow: hidden;
    height: 200px;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card:hover img {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    color: #9D8189; 
}

.card p {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #666;
}

.toggle-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.toggle-button {
    background-color: #c6a7af;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.toggle-button.active {
    background-color: #9c855c;
}

.toggle-button:hover {
    background-color: #9c855c;
}

.toggle-content {
    display: none;
}

.toggle-content.active {
    display: block;
}

.book-button {
    margin: 20px;
    padding: 10px 20px;
    background-color: #c6a7af;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.request-button {
    margin: 20px;
    padding: 10px 20px;
    background-color: #c6a7af;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-button:hover, .request-button:hover {
    background-color: #9c855c;
}

#coming {
    filter: grayscale(100%);
    position: relative;
    transition: all 0.3s ease-in-out;
    cursor: not-allowed;
}

#coming:hover {
    filter: blur(3px) grayscale(100%);
}

#coming p {
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
    color: #9D8189;
}

#coming .book-button {
    cursor: not-allowed;
    background-color: #CCCCCC; 
    color: #666666;
    border: none;
}

.overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.overlay-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    position: relative;
}

#overlay-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Abstand zwischen den Boxen */
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    justify-content: space-between; /* Gleichmäßige Verteilung */
    align-items: stretch; /* Alle Boxen auf gleiche Höhe */
}

.service-box {
    border-radius: 10px;
    padding: 20px;
    background-color: #f4f4f4;
    box-sizing: border-box;
    flex: 1 1 calc(33.333% - 20px); /* Boxen zu je 33.333% Breite */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Elemente oben ausrichten */
    height: 100%; /* Höhe der Boxen */
}

#overlay-details div {
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    padding: 10px;
    border-radius: 10px;
}

#overlay-details h3 {
    font-size: 1.5rem;
    color: #9D8189;
    margin-bottom: 10px;
    margin-top: 0;
}

#overlay-details p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.booking-info-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.course-info {
    flex: 1;
}

#paypal-button-container {
    margin-top: 20px;
    clear: both;
    z-index: 1000;
    position: relative;
}


.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.close-button:hover {
    color: #f00;
}

.contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background-color: #f2f2f2;
}

.contact-box {
    width: 100%;
    max-width: 800px;
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-image-left,
.contact-image-right {
    width: 150px;
    height: auto;
    margin-right: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info a {
    color: #007BFF;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info a:hover {
    text-decoration: underline;
}

.service-type {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 50px;
    justify-content: center;
}

.service-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    user-select: none;
    font-size: 16px;
}

.service-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-circle {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
}

.service-option input:checked ~ .radio-circle {
    background-color: #2196F3;
}

.service-option:hover .radio-circle {
    background-color: #ccc;
}

.oeffnungszeiten-karten-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-contents {
    flex: 1;
    min-width: 200px;
}

.contact-content ul {
    list-style: none;
    padding: 0;
}

.contact-content ul li {
    font-size: 18px;
    margin-bottom: 10px;
}

.karte {
    flex: 2;
    min-width: 300px;
}

#contact-form {
    padding: 4em 2em;
    background: #ffffff;
    color: #000000;
    text-align: center;
}

form {
    max-width: 600px;
    margin: auto;
}

form label {
    display: block;
    margin: 1em 0 0.5em;
}

form input, form textarea {
    width: 100%;
    min-height: 30px;
    max-height: 155px;
    padding: 1em;
    resize: vertical;
    margin-bottom: 1em;
    border: #000000 solid 1px;
    border-radius: 50px;
    font-size: 1em;
}

form button {
    padding: 1em 2em;
    background-color: #3998f7;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

form button:hover {
    background-color: #0e66be;
}

footer {
    background-color: #c6a7af;
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: auto;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #FFFFFF;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #9c855c;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

 .footer-social a {
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.footer-social img {
    width: 40px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.footer-social a:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.datenschutz, .agb {
    text-align: center;
    font-size: large;
    padding: 50px 200px;
}

.impressum {
    text-align: center;
    font-size: large;
    padding: 50px 300px;
}

@media (max-width: 768px) {
    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        margin: 20px 0;
    }

    .card h3 {
        font-size: 1.2rem;
        margin: 15px 0 8px;
    }

    .card p {
        font-size: 0.9rem;
        padding: 0 15px 15px;
    }

    .service-box {
        flex: 1 1 calc(50% - 20px); 
    }

    .book-button {
        margin: 15px auto;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .booking-info-container {
        flex-direction: column;
        align-items: stretch;
    }

    #paypal-button-container {
        justify-content: center;
    }

    #overlay-details div {
        flex: 1 1 100%;
    }

    .logo-banner img {
        width: 400px;
    }

    .impressum, .datenschutz, .agb {
        text-align: center;
        padding: 50px 30px;
    }
}

@media (max-width: 480px) {
    .banner-text h1 {
        font-size: 2.5rem;
    }

    .banner-text p {
        font-size: 1.2rem;
    }

    .toggle-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .toggle-button.active {
        background-color: #F4ACB7;
    }

    .toggle-button:hover {
        background-color: #F4ACB7;
    }

    .overlay-content {
        width: 90%;
        padding: 10px;
    }

    .service-box {
        flex: 1 1 calc(100% - 20px);
    }

    .close-button {
        font-size: 20px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    .book-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .booking-info-container {
        flex-direction: column;
        align-items: stretch;
    }

    #paypal-button-container {
        justify-content: center;
    }
}