/* Übernommen aus igw-mieterportal src/site/site.css@925ee81 (Teil 1 von 3) (0036 W8). Regeln wörtlich;
 * angepasst: mit Biome formatiert und nach Regel 4 geteilt (Reihenfolge unverändert).
 * Pfade der Schriften auf /fonts/. */
/* Archivo (SIL OFL) liegt lokal und wird im Kopf jeder Seite vorgeladen, damit beim Laden nichts springt */
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Audiowide";
  src: url("/fonts/audiowide-regular.woff2") format("woff2");
  font-display: swap;
}
/* Bergischer Dreiklang: Schiefer, Kalkweiß, Salbei. Grauwacke für Linien, Fensterlicht nur für „bewohnt“. */
:root {
  --schiefer: #2c2c2c;
  --nacht: #1c1f1e;
  --kalk: #f6f7f5;
  --papier: #ecefec;
  --salbei: #b2c3bd;
  --salbei-tief: #5f7a6e;
  --logo: #bec6c4;
  --grauwacke: #5c6560;
  --nebel: #a3ada8;
  --licht: #edbe76;
  --linie-hell: rgba(44, 44, 44, 0.16);
  --linie-dunkel: rgba(233, 236, 234, 0.16);
  --text: "Archivo Variable", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zeichen: "Audiowide", "Archivo Variable", system-ui, sans-serif;
  --rand: max(20px, env(safe-area-inset-left, 0px));
  --rand-r: max(20px, env(safe-area-inset-right, 0px));
  --breit: 1320px;
  color-scheme: dark;
}
@media (min-width: 900px) {
  :root {
    --rand: max(48px, env(safe-area-inset-left, 0px));
    --rand-r: max(48px, env(safe-area-inset-right, 0px));
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: 88px;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
body {
  margin: 0;
  background: var(--nacht);
  color: var(--kalk);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--salbei);
  outline-offset: 3px;
}
.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sprung {
  position: absolute;
  left: var(--rand);
  top: -60px;
  z-index: 50;
  background: var(--kalk);
  color: var(--schiefer);
  padding: 10px 14px;
}
.sprung:focus {
  top: 12px;
}
/* Kopf: Logo mittig; auf der Startseite erst sichtbar, wenn das große Logo weg ist */
.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--rand-r) 14px var(--rand);
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1),
    padding 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
  border-bottom: 1px solid transparent;
}
/* Beim Lesen nach unten tritt die Kopfleiste zurück, beim ersten Zug nach oben ist sie sofort wieder da. Mit Fläche
 * wird sie etwas niedriger und legt einen leichten Schleier über das, was darunter durchläuft. */
.kopf[data-weg="ja"] {
  transform: translateY(-100%);
}
.kopf:is([data-flaeche="ja"], [data-ton="hell"]) {
  padding-top: calc(9px + env(safe-area-inset-top, 0px));
  padding-bottom: 9px;
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
@media (prefers-reduced-motion: reduce) {
  .kopf {
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }
}
.kopf[data-flaeche="ja"] {
  background: rgba(28, 31, 30, 0.92);
  border-bottom-color: var(--linie-dunkel);
}
.kopf[data-ton="hell"] {
  background: rgba(246, 247, 245, 0.94);
  color: var(--schiefer);
  border-bottom-color: var(--linie-hell);
}
.kopf-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.kopf-nav a {
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.kopf-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s ease;
}
.kopf-nav a:hover::after,
.kopf-nav a:focus-visible::after {
  right: 0;
}
.kopf-rechts {
  justify-content: flex-end;
}
.kopf-portal {
  padding: 6px 14px !important;
  border: 1px solid currentColor;
}
.kopf-portal::after {
  display: none;
}
.kopf-logo {
  display: block;
  width: 48px;
  height: 44px;
  overflow: hidden;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.kopf[data-logo="aus"] .kopf-logo {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.kopf-logo img {
  width: 91px;
  height: 54px;
  max-width: none;
  margin: -5px 0 0 -21.5px;
}
.kopf[data-ton="hell"] .kopf-logo img {
  filter: brightness(0.82) contrast(1.15);
}
.kopf-menue {
  display: none;
  justify-self: end;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: inherit;
  font-size: 15px;
  color: inherit;
  background: none;
  border: 1px solid currentColor;
  padding: 0 16px 0 14px;
  cursor: pointer;
}
.menue-zeichen {
  position: relative;
  width: 16px;
  height: 10px;
}
.menue-zeichen i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.1, 1),
    top 0.4s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.menue-zeichen i:first-child {
  top: 0;
}
.menue-zeichen i:last-child {
  top: 8.5px;
}
.kopf-menue[aria-expanded="true"] .menue-zeichen i:first-child {
  top: 4.25px;
  transform: rotate(45deg);
}
.kopf-menue[aria-expanded="true"] .menue-zeichen i:last-child {
  top: 4.25px;
  transform: rotate(-45deg);
}
.menue {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: var(--nacht);
  color: var(--kalk);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 112px var(--rand-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--rand);
  overflow-y: auto;
}
.menue[hidden] {
  display: none;
}
.menue-wege {
  display: grid;
  border-top: 1px solid var(--linie-dunkel);
}
.menue-wege a {
  display: grid;
  gap: 2px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--linie-dunkel);
  color: inherit;
  text-decoration: none;
}
.menue-wege strong {
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 118;
}
.menue-wege span {
  font-size: 15px;
  color: var(--nebel);
}
.menue-wege a[aria-current="page"] strong {
  color: var(--salbei);
}
.menue-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.menue-post {
  color: var(--salbei);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0;
}
/* Auftritt: die Fläche fährt von oben auf, die Wege folgen gestaffelt; beim Schließen blendet alles kurz aus */
