body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: linear-gradient(45deg, #1a1a1a, #333);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

wetter {
    width: 80%;
    margin: 0 auto;
    align-items: center;
    display: flex;
}

.header-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}

a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

a:hover {
    color: #f1c40f;  /* Gold hover effect */
}

a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f1c40f; /* Gold underline */
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Zahnrad-Icon-Stil */
.settings-icon {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    margin-left: auto; /* Schiebt das Icon nach rechts */
}

.settings-icon:hover {
    color: #007BFF; /* Farbe beim Hover */
}


@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }
}