/* Globale Resets & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #1a2a6c 50%, #2a5298 100%);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

/* Hintergrund-Animation */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 90%;
    max-width: 450px;
}

/* Moderne Suchleiste */
.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 15px;
    width: 100%;
    border: 1px rgba(255, 255, 255, 0.2) solid;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1.1rem;
    padding: 10px;
    flex: 1;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar button {
    background: rgba(0, 180, 216, 0.8);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background: rgba(0, 180, 216, 1);
}

/* Wetter-Karte (Glassmorphism) */
.weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px rgba(255, 255, 255, 0.15) solid;
    width: 100%;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Haupt-Wetterbereich (Icon & Temp) */
.weather-main {
    margin-bottom: 30px;
}

.weather-icon-container {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -15px;
}

.weather-icon-container img {
    width: 150px; /* Größeres Icon */
    height: 150px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.temp-infos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
}

.temp-infos h1 {
    font-size: 6rem;
    font-weight: 600;
    line-height: 1;
}

.temp-infos .unit {
    font-size: 2.5rem;
    font-weight: 300;
    margin-top: 10px;
}

.description {
    font-size: 1.3rem;
    text-transform: capitalize;
    color: rgba(255, 255, 255, 0.9);
}

/* Standort & Datum */
.location-box h2 {
    font-size: 2rem;
    font-weight: 600;
}

.location-box p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* Details-Bereich */
.weather-details {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 5px;
}