@import url('https://fonts.googleapis.com/css2?family=Chivo:wght@300;400;600&family=Chivo+Mono:wght@300;400&display=swap');

:root {
  --grund: #f2f3f4;
  --flaeche: #fafafa;
  --tinte: #17191c;
  --grau: #5f666d;
  --linie: #d9dbdd;
  --akzent: #17191c;
  --warnung: #8c3a22;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: 'Chivo', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}

.versteckt {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.rahmen {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}


.ortswahl {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.suchfeld-huelle { position: relative; flex: 1; min-width: 0; }

#suche {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--tinte);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 2px;
  padding: 10px 12px;
}

#suche:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }

.vorschlaege {
  position: absolute;
  top: calc(100% + 3px);
  left: 0; right: 0;
  z-index: 10;
  list-style: none;
  margin: 0; padding: 0;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 2px;
  max-height: 260px;
  overflow-y: auto;
}

.vorschlaege li {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--linie);
}

.vorschlaege li:last-child { border-bottom: none; }
.vorschlaege li:hover,
.vorschlaege li[aria-selected="true"] { background: var(--grund); }
.vorschlaege .region { color: var(--grau); font-size: 13px; }

.knopf-neben {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--tinte);
  background: transparent;
  border: 1px solid var(--tinte);
  border-radius: 2px;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.knopf-neben:hover { background: var(--tinte); color: var(--grund); }

.ortsname {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--grau);
}


.meldung {
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 2px solid var(--warnung);
  background: var(--flaeche);
  font-size: 14px;
}

.meldung button {
  font-family: inherit;
  font-size: 14px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--tinte);
  padding: 0;
  margin-left: 6px;
  cursor: pointer;
  color: var(--tinte);
}


.reiter {
  display: flex;
  gap: 22px;
  margin: 24px 0 0;
  border-bottom: 1px solid var(--linie);
}

.reiter button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--grau);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 9px;
  margin-bottom: -1px;
  cursor: pointer;
}

.reiter button[aria-selected="true"] {
  color: var(--tinte);
  border-bottom-color: var(--tinte);
}

.panel { padding-top: 26px; }

.abschnitt { margin-top: 34px; }

.abschnitt h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--linie);
}


.jetzt-kopf {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  align-items: flex-start;
}

.jetzt-haupt { min-width: 180px; }

.grad {
  font-family: 'Chivo Mono', monospace;
  font-weight: 300;
  font-size: 76px;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.02em;
}

.lage {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--grau);
}

.werte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 30px;
  margin: 6px 0 0;
  flex: 1;
  min-width: 220px;
}

.werte dt { font-size: 13px; color: var(--grau); }

.werte dd {
  font-family: 'Chivo Mono', monospace;
  font-size: 17px;
  margin: 1px 0 0;
}


.stunden-band {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.stunde {
  flex: 0 0 auto;
  width: 50px;
  text-align: center;
  padding: 8px 0;
}

.stunde .uhr {
  font-family: 'Chivo Mono', monospace;
  font-size: 12px;
  color: var(--grau);
}

.stunde .balken {
  height: 4px;
  border-radius: 2px;
  margin: 7px 5px;
}

.stunde .temp {
  font-family: 'Chivo Mono', monospace;
  font-size: 14px;
}

.stunde.jetzt .uhr { color: var(--tinte); font-weight: 400; }
.stunde.jetzt { background: var(--flaeche); }


.tage { list-style: none; margin: 0; padding: 0; }

.tage li {
  display: grid;
  grid-template-columns: 74px 46px 1fr 46px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--linie);
}

.tage li:last-child { border-bottom: none; }

.tage .tag { font-size: 14px; }

.tage .min, .tage .max {
  font-family: 'Chivo Mono', monospace;
  font-size: 14px;
}

.tage .min { color: var(--grau); text-align: right; }

.tage .spanne {
  position: relative;
  height: 5px;
  background: var(--linie);
  border-radius: 3px;
}

.tage .spanne span {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 3px;
}


.einordnung {
  margin: 0;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.45;
  max-width: 46ch;
}

.einordnung b { font-weight: 600; }

.grafik-huelle { width: 100%; }

#grafik, #band { display: block; width: 100%; height: auto; }

.achse-linie { stroke: var(--linie); stroke-width: 1; }
.achse-text {
  font-family: 'Chivo Mono', monospace;
  font-size: 11px;
  fill: var(--grau);
}
.mittel-linie { fill: none; stroke: var(--tinte); stroke-width: 1.5; opacity: 0.55; }
.heute-linie { stroke: var(--tinte); stroke-width: 1.5; stroke-dasharray: 5 4; }
.heute-text {
  font-family: 'Chivo Mono', monospace;
  font-size: 11px;
  fill: var(--tinte);
}
.punkt { opacity: 0.82; }
.trenner { stroke: var(--linie); stroke-width: 1; }

.legende {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--grau);
  max-width: 60ch;
}

.fussnote {
  margin: 40px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--linie);
  font-size: 12px;
  line-height: 1.6;
  color: var(--grau);
  max-width: 62ch;
}


.laedt { position: relative; }

.skelett {
  background: var(--linie);
  opacity: 0.45;
  border-radius: 2px;
  animation: pulsen 1.4s ease-in-out infinite;
}

@keyframes pulsen {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.2; }
}


:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

@media (max-width: 560px) {
  .grad { font-size: 60px; }
  .werte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tage li { grid-template-columns: 62px 40px 1fr 40px; gap: 9px; }
  .rahmen { padding: 22px 16px 50px; }
  .einordnung { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .skelett { animation: none; }
}

.knopf-einheit {
  font-family: 'Chivo Mono', monospace;
  min-width: 52px;
  text-align: center;
}
