/* Allgemeine Stile */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-image: url('assets/background.jpg'); /* Hintergrundbild bleibt */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    text-align: center;
    overflow-x: hidden; /* Kein horizontales Scrollen */
    width: 100vw;
}

/* Header */
header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    padding: 20px 0;
}

.top-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 5%;
    background-color: #444;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    height: 80px;
    max-width: 100%;
}

.contact {
    display: flex;
    align-items: center;
    color: #E6B800;
}

.contact span {
    font-size: 16px;
    margin-right: 10px;
    font-weight: bold;
}

.contact a {
    font-size: 20px;
    color: #E6B800;
    text-decoration: none;
}

/* Navigation */
.nav-section {
    width: 100%;
    max-width: 1200px;
    background-color: #E6B800;
    display: flex;
    justify-content: flex-start;
    padding: 20px 5%;
    box-sizing: border-box;
}

nav {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: gray;
    padding: 10px 15px;
    font-size: 18px;
    background-color: #E6B800;
    border-radius: 5px;
}

nav a.active {
    color: black;
    font-weight: bold;
}

/* Hauptinhalt */
main {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Slogan */
.slogan {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin-top: 20px;
}

.sub-slogan {
    font-size: 32px;
    font-weight: normal;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

/* Footer */
footer {
    width: 100%;
    max-width: 98%;
    margin: 0 auto; /* Footer zentrieren */
    display: flex;
    justify-content: space-between; /* Inhalt an die Seiten verteilen */
    align-items: center;
    padding: 10px 20px;
    background-color: #444;
    color: white;
}

.footer-text {
    font-size: 14px;
    margin: 0;
}

#cookie-settings-footer {
    background-color: #E6B800;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: black;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    max-width: 200px; /* Verhindert, dass der Button zu groß wird */
}

#cookie-settings-footer:hover {
    background-color: #d4a500;
}

#cookie-settings-footer:hover {
    background-color: #d4a500;
}


/* Cookie-Button bleibt zentriert */
#cookie-settings {
    background-color: #E6B800;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    color: black;
    font-weight: bold;
    border-radius: 5px;
}

#cookie-settings:hover {
    background-color: #d4a500;
}


#cookie-settings:hover {
    background-color: #d4a500;
}


/* Footer-Button für Cookie-Einstellungen */
#cookie-settings {
    background-color: #E6B800;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    color: black;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
}

#cookie-settings:hover {
    background-color: #d4a500;
}

/* Falls der Cookie-Button **fixiert** am unteren Bildschirmrand sein soll */
.fixed-cookie-settings {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Cookie-Banner liegt immer **über** dem Footer */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Buttons im Cookie-Banner */
.cookie-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    min-width: 200px;
}

.cookie-buttons button {
    background-color: #E6B800;
    border: none;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    color: black;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.cookie-buttons button:hover {
    background-color: #d4a500;
}

#cookie-banner a {
    color: #E6B800;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 10px;
}

#cookie-banner a:hover {
    text-decoration: none;
}

/* Klasse zum Verstecken des Modals */
.hidden {
    display: none;
}

/* Cookie-Einstellungen Modal */
#cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center; /* Text linksbündig */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
}

.cookie-modal-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-modal-content label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.cookie-modal-buttons {
    display: flex;
    justify-content: center; /* Buttons horizontal zentrieren */
    gap: 20px;
    margin-top: 20px;
}

.cookie-modal-buttons button {
    background-color: #E6B800;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    color: black;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.cookie-modal-buttons button:hover {
    background-color: #d4a500;
}

.services-container {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.services-container ul {
    list-style: none;
    padding: 0;
}

.services-container li {
    font-size: 18px;
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.services-container li:before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #E6B800;
}

.impressum-container {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 20px auto; /* Erhöhe den oberen Rand */
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.impressum-container h2, .impressum-container h3 {
    margin-top: 10px; /* Weniger Abstand oben */
    color: #444;
}

.impressum-container p {
    line-height: 1.6;
    margin-top: 5px; /* Weniger Abstand zwischen Absätzen */
}

.kontakt-container {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 20px auto;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.kontakt-container h2, .kontakt-container h3 {
    margin-top: 20px;
    color: #444;
}

.kontakt-container p {
    line-height: 1.6;
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kontakt-form label {
    font-weight: bold;
    color: #333;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.kontakt-form button {
    background-color: #E6B800;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: black;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.kontakt-form button:hover {
    background-color: #d4a500;
}

/* Für mobile Geräte bis 768px Breite */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 10px 0;
    }

    .top-section {
        flex-direction: column;
        padding: 20px 5%;
        text-align: center;
    }

    .nav-section {
        flex-direction: column;
        padding: 10px 0;
    }

    nav a {
        display: block;
        padding: 10px;
        font-size: 16px;
    }

    .slogan {
        font-size: 32px;
    }

    .sub-slogan {
        font-size: 20px;
    }

    .services-container {
        padding: 10px;
    }

    .kontakt-container,
    .impressum-container {
        padding: 15px;
    }

    .cookie-overlay {
        padding: 10px;
    }
}
img {
    max-width: 100%;
    height: auto;
    display: block; /* Vermeidet zusätzliche Leerzeichen unter dem Bild */
}

/* Allgemeine Optimierung für alle Geräte */
.paypal-payment {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
}

.paypal-payment h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Für sehr kleine Geräte (bis 480px) */
@media (max-width: 480px) {
    .paypal-payment {
        padding: 10px;
        border-radius: 5px;
        box-shadow: none;
    }

    .paypal-payment h2 {
        font-size: 16px;
    }

    #paypal-container-NYT688KK4HYMA {
        max-width: 100%;
    }
}

/* Für Geräte zwischen 481px und 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .paypal-payment {
        padding: 12px;
        border-radius: 6px;
    }

    .paypal-payment h2 {
        font-size: 18px;
    }
}
@media (max-width: 380px) {
    .paypal-payment {
        padding: 8px;
        border-radius: 5px;
        box-shadow: none;
        margin-top: 15px;
    }

    .paypal-payment h2 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    #paypal-container-NYT688KK4HYMA {
        max-width: 100%;
        height: auto;
    }
}
@media (max-width: 380px) and (max-height: 850px) {
    .paypal-payment {
        padding: 8px;
        border-radius: 5px;
        box-shadow: none;
        margin: 10px auto;
        max-width: 320px;
    }

    .paypal-payment h2 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    #paypal-container-NYT688KK4HYMA {
        max-width: 100%;
        height: auto;
    }
}
@media (max-width: 400px) and (max-height: 900px) {
    .paypal-payment {
        padding: 10px;
        border-radius: 6px;
        box-shadow: none;
        margin: 15px auto;
        max-width: 350px;
    }

    .paypal-payment h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    #paypal-container-NYT688KK4HYMA {
        max-width: 100%;
        height: auto;
    }
}

.success-message {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}
