/* Montserrat (SIL Open Font License, siehe assets/fonts/OFL.txt) – lokal eingebunden, keine Google-Server */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Farben ---------- */
:root {
  --accent: #B7A798;        /* Hausfarbe */
  --accent-text: #cbbdb0;   /* Hausfarbe als Schrift auf dunklem Grund */
  --ink: #171412;           /* Schrift auf der Hausfarbe */
  --bg: #141210;
  --bg-2: #1b1815;
  --text: #ece6df;
  --muted: #a39a90;
  --line: rgba(236, 230, 223, .13);
  --field: #1f1c19;
  --header: #141210;
  --roller: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Cpath d='M6.0 5.9 L16.0 4.9 L26.0 7.9 L36.0 4.4 L46.0 7.2 L56.0 6.2 L66.0 4.3 L76.0 7.0 L86.0 4.2 L96.0 6.6 L106.0 4.4 L116.0 4.5 L126.0 6.5 L136.0 9.0 L146.0 4.7 L156.0 5.3 L166.0 7.8 L176.0 9.7 L186.0 7.5 L196.0 6.4 L206.0 9.9 L216.0 4.3 L226.0 9.2 L236.0 5.7 L246.0 4.9 L256.0 4.7 L266.0 5.9 L276.0 8.9 L286.0 5.1 L296.0 7.5 L306.0 7.8 L316.0 6.2 L326.0 7.3 L336.0 4.4 L346.0 4.4 L356.0 5.2 L366.0 8.1 L376.0 6.6 L392.7 10.0 L382.4 19.0 L389.4 28.0 L384.7 37.0 L383.9 46.0 L382.9 55.0 L394.3 64.0 L384.1 73.0 L386.0 82.0 L388.3 91.0 L386.0 91.9 L376.0 93.5 L366.0 92.7 L356.0 91.8 L346.0 94.8 L336.0 94.2 L326.0 91.5 L316.0 93.4 L306.0 93.2 L296.0 95.3 L286.0 94.4 L276.0 91.7 L266.0 95.9 L256.0 90.7 L246.0 92.5 L236.0 94.5 L226.0 90.9 L216.0 92.9 L206.0 90.2 L196.0 94.0 L186.0 94.6 L176.0 93.4 L166.0 95.3 L156.0 91.9 L146.0 94.2 L136.0 93.6 L126.0 93.5 L116.0 92.7 L106.0 95.0 L96.0 95.7 L86.0 92.8 L76.0 94.0 L66.0 90.4 L56.0 94.2 L46.0 93.9 L36.0 96.0 L26.0 94.9 L16.0 91.7 L6.0 92.3 L6.2 90.0 L1.5 80.0 L3.7 70.0 L4.3 60.0 L6.3 50.0 L5.9 40.0 L6.2 30.0 L2.7 20.0 L3.5 10.0 Z' fill='%23fff'/%3E%3Crect x='56' y='18' width='317' height='2' fill='%23000' fill-opacity='.09'/%3E%3Crect x='116' y='33' width='237' height='1' fill='%23000' fill-opacity='.09'/%3E%3Crect x='38' y='52' width='246' height='2' fill='%23000' fill-opacity='.09'/%3E%3Crect x='43' y='71' width='273' height='1' fill='%23000' fill-opacity='.09'/%3E%3Crect x='79' y='84' width='249' height='2' fill='%23000' fill-opacity='.09'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='400' height='100' fill='%23000' mask='url%28%23m%29'/%3E%3C/svg%3E");
  color-scheme: dark;
}
:root[data-theme="light"] {
  --accent-text: #6f5f50;
  --bg: #f5f4f2;
  --bg-2: #eae7e3;
  --text: #1c1a18;
  --muted: #5d564f;
  --line: rgba(28, 26, 24, .15);
  --field: #ffffff;
  --header: #f5f4f2;
  color-scheme: light;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Überschriften: dünn und groß – wie der Schriftzug im Logo */
.display {
  font-size: clamp(2.5rem, 6.6vw, 5.4rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto;
}
.kicker { font-size: .95rem; font-weight: 500; color: var(--accent-text); margin-bottom: 22px; }
.small-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Farbroller: das eine Erkennungszeichen ---------- */
.paint {
  position: relative; z-index: 0;
  display: inline-block;
  padding: 0 .16em;
  margin: 0 -.04em;
  font-weight: 500;
  color: var(--ink);
  animation: paint-ink .95s cubic-bezier(.65, 0, .25, 1) .6s both;
}
.paint::before {
  content: "";
  position: absolute; z-index: -1;
  inset: .04em -.02em .06em;
  background: var(--accent);
  -webkit-mask: var(--roller) center / 100% 100% no-repeat;
          mask: var(--roller) center / 100% 100% no-repeat;
  animation: paint-roll .95s cubic-bezier(.65, 0, .25, 1) .6s both;
}
@keyframes paint-roll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes paint-ink { from { color: var(--text); } 55% { color: var(--text); } to { color: var(--ink); } }
@media (prefers-reduced-motion: reduce) {
  .paint, .paint::before { animation: none; }
}

/* ---------- Sanfte Bewegung beim Scrollen ---------- */
/* Nur aktiv, wenn das Kopf-Skript die Klasse .motion gesetzt hat (also ohne „reduzierte Bewegung“). */
.motion :is(
  .hero .kicker, .hero .display, .hero .lead, .hero .btn, .hero figure,
  .page-head .kicker, .page-head .display, .page-head .lead, .page-head .btn,
  .section .title, .section .kicker, .about p, .mosaic img, .services li,
  .feature img, .feature p, .feature .text-link, .figures > div,
  .planning p, .planning .text-link, .pair img,
  .intro .statement, .intro .text p, .gallery-row img, .index, .entry,
  .address, .reach, .contact form, .map, .bookings, .booking-alt,
  .company p, .photo-slot, .person p, .team-intro p, .closing-actions,
  .gallery-item, .service-text, .audience, .ref-head, .trade-links, .index-note,
  .trio article, .closing-inline > *, .price-card, .quotes blockquote, .bbt-device, .bbt-schema, .benefits,
  .legal h2, .legal h3, .legal p, .legal ul, .legal address
) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.motion .page-banner { overflow: hidden; }
.motion .page-banner img { transform: scale(1.08); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.motion .in.in.in { opacity: 1; transform: none; }
.motion .ref-slider .slide .gallery-item { opacity: 1; transform: none; }   /* Slider-Bilder nicht einzeln einblenden (Spezifität muss die Einblend-Liste schlagen) */
.motion .ref-slider { opacity: 0; transition: opacity .8s ease; }
.motion .ref-slider.in { opacity: 1; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--ink);
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.3;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .2s;
}
.btn:hover { background: var(--accent-text); }
:root[data-theme="light"] .btn:hover { background: #a39383; }
.text-link {
  font-weight: 600; color: var(--accent-text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.text-link:hover { color: var(--text); }

/* ---------- Kopfzeile ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 28px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--text); }

header.site { position: sticky; top: 0; z-index: 50; background: var(--header); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.logo { flex: none; }
.logo img { height: 44px; width: auto; }
:root:not([data-theme="light"]) .logo img,
:root:not([data-theme="light"]) .footer-logo { filter: invert(1) hue-rotate(180deg) brightness(1.1); }

nav.main ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
nav.main a {
  display: block; padding: 6px 0; white-space: nowrap;
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--muted);
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat;
  transition: color .2s, background-size .35s cubic-bezier(.2, .7, .2, 1);
}
nav.main a:hover { color: var(--text); background-size: 100% 2px; }
nav.main a[aria-current="page"] { color: var(--text); background-size: 100% 2px; }
/* „Termin buchen“ als dezent hervorgehobener Menüpunkt */
nav.main a.nav-cta { padding: 6px 14px; border: 1px solid var(--accent); border-radius: 3px; color: var(--text); background: none; }
nav.main a.nav-cta:hover, nav.main a.nav-cta[aria-current="page"] { background: var(--accent); color: var(--ink); }

/* Ausklappmenü „Leistungen“ */
.has-sub { position: relative; }
.sub-toggle {
  display: flex; align-items: center; gap: 6px; padding: 6px 0;
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  border: 0; cursor: pointer;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat;
  transition: color .2s, background-size .35s cubic-bezier(.2, .7, .2, 1);
}
.sub-toggle svg { width: 12px; height: 12px; transition: transform .25s; }
.sub-toggle:hover, .sub-toggle[aria-expanded="true"] { color: var(--text); }
.sub-toggle.is-current { color: var(--text); background-size: 100% 2px; }
nav.main .sub {
  display: block; position: absolute; z-index: 60; top: calc(100% + 18px); left: -20px; min-width: 260px;
  padding: 8px 0; background: var(--header);
  border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 0 0 3px 3px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
/* unsichtbare Brücke, damit das Menü beim Hinüberfahren mit der Maus offen bleibt */
.has-sub::after { content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 22px; }
.has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
nav.main .sub a { display: block; padding: 10px 20px; font-size: .92rem; color: var(--muted); background: none; }
nav.main .sub a:hover { color: var(--text); background: var(--bg-2); }
nav.main .sub a[aria-current="page"] { color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
@media (min-width: 941px) {
  /* Maus: beim Überfahren aufklappen; Tastatur: beim Fokussieren */
  .has-sub:hover .sub, .has-sub:has(:focus-visible) .sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub-toggle { color: var(--text); }
  .has-sub:hover .sub-toggle svg, .has-sub:has(:focus-visible) .sub-toggle svg { transform: rotate(180deg); }
}
/* mit Escape geschlossen: bleibt zu, bis Maus oder Fokus das Menü verlassen */
.has-sub.esc-closed .sub { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.has-sub.esc-closed .sub-toggle svg { transform: none; }

.header-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 3px; color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; }

/* ---------- Abschnitte ---------- */
.section { padding: 120px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); border-top: 0; }
.section.alt + .section { border-top: 0; }

/* ---------- Startseite: Einstieg ---------- */
.hero { padding: 84px 0 120px; }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.hero .display { margin-bottom: 40px; }
.hero .lead { max-width: 46ch; color: var(--muted); font-size: 1.05rem; margin-bottom: 34px; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }

/* ---------- Startseite: Über uns ---------- */
.about .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
.about .title { margin-bottom: 36px; }
.about p { color: var(--muted); max-width: 58ch; }
.mosaic { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 230px 190px 170px; gap: 10px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.mosaic img:nth-child(1) { grid-row: span 2; }
.mosaic img:nth-child(4) { grid-column: span 2; }

/* ---------- Startseite: Leistungen ---------- */
.services-head { margin-bottom: 56px; }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; border-top: 1px solid var(--line); }
.services li { border-bottom: 1px solid var(--line); }
.services a {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 22px;
  padding: 18px 0; text-decoration: none;
}
.services img { width: 64px; height: 64px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.services a:hover img { transform: translateX(6px); }
.services strong { font-size: 1.1rem; font-weight: 600; }
.services span { font-size: .85rem; color: var(--muted); }
.services a:hover strong { color: var(--accent-text); }
.services a:hover span { color: var(--text); }

/* ---------- Startseite: Altbau ---------- */
.feature .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.feature .title { margin-bottom: 22px; }
.feature p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }

/* ---------- Startseite: Zahlen ---------- */
.figures { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; }
.figures div { padding: 6px 24px 0; border-left: 1px solid var(--line); }
.figures div:first-child { border-left: 0; padding-left: 0; }
.figures dt { font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 200; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figures dd { margin: 14px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* ---------- Startseite: Planung ---------- */
.planning .wrap { display: grid; grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; }
.planning .title { margin-bottom: 28px; }
.planning p { color: var(--muted); }
.planning .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.planning .pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.planning .pair img:last-child { margin-top: 64px; }

/* ---------- Unterseiten: Kopf ---------- */
.page-head { padding: 84px 0 64px; }
.page-head .display { max-width: 14ch; margin-bottom: 36px; }
.page-head .lead { max-width: 52ch; color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; }
.page-banner img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; }

/* ---------- Unterseiten: Einleitung ---------- */
.intro .wrap:first-child { display: grid; grid-template-columns: 6fr 5fr; gap: 80px; align-items: start; }
.intro .statement { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 300; line-height: 1.35; letter-spacing: -.015em; margin: 0; }
.intro .text p { color: var(--muted); }
.intro .text p:first-child { color: var(--text); }

.index { margin-bottom: 64px; }
.index ul { list-style: none; margin: 14px 0 0; padding: 0; columns: 3; column-gap: 40px; }
.index li { break-inside: avoid; }
.index a { display: inline-block; padding: 5px 0; text-decoration: none; color: var(--muted); font-size: .95rem; }
.index a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }

.gallery-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-top: 72px; }
.gallery-row img { width: 100%; height: 300px; object-fit: cover; border-radius: 3px; }

/* ---------- Unterseiten: Leistungen ---------- */
.entries { border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.entry h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.entry p { color: var(--muted); max-width: 66ch; }
.entry p strong { color: var(--text); font-weight: 600; }
.entry p:last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.contact .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
.contact .title { margin-bottom: 40px; }
.address { font-style: normal; line-height: 1.9; margin-bottom: 30px; }
.address strong { font-weight: 600; }
.reach { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; }
.reach dt { color: var(--muted); font-size: .9rem; }
.reach dd { margin: 0; font-weight: 500; }
.reach a { text-decoration: none; border-bottom: 1px solid var(--accent); }
.reach a:hover { color: var(--accent-text); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 2px; font: inherit; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--muted); border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 11px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 30px 0 26px; }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.form-note { font-size: .9rem; color: var(--accent-text); margin: 14px 0 0; min-height: 1.4em; }

.map { margin-top: 90px; height: 380px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
/* OpenStreetMap-Karte (Leaflet) */
.map { isolation: isolate; z-index: 0; }   /* Leaflet-Ebenen nicht über Kopfzeile/Banner legen */
.map.leaflet-container { background: var(--bg-2); font: inherit; font-size: .85rem; }
.map .leaflet-tile-pane { filter: saturate(.55) sepia(.12); }
/* Dark Mode: OSM-Kacheln invertieren, Farbtöne zurückdrehen und an die warme Palette angleichen */
:root:not([data-theme="light"]) .map .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.45) sepia(.18);
}
.map-pin::before {
  content: ""; position: absolute; inset: 3px;
  background: var(--accent); border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
}
.map-pin::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--ink); }
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip { background: var(--bg); color: var(--text); border-radius: 3px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.map .leaflet-popup-content { margin: 14px 18px; line-height: 1.6; }
.map .leaflet-container a.leaflet-popup-close-button, .map a.leaflet-popup-close-button { color: var(--muted); }
.map .leaflet-bar { border: 1px solid var(--line); box-shadow: none; border-radius: 3px; }
.map .leaflet-bar a { background: var(--bg-2); color: var(--text); border-bottom-color: var(--line); }
.map .leaflet-bar a:hover { background: var(--bg); color: var(--accent-text); }
.map .leaflet-control-attribution { background: var(--bg-2); color: var(--text); }
.map .leaflet-control-attribution a { color: var(--accent-text); }
.map-consent { height: 100%; display: flex; align-items: center; }
.map-consent .wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.map-consent p { color: var(--muted); font-size: .9rem; max-width: 52ch; margin: 8px 0 0; }
.map-consent .btn { flex: none; background: transparent; color: var(--text); border: 1px solid var(--accent); }
.map-consent .btn:hover { background: var(--accent); color: var(--ink); }

/* ---------- Bildergalerien ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 10px; }
.gallery-item { display: block; position: relative; overflow: hidden; border-radius: 3px; background: var(--bg-2); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:only-child { grid-column: 1 / -1; grid-row: span 2; }
/* bei 3 oder 5 Bildern: erstes Bild doppelt hoch */
.gallery-item:first-child:nth-last-child(3), .gallery-item:first-child:nth-last-child(5) { grid-row: span 2; }
.gallery.gallery-wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-rows: 300px; }
.title + .gallery { margin-top: 40px; }
.gallery.gallery-wide .gallery-item { grid-row: auto; }
.gallery.gallery-inline { grid-auto-rows: 170px; margin-top: 24px; max-width: 560px; }

/* ---------- Lightbox (Großansicht) ---------- */
.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 84px 32px; background: rgba(10, 9, 8, .95);
  animation: lb-in .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 2px; }
.lightbox figcaption { color: #d6cfc8; font-size: .9rem; margin-top: 16px; text-align: center; max-width: 70ch; }
.lb-count { position: absolute; top: 26px; left: 28px; color: #a39a90; font-size: .85rem; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(20, 18, 16, .7); color: #f3efea; border: 1px solid rgba(255, 255, 255, .18); border-radius: 3px; cursor: pointer;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 14px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } .gallery-item img { transition: none; } }

/* ---------- Referenzen-Karussell (Hoch- und Querformat, gleiche Höhe, aktives Bild mittig) ---------- */
.ref-slider {
  --slider-h: 480px;
  position: relative; overflow-x: auto; overflow-y: hidden; padding: 4px 0;
  scrollbar-width: none;
}
.ref-slider::-webkit-scrollbar { display: none; }
.ref-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.slider-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; width: max-content; }
.slide { flex: none; width: min-content; }
.slide .gallery-item { height: var(--slider-h); border-radius: 3px; }
.slide .gallery-item img { height: 100%; width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.slide-caption { margin: 12px 0 0; font-size: .85rem; line-height: 1.5; color: var(--muted); }

/* Karussell-Modus (per JavaScript aktiviert; ohne JavaScript bleibt es ein wischbarer Streifen) */
.ref-slider.is-carousel { overflow: hidden; touch-action: pan-y; cursor: grab; }
.ref-slider.is-carousel.dragging { cursor: grabbing; }
.is-carousel .slider-track { transition: transform .7s cubic-bezier(.22, .7, .2, 1); will-change: transform; }
.is-carousel .slide { transition: filter .7s ease, opacity .7s ease, transform .7s cubic-bezier(.22, .7, .2, 1); }
/* Effektstärke nach Abstand zum Hauptbild: 1 → 40 %, 2 → 60 %, 3 → 75 %, ab 4 → 85 %
   (100 % = Helligkeit 25 %, 8 px Unschärfe, Verkleinerung auf 85 %) */
.is-carousel .slide { --fx: 0; }
.is-carousel .slide[data-dist="1"] { --fx: .40; }
.is-carousel .slide[data-dist="2"] { --fx: .60; }
.is-carousel .slide[data-dist="3"] { --fx: .75; }
.is-carousel .slide[data-dist="4"] { --fx: .85; }
.is-carousel .slide:not(.is-active) {
  filter: brightness(calc(1 - .75 * var(--fx))) saturate(calc(1 - .6 * var(--fx))) blur(calc(8px * var(--fx)));
  transform: scale(calc(1 - .15 * var(--fx)));
  cursor: pointer;
}
.is-carousel .slide:not(.is-active):hover { --fx: .25; }
.is-carousel .slide:not(.is-active) .gallery-item { cursor: pointer; }
.is-carousel .slide:not(.is-active) .slide-caption { visibility: hidden; }
.is-carousel .slide:not(.is-active) .gallery-item:hover img { transform: none; }
.is-carousel.dragging .slider-track, .is-carousel .no-anim, .is-carousel .no-anim .slide, .is-carousel .slide.no-anim { transition: none !important; }
/* Light Mode: Randbilder blassen aus statt dunkel zu werden */
:root[data-theme="light"] .is-carousel .slide:not(.is-active) {
  filter: saturate(calc(1 - .7 * var(--fx))) blur(calc(8px * var(--fx)));
  opacity: calc(1 - .9 * var(--fx));
}
/* Ränder zusätzlich weich ausblenden */
.ref-slider.is-carousel::before, .ref-slider.is-carousel::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 8vw; z-index: 2; pointer-events: none;
}
.ref-slider.is-carousel::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ref-slider.is-carousel::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }

.slider-controls { display: flex; align-items: center; gap: 8px; }
.slider-count { min-width: 4.5em; margin-right: 8px; text-align: right; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.slider-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; color: var(--text); border: 1px solid var(--line); border-radius: 3px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.slider-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn .i-play, .slider-btn[aria-pressed="true"] .i-pause { display: none; }
.slider-btn[aria-pressed="true"] .i-play { display: inline; }
.slider-progress { position: relative; height: 2px; margin-top: 32px; background: var(--line); overflow: hidden; }
.slider-progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; background: var(--accent); transition: left .5s ease; }
#referenzen .ref-head { align-items: flex-end; }
@media (prefers-reduced-motion: reduce) {
  .is-carousel .slider-track, .is-carousel .slide { transition: none; }
}

/* ---------- Leistungsabschnitte (Innenausbau) ---------- */
.services-index { padding-top: 0; }
.services-index .index { margin-bottom: 0; }
.index-note { margin: 32px 0 0; color: var(--muted); }
.service-block { padding: 100px 0; }
.service-block .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.service-block.no-gallery .wrap { grid-template-columns: minmax(0, 1fr); }
.service-block.no-gallery .service-text { max-width: 72ch; }
.service-text .title { margin-bottom: 26px; }
.service-text p { color: var(--muted); }
.service-text p:last-child { margin-bottom: 0; }
.section.service-block + .section.service-block { border-top: 0; }

/* ---------- Startseite: Privat & Gewerbe ---------- */
.audiences { padding-top: 0; }
.audiences .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.audience {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; transition: border-color .25s;
}
.audience img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.audience > div { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.audience .kicker { margin-bottom: 10px; }
.audience .title { margin-bottom: 14px; }
.audience p { color: var(--muted); }
.audience .text-link { margin-top: auto; align-self: flex-start; }
.audience:hover { border-color: var(--accent); }
.audience:hover .text-link { color: var(--text); }
.ref-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.ref-head p { color: var(--muted); margin: 0; }

/* ---------- Gewerbeflächen ---------- */
.entries-spaced { margin-top: 44px; }
.trade-links { list-style: none; margin: 36px 0 0; padding: 0; columns: 2; column-gap: 64px; }
.trade-links li { break-inside: avoid; }
.trade-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.trade-links a::after { content: " →"; color: var(--accent); }
.trade-links a:hover { color: var(--accent-text); }

/* ---------- Altbausanierung ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.trio.quad { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.trio article { border-top: 2px solid var(--accent); padding-top: 24px; }
.trio h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -.01em; }
.trio p { color: var(--muted); margin: 0; }
.services.services-detail a { align-items: start; grid-template-columns: 72px minmax(0, 1fr); padding: 22px 0; }
.trade-text { display: flex; flex-direction: column; gap: 6px; }
.services.services-detail .trade-text span { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.closing-inline { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.closing-inline > div { max-width: 68ch; }
.closing-inline .title { margin-bottom: 18px; }
.closing-inline p { color: var(--muted); margin: 0; }
.closing-inline > .text-link, .closing-inline > ul { flex: none; }

/* ---------- Bautrocknung ---------- */
.bbt-head .wrap { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: center; }
.bbt-device { margin: 0; justify-self: center; background: #fff; border-radius: 3px; padding: 24px 32px; }
.bbt-device img { max-height: 420px; width: auto; }
.benefits { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.benefits li { position: relative; padding-left: 28px; font-weight: 500; }
.benefits li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.benefits-row { grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 40px; margin: 8px 0 48px; }
.bbt-how { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
.bbt-how h3 { font-size: 1.1rem; font-weight: 600; margin: 32px 0 10px; }
.bbt-how p { color: var(--muted); }
.bbt-schema { margin: 0; text-align: center; }
.bbt-schema img { width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.bbt-schema figcaption { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.price-card { display: flex; flex-direction: column; padding: 32px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; }
.price-card h3 { font-size: 1.1rem; font-weight: 600; }
.price-card .price { margin: 14px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price-card .price strong { font-size: 2.4rem; font-weight: 300; letter-spacing: -.03em; color: var(--accent-text); }
.price-card .price span { display: block; color: var(--muted); font-size: .88rem; }
.price-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0 0 28px; font-size: .9rem; }
.price-card dt { color: var(--muted); }
.price-card dd { margin: 0; font-weight: 500; }
.price-card .btn { margin-top: auto; text-align: center; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.quotes blockquote { margin: 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--accent); }
.quotes p { font-size: 1.08rem; font-weight: 300; line-height: 1.6; }
.quotes footer { color: var(--muted); font-size: .9rem; }
.contact-note { color: var(--muted); margin: -16px 0 32px; max-width: 52ch; }
.trade-links.trade-links-compact { columns: 1; margin: 0; min-width: 280px; }

/* ---------- Über uns ---------- */
.company .wrap { display: grid; grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; }
.company .title { margin-bottom: 28px; }
.company p { color: var(--muted); max-width: 60ch; }
.figures.figures-compact { grid-template-columns: 1fr 1fr; row-gap: 44px; }
.figures.figures-compact div:nth-child(odd) { border-left: 0; padding-left: 0; }
.figures.figures-compact div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }

/* Fotoplatz: zeigt Initialen, bis das Foto unter dem angegebenen Dateinamen existiert */
.photo-slot {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 3px; background: var(--bg-2); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.photo-slot::before {
  content: attr(data-initials);
  font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 200; letter-spacing: -.03em; color: var(--accent);
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot-wide { aspect-ratio: 2 / 1; margin-top: 64px; }
.section.alt .photo-slot { background: var(--bg); }

.person .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; align-items: center; }
.person .title { margin-bottom: 26px; }
.person p { color: var(--muted); max-width: 60ch; }

.team-intro { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; }
.team-intro p { color: var(--muted); max-width: 64ch; }
.team-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 24px; }
.team-grid strong { display: block; margin-top: 16px; font-weight: 600; }
.team-grid span { color: var(--muted); font-size: .9rem; }

.closing .wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.closing-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- Terminbuchung (Microsoft Bookings) ---------- */
.booking { padding-top: 0; }
.bookings { min-height: 420px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-2); display: flex; }
.bookings-consent, .bookings-fallback { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; }
.bookings-consent > div, .bookings-fallback > div { max-width: 56ch; }
.bookings strong { display: block; font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.bookings p { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.bookings p a { color: var(--accent-text); }
.bookings-fallback { display: none; }
.bookings.bookings-off .bookings-consent { display: none; }
.bookings.bookings-off .bookings-fallback { display: flex; }
.bookings.bookings-live { background: #fff; }   /* Microsoft Bookings hat keinen Dark Mode */
.bookings iframe { width: 100%; height: 1050px; border: 0; display: block; }
.bookings-direct { display: inline-block; margin-top: 16px; }
.booking-alt { margin-top: 28px; color: var(--muted); font-size: .95rem; }
.booking-alt a { color: var(--accent-text); }

/* ---------- Rechtliches ---------- */
.legal .wrap { max-width: 860px; }
.legal h2 { font-size: 1.6rem; font-weight: 300; letter-spacing: -.02em; margin: 64px 0 20px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.02rem; font-weight: 600; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; line-height: 1.85; padding-left: 20px; border-left: 2px solid var(--accent); }
.legal address a { color: var(--accent-text); }

/* ---------- Cookie-Banner ---------- */
/* „Ablehnen“ und „Akzeptieren“ sind absichtlich gleich gestaltet – keine Option wird hervorgehoben. */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--bg-2); color: var(--text);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .35);
  padding: 26px 0;
  max-height: 85vh; overflow-y: auto;
  animation: consent-in .5s cubic-bezier(.2, .7, .2, 1);
}
.consent-banner[hidden] { display: none; }
@keyframes consent-in { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .consent-banner { animation: none; } }
.consent-banner .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.consent-banner h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.consent-banner p { font-size: .9rem; color: var(--muted); max-width: 80ch; margin: 0; }
.consent-banner p a { color: var(--accent-text); }
.consent-options { display: grid; gap: 10px; margin-top: 18px; }
.consent-options[hidden] { display: none; }
.consent-options label { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent-options strong { color: var(--text); font-weight: 600; }
.consent-options input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.consent-btn {
  font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.3;
  padding: 13px 20px; border-radius: 3px; cursor: pointer;
  background: var(--accent); color: var(--ink); border: 1px solid var(--accent);
  transition: background-color .2s;
}
.consent-btn:hover { background: var(--accent-text); border-color: var(--accent-text); }
.consent-btn[data-action="settings"] { background: transparent; color: var(--text); border-color: var(--line); }
.consent-btn[data-action="settings"]:hover { border-color: var(--accent); }
.consent-btn[hidden] { display: none; }
@media (max-width: 760px) {
  .consent-banner { padding: 20px 0; }
  .consent-banner .wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent-btn { padding: 13px 12px; }
  .consent-btn[data-action="settings"], .consent-btn[data-action="save"] { grid-column: 1 / -1; order: 3; }
}

/* ---------- Fuß ---------- */
footer.site { border-top: 1px solid var(--line); padding: 72px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 18px; }
footer p { color: var(--muted); }
footer h4 { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
footer ul a { text-decoration: none; }
footer ul a:hover { color: var(--accent-text); }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .figures { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .figures div:nth-child(4) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
/* Menü-Symbol statt Navigationsleiste auf Tablet und Handy */
@media (max-width: 940px) {
  .menu-toggle { display: grid; }
  nav.main {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--header);   /* direkt unter der Kopfzeile */
    border-bottom: 1px solid var(--line); padding: 8px 32px 24px;
    display: none;
  }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.main a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  nav.main a, nav.main a:hover { background: none; }
  nav.main a.nav-cta { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; color: var(--accent-text); }
  nav.main a.nav-cta:hover, nav.main a.nav-cta[aria-current="page"] { background: none; color: var(--accent-text); }
  nav.main a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  /* „Leistungen“ im Handymenü als aufklappbare Gruppe */
  .sub-toggle { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); background: none; }
  .sub-toggle.is-current { background: none; box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .has-sub::after { content: none; }
  nav.main .sub {
    position: static; display: none; min-width: 0; padding: 0 0 0 18px;
    background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .has-sub.open .sub { display: block; }
  nav.main .sub a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  nav.main .sub a:hover { background: none; }
  nav.main .sub a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
}
@media (max-width: 940px) {
  .section { padding: 84px 0; }
  .bookings iframe { height: 1250px; }
  .hero .wrap, .about .wrap, .feature .wrap, .planning .wrap, .intro .wrap:first-child, .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .company .wrap, .person .wrap, .team-intro { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ref-slider { --slider-h: 380px; }
  .trio, .trio.quad { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .closing-inline { flex-direction: column; align-items: flex-start; gap: 28px; }
  .bbt-head .wrap, .bbt-how { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bbt-device { justify-self: start; }
  .bbt-device img { max-height: 300px; }
  .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .benefits-row { grid-template-columns: repeat(2, auto); }
  .service-block { padding: 72px 0; }
  .service-block .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .audiences .wrap { grid-template-columns: minmax(0, 1fr); }
  .lightbox { padding: 64px 12px 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .lightbox img { max-height: calc(100vh - 210px); }
  .person .photo-slot { max-width: 420px; }
  .photo-slot-wide { aspect-ratio: 3 / 2; margin-top: 48px; }
  .hero figure img { aspect-ratio: 4 / 3; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 36px 0; }
  .index ul { columns: 2; }
  .map-consent .wrap { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ---------- Telefon ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .display { font-size: clamp(1.8rem, 8.2vw, 2.5rem); }
  .title { font-size: clamp(1.5rem, 7.2vw, 1.9rem); }
  .wrap { padding: 0 16px; }
  nav.main { padding: 8px 16px 20px; }
  .topbar .wrap { justify-content: space-between; }
  .logo img { height: 36px; }
  .hero { padding: 48px 0 84px; }
  .page-head { padding: 52px 0 44px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .services a { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; }
  .services strong { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
  .services img { width: 50px; height: 50px; }
  .services strong { font-size: 1rem; }
  .mosaic { grid-template-rows: 150px 130px 120px; gap: 8px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div, .figures div:nth-child(4) { border-left: 1px solid var(--line); padding-left: 18px; }
  .figures div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .planning .pair img:last-child { margin-top: 36px; }
  .index ul { columns: 1; }
  .gallery-row { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .gallery-row img { height: 170px; }
  .gallery-row img:first-child { grid-column: 1 / -1; height: 230px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .btn { display: block; text-align: center; }
  .map { height: 340px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .gallery { grid-auto-rows: 150px; gap: 8px; }
  .ref-slider { --slider-h: 300px; }
  .slide .gallery-item img { max-width: calc(100vw - 80px); object-fit: cover; }   /* breite Querformate begrenzen, Nachbarbilder bleiben sichtbar */
  .ref-slider.is-carousel::before, .ref-slider.is-carousel::after { width: 24px; }
  .slider-track { gap: 12px; }
  .slider-count { display: none; }
  #referenzen .ref-head { align-items: flex-start; }
  .trio, .trio.quad { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .benefits-row { grid-template-columns: minmax(0, 1fr); }
  .services.services-detail a { grid-template-columns: 52px minmax(0, 1fr); }
  .trade-links.trade-links-compact { min-width: 0; }
  .gallery.gallery-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .gallery.gallery-inline { grid-auto-rows: 130px; }
  .trade-links { columns: 1; }
  .audience > div { padding: 24px 20px 28px; }
  footer h4 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
}
