/* ----------------------------------------------------
   Weatherly CSS – Design-System & Premium-Animationen
   ---------------------------------------------------- */

:root {
    /* Basisfarben (Dunkelmodus als Standard) */
    --bg-dark: #0a0e17;
    --bg-dark-rgb: 10, 14, 23;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-blue: #3b82f6;
    --accent-blue-rgb: 59, 130, 246;
    
    /* Dynamische Themen-Glows (werden per JS/Klasse angepasst) */
    --theme-glow: rgba(59, 130, 246, 0.15);
    --theme-accent: #3b82f6;

    /* Typografie (Apple SF Pro System Stack) */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Outfit", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    /* Emil Kowalski Animation & Easing Curves */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Wetter-spezifische Farbthemen */
body.theme-sunny {
    --bg-dark: #0f100c;
    --theme-glow: rgba(245, 158, 11, 0.25);
    --theme-accent: #f59e0b;
    --card-bg: rgba(245, 158, 11, 0.05);
    --card-border: rgba(245, 158, 11, 0.15);
}

/* Klares Wetter bei Nacht (Mondschein-Look statt Goldsonne) */
body.theme-sunny.night {
    --bg-dark: #04060a;
    --theme-glow: rgba(226, 232, 240, 0.15);
    --theme-accent: #94a3b8;
    --card-bg: rgba(226, 232, 240, 0.04);
    --card-border: rgba(255, 255, 255, 0.06);
}

body.theme-cloudy {
    --bg-dark: #0c0f14;
    --theme-glow: rgba(148, 163, 184, 0.15);
    --theme-accent: #94a3b8;
    --card-bg: rgba(148, 163, 184, 0.07);
    --card-border: rgba(148, 163, 184, 0.14);
}

body.theme-rain {
    --bg-dark: #060912;
    --theme-glow: rgba(59, 130, 246, 0.22);
    --theme-accent: #3b82f6;
    --card-bg: rgba(59, 130, 246, 0.06);
    --card-border: rgba(59, 130, 246, 0.16);
}

body.theme-storm {
    --bg-dark: #05050f;
    --theme-glow: rgba(139, 92, 246, 0.28);
    --theme-accent: #8b5cf6;
    --card-bg: rgba(139, 92, 246, 0.08);
    --card-border: rgba(139, 92, 246, 0.2);
}

body.theme-snow {
    --bg-dark: #070e14;
    --theme-glow: rgba(45, 212, 191, 0.22);
    --theme-accent: #2dd4bf;
    --card-bg: rgba(45, 212, 191, 0.06);
    --card-border: rgba(45, 212, 191, 0.16);
}

body.theme-windy {
    --bg-dark: #090c10;
    --theme-glow: rgba(16, 185, 129, 0.18);
    --theme-accent: #10b981;
    --card-bg: rgba(16, 185, 129, 0.06);
    --card-border: rgba(16, 185, 129, 0.15);
}

/* Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-color 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body::before {
    content: "";
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 45% 30%, var(--theme-glow) 0%, transparent 65%),
                radial-gradient(circle at 80% 65%, rgba(59, 130, 246, 0.07) 0%, transparent 55%),
                radial-gradient(circle at 20% 85%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
    transition: background 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.9;
    animation: auroraFlow 22s ease-in-out infinite alternate;
}

@keyframes auroraFlow {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate3d(-2%, 2.5%, 0) scale(1.04) rotate(1.2deg);
    }
    100% {
        transform: translate3d(2%, -2%, 0) scale(0.98) rotate(-1deg);
    }
}

/* App Wrapper */
.app-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 2rem 1.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-wrapper.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    color: var(--theme-accent);
    filter: drop-shadow(0 0 8px var(--theme-accent));
    transition: color 0.5s ease, filter 0.5s ease;
    animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 30%, var(--theme-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.5s ease;
}

.brand-container {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.by-author {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    align-self: flex-end;
    margin-top: -0.15rem;
}

.author-name {
    background: linear-gradient(135deg, #f59e0b 20%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.2));
}

/* Suchleiste & Autocomplete */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 0.25rem 0.5rem 0.25rem 1.25rem;
    width: 100%;
    max-width: 100%;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(13, 17, 28, 0.88);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 36px rgba(0, 0, 0, 0.55);
    z-index: 150;
    max-height: 240px;
    overflow-y: auto;
    transform-origin: top center;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.autocomplete-dropdown.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.autocomplete-item {
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background-color 160ms var(--ease-out), padding-left 160ms var(--ease-out);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item:active {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 1.4rem;
}

.autocomplete-country {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Lokale Uhrzeit */
.local-time {
    font-size: 0.9rem;
    color: var(--theme-accent);
    font-weight: 500;
    margin-top: 0.35rem;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
    opacity: 0.95;
    transition: color 0.5s ease;
    font-variant-numeric: tabular-nums;
}

.search-bar:focus-within {
    border-color: var(--theme-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 3px rgba(var(--accent-blue-rgb), 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.09);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    flex: 1;
    height: 40px;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-bar button {
    background: var(--theme-accent);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.2s ease;
    touch-action: manipulation;
}

.search-bar button:hover {
    transform: scale(1.06);
    box-shadow: 0 0 12px var(--theme-accent);
}

.search-bar button:active {
    transform: scale(0.92) !important;
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.grid-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}

/* Karten Basis & Apple Glassmorphismus */
.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.18), 0 12px 36px -4px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.25), 0 16px 42px -4px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Glüheffekt für Karten */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--theme-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    transition: background 1s ease;
}

/* Haupt-Wetterkarte (Hero) */
.hero-card {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 4px solid var(--theme-accent);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
    transform: skewX(-22deg);
    animation: heroCardShimmer 10s cubic-bezier(0.23, 1, 0.32, 1) infinite;
    pointer-events: none;
}

@keyframes heroCardShimmer {
    0%, 75% {
        left: -150%;
    }
    100% {
        left: 250%;
    }
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.location-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.date-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.weather-desc {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: capitalize;
}

.temp-container {
    font-size: 4.8rem;
    font-weight: 250;
    line-height: 0.95;
    display: flex;
    align-items: flex-start;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.temp-unit {
    font-size: 2.2rem;
    font-weight: 300;
    margin-top: 0.35rem;
    color: var(--theme-accent);
    letter-spacing: -0.02em;
}

.hero-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.weather-icon-large {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroIconFloat 5.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    filter: drop-shadow(0 10px 24px var(--theme-glow));
    transform-origin: center center;
    transition: filter 0.6s ease;
}

@keyframes heroIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-6px) rotate(1.2deg) scale(1.02);
    }
}

.weather-icon-large svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.quick-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Wetter-Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    min-width: 0;
}

@keyframes emilStaggerIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.detail-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    min-width: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), 0 8px 24px -2px rgba(0, 0, 0, 0.35);
    animation: emilStaggerIn 260ms var(--ease-out) both;
}

.detail-card:nth-child(1) { animation-delay: 20ms; }
.detail-card:nth-child(2) { animation-delay: 50ms; }
.detail-card:nth-child(3) { animation-delay: 80ms; }
.detail-card:nth-child(4) { animation-delay: 110ms; }
.detail-card:nth-child(5) { animation-delay: 140ms; }
.detail-card:nth-child(6) { animation-delay: 170ms; }

.detail-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-accent);
    transition: color 0.5s ease;
}

.detail-info h3 {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
}

.detail-value {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.detail-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.15rem;
    font-variant-numeric: tabular-nums;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.label-low {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.label-mod {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.label-high {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* 5-Tage-Vorhersage */
.forecast-card {
    grid-column: 1 / -1;
}

.forecast-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.forecast-list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.forecast-day-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.forecast-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.forecast-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 1.25rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
    animation: emilStaggerIn 260ms var(--ease-out) both;
}

.forecast-item:nth-child(1) { animation-delay: 25ms; }
.forecast-item:nth-child(2) { animation-delay: 55ms; }
.forecast-item:nth-child(3) { animation-delay: 85ms; }
.forecast-item:nth-child(4) { animation-delay: 115ms; }
.forecast-item:nth-child(5) { animation-delay: 145ms; }
.forecast-item:nth-child(6) { animation-delay: 175ms; }
.forecast-item:nth-child(7) { animation-delay: 205ms; }

.forecast-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.16);
}

.forecast-item:active {
    transform: scale(0.95) !important;
    transition: transform 0.08s ease-out !important;
}

.forecast-item.active {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: var(--theme-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px var(--theme-glow);
}

.forecast-day {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.forecast-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forecast-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.forecast-temp {
    display: flex;
    flex-direction: column;
}

.forecast-temp-max {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.forecast-temp-min {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}



/* ----------------------------------------------------
   Wetter-Partikeleffekte & Overlays
   ---------------------------------------------------- */

.weather-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Regenpartikel */
.drop {
    position: absolute;
    width: 1.5px;
    height: 38px;
    background: linear-gradient(to bottom, transparent 0%, rgba(147, 197, 253, 0.25) 30%, rgba(224, 242, 254, 0.9) 100%);
    box-shadow: 0 0 5px rgba(147, 197, 253, 0.5);
    border-radius: 2px;
    animation: rain linear infinite;
    pointer-events: none;
}

.drop.drizzle {
    width: 1px;
    height: 18px;
    background: linear-gradient(to bottom, transparent 0%, rgba(186, 230, 253, 0.45) 100%);
    box-shadow: none;
}

@keyframes rain {
    0% {
        transform: translateY(-50px) rotate(14deg);
    }
    100% {
        transform: translateY(105vh) rotate(14deg);
    }
}

/* Dunst & Nebel-Partikel (Atmosphärischer Glow bei bedecktem/regnerischem Wetter) */
.mist-particle {
    position: absolute;
    background: radial-gradient(ellipse at 50% 50%, rgba(148, 163, 184, 0.16) 0%, rgba(148, 163, 184, 0.04) 50%, transparent 80%);
    border-radius: 50%;
    filter: blur(20px);
    animation: floatMist linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatMist {
    0% {
        transform: translateY(0) translateX(-10vw) scale(0.9);
    }
    50% {
        transform: translateY(-20px) translateX(10vw) scale(1.1);
    }
    100% {
        transform: translateY(0) translateX(30vw) scale(1);
    }
}

/* Schneeflocken (3D-Tiefe) */
.snowflake-near {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff;
    filter: blur(1.5px);
    animation: snow linear infinite;
    z-index: 4; /* Im Vordergrund */
}

.snowflake-far {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
    animation: snow linear infinite;
    z-index: 2; /* Im Hintergrund */
}

@keyframes snow {
    0% {
        transform: translateY(-20px) translateX(0);
    }
    50% {
        transform: translateY(50vh) translateX(35px);
    }
    100% {
        transform: translateY(105vh) translateX(-15px);
    }
}

/* Windlinien */
.wind-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: wind linear infinite;
    border-radius: 50%;
}

@keyframes wind {
    0% {
        transform: translateX(-20vw);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    100% {
        transform: translateX(120vw);
        opacity: 0;
    }
}

/* Gewitterblitz-Effekt */
.lightning-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    z-index: 95;
}

.flash-active {
    animation: lightning 0.4s ease-out;
}

@keyframes lightning {
    0%, 100% { opacity: 0; background: #ffffff; }
    10%, 30% { opacity: 0.8; background: #ffffff; }
    15%, 25% { opacity: 0.15; background: #5b21b6; } /* Farbwechsel zu tiefem Violett */
    20% { opacity: 0.95; background: #ffffff; }
}

/* Sonnenstrahlen (Glow-Ringe & schwimmende Sonnenstaubpartikel) */
.sunray {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    animation: pulseSunray 6s infinite ease-in-out;
}

@keyframes pulseSunray {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.solar-dust {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(245, 158, 11, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
    animation: floatSolarDust linear infinite;
}

@keyframes floatSolarDust {
    0% {
        transform: translateY(105vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-5vh) translateX(30px);
        opacity: 0;
    }
}

/* Wolken-Drift (Parallaxe mit sanftem Lighting) */
.cloud-drift-slow {
    position: absolute;
    background: radial-gradient(ellipse at 50% 50%, rgba(148, 163, 184, 0.08) 0%, rgba(100, 116, 139, 0.03) 50%, transparent 80%);
    border-radius: 45%;
    filter: blur(45px);
    animation: driftCloud linear infinite;
    z-index: 1; /* Im Hintergrund */
    pointer-events: none;
}

.cloud-drift-fast {
    position: absolute;
    background: radial-gradient(ellipse at 50% 50%, rgba(186, 230, 253, 0.08) 0%, rgba(148, 163, 184, 0.03) 50%, transparent 80%);
    border-radius: 40%;
    filter: blur(30px);
    animation: driftCloud linear infinite;
    z-index: 3; /* Im Vordergrund, zieht schneller */
    pointer-events: none;
}

@keyframes driftCloud {
    0% {
        transform: translateX(-35vw);
    }
    100% {
        transform: translateX(120vw);
    }
}

/* Regentropfen-Rippeln (Glasaufschlag) */
.rain-ripple {
    position: fixed;
    border: 1.5px solid rgba(186, 230, 253, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 90;
    animation: ripple 0.9s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes ripple {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(0.2);
        box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 0 8px rgba(147, 197, 253, 0.3);
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.4);
    }
}

/* Wirbelndes Laub (Laub-Partikel bei Wind) */
.leaf {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    animation: windLeaf linear infinite;
}

.leaf svg {
    width: 100%;
    height: 100%;
}

@keyframes windLeaf {
    0% {
        transform: translate(-10vw, 0vh) rotate(0deg) scale(0.7);
        opacity: 0;
    }
    10% {
        opacity: 0.85;
    }
    90% {
        opacity: 0.85;
    }
    100% {
        transform: translate(110vw, 25vh) rotate(1080deg) scale(1.2);
        opacity: 0;
    }
}

/* Responsive CSS-Regeln wurden ans Ende der Datei verschoben */

/* ----------------------------------------------------
   Nacht-Effekt-Styles (Mond, Sterne, Fledermäuse)
   ---------------------------------------------------- */

body.night {
    --bg-dark: #04060a;
    --theme-glow: rgba(30, 41, 59, 0.4);
    --theme-accent: #475569;
}

/* Mond */
.moon {
    position: absolute;
    top: 12%;
    right: 18%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: inset -14px 4px 0 0 #e2e8f0;
    filter: drop-shadow(0 0 15px rgba(226, 232, 240, 0.45));
    opacity: 0.85;
    z-index: 1;
    animation: floatMoon 10s infinite ease-in-out;
}

@keyframes floatMoon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

/* Sterne */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Fledermäuse */
.bat {
    position: fixed;
    left: 0;
    top: 0;
    opacity: 0;
    width: 70px;
    height: 35px;
    pointer-events: none;
    z-index: 100;
    animation-timing-function: linear;
    animation-fill-mode: both;
}

.bat-svg {
    width: 100%;
    height: 100%;
}

.left-wing {
    transform-origin: 30px 14px;
    animation: flapLeft 0.12s alternate infinite ease-in-out;
}

.right-wing {
    transform-origin: 34px 14px;
    animation: flapRight 0.12s alternate infinite ease-in-out;
}

@keyframes flyBatLTR {
    0% {
        transform: translate(-10vw, 0) scale(0.4) rotate(10deg);
        opacity: 0;
    }
    10% { opacity: 0.85; }
    90% { opacity: 0.85; }
    100% {
        transform: translate(110vw, -15vh) scale(0.75) rotate(-10deg);
        opacity: 0;
    }
}

@keyframes flyBatRTL {
    0% {
        transform: translate(110vw, 0) scale(0.4) rotate(-10deg) scaleX(-1);
        opacity: 0;
    }
    10% { opacity: 0.85; }
    90% { opacity: 0.85; }
    100% {
        transform: translate(-10vw, -15vh) scale(0.75) rotate(10deg) scaleX(-1);
        opacity: 0;
    }
}

@keyframes flapLeft {
    0% {
        transform: rotate(-25deg);
    }
    100% {
        transform: rotate(35deg);
    }
}

@keyframes flapRight {
    0% {
        transform: rotate(25deg);
    }
    100% {
        transform: rotate(-35deg);
    }
}

/* ----------------------------------------------------
   Icon-Animationen (Wetter-Visuals im Dashboard)
   ---------------------------------------------------- */
.animate-spin-slow {
    animation: spinSlow 14s infinite linear;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-float {
    animation: floatIcon 4.5s infinite ease-in-out;
}

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

.animate-pulse {
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.03); opacity: 1; }
}

.animate-wind-icon {
    animation: windIcon 3.5s infinite ease-in-out;
}

@keyframes windIcon {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* Interne Element-Animationen (Parallaxe & Bewegung für SVG-Elemente) */
.svg-cloud {
    animation: svgCloudFloat 6s infinite ease-in-out;
    transform-origin: center;
}

@keyframes svgCloudFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3px, -2px); }
}

.svg-moon {
    animation: svgMoonFloat 8s infinite ease-in-out;
    transform-origin: center;
}

@keyframes svgMoonFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2px, 1px) rotate(2deg); }
}

.svg-rain-drop {
    animation: svgRainDrop 1.4s infinite linear;
    transform-origin: center;
}

@keyframes svgRainDrop {
    0% { transform: translateY(-3px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(6px); opacity: 0; }
}

/* ----------------------------------------------------
   GPS-Button & Favoriten-Pins
   ---------------------------------------------------- */
.geo-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    margin-right: 0.25rem;
    transition: transform 160ms var(--ease-out), color 160ms ease, background-color 160ms ease;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    touch-action: manipulation;
}

.geo-btn:hover {
    color: var(--theme-accent);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.08);
}

.geo-btn:active {
    transform: scale(0.9) !important;
}

.pin-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pin-btn:hover {
    color: #eab308;
    transform: scale(1.15);
}

.pin-btn.pinned {
    color: #eab308;
    fill: #eab308;
}

.favorites-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    width: 100%;
}

.fav-chip {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    user-select: none;
    touch-action: manipulation;
}

.fav-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.fav-chip:active {
    transform: scale(0.92) !important;
    transition: transform 0.08s ease-out !important;
}

.fav-chip-remove {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 0.2rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.fav-chip-remove:hover {
    color: #ef4444;
}

/* ----------------------------------------------------
   Windkompass Rose
   ---------------------------------------------------- */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.compass-rose {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    position: relative;
    background: rgba(255, 255, 255, 0.01);
}

.compass-rose::before {
    content: "N";
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 700;
    color: var(--text-secondary);
}

.compass-pointer {
    width: 3px;
    height: 22px;
    background: linear-gradient(to bottom, var(--theme-accent) 50%, #ef4444 50%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: 50% 50%;
    border-radius: 1.5px;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 3px var(--theme-accent));
}

/* ----------------------------------------------------
   Stündliche 24h-Vorhersage
   ---------------------------------------------------- */
.hourly-card {
    grid-column: 1;
}

.hourly-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hourly-list {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.85rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
}

.hourly-list::-webkit-scrollbar {
    height: 4px;
}

.hourly-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.hourly-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.hourly-list::-webkit-scrollbar-thumb:hover {
    background: var(--theme-accent);
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.section-title-row h3 {
    margin-bottom: 0 !important;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-badge-hint {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.15rem 0.5rem;
}

.hourly-item {
    flex: 0 0 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 0.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    scroll-snap-align: start;
    touch-action: manipulation;
    animation: emilStaggerIn 240ms var(--ease-out) both;
}

.hourly-item:nth-child(1) { animation-delay: 20ms; }
.hourly-item:nth-child(2) { animation-delay: 45ms; }
.hourly-item:nth-child(3) { animation-delay: 70ms; }
.hourly-item:nth-child(4) { animation-delay: 95ms; }
.hourly-item:nth-child(5) { animation-delay: 120ms; }
.hourly-item:nth-child(6) { animation-delay: 145ms; }
.hourly-item:nth-child(7) { animation-delay: 170ms; }
.hourly-item:nth-child(8) { animation-delay: 195ms; }

.hourly-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.hourly-item:active {
    transform: scale(0.94) !important;
    transition: transform 0.08s ease-out !important;
}

.hourly-item.active {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: var(--theme-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 14px var(--theme-glow);
    transform: translateY(-2px);
}

.hourly-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.hourly-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hourly-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.hourly-rain-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hourly-rain-badge.none {
    opacity: 0;
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
}

.hourly-temp {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.hourly-wind-tag {
    font-size: 0.68rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------
   Alltags-Helfer (Everyday Advisor)
   ---------------------------------------------------- */
.advisor-card {
    grid-column: 2;
}

.advisor-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.advisor-content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.advisor-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease;
    cursor: default;
    touch-action: manipulation;
}

.advisor-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.advisor-item:active {
    transform: scale(0.98);
}

.advisor-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-accent);
    transition: color 0.5s ease;
}

.advisor-icon-box svg {
    width: 20px;
    height: 20px;
}

.advisor-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.advisor-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.advisor-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.advisor-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: auto;
}

.status-green {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-yellow {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-red {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* ----------------------------------------------------
   Zeitreise-Status (Time Travel Mode)
   ---------------------------------------------------- */
.forecast-item {
    cursor: pointer;
    user-select: none;
}

.forecast-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--theme-accent);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.reset-day-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.reset-day-btn:hover {
    background: var(--theme-accent);
    border-color: var(--theme-accent);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ----------------------------------------------------
   Niederschlags-Info in 7-Tage-Vorhersage
   ---------------------------------------------------- */
.forecast-rain-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: -0.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
}

.forecast-rain-prob {
    color: #60a5fa; /* Schönes Hellblau */
}

.forecast-rain-sum {
    color: var(--text-secondary);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0.25rem;
}

/* ----------------------------------------------------
   Wetterwarnungen (Alerts)
   ---------------------------------------------------- */
.alerts-banner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.5rem;
    z-index: 10;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.4;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: pulseAlert 4s infinite ease-in-out;
}

.alert-item.danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.alert-item.warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde047;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.alert-item.info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.alert-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.alert-text-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.alert-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.alert-desc {
    opacity: 0.95;
}

@keyframes pulseAlert {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.005);
    }
}

/* ----------------------------------------------------
   Sonnenstand Kachel & Umlaufbahn
   ---------------------------------------------------- */
.sun-arc-container {
    width: 100%;
    max-width: 110px;
    margin: 0.85rem auto 0.65rem auto;
    display: flex;
    justify-content: center;
}

.sun-arc-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

#sun-marker {
    transition: all 0.5s ease;
}

.sun-times-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.5rem;
}

.sun-time-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sun-hours-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
}

.detail-sub-highlight {
    font-size: 0.74rem;
    font-weight: 600;
    color: #38bdf8;
    margin-top: 0.15rem;
    display: block;
}

/* ----------------------------------------------------
   Hero Header Actions & Meta Status
   ---------------------------------------------------- */
.hero-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    touch-action: manipulation;
}

.hero-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-action-btn:active {
    transform: scale(0.9) !important;
    transition: transform 0.08s ease-out !important;
}

.hero-action-btn.active {
    background: var(--theme-accent);
    color: #ffffff;
    border-color: var(--theme-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 14px var(--theme-glow);
}

.hero-action-btn.spin-anim svg {
    animation: rotateRefresh 0.55s var(--ease-out);
}

@keyframes rotateRefresh {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.meta-status-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
    margin-bottom: 0.2rem;
}

.meta-status-row .local-time {
    margin: 0;
}

.last-updated-pill {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}

/* ----------------------------------------------------
   Live-Niederschlagsradar (Leaflet + RainViewer)
   ---------------------------------------------------- */
.radar-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.radar-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.radar-title-icon {
    color: var(--theme-accent);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: pulseRadarDot 1.5s infinite;
}

@keyframes pulseRadarDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.radar-timestamp {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.radar-map-box {
    width: 100%;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #090d18;
}

.radar-map {
    width: 100%;
    height: 100%;
    background: #0a0e17;
    z-index: 1;
}

/* Leaflet Dark-Mode Overrides */
.leaflet-container {
    background-color: #090d18 !important;
    font-family: var(--font-sans) !important;
}

/* Base OSM Map Dark Theme Filter */
.radar-map-box .leaflet-tile-pane img:not([src*="rainviewer"]):not([src*="tilecache"]) {
    filter: brightness(0.6) invert(1) contrast(2.6) hue-rotate(195deg) saturate(0.35) brightness(0.8);
}

.leaflet-bar {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-bar a {
    background-color: rgba(15, 23, 42, 0.85) !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
}

.leaflet-bar a:hover {
    background-color: rgba(30, 41, 59, 0.95) !important;
    color: var(--theme-accent) !important;
}

.leaflet-control-attribution {
    background: rgba(9, 13, 24, 0.75) !important;
    color: #64748b !important;
    font-size: 10px !important;
    border-radius: 6px 0 0 0;
    backdrop-filter: blur(4px);
}

.leaflet-control-attribution a {
    color: #94a3b8 !important;
}

.radar-player-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.6rem 0.9rem;
}

.radar-play-btn {
    background: var(--theme-accent);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 4px 12px var(--theme-glow);
    touch-action: manipulation;
}

.radar-play-btn:hover {
    transform: scale(1.08);
}

.radar-play-btn:active {
    transform: scale(0.92) !important;
}

.radar-slider-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

.radar-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.radar-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--theme-accent);
    cursor: pointer;
    box-shadow: 0 0 8px var(--theme-glow);
    transition: transform 140ms var(--ease-out);
}

.radar-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.radar-time-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.radar-quick-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.35rem;
}

.radar-quick-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    touch-action: manipulation;
}

.radar-quick-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.18);
}

.radar-quick-btn:active {
    transform: scale(0.94) !important;
}

.radar-quick-btn.active {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
    color: #fca5a5;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.radar-quick-btn.future.active {
    background: rgba(168, 85, 247, 0.18);
    border-color: #a855f7;
    color: #d8b4fe;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.radar-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.legend-title {
    font-weight: 600;
    color: var(--text-muted);
}

.legend-chip {
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.legend-chip.c-light { color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.legend-chip.c-mod { color: #34d399; border-color: rgba(52, 211, 153, 0.3); }
.legend-chip.c-heavy { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
.legend-chip.c-extreme { color: #f87171; border-color: rgba(248, 113, 113, 0.3); }

/* ----------------------------------------------------
   Luftqualität (AQI) & Pollenflug
   ---------------------------------------------------- */
.air-quality-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.aqi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aqi-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.aqi-title-icon {
    color: #10b981;
}

.aqi-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.aqi-meter-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aqi-circle-badge {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #10b981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    margin: 0 auto;
    transition: border-color 350ms var(--ease-out), background-color 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}

.aqi-val {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.aqi-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

.aqi-summary-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

.pollutants-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.pol-chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pol-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.pol-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Pollen Overview */
.pollen-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pollen-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pollen-bars {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pollen-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pollen-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.pollen-name {
    font-weight: 500;
}

.pollen-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
}

.pollen-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.pollen-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 500ms var(--ease-out), background-color 400ms ease;
}

/* Status-Farben */
.level-none { color: #94a3b8; background: rgba(148, 163, 184, 0.12); }
.level-low { color: #10b981; background: rgba(16, 185, 129, 0.15); }
.level-moderate { color: #f59e0b; background: rgba(245, 158, 11, 0.15); }
.level-high { color: #ef4444; background: rgba(239, 68, 68, 0.15); }

.bar-none { width: 4%; background: #94a3b8; }
.bar-low { width: 30%; background: #10b981; }
.bar-moderate { width: 65%; background: #f59e0b; }
.bar-high { width: 100%; background: #ef4444; }

.aqi-good { border-color: #10b981; color: #10b981; background: rgba(16, 185, 129, 0.12); }
.aqi-fair { border-color: #34d399; color: #34d399; background: rgba(52, 211, 153, 0.12); }
.aqi-moderate { border-color: #f59e0b; color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.aqi-poor { border-color: #f97316; color: #f97316; background: rgba(249, 115, 22, 0.12); }
.aqi-very-poor { border-color: #ef4444; color: #ef4444; background: rgba(239, 68, 68, 0.12); }

/* ----------------------------------------------------
   Responsive Anpassungen (Am Dateiende für Kaskadierung)
   ---------------------------------------------------- */
@media (max-width: 960px) {
    /* Layout & Spacing */
    .app-wrapper {
        padding: 1rem 0.75rem;
        gap: 1.25rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    
    .card {
        padding: 1.25rem;
        border-radius: 20px;
    }
    
    /* Header & Branding */
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.35rem;
    }
    
    .brand-container {
        align-items: center;
    }
    
    .by-author {
        align-self: center;
        margin-top: 0.1rem;
    }
    
    .search-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .favorites-chips {
        justify-content: center;
    }
    
    /* Hero Card (Main Weather) */
    .hero-card {
        grid-column: 1 / -1 !important;
        min-height: auto;
        border-left: 3px solid var(--theme-accent);
    }
    
    .hero-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.85rem;
    }

    .hero-title-row {
        justify-content: center;
    }

    .meta-status-row {
        justify-content: center;
    }
    
    .hero-header h2 {
        font-size: 1.85rem;
    }
    
    .temp-container {
        font-size: 3.25rem;
    }
    
    .hero-body {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        margin-top: 1.25rem;
    }
    
    .quick-stats {
        justify-content: center;
        width: 100%;
        gap: 1.5rem;
    }
    
    /* Details Grid */
    .details-grid {
        grid-column: 1 / -1 !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    .detail-card {
        padding: 0.85rem;
        gap: 0.65rem;
    }
    
    .detail-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .detail-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .compass-rose {
        width: 36px;
        height: 36px;
    }
    
    .compass-pointer {
        height: 18px;
    }
    
    .detail-value {
        font-size: 1.05rem;
        margin-top: 0.1rem;
    }
    
    .detail-sub {
        font-size: 0.72rem;
    }
    
    /* Hourly Forecast Card */
    .hourly-card {
        grid-column: 1 / -1 !important;
    }
    
    /* Advisor Card */
    .advisor-card {
        grid-column: 1 / -1 !important;
    }

    /* Radar & AQI Cards Mobile */
    .radar-card {
        grid-column: 1 / -1 !important;
    }

    .radar-map-box {
        height: 280px;
    }

    .radar-player-controls {
        padding: 0.5rem 0.75rem;
        gap: 0.6rem;
    }

    .radar-time-tag {
        min-width: 62px;
        font-size: 0.76rem;
        flex-shrink: 0;
    }

    .radar-quick-nav {
        justify-content: center;
        gap: 0.35rem;
    }

    .radar-quick-btn {
        padding: 0.28rem 0.5rem;
        font-size: 0.72rem;
    }

    .air-quality-card {
        grid-column: 1 / -1 !important;
    }

    .aqi-columns {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    
    /* 7-Tage-Vorhersage (Horizontaler Slider) */
    .forecast-card {
        grid-column: 1 / -1 !important;
    }
    
    .forecast-list {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .forecast-list::-webkit-scrollbar {
        height: 4px;
    }
    
    .forecast-list::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
    }
    
    .forecast-item {
        flex: 0 0 100px;
        padding: 0.85rem 0.4rem;
    }
    
    /* Alerts Banner Mobil-Anpassung */
    .alert-item {
        padding: 0.75rem 1rem;
        font-size: 0.82rem;
        gap: 0.65rem;
    }
    
    .alert-title {
        font-size: 0.72rem;
    }
}

/* ----------------------------------------------------
   App Footer (Impressum & Datenschutz)
   ---------------------------------------------------- */
.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.5rem;
    z-index: 10;
    position: relative;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    font-weight: 500;
}

.footer-link:hover {
    color: var(--theme-accent);
    text-decoration: underline;
}

.footer-dot {
    opacity: 0.4;
}

@media (max-width: 768px) {
    .app-footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ----------------------------------------------------
   Apple Design Accessibility: Reduced Motion & Transparency
   ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .weather-particles, .sunray, .solar-dust, .wind-line, .lightning-flash, .cloud-drift-slow, .cloud-drift-fast, .pulse-dot {
        display: none !important;
    }
    
    .app-wrapper {
        transition: opacity 0.2s ease !important;
        transform: none !important;
    }
    
    .card, .detail-card, .forecast-item, .hourly-item, .hero-action-btn, .search-bar button {
        transition: none !important;
        transform: none !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .card, .detail-card, .hourly-card, .advisor-card, .radar-card, .air-quality-card, .forecast-card, .autocomplete-dropdown {
        background: #0d131f !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .search-bar {
        background: #151d2e !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}
