/* Globale Stile und Reset */
:root {
    --bg-color: #f0f2f5;
    --card-bg-color: #ffffff;
    --text-color-primary: #333;
    --text-color-secondary: #666;
    --accent-color: #ff6f61; /* Standard/Neutral-Akzent */
    --border-radius: 15px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* Standardwerte für Farben (hier initial für Sommer gesetzt, da Juli) */
    --primary-color: #ffe0b2; /* Helles Pfirsich / Sommerhimmel */
    --secondary-color: #ffab91; /* Koralle / Sonnenuntergang */
    --accent-color-seasonal: #ff7043; /* Tiefes Orange / Sommerhitze */
    --text-on-primary: #4e342e; /* Dunkles Braun */
    --text-on-secondary: #6d4c41; /* Mittleres Braun */

    /* Basis für Hintergrundanimationen */
    --season-element-color-light: rgba(255, 255, 255, 0.3);
    --season-element-color-dark: rgba(0, 0, 0, 0.1);

    /* Einhorn-Glow-Farbe */
    --unicorn-glow-color: rgba(255, 255, 255, 0.5);

    /* Body Hintergrund Animation Farben */
    --body-anim-color-light: rgba(255, 255, 255, 0.05);
    --body-anim-color-dark: rgba(0, 0, 0, 0.02);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    transition: background-color 1s ease-in-out; /* Sanfter Übergang für Hintergrundfarbe */
    position: relative; /* Für Body-Hintergrundanimationen */
    overflow: hidden; /* Sicherstellen, dass nichts über den Body hinausgeht */
}

/* --- Body Hintergrundanimationen --- */
body::before,
body::after {
    content: '';
    position: fixed; /* Bleibt beim Scrollen an Ort und Stelle */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Hinter allem anderen */
    opacity: 0; /* Standardmäßig unsichtbar */
    transition: opacity 1s ease-in-out;
    background-repeat: repeat;
}

/* Frühling Body Hintergrund */
body.spring::before {
    opacity: 1;
    background-image: radial-gradient(circle at 50% 50%, var(--body-anim-color-light) 0%, transparent 80%);
    background-size: 800px 800px;
    animation: pulse-bg 15s ease-in-out infinite alternate;
}
@keyframes pulse-bg {
    0% { transform: scale(1); opacity: 0.05; }
    100% { transform: scale(1.1); opacity: 0.1; }
}

/* Sommer Body Hintergrund */
body.summer::before {
    opacity: 1;
    background: radial-gradient(circle at 10% 90%, var(--body-anim-color-dark) 0%, transparent 60%),
                radial-gradient(circle at 90% 10%, var(--body-anim-color-light) 0%, transparent 60%);
    background-size: 600px 600px;
    animation: subtle-wave 20s linear infinite alternate;
}
@keyframes subtle-wave {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(10%) translateY(5%); }
}

/* Herbst Body Hintergrund */
body.autumn::before {
    opacity: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="80" font-size="80" fill="rgba(0,0,0,0.02)" opacity="0.6">&#x2B24;</text></svg>'); /* Großer Punkt/Kreis für Textur */
    background-size: 400px;
    animation: rotate-bg 30s linear infinite;
}
@keyframes rotate-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Winter Body Hintergrund */
body.winter::before {
    opacity: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="80" font-size="80" fill="rgba(255,255,255,0.07)" opacity="0.6">&#10052;</text></svg>'); /* Schneeflocke Unicode */
    background-size: 300px;
    animation: snow-bg 40s linear infinite;
}
@keyframes snow-bg {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}


.page-wrapper {
    width: 90%;
    max-width: 1400px;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 30px;
    animation: fadeIn 1s ease-out;
    z-index: 0; /* Damit der Wrapper über dem Body-Hintergrund liegt */
    position: relative; /* Für z-index */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2em;
    font-weight: 700;
    color: var(--text-color-primary);
}

.logo img {
    height: 60px; /* Größe des Logos anpassen */
    margin-right: 15px;
    animation: floatLogo 3s ease-in-out infinite alternate;
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-datetime {
    text-align: right;
    font-size: 0.9em;
    color: var(--text-color-secondary);
}

.login-button {
    background-color: var(--accent-color-seasonal);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-button:hover {
    background-color: #d84315; /* Etwas dunklerer Ton beim Hover */
    transform: translateY(-2px);
}

/* Main Content Area */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.main-card-container {
    display: flex;
    gap: 30px;
    position: relative; /* Wichtig für das Login-Panel als Overlay */
}

.weather-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Dynamisch durch JS gesetzt */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    flex: 2; /* Nimmt mehr Platz ein */
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-on-primary);
    transition: background 1s ease-in-out; /* Sanfter Übergang für Gradient */
    position: relative; /* Für Einhorn-Illustration und Pseudo-Elemente */
    overflow: hidden; /* Sicherstellen, dass nichts überläuft */
    z-index: 1; /* Sicherstellen, dass die Karte über dem body-Hintergrund liegt */
}

/* --- Pseudoelemente für saisonale Effekte in der Wetterkarte --- */
.weather-card::before,
.weather-card::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none; /* Macht sie nicht anklickbar */
    z-index: 0; /* Unter dem Inhalt */
    opacity: 0; /* Standardmäßig unsichtbar */
    transition: opacity 1s ease-in-out; /* Sanfter Übergang beim Wechsel */
    background-repeat: repeat;
}

/* Einhorn Illustration innerhalb der Karte */
.unicorn-illustration {
    position: absolute;
    left: 0; /* Starte linksbündig */
    bottom: -30px; /* Tiefer positioniert */
    width: 250px; /* Etwas größer */
    height: auto;
    pointer-events: none;
    z-index: 1; /* Über dem Hintergrundeffekt */
    opacity: 1;
    /* Subtiler Glow um das Einhorn */
    filter: drop-shadow(0 0 15px var(--unicorn-glow-color)) drop-shadow(0 5px 10px rgba(0,0,0,0.1));
    transition: transform 0.5s ease-out, opacity 0.5s ease-out, filter 0.5s ease;
}
/* Leichte Bewegung für das Einhorn */
.unicorn-illustration img {
    width: 100%;
    height: auto;
    animation: unicorn-breathe 4s ease-in-out infinite alternate;
}
@keyframes unicorn-breathe {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}


.weather-info {
    flex-grow: 1;
    text-align: right;
    z-index: 2; /* Über dem Einhorn */
    position: relative; /* Damit z-index wirkt und children positioniert werden können */
}

.weather-info h2 {
    font-size: 2.2em;
    margin-bottom: 5px;
}

.weather-info h3 {
    font-size: 1.5em;
    font-weight: 400;
    color: var(--text-on-secondary);
    margin-top: 0;
}

.forecast-summary {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 15px;
}

.forecast-summary span {
    margin-left: 15px;
}

/* Großes, semi-transparentes Wettersymbol */
.current-weather-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Zentriert das Icon */
    font-size: 10em; /* Sehr groß */
    color: rgba(255, 255, 255, 0.2); /* Sehr transparent, damit es den Text nicht überlagert */
    pointer-events: none;
    z-index: 1; /* Zwischen Einhorn und Text */
    transition: color 1s ease-in-out; /* Farbwechsel sanft */
    text-shadow: 0 0 20px rgba(0,0,0,0.1); /* Leichter Schatten für Tiefe */
}
/* Animation für das große Icon */
.current-weather-icon .fas {
    animation: icon-float 5s ease-in-out infinite alternate;
}
@keyframes icon-float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}


/* Login Panel */
.login-panel {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    flex: 1;
    display: none; /* Standardmäßig versteckt */
    flex-direction: column;
    gap: 15px;
    position: absolute; /* Als Overlay positioniert */
    top: 0; /* Oben rechts in der main-card-container */
    right: 0;
    width: 300px;
    z-index: 1000; /* Ganz oben */
    animation: slideIn 0.3s ease-out;
}

.login-panel.active {
    display: flex;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-panel h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: var(--text-color-primary);
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: var(--text-color-secondary);
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

.submit-button {
    background-color: var(--accent-color-seasonal);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #d84315;
    transform: translateY(-2px);
}

/* Secondary Content (Wetter kleine Vorhersage & News) */
.secondary-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.weather-forecast-small,
.news-feed {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
}

.weather-forecast-small {
    display: flex;
    justify-content: space-around;
    text-align: center;
    color: var(--text-color-secondary);
}

.day-forecast {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.day-forecast .fas {
    font-size: 1.8em;
    color: var(--accent-color-seasonal);
}

.news-feed h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.6em;
    color: var(--text-color-primary);
}

.news-list {
    max-height: 300px; /* Begrenzt die Höhe und macht sie scrollbar */
    overflow-y: auto;
    padding-right: 10px; /* Platz für Scrollbalken */
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: var(--text-color-primary);
}

.news-item p {
    font-size: 0.85em;
    color: var(--text-color-secondary);
    margin: 0 0 8px 0;
}

.news-item a {
    color: var(--accent-color-seasonal);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
}

.news-item a:hover {
    text-decoration: underline;
}

/* --- Aktualisierte Image Gallery Section --- */
.image-gallery-section {
    grid-column: 1 / -1; /* Über die gesamte Breite */
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center; /* Zentriert den Titel */
}

.image-gallery-section h2 {
    font-size: 2em;
    color: var(--text-color-primary);
    margin-bottom: 30px;
}

.image-gallery {
    display: flex;
    justify-content: center; /* Zentriert die Galerie-Elemente */
    gap: 20px;
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleinere Bildschirme */
}

.gallery-item {
    position: relative;
    width: 30%; /* Etwas weniger als 1/3, um Platz für Gap zu lassen */
    min-width: 280px; /* Mindestbreite, damit es nicht zu klein wird */
    border-radius: var(--border-radius);
    overflow: hidden; /* Wichtig für abgerundete Ecken und Overlay */
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px); /* Leichter Schwebe-Effekt */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* Stärkerer Schatten beim Hover */
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Feste Höhe für einheitliches Aussehen */
    object-fit: cover; /* Schneidet Bilder passend zu */
    display: block; /* Entfernt zusätzlichen Platz unter dem Bild */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Leichter Zoom-Effekt beim Hover */
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); /* Transparenter Verlauf */
    color: white;
    padding: 15px;
    transform: translateY(100%); /* Startet unterhalb des Bildes */
    transition: transform 0.3s ease;
    text-align: left;
}

.gallery-item:hover .overlay {
    transform: translateY(0); /* Zeigt sich beim Hover */
}

.overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.overlay p {
    margin: 0;
    font-size: 0.85em;
    opacity: 0.9;
}


/* Footer */
.footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85em;
    color: var(--text-color-secondary);
}

/* --- Jahreszeiten-Themen und deren Animationen --- */

/* Frühling */
body.spring {
    --bg-color: #f0fceb; /* Sehr helles Grün */
    --body-anim-color-light: rgba(197, 225, 165, 0.05); /* Helleres Grün */
    --body-anim-color-dark: rgba(69, 90, 100, 0.02); /* Hauch von Erde */
}
.spring {
    --primary-color: #e0f2f7; /* Himmelblau */
    --secondary-color: #c8e6c9; /* Sanftes Grün */
    --accent-color-seasonal: #81c784; /* Minzgrün */
    --text-on-primary: #33691e;
    --text-on-secondary: #558b2f;
    --season-element-color-light: rgba(197, 225, 165, 0.4); /* Helleres Grün */
    --season-element-color-dark: rgba(69, 90, 100, 0.1); /* Hauch von Erde */
    --unicorn-glow-color: rgba(197, 225, 165, 0.8);
}
.spring .weather-card::before {
    content: ''; opacity: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="80" font-size="80" fill="%23c8e6c9" opacity="0.6">&#10048;</text></svg>'); /* Blütenblatt Unicode */
    background-size: 60px; animation: floating-elements 15s linear infinite;
}
@keyframes floating-elements {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    25% { transform: translate(10vw, 25vh) rotate(90deg); opacity: 0.8; }
    50% { transform: translate(-5vw, 50vh) rotate(180deg); opacity: 0.7; }
    75% { transform: translate(15vw, 75vh) rotate(270deg); opacity: 0.6; }
    100% { transform: translate(0, 100vh) rotate(360deg); opacity: 0; }
}


/* Sommer */
body.summer {
    --bg-color: #fce4ec; /* Sehr helles Rosa für warme Atmosphäre */
    --body-anim-color-light: rgba(255, 255, 255, 0.05);
    --body-anim-color-dark: rgba(255, 167, 38, 0.02);
}
.summer {
    --primary-color: #ffe0b2; /* Helles Pfirsich / Sommerhimmel */
    --secondary-color: #ffab91; /* Koralle / Sonnenuntergang */
    --accent-color-seasonal: #ff7043; /* Tiefes Orange / Sommerhitze */
    --text-on-primary: #4e342e;
    --text-on-secondary: #6d4c41;
    --season-element-color-light: rgba(255, 255, 255, 0.4); /* Heller Glanz */
    --season-element-color-dark: rgba(255, 167, 38, 0.2); /* Warmer Orange-Ton */
    --unicorn-glow-color: rgba(255, 224, 178, 0.8);
}

/* Sommer: Hitzeflimmern / Sonnenstrahlen */
.summer .weather-card::before {
    content: '';
    opacity: 1;
    background: radial-gradient(circle at 80% 20%, var(--season-element-color-light) 0%, transparent 40%);
    animation: heat-shimmer 4s ease-in-out infinite alternate;
}
.summer .weather-card::after { /* Optional: Zusätzlicher Effekt wie leichter Nebel */
    content: '';
    opacity: 0.5;
    background: linear-gradient(to right, transparent, var(--season-element-color-dark), transparent);
    animation: subtle-flow 6s ease-in-out infinite alternate;
}
@keyframes heat-shimmer {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.7; }
}
@keyframes subtle-flow {
    0% { transform: translateX(-20%); }
    100% { transform: translateX(20%); }
}

/* Herbst */
body.autumn {
    --bg-color: #fff3e0; /* Cremiges Gelb */
    --body-anim-color-light: rgba(255, 112, 67, 0.05);
    --body-anim-color-dark: rgba(121, 85, 72, 0.02);
}
.autumn {
    --primary-color: #d7ccc8; /* Graubraun */
    --secondary-color: #bcaaa4; /* Helleres Graubraun */
    --accent-color-seasonal: #e65100; /* Tiefes Orange (Kürbis) */
    --text-on-primary: #424242;
    --text-on-secondary: #616161;
    --season-element-color-light: rgba(255, 112, 67, 0.4); /* Rostrot */
    --season-element-color-dark: rgba(121, 85, 72, 0.2); /* Dunkles Braun */
    --unicorn-glow-color: rgba(215, 204, 200, 0.8);
}

/* Herbst: Fallende Blätter */
.autumn .weather-card::before {
    content: '';
    opacity: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="80" font-size="80" fill="%23e65100" opacity="0.6">&#x1F342;</text></svg>'); /* Blattsymbol */
    background-size: 70px;
    animation: falling-elements 20s linear infinite;
}
@keyframes falling-elements {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    25% { transform: translate(15vw, 25vh) rotate(90deg); opacity: 0.8; }
    50% { transform: translate(-10vw, 50vh) rotate(180deg); opacity: 0.7; }
    75% { transform: translate(20vw, 75vh) rotate(270deg); opacity: 0.6; }
    100% { transform: translate(0, 100vh) rotate(360deg); opacity: 0; }
}

/* Winter */
body.winter {
    --bg-color: #e3f2fd; /* Sehr helles Blau */
    --body-anim-color-light: rgba(255, 255, 255, 0.07);
    --body-anim-color-dark: rgba(144, 202, 249, 0.03);
}
.winter {
    --primary-color: #bbdefb; /* Helles Blau */
    --secondary-color: #90caf9; /* Mittelblau */
    --accent-color-seasonal: #2196f3; /* Leuchtendes Blau */
    --text-on-primary: #1a237e;
    --text-on-secondary: #283593;
    --season-element-color-light: rgba(255, 255, 255, 0.6); /* Heller Schnee */
    --season-element-color-dark: rgba(144, 202, 249, 0.2); /* Kaltes Blau */
    --unicorn-glow-color: rgba(187, 222, 251, 0.8);
}

/* Winter: Fallende Schneeflocken */
.winter .weather-card::before {
    content: '';
    opacity: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="80" font-size="70" fill="%23e0f2f7" opacity="0.7">&#10052;</text></svg>'); /* Schneeflocken Unicode */
    background-size: 50px;
    animation: floating-elements 10s linear infinite; /* Wiederverwendung, Geschwindigkeit anpassen falls nötig */
}
/* Zusätzlicher Schneeflocken-Layer für Dichte */
.winter .weather-card::after {
    content: '';
    opacity: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="80" font-size="60" fill="%23bbdefb" opacity="0.5">&#10052;</text></svg>');
    background-size: 30px;
    animation: floating-elements-slow 15s linear infinite reverse; /* Langsamer und in Gegenrichtung */
}
@keyframes floating-elements-slow {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    25% { transform: translate(-10vw, 25vh) rotate(-90deg); opacity: 0.8; }
    50% { transform: translate(5vw, 50vh) rotate(-180deg); opacity: 0.7; }
    75% { transform: translate(-15vw, 75vh) rotate(-270deg); opacity: 0.6; }
    100% { transform: translate(0, 100vh) rotate(-360deg); opacity: 0; }
}


/* Weihnachten (überlagert Winter) */
body.christmas {
    --bg-color: #fae0e0; /* Rötliches Weiß */
    --body-anim-color-light: rgba(255, 255, 255, 0.08);
    --body-anim-color-dark: rgba(255, 235, 59, 0.04);
}
.christmas {
    --primary-color: #ef9a9a; /* Sanftes Rot */
    --secondary-color: #c5e1a5; /* Sanftes Grün */
    --accent-color-seasonal: #e53935; /* Klassisches Weihnachtsrot */
    --text-on-primary: #333;
    --text-on-secondary: #555;
    --season-element-color-light: rgba(255, 255, 255, 0.8); /* Starker Glanz für Lichter */
    --season-element-color-dark: rgba(255, 235, 59, 0.3); /* Goldener Schimmer */
    --unicorn-glow-color: rgba(255, 250, 205, 0.9); /* Wärmeres Glühen */
}

/* Weihnachten: Glitzernde Lichter / Sternenregen */
.christmas .weather-card::before {
    content: '';
    opacity: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="80" font-size="70" fill="%23ffe082" opacity="0.8">&#9733;</text></svg>'); /* Stern-Unicode */
    background-size: 40px;
    animation: christmas-sparkle 3s ease-in-out infinite alternate;
}
.christmas .weather-card::after {
    content: '';
    opacity: 1;
    background: radial-gradient(circle at center, var(--season-element-color-dark) 0%, transparent 70%);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}
@keyframes christmas-sparkle {
    0% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.9; }
    100% { transform: scale(1) rotate(360deg); opacity: 0.6; }
}
@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.05); opacity: 0.6; }
}


/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .main-card-container {
        flex-direction: column;
    }

    .weather-card {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .unicorn-illustration {
        position: relative;
        top: auto;
        left: auto;
        margin: -50px auto 20px auto;
        width: 180px;
    }
    
    .current-weather-icon {
        position: static;
        transform: none;
        font-size: 6em;
        margin-top: 20px;
    }

    .weather-info {
        text-align: center;
    }

    .login-panel {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 20px;
    }

    .image-gallery {
        flex-direction: column; /* Bilder untereinander auf kleinen Bildschirmen */
        align-items: center; /* Zentriert die Bilder */
    }

    .gallery-item {
        width: 90%; /* Nimmt fast die volle Breite ein */
        min-width: unset; /* Entfernt die Mindestbreite */
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .current-datetime {
        text-align: left;
    }

    .login-button {
        width: 100%;
    }

    .page-wrapper {
        padding: 20px;
        width: 95%;
    }

    .weather-info h2 {
        font-size: 1.8em;
    }

    .weather-info h3 {
        font-size: 1.2em;
    }

    .forecast-summary {
        font-size: 1.5em;
    }

    .weather-forecast-small {
        flex-wrap: wrap;
    }

    .day-forecast {
        flex: 1 1 30%;
        margin-bottom: 15px;
    }
}
