.d4y-sr {
  --d4y-sr-magenta: #ec006a;
  --d4y-sr-navy: #121b2b;
  --d4y-sr-sky: #56c7ff;
  background: linear-gradient(135deg, #101725 0%, #202b3d 100%);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  color: #fff;
  margin: 18px 0;
  overflow: hidden;
}
.d4y-sr * { box-sizing: border-box; }
.d4y-sr__head { align-items: end; border-bottom: 3px solid var(--d4y-sr-magenta); display: flex; gap: 18px; justify-content: space-between; padding: 18px 22px 15px; }
.d4y-sr__head span { color: var(--d4y-sr-sky); display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.d4y-sr__head h2 { color: #fff; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.1; margin: 4px 0 0; }
.d4y-sr__head small { color: #cbd3df; white-space: nowrap; }
.d4y-sr__grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); background: rgba(255,255,255,.12); }
.d4y-sr__card { background: rgba(10,16,27,.83); min-height: 132px; }
.d4y-sr__card > a, .d4y-sr__card > div { color: #fff; display: flex; flex-direction: column; height: 100%; padding: 17px 18px; text-decoration: none; }
.d4y-sr__card > a:hover { background: rgba(255,255,255,.07); }
.d4y-sr__card span { color: var(--d4y-sr-sky); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.d4y-sr__card strong { color: #fff; font-size: 21px; line-height: 1.15; margin: 9px 0 7px; }
.d4y-sr__card small { color: #d7deea; line-height: 1.35; }
.d4y-sr__card--warning { box-shadow: inset 0 4px 0 #ffb000; }
.d4y-sr__card--safe { box-shadow: inset 0 4px 0 #29a56d; }
.d4y-sr__card--weather { box-shadow: inset 0 4px 0 var(--d4y-sr-sky); }
.d4y-sr__card--pegel { box-shadow: inset 0 4px 0 var(--d4y-sr-magenta); }
@media (max-width: 620px) { .d4y-sr__head { align-items: flex-start; flex-direction: column; } .d4y-sr__grid { grid-template-columns: 1fr 1fr; } .d4y-sr__card { min-height: 122px; } }
@media (max-width: 420px) { .d4y-sr__grid { grid-template-columns: 1fr; } }


/* Kompakte Einbindung innerhalb der Sonnenkarte des D4Y-Wetter-Widgets. */
.d4y-weather-graphic .d4y-sun-card .d4y-sr-pegel-inline {
    grid-column: 1 / -1;
    display: block;
    min-width: 0;
}
.d4y-weather-graphic .d4y-sr-pegel-inline a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label value" "detail time";
    gap: 1px 10px;
    align-items: center;
    margin-top: 2.2%;
    padding-top: 2.2%;
    border-top: 1px solid rgba(255,255,255,.18);
    color: #fff;
    text-decoration: none;
}
.d4y-weather-graphic .d4y-sun-card .d4y-sr-pegel-strip__label {
    grid-area: label;
    grid-row: auto;
    color: #ffafd1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.d4y-weather-graphic .d4y-sun-card .d4y-sr-pegel-inline strong {
    grid-area: value;
    color: #fff;
    font-size: 19px;
    line-height: 1;
    white-space: nowrap;
}
.d4y-weather-graphic .d4y-sun-card .d4y-sr-pegel-strip__detail {
    grid-area: detail;
    grid-row: auto;
    color: #fff;
    font-size: 10px;
    line-height: 1.15;
}
.d4y-weather-graphic .d4y-sun-card .d4y-sr-pegel-inline small {
    grid-area: time;
    grid-row: auto;
    color: rgba(255,255,255,.58);
    font-size: 7px;
    text-align: right;
}
.d4y-weather-graphic .d4y-sr-pegel-inline a:hover .d4y-sr-pegel-strip__label,
.d4y-weather-graphic .d4y-sr-pegel-inline a:focus-visible .d4y-sr-pegel-strip__label {
    color: #fff;
}
