/* =====================================================================
   raumgewinn gmbh, Ladenbaumontage Schweiz
   Statische Seite, keine Frameworks, keine externen Verbindungen.
   ===================================================================== */

/* ---------- Schrift, lokal gehostet ---------- */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-latin.woff2") format("woff2");
  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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Farbmodi ---------- */
:root {
  --bg: #000000;
  --bg-2: #0b0b0b;
  --surface: #131212;
  --surface-2: #1c1b1b;
  --line: #2b2929;
  --line-soft: #1e1d1d;
  --text: #b9b7b7;
  --text-dim: #949292;
  --heading: #ffffff;
  --accent: #a200ad;
  --accent-hover: #b915c4;
  --accent-bright: #d24fd8;
  --on-accent: #ffffff;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);

  /* Das Logo traegt den Zusatz "AUSBAU - LADENBAU - GU". Damit der lesbar
     bleibt, ist es bewusst gross. Die Kopfhoehe haengt daran, siehe .kopf. */
  --logo-h: clamp(88px, 8vw, 112px);
  --wrap: 1200px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --pad-x: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(4rem, 9vw, 8rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root[data-theme="hell"] {
  --bg: #ffffff;
  --bg-2: #f7f7f8;
  --surface: #f4f5f6;
  --surface-2: #e9ebec;
  --line: #dcdee0;
  --line-soft: #e8eaec;
  --text: #4a4848;
  --text-dim: #6b6969;
  --heading: #171010;
  --accent: #a200ad;
  --accent-hover: #8c0096;
  --accent-bright: #8c0096;
  --on-accent: #ffffff;
  --shadow: 0 22px 50px -32px rgba(23, 16, 16, 0.35);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

body.nav-offen {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 3.1vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.032em;
}
h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.7rem);
}
h3 {
  font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.45rem);
}

p {
  margin: 0 0 1.1em;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--heading);
}

ul {
  padding-left: 1.15rem;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip:focus {
  top: 1rem;
  color: var(--on-accent);
}

/* ---------- Kopfzeile ---------- */
.kopf {
  /* muss auf demselben Element stehen wie die Ueberschreibung von --logo-h,
     sonst rechnet die Kopfhoehe beim Zusammenschieben nicht mit */
  --kopf-h: calc(var(--logo-h) + 34px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.kopf.gescrollt {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  /* beim Scrollen wird die Kopfzeile kompakter */
  --logo-h: 68px;
}

.kopf__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--kopf-h);
  transition: min-height 0.35s var(--ease);
}

/* dünner Fortschrittsbalken am unteren Rand der Kopfzeile */
.kopf::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: scaleX(var(--fortschritt, 0));
  transform-origin: left;
  opacity: 0.9;
  pointer-events: none;
}

.marke {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}
.marke:hover {
  transform: scale(1.03);
}
.marke img {
  height: var(--logo-h);
  width: auto;
  transition: height 0.35s var(--ease);
}
.marke .logo-hell {
  display: none;
}
:root[data-theme="hell"] .marke .logo-dunkel {
  display: none;
}
:root[data-theme="hell"] .marke .logo-hell {
  display: block;
}

/* Navigation, Desktop */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}
.nav__liste {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  padding: 0.35rem 0;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--heading);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.kopf__aktionen {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Modus-Schalter */
.modus {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.modus:hover {
  color: var(--heading);
  border-color: var(--accent-bright);
  transform: rotate(-18deg);
}
.modus svg {
  width: 19px;
  height: 19px;
}
.modus .icon-mond {
  display: none;
}
:root[data-theme="hell"] .modus .icon-sonne {
  display: none;
}
:root[data-theme="hell"] .modus .icon-mond {
  display: block;
}

/* Burger */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease),
    top 0.3s var(--ease);
}
.burger span:nth-child(1) {
  top: 15px;
}
.burger span:nth-child(2) {
  top: 21px;
}
.burger span:nth-child(3) {
  top: 27px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0.2);
}
.burger[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.knopf:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px var(--accent);
}
.knopf--rand {
  background: transparent;
  color: var(--heading);
  border-color: var(--line);
}
.knopf--rand:hover {
  background: transparent;
  color: var(--heading);
  border-color: var(--accent-bright);
}
.knopf--klein {
  padding: 0.62rem 1.2rem;
  font-size: 0.92rem;
}
.knopf svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Abschnitte ---------- */
.sek {
  padding-block: var(--sec-y);
}
.sek--flach {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.sek--ton {
  background: var(--bg-2);
  border-block: 1px solid var(--line-soft);
}

.augbraue {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  color: var(--text);
  max-width: 62ch;
}

.kopfblock {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.kopfblock--mitte {
  margin-inline: auto;
  text-align: center;
}
.kopfblock--mitte .lead {
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
:root[data-theme="hell"] .hero__bg img {
  opacity: 0.22;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg) 72%, transparent) 0%,
    color-mix(in srgb, var(--bg) 86%, transparent) 55%,
    var(--bg) 100%
  );
}
.hero__inner {
  max-width: 54rem;
}
.hero h1 {
  margin-bottom: 0.5em;
}
.hero .lead {
  font-size: clamp(1.08rem, 1rem + 0.55vw, 1.35rem);
  color: var(--heading);
  font-weight: 500;
}

.haken {
  list-style: none;
  margin: 2rem 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.haken li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text);
}
.haken li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: rotate(-45deg);
}

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Raster ---------- */
.raster {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.raster > * {
  min-width: 0;
}
@media (min-width: 720px) {
  .raster--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .raster--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 720px) and (max-width: 899.98px) {
  .raster--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Karten */
.karte {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.karte:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.karte h3 {
  margin-bottom: 0.5em;
}
.karte p:last-child {
  margin-bottom: 0;
}
/* Karten in einer Reihe sauber ausrichten: Nummer, Überschrift und Text
   sitzen ueber alle Karten hinweg auf derselben Hoehe. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 720px) {
    .raster--reihen2,
    .raster--reihen3 {
      align-items: stretch;
    }
    .raster--reihen2 .karte,
    .raster--reihen3 .karte {
      display: grid;
      grid-template-rows: subgrid;
      align-content: start;
    }
    .raster--reihen2 {
      grid-auto-rows: auto;
      grid-template-rows: auto 1fr;
    }
    .raster--reihen2 .karte {
      grid-row: span 2;
    }
    .raster--reihen3 {
      grid-template-rows: auto auto 1fr;
    }
    .raster--reihen3 .karte {
      grid-row: span 3;
    }
  }
}

.karte__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-bright);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Zweispalter Text + Bild */
.duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.duo > * {
  min-width: 0;
}
@media (min-width: 880px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .duo--umgekehrt .duo__text {
    order: 2;
  }
}
.duo__bild {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.duo__bild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.duo__bild--portraet img {
  aspect-ratio: 3 / 4;
  max-height: 520px;
}

/* Kennzahlen */
.zahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap);
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-soft);
}
.zahl b {
  display: block;
  color: var(--heading);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.zahl span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-dim);
  font-size: 0.93rem;
}

/* ---------- Galerie ---------- */
.galerie {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 620px) {
  .galerie {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .galerie {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.galerie > * {
  min-width: 0;
}

.bildknopf {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}
.bildknopf img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.bildknopf:hover img {
  transform: scale(1.045);
}
.bildknopf::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    color-mix(in srgb, var(--accent) 45%, transparent) 100%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.bildknopf:hover::after {
  opacity: 1;
}

/* Lightbox */
.lupe {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(6px);
}
.lupe[open],
.lupe.auf {
  display: grid;
}
.lupe img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  border-radius: 10px;
  animation: einblenden 0.3s var(--ease);
}
.lupe__zu,
.lupe__pfeil {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.lupe__zu:hover,
.lupe__pfeil:hover {
  border-color: var(--accent-bright);
}
.lupe__zu {
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
}
.lupe__pfeil--vor {
  right: clamp(0.5rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
}
.lupe__pfeil--zurueck {
  left: clamp(0.5rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
}
.lupe__zaehler {
  position: absolute;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

@keyframes einblenden {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
}
.faq details {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq details[open] {
  border-color: var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.1rem, 3vw, 1.6rem);
  color: var(--heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.42em;
  border-right: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
}
.faq__text {
  padding: 0 clamp(1.1rem, 3vw, 1.6rem) 1.3rem;
}
.faq__text p:last-child {
  margin-bottom: 0;
}

/* ---------- Kontaktblock ---------- */
.kontaktkarten {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 720px) {
  .kontaktkarten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.kontaktkarte {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.kontaktkarte span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-dim);
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.kontaktkarte a {
  color: var(--heading);
  font-size: clamp(1.02rem, 0.95rem + 0.45vw, 1.25rem);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.kontaktkarte a:hover {
  color: var(--accent-bright);
}

.formularplatz {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.formularplatz p:last-child {
  margin-bottom: 0;
}

/* ---------- Fließtextseiten ---------- */
.text-seite {
  max-width: 48rem;
}
.text-seite h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.28rem, 1.1rem + 0.8vw, 1.6rem);
}
.text-seite h3 {
  margin-top: 1.8rem;
  font-size: 1.12rem;
}
.text-seite ul {
  margin-bottom: 1.2rem;
}
.text-seite li {
  margin-bottom: 0.4rem;
}

/* ---------- Fußzeile ---------- */
.fuss {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}
.fuss__oben {
  display: grid;
  /* mobil zweispaltig: Markenblock oben ueber die volle Breite,
     darunter Seiten und Kontakt nebeneinander */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.fuss__marke {
  grid-column: 1 / -1;
}
@media (min-width: 760px) {
  .fuss__oben {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .fuss__marke {
    grid-column: auto;
  }
}
.fuss__oben > * {
  min-width: 0;
}
.fuss h4 {
  margin-bottom: 0.9rem;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.fuss a {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.fuss a:hover {
  color: var(--accent-bright);
}
.fuss__marke img {
  height: 54px;
  width: auto;
  margin-bottom: 1.2rem;
}
.fuss__marke .logo-hell {
  display: none;
}
:root[data-theme="hell"] .fuss__marke .logo-dunkel {
  display: none;
}
:root[data-theme="hell"] .fuss__marke .logo-hell {
  display: block;
}
.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---------- Einblend-Animationen ---------- */
.zeig {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--verzug, 0ms);
}
.zeig.drin {
  opacity: 1;
  transform: none;
}

/* Bilder kommen mit leichtem Zoom herein */
.zeig.duo__bild img,
.bildknopf.zeig img {
  transform: scale(1.06);
  transition: transform 1.1s var(--ease);
}
.zeig.drin.duo__bild img,
.bildknopf.zeig.drin img {
  transform: none;
}
.bildknopf.zeig.drin:hover img {
  transform: scale(1.045);
}

/* Hero: gestaffelter Auftritt beim Laden */
.hero__inner > * {
  animation: auftritt 0.9s var(--ease) both;
}
.hero__inner > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero__inner > *:nth-child(2) {
  animation-delay: 0.16s;
}
.hero__inner > *:nth-child(3) {
  animation-delay: 0.27s;
}
.hero__inner > *:nth-child(4) {
  animation-delay: 0.38s;
}
.hero__inner > *:nth-child(5) {
  animation-delay: 0.49s;
}
.hero .haken li {
  animation: auftritt 0.7s var(--ease) both;
}
.hero .haken li:nth-child(1) {
  animation-delay: 0.5s;
}
.hero .haken li:nth-child(2) {
  animation-delay: 0.6s;
}
.hero .haken li:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes auftritt {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero-Bild atmet langsam */
.hero__bg img {
  animation: heranfahren 26s var(--ease) both;
}
@keyframes heranfahren {
  from {
    transform: scale(1.09);
  }
  to {
    transform: scale(1);
  }
}

/* Zahlen zaehlen hoch, deshalb feste Ziffernbreite gegen Zappeln */
.zahl b {
  font-variant-numeric: tabular-nums;
}

/* ---------- Mobile Navigation ---------- */
@media (max-width: 1023.98px) {
  :root {
    --logo-h: clamp(70px, 22vw, 96px);
  }
  .kopf {
    --kopf-h: calc(var(--logo-h) + 26px);
  }
  .kopf.gescrollt {
    --logo-h: 62px;
  }
  /* Schalter und Burger kleiner, damit das Logo den Platz bekommt */
  .kopf__inner {
    gap: 0.7rem;
  }
  .kopf__aktionen {
    gap: 0.4rem;
  }
  .modus {
    width: 40px;
    height: 40px;
  }
  .burger {
    width: 40px;
    height: 40px;
  }
  .burger span:nth-child(1) {
    top: 13px;
  }
  .burger span:nth-child(2) {
    top: 19px;
  }
  .burger span:nth-child(3) {
    top: 25px;
  }
  .burger[aria-expanded="true"] span:nth-child(1),
  .burger[aria-expanded="true"] span:nth-child(3) {
    top: 19px;
  }
  .burger {
    display: block;
  }
  .kopf__aktionen .knopf {
    display: none;
  }
  /* Achtung: .kopf hat backdrop-filter und ist damit Bezugsrahmen auch fuer
     position:fixed. Das Menue wird deshalb absolut an .kopf gehaengt. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--kopf-h));
    height: calc(100dvh - var(--kopf-h));
    z-index: 99;
    display: block;
    padding: clamp(1.5rem, 6vw, 3rem) var(--pad-x) 3rem;
    background: var(--bg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease),
      visibility 0.32s;
  }
  .nav.offen {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__liste {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__liste li {
    border-bottom: 1px solid var(--line-soft);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .nav.offen .nav__liste li {
    opacity: 1;
    transform: none;
  }
  .nav.offen .nav__liste li:nth-child(1) {
    transition-delay: 0.08s;
  }
  .nav.offen .nav__liste li:nth-child(2) {
    transition-delay: 0.14s;
  }
  .nav.offen .nav__liste li:nth-child(3) {
    transition-delay: 0.2s;
  }
  .nav.offen .nav__liste li:nth-child(4) {
    transition-delay: 0.26s;
  }
  .nav.offen .nav__liste li:nth-child(5) {
    transition-delay: 0.32s;
  }
  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--heading);
  }
  .nav__link::after {
    display: none;
  }
  .nav__cta {
    display: block;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease) 0.36s, transform 0.4s var(--ease) 0.36s;
  }
  .nav.offen .nav__cta {
    opacity: 1;
    transform: none;
  }
  .nav__cta .knopf {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .nav__cta {
    display: none;
  }
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .zeig {
    opacity: 1;
    transform: none;
  }
  .zeig img,
  .hero__bg img {
    transform: none !important;
  }
  .kopf::after {
    display: none;
  }
}

/* ---------- Druck ---------- */
@media print {
  .kopf,
  .fuss,
  .lupe,
  .knopfreihe {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
