/* Scoped additions to the existing Schwarzwald Modern weather card. */
.sw-widget.sw-expanded .swx-note{font-size:.82rem;line-height:1.5;opacity:.8;margin:.65rem 0 1rem}
.sw-widget.sw-expanded .swx-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:.65rem}
.sw-widget.sw-expanded .swx-scroll:focus-visible,.sw-widget.sw-expanded summary:focus-visible{outline:2px solid #5292ce;outline-offset:3px}
.sw-widget.sw-expanded .swx-hours{display:grid;grid-auto-flow:column;grid-auto-columns:155px;gap:10px}
.sw-widget.sw-expanded .swx-hour{display:flex;flex-direction:column;align-items:center;background:var(--sw-card,transparent);border:1px solid rgba(128,128,128,.25);border-radius:12px;padding:14px 10px;color:inherit}
.sw-widget.sw-expanded .swx-hour-time{font-size:1.15rem;margin-top:4px}
.sw-widget.sw-expanded .swx-value{display:flex;flex-direction:column;gap:2px;text-align:center;padding:5px 0;width:100%;line-height:1.35}
.sw-widget.sw-expanded .swx-value>span{font-size:.72rem;opacity:.8}
.sw-widget.sw-expanded .swx-value>strong{font-size:.9rem;color:inherit}
.sw-widget.sw-expanded .swx-snow{border-radius:6px;background:rgba(82,146,206,.1)}
.sw-widget.sw-expanded .sw-forecast{display:grid!important;grid-template-columns:repeat(7,minmax(150px,1fr));gap:10px;min-width:1110px}
.sw-widget.sw-expanded .sw-day{min-width:0!important;padding:14px 10px;display:flex;flex-direction:column;align-items:center}
.sw-widget.sw-expanded .sw-day-icon{display:block;width:58px;height:58px;flex-shrink:0}
.sw-widget.sw-expanded .sw-day-icon svg{width:100%;height:100%}
.sw-widget.sw-expanded .sw-day-condition{min-height:1.5em}
.sw-widget.sw-expanded .swx-details{margin:20px 0;border:1px solid rgba(128,128,128,.3);border-radius:12px;padding:14px}
.sw-widget.sw-expanded .swx-details summary{cursor:pointer;font-weight:650;padding:4px}
.sw-widget.sw-expanded .swx-extras{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.sw-widget.sw-expanded .swx-sun{width:100%;border-collapse:collapse;margin:0;color:inherit;background:transparent}
.sw-widget.sw-expanded .swx-sun caption{text-align:left;font-weight:600;padding:8px}
.sw-widget.sw-expanded .swx-sun tr,.sw-widget.sw-expanded .swx-sun th,.sw-widget.sw-expanded .swx-sun td{background:transparent!important;color:inherit!important;border:0;border-bottom:1px solid rgba(128,128,128,.25);padding:10px;text-align:left;font-size:.85rem}
.sw-widget.sw-expanded .sw-widget-footer{flex-wrap:wrap;gap:8px}
@media(max-width:600px){.sw-widget.sw-expanded .swx-hours{grid-auto-columns:145px}.sw-widget.sw-expanded .swx-extras{grid-template-columns:1fr}.sw-widget.sw-expanded .sw-forecast-heading{flex-wrap:wrap;gap:6px}.sw-widget.sw-expanded .swx-details{padding:10px}}
/* 1.1.1: shorter cards and restrained icon motion, fully scoped. */
.sw-widget.sw-compact .swx-hours{grid-auto-columns:132px;align-items:start;gap:8px}
.sw-widget.sw-compact .sw-forecast{grid-template-columns:repeat(7,minmax(130px,1fr));min-width:958px;align-items:start;gap:8px}
.sw-widget.sw-compact .swx-hour,.sw-widget.sw-compact .sw-day{padding:10px 8px;gap:0}
.sw-widget.sw-compact .sw-day-icon{width:46px;height:46px;margin:2px 0}
.sw-widget.sw-compact .sw-day-condition{font-size:.78rem;margin:0 0 4px}
.sw-widget.sw-compact .swx-value{padding:3px 0;gap:0}
.sw-widget.sw-compact .swx-value>span{font-size:.67rem}
.sw-widget.sw-compact .swx-value>strong{font-size:.84rem}
.sw-widget.sw-compact .swx-temperature>strong{font-size:1.15rem}
.sw-widget.sw-compact .swx-card-details{width:100%;margin-top:7px;border-top:1px solid rgba(128,128,128,.25);text-align:center}
.sw-widget.sw-compact .swx-card-details summary{font-size:.75rem;cursor:pointer;padding:7px 2px;color:inherit}
.sw-widget.sw-compact .swx-card-details summary:focus-visible{outline:2px solid #5292ce;outline-offset:1px}
.sw-widget.sw-compact .swx-symbols{display:flex;flex-wrap:wrap;gap:30px;justify-content:center;padding:12px}
.sw-widget.sw-compact .swx-symbol-example{display:flex;flex-direction:column;align-items:center;gap:8px}
.sw-widget.sw-compact .swx-symbol-example .sw-day-icon{width:70px;height:70px}
/* Override older bundle animations so they cannot combine with new motion. */
.sw-widget.sw-compact .sw-day-icon svg,.sw-widget.sw-compact .sw-day-icon g,.sw-widget.sw-compact .sw-day-icon path{animation:none!important}
.sw-widget.sw-compact .sw-icon-drop path{animation:swc-rain 1.5s linear infinite!important}
.sw-widget.sw-compact .sw-icon-drop path:nth-child(2){animation-delay:-.5s!important}
.sw-widget.sw-compact .sw-icon-drop path:nth-child(3){animation-delay:-1s!important}
.sw-widget.sw-compact .sw-icon-snow path{animation:swc-snow 3.4s ease-in-out infinite!important}
.sw-widget.sw-compact .sw-icon-snow path:nth-child(2){animation-delay:-1.7s!important}
.sw-widget.sw-compact .sw-icon-sun-rays{transform-origin:24px 22px;animation:swc-sun 40s linear infinite!important}
@keyframes swc-rain{0%{transform:translate(1px,-3px);opacity:0}20%{opacity:1}80%{opacity:1}100%{transform:translate(-2px,7px);opacity:0}}
@keyframes swc-snow{0%{transform:translate(-1px,-3px);opacity:0}20%{opacity:1}50%{transform:translate(2px,2px);opacity:1}100%{transform:translate(-1px,7px);opacity:0}}
@keyframes swc-sun{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.sw-widget.sw-compact .sw-day-icon svg,.sw-widget.sw-compact .sw-day-icon g,.sw-widget.sw-compact .sw-day-icon path{animation:none!important;transform:none!important;opacity:1!important}}
.sw-widget.sw-compact .sw-day-icon .sw-icon-sun-rays{transform-origin:24px 22px;animation:swc-sun 40s linear infinite!important}
@media(prefers-reduced-motion:reduce){.sw-widget.sw-compact.sw-expanded .sw-day-icon *{animation:none!important;transform:none!important;opacity:1!important}}
/* 1.1.2: visible, tightly spaced label/value rows. */
.sw-widget.sw-dense .swx-hours{grid-auto-columns:185px;gap:8px}
.sw-widget.sw-dense .sw-forecast{grid-template-columns:repeat(7,minmax(185px,1fr));min-width:1343px;gap:8px}
.sw-widget.sw-dense .swx-hour,.sw-widget.sw-dense .sw-day{padding:9px 10px;gap:0!important;justify-content:flex-start!important}
.sw-widget.sw-dense .swx-value{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;gap:6px;width:100%;padding:3px 0!important;margin:0!important;line-height:1.25}
.sw-widget.sw-dense .swx-value>span{font-size:.66rem;text-align:left;white-space:nowrap}
.sw-widget.sw-dense .swx-value>strong{font-size:.78rem;text-align:right;white-space:nowrap}
.sw-widget.sw-dense .swx-temperature>strong{font-size:.87rem}
.sw-widget.sw-dense .swx-snow{background:transparent}
.sw-widget.sw-dense .swx-now-pair{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.sw-widget.sw-dense .swx-now-label{font-size:.75rem;font-weight:400;line-height:1.3}
.sw-widget.sw-dense .swx-now-pair>span:last-child{white-space:nowrap;line-height:1.2}
.sw-widget.sw-dense .swx-now-pair strong{font-size:1.7rem}
.sw-widget.sw-dense .swx-details{padding:10px 12px;margin:12px 0}
.sw-widget.sw-dense .swx-details h3{font-size:1rem;margin:0 0 8px}
.sw-widget.sw-dense .swx-details .swx-note{margin:6px 0}
.sw-widget.sw-dense .swx-extras{margin-top:6px}
@media(max-width:600px){.sw-widget.sw-dense .swx-extras .swx-value{flex-direction:column;align-items:flex-start}.sw-widget.sw-dense .swx-now-pair strong{font-size:1.4rem}}

/* 1.1.8: alternating captions, larger symbols and livelier weather. */
.sw-widget.sw-lively .sw-day-icon{width:76px;height:76px;margin:3px 0;overflow:visible}
.sw-widget.sw-lively .sw-day-icon svg{overflow:visible}
/* Keep row geometry and accessible text, including on unlabelled cards. */
.sw-widget.sw-lively .sw-day:nth-child(even) .swx-value>span,
.sw-widget.sw-lively .swx-hour:nth-child(even) .swx-value>span,
.sw-widget.sw-lively .sw-day:nth-child(even) .sw-day-condition,
.sw-widget.sw-lively .swx-hour:nth-child(even) .sw-day-condition{opacity:0}
.sw-widget.sw-lively .sw-day-icon .sw-icon-cloud{animation:swl-cloud 4.5s ease-in-out infinite!important}
.sw-widget.sw-lively .sw-day-icon .sw-icon-sun-rays{animation:swc-sun 16s linear infinite!important}
.sw-widget.sw-lively .sw-day-icon .sw-icon-drop path{animation:swl-rain .95s linear infinite!important}
.sw-widget.sw-lively .sw-day-icon .sw-icon-drop path:nth-child(2){animation-delay:-.32s!important}
.sw-widget.sw-lively .sw-day-icon .sw-icon-drop path:nth-child(3){animation-delay:-.64s!important}
.sw-widget.sw-lively .sw-day-icon .sw-icon-snow path{animation:swl-snow 2.6s ease-in-out infinite!important}
.sw-widget.sw-lively .sw-day-icon .sw-icon-snow path:nth-child(2){animation-delay:-1.3s!important}
@keyframes swl-cloud{0%,100%{transform:translate(-2px,0)}50%{transform:translate(2px,-1.5px)}}
@keyframes swl-rain{0%{transform:translate(2px,-4px);opacity:0}15%,70%{opacity:1}100%{transform:translate(-3px,9px);opacity:0}}
@keyframes swl-snow{0%{transform:translate(-3px,-4px);opacity:0}20%{opacity:1}50%{transform:translate(3px,3px);opacity:1}100%{transform:translate(-2px,9px);opacity:0}}
@media(prefers-reduced-motion:reduce){.sw-widget.sw-lively.sw-expanded .sw-day-icon *{animation:none!important;transform:none!important;opacity:1!important}}

/* 1.1.8: alternating wide / narrow cards, same vertical alignment. */
.sw-widget.sw-lively .swx-hours{grid-auto-columns:185px 120px;align-items:stretch}
.sw-widget.sw-lively .sw-forecast{min-width:0;width:max-content;align-items:stretch}
.sw-widget.sw-lively .sw-day:nth-child(even) .swx-value,
.sw-widget.sw-lively .swx-hour:nth-child(even) .swx-value{position:relative;justify-content:center}
.sw-widget.sw-lively .sw-day:nth-child(even) .swx-value>span,
.sw-widget.sw-lively .swx-hour:nth-child(even) .swx-value>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* 1.2.0: weather captions on every card; wind alongside weather summary. */
.sw-widget.sw-lively .sw-day:nth-child(even) .sw-day-condition,
.sw-widget.sw-lively .swx-hour:nth-child(even) .sw-day-condition{opacity:1}
.sw-widget.sw-lively .swx-card-direction{display:flex;align-items:center;justify-content:center;gap:5px;font-size:.72rem;line-height:24px;min-height:24px;margin:0 0 4px;white-space:nowrap}
.sw-widget.sw-lively .swx-direction-arrow{display:inline-block;font-size:22px;line-height:24px;width:24px;text-align:center;transform-origin:center}
.sw-widget.sw-lively .sw-day-condition{white-space:normal;overflow-wrap:anywhere;line-height:1.3;min-height:2.6em;display:flex;align-items:center;justify-content:center}

/* 1.2.1: kompakter Frostgrenzen-, Hinweis- und Quellenbereich. */
.sw-widget.sw-weather-section.sw-compact .swx-note {
  font-size: .76rem;
  line-height: 1.35;
  margin: .4rem 0 .6rem;
}

.sw-widget.sw-weather-section.sw-compact .swx-details {
  margin: 8px 0;
  padding: 8px 10px;
}

.sw-widget.sw-weather-section.sw-compact .swx-details h3 {
  font-size: .92rem;
  margin: 0 0 4px;
}

.sw-widget.sw-weather-section.sw-compact .swx-details .swx-extras {
  gap: 4px 12px;
  margin-top: 4px;
}

.sw-widget.sw-weather-section.sw-compact .swx-details .swx-note {
  font-size: .72rem;
  line-height: 1.3;
  margin: 4px 0 0;
}

.sw-widget.sw-weather-section.sw-compact .sw-widget-footer {
  gap: 4px 10px;
  font-size: .72rem;
  line-height: 1.3;
}


/* 1.2.2: Zusatzwerte als rechte Spalte im aktuellen Wetterblock. */
.sw-widget.sw-weather-section.sw-compact .swx-now-extras {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 145px;
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(82, 146, 206, .28);
}
.sw-widget.sw-weather-section.sw-compact .swx-now-extras-heading {
  font-size: .7rem;
  line-height: 1.25;
  opacity: .78;
  margin-bottom: 3px;
}
.sw-widget.sw-weather-section.sw-compact .swx-now-extras .swx-extras {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}
.sw-widget.sw-weather-section.sw-compact .swx-now-extras .swx-value {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: .72rem;
  line-height: 1.25;
}
@media (max-width: 700px) {
  .sw-widget.sw-weather-section.sw-compact .sw-now {
    flex-wrap: wrap;
  }
  .sw-widget.sw-weather-section.sw-compact .swx-now-extras {
    flex-basis: 100%;
    min-width: 0;
    margin: 5px 0 0;
    padding: 7px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(82, 146, 206, .28);
  }
  .sw-widget.sw-weather-section.sw-compact .swx-now-extras .swx-extras {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
  }
}


/* 1.2.3: Quellenangabe und Messhinweis als kompakte rechte Gruppe. */
.sw-widget.sw-weather-section.sw-compact .sw-widget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px 14px;
}
.sw-widget.sw-weather-section.sw-compact .sw-widget-footer-credit {
  margin-left: auto;
  text-align: right;
}
@media (max-width: 650px) {
  .sw-widget.sw-weather-section.sw-compact .sw-widget-footer {
    align-items: flex-start;
  }
  .sw-widget.sw-weather-section.sw-compact .sw-widget-footer-credit {
    flex: 0 1 auto;
    text-align: right;
  }
}
