@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --orange: #ff5500;
  --vorlauf: #d7261e;
  --ruecklauf: #2f6fb5;
  --schiefer: #1f2a33;
  --grau: #5d6870;
  --linie: #d5dade;
  --link: #b83a00;
  --breite: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--schiefer);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--link);
  text-underline-offset: .15em;
}

a:hover {
  color: var(--vorlauf);
}

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

img {
  max-width: 100%;
  height: auto;
}

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.kopf {
  background: var(--orange);
  color: #fff;
}

.kopf .huelle {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-top: 1.6rem;
}

.titel {
  padding-bottom: 1rem;
  color: #fff;
  text-decoration: none;
}

.titel:hover {
  color: #fff;
}

.titel h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.titel p {
  margin: .2rem 0 0;
  font-size: 1rem;
}

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation a {
  display: block;
  padding: .3rem 0 .7rem;
  border-bottom: 3px solid transparent;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.navigation a:hover {
  border-bottom-color: rgba(255, 255, 255, .5);
}

.navigation a[aria-current="page"] {
  border-bottom-color: #fff;
}

.leitung {
  height: 10px;
  background:
    linear-gradient(var(--vorlauf), var(--vorlauf)) 0 0 / 100% 4px no-repeat,
    linear-gradient(var(--ruecklauf), var(--ruecklauf)) 0 6px / 100% 4px no-repeat;
}

.inhalt {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.anlage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 2.5rem;
  align-items: start;
}

.anlage-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-bottom: .6rem;
}

.anlage-kopf h2 {
  margin: 0;
  font-size: 1.45rem;
}

.schema {
  position: relative;
  width: 100%;
  aspect-ratio: 970 / 720;
  overflow: hidden;
  border: 1px solid var(--linie);
  background: #fff;
}

.schema iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1024px;
  height: 768px;
  border: 0;
  transform-origin: 0 0;
}

.laden {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 1rem;
  background: #fff;
  text-align: center;
  transition: opacity .4s;
}

.laden.fertig {
  opacity: 0;
  pointer-events: none;
}

.laden p {
  margin: 0;
}

.laden .klein {
  color: var(--grau);
  font-size: .95rem;
}

.rohre {
  width: min(240px, 60%);
  height: auto;
}

.rohre .fluss {
  stroke-dasharray: 10 8;
  animation: fliessen .9s linear infinite;
}

.rohre .zurueck {
  animation-direction: reverse;
}

@keyframes fliessen {
  to {
    stroke-dashoffset: -18;
  }
}

.gestoert .rohre {
  opacity: .35;
}

.gestoert .rohre .fluss {
  animation-play-state: paused;
}

.laden button {
  font: inherit;
  font-weight: 600;
  padding: .45rem 1.1rem;
  border: 2px solid var(--schiefer);
  border-radius: 2px;
  background: #fff;
  color: var(--schiefer);
  cursor: pointer;
}

.laden button:hover {
  background: var(--schiefer);
  color: #fff;
}

.anmerkung {
  margin: .6rem 0 0;
  color: var(--grau);
  font-size: .95rem;
}

.seitenleiste h2 {
  margin: 0 0 .6rem;
  font-size: 1.1rem;
}

.seitenleiste section + section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
}

.wetter {
  min-height: 160px;
}

.text {
  max-width: 42rem;
}

.text h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
}

.text h3 {
  margin: 2.2rem 0 .5rem;
  font-size: 1.3rem;
}

.text p,
.text ul,
.text ol {
  margin: 0 0 1rem;
}

.text ul,
.text ol {
  padding-left: 1.25rem;
}

.text li {
  margin-bottom: .3rem;
}

.text li::marker {
  color: var(--grau);
}

.gruss {
  margin-top: 2.2rem;
}

.platzhalter {
  color: var(--grau);
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: none;
}

.galerie figure {
  margin: 0;
}

.galerie img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.galerie figcaption {
  margin-top: .4rem;
  color: var(--grau);
  font-size: .95rem;
}

.fuss {
  border-top: 1px solid var(--linie);
  color: var(--grau);
  font-size: .9rem;
}

.fuss .huelle {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 2.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.3rem;
}

.fuss p {
  margin: 0;
}

.fuss p:last-child {
  margin-left: auto;
}

@media (max-width: 900px) {
  .anlage {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .seitenleiste {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
  }

  .seitenleiste section + section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .huelle {
    padding: 0 1rem;
  }

  .kopf .huelle {
    padding-top: 1.2rem;
  }

  .navigation ul {
    gap: 0 1.1rem;
  }

  .fuss p:last-child {
    margin-left: 0;
  }
}

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

  .laden {
    transition: none;
  }
}
