/* Importing fonts */

@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@700&family=Work+Sans:wght@300;500&display=swap');

/* Root variables for color */

:root {
    --background: #1E3148;
    --primary: #42ffc0;
    --secondary: #19c96d;
}


/* Resetting default styles */

body {
    font-family: 'Work Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #1e3148;
}

/* Hero banner styling */

.hero-banner {
    color: #ffffff;
    text-align: center;
    padding: 50px 0;
    width: auto;
    /* Die Breite passt sich automatisch an den Inhalt an */
    height: auto;
    /* Die Höhe passt sich automatisch an den Inhalt an */
}

.preview-description .eyelid {
    font-weight: 300;
}

.preview-description h1 {
    margin: 10px;
    -webkit-text-fill-color: #1E3148;
    -webkit-text-stroke: 3px #1E3148;
    font-size: 55px;
    font-family: 'Oxygen', sans-serif;
    text-transform: uppercase;
    letter-spacing: -4px;
}


/* Head navigation styling */

h1 {
    margin: 5px 0;
    text-align: center;
}

h2 {
    margin: 5px 0;
    text-align: center;
}

h3 {
    text-align: center;
}

h4 {
    text-align: center;
}

h4 a {
    color: #649f9f; /* Standardfarbe des Links */
    text-decoration: underline; /* Standard-Textdekoration des Links entfernen */
}

h4 a:hover {
    color: #649f9f; /* Farbe des Links ändern, wenn die Maus darüber fährt */
    text-decoration: underline; /* Unterstreichung des Links hinzufügen, wenn die Maus darüber fährt */
}

#nav-menu {
    background-color: #ffffff;
    color: #111313;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-trigger:hover .dropdown-content {
    display: block;
}

.dropdown-trigger {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #3a2815;
    min-width: 160px;
    z-index: 1;
}

.dropdown-link {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #ffffff; 
    transition: color 0.3s, box-shadow 0.3s;
}

.dropdown-link:hover {
    color: #ffffff;
    background-color: #A8583A; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); 
}    

.dropdown-link:last-child {
    border-bottom: none;
}

@media screen and (max-width: 700px) {
    .dropdown-trigger {
        display: block;
        position: relative;
    }

    #nav-menu {
        background-color: #ffffff;
        color: #1e3148;
        height: 30px;
        display: flex;
        align-items: center;
    }

    .dropdown-trigger:hover .dropdown-content {
        display: block;
    }

    .container {
        flex-direction: column;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #3a2815;
        min-width: 160px;
        z-index: 1;
    }

    .dropdown-link {
        color: #ffffff;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        border-bottom: 1px solid #ffffff; 
        transition: color 0.3s, box-shadow 0.3s;
    }

    .dropdown-link:hover {
        color: #1e3148;
        background-color: #649f9f; 
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); 
    }    

    .dropdown-link:last-child {
        border-bottom: none;
    }
}

.regen {
    display: flex;
    background-color: #ffffff00;
    justify-content: right;
    max-width: 100%;
    height: 30px;
    margin-bottom: 20px;
}

.wind {
    display: flex;
    background-color: #ffffff00;
    justify-content: right;
    max-width: 100%;
    height: 30px;
    margin-bottom: 20px;
}

.temp {
    display: flex;
    background-color: #ffffff00;
    justify-content: right;
    max-width: 100%;
    height: 30px;
    margin-bottom: 20px;
}

.container {
    display: flex;
    background-color: #ffffff00;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    column-gap: 2rem;

    padding: 1.2rem 3rem;
}

.container1 {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: justify;
}

.container2 {
    float: right; /* Bild rechts ausrichten */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-left: 20px; /* Abstand zwischen Text und Bild */
    max-width: 35%; /* Maximale Breite des Bildes */
}

.container3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.container3 a {
    width: calc(33% - 20px);
    margin-bottom: 20px;
    display: block;
}

.container3 img {
    width: 100%;
    height: auto;
}

.container4 {
    display: flex;
    background-color: #ffffff00;
    align-items: center;
    padding: 20px;
    justify-content: space-between;
    max-width: 100%;
    column-gap: 2rem;
    height: 300px;
    padding: 1.2rem 3rem;
}

.trenner {
    background-color: #3a2815;
    max-width: 100%px;
    width: 100%;
    height: 3px;
}


/* Main navigation menu */

.menu {
    position: relative;
}

.nav-start
.nav-end,
.menu-bar {
    display: flex;
    align-items: center;
}

/* Dropdown menu styling */

.dropdown {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 500px;
    position: absolute;
    top: 75px;
    left: 50px;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.97) translateX(-5px);
    transition: 0.1s ease-in-out;
    border: 1px solid var(--background);
    box-shadow: 0 5px 20px -17px rgba(0, 0, 0, 0.34);
    color: black;
}

/* Styling for dropdown lists */

.dropdown ul {
    gap: 0.5rem;
    padding: 1.2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.dropdown ul:first-child {
    padding-bottom: 0;
}

.dropdown ul:only-child {
    padding-bottom: 20px !important;
}

.dropdown ul>li[role] {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-heading {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--secondary);
    font-weight: 500;
    letter-spacing: -0.6px;
}

.menu-sub-link {
    font-size: 13px;
    margin-bottom: 5px;
}

.menu-sub-link:hover {
    color: var(--secondary);
}

/* Styling for main menu links */

.menu-bar .nav-link {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.6px;
    padding: 0.3rem;
    min-width: 60px;
    margin: 0 0.6rem;
    font-family: 'Work Sans', sans-serif;
}

/* Hover effect for main menu links */

.menu-bar .nav-link:hover {
    color: var(--primary);
}

/* Hamburger menu button styling */

.hidden {
    display: none;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: inherit;
}

.logo {
    margin-right: 1.5rem;
    color: #A8583A;
}

/* Active dropdown menu styling */

.dropdown.active {
    visibility: visible;
    opacity: 1;
    transform: scale(1) translateX(5px);
}

/* Styling for dropdown buttons */

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem;
}

/* Hamburger menu button styling for smaller screens */

#hamburger {
    display: none;
    padding: 0.1rem;
    margin-left: 1rem;
    font-size: 1.9rem;
}

/* Media query for smaller screens */

@media (max-width: 1100px) {
    /* Show hamburger menu button */
    #hamburger {
        display: block;
    }
    /* Hide the main menu on smaller screens */
    .menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        min-height: calc(64px - 100vh);
        width: 100%;
        color: black;
        overflow-y: hidden;
    }
    /* Display dropdown menus on smaller screens */
    .dropdown {
        display: none;
        min-width: 100%;
        border: none !important;
        border-radius: 5px;
        position: static;
        top: 0;
        left: 0;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
    }
    /* Show the main menu when active */
    .menu.show,
    .dropdown.active {
        display: block;
    }
    /* Adjust container padding */
    .container {
        padding: 1.2rem 1.3rem;
    }
    /* Adjust main menu for smaller screens */
    .menu-bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        row-gap: 1rem;
        padding: 1rem;
    }
    .menu-bar .nav-link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        font-weight: 600;
        font-size: 1.2rem;
        margin: 0;
    }
    i.bx.bx-chevron-down {
        font-size: 1.5rem;
    }
    .dropdown-btn {
        display: flex;
        justify-content: space-between;
    }
}

.footer {
    position: fixed;
    bottom: 10px;
    right: 10px;
    color: black;
    font-size: 12px;
    text-align: right;
    font-family: monospace;
}

.footer a {
    color: black;
    text-decoration: none;
}

.platform-container {
    text-align: center;
    padding: 20px;
}

.platform-group {
    display: flex;
    justify-content: center;
    /* Bilder in der Mitte ausrichten */
    flex-wrap: wrap;
}

.platform {
    flex: 0 0 calc(10% - 15px);
    /* Breite auf 25% - 10px setzen */
    margin: 5px;
    /* Abstand zwischen den Bildern (insgesamt 10px, da 2x5px) */
}

@media (max-width: 320px) {
    .platform {
        flex-basis: 75%;
        /* Auf 100% setzen, wenn die Bildschirmbreite 768px oder kleiner ist (z.B. Smartphone) */
    }
}

.wetter {
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.wetter .gauges {
    display: flex;
    flex-wrap: wrap;
    flex-basis: auto;
    justify-content: center;
}

.map-container {
    margin-top: 10px;
    margin-bottom: 40px;
    text-align: center;
    align-items: center;
    margin-left: auto; /* Horizontal zentrieren */
    margin-right: auto; /* Horizontal zentrieren */
}

.map-container iframe {
    border: none;
    border-radius: 8px;
    width: 100%; /* Breite relativ zur Seitenbreite */
    max-width: 550px; /* Maximale Breite 100% */
    height: 72vh;
}

.wetter .gauges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gauge {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 20px; 
    margin-top: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gauges {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 0;
    flex-wrap: wrap;
    flex-basis: auto;
}

.gauge:nth-child(2n) {
    margin-right: 5px;
}

.gauge h3 {
    margin-bottom: -10px;
}

.weather-info {
    margin-bottom: 0px;
}

.weather-info img {
    vertical-align: middle;
    margin-right: 3px;
}

    @media screen and (max-width: 600px) {
        .gauge {
            flex: 0 0 calc(50% - 10px);
            margin-bottom: 20px; 
            margin-top: -10px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
        .gauge:nth-child(2n) {
            margin-right: 0;
        }
    }