
:root {
  --st-gruen: #137333;
  --st-gruen-50: #e6f4ea;
  --st-orange: #a14a07;
  --st-orange-50: #fdf0e1;
  --st-rot: #c5221f;
  --st-rot-50: #fce8e6;
}

.st-lage, .st-meldung, .st-eintrag { --st-farbe: var(--accent-700); --st-flaeche: var(--accent-50); }
:is(.st-lage, .st-meldung, .st-eintrag):is(.st-lage--ok, .st-meldung--ok, .st-eintrag--ok, .st-meldung--behoben, .st-eintrag--behoben) { --st-farbe: var(--st-gruen); --st-flaeche: var(--st-gruen-50); }
:is(.st-lage--stoerung, .st-meldung--stoerung, .st-eintrag--stoerung) { --st-farbe: var(--st-orange); --st-flaeche: var(--st-orange-50); }
:is(.st-lage--ausfall, .st-meldung--ausfall, .st-eintrag--ausfall) { --st-farbe: var(--st-rot); --st-flaeche: var(--st-rot-50); }
:is(.st-lage--wartung, .st-meldung--wartung, .st-eintrag--wartung) { --st-farbe: var(--primary); --st-flaeche: var(--tile-2); }

.st-lage {
  position: relative; overflow: hidden;
  max-width: 32rem; margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-l);
  background: var(--tile);
  box-shadow: var(--shadow-l);
}
.st-lage::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--st-farbe); }
.st-lage__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.st-lage__label { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.st-lage__dienst { display: inline-flex; align-items: center; gap: .45rem; color: var(--primary); font-size: .9375rem; font-weight: 600; }
.st-lage__dienst .icon { width: 1.05em; height: 1.05em; color: var(--accent); }
.st-lage__zustand {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem; padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--st-flaeche);
  color: var(--ink); font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.4375rem); font-weight: 700; line-height: 1.3;
}
.st-lage__icon {
  position: relative; display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--st-farbe); color: var(--white);
}
.st-lage__icon .icon { width: 26px; height: 26px; }
.st-lage__icon::after { content: ""; position: absolute; inset: -6px; border: 2px solid var(--st-farbe); border-radius: 50%; opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .st-lage__icon::after { animation: st-puls 1.8s var(--ease) .6s 3 both; }
}
@keyframes st-puls {
  0% { transform: scale(.85); opacity: .7; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1); opacity: .35; }
}
.st-lage__fuss {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem;
  margin-top: 1.25rem; color: var(--muted); font-size: .9375rem; line-height: 1.5;
}
.st-lage__fuss > .icon { width: 1em; height: 1em; color: var(--accent); }
.st-lage__fuss .more-link { margin-left: auto; }
@media (max-width: 479.98px) {
  .st-lage__zustand { gap: .8rem; padding: 1rem; font-size: 1.125rem; }
  .st-lage__icon { width: 44px; height: 44px; }
  .st-lage__icon .icon { width: 22px; height: 22px; }
}

.st-meldung {
  position: relative; overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.25rem) clamp(1.4rem, 4vw, 2.25rem) calc(clamp(1.25rem, 4vw, 2.25rem) + 6px);
  border-radius: var(--radius-l);
  background: var(--tile);
  box-shadow: var(--shadow);
}
.st-meldung::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--st-farbe); }
.st-meldung__kopf { display: flex; align-items: flex-start; gap: 1rem; }
.st-meldung__icon, .st-eintrag__icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: var(--radius-s);
  background: var(--st-flaeche); color: var(--st-farbe);
}
.st-meldung__icon .icon { width: 22px; height: 22px; }
.st-meldung__meta, .st-eintrag__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; color: var(--muted); font-size: .875rem; font-weight: 600; line-height: 1.5; }
.st-meldung h3 { margin-top: .3rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.st-meldung__text { max-width: none; margin-top: 1.25rem; }

.st-badge {
  display: inline-flex; align-items: center;
  padding: .1rem .65rem; border-radius: 99px;
  background: var(--st-flaeche); color: var(--st-farbe);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase;
}

.st-archiv { display: grid; gap: .9rem; }
.st-eintrag { border-radius: var(--radius); background: var(--tile); box-shadow: var(--shadow-s); transition: box-shadow .2s; }
.st-eintrag[open] { box-shadow: var(--shadow); }
.st-eintrag > summary {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--radius);
  list-style: none; cursor: pointer;
}
.st-eintrag > summary::-webkit-details-marker { display: none; }
.st-eintrag__icon { width: 44px; height: 44px; }
.st-eintrag__icon .icon { width: 20px; height: 20px; }
.st-eintrag__kopf { display: grid; flex: 1; min-width: 0; gap: .15rem; }
.st-eintrag__titel { color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; text-wrap-style: balance; }
.st-eintrag__pfeil { width: 18px; height: 18px; color: var(--accent); transition: transform .3s var(--ease); }
.st-eintrag[open] .st-eintrag__pfeil { transform: rotate(180deg); }
.st-eintrag > summary:hover .st-eintrag__titel { color: var(--primary); }
.st-eintrag__inhalt { max-width: none; padding: .25rem clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem); color: var(--muted); }
@media (min-width: 640px) {
  .st-eintrag__inhalt { padding-left: calc(clamp(1rem, 3vw, 1.5rem) + 44px + 1rem); }
}
.st-adresse { overflow-wrap: anywhere; -webkit-hyphens: none; hyphens: none; }
.st-update { display: flex; align-items: flex-start; gap: .6rem; padding: .8rem 1rem; border-radius: var(--radius-s); background: var(--st-gruen-50); color: var(--ink); }
.st-update .icon { margin-top: .3em; color: var(--st-gruen); }

.st-bild img { width: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); box-shadow: var(--shadow-s); }
