/* MalerMeister MAX, Maximilian Petzold
   Werte aus Figma: Rahmen 1900 px, Inhalt 1400 px, Work Sans, Text #2a2721,
   Grau #5e5749, Akzent #febe03, Creme #fbf9f5.
   Gelb als Schrift auf Weiß hat nur 1,7:1 Kontrast. Kleine gelbe Überzeilen
   stehen deshalb in --akzent-text, Linien, Knöpfe und Sterne bleiben gelb.
   Umbrüche: 1100 px (Menü), 900 px (Spalten), 560 px (Handy). */

:root {
  --text: #2a2721;
  --grau: #5e5749;
  --akzent: #febe03;
  --akzent-dunkel: #e9ad00;
  --akzent-text: #8f6800;
  --creme: #fbf9f5;
  --linie: rgba(42, 39, 33, 0.15);
  --schatten: 0 18px 40px -8px rgba(58, 53, 39, 0.08), 0 2px 6px rgba(58, 53, 39, 0.06);
  --rand: 20px;
  --breite: 1400px;
  --abstand: clamp(72px, 8vw, 136px);
  --kopf-h: 84px;
}

@media (min-width: 560px) { :root { --rand: 32px; } }
@media (min-width: 1100px) { :root { --rand: 48px; --kopf-h: 132px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.ohne-hero { padding-top: var(--kopf-h); }
body.menue-offen, body.lupe-offen { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }

h1 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.2; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(28px, 2.6vw, 35px); line-height: 1.25; font-weight: 600; text-wrap: balance; }
h3 { font-weight: 600; }

:focus-visible { outline: 3px solid var(--akzent-text); outline-offset: 3px; }

.nur-fuer-screenreader {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprungmarke {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--akzent); color: var(--text); padding: 10px 16px; font-weight: 600;
}
.sprungmarke:focus { top: 12px; }

.bereich { width: min(var(--breite), 100% - 2 * var(--rand)); margin-inline: auto; }

/* Überzeile mit gelber Linie davor */
.ober {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 36px);
  color: var(--akzent-text); font-size: 14px; line-height: 1.3; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.ober::before { content: ""; flex: none; width: 48px; height: 2px; background: var(--akzent); }
.ober--hell { color: var(--akzent); font-size: 13px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px;
  background: var(--akzent); color: var(--text);
  border: 1px solid var(--akzent);
  box-shadow: 0 6px 16px rgba(232, 147, 26, 0.35);
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf--rand {
  background: rgba(255, 255, 255, .6); color: var(--grau); border-color: var(--linie);
  box-shadow: 0 6px 8px -4px rgba(232, 147, 26, 0.35);
  font-size: 13px;
}
.knopf--rand:hover { background: #fff; color: var(--text); border-color: var(--akzent); }
.knopf--weiss { background: transparent; color: #fff; border-color: #fff; box-shadow: none; font-size: 13px; min-width: 212px; }
.knopf--weiss:hover { background: #fff; color: var(--text); border-color: #fff; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 16px; }

/* Kopf: liegt fest über dem Hero, wird beim Scrollen weiß */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .25s, box-shadow .25s;
}
.kopf--gescrollt, .ohne-hero .kopf { background: rgba(255, 255, 255, .97); box-shadow: 0 6px 24px rgba(42, 39, 33, .08); }
.kopf__innen { display: flex; align-items: center; gap: 24px; height: var(--kopf-h); }
.kopf__logo { flex: none; margin-right: auto; display: block; }
.kopf__logo img { width: auto; height: 64px; transition: height .25s; }
.kopf__nav { display: flex; align-items: center; gap: 8px; }
.kopf__nav > a, .kopf__leistungen {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px;
  color: rgba(42, 39, 33, .85); font: inherit; font-size: 18px; font-weight: 500; text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.kopf__nav > a:hover, .kopf__leistungen:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.kopf__nav > a[aria-current="page"], .kopf__leistungen--aktiv { color: var(--text); text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.kopf__leistungen svg { transition: transform .2s; }
.kopf__gruppe { position: relative; }
.kopf__unter {
  display: none; position: absolute; left: 0; top: 100%;
  min-width: 280px; padding: 10px 0;
  background: #fff; border-top: 3px solid var(--akzent);
  box-shadow: var(--schatten);
}
.kopf__unter a { display: block; padding: 10px 22px; font-size: 16px; text-decoration: none; }
.kopf__unter a:hover, .kopf__unter a[aria-current="page"] { background: var(--creme); color: var(--akzent-text); }
.kopf__gruppe--offen .kopf__unter { display: block; }
.kopf__gruppe--offen .kopf__leistungen svg { transform: rotate(180deg); }
.kopf__aktion { display: flex; align-items: center; gap: 28px; }
.kopf__leiste { display: flex; align-items: center; gap: 4px; }
.kopf__whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--text); }
.kopf__whatsapp img { width: 34px; height: 34px; }
.kopf__whatsapp-text { display: none; }
.kopf__cta { min-width: 176px; }
.kopf__schalter { display: none; }

@media (min-width: 1100px) {
  .kopf__logo img { height: 112px; }
  .kopf--gescrollt .kopf__logo img { height: 84px; }
  .kopf__leiste { display: none; }
  .kopf__menue { display: flex; align-items: center; gap: clamp(24px, 6vw, 120px); flex: 1; justify-content: flex-end; }
  .kopf__nav { margin-right: auto; margin-left: auto; }
  .kopf__gruppe:hover .kopf__unter { display: block; }
}
@media (min-width: 1100px) and (max-width: 1299px) {
  .kopf__nav > a, .kopf__leistungen { font-size: 17px; padding: 0 8px; }
  .kopf__menue { gap: 24px; }
}

@media (max-width: 1099px) {
  .kopf { background: rgba(255, 255, 255, .97); box-shadow: 0 4px 16px rgba(42, 39, 33, .06); }
  .kopf__innen { gap: 4px; }
  .kopf__schalter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -10px;
    background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .kopf__schalter-zu, .kopf--offen .kopf__schalter-auf { display: none; }
  .kopf--offen .kopf__schalter-zu { display: block; }
  .kopf__menue {
    display: none;
    position: fixed; inset: var(--kopf-h) 0 0 0;
    padding: 12px var(--rand) 40px;
    background: #fff; overflow-y: auto;
    border-top: 1px solid var(--linie);
  }
  .kopf--offen .kopf__menue { display: flex; flex-direction: column; gap: 32px; }
  .kopf__nav { flex-direction: column; align-items: stretch; gap: 0; }
  .kopf__nav > a, .kopf__leistungen {
    justify-content: space-between; width: 100%;
    min-height: 56px; padding: 0; font-size: 20px;
    border-bottom: 1px solid var(--linie);
  }
  .kopf__nav > a[aria-current="page"], .kopf__leistungen--aktiv, .kopf__nav > a:hover, .kopf__leistungen:hover { text-decoration: none; color: var(--akzent-text); }
  .kopf__unter { position: static; box-shadow: none; border: 0; padding: 4px 0 12px 16px; min-width: 0; }
  .kopf__unter a { font-size: 17px; padding: 11px 0; }
  .kopf__unter a:hover, .kopf__unter a[aria-current="page"] { background: none; }
  .kopf__aktion { flex-direction: column; align-items: stretch; gap: 12px; }
  .kopf__aktion .kopf__whatsapp { min-height: 52px; border: 1px solid var(--linie); font-weight: 500; }
  .kopf__whatsapp-text { display: inline; }
  .kopf__aktion .kopf__whatsapp img { width: 24px; height: 24px; }
  .kopf__cta { min-height: 52px; font-size: 16px; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(560px, 40vw, 760px);
  padding-block: calc(var(--kopf-h) + 32px) 64px;
  background: var(--creme);
}
.hero__bild { position: absolute; inset: 0; z-index: -2; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(251, 249, 245, .92) 0%, rgba(251, 249, 245, .9) 36%, rgba(251, 249, 245, 0) 61%);
}
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 520px; }
.hero__text h1 { margin-top: -8px; }
.hero__text > p:not(.ober) { font-size: 17px; line-height: 1.65; color: rgba(42, 39, 33, .95); max-width: 400px; }

/* kleiner Hero der Unterseiten: Text mittig auf hellem Schleier */
.hero--klein { min-height: clamp(380px, 28vw, 456px); text-align: center; justify-content: center; }
.hero--klein::before {
  background:
    linear-gradient(rgba(251, 249, 245, .6), rgba(251, 249, 245, .6)),
    linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .6) 55%, rgba(255, 255, 255, .08) 100%);
}
.hero--klein .hero__text { align-items: center; max-width: 780px; margin-inline: auto; gap: 24px; }
.hero--klein .hero__text > p:not(.ober) { font-size: clamp(17px, 1.3vw, 20px); max-width: 600px; }
.hero--klein .knopfreihe { justify-content: center; }

@media (max-width: 899px) {
  .hero { min-height: 0; padding-block: calc(var(--kopf-h) + 40px) 48px; }
  .hero::before { background: linear-gradient(180deg, rgba(251, 249, 245, .94) 0%, rgba(251, 249, 245, .88) 60%, rgba(251, 249, 245, .55) 100%); }
  .hero--klein::before { background: rgba(251, 249, 245, .82); }
}
@media (max-width: 559px) {
  .knopfreihe { width: 100%; gap: 12px; }
  .knopfreihe .knopf { flex: 1 1 100%; }
}

/* Abschnitte */
.abschnitt { padding-block: var(--abstand) 0; }
main > .abschnitt:last-child { padding-bottom: var(--abstand); }
.kopfzeile { display: grid; gap: 8px; margin-bottom: clamp(40px, 5vw, 72px); }
.kopfzeile--mit-link { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.kopfzeile--mit-link > div { display: grid; gap: 8px; }
.kopfzeile--mit-text { display: grid; gap: 24px 48px; align-items: end; }
.kopfzeile--mit-text > div { display: grid; gap: 8px; }
.kopfzeile--mit-text > p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.65; color: rgba(94, 87, 73, .95); max-width: 600px; }
@media (min-width: 900px) {
  .kopfzeile--mit-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kopfzeile--mit-text > p { justify-self: end; }
}
.fliesstext { display: grid; gap: 16px; font-size: 18px; line-height: 1.65; }

/* Über uns (Startseite) und Einleitung Team: Collage aus zwei Fotos */
.zweier { display: grid; gap: 48px clamp(48px, 7vw, 120px); align-items: center; }
@media (min-width: 900px) {
  .zweier { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .zweier--text-links > .zweier__text { order: -1; }
}
.zweier__text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 540px; }
.zweier__text .fliesstext { max-width: 480px; }
.zweier__zeile { font-size: 14px; font-weight: 600; }
.collage { position: relative; padding: 0 0 clamp(20px, 3vw, 40px) 0; max-width: 780px; }
.collage__eins { width: 58%; aspect-ratio: 451 / 371; object-fit: cover; }
.collage__zwei {
  position: absolute; right: 0; bottom: 0; width: 50%;
  aspect-ratio: 331 / 247; object-fit: cover;
  border: clamp(10px, 1.2vw, 20px) solid #fff; border-width: clamp(10px, 1.2vw, 20px) 0 0 clamp(10px, 1.2vw, 20px);
}
.collage--team .collage__eins { width: 55%; }
.collage--team .collage__zwei { width: 56%; aspect-ratio: 422 / 286; }

/* Leistungskarten */
.leistungen { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: min(1660px, 100% - 2 * var(--rand)); margin-inline: auto; }
.leistung {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(42, 39, 33, .1);
  box-shadow: var(--schatten);
  text-decoration: none; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.leistungen li + li .leistung { margin-left: -1px; }
.leistung:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -10px rgba(58, 53, 39, .18); z-index: 1; }
.leistung__nr { position: absolute; left: 22px; top: 20px; font-size: 18px; font-weight: 500; letter-spacing: .08em; color: var(--grau); }
.leistungen li:first-child .leistung__nr, .leistung:hover .leistung__nr { color: var(--akzent-text); }
.leistung__text { display: grid; align-content: center; gap: 10px; min-height: 222px; padding: 56px 18px 24px; }
.leistung__titel { font-size: clamp(18px, 1.32vw, 25px); line-height: 1.25; font-weight: 500; hyphens: manual; overflow-wrap: break-word; }
.leistung__unter { font-size: clamp(16px, 1.1vw, 19px); line-height: 1.5; color: var(--grau); }
.leistung__bild { margin-top: auto; aspect-ratio: 350 / 218; overflow: hidden; }
.leistung__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.leistung:hover .leistung__bild img { transform: scale(1.05); }
@media (max-width: 1299px) { .leistungen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .leistungen li + li .leistung { margin-left: 0; } }
@media (max-width: 699px) {
  .leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .leistung__nr { display: none; }
  .leistung__text { min-height: 0; padding: 18px 12px; gap: 6px; }
  .leistung__titel { font-size: 18px; }
  .leistung__unter { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .leistung, .leistung__bild img { transition: none; } .leistung:hover, .leistung:hover .leistung__bild img { transform: none; } }

/* Referenzstreifen der Startseite: Slider mit Pfeilen, Fotos in unterschiedlichen Höhen */
.slider { position: relative; }
.streifen {
  display: flex; align-items: center; justify-content: flex-start; gap: clamp(16px, 2vw, 39px);
  width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: 8px 24px;
  padding-inline: var(--rand); scroll-snap-type: x proximity; scroll-padding-inline: var(--rand);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.streifen::-webkit-scrollbar { display: none; }
.streifen img {
  flex: none; height: clamp(220px, 26.3vw, 500px); width: auto;
  scroll-snap-align: start; filter: drop-shadow(0 18px 20px rgba(94, 87, 73, .12));
}
.streifen img.streifen__rand { height: clamp(160px, 18.9vw, 360px); }
.streifen__gespiegelt { transform: scaleX(-1); }
.streifen:focus-visible { outline: 3px solid var(--akzent-text); outline-offset: -3px; }
.slider__knopf {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 52px; height: 52px; border: 0; cursor: pointer;
  background: var(--akzent); color: var(--text); box-shadow: 0 6px 18px rgba(42, 39, 33, .22);
  transition: background .2s ease;
}
.slider__knopf:hover { background: var(--akzent-dunkel); }
.slider__knopf:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.slider__knopf[disabled] { opacity: 0; pointer-events: none; }
.slider__knopf--zurueck { left: max(8px, calc(var(--rand) - 26px)); }
.slider__knopf--vor { right: max(8px, calc(var(--rand) - 26px)); }
@media (max-width: 899px) {
  .streifen img, .streifen img.streifen__rand { height: 240px; }
  .slider__knopf { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .streifen { scroll-behavior: auto; } }

/* FAQ */
.fragen { display: grid; gap: 32px 40px; align-items: start; }
@media (min-width: 900px) { .fragen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.frage { background: #fff; border: 1px solid var(--linie); box-shadow: var(--schatten); }
.frage summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 24px; align-items: start;
  padding: clamp(24px, 2.2vw, 32px) clamp(22px, 3vw, 42px);
  font-size: clamp(20px, 1.5vw, 26px); line-height: 1.45; font-weight: 600;
  cursor: pointer; list-style: none;
}
.frage summary::-webkit-details-marker { display: none; }
.frage__zeichen {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(42, 39, 33, .4); transition: border-color .2s;
}
.frage__zeichen::before, .frage__zeichen::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%);
}
.frage__zeichen::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.frage[open] .frage__zeichen::after { transform: translate(-50%, -50%) rotate(0deg); }
.frage summary:hover .frage__zeichen, .frage[open] summary:focus-visible .frage__zeichen { border-color: var(--akzent); color: var(--akzent-text); }
.frage__antwort { padding: 0 clamp(22px, 3vw, 42px) clamp(28px, 2.6vw, 40px); font-size: clamp(16px, 1.1vw, 18px); line-height: 1.65; color: var(--grau); }

/* Bewertungen */
.stimmen { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stimme {
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px; min-height: 300px;
  background: #fff; border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 18px 20px rgba(94, 87, 73, .08);
}
.stimme__sterne { color: var(--akzent); font-size: 22px; letter-spacing: .08em; line-height: 1.4; }
.stimme blockquote { margin: 0; font-size: 18px; line-height: 1.65; }
.stimme figcaption { margin-top: auto; font-size: 18px; font-weight: 500; }
@media (max-width: 899px) { .stimmen { grid-template-columns: minmax(0, 1fr); } .stimme { min-height: 0; } }

/* Abschlussbanner */
.banner { position: relative; isolation: isolate; margin-top: var(--abstand); padding-block: clamp(56px, 6vw, 96px); color: #fff; }
.banner__bild { position: absolute; inset: 0; z-index: -2; }
.banner__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(42, 39, 33, .8); }
.banner__innen { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.banner__text { display: grid; gap: 16px; max-width: 820px; }
.banner__text h2 { font-size: clamp(30px, 2.6vw, 40px); font-weight: 500; color: var(--creme); }
.banner__text p:last-child { font-size: 18px; line-height: 1.5; color: rgba(251, 249, 245, .8); }
.banner .knopfreihe { gap: 24px 40px; }
main > .banner:last-child { margin-bottom: 0; }

/* Team */
.team { display: grid; gap: 24px; grid-template-columns: minmax(0, 451fr) minmax(0, 925fr); align-items: start; }
.inhaber { display: flex; flex-direction: column; box-shadow: 0 10px 24px rgba(58, 53, 39, .08); }
.inhaber img { width: 100%; aspect-ratio: 451 / 335; object-fit: cover; }
.inhaber__text {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: clamp(32px, 3vw, 56px) clamp(24px, 2.6vw, 44px); background: var(--akzent);
  min-height: 477px; justify-content: center;
}
.inhaber__rolle { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: rgba(42, 39, 33, .8); }
.inhaber__name { font-size: 34px; line-height: 1.25; font-weight: 600; }
.inhaber__text .fliesstext { font-size: 15px; line-height: 1.6; color: #3f3a30; max-width: 330px; }
.mitarbeiter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 25px; }
.person { background: #fff; }
.person img { width: 100%; aspect-ratio: 450 / 335; object-fit: cover; }
.person figcaption { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 0 8px; font-size: 24px; line-height: 1.25; font-weight: 600; }
.person figcaption::after { content: ""; width: 36px; height: 2px; background: var(--akzent); }
@media (max-width: 1099px) {
  .team { grid-template-columns: minmax(0, 1fr); }
  .inhaber { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .inhaber img { height: 100%; aspect-ratio: auto; }
  .inhaber__text { min-height: 0; }
}
@media (max-width: 699px) {
  .inhaber { grid-template-columns: minmax(0, 1fr); }
  .inhaber img { aspect-ratio: 451 / 335; }
  .mitarbeiter { gap: 16px 12px; }
  .person figcaption { font-size: 19px; }
}

/* Partner */
.partner { display: grid; gap: 32px clamp(48px, 7vw, 132px); grid-template-columns: minmax(0, 458px) minmax(0, 525px); align-items: start; }
.partner__karte { display: grid; gap: 8px; align-content: start; }
.partner__karte--gelb { background: var(--akzent); padding: 32px clamp(24px, 3vw, 48px); min-height: clamp(220px, 21vw, 408px); text-align: center; }
.partner__nr { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent-text); }
.partner__karte--gelb .partner__nr { color: rgba(42, 39, 33, .8); }
.partner__titel { font-size: 25px; line-height: 1.25; font-weight: 600; }
.partner__karte:not(.partner__karte--gelb) { padding: 26px 16px; }
.partner__karte p:not(.partner__nr) { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--grau); max-width: 400px; }
.partner-kopf > p:last-child { font-size: 17px; line-height: 1.55; color: var(--grau); max-width: 506px; }
@media (max-width: 899px) { .partner { grid-template-columns: minmax(0, 1fr); } }

/* Kontakt */
.kontakt { display: grid; gap: 56px clamp(48px, 5vw, 76px); grid-template-columns: minmax(0, 860fr) minmax(0, 408fr); align-items: start; }
@media (max-width: 999px) { .kontakt { grid-template-columns: minmax(0, 1fr); } }
.kontakt__formular { background: #fff; border-radius: 4px; box-shadow: 0 6px 16px rgba(42, 39, 33, .08); padding: clamp(28px, 3vw, 44px) clamp(20px, 3.4vw, 48px); }
.kontakt__formular h2 { font-size: 25px; font-weight: 500; }
.formular { display: grid; gap: 26px; margin-top: 26px; }
.formular__pflicht { font-size: 15px; color: var(--grau); }
.formular__reihe { display: grid; gap: 26px 24px; }
@media (min-width: 560px) { .formular__reihe { grid-template-columns: 1fr 1fr; } }
.formular__feld { display: grid; gap: 9px; }
.formular__feld label { font-size: 14px; font-weight: 500; color: var(--grau); }
.formular input, .formular select, .formular textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: #fff; color: var(--text);
  border: 1px solid #cfc6b5; border-radius: 2px;
  font: inherit; font-size: 16px;
}
.formular select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235e5749' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.formular textarea { resize: vertical; min-height: 168px; }
.formular ::placeholder { color: #857e70; }
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: 2px solid var(--akzent); outline-offset: 0; border-color: var(--akzent); }
.formular__falle { position: absolute; left: -9999px; }
.formular__senden { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.formular__senden .knopf { min-width: 280px; min-height: 52px; font-size: 15px; box-shadow: none; }
.formular__hinweis { font-size: 13px; line-height: 1.5; color: var(--grau); max-width: 420px; }
.formular__hinweis a { color: var(--text); }
@media (max-width: 559px) { .formular__senden .knopf { min-width: 0; width: 100%; } }

.direkt { display: grid; gap: 30px; padding-top: 28px; font-style: normal; }
.direkt__block { display: grid; gap: 7px; }
.direkt__titel { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent-text); }
.direkt__block p:not(.direkt__titel), .direkt__block a { font-size: 17px; line-height: 1.55; }
.direkt a { text-decoration: none; }
.direkt a:hover { text-decoration: underline; text-decoration-color: var(--akzent); text-underline-offset: 4px; }

/* Rechtstexte, Danke, 404 */
.rechtstext { padding-block: clamp(40px, 6vw, 88px) var(--abstand); max-width: 860px; }
.rechtstext h1 { margin-bottom: 32px; }
.rechtstext h2 { font-size: 24px; margin: 40px 0 12px; }
.rechtstext h3, .rechtstext h4 { font-size: 18px; margin: 28px 0 8px; }
.rechtstext p, .rechtstext ul { margin-bottom: 12px; line-height: 1.7; }
.rechtstext a { word-break: break-word; }

/* Fuß */
.fuss { padding-block: clamp(56px, 5vw, 72px) 28px; border-top: 1px solid rgba(42, 39, 33, .08); }
.fuss__gitter { display: grid; gap: 40px 48px; grid-template-columns: minmax(0, 430px) minmax(0, 780px); justify-content: space-between; }
.fuss__marke { display: grid; gap: 18px; align-content: start; }
.fuss__marke::before { content: ""; width: 48px; height: 2px; background: var(--akzent); }
.fuss__name { font-size: 30px; font-weight: 600; line-height: 1.2; }
.fuss__links { display: grid; grid-template-columns: 170px 230px 240px; justify-content: space-between; gap: 32px; }
.fuss h2 { font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: .14em; color: var(--akzent-text); margin-bottom: 14px; }
.fuss ul { display: grid; gap: 2px; font-size: 15px; line-height: 1.8; }
.fuss li a { display: inline-block; min-height: 27px; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; text-decoration-color: var(--akzent); text-underline-offset: 4px; }
.fuss__zeile {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  margin-top: clamp(40px, 4vw, 56px); padding-top: 20px;
  border-top: 1px solid rgba(42, 39, 33, .1);
  font-size: 14px; color: var(--grau);
}
.fuss__recht { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.fuss__recht a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss__contentura { display: inline-flex; min-height: 44px; align-items: center; }
.fuss__contentura img { width: 120px; height: auto; }
@media (max-width: 1099px) { .fuss__gitter { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 699px) {
  .fuss__links { grid-template-columns: 1fr 1fr; }
  .fuss__links > div:last-child { grid-column: span 2; }
}

/* Leistungsseiten */
.hero--klein { --schleier: .6; }
.hero--klein[style]::before { background: rgba(255, 255, 255, var(--schleier)); }
.ober--mitte { justify-content: center; }
.ober--mitte::after { content: ""; flex: none; width: 48px; height: 2px; background: transparent; }
.hero .ober a { text-decoration: none; }
.hero .ober a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ober--klein { font-size: 13px; letter-spacing: .08em; }
.umfang__text p + p { color: var(--grau); }
.abschnitt--eng { padding-top: clamp(56px, 5vw, 80px); }
.kopfzeile--mitte { justify-items: center; text-align: center; }

.bildpaar { display: grid; grid-template-columns: minmax(0, 400fr) minmax(0, 257fr); gap: clamp(8px, 1vw, 12px); align-items: end; max-width: 680px; justify-self: end; width: 100%; }
.bildpaar__gross { width: 100%; aspect-ratio: 400 / 370; object-fit: cover; box-shadow: 0 -10px 0 #fff, 0 0 0 0 #fff; }
.bildpaar__klein { width: 100%; aspect-ratio: 257 / 320; object-fit: cover; }
.bildpaar__vergleich { position: relative; overflow: hidden; aspect-ratio: 400 / 370; }
.bildpaar--einzel { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.bildpaar--doppelt { grid-template-columns: minmax(0, 1fr); align-items: start; max-width: 560px; gap: clamp(12px, 1.4vw, 20px); }
.bildpaar--doppelt .bildpaar__vergleich { aspect-ratio: 4 / 3; }
.bildpaar--einzel .bildpaar__vergleich { aspect-ratio: 4 / 3; }
.bildpaar::before { content: none; }

.spektrum { border: 1px solid rgba(42, 39, 33, .1); padding: clamp(24px, 3vw, 40px); display: grid; gap: 6px; }
.spektrum h2 { font-size: clamp(26px, 2.2vw, 32px); }
.spektrum__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 4px 40px; margin: 24px 0 0; padding: 0; list-style: none; }
.spektrum__liste li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 14px 0; font-size: 17px; line-height: 1.5; }
.spektrum__nr { color: var(--akzent-text); font-size: 14px; font-weight: 500; letter-spacing: .08em; line-height: 25px; }
@media (max-width: 799px) { .spektrum__liste { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; } .spektrum__liste li { padding: 10px 0; } }

.hinweis { margin-top: clamp(24px, 2.6vw, 48px); background: var(--akzent); padding: clamp(32px, 3.4vw, 48px) clamp(20px, 4vw, 60px); text-align: center; }
.hinweis h2 { font-size: clamp(22px, 1.8vw, 25px); font-weight: 500; }
.hinweis p { margin: 14px auto 0; max-width: 820px; font-size: 16px; line-height: 1.75; color: rgba(42, 39, 33, .88); }

.ablauf { display: grid; grid-template-columns: repeat(3, minmax(0, 335px)); justify-content: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.schritt { display: grid; align-content: start; gap: 14px; padding: 36px; border: 1px solid rgba(42, 39, 33, .1); background: #fff; }
.schritt__nr { color: var(--akzent-text); font-size: 18px; font-weight: 500; letter-spacing: .08em; }
.schritt h3 { font-size: 25px; line-height: 1.25; font-weight: 500; }
.schritt p { font-size: 17px; line-height: 1.6; color: var(--grau); }
@media (max-width: 899px) { .ablauf { grid-template-columns: minmax(0, 1fr); } .schritt { padding: 28px 24px; } }

/* Referenzen */
.einleitung { max-width: 908px; margin-inline: auto; gap: 16px; }
.einleitung h2 { font-size: clamp(30px, 2.8vw, 40px); }
.einleitung > p:last-child { font-size: 18px; line-height: 1.65; color: var(--grau); }
.projekte { display: grid; gap: clamp(64px, 5vw, 84px); }
.projekt { display: grid; gap: 22px; }
.projekt--anschluss { margin-top: calc(-1 * clamp(64px, 5vw, 84px) + 20px); }
.projekt__kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 32px; flex-wrap: wrap; }
.projekt__kopf > div { display: grid; gap: 8px; max-width: 900px; }
.projekt__kopf h3 { font-size: clamp(22px, 1.8vw, 25px); line-height: 1.3; }
.projekt__kopf p { font-size: 17px; line-height: 1.5; color: var(--grau); }
.projekt__leistung { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent-text); text-decoration: none; padding-block: 12px 2px; }
.projekt__leistung:hover { text-decoration: underline; text-underline-offset: 4px; }

.raster { display: grid; gap: clamp(10px, 1.1vw, 20px); grid-auto-rows: clamp(120px, 13.7vw, 262px); }
.raster--hoch-mitte-hoch, .raster--klein-hoch-klein, .raster--hoch-hoch-hoch, .raster--reihe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster--gross-links { grid-template-columns: minmax(0, 860fr) minmax(0, 520fr); }
.raster--gross-rechts { grid-template-columns: minmax(0, 520fr) minmax(0, 860fr); }
.kachel { position: relative; overflow: hidden; background: #efebe3; }
.kachel--hoch, .kachel--gross { grid-row: span 2; }
.raster--hoch-mitte-hoch .kachel--klein { grid-column: 2; }
.raster--hoch-mitte-hoch .kachel--hoch:last-child { grid-column: 3; grid-row: 1 / span 2; }
.raster--klein-hoch-klein .kachel:nth-child(1), .raster--klein-hoch-klein .kachel:nth-child(2) { grid-column: 1; }
.raster--klein-hoch-klein .kachel--hoch { grid-column: 2; grid-row: 1 / span 2; }
.raster--klein-hoch-klein .kachel:nth-child(4), .raster--klein-hoch-klein .kachel:nth-child(5) { grid-column: 3; }
.raster--klein-hoch-klein .kachel:nth-child(4) { grid-row: 1; }
.raster--gross-links .kachel--klein { grid-column: 2; }
.raster--gross-rechts .kachel--klein { grid-column: 1; }
.raster--gross-rechts .kachel--gross { grid-column: 2; grid-row: 1 / span 2; }
.raster--reihe { grid-auto-rows: auto; }
.kachel--reihe { aspect-ratio: 450 / 259; }
.raster--hoch-hoch-hoch { grid-auto-rows: clamp(120px, 14.3vw, 272px); }

.galerie__knopf { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.galerie__knopf[hidden] { display: none; }
.galerie__knopf img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galerie__knopf:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .galerie__knopf img { transition: none; } .galerie__knopf:hover img { transform: none; } }

/* Vorher-nachher-Schieber */
.vergleich { touch-action: pan-y; cursor: ew-resize; }
.vergleich__bild { position: absolute; inset: 0; }
.vergleich__bild img { width: 100%; height: 100%; object-fit: cover; }
.vergleich__bild--vorher { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.vergleich__kante {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; margin-left: -1.5px; background: var(--akzent); box-shadow: 0 0 12px rgba(42, 39, 33, .35);
  pointer-events: none; color: var(--text);
}
.vergleich__kante svg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  box-sizing: content-box; background: var(--akzent); padding: 17px 9px;
  box-shadow: 0 4px 14px rgba(42, 39, 33, .3);
}
.vergleich__regler {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  appearance: none; -webkit-appearance: none; background: none; cursor: ew-resize;
  pointer-events: none; touch-action: none;
}
.vergleich__regler::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; background: none; cursor: ew-resize; }
.vergleich__regler::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: none; cursor: ew-resize; }
.vergleich__regler:focus-visible { outline: 3px solid var(--akzent-text); outline-offset: -3px; }

@media (max-width: 699px) {
  .raster, .raster--gross-links, .raster--gross-rechts, .raster--hoch-mitte-hoch, .raster--klein-hoch-klein, .raster--hoch-hoch-hoch, .raster--reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .raster .kachel { grid-column: auto !important; grid-row: auto !important; }
  .raster .kachel--gross, .raster .kachel--hoch { grid-column: span 2 !important; grid-row: span 2 !important; }
  .raster--reihe .kachel--reihe:first-child { grid-column: span 2 !important; }
  .kachel--reihe { aspect-ratio: auto; grid-row: span 1; }
  .vergleich__kante svg { padding: 13px 7px; }
}

.lupe { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 64px 16px; background: rgba(28, 26, 22, .94); }
.lupe[hidden] { display: none; }
.lupe__figur { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lupe__bild { max-width: min(1600px, 100%); max-height: calc(100vh - 160px); width: auto; height: auto; }
.lupe__text { font-size: 14px; color: rgba(255, 255, 255, .8); text-align: center; }
.lupe__knopf { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; cursor: pointer; background: var(--akzent); color: var(--text); }
.lupe__zu { top: 16px; right: 16px; }
.lupe__zurueck, .lupe__vor { top: 50%; transform: translateY(-50%); }
.lupe__zurueck { left: 16px; }
.lupe__vor { right: 16px; }
@media (max-width: 559px) { .lupe__zurueck, .lupe__vor { top: auto; bottom: 16px; transform: none; } }
@media (max-width: 699px) { .leistung__titel { hyphens: auto; -webkit-hyphens: auto; } }

.orte { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; }
.orte__titel { color: var(--grau); margin-right: 4px; }
.orte a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.orte a:hover { color: var(--akzent-text); }
.orte [aria-current] { font-weight: 600; }

.vertrauen { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; margin: 0 auto; padding: 24px 0 0; list-style: none; font-size: 15px; font-weight: 500; padding-top: 32px; }
.vertrauen li { display: flex; align-items: center; gap: 10px; }
.vertrauen li::before { content: ""; width: 18px; height: 10px; border: solid var(--akzent-text); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-3px); }
.vertrauen + .abschnitt { padding-top: clamp(48px, 5vw, 80px); }

.ortstext { display: grid; gap: 8px; }
.ortstext > p:last-child { margin-top: 12px; max-width: 900px; font-size: 18px; line-height: 1.65; }

/* Nebenleistungen */
.neben { margin-top: clamp(40px, 4vw, 64px); display: grid; gap: 24px; }
.neben__kopf { display: grid; gap: 8px; }
.neben__kopf h2 { font-size: clamp(24px, 2vw, 30px); }
.neben__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.neben__liste li { display: grid; gap: 6px; align-content: start; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--linie); }
.neben__liste h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }
.neben__liste p { font-size: 16px; line-height: 1.55; color: var(--grau); }
@media (max-width: 899px) { .neben__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; } }
@media (max-width: 559px) { .neben__liste { grid-template-columns: minmax(0, 1fr); } }

/* Brillux-Banner */
.partner__banner { display: block; margin-top: 20px; max-width: 468px; }
.partner__banner img { width: 100%; height: auto; }
.partner__karte--gelb { text-align: center; display: grid; justify-items: center; align-content: center; }
.bildpaar__banner { grid-column: 1 / -1; display: block; max-width: 468px; margin-top: 4px; }
.bildpaar__banner img { width: 100%; height: auto; }
