@font-face {
  font-family: Roboto;
  src: url("fonts/roboto.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: #333;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --tafel: rgb(209 209 209 / 70%);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #665952; }
body:not(.startseite) { min-height: 100vh; }
a { color: inherit; }
button, summary { cursor: pointer; }
button { font: inherit; }
p { margin: 0 0 .9em; }
:focus-visible { outline: 3px solid #0759b5; outline-offset: 4px; }

.sprunglink {
  position: fixed;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  padding: .5rem .75rem;
  background: white;
  transform: translateY(-200%);
}
.sprunglink:focus { transform: none; }

.hintergrund {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #665952 url("img/grote-waermepumpe-klinker.jpg") center / cover no-repeat;
  pointer-events: none;
}
.bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.3);
}
.bild.sichtbar {
  opacity: 1;
  transform: scale(1);
  transition: opacity .5s ease, transform 7s linear;
}
.bild.aktuell { z-index: 1; }
.bild.sofort { transition: transform 7s linear; }

.rahmen {
  position: relative;
  width: min(1140px, 100% - 20px);
  margin-inline: auto;
}
.start-rahmen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 10px;
}
.tafel {
  border: 3px groove #d1d1d1;
  background: var(--tafel);
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
}
.logo-flaeche {
  display: grid;
  grid-template-columns: minmax(0, 800px);
  justify-content: center;
  align-items: center;
  padding: 9px;
}
.logo-flaeche::before {
  content: "";
  grid-area: 1 / 1;
  aspect-ratio: 1024 / 510;
}
.logo-ausschnitt {
  position: relative;
  grid-area: 1 / 1;
  display: block;
  overflow: hidden;
  aspect-ratio: 1250 / 460;
  mix-blend-mode: darken;
}
.logo-ausschnitt img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 115.84%;
  height: auto;
  transform: translate(-50%, -49.2%);
}
.kontakt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
  color: #02689e;
  font-family: Roboto, Arial, sans-serif;
  overflow-wrap: anywhere;
}
.kontakt-links { align-self: center; text-align: right; }
.kontakt a, .rechtstext a[href^="tel:"], .rechtstext a[href^="mailto:"] { text-decoration: none; }
.kontakt a:hover, .rechtstext a:hover { text-decoration: underline; }

.seitenfuss { padding: 10px; }
.fuss-links {
  display: flex;
  justify-content: center;
  color: #6ec1e4;
  font: 600 1rem/1.25 Verdana, sans-serif;
}
.fuss-links a {
  display: block;
  padding: 13px 20px;
  text-decoration: none;
}
.fuss-links a:hover, .fuss-links a:focus-visible { text-decoration: underline; }
.fuss-menue { display: none; }

.recht-rahmen { padding-block: 10px; }
.rechtstext {
  margin: 30px 10px 0;
  padding: 19px 10px 10px;
  background: rgb(245 245 245 / 94%);
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
  overflow-wrap: anywhere;
}
.rechtstext h1, .rechtstext h2, .rechtstext h3, .rechtstext h4 {
  margin: .5rem 0 1rem;
  font-weight: 500;
  line-height: 1.2;
}
.rechtstext h1 { font-size: 2.5rem; }
.rechtstext h2 { font-size: 2rem; }
.rechtstext h3 { font-size: 1.75rem; }
.rechtstext h4 { font-size: 1.5rem; }

.einstellungen-oeffnen {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgb(0 0 0 / 25%);
}
.barriere-knopf {
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  color: white;
  background: #304cff;
}
.barriere-zeichen {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
}
.barriere-zeichen::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.barriere-figur {
  position: relative;
  width: 2px;
  height: 9px;
  margin-top: -2px;
  background: currentColor;
}
.barriere-figur::before, .barriere-figur::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.barriere-figur::before {
  top: 1px;
  width: 12px;
  border-top: 1.5px solid currentColor;
}
.barriere-figur::after {
  top: 7px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}
dialog {
  width: min(29rem, 100% - 2rem);
  padding: 1.25rem;
  border: 1px solid #bbb;
  border-radius: .5rem;
  color: #222;
  background: white;
}
dialog::backdrop { background: rgb(0 0 0 / 45%); }
dialog h2 { margin: 0 0 1rem; font-size: 1.25rem; }
dialog label { display: block; margin: .75rem 0; }
dialog button { margin-top: .75rem; }
.mehr-kontrast .tafel, .mehr-kontrast .rechtstext { background: white; color: #111; }
.mehr-kontrast .fuss-links { background: #222; color: white; }
.groessere-schrift { font-size: 120%; }
.weniger-bewegung .bild { transition: none; transform: none; }

@media (max-width: 1024px) {
  .fuss-links { display: none; }
  .fuss-menue { display: block; text-align: center; }
  .fuss-menue summary {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 3px;
    color: #33373d;
    background: rgb(255 255 255 / 55%);
    list-style: none;
    font-size: 1.375rem;
  }
  .fuss-menue summary::-webkit-details-marker { display: none; }
  .fuss-menue nav { margin-top: 10px; background: white; }
  .fuss-menue nav a {
    display: block;
    padding: 10px 20px;
    color: #33373d;
    font: 600 1rem/1.25 Verdana, sans-serif;
    text-align: left;
    text-decoration: none;
  }
  .fuss-menue nav a:hover { background: #eee; }
}

@media (max-width: 767px) {
  .kontakt { grid-template-columns: 1fr; }
  .rechtstext { margin-inline: 0; }
  .rechtstext h1 { font-size: 2rem; }
  .rechtstext h2 { font-size: 1.6rem; }
  .rechtstext h3 { font-size: 1.35rem; }
  .rechtstext h4 { font-size: 1.15rem; }
  .barriere-knopf { right: 14px; bottom: 14px; }
}

