/* C Olimpio Fugensanierung, Fassung 2 (04.11.2026). Farben und Schriften aus CI.md. Handy zuerst.
   Durchgehende Abschnitte statt Karte, alles flüssig: Inhaltsbreite und Schriftgrössen wachsen mit dem Bildschirm.

   EIN Raster für alle Seiten: Die Breite teilt sich in zwei Hälften, jede Hälfte in zwei Spalten, immer mit
   demselben Abstand --fuge. Rechte Blöcke beginnen darum überall an derselben Kante, Fotos liegen auf denselben Spalten.
   Stufen: 480 (grosse Handys), 600, 768 (Fotos vierspaltig), 900 (Kopfbereiche und Abschnitte zweispaltig,
   drei Leistungen nebeneinander), 1000 (Menü in der Zeile), 1180 (voller Kopf). */

@font-face { font-family: 'Lexend'; src: url('../fonts/lexend-latin.woff2') format('woff2'); font-weight: 300 600; font-display: swap; }
@font-face { font-family: 'League Spartan'; src: url('../fonts/league-spartan-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --oliv: #a2a189;
  --beige: #dad6b6;
  --dunkeloliv: #5b5a43;
  --tinte: #2b2a22;
  --weiss: #ffffff;
  --hellbeige: #f6f4ea;
  --linie: #d9d6c3;

  --titel: 'League Spartan', 'Lexend', sans-serif;
  --text: 'Lexend', 'Segoe UI', system-ui, sans-serif;

  --fs-h1: clamp(2.5rem, 12.5vw, 4.5rem);
  --fs-h2: clamp(2rem, .9rem + 3.1vw, 3rem);
  --fs-h2-zeile: clamp(1.5rem, 1.15rem + 1vw, 2.125rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .55vw, 1.75rem);
  --fs-einleitung: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem);
  --fs-text: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);

  --breite: min(100% - clamp(32px, 7vw, 160px), 1440px);
  --luft: clamp(4.5rem, 2.6rem + 7vw, 10rem);       /* zwischen Abschnitten */
  --luft-zeile: clamp(2.5rem, 1.6rem + 3vw, 5rem);  /* zwischen Zeilen einer Seite */
  --fuge: clamp(8px, .45rem + .5vw, 18px);          /* DER Abstand im Raster, zwischen allen Spalten und Fotos */
  --innen: clamp(1rem, 4vw, 5rem);                  /* Luft rechts in einer linken Spalte */
  --kennzeile-abstand: clamp(.9rem, .7rem + .7vw, 1.5rem);
  --kennzeile-hoehe: calc(1.3rem + var(--kennzeile-abstand));
  --rund: clamp(10px, .5rem + .4vw, 16px);
  --ab: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 900px) { :root { --fs-h1: clamp(3.125rem, 6.4vw, 5rem); } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--oliv) var(--hellbeige);
  scroll-padding-top: 6.5rem;
  scroll-behavior: smooth;
  accent-color: var(--dunkeloliv);
}
body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font: 400 var(--fs-text)/1.6 var(--text);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--beige); color: var(--tinte); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--dunkeloliv); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--tinte); text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--dunkeloliv); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
p, li { text-wrap: pretty; }
h1, h2, h3, .h3 { font-family: var(--titel); font-weight: 700; text-wrap: balance; color: var(--tinte); overflow-wrap: normal; }
h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -.028em; }
h2 { font-size: var(--fs-h2); line-height: 1.03; letter-spacing: -.024em; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -.012em; }
/* Zweistufiger Titel: erste Zeile Tinte, Rest Dunkeloliv */
.stufen span { display: block; }
.stufen .stufe-zwei { color: var(--dunkeloliv); }
strong { font-weight: 600; }

.wrap { width: var(--breite); margin-inline: auto; }

.sr {
  position: absolute; left: .5rem; top: -5rem; z-index: 60;
  background: var(--weiss); color: var(--tinte); padding: .8rem 1rem; border-radius: 6px;
}
.sr:focus { top: .5rem; }

/* Pflicht laut BAUREGELN */
.offen { background: #ffe14d; color: #1a1a1a; font-weight: 600; padding: .15em .45em; border-radius: 4px; }
p.offen, div.offen { display: block; padding: .8rem 1rem; border-left: 6px solid #d4a600; margin: 1rem 0; }

.vorschau-band {
  background: var(--hellbeige); color: var(--tinte);
  font-size: 1rem; line-height: 1.3; text-align: center; padding: .2rem 1rem;
}

/* ---------- Bausteine ---------- */
.kennzeile {
  display: flex; align-items: center; gap: .75rem;
  color: var(--dunkeloliv); font-size: 1rem; font-weight: 500; line-height: 1.3; letter-spacing: .01em;
  margin-bottom: var(--kennzeile-abstand);
}
.kennzeile::before { content: ""; flex: none; width: clamp(1.5rem, 1rem + 1.5vw, 2.75rem); height: 1px; background: var(--oliv); }

.einleitung { font-size: var(--fs-einleitung); line-height: 1.45; max-width: 32em; text-wrap: balance; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.25rem; padding: .7em 1.5em; border-radius: 999px;
  background: var(--dunkeloliv); color: var(--weiss);
  font-weight: 600; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.knopf:hover { background: var(--tinte); color: var(--weiss); }
.knopf svg { width: 1.2em; height: 1.2em; flex: none; }
.knopf-hell { background: var(--weiss); color: var(--tinte); }
.knopf-hell:hover { background: var(--beige); color: var(--tinte); }

.textlink {
  appearance: none; background: none; border: 0; border-bottom: 1px solid var(--oliv); cursor: pointer;
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 2.75rem; padding: .35em 0 .25em;
  color: var(--tinte); font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.textlink svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .25s var(--ab); }
.textlink:hover { color: var(--dunkeloliv); border-color: var(--dunkeloliv); }
.textlink:hover svg { transform: translateX(3px); }
.rubrik-mehr:hover svg { transform: translateY(3px); }

.knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }

.punkte { list-style: disc; padding-left: 1.15em; }
.punkte li { padding-left: .15em; }
.punkte li + li { margin-top: .4em; }
.punkte li::marker { color: var(--dunkeloliv); }

.lesen { max-width: 35em; }
.lesen > * + * { margin-top: 1em; }
.lesen > .punkte + p { margin-top: 1.25em; }
.wichtig { font-size: var(--fs-einleitung); line-height: 1.45; }

/* ---------- Kopf: eine Zeile ---------- */
.kopf-leiste {
  position: sticky; top: 0; z-index: 40;
  background: var(--weiss); border-bottom: 1px solid var(--linie);
}
.kopf-innen { display: flex; align-items: center; gap: .625rem; min-height: 4.25rem; padding-block: .375rem; }
.logo { display: block; flex: none; margin-right: auto; }
.logo img { height: clamp(44px, 12vw, 52px); width: auto; }
.menu-gross { display: none; }
.kopf-innen .tel-knopf {
  min-height: 2.75rem; padding: .5em .8em; font-size: 1rem; gap: .4em;
  background: var(--weiss); color: var(--tinte); border: 1px solid var(--oliv);
}
.kopf-innen .tel-knopf:hover { background: var(--hellbeige); color: var(--tinte); }
@media (max-width: 399px) {
  .kopf-innen { gap: .5rem; }
  .kopf-innen .tel-knopf { padding-inline: .6em; }
  .kopf-innen .tel-knopf svg { display: none; }
}

.menu-handy summary {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer; list-style: none;
  border-radius: 999px; color: var(--tinte); border: 1px solid var(--oliv);
}
.menu-handy summary::-webkit-details-marker { display: none; }
.menu-handy summary svg { width: 1.375rem; height: 1.375rem; }
.menu-handy:not([open]) nav { display: none; }
.menu-handy .zu { display: none; }
.menu-handy[open] .zu { display: block; }
.menu-handy[open] .auf { display: none; }
.menu-handy nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--weiss); border-bottom: 1px solid var(--linie);
  box-shadow: 0 18px 30px -18px rgba(43, 42, 34, .25);
  padding: .5rem 0 1rem;
}
.menu-handy nav ul { width: var(--breite); margin-inline: auto; }
.menu-handy nav a {
  display: flex; align-items: center; min-height: 3.25rem;
  font-family: var(--titel); font-size: 1.625rem; font-weight: 700; letter-spacing: -.012em; color: var(--tinte); text-decoration: none;
}
.menu-handy nav a[aria-current="page"] { color: var(--dunkeloliv); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* ---------- Startseite ---------- */
.held-raster { display: grid; gap: clamp(2rem, 1.4rem + 2vw, 3rem) var(--fuge); padding-block: clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.held-text .einleitung { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.held-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rund); }

.vertrauen {
  display: flex; flex-direction: column; gap: .15rem;
  border-top: 1px solid var(--linie); padding-top: 1rem;
  color: var(--dunkeloliv); font-weight: 500; line-height: 1.4;
}

.abschnitt { padding-block: var(--luft); }
.held + .abschnitt { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.flaeche { background: var(--hellbeige); }

.abschnitt-kopf { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem) var(--fuge); margin-bottom: clamp(2.5rem, 1.8rem + 3vw, 5rem); }
.abschnitt-rechts { max-width: 32em; font-size: var(--fs-einleitung); line-height: 1.45; }
.abschnitt-rechts p { text-wrap: balance; }

.leistungen { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 3rem) var(--fuge); }
.leistung { display: grid; align-content: start; gap: .5rem; color: var(--tinte); text-decoration: none; }
.leistung:hover { color: var(--tinte); }
.leistung-bild { display: block; position: relative; overflow: hidden; border-radius: var(--rund); margin-bottom: clamp(.75rem, .6rem + .5vw, 1.25rem); }
.leistung-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ab); }
.leistung:hover img { transform: scale(1.025); }
.leistung-kopf { display: flex; align-items: center; gap: .6rem; }
.leistung-kopf svg { width: 1.3em; height: 1.3em; flex: none; color: var(--dunkeloliv); transition: transform .25s var(--ab); }
.leistung:hover .leistung-kopf svg { transform: translateX(4px); }
.leistung-text { display: block; max-width: 30em; padding-right: 1rem; text-wrap: pretty; }

.zwei-spalten { display: grid; gap: clamp(2rem, 1.6rem + 1.5vw, 3rem) var(--fuge); }
.spalte { border-top: 1px solid var(--oliv); padding-top: clamp(1.25rem, 1rem + .8vw, 1.75rem); }
.spalte > * + * { margin-top: .9em; }
.spalte > p, .spalte > ul, .spalte > address { max-width: 35em; }
.held-bild { position: relative; }
.bild-marke { position: absolute; right: .6rem; bottom: .6rem; padding: .1rem .5rem; border-radius: 99px; background: rgba(255,255,255,.85); color: var(--tinte); font-size: .75rem; pointer-events: none; }
/* Vorher-Nachher-Schieber */
.vn-raster { display: grid; gap: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem) var(--fuge); }
.vn { margin: 0; }
.vn-buehne { position: relative; overflow: hidden; border-radius: var(--rund); aspect-ratio: 3 / 2; background: var(--hellbeige); user-select: none; }
.vn-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vn-nachher { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.vn-griff { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--weiss); box-shadow: 0 0 0 1px rgba(43,42,34,.25); pointer-events: none; }
.vn-griff::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border-radius: 50%; background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5a43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.4rem no-repeat; box-shadow: 0 2px 8px rgba(43,42,34,.25); }
.vn-marke { position: absolute; top: .75rem; padding: .2rem .6rem; border-radius: 99px; background: rgba(43,42,34,.72); color: var(--weiss); font-size: .875rem; font-weight: 600; pointer-events: none; }
.vn-links { left: .75rem; }
.vn-rechts { right: .75rem; }
.vn-regler { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; background: none; }
.vn-regler:focus-visible + .vn-griff, .vn-buehne:has(.vn-regler:focus-visible) .vn-griff::after { outline: 3px solid var(--dunkeloliv); outline-offset: 2px; }
.vn figcaption { margin-top: .6rem; color: var(--dunkeloliv); }
.vn-notiz { margin-top: clamp(1rem, .8rem + .6vw, 1.5rem); max-width: 35em; }
.fugenarten { display: grid; gap: clamp(2rem, 1.6rem + 1.5vw, 3rem) var(--fuge); }
.schritte { list-style: decimal; padding-left: 1.3em; }
.schritte li { padding-left: .2em; }
.schritte li + li { margin-top: .5em; }
.lesen > .textlink, .lesen > .knoepfe { margin-top: 1.25em; }

.rubrik-kacheln { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 1.2rem + 1vw, 2.25rem) var(--fuge); }
.rubrik-kachel { grid-column: span 6; display: block; color: var(--tinte); text-decoration: none; }
.rubrik-kachel.rk-erste, .rubrik-kachel.rk-alle { grid-column: span 12; }
.rk-bild { display: block; overflow: hidden; border-radius: var(--rund); }
.rk-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ab); }
.rubrik-kachel:hover img { transform: scale(1.025); }
.rubrik-kachel:hover { color: var(--tinte); }
.rk-text { display: grid; gap: .1rem; margin-top: .6rem; }
.rk-text strong { font-family: var(--titel); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.012em; line-height: 1.15; }
.rk-text span { color: var(--dunkeloliv); }
.rk-flaeche {
  display: flex; align-items: center; gap: .6em; padding: 1rem 1.25rem; min-height: 3.5rem;
  border-radius: var(--rund); background: var(--hellbeige); font-weight: 600; line-height: 1.25;
  transition: background-color .2s;
}
.rk-flaeche svg { width: 1.2em; height: 1.2em; flex: none; color: var(--dunkeloliv); transition: transform .25s var(--ab); }
.rubrik-kachel:hover .rk-flaeche { background: var(--beige); }
.rubrik-kachel:hover .rk-flaeche svg { transform: translateX(4px); }

/* ---------- Kontaktband ---------- */
.kontaktband { background: var(--dunkeloliv); color: var(--weiss); padding-block: var(--luft); }
.kontaktband h2 { color: var(--weiss); }
.kontaktband .kennzeile { color: var(--beige); }
.kontaktband .kennzeile::before { background: var(--beige); }
.band-raster { display: grid; gap: clamp(1.5rem, 1.2rem + 1vw, 2rem) var(--fuge); }
.kontaktband .textlink { color: var(--weiss); border-color: var(--beige); }
.kontaktband .textlink:hover { color: var(--beige); }
.kontaktband :focus-visible { outline-color: var(--weiss); }

/* ---------- Fuss ---------- */
.fuss { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) clamp(1.25rem, 1rem + .8vw, 2rem); }
.fuss a { color: var(--tinte); text-decoration: none; }
.fuss a:hover { color: var(--dunkeloliv); text-decoration: underline; }
.fuss a[aria-current="page"] { color: var(--dunkeloliv); }
.fuss-oben { display: grid; gap: 1.75rem var(--fuge); }
.fuss address { padding-top: calc((2.75rem - 1.6em) / 2); }
.fuss-kontakt a { display: flex; align-items: center; min-height: 2.75rem; font-weight: 500; }
.fuss-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: var(--fuge); }
.fuss-menu a { display: flex; align-items: center; min-height: 2.75rem; }
.fuss-unten {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 2rem;
  margin-top: clamp(1.75rem, 1.4rem + 1.5vw, 3rem); padding-top: .75rem; border-top: 1px solid var(--linie);
  color: var(--dunkeloliv); font-size: 1rem;
}
.fuss-unten ul { display: flex; gap: 1.5rem; }
.fuss-unten a { display: flex; align-items: center; min-height: 2.75rem; color: var(--dunkeloliv); }

/* ---------- Unterseiten ---------- */
.seitenkopf-raster { display: grid; gap: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem) var(--fuge); padding-block: clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem); }
.seitenkopf .einleitung { margin-top: clamp(1.1rem, .9rem + .9vw, 1.75rem); }
.seitenkopf-rechts .einleitung { margin-top: 0; }
.seitenkopf-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rund); }
.seitenkopf-ohne .seitenkopf-raster { padding-bottom: clamp(1.25rem, 1rem + 1.5vw, 3rem); }

.inhalt { display: grid; gap: var(--luft-zeile); padding-bottom: var(--luft); }
.zeile {
  display: grid; gap: clamp(1rem, .8rem + .8vw, 1.5rem) var(--fuge);
  border-top: 1px solid var(--linie); padding-top: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);
}
.zeile h2 { font-size: var(--fs-h2-zeile); line-height: 1.1; letter-spacing: -.016em; }

.fotos { display: grid; gap: var(--fuge); }
.fotoblock { display: grid; gap: var(--fuge); }
.foto-notiz { color: var(--dunkeloliv); margin-top: .35rem; }
.fotos-2 { grid-template-columns: minmax(0, 1fr); }
.fotos-3 { grid-template-columns: minmax(0, 1fr); }
.fotos-4, .fotos-immer-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foto {
  display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  border-radius: var(--rund); background: var(--hellbeige);
  cursor: zoom-in;
}
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ab); }
.foto:hover img { transform: scale(1.025); }

/* Einsatzgebiet */
.einsatz { padding-bottom: var(--luft); }
.einsatz-gegend { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.raeume {
  columns: 2; column-gap: var(--fuge);
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.raeume li {
  font-family: var(--titel); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.012em; line-height: 1.5;
  break-inside: avoid;
}

/* Galerie */
.sprung a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem;
  color: var(--tinte); text-decoration: none; font-weight: 500;
}
.sprung a:hover { color: var(--dunkeloliv); }
.sprung .zahl { color: var(--dunkeloliv); font-weight: 400; font-variant-numeric: tabular-nums; }

.rubriken { display: grid; gap: var(--luft); padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); padding-bottom: var(--luft); }
.rubrik {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--fuge);
  scroll-margin-top: 5.5rem; border-top: 1px solid var(--linie); padding-top: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);
}
.rubrik-kopf { margin-bottom: clamp(.5rem, .3rem + .6vw, .75rem); }
.rubrik-kopf h2 { font-size: clamp(2rem, .8rem + 3.1vw, 3rem); }
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--fuge); }
.raster .foto { grid-column: span 6; }
.raster .foto.leitbild, .raster .foto.voll { grid-column: span 12; }
.raster .foto.breit { grid-column: span 12; aspect-ratio: 3.46 / 1; }
.rubrik.eingeklappt .rest { display: none; }
.rubrik-mehr { justify-self: start; margin-top: clamp(.5rem, .3rem + 1vw, 1.25rem); }

/* Kontakt */
.kontakt-raster { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem) var(--fuge); }
.kontakt-daten { display: grid; gap: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); align-content: start; }
.spalte-knopf { display: flex; }
.kartenbild { display: block; border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; }
.kartenbild img { width: 100%; }
.karten-links { margin-top: 1rem; }

/* ---------- Grosse Ansicht ---------- */
.grossbild {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--tinte); color: var(--weiss); overflow: hidden;
}
.grossbild[open] { display: grid; place-items: center; }
.grossbild::backdrop { background: var(--tinte); }
.gb-mitte { display: grid; justify-items: center; gap: .75rem; padding: 4.25rem .5rem 4.75rem; max-width: 100%; }
.gb-buehne { min-height: 0; }
.gb-buehne img { max-width: 100%; max-height: calc(100dvh - 14rem); width: auto; height: auto; border-radius: 6px; }
.gb-text { font-size: 1rem; line-height: 1.35; text-align: center; text-wrap: balance; max-width: 40em; }
.gb-zahl { display: block; font-variant-numeric: tabular-nums; color: var(--beige); }
.gb-knopf {
  appearance: none; border: 0; border-radius: 999px; cursor: pointer;
  position: absolute; width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  background: var(--weiss); color: var(--tinte);
}
.gb-knopf:hover { background: var(--beige); }
.gb-knopf svg { width: 1.5rem; height: 1.5rem; }
.gb-knopf:focus-visible { outline-color: var(--weiss); }
.gb-schliessen { top: .75rem; right: .75rem; }
.gb-zurueck { left: .75rem; bottom: .75rem; }
.gb-weiter { right: .75rem; bottom: .75rem; }

/* ---------- Grosse Handys: Foto neben dem Text statt hochgezogen ---------- */
@media (min-width: 480px) and (max-width: 899.98px) {
  .leistung { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: clamp(1rem, 3vw, 1.5rem); }
  .leistung-bild { grid-row: span 2; margin-bottom: 0; }
  .leistung-kopf { align-self: end; }
}

/* ---------- Ab 600 px ---------- */
@media (min-width: 600px) {
  .fotos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fotos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fuss-oben { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss-oben nav { grid-column: 1 / -1; }
  .kopf-innen { gap: .875rem; }
  .kopf-innen .tel-knopf { font-size: 1rem; padding-inline: 1.1em; }
}

/* ---------- Ab 768 px: Fotos vierspaltig ---------- */
@media (min-width: 768px) {
  .vertrauen { flex-direction: row; flex-wrap: wrap; column-gap: 1.25rem; }
  .vertrauen li + li { position: relative; }
  .vertrauen li + li::before { content: "·"; position: absolute; left: -.8rem; }
  .fotos-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rubrik-kachel, .rubrik-kachel.rk-erste, .rubrik-kachel.rk-alle { grid-column: span 3; }
  .rubrik-kachel.rk-gross { grid-column: span 6; }
  .rk-flaeche { aspect-ratio: 3 / 2; align-items: flex-end; font-size: var(--fs-einleitung); }
  .raster .foto { grid-column: span 3; }
  .raster .foto.leitbild { grid-column: span 6; grid-row: span 2; aspect-ratio: auto; }
  .raster .foto.halb { grid-column: span 6; }
  .raster .foto.drei { grid-column: span 4; aspect-ratio: 3 / 2; }
  /* Rubrik: Titelzeile über die ganze Breite, Titel links, Link rechts auf gleicher Linie; darunter das Mosaik */
  .rubrik { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--innen); row-gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
  .rubrik-kopf { margin-bottom: 0; }
  .rubrik > .raster { grid-column: 1 / -1; grid-row: 2; }
  .rubrik-mehr { grid-column: 2; grid-row: 1; align-self: end; margin-top: 0; }
  /* Fliesen: nur zwei kleine Originale, sie stehen in der rechten Hälfte neben dem Titel */
  .rubrik-klein { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--fuge); }
  .rubrik-klein > .fotos { grid-area: 1 / 2; }
  /* Einspaltiger Seitenkopf: Das Foto ist hier so breit, dass 3:2 kleine Originale hochziehen würde */
  .seitenkopf-bild img { aspect-ratio: 2 / 1; }
  .gb-mitte { padding: 1.5rem 5rem; }
  .gb-buehne img { max-height: calc(100dvh - 8rem); }
  .gb-zurueck, .gb-weiter { top: calc(50% - 1.625rem); bottom: auto; }
  .gb-zurueck { left: 1rem; }
  .gb-weiter { right: 1rem; }
}

/* ---------- Ab 900 px: Kopfbereiche und Abschnitte zweispaltig, rechte Hälfte ---------- */
@media (min-width: 900px) {
  .seitenkopf-bild img { aspect-ratio: 3 / 2; }
  .leistungen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fugenarten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vn-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .held-raster, .seitenkopf-raster, .kontakt-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .held-text, .seitenkopf-text { padding-right: 2vw; }
  .seitenkopf-rechts, .sprung { padding-top: var(--kennzeile-hoehe); }
  .kontakt-daten { padding-right: var(--innen); }
  .abschnitt-kopf, .band-raster, .zwei-spalten, .zeile { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .abschnitt-kopf > :first-child, .band-raster > :first-child, .zeile > h2 { padding-right: var(--innen); }
  .abschnitt-rechts, .band-rechts { padding-top: var(--kennzeile-hoehe); }
  .spalte { padding-right: var(--innen); }
  h2.schmal { max-width: 6.5em; }
  .fuss-oben { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fuss-oben nav { grid-column: span 2; }
}

/* ---------- Ab 1000 px: Menü in der Zeile ---------- */
@media (min-width: 1000px) {
  .kopf-innen { min-height: 5rem; gap: clamp(1rem, 2vw, 2.25rem); }
  .logo { margin-right: 0; }
  .logo img { height: 60px; }
  .menu-gross { display: block; margin-left: auto; }
  .menu-gross ul { display: flex; align-items: center; gap: clamp(.875rem, 1.5vw, 1.75rem); }
  .menu-gross .m-start { display: none; }
  .menu-gross a {
    display: flex; align-items: center; min-height: 2.75rem; position: relative;
    color: var(--tinte); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  }
  .menu-gross a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 2px; background: var(--oliv);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ab);
  }
  .menu-gross a:hover::after, .menu-gross a[aria-current="page"]::after { transform: scaleX(1); }
  .menu-handy { display: none; }
  .kopf-innen .tel-knopf { background: var(--dunkeloliv); color: var(--weiss); border-color: var(--dunkeloliv); }
  .kopf-innen .tel-knopf:hover { background: var(--tinte); color: var(--weiss); border-color: var(--tinte); }
  .kopf-innen .tel-knopf svg { display: none; }
}

@media (min-width: 1180px) {
  .menu-gross .m-start { display: list-item; }
  .menu-gross a { font-size: 1rem; }
  .logo img { height: 66px; }
  .kopf-innen .tel-knopf svg { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
