/* Wetter-Widget 0.3 – hinundhier.de | Mobile first */
.hh-weather-block { width: 100%; min-width: 0; }
.hh-weather-widget {
    --hh-weather-primary: var(--hh-primary, #365763);
    --hh-weather-accent: var(--hh-accent, #e6a50a);
    --hh-weather-sun: #f3bd45;
    --hh-weather-cloud: #f3f7f9;
    --hh-weather-rain: #7bdaff;
    color: #fff;
    background: linear-gradient(145deg, #466580, #5394ca);
    border: 2px solid #fff;
    border-radius: 3px;
    padding: 14px 12px;
    width: 100%;
    min-width: 0;
    box-shadow: rgba(50, 50, 93, .25) 0 2px 5px -1px, rgba(0, 0, 0, .3) 0 1px 3px -1px;
}
.hh-weather-widget *, .hh-weather-widget *::before, .hh-weather-widget *::after { box-sizing: border-box; }
.hh-weather-widget__current {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px;
    grid-template-areas: "heading heading" "reading visual" "condition condition";
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
}
.hh-weather-widget__heading { grid-area: heading; min-width: 0; }
.hh-weather-widget__place { font-size: 1.12rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.hh-weather-widget__time { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .875rem; }
.hh-weather-widget__clock { line-height: 1; font-size: 1.2rem; }
.hh-weather-widget__reading { grid-area: reading; min-width: 0; text-align: left; }
.hh-weather-widget__temperature { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: clamp(1.3rem, 5vw, 1.9rem); font-weight: 600; line-height: 1.1; }
.hh-weather-widget__unit { font-size: .75em; }
.hh-weather-widget__unavailable { display: inline-block; max-width: 115px; font-size: .78rem; line-height: 1.3; }
.hh-weather-widget__condition { grid-area: condition; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; font-size: .96rem; }
.hh-weather-widget__visual { grid-area: visual; display: flex; align-items: center; justify-content: center; width: 80px; height: 70px; }
.hh-weather-widget__forecast { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.55); }
.hh-weather-widget__forecast-title { font-size: .93rem; font-weight: 600; margin-bottom: 10px; }
.hh-weather-widget__forecast-title span { font-weight: 400; opacity: .85; }
.hh-weather-widget__days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.hh-weather-widget__day { display: flex; align-items: center; flex-direction: column; text-align: center; min-width: 0; padding: 0 3px 2px; }
.hh-weather-widget__day + .hh-weather-widget__day { border-left: 1px solid rgba(255,255,255,.32); }
.hh-weather-widget__day-date { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.hh-weather-widget__day-icon { position: relative; width: 72px; height: 54px; overflow: visible; margin: 5px auto 4px; display: flex; align-items: center; justify-content: center; }
.hh-weather-widget__day-icon .hh-weather-icon { transform: scale(.68); transform-origin: center; }
.hh-weather-widget__day-temp { font-weight: 600; white-space: nowrap; font-size: clamp(.86rem, 3.4vw, 1rem); font-variant-numeric: tabular-nums; }
.hh-weather-widget__day-label { font-size: .76rem; line-height: 1.3; margin-top: 5px; overflow-wrap: anywhere; hyphens: auto; min-width: 0; }
.hh-weather-widget__source { margin: 7px 0 0; text-align: center; font-size: .75rem; line-height: 1.45; color: var(--hh-ink, #202d33); }
.hh-weather-widget__source a { color: inherit; 	text-decoration: underline; text-underline-offset: 0.17em; white-space: nowrap; }
@media (min-width: 480px) {
    .hh-weather-widget { padding: 16px 18px; }
    .hh-weather-widget__day { padding-inline: 8px; }
    .hh-weather-widget__day-label { font-size: .86rem; }
}
.hh-weather-widget .hh-weather-icon { position: relative; display: block; flex: 0 0 80px; width: 80px; height: 68px; color: var(--hh-weather-cloud); }
.hh-weather-widget .hh-weather-icon *, .hh-weather-widget .hh-weather-icon *::before, .hh-weather-widget .hh-weather-icon *::after { box-sizing: border-box; }
/* Sonne und rotierende Strahlen */
.hh-weather-widget .hh-weather-icon__sun { position: absolute; left: 25px; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--hh-weather-sun); }
.hh-weather-widget .hh-weather-icon__rays { position: absolute; inset: -11px; border: 3px dashed var(--hh-weather-sun); border-radius: 50%; animation: hh-weather-spin 14s linear infinite; }
.hh-weather-widget .hh-weather-icon--partly-cloudy .hh-weather-icon__sun,
.hh-weather-widget .hh-weather-icon--sun-shower .hh-weather-icon__sun { left: 42px; top: 10px; transform: scale(.82); }
/* Mond */
.hh-weather-widget .hh-weather-icon__moon { position: absolute; width: 32px; height: 32px; top: 14px; left: 26px; background: #f6e9b3; border-radius: 50%; animation: hh-weather-glow 3.5s ease-in-out infinite; }
.hh-weather-widget .hh-weather-icon__moon::after { content: ''; position: absolute; width: 30px; height: 30px; left: 12px; top: -8px; background: transparent /* var(--hh-weather-primary) */; border-radius: 50%; }
.hh-weather-widget .hh-weather-icon--cloudy-night .hh-weather-icon__moon { left: 43px; top: 8px; }
/* Wolke aus überlappenden Kreisen */
.hh-weather-widget .hh-weather-icon__cloud { position: absolute; z-index: 2; top: 29px; left: 12px; width: 58px; height: 23px; background: var(--hh-weather-cloud); border-radius: 17px; animation: hh-weather-bob 4s ease-in-out infinite; }
.hh-weather-widget .hh-weather-icon__cloud::before { content: ''; position: absolute; left: 10px; top: -17px; width: 33px; height: 33px; border-radius: 50%; background: inherit; }
.hh-weather-widget .hh-weather-icon__cloud::after { content: ''; position: absolute; left: 31px; top: -9px; width: 27px; height: 27px; border-radius: 50%; background: inherit; }
.hh-weather-widget .hh-weather-icon--cloudy .hh-weather-icon__cloud { top: 30px; }
.hh-weather-widget .hh-weather-icon--partly-cloudy .hh-weather-icon__cloud { left: 7px; top: 35px; transform: scale(.84); transform-origin: left center; }
.hh-weather-widget .hh-weather-icon--sun-shower .hh-weather-icon__cloud { left: 7px; }
/* Regen / Schnee */
.hh-weather-widget .hh-weather-icon__rain,
.hh-weather-widget .hh-weather-icon__snow { position: absolute; z-index: 3; left: 20px; top: 49px; width: 48px; height: 19px; }
.hh-weather-widget .hh-weather-icon__rain i { display: block; position: absolute; top: 0; width: 3px; height: 11px; border-radius: 2px; background: var(--hh-weather-rain); transform: rotate(20deg); animation: hh-weather-rain 1s linear infinite; }
.hh-weather-widget .hh-weather-icon__rain i:nth-child(1) { left: 5px; }
.hh-weather-widget .hh-weather-icon__rain i:nth-child(2) { left: 22px; animation-delay: -.35s; }
.hh-weather-widget .hh-weather-icon__rain i:nth-child(3) { left: 39px; animation-delay: -.7s; }
.hh-weather-widget .hh-weather-icon__snow i { display: block; position: absolute; top: 0; width: 7px; height: 7px; border: 1.5px solid #fff; border-radius: 50%; animation: hh-weather-snow 2.2s ease-in infinite; }
.hh-weather-widget .hh-weather-icon__snow i:nth-child(1) { left: 5px; }
.hh-weather-widget .hh-weather-icon__snow i:nth-child(2) { left: 22px; animation-delay: -.8s; }
.hh-weather-widget .hh-weather-icon__snow i:nth-child(3) { left: 39px; animation-delay: -1.5s; }
/* Blitz */
.hh-weather-widget .hh-weather-icon__bolt { position: absolute; z-index: 3; top: 40px; left: 35px; width: 20px; height: 27px; background: var(--hh-weather-sun); clip-path: polygon(43% 0, 100% 0, 58% 44%, 86% 44%, 18% 100%, 36% 54%, 8% 54%); animation: hh-weather-flash 2.7s linear infinite; }
/* Nebelschwaden */
.hh-weather-widget .hh-weather-icon--fog .hh-weather-icon__cloud { top: 20px; transform: scale(.8); }
.hh-weather-widget .hh-weather-icon__fog { position: absolute; z-index: 3; top: 44px; left: 13px; width: 54px; }
.hh-weather-widget .hh-weather-icon__fog i { display: block; height: 3px; width: 100%; margin-bottom: 6px; background: #d2e0e5; border-radius: 3px; animation: hh-weather-mist 3.5s ease-in-out infinite alternate; }
.hh-weather-widget .hh-weather-icon__fog i:nth-child(2) { width: 74%; margin-left: 12%; animation-delay: -.6s; }
.hh-weather-widget .hh-weather-icon__fog i:nth-child(3) { width: 87%; animation-delay: -1.2s; }
.hh-weather-widget .hh-weather-icon__unknown { display: block; text-align: center; line-height: 68px; font-size: 2rem; color: var(--hh-weather-accent); }
@keyframes hh-weather-spin { to { transform: rotate(360deg); } }
@keyframes hh-weather-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes hh-weather-rain { 0% { transform: translateY(-5px) rotate(20deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(9px) rotate(20deg); opacity: 0; } }
@keyframes hh-weather-snow { 0% { transform: translateY(-4px) translateX(-2px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(12px) translateX(3px); opacity: 0; } }
@keyframes hh-weather-flash { 0%, 12%, 22%, 100% { opacity: 0.25; } 14%, 18% { opacity: 1; } }
@keyframes hh-weather-mist { to { transform: translateX(8px); opacity: .55; } }
@keyframes hh-weather-glow { 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
    .hh-weather-widget .hh-weather-icon *,
    .hh-weather-widget .hh-weather-icon *::before,
    .hh-weather-widget .hh-weather-icon *::after { animation: none !important; }
}
