/* Allgemeine Styles */
body {
    background-color: #f1f1f1;
    line-height: 1.5;
    text-align: justify;
    padding: 0;
    margin: 0px; /* kein Rand für den Body */
    font-family: 'MuseoSansRounded', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Overlay Styles */
#overlay {
    padding: 0;
    overflow-y: auto;
}

#overlay > div {
    max-width: 600px;
    padding: 40px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

#overlay h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    margin-top: 0;
}

#overlay p {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

#overlay img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
}

.overlay-button {
    background-color: #002f49;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    font-family: 'MuseoSansRounded', sans-serif;
    transition: background-color 0.3s ease;
}

.overlay-button:hover {
    background-color: #005380;
}

.progress-bar {
    width: 0%;
    height: 4px;
    background-color: white;
    margin-top: 20px;
    border-radius: 2px;
}

/* Mobile Anpassungen für Overlay */
@media (max-width: 768px) {
    #overlay {
        padding: 0;
        justify-content: flex-start !important;
        font-size: 0.85em;
        padding-top: 5px;
    }

    #overlay > div {
        padding: 8px;
        max-width: 100%;
    }

    #overlay h1 {
        font-size: 1.3em;
        margin-bottom: 0;
        line-height: 1.1;
    }

    #overlay p {
        font-size: 1em;
        margin-bottom: 0;
        line-height: 1.45;
    }

    #overlay img {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 8px;
    }

    .overlay-button {
        padding: 8px 18px;
        font-size: 0.8em;
        margin-top: 0;
        margin-bottom: 0;
    }

    .progress-bar {
        margin-top: 0;
        height: 3px;
    }
}

/* Logo Styles */
.logo {
    max-width: 270px;
    margin-left: 40px; /* Abstand vom linken Rand wie der Container */
    margin-top: 60px;
}

@font-face {
    font-family: 'MuseoSansRounded';
    src: url('font/MuseoSansRounded100.otf') format('opentype'),
         url('font/MuseoSansRounded300.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'MuseoSansRounded';
    src: url('font/MuseoSansRounded500.otf') format('opentype'),
         url('font/MuseoSansRounded900.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Remove default underline and change color for links */
a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #ececec;
}

.container-angebot {
    width: 100%;
    max-width: 1400px;
    background-color: #FFF;
    color: #50494a;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 20px 60px 60px 20px;
}

.container {
    width: 100%;
    max-width: 1400px;
    background-color: #FFF;
    color: #50494a;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 70px 60px 60px 60px;
}

/* Header Styles */
header {
    display: flex;
    height: 140px;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #ffffff, #f2f2f2);
    color: #2a8f85;
    width: 100%;
    max-width: 1400px; /* Maximale Breite für Desktop */
    margin: 0 auto;
}

/* Maximalbreite für Header und Footer */
header, footer {
    max-width: 1400px; /* Maximale Breite für Desktop */
    margin: 0 auto; /* Zentriert den Inhalt bei größeren Bildschirmen */
    padding: 0; /* Innenabstand für kleine Seitenränder */
}

/* Image Styles */
.image {
    width: 100%;
    margin: 20px 0px;
}

.additional-columns {
    display: flex;
    justify-content: space-between;
    gap: 0 80px;
    padding-top: 15px;
}

.column {
    flex-basis: calc(50% - 20px); /* 50% Breite für jede Spalte mit etwas Abstand dazwischen */
}

.column-footer {
    flex-basis: calc(33% - 20px); /* 33% Breite für jede Spalte mit etwas Abstand dazwischen */
    padding-bottom: 15px;
}

.column h3 {
    margin-top: 0; /* Kein oberer Abstand für die Überschrift */
}

.custom-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #002f49;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.custom-button:hover {
    background-color: #005380;
}

.custom-button-online {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #002f49;
    background-color: rgb(255, 255, 255);
    border: 1px solid #38bfb1;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.custom-button-online:hover {
    background-color: rgb(240, 240, 240);
}

.custom-button,
.custom-button-online {
    text-decoration: none; /* Ensure no underline */
}

/* Footer Styles */
footer {
    min-height: 200px;
    background: linear-gradient(to bottom, #2a8f85, #17504a);
    color: #ffffff;
    text-align: center; /* Alles im Footer zentrieren */
    width: 100%;
    max-width: 1400px; /* Maximale Breite für Desktop */
    margin: 0 auto;
}

.social-icons {
    display: inline-block; /* So dass die Flex-Container-Ausrichtung zentriert wird */
}

.social-icons a i {
    font-size: 32px; /* Doppelt so groß wie zuvor (ursprünglich 16px) */
    margin-bottom: 10px; /* Mehr Abstand unterhalb der Icons */
    color: rgb(241, 241, 241); /* Farbe der Social-Media-Icons */
}

/* Abstand nur für die ersten beiden Icons */
.social-icons a:nth-child(1),
.social-icons a:nth-child(2) {
    margin-right: 20px; /* Mehr Abstand zwischen den Icons */
}

h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
}

h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    padding: 10px 0 6px 0;
}

h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    padding: 0 0 15px 0;
}

/* Navigation Styles */
.menu-icon {
    display: none;
    cursor: pointer;
    width: 48px; /* Neue Breite des Symbols */
    height: 48px; /* Neue Höhe des Symbols */
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-icon i {
    font-size: 28px; /* Größe des Hamburger-Icons erhöhen */
    position: absolute;
    top: 50%;
    left: 50%;
    transition: opacity 0.3s ease;
}

.menu-icon .hamburger-icon {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.menu-icon .close-icon {
    transform: translate(-50%, -50%);
    opacity: 0;
}

.menu-icon.active .hamburger-icon {
    opacity: 0;
}

.menu-icon.active .close-icon {
    opacity: 1;
}

.main-nav ul li a:hover {
    color: #303030; /* Slightly darkened white color */
    background-color: rgb(255, 255, 255);
    border-radius: 5px; /* Rounded corners */
}

/* Ensure 'Angebot' is not affected by hover */
nav ul li a[href*="#"]:hover {
    color: #303030;
    background-color: inherit;
    border-radius: 0;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 40px 70px 0 0; /* Kein seitlicher Abstand für die Hauptliste */
    padding: 0; /* Kein Innenabstand für die Hauptliste */
}

nav ul li {
    position: relative; /* Position relativ setzen, um das absolute Positionieren des Untermenüs zu ermöglichen */
}

nav ul li a {
    text-decoration: none;
    font-weight: 300;
    color: #386178;
    position: relative; /* Position relativ setzen, um das absolute Positionieren des Untermenüs zu ermöglichen */
    padding: 10px 20px; /* Innenabstand für die Hauptmenüpunkte */
    display: block; /* Elemente als Block anzeigen, um den gesamten Bereich anklickbar zu machen */
}

nav ul li.dropdown > a::after {
    content: '\25BC'; /* Pfeilsymbol nach unten */
    display: inline-block;
    margin-left: 5px; /* Abstand zwischen dem Text und dem Pfeilsymbol */
    transition: transform 0.3s ease; /* Animation für den Pfeil */
    font-size: 1.1em;
}

nav ul li.dropdown:hover > a::after {
    transform: rotateX(180deg); /* Um 180 Grad drehen, um den Pfeil nach oben zu zeigen */
}

nav ul ul {
    display: none;
    margin: 0 0 70px 0; /* Kein seitlicher Abstand für die Hauptliste */
    position: absolute; /* Position absolut setzen, um das Untermenü über dem Hauptmenü anzuzeigen */
    background-color: #2a8f85; /* Hintergrundfarbe des Untermenüs */
    padding: 10px; /* Innenabstand des Untermenüs */
    z-index: 999; /* Sicherstellen, dass das Untermenü über anderen Inhalten liegt */
    border-radius: 10px; /* Abgerundete Ecken für das Untermenü */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Hinzufügen des Schattens */
}

nav ul li:hover > ul {
    display: block; /* Untermenü anzeigen, wenn das Hauptmenüpunkt gehovert wird */
    transition: max-height 0.3s ease-in-out;
}

/* Das Untermenü soll offen bleiben, solange sich der Mauszeiger darüber befindet */
nav ul ul:hover {
    display: block;
}

nav ul ul li {
    width: 100%; /* Breite des Untermenüs auf 100% setzen */
    margin: 0; /* Kein seitlicher Abstand für Untermenüpunkte */
}

nav ul ul li a {
    padding: 10px 20px; /* Innenabstand der Untermenüelemente */
    color: #ffffff; /* Textfarbe des Untermenüs */
    display: block; /* Elemente als Block anzeigen, um den gesamten Bereich anklickbar zu machen */
    text-decoration: none; /* Unterstreichungen entfernen */
    font-weight: 300;
}

nav ul ul li a:hover {
    background-color: #002f49; /* Hintergrundfarbe bei Hover über Untermenüpunkte */
    color: #ffffff;
}

.faq-section {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 10px;
    border-top: 1px solid #eeeeee;
    padding-top: 5px;
}

.question {
    font-weight: bold;
    margin-bottom: 5px;
    cursor: pointer;
}

.answer {
    margin-left: 20px;
    display: none;
}

.toggle-answer {
    cursor: pointer;
    font-size: 26px;
    color: #2a8f85;
    line-height: 1;
}

/* Responsive Design */

@media only screen and (max-width: 1450px) {
    /* Für Tablets mit einer Breite von bis zu 1450px */
    
    /* Maximalbreite für Header und Footer 1450px */
    header, footer {
        max-width: 1200px; /* Maximale Breite für Desktop */
        margin: 0 auto; /* Zentriert den Inhalt bei größeren Bildschirmen */
        padding: 0; /* Innenabstand für kleine Seitenränder */
    }

    h1 {
        margin: 0;
        font-size: 28px;
    }

    .container {
        width: 100%; /* Relative Breite */
        max-width: 1200px;
    }
    nav ul {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0 80px 0 0; /* Kein seitlicher Abstand für die Hauptliste */
        padding: 0; /* Kein Innenabstand für die Hauptliste */
    }
    .logo {
        max-width: 200px; /* Maximale Breite auf 100 Pixel in der mobilen Ansicht begrenzen */
        margin-left: 50px; /* Sie können den Abstand je nach Bedarf anpassen */
        margin-top: 50px;
    }
}

/* Für Tablet- und Mobile-Geräte */
@media only screen and (max-width: 900px) {
    header {
        display: flex;
        height: 100px;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(to bottom, #ffffff, #dddddd);
        box-sizing: border-box;
        padding: 0px 20px 0px 25px;
        margin: 0 auto; /* Zentriert den Inhalt bei größeren Bildschirmen */
    }

    h1 {
        margin: 10px 0 0 0;
        font-size: 26px;
    }

    .logo {
        max-width: 150px; /* Maximale Breite auf 100 Pixel in der mobilen Ansicht begrenzen */
        margin-left: -20px; /* Sie können den Abstand je nach Bedarf anpassen */
        margin-top: 30px;
    }

    .menu-icon {
        display: flex;
    }

    .main-nav {
        display: none; /* Das Hauptmenü standardmäßig ausblenden */
        background: #2a8f85;
        position: absolute;
        top: 100px; /* Anpassen, je nach Header-Höhe */
        width: 190px; /* Fixe Breite durch relative Einheit ersetzt */
        left: 70%; /* Menü horizontal zentrieren */
        transform: translateX(-50%); /* Exakte Zentrierung */
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        z-index: 999;
    }

    nav ul {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0 0 0 0; /* Kein seitlicher Abstand für die Hauptliste */
        padding: 0; /* Kein Innenabstand für die Hauptliste */
    }

    .main-nav.active {
        display: block; /* Das Hauptmenü anzeigen, wenn es aktiv ist */
    }

    .main-nav ul {
        flex-direction: column; /* Menüpunkte vertikal anordnen */
    }

    .main-nav ul li {
        margin: 5px 0; /* Abstand zwischen den Menüpunkten */
    }

    .dropdown ul {
        display: none; /* Dropdown-Menü standardmäßig ausblenden */
    }

    .dropdown.active ul {
        display: block; /* Dropdown-Menü anzeigen, wenn es aktiv ist */
    }

    nav ul li a {
        text-decoration: none;
        color: #ffffff;
        padding: 10px 20px;
    }

    nav ul ul {
        display: none;
        position: static; /* Position statisch für mobiles Menü */
        background-color: transparent; /* Kein Hintergrund */
        padding: 0; /* Kein Padding */
        margin-top: 8px;
        margin-bottom: 8px;
        margin-left: 0; /* Keine Einrückung auf Container-Ebene */
        border-radius: 0; /* Keine abgerundeten Ecken */
        border-left: none; /* Kein Balken */
    }

    nav ul ul li {
        margin: 0; /* Kein zusätzlicher Margin für Untermenü-Elemente */
    }

    nav ul ul li a {
        padding: 10px 20px 10px 45px; /* Links mehr Padding für Einrückung */
        color: rgba(255, 255, 255, 0.85); /* Leicht transparente weiße Schrift */
        text-align: left; /* Text linksbündig */
        font-weight: 300; /* Leichtere Schrift */
        font-size: 0.9em; /* Kleinere Schrift für Untermenü */
        border-left: 2px solid rgba(255, 255, 255, 0.3); /* Subtiler Balken am linken Rand */
        margin-left: 20px; /* Einrückung des einzelnen Links */
    }

    nav ul ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-left-color: rgba(255, 255, 255, 0.6);
        padding-left: 50px; /* Leichte Verschiebung beim Hover */
        transition: all 0.2s ease;
    }

    /* Maximalbreite für Header und Footer */
    header, footer {
        max-width: 900px; /* Maximale Breite für 900 */
        margin: 0 auto; /* Zentriert den Inhalt bei größeren Bildschirmen */
    }

    .container {
        width: 100%; /* Relative Breite */
        max-width: 900px;
        box-sizing: border-box;
        padding: 20px 20px 20px 20px;
    }

    .additional-columns {
        flex-direction: column; /* Spalten untereinander anordnen */
    }

    .column {
        flex-basis: 100%; /* Volle Breite für jede Spalte */
        margin-bottom: 20px; /* Abstand zwischen den Spalten hinzufügen */
    }
}
