/* ==========================================================================
   Müller Dachtechnik – Variante B „Ziegelrot“
   Farben aus dem Logo: Ziegelrot + Anthrazit auf Weiß.
   Schrift lokal eingebunden (Archivo, variable Breite und Stärke).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --rot: #c4161c;          /* Dach im Logo */
  --rot-dunkel: #9a1016;
  --rot-tief: #7d0d13;
  --anthrazit: #2d2d2d;    /* Schriftzug im Logo */
  --grau: #5c5c5c;
  --hell: #f2f2f2;
  --linie: #d9d9d9;
  --weiss: #ffffff;

  --schrift: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --breit: 125%;
  --breite: 1200px;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --sektion: clamp(4.5rem, 10vw, 8rem);
  --kopf: 80px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 1rem); }
body {
  margin: 0; background: var(--weiss); color: var(--anthrazit);
  font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.65;
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rot-dunkel); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.02; font-stretch: var(--breit); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.4vw + 0.8rem, 3.6rem); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
ul { padding-left: 1.2em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--anthrazit); color: var(--weiss); padding: 0.6rem 1rem; border-radius: 999px; }
.skip-link:focus { top: 1rem; color: var(--weiss); }
.container { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.sektion { padding-block: var(--sektion); }
.lead { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem); line-height: 1.55; color: var(--grau); max-width: 58ch; }

/* ---------- Buttons (Pillenform) ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3.1rem; padding: 0.75rem 1.5rem;
  font: 650 1rem/1.2 var(--schrift); font-stretch: 112%;
  color: var(--weiss); background: var(--rot);
  border: 2px solid var(--rot); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); text-decoration: none; }
.button svg { width: 1.15em; height: 1.15em; flex: none; }
.button--linie { background: transparent; color: var(--anthrazit); border-color: var(--anthrazit); }
.button--linie:hover { background: var(--anthrazit); border-color: var(--anthrazit); color: var(--weiss); }
.button--weiss { background: var(--weiss); border-color: var(--weiss); color: var(--rot); }
.button--weiss:hover { background: transparent; color: var(--weiss); border-color: var(--weiss); }
.button--weiss-linie { background: transparent; border-color: var(--weiss); color: var(--weiss); }
.button--weiss-linie:hover { background: var(--weiss); color: var(--rot); }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--linie); }
@supports (backdrop-filter: blur(8px)) { .kopf { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px); } }
.kopf__innen { display: flex; align-items: center; gap: 1.25rem; min-height: var(--kopf); }
.kopf__logo img { height: 60px; width: auto; }
.nav { margin-left: auto; }
.nav__liste { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; }
.nav__liste a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 999px;
  color: var(--anthrazit); text-decoration: none; font-weight: 550; font-stretch: 108%; font-size: 0.98rem;
}
.nav__liste a:hover { background: var(--hell); color: var(--rot); }
.kopf__menue { display: none; }

@media (max-width: 1020px) {
  :root { --kopf: 66px; }
  .kopf__logo img { height: 46px; }
  .kopf__innen { gap: 0.6rem; }
  .kopf__telefon { margin-left: auto; padding-inline: 0.85rem; }
  .kopf__telefon-text { display: none; }
  .kopf__menue {
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 3.1rem; padding: 0.5rem 1rem;
    background: var(--hell); color: var(--anthrazit); border: 0; border-radius: 999px;
    font: 650 1rem var(--schrift); cursor: pointer;
  }
  .kopf__menue svg { width: 1.25rem; height: 1.25rem; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; display: none; background: var(--weiss); border-bottom: 1px solid var(--linie); }
  .nav.ist-offen { display: block; }
  .nav__liste { flex-direction: column; padding: 0.5rem var(--rand) 1rem; }
  .nav__liste a { border-radius: 0; padding: 0.9rem 0; border-bottom: 1px solid var(--hell); font-size: 1.15rem; }
  .no-js .nav { position: static; display: block; border: 0; }
  .no-js .kopf__menue { display: none; }
  .no-js .kopf__innen { flex-wrap: wrap; }
}

/* ==========================================================================
   Titelbereich: Dachfoto mit Giebel
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: min(82vh, 760px);
  display: flex; align-items: center;
  color: var(--weiss); background: var(--anthrazit);
  overflow: hidden;
}
.hero__bild { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(30, 30, 30, 0.88) 0%, rgba(30, 30, 30, 0.66) 50%, rgba(30, 30, 30, 0.18) 100%),
    linear-gradient(0deg, rgba(30, 30, 30, 0.35), rgba(30, 30, 30, 0) 40%);
}
.hero__inhalt { padding-block: 5rem clamp(7rem, 12vw, 10rem); }
.hero h1 { font-size: clamp(2.1rem, 3.8vw + 0.9rem, 4.4rem); line-height: 1; max-width: 15ch; margin-bottom: 0.45em; }
.hero__text { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.35rem); max-width: 34rem; margin-bottom: 2rem; color: rgba(255, 255, 255, 0.92); }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Der Giebel: weiße Hauswand mit roter Dachkante – wie das Dach im Logo */
.giebel { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(44px, 8vw, 120px); pointer-events: none; }
.giebel__wand { fill: var(--weiss); }
.giebel__kante { fill: none; stroke: var(--rot); stroke-width: 7; stroke-linejoin: miter; }

@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__inhalt { padding-block: 3.5rem 6rem; }
  .hero::before { background: linear-gradient(0deg, rgba(30, 30, 30, 0.82), rgba(30, 30, 30, 0.58)); }
}

/* ---------- Über uns ---------- */
.ueber { padding-top: clamp(2.5rem, 5vw, 4rem); }
.ueber__raster { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ueber__aussage { font-size: clamp(1.45rem, 1.4vw + 1rem, 2.25rem); line-height: 1.3; font-stretch: 110%; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 1.25em; }
.ueber__aussage strong { color: var(--rot); font-weight: 750; }
.ueber__text { max-width: 60ch; color: var(--grau); }
.ueber__figur { margin: 0; justify-self: center; }
.ueber__figur img { width: 256px; border-radius: 24px; }

/* ---------- Leistungen mit Bildvorschau ---------- */
.leistungen { background: var(--hell); }
.leistungen__raster { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.leistungen__liste { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 2px solid var(--anthrazit); }
.leistung {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.2rem;
  padding: 1.15rem 0.25rem 1.2rem; border-bottom: 1px solid var(--linie);
  transition: background-color 0.2s ease, padding 0.2s ease;
}
.leistung h3 { margin: 0; font-size: clamp(1.25rem, 0.9vw + 1rem, 1.6rem); }
.leistung p { margin: 0; color: var(--grau); }
.leistung__bild { display: none; }
.leistung.ist-aktiv { background: var(--weiss); padding-inline: 1rem; }
.leistung.ist-aktiv h3 { color: var(--rot); }
.leistungen__rahmen { position: sticky; top: calc(var(--kopf) + 2rem); margin: 0; }
.leistungen__rahmen img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; background: var(--linie); }
.leistungen__rahmen figcaption { margin-top: 0.8rem; color: var(--grau); font-size: 0.95rem; }

/* ---------- Wartung (roter Block mit Ziegelmuster) ---------- */
.wartung { position: relative; overflow: hidden; background: var(--rot); color: var(--weiss); }
.wartung::after {
  content: ""; position: absolute; inset: 0 0 0 45%; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='56'%3E%3Crect width='40' height='56' fill='%23a81319'/%3E%3Cpath d='M1.5 0H38.5V14A18.5 12 0 0 1 1.5 14Z' fill='%23bb151b'/%3E%3Cpath d='M-18.5 28H18.5V42A18.5 12 0 0 1 -18.5 42Z' fill='%23bb151b'/%3E%3Cpath d='M21.5 28H58.5V42A18.5 12 0 0 1 21.5 42Z' fill='%23bb151b'/%3E%3C/svg%3E");
  background-size: 40px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.wartung .container { position: relative; z-index: 1; }
.wartung__inhalt { max-width: 40rem; }
.wartung h2 { color: var(--weiss); }
.wartung .lead { color: rgba(255, 255, 255, 0.92); }
.wartung a:not(.button) { color: var(--weiss); }
.pruefliste { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.6rem; }
.pruefliste li { position: relative; padding-left: 2.1rem; font-weight: 550; }
.pruefliste li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23c4161c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.tipp { background: var(--weiss); color: var(--anthrazit); border-radius: 22px; padding: 1.25rem 1.5rem; margin: 0 0 2rem; }
.tipp p:last-child { margin: 0; }
.tipp strong { color: var(--rot); }
.aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Referenzen: Filmstreifen ---------- */
.referenzen__kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.referenzen__kopf .lead { margin: 0; }
.streifen__steuerung { display: flex; gap: 0.5rem; }
.rund {
  width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--weiss); color: var(--anthrazit); border: 2px solid var(--anthrazit); cursor: pointer;
}
.rund:hover { background: var(--anthrazit); color: var(--weiss); }
.rund svg { width: 1.3rem; height: 1.3rem; }
.no-js .streifen__steuerung { display: none; }

.streifen {
  margin-top: 2rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--rand), calc((100% - var(--breite)) / 2));
  scrollbar-width: thin; scrollbar-color: var(--rot) var(--hell);
}
.streifen__liste { list-style: none; margin: 0; padding: 0 max(var(--rand), calc((100% - var(--breite)) / 2)) 1.25rem; display: flex; gap: 0.9rem; width: max-content; }
.streifen__liste li { scroll-snap-align: start; margin: 0; }
.galerie__knopf { display: block; padding: 0; border: 0; background: var(--hell); border-radius: 22px; overflow: hidden; cursor: zoom-in; }
.galerie__knopf img { height: clamp(240px, 34vw, 430px); width: auto; transition: transform 0.4s ease; }
.galerie__knopf:hover img { transform: scale(1.03); }
.streifen__liste p { margin: 0.55rem 0.25rem 0; font-size: 0.95rem; color: var(--grau); max-width: 30ch; }

.vorher-nachher { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.vorher-nachher h3 { font-size: clamp(1.6rem, 1.5vw + 1rem, 2.3rem); }
.vergleich { --pos: 50%; position: relative; aspect-ratio: 903 / 391; overflow: hidden; border-radius: 28px; background: var(--hell); user-select: none; }
.vergleich img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vergleich__nachher { clip-path: inset(0 0 0 var(--pos)); }
.vergleich__linie { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--weiss); pointer-events: none; }
.vergleich__griff { position: absolute; top: 50%; left: 50%; width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem; border-radius: 50%; background: var(--rot); color: var(--weiss); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.vergleich__griff svg { width: 1.6rem; height: 1.6rem; }
.vergleich__regler { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.vergleich__regler:focus-visible + .vergleich__linie .vergleich__griff { outline: 3px solid var(--weiss); outline-offset: 3px; }
.vergleich__etikett { position: absolute; bottom: 1rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(45, 45, 45, 0.85); color: var(--weiss); font-weight: 650; font-size: 0.9rem; pointer-events: none; }
.vergleich__etikett--vorher { left: 1rem; }
.vergleich__etikett--nachher { right: 1rem; }

.partner { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: 2rem; border-top: 1px solid var(--linie); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.5rem 3rem; align-items: center; }
.partner h3 { margin: 0; }

/* Lightbox */
.lightbox { width: min(96vw, 1200px); max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--weiss); overflow: visible; }
.lightbox::backdrop { background: rgba(25, 25, 25, 0.93); }
.lightbox figure { margin: 0; }
.lightbox img { width: auto; max-width: 100%; max-height: 82vh; margin-inline: auto; border-radius: 16px; }
.lightbox figcaption { text-align: center; margin-top: 0.75rem; }
.lightbox__knopf { position: fixed; z-index: 2; width: 3.1rem; height: 3.1rem; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); color: var(--weiss); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox__knopf:hover { background: var(--rot); }
.lightbox__knopf svg { width: 1.5rem; height: 1.5rem; }
.lightbox__zu { top: 1rem; right: 1rem; }
.lightbox__zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__weiter { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Kontakt (Anthrazit) ---------- */
.kontakt { background: var(--anthrazit); color: #e6e6e6; }
.kontakt h2, .kontakt h3 { color: var(--weiss); }
.kontakt .lead { color: #cfcfcf; }
.kontakt a:not(.button) { color: var(--weiss); }
.kontakt__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.kontakt__telefon {
  display: inline-block; margin: 0.5rem 0 1.5rem; padding-bottom: 0.15em;
  font-size: clamp(2.1rem, 2.5vw + 1.2rem, 3.4rem); font-weight: 800; font-stretch: var(--breit); letter-spacing: -0.02em; line-height: 1;
  text-decoration: none; border-bottom: 5px solid var(--rot);
}
.kontakt__telefon:hover { color: var(--weiss); border-bottom-color: var(--weiss); text-decoration: none; }
.kontakt__daten { margin: 0 0 1.75rem; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.25rem; }
.kontakt__daten dt { color: #b5b5b5; }
.kontakt__daten dd { margin: 0; }
.kontakt address { font-style: normal; }

.formular { background: #383838; border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.formular h3 { margin-bottom: 1.1rem; }
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--weiss); }
.feld .optional { font-weight: 400; color: #bdbdbd; }
.feld input, .feld textarea {
  width: 100%; padding: 0.75rem 1rem; font: inherit; color: var(--anthrazit);
  background: var(--weiss); border: 2px solid var(--weiss); border-radius: 14px;
}
.feld input:focus, .feld textarea:focus { outline: 3px solid var(--rot); outline-offset: 2px; }
.feld textarea { min-height: 9rem; resize: vertical; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.jolejo-form-status { margin: 1.1rem 0 0; padding: 0.85rem 1.1rem; border-radius: 14px; font-weight: 600; line-height: 1.45; }
.jolejo-form-status[hidden] { display: none; }
.jolejo-form-status[data-state="success"] { background: #e6f4ea; color: #1b5e2b; }
.jolejo-form-status[data-state="error"] { background: #fdeaea; color: #8a1116; }
.jolejo-form button[disabled] { opacity: 0.6; cursor: progress; }
.formular__datenschutz { font-size: 0.93rem; color: #cfcfcf; margin: 0.25rem 0 1.25rem; }

.anfahrt { margin-top: clamp(3rem, 6vw, 5rem); }
.karte {
  position: relative; aspect-ratio: 16 / 6; min-height: 320px; margin-top: 1.25rem; border-radius: 28px; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.05) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.05) 46px 48px),
    #333;
}
.karte__hinweis { max-width: 34rem; padding: 1.5rem; }
.karte__hinweis p { color: #d4d4d4; font-size: 0.98rem; }
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.anfahrt__route { margin-top: 1rem; color: #cfcfcf; }

/* ---------- Fußzeile ---------- */
.fuss { background: #232323; color: #cfcfcf; padding-block: 3rem 2rem; font-size: 0.98rem; }
.fuss a { color: var(--weiss); }
.fuss__raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.fuss__name { font-size: 1.35rem; font-weight: 800; font-stretch: var(--breit); color: var(--weiss); margin-bottom: 0.3rem; }
.fuss__slogan { color: #b5b5b5; font-style: italic; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 0.35rem; }
.fuss__unten { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #a8a8a8; font-size: 0.92rem; }

/* ---------- Unterseiten (Impressum, Datenschutz, Danke) ---------- */
.seitenkopf { position: relative; overflow: hidden; background: var(--rot); color: var(--weiss); padding-block: clamp(3rem, 6vw, 5rem); }
.seitenkopf::after {
  content: ""; position: absolute; inset: 0 0 0 55%; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='56'%3E%3Crect width='40' height='56' fill='%23a81319'/%3E%3Cpath d='M1.5 0H38.5V14A18.5 12 0 0 1 1.5 14Z' fill='%23bb151b'/%3E%3Cpath d='M-18.5 28H18.5V42A18.5 12 0 0 1 -18.5 42Z' fill='%23bb151b'/%3E%3Cpath d='M21.5 28H58.5V42A18.5 12 0 0 1 21.5 42Z' fill='%23bb151b'/%3E%3C/svg%3E");
  background-size: 40px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.seitenkopf .container { position: relative; z-index: 1; }
.seitenkopf h1 { font-size: clamp(2.2rem, 4vw + 1rem, 4rem); margin: 0; }
.seitenkopf p { margin: 0.75rem 0 0; color: rgba(255, 255, 255, 0.9); }
.rechtstext { max-width: 72ch; padding-block: clamp(2.5rem, 5vw, 4rem) var(--sektion); }
.rechtstext h2 { font-size: clamp(1.5rem, 1vw + 1.1rem, 1.9rem); margin: 2.3em 0 0.5em; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext address { font-style: normal; margin-bottom: 1em; }
.rechtstext li { margin-bottom: 0.35em; }
.rechtstext .kasten { background: var(--hell); border-radius: 18px; padding: 1.1rem 1.35rem; margin: 1.25rem 0; }
.rechtstext .kasten p:last-child { margin: 0; }
.inhalt-liste { columns: 2; column-gap: 2rem; padding-left: 1.2em; margin-bottom: 2.5rem; }
.todo { background: #fff3a8; color: #5a4a00; padding: 0 0.25em; border-radius: 3px; outline: 1px dashed #b38f00; }
.meldung { padding-block: var(--sektion); }
.meldung h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .ueber__raster, .leistungen__raster, .kontakt__raster, .vorher-nachher, .partner { grid-template-columns: minmax(0, 1fr); }
  .ueber__figur { justify-self: start; }
  .leistungen__rahmen { display: none; }
  .leistung { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1rem; align-items: center; }
  .leistung__bild { display: block; grid-row: span 2; width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 16px; }
  .leistung.ist-aktiv { background: transparent; padding-inline: 0.25rem; }
  .leistung.ist-aktiv h3 { color: inherit; }
  .fuss__raster { grid-template-columns: 1fr 1fr; }
  .wartung::after { inset: 55% 0 0 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero__aktionen .button { flex: 1 1 100%; }
  .feld-paar { grid-template-columns: 1fr; }
  .karte { aspect-ratio: 4 / 5; }
  .vergleich { aspect-ratio: 4 / 3; }
  .fuss__raster { grid-template-columns: 1fr; }
  .inhalt-liste { columns: 1; }
  .lightbox__zurueck, .lightbox__weiter { top: auto; bottom: 1rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .galerie__knopf img, .leistung { transition: none; }
}

@media print {
  .hero { color: var(--anthrazit); min-height: 0; }
  .hero::before { display: none; }
  .kopf, .giebel, .hero__bild, .hero__aktionen, .formular, .karte, .fuss, .streifen__steuerung { display: none !important; }
  .wartung, .kontakt { background: none; color: var(--anthrazit); }
}
