/* Keros Fliesen & Bau — gemeinsames Stylesheet (Palette 5: Aufbau 1, Palette/Schrift 2 ohne Ocker) */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/instrument-sans-latin.woff2) format('woff2'); }

:root {
  --ease-out: cubic-bezier(.23,1,.32,1); --ease-in-out: cubic-bezier(.77,0,.175,1);
  --bg: #F5F5F4; --white: #FFFFFF; --surface: #EEECE8; --surface-dark: #2B2D30; --surface-darker: #232528;
  --text: #24262A; --text-muted: #5C5F63; --accent: #2B2D30; --accent-hover: #44474B; --on-accent: #FFFFFF;
  --on-dark: #FFFFFF; --on-dark-muted: #C9C7C2; --line: #DEDCD7; --line-dark: #45484C;
  --t1: #6B6D6D; --t2: #A3A5A5;
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 2px; --radius-btn: 8px; --header-h: 68px; --container: 1200px; --gutter: 24px; --grout: 6px;
  --shadow: 0 1px 2px rgba(36,38,42,.06), 0 10px 26px rgba(36,38,42,.10);
  --shadow-lift: 0 2px 4px rgba(36,38,42,.08), 0 18px 38px rgba(36,38,42,.16);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overscroll-behavior-x: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* body = Headerfarbe (elastisches Überscrollen, halbtransparenter Header); jede Sektion setzt ihren Grund selbst */
body { margin: 0; background: var(--white); color: var(--text); font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
main { background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--white); color: var(--text); padding: 10px 16px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--t2); outline-offset: 3px; }
.muted { color: var(--text-muted); }
.on-dark .muted { color: var(--on-dark-muted); }

/* ---------- Eyebrow mit Fliesenmarke (Signature „Fugenbild“) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 600 13px/1.3 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.eyebrow::before { content: ""; width: 15px; height: 15px; flex: none; background: conic-gradient(var(--t2) 0 25%, var(--t1) 0 50%, var(--t2) 0 75%, var(--t1) 0); }
.on-dark .eyebrow { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius-btn); border: 2px solid transparent; font: 600 17px/1 var(--font); letter-spacing: .005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(.97); }
/* Primär: leichter Verlauf, Lichtkante oben, weicher Schatten; beim Hover anheben */
.btn-primary { background: linear-gradient(180deg, #3A3D41 0%, var(--accent) 100%); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(20,21,22,.18), 0 6px 16px rgba(43,45,48,.22); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: linear-gradient(180deg, #4A4D52 0%, var(--accent-hover) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 4px rgba(20,21,22,.18), 0 12px 26px rgba(43,45,48,.28); } }
.btn-ghost { border-color: var(--text); color: var(--text); background: transparent; }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--text); color: var(--white); box-shadow: 0 10px 22px rgba(43,45,48,.18); } }
.on-dark .btn-primary { background: linear-gradient(180deg, #FFFFFF 0%, #EEECE8 100%); color: var(--accent); box-shadow: inset 0 -1px 0 rgba(43,45,48,.08), 0 1px 2px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.30); }
@media (hover: hover) and (pointer: fine) { .on-dark .btn-primary:hover { background: linear-gradient(180deg, #FFFFFF 0%, #F5F4F1 100%); box-shadow: inset 0 -1px 0 rgba(43,45,48,.08), 0 2px 4px rgba(0,0,0,.25), 0 14px 30px rgba(0,0,0,.38); } }
.on-dark .kontakt-form .btn-primary { background: linear-gradient(180deg, #3A3D41 0%, var(--accent) 100%); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(20,21,22,.18), 0 6px 16px rgba(43,45,48,.22); }
@media (hover: hover) and (pointer: fine) { .on-dark .kontakt-form .btn-primary:hover { background: linear-gradient(180deg, #4A4D52 0%, var(--accent-hover) 100%); } }
.on-dark .btn-ghost { border-color: rgba(255,255,255,.7); color: var(--on-dark); background: rgba(255,255,255,.04); }
@media (hover: hover) and (pointer: fine) { .on-dark .btn-ghost:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--accent); box-shadow: 0 12px 26px rgba(0,0,0,.3); } }
@media (prefers-reduced-motion: reduce) { .btn, .btn svg { transition: none; } .btn:hover, .btn:hover svg:last-child { transform: none; } }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
/* Header-Button bewusst flach: Vollfläche ohne Verlauf/Schatten, nur Farbwechsel beim Hover */
.site-header .btn-primary { background: var(--accent); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .site-header .btn-primary:hover { background: var(--accent-hover); transform: none; box-shadow: none; } }
.btn-block { width: 100%; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.more-link { text-align: center; margin-top: 44px; }
.tlink { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--t2); }

/* ---------- Header: hell, ohne Linie; beim Scrollen halbtransparent + Schatten ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); color: var(--text); transition: background-color .25s, box-shadow .25s; }
.site-header.is-floating { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(43,45,48,.06), 0 6px 16px rgba(43,45,48,.10); } /* testweise */
@media (hover: hover) and (pointer: fine) {
  .site-header.is-floating { background: rgba(255,255,255,.96); } /* testweise ohne Weichzeichner (Verdacht Ruckler beim Scrollen am Desktop) */
}
.site-header.menu-open { background: var(--white); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }
#primary-nav { display: flex; align-items: center; gap: 30px; }
#primary-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; padding: 8px 0; }
#primary-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--t2); }
@media (hover: hover) and (pointer: fine) { #primary-nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--t2); } }
.nav-group { position: relative; }
.nav-sub { display: none; }
.header-tools { display: none; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-btn); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 200ms var(--ease-in-out), opacity 150ms ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-toggle span { transition: none; } }
@media (min-width: 1025px) {
  .nav-group::after { content: ""; position: absolute; left: -18px; right: -18px; top: 100%; height: 12px; }
  .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: grid; }
  .nav-sub { position: absolute; top: calc(100% + 12px); left: -18px; min-width: 220px; padding: 10px 0; background: var(--white); box-shadow: 0 16px 30px rgba(43,45,48,.18); }
  #primary-nav .nav-sub a:not(.btn) { padding: 10px 18px; font-weight: 500; font-size: 16px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 58px; }
  .brand img { height: 42px; }
  .header-tools { display: flex; }
  #primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 26px; background: var(--white); box-shadow: 0 18px 30px rgba(43,45,48,.2); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  #primary-nav.is-open { display: flex; }
  #primary-nav a:not(.btn) { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-sub { display: grid; padding-left: 18px; }
  #primary-nav .nav-sub a:not(.btn) { font-weight: 500; font-size: 16px; padding: 11px 0; }
  #primary-nav .btn { margin-top: 26px; width: 100%; }
}

/* ---------- Sektionen ---------- */
.section { padding: 96px 0; background: var(--bg); }
.section.alt { background: var(--surface); }
.section.on-dark { background: var(--surface-dark); color: var(--on-dark); }
.section-head { margin: 0 0 44px; max-width: 760px; }
.section-head h2, .split-text h2, .band h2 { font-size: clamp(30px, 3.4vw, 42px); }
.section-head .lead-text { margin-top: 14px; color: var(--text-muted); font-size: 19px; }
.on-dark .section-head .lead-text { color: var(--on-dark-muted); }
@media (max-width: 700px) { .section { padding: 68px 0; } .section-head { margin-bottom: 32px; } .more-link { margin-top: 32px; } }

/* ---------- Bildkacheln: Schatten, beim Hover abdunkeln ---------- */
.ph { overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero: Desktop Text links + ein Foto über die volle Höhe, Mobil Foto oben, Text auf Dunkel ---------- */
.hero { position: relative; background: var(--surface); color: var(--on-dark); overflow: hidden; } /* Ränder = Grund der Folgesektion (Ausstellung, .alt) */
/* Dunkle Fläche nur über die Inhaltsbreite (Text + Bild), links/rechts Grund der Folgesektion */
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc((100% - min(100%, var(--container))) / 2 + var(--gutter)); right: calc((100% - min(100%, var(--container))) / 2 + var(--gutter)); background: var(--surface-dark); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 48px; min-height: min(780px, calc(100vh - var(--header-h))); }
.hero-text { position: relative; z-index: 1; grid-column: 1; padding: 80px 0 88px 52px; display: flex; flex-direction: column; justify-content: center; }
/* Foto endet am rechten Inhaltsrand, beginnt unter der Textspalte (ca. 62 % der Inhaltsbreite) und blendet links weich aus */
.hero-photo { position: absolute; top: 0; bottom: 0; right: calc((100% - min(100%, var(--container))) / 2 + var(--gutter)); width: calc((min(100%, var(--container)) - 2 * var(--gutter)) * .56); }
.hero-photo::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(43,45,48,1) 0%, rgba(43,45,48,.97) 8%, rgba(43,45,48,.9) 15%, rgba(43,45,48,.76) 22%, rgba(43,45,48,.57) 29%, rgba(43,45,48,.37) 36%, rgba(43,45,48,.2) 43%, rgba(43,45,48,.08) 50%, rgba(43,45,48,0) 57%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 62%; } /* Fokus auf Wanne + Armatur: Fläche schwankt je nach Bildschirm zwischen 0,8 und 1,3 (B:H) */
.hero .ctas .btn { padding: 0 22px; }
/* Header-Button im Stil der Hersteller-Karten (Verlauf, feiner Rand, 12px, weicher Schatten) */
.site-header .btn-primary { background: linear-gradient(180deg, #34373B 0%, var(--surface-darker) 100%); color: var(--on-dark); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.22); }
@media (hover: hover) and (pointer: fine) { .site-header .btn-primary:hover { background: linear-gradient(180deg, #3A3D42 0%, #26282B 100%); color: var(--on-dark); border-color: rgba(255,255,255,.32); box-shadow: 0 14px 30px rgba(0,0,0,.28); transform: none; } }
/* Hero-Buttons mit der Karten-Logik (Verlauf, feiner Rand, 12px, weicher Schatten), Farben weiß / transparent-hell */
.hero .btn-primary { background: linear-gradient(180deg, #FFFFFF 0%, #E8E6E1 100%); color: var(--accent); border: 1px solid rgba(255,255,255,.85); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.22); }
@media (hover: hover) and (pointer: fine) { .hero .btn-primary:hover { background: linear-gradient(180deg, #FFFFFF 0%, #F1EFEB 100%); color: var(--accent); border-color: #FFFFFF; box-shadow: 0 14px 30px rgba(0,0,0,.28); } }
.hero .btn-ghost { background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 100%); color: var(--on-dark); border: 1px solid rgba(255,255,255,.55); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.22); }
@media (hover: hover) and (pointer: fine) { .hero .btn-ghost:hover { background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.06) 100%); color: var(--on-dark); border-color: rgba(255,255,255,.85); box-shadow: 0 14px 30px rgba(0,0,0,.28); } }
.hero h1 { font-size: clamp(38px, 4.9vw, 62px); line-height: 1.04; letter-spacing: -.025em; }
.hero .eyebrow { color: var(--on-dark-muted); }
.hero .lead { margin: 22px 0 30px; font-size: 20px; color: #E4E2DD; }

.hero-trust { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 16px; color: var(--on-dark-muted); }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust b { color: var(--on-dark); font-weight: 600; }
.hero-trust .star { width: 16px; height: 16px; color: var(--on-dark); }
@media (max-width: 900px) {
  .hero { background: var(--surface-dark); }
  .hero::before { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-photo { right: 0; left: 0; width: auto; bottom: auto; height: 64vh; }
  .hero-photo::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(43,45,48,0) 55%, rgba(43,45,48,.75) 82%, var(--surface-dark) 100%); }
  .hero-photo img { object-position: 52% 56%; } /* Handy-Fassung: Wanne mittig */
  .hero-text { position: relative; padding: 54vh 0 56px; }
}

/* ---------- Unterseiten-Kopf ---------- */
.page-head { background: var(--bg); padding: 72px 0 80px; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.page-head--media .page-head-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.page-head h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.025em; max-width: 16em; }
.page-head .lead { margin-top: 20px; font-size: 20px; color: var(--text-muted); max-width: 40em; }
.page-head-media { aspect-ratio: 4 / 3; overflow: hidden; box-shadow: var(--shadow); }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .page-head { padding: 48px 0 56px; } .page-head--media .page-head-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- Split (Text + Bild) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split-text p + p, .split-text h2 + p { margin-top: 14px; }
.split-text > .btn, .split-text > .ctas { margin-top: 28px; }
.ph-portrait { aspect-ratio: 4 / 4.2; }
.ph-portrait img { object-position: 50% 30%; }
.ph-wide { aspect-ratio: 4 / 3; }
.ph-169 { aspect-ratio: 16 / 9; }
.ph-34 { aspect-ratio: 3 / 4; }
.media-fig { margin: 0; }
.media-fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--text-muted); }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 13px; height: 13px; background: conic-gradient(var(--t2) 0 25%, var(--t1) 0 50%, var(--t2) 0 75%, var(--t1) 0); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } .split--reverse .split-media { order: -1; } }

/* ---------- Ausstellungs-Teaser ---------- */
.tile-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: var(--grout); aspect-ratio: 1 / .92; }
.tile-pair .ph:first-child { grid-row: span 2; }
.hours { margin-top: 26px; padding: 18px 20px; background: var(--white); box-shadow: var(--shadow); font-size: 16px; display: grid; gap: 4px; max-width: 460px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours span:first-child { font-weight: 600; }
.on-dark .hours { background: var(--surface-darker); box-shadow: none; color: var(--on-dark-muted); }
.on-dark .hours span:first-child { color: var(--on-dark); }

/* ---------- Karten (Leistungen) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; min-height: 0; }
/* Bild absolut im Rahmen: sonst setzt mobil (Flex-Spalte) die Bildhöhe das 4:3-Format außer Kraft, Hochformate werden höher */
.card-media img, .card-media .slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 22px; }
.card-body p { color: var(--text-muted); font-size: 17px; flex: 1; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Chips + Fugenbild-Mosaik ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-btn); font-weight: 600; font-size: 16px; text-decoration: none; color: var(--text); transition: background-color .2s, color .2s, border-color .2s; }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }
/* Schatten je Bild statt am Rahmen: sonst wirken die Lücken heller als die Sektionsfarbe (unverschattete Innenfläche) */
.mosaic { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 260px 260px; gap: var(--grout); }
.mosaic .m-big { grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 300px 180px 180px; }
  .mosaic .m-big { grid-column: span 2; grid-row: auto; }
}

/* ---------- Bewertungen ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review { margin: 0; padding: 30px 28px; background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; font-size: 17px; flex: 1; }
.review figcaption { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.stars { display: inline-flex; gap: 3px; color: var(--text); }
.stars .star { width: 18px; height: 18px; }
@media (max-width: 900px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hersteller ---------- */
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.maker { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 24px 26px; background: linear-gradient(180deg, #34373B 0%, var(--surface-darker) 100%); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; color: var(--on-dark); box-shadow: 0 12px 28px rgba(0,0,0,.22); transition: border-color .25s; }
@media (hover: hover) and (pointer: fine) { .maker:hover { border-color: rgba(255,255,255,.22); } }
.maker-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); padding: 5px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.maker-logo { height: 74px; display: flex; align-items: center; }
.maker-logo svg { width: 100%; max-width: 180px; max-height: 64px; height: auto; }
.maker p { font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); }
@media (max-width: 1100px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } .maker:last-child { grid-column: span 2; } }
@media (max-width: 760px) { .brands { gap: 12px; } .maker { padding: 20px 18px; } }
@media (max-width: 460px) { .brands { grid-template-columns: minmax(0, 1fr); } .maker:last-child { grid-column: auto; } }

/* ---------- Fliesenlexikon (Akkordeon) ---------- */
.lexikon-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.lexikon-grid .section-head { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq { background: var(--white); box-shadow: var(--shadow); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; cursor: pointer; font-weight: 600; font-size: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { background: var(--bg); } }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--text); transition: transform 200ms var(--ease-in-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-body { padding: 0 26px 24px; color: var(--text-muted); font-size: 17px; overflow-x: auto; }
.faq-body p + p, .faq-body p + table, .faq-body table + p, .faq-body p + ul { margin-top: 12px; }
.faq-body ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.faq-body b { color: var(--text); }
.faq-body table { border-collapse: collapse; width: 100%; font-size: 16px; }
.faq-body th, .faq-body td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.faq-body th { color: var(--text); }
@media (max-width: 900px) { .lexikon-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .lexikon-grid .section-head { position: static; margin-bottom: 32px; } .faq-item summary { padding: 18px 20px; font-size: 17px; } .faq-body { padding: 0 20px 20px; } }

/* ---------- Kontakt ---------- */
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.kontakt-form { display: flex; flex-direction: column; gap: 18px; background: var(--white); color: var(--text); padding: 34px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 16px; }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; width: 100%; min-width: 0; min-height: 50px; padding: 11px 14px; border: 1px solid #C9C7C2; border-radius: var(--radius); background: var(--white); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--t2); outline-offset: 1px; border-color: var(--text); }
.field-message { flex: 1; }
.field-message textarea { flex: 1; min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15px; color: var(--text-muted); }
.form-feedback { font-weight: 600; }
.form-feedback:empty { display: none; }
.form-feedback[data-state="err"] { color: #A3261E; }
.kontakt-cards { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile { display: block; background: var(--surface-darker); color: var(--on-dark); padding: 16px 20px; text-decoration: none; border: 1px solid var(--line-dark); transition: border-color 200ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.tile:hover { border-color: var(--t2); } }
.tile .label { display: block; font-size: 14px; color: var(--on-dark-muted); }
.tile .value { display: block; font-weight: 600; font-size: 19px; overflow-wrap: anywhere; }
.tile--hours .h-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.tile--hours .h-row span:first-child { font-weight: 600; }
.tile--hours .label { margin-bottom: 4px; }
.maps-link { flex: 1; min-height: 170px; position: relative; display: block; background-size: cover; background-position: center; border: 1px solid var(--line-dark); }
.maps-link--tall { min-height: 420px; box-shadow: var(--shadow); }
@media (hover: hover) and (pointer: fine) { .maps-link:hover { filter: brightness(1.04); } }
.maps-pill { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-btn); background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; }
.maps-pill svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .kontakt-form { padding: 24px 18px; } .field-row { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { a.tile:hover, .review:hover { transform: none; } }

/* ---------- Leistungen-Seite ---------- */
.chips--jump { margin-bottom: 56px; }
.services { display: grid; gap: 80px; }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.service .ph { aspect-ratio: 4 / 3; }
.service--rev .service-media { order: 2; }
.service-text h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 16px; }
.service-text p + p { margin-top: 12px; }
@media (max-width: 900px) { .services { gap: 56px; } .service { grid-template-columns: minmax(0, 1fr); gap: 24px; } .service--rev .service-media { order: 0; } }
.projekte { display: grid; gap: 56px; }
.projekt-head { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: 32px; align-items: baseline; margin-bottom: 22px; }
.projekt-head h3 { font-size: 26px; }
@media (max-width: 760px) { .projekt-head { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.band { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.band p { margin-top: 12px; max-width: 40em; }
/* Buttons im Band untereinander und gleich breit (so breit wie der breiteste) */
.band .ctas { display: grid; grid-template-columns: minmax(0, 1fr); flex: none; }
.band .ctas .btn { justify-content: center; }
@media (max-width: 900px) { .band { flex-direction: column; align-items: flex-start; } }

/* ---------- Galerie + Lightbox ---------- */
.gallery-page { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grout); }
.gallery-page--5, .projekt .gallery-page { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-page button { position: relative; padding: 0; border: 0; background: var(--surface); aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); }
.projekt .gallery-page button, .gallery-page--5 button { aspect-ratio: 4 / 5; }
/* 3er-Raster (Ausstellung, 9 Bilder): größere Bilder, mobil erstes Bild breit (volle Reihen) */
.gallery-page--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-page button img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-page button:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
@media (max-width: 900px) { .gallery-page--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .gallery-page, .gallery-page--5, .projekt .gallery-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projekt .gallery-page button:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }  /* Referenzen Bad (--5): erstes Bild normal breit, Galerie darf asymmetrisch enden */
  .gallery-page--3 { grid-template-columns: minmax(0, 1fr); }                                 /* Ausstellung: ein Bild pro Zeile */
}
dialog.lightbox { border: none; padding: 0; margin: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog.lightbox::backdrop { background: rgba(10,10,12,.97); }
.lb-stage { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; padding: 60px 20px; background: rgba(10,10,12,.97); }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; opacity: 0; transition: opacity .18s; }
.lb-img.is-visible { opacity: 1; }
.lb-counter { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); color: #cfd3da; font-size: 13px; letter-spacing: .05em; }
.lb-close, .lb-btn { position: fixed; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .lb-close:hover, .lb-btn:hover { background: rgba(255,255,255,.22); } }
.lb-close { top: 14px; right: 16px; width: 44px; height: 44px; }
.lb-btn { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-close svg, .lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
@media (max-width: 560px) { .lb-btn { width: 40px; height: 40px; } .lb-stage { padding: 64px 8px; } }
@media (prefers-reduced-motion: reduce) { .lb-img { transition: none; } }

/* ---------- Inspiration ---------- */
.subnav { background: var(--bg); padding: 0 0 8px; position: sticky; top: var(--header-h); z-index: 50; }
.subnav .chips { margin: 0 auto; padding-top: 4px; padding-bottom: 10px; }
@media (max-width: 560px) { .subnav { position: static; } .subnav .chips { gap: 8px; } .subnav .chip { min-height: 40px; padding: 0 14px; font-size: 15px; } }
.insp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.insp-tile { position: relative; display: block; text-decoration: none; color: var(--on-dark); box-shadow: var(--shadow); transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.insp-tile .ph { position: relative; aspect-ratio: 16 / 10; box-shadow: none; }
.insp-tile .ph::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(27,29,31,0) 50%, rgba(27,29,31,.75) 100%); }
.insp-label { position: absolute; left: 24px; bottom: 20px; right: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.insp-count { font-size: 15px; font-weight: 500; color: #E4E2DD; }
@media (max-width: 700px) { .insp-tiles { grid-template-columns: minmax(0, 1fr); } .insp-label { font-size: 22px; } }

/* ---------- Footer & Modal ---------- */
.site-footer { background: var(--surface-darker); color: var(--on-dark-muted); font-size: 15px; padding: 26px 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; } }
dialog.modal { width: min(760px, 92vw); max-height: 85vh; padding: 0; border: none; border-radius: var(--radius); color: var(--text); }
dialog.modal::backdrop { background: rgba(0,0,0,.6); }
.modal-body { max-height: 85vh; overflow-y: auto; padding: 40px 36px; font-size: 16px; }
.modal-body h1 { font-size: 28px; padding-right: 48px; margin-bottom: 18px; }
.modal-body h2 { font-size: 19px; margin: 24px 0 8px; }
.modal-body p { margin: 0 0 12px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--white); color: var(--text); border-radius: var(--radius); cursor: pointer; }
.modal-close svg { width: 20px; height: 20px; }
.legal-page { min-height: calc(100vh - var(--header-h) - 80px); }
.legal-doc { max-width: 760px; }
.legal-doc h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 24px; }
.legal-doc h2 { font-size: 21px; margin: 30px 0 8px; }

/* ---------- Platzhalter für Fotos, die noch kommen ---------- */
.slot { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; background-color: #E4E2DD; background-image: linear-gradient(rgba(255,255,255,.55) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.55) 2px, transparent 2px); background-size: 48px 48px; box-shadow: var(--shadow); }
.slot-label { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; background: rgba(255,255,255,.88); font-size: 14px; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.slot-label small { font-size: 12px; font-weight: 500; }
/* Platzhalterbild (transparent) füllt den Rahmen, Etikett darüber ist nicht klickbar: Klick/Drop trifft das Bild */
.slot { position: relative; }
.slot > .slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-label { position: relative; z-index: 1; pointer-events: none; }
.service-media > .slot, .split-media > .slot { aspect-ratio: 4 / 3; }

/* ---------- Team (Muster Elektro Lenders: Porträtreihe + freier Platz) ---------- */
.lineup { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); list-style: none; }
.lineup li { min-width: 0; }
/* Kante an Kante, ohne Schatten je Bild; 9 Personen: Desktop eine Reihe, mobil 3 × 3 */
.lineup .ph { aspect-ratio: 3 / 4; height: auto; box-shadow: none; }
@media (max-width: 640px) {
  .lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
}

/* ---------- Bäder / Innenausbau ---------- */
.service-text > .btn { margin-top: 24px; }
.split--top { align-items: start; }
@media (min-width: 901px) { .split--stretch { align-items: stretch; } }
/* Inhaber-Porträt (Sonderlösung, ohne media-Klasse): nebeneinander nie senkrecht zentriert */
@media (min-width: 901px) { .split--fit { align-items: start; } }
/* Bild genau so hoch wie der Text ab Oberkante h2 (Eyebrow-Höhe abgezogen), Format bleibt 3:4 */
@media (min-width: 1000px) {
  .split--fit { align-items: stretch; }
  .split--fit .split-media { contain: size; display: flex; justify-content: flex-end; padding-top: 37px; }
  .split--fit .split-media .ph { height: 100%; width: auto; aspect-ratio: 3 / 4; }
  /* Bildunterschrift hängt unter dem Bild, zählt nicht zur Bündigkeit mit dem Text */
  .split--fit .media-fig { height: 100%; position: relative; }
  .split--fit .media-fig figcaption { position: absolute; top: 100%; left: 0; right: 0; }
}
.wege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.weg { background: var(--white); box-shadow: var(--shadow); padding: 34px 32px 36px; scroll-margin-top: calc(var(--header-h) + 24px); }
.weg-tag, .mappe-no { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px; }
.weg h3 { font-size: 26px; margin-bottom: 12px; }
@media (max-width: 800px) { .wege { grid-template-columns: minmax(0, 1fr); } .weg { padding: 26px 22px 28px; } }

.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grout); box-shadow: var(--shadow); }
.partner { background: var(--white); padding: 26px 24px 28px; }
.partner h3 { font-size: 20px; margin-bottom: 8px; }
.partner p { font-size: 16px; color: var(--text-muted); }
.partner:last-child { background: var(--surface); }
@media (max-width: 560px) { .partners { grid-template-columns: minmax(0, 1fr); } }

/* Ablauf: vertikale Zeitleiste, Nummern über eine Linie verbunden */
/* gleiche Zeilenhöhe für alle Schritte -> gleichmäßige Abstände der Kreise; Marke fest unter dem Titel */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 940px; display: grid; grid-auto-rows: 1fr; }
.tl { position: relative; display: grid; grid-template-columns: 48px minmax(0, 250px) minmax(0, 1fr); gap: 0 28px; align-items: start; padding-bottom: 32px; }
.tl::before { content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl:first-child::before { top: 24px; }
.tl:last-child { padding-bottom: 0; }
.tl:last-child::before { bottom: auto; height: 24px; }
.tl-no { position: relative; z-index: 1; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--white); border: 2px solid var(--accent); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.tl-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 11px; }
.tl h3 { font-size: 19px; line-height: 1.25; }
.tl p { font-size: 16px; padding-top: 11px; }
@media (max-width: 800px) {
  .tl { grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; padding-bottom: 28px; }
  .tl p { grid-column: 2; padding-top: 10px; }
}
.step-who { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent); white-space: nowrap; }
.step-who--k, .step-who--kp { background: var(--accent); color: var(--on-accent); }
.step-who--p { background: var(--white); color: var(--text); }
@media (max-width: 800px) {
  .tl { grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; }
  .tl h3, .tl p, .tl .step-who { grid-column: 2; }
  .tl p { padding-top: 6px; }
  .tl .step-who { justify-self: start; margin-top: 10px; }
}

/* Beispielprojekte Innenausbau: je Projekt eine Mappe (Daten + Fotos in einer Karte) */
.mappen { display: grid; gap: 40px; }
.mappe { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 36px; background: var(--white); box-shadow: var(--shadow); padding: 28px; }
.mappe-head h3 { font-size: 26px; margin-bottom: 18px; }
.mappe-facts { margin: 0 0 18px; display: grid; gap: 0; font-size: 16px; }
.mappe-facts div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.mappe-facts dt { color: var(--text-muted); }
.mappe-facts dd { margin: 0; font-weight: 600; }
.mappe-head > .muted { font-size: 16px; }
/* chronologisch: links Bestand und Bauphasen, rechts groß das Ergebnis */
.mappe-grid { display: grid; gap: var(--grout); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: 210px 210px; }
.mappe-grid > :last-child { grid-column: 3; grid-row: 1 / span 2; }
.mappe-grid--4 > :nth-child(3) { grid-column: 1 / span 2; }
.mappe-grid--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
/* 6 Bilder: links 3 oben + 2 unten (chronologisch), Ergebnis groß rechts */
.mappe-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 6fr); }
.mappe-grid--6 > :nth-child(-n+3) { grid-column: span 2; }
.mappe-grid--6 > :nth-child(4), .mappe-grid--6 > :nth-child(5) { grid-column: span 3; }
.mappe-grid--6 > :last-child { grid-column: 7; }
.mappe-grid--3 > :last-child { grid-column: 2; }
.mappe-grid--raster { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: column; }
.mappe-grid--raster > :last-child { grid-column: auto; grid-row: auto; }
.mappe-grid .slot { box-shadow: none; }
.mappe-grid button { position: relative; padding: 0; border: 0; background: var(--surface); overflow: hidden; cursor: zoom-in; }
.mappe-grid button img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .mappe { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px; } }
@media (max-width: 560px) {
  .mappe { padding: 18px 16px; }
  .mappe-grid, .mappe-grid--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 120px; }
  .mappe-grid > :last-child, .mappe-grid--3 > :last-child { grid-row: auto; grid-column: 1 / span 2; grid-row-end: span 2; }
  .mappe-grid--4 > :nth-child(3) { grid-column: 1 / span 2; }
  .mappe-grid--3 > :first-child { grid-column: auto; }
  .mappe-grid .slot-label small { display: none; }
  .mappe-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mappe-grid--6 > :last-child { grid-column: 1 / -1; }
  .mappe-grid--raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-rows: 150px; }
  .mappe-grid--raster > :last-child { grid-column: auto; grid-row: auto; }
}

.footer-insta { display: inline-flex; align-items: center; gap: 8px; }
.footer-insta svg { width: 18px; height: 18px; }

/* ---------- Bewegung (Review emil-design-eng, 2026-10-20) ---------- */
.btn:active { transform: scale(.97); }
/* Modal und Lightbox: kurzer Einstieg statt hartem Erscheinen (zentriert, kein Auslöser als Ursprung) */
dialog.modal, dialog.lightbox { opacity: 1; transform: scale(1); transition: opacity 200ms ease, transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete; }
dialog.modal:not([open]), dialog.lightbox:not([open]) { opacity: 0; transform: scale(.97); }
dialog.modal::backdrop, dialog.lightbox::backdrop { transition: opacity 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete; }
dialog.modal:not([open])::backdrop, dialog.lightbox:not([open])::backdrop { opacity: 0; }
@starting-style {
  dialog.modal[open], dialog.lightbox[open] { opacity: 0; transform: scale(.97); }
  dialog.modal[open]::backdrop, dialog.lightbox[open]::backdrop { opacity: 0; }
}
/* Akkordeon: Inhalt blendet ein statt zu springen (keine Höhenanimation) */
.faq-item::details-content { opacity: 0; transition: opacity 200ms ease, content-visibility 200ms allow-discrete; }
.faq-item[open]::details-content { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .hero .btn-primary:active, .hero .btn-ghost:active { transform: none; }
  .insp-tile, .insp-tile:hover { transition: none; transform: none; }
  .faq-icon::before, .faq-icon::after { transition: none; }
  dialog.modal, dialog.lightbox { transform: none; transition: opacity 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete; }
  @starting-style { dialog.modal[open], dialog.lightbox[open] { transform: none; } }
}

/* ---------- Bewegung (find-animation-opportunities, 2026-10-20) ---------- */
/* 1. Mobiles Menü: fällt aus dem Header statt hart aufzuspringen; Schließen schneller als Öffnen */
@media (max-width: 1024px) {
  #primary-nav { opacity: 0; transform: translateY(-8px); transition: opacity 150ms ease, transform 150ms var(--ease-out), display 150ms allow-discrete, overlay 150ms allow-discrete; }
  #primary-nav.is-open { opacity: 1; transform: none; transition-duration: 200ms; }
  @starting-style { #primary-nav.is-open { opacity: 0; transform: translateY(-8px); } }
}
/* 2. Formular: Rückmeldung blendet ein, deaktivierter Button zeigt den Sendezustand */
.form-feedback { transition: opacity 200ms ease, transform 200ms var(--ease-out); }
@starting-style { .form-feedback:not(:empty) { opacity: 0; transform: translateY(4px); } }
.kontakt-form button[disabled] { opacity: .7; cursor: progress; transition: opacity 150ms ease; }
/* 3. Kartenlinks geben beim Antippen nach */
.card, .chip, .maps-link, a.tile { transition-property: background-color, color, border-color, box-shadow, filter, transform; transition-duration: 200ms, 200ms, 200ms, 200ms, 200ms, 120ms; transition-timing-function: ease, ease, ease, ease, ease, var(--ease-out); }
.card:active, .chip:active, .maps-link:active, a.tile:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  #primary-nav, #primary-nav.is-open { transform: none; }
  @starting-style { #primary-nav.is-open { transform: none; } }
  @starting-style { .form-feedback:not(:empty) { transform: none; } }
  .card:active, .chip:active, .maps-link:active, a.tile:active { transform: none; }
}

/* ---------- Über den Betrieb (Startseite): Text links, Bildkomposition rechts ---------- */
.tile-pair--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.tile-pair--rev .ph:first-child { grid-column: 2; grid-row: 1 / span 2; }
.tile-pair--rev .ph:nth-child(2) { grid-column: 1; grid-row: 1; }
.tile-pair--rev .ph:nth-child(3) { grid-column: 1; grid-row: 2; }
#betrieb .split { align-items: start; }
#betrieb .ctas { margin-top: 28px; }

/* ---------- Hero seitenbreit (wie Konzept-Variante B): dunkle Fläche über die volle Breite, Foto bis an den rechten Fensterrand ---------- */
@media (min-width: 901px) {
  .hero { background: var(--surface-dark); }
  .hero::before { display: none; }
  .hero-photo { right: 0; width: calc((100% - min(100%, var(--container))) / 2 + var(--gutter) + (min(100%, var(--container)) - 2 * var(--gutter)) * .56); }
}

/* ---------- Unterseiten: oberste Sektion dunkel, passend zum Hero der Startseite ---------- */
.page-head.on-dark { background: var(--surface-dark); color: var(--on-dark); }
.page-head.on-dark h1 { color: var(--on-dark); }
.page-head.on-dark .lead { color: #E4E2DD; }
.page-head.on-dark .eyebrow { color: var(--on-dark-muted); }
.page-head.on-dark .page-head-media { box-shadow: none; }
.page-head.on-dark .slot { box-shadow: none; }

/* ---------- Referenzen: zweite Navigationsebene, gleicher Abstand oben und unten, ob ruhend oder angeheftet ---------- */
.subnav { padding: 18px 0 18px; background: var(--surface); } /* Grund der folgenden Sektion (.alt), kein Extra-Streifen */
.subnav .chips { padding-top: 0; padding-bottom: 0; }
@media (max-width: 560px) { .subnav { padding: 16px 0; } }

/* ---------- Referenzen: Platzhalter für Küche, Wohnräume, Terrasse ---------- */
.gallery-slot { aspect-ratio: 4 / 3; }
.gallery-slot .slot { box-shadow: none; }
.insp-tile--slot { color: var(--text); }
.insp-tile--slot .ph::after { display: none; }
.insp-tile--slot .insp-count { color: var(--text-muted); }

/* ---------- Hersteller: kompaktere Kacheln ohne Pills, Leiste auf Bäder/Innenausbau ---------- */
.maker { gap: 10px; padding: 18px 20px; }
.maker-logo { height: 52px; }
.maker-logo svg { max-height: 44px; }
.maker-word { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; color: var(--on-dark); }
.section-head .lead-text a, .brand-strip-text a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--t2); }
.brand-strip { padding: 40px 0; }
.brand-strip-text { margin-bottom: 22px; }
.brand-strip-text h2 { font-size: clamp(24px, 2.4vw, 30px); }
.brand-strip-text p { margin-top: 12px; font-size: 17px; }
.brands--strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } /* 6 Marken: Desktop 6, Tablet 3 + 3, Handy 2 + 2 + 2 */
.maker--strip { padding: 12px 14px 14px; gap: 24px; align-items: center; text-align: center; min-height: 131px; } /* Höhe wie bisher, Logo und Text in allen Kacheln auf derselben Linie */
.maker--strip .maker-logo { height: 38px; justify-content: center; }
.maker--strip .maker-logo svg { max-height: 34px; max-width: 150px; }
.maker--strip .maker-logo svg.logo-skp { max-height: 26px; }
.maker--strip .maker-logo svg.logo-farrow-ball { max-height: 18px; } /* waagerechte Wortmarke von farrow-ball.com, sehr breit: niedriger halten */
.maker--strip p { font-size: 14px; line-height: 1.4; }
.maker-logo svg { color: var(--on-dark); }
@media (max-width: 1100px) { .brands--strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .brands--strip .maker:last-child { grid-column: auto; } }
@media (max-width: 560px) { .brands--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brands--strip .maker:last-child { grid-column: span 2; } }

/* ---------- Innenausbau-Ablauf: Kreise gefüllt ---------- */
.tl-no { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Anpassungen aus „Anpassungen Effekte.xlsx“ (2026-10-21) ---------- */
/* Hover-Bewegung nur mit echter Maus (positiv abgesichert) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg:last-child { transform: translateX(3px); }
  .btn-primary:not(.btn-sm):hover, .btn-ghost:hover { transform: translateY(-2px); }
  .btn-primary:not(.btn-sm):active, .btn-ghost:active { transform: translateY(-2px) scale(.97); } /* oben bleiben und eindrücken statt nach unten zu springen */
  a.tile:hover { transform: translateY(-2px); }
  .ph:has(.lb-zoom):hover::before, a:hover .ph::before, .card:hover .card-media::before, .gallery-page button:hover::before, .mappe-grid button:hover::before { opacity: .28; }
}
.gallery-page button:focus-visible::before { opacity: .28; }
/* Abdunkeln über eine Fläche mit opacity (Grafikkarte) statt filter auf dem Bild */
.ph, .card-media { position: relative; }
.ph::before, .card-media::before, .gallery-page button::before, .mappe-grid button::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary:not(.btn-sm):hover, .btn-ghost:hover, .btn-primary:not(.btn-sm):active, .btn-ghost:active, a.tile:hover, .insp-tile:hover, .btn:hover svg:last-child { transform: none; }
}
/* Kein grauer Tap-Blitz auf Touch, eigene Drück-Rückmeldung gibt es */
a, button, summary { -webkit-tap-highlight-color: transparent; }
/* Markierung in Hausfarbe */
::selection { background: var(--accent); color: #fff; }
/* Footer-Links mobil mit größerer Tippfläche */
@media (max-width: 700px) { .footer-links a { display: inline-flex; align-items: center; padding-block: 10px; } }
/* Formular: Fehler direkt am Feld */
.field input:user-invalid, .field textarea:user-invalid, .field [aria-invalid="true"] { border-color: #A3261E; }
.field-error { margin-top: 4px; font-size: 15px; font-weight: 600; color: #A3261E; }

/* Header-CTA, CTA im mobilen Menü und Icon-Buttons: Drück-Rückmeldung wie die anderen Buttons (kein Anheben, Header-Button bleibt flach) */
.site-header .btn-primary:active, #primary-nav .btn:active { transform: scale(.97); }
.icon-btn { transition: transform 120ms var(--ease-out), background-color 200ms ease; }
.icon-btn:active { transform: scale(.94); }
/* Header-CTA hebt sich mit Maus an wie die Hero-Buttons und bleibt beim Drücken oben */
@media (hover: hover) and (pointer: fine) {
  .site-header .btn-primary:hover { transform: translateY(-2px); }
  .site-header .btn-primary:active, #primary-nav .btn-primary:active { transform: translateY(-2px) scale(.97); }
}
@media (prefers-reduced-motion: reduce) { .site-header .btn-primary:hover, .site-header .btn-primary:active, #primary-nav .btn:active, .icon-btn:active { transform: none; } }

/* ---------- Runde 2026-10-21 (2) ---------- */
/* Footer: Firma und Adresse; mobil Adresse in eigener Zeile */
.f-addr::before { content: " · "; }
@media (max-width: 700px) { .f-addr { display: block; margin-top: 4px; } .f-addr::before { content: none; } }
/* Footer: Icon vor Telefon und Instagram, gleicher Abstand */
.footer-icon { display: inline-flex; align-items: center; gap: 10px; }
.footer-icon svg { width: 17px; height: 17px; flex: none; }
/* Bäder: zwei Buttons unter den Projekten, gleich breit (Breite des längeren), mobil untereinander in voller Breite */
.more-ctas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; width: fit-content; margin: 44px auto 0; }
@media (max-width: 600px) { .more-ctas { grid-auto-flow: row; grid-auto-columns: auto; width: 100%; } }
/* Ausstellung „So finden Sie uns“: Karte beginnt an der Überschrift und endet mit der Öffnungszeiten-Kachel */
.besuch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "eb ." "main map" "ctas ."; column-gap: 64px; }
.besuch-eb { grid-area: eb; }
.besuch-main { grid-area: main; }
.besuch-main p { margin-top: 14px; }
.besuch-main .tile--hours { margin-top: 26px; max-width: 460px; }
.besuch-map { grid-area: map; min-height: 0; height: 100%; box-shadow: var(--shadow); }
.besuch-ctas { grid-area: ctas; margin-top: 28px; }
.maps-pill--2 { line-height: 1.35; text-align: left; }
@media (max-width: 900px) {
  .besuch-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eb" "main" "ctas" "map"; }
  .besuch-map { height: auto; min-height: 300px; margin-top: 32px; }
  .besuch-map .maps-pill { left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; text-align: center; }
}
/* Markenleiste mobil: 6 Marken in 2 + 2 + 2, alle gleich breit */
@media (max-width: 560px) { .brands--strip .maker:last-child { grid-column: auto; } }
/* Innenausbau-Ablauf mobil: Text direkt unter der Überschrift, gleiche Abstände zwischen den Schritten */
@media (max-width: 800px) {
  .tl { grid-template-rows: auto 1fr; } /* Mehrhöhe gleich hoher Schritte geht unter den Text, nicht zwischen Überschrift und Text */
  .tl-no { grid-row: 1 / span 2; }
  .tl-head { padding-top: 12px; }
  .tl p { padding-top: 4px; }
}

/* ---------- Seitenaufbau Startseite (Auswahl aus den Prototypen, 2026-10-20) ----------
   Hero: „Erzählend“ (Emil, Text tritt zurück) + Lade-Zoom 2,5 s, kein Scroll-Zoom; Leistungen/Referenzen: mobil „Erzählend“, Desktop „Geführt“ (script.js);
   Team: „Geführt“ (script.js); Ausstellung, Bewertungen, Lexikon, Kontakt: ohne Seitenaufbau-Effekt.
   html:not([data-v]): gilt nicht in den Prototyp-Testseiten (die setzen data-v), damit diese vergleichbar bleiben. */
.hero-photo { overflow: hidden; }
html:not([data-v]) .hero { overflow: clip; } /* clip statt hidden: sonst wird der Hero ein eigener Scroller und view() der Hero-Zeilen läuft nie */
/* Lade-Zoom mit leichtem Drift: Foto gleitet in 8 s aus 108 % und leicht versetzter Lage zur Ruhe (Test) */
@keyframes sa-hero-load { from { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); } to { transform: none; } }
@keyframes sa-recede { to { transform: translateY(-48px); opacity: .25; } }
@keyframes sa-dim { to { opacity: .25; } }
@keyframes sa-in-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes sa-parallax { from { transform: translateY(-5%) scale(1.10); } to { transform: translateY(5%) scale(1.10); } } /* testweise */
@keyframes sa-grow { from { transform: scale(.86); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  /* Lade-Zoom: Foto kommt in 2,5 s von 108 % zur Ruhe */
  html:not([data-v]) .hero-photo img { transform-origin: 55% 62%; animation: sa-hero-load 8000ms cubic-bezier(.25,.46,.45,.94) both; } /* sanftes ease-out: Bewegung bleibt bis zum Schluss sichtbar */
  @media (max-width: 900px) { html:not([data-v]) .hero-photo img { transform-origin: 52% 56%; } }
  @supports (animation-timeline: scroll()) {
    /* Desktop: Text, Buttons und Trust-Zeile treten beim Scrollen zurück (alles ist schon im Blickfeld) */
    @media (min-width: 901px) { html:not([data-v]) .hero-text { animation: sa-recede linear both; animation-timeline: scroll(root); animation-range: 0 80vh; } }
    /* Mobil: nur Abdunkeln (Deckkraft), kein Wegbewegen, und erst wenn Überschrift und Text gelesen sind */
    @media (max-width: 900px) { html:not([data-v]) .hero-text { animation: sa-dim linear both; animation-timeline: scroll(root); animation-range: 45vh 115vh; } }
  }
  @supports (animation-timeline: view()) {
    @media (max-width: 900px) {
      /* Leistungen + Referenzen „Erzählend“: Bewegung hängt am Scrollen */
      html:not([data-v]) #leistungen .section-head, html:not([data-v]) #referenzen .section-head, html:not([data-v]) #referenzen .chips { animation: sa-in-up linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
      html:not([data-v]) #leistungen .card { animation: sa-in-up linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
      /* Leistungsseite mobil wie die Leistungskacheln der Startseite: Bild und Text je Block an das Scrollen gekoppelt */
      html:not([data-v]) .service-media, html:not([data-v]) .service-text { animation: sa-in-up linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
      html:not([data-v]) #leistungen .card-media, html:not([data-v]) #referenzen .mosaic .ph { overflow: clip; } /* overflow:hidden wäre ein eigener Scroller, dann liefe view() nie */
      html:not([data-v]) #referenzen .mosaic .ph img { animation: sa-parallax linear both; animation-timeline: view(); }
      html:not([data-v]) #referenzen .mosaic { animation: sa-grow linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    }
  }
  /* Sektion gestaffelt einblenden (Apple-Muster, Playbook technik.md): script.js setzt .st-wait nur unterhalb des Bildschirms,
     beim Erreichen der Gruppe .st-go mit Verzögerung (Kopf sofort, dann ab 300 ms je +130 ms). translate statt transform: Hover-Lifts bleiben unberührt. */
  .st-wait { opacity: 0; translate: 0 30px; }
  .st-go { opacity: 1; translate: none; transition: opacity .8s cubic-bezier(.25,.1,.25,1), translate .9s cubic-bezier(.16,1,.3,1); }
  /* Einzeln einblenden (wie webstudio-reiners.de, Ablauf-Schritte) */
  .rv-wait { opacity: 0; translate: 0 20px; }
  .rv-go { opacity: 1; translate: none; transition: opacity 500ms var(--ease-out), translate 500ms var(--ease-out); }
}

/* Hover während des Scrollens aussetzen (script.js setzt html.is-scrolling für 150 ms nach dem letzten Scrollschritt) */
html.is-scrolling main { pointer-events: none; }


/* === DEMO-SCHUTZ — entfernen zusammen mit body.demo-mode und dem Block in script.js === */
body.demo-mode::after { content: ""; position: fixed; right: 0; bottom: 0; z-index: 9999; pointer-events: none; width: 180px; height: 180px; background: rgba(43,45,48,.55); border-radius: 100% 0 0 0; box-shadow: inset 3px -3px 0 rgba(255,255,255,.12); }
body.demo-mode::before { content: "Vorschau für\00000aKeros Fliesen & Bau\00000awebstudio-reiners.de"; position: fixed; right: -20px; bottom: 43px; z-index: 10000; pointer-events: none; width: 180px; height: 54px; display: flex; align-items: center; justify-content: center; transform: rotate(-45deg); transform-origin: center; white-space: pre; text-align: center; font: 600 10px/1.5 system-ui, sans-serif; letter-spacing: .02em; color: rgba(255,255,255,.95); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
@media (max-width: 600px) { body.demo-mode::after { width: 140px; height: 140px; } body.demo-mode::before { right: -20px; bottom: 33px; width: 150px; height: 46px; font-size: 8.5px; } }
/* === ENDE DEMO-SCHUTZ === */

/* ---------- Bilder neben Text (Playbook struktur.md): Regel pro Block als Klasse am Bild-Container ----------
   media-follows-text = A (Bild folgt dem Text, 4:5 … 3:2), media-fixed-ratio + --media-ratio = B, media-series = Serie 3:2,
   media-anchor-eyebrow = Bezug Eyebrow (Seitenkopf). Standard-Block unverändert aus dem Playbook. */
@media (min-width: 901px) {
  /* Zeile mit Regel-Bild: Text oben ausrichten, nie senkrecht zentrieren */
  :has(> .media-follows-text, > .media-fixed-ratio) { align-items: start !important; }
  /* Unterkante = letztes Element: dessen Außenabstand nach unten würde die Zeile (und das A-Bild) verlängern */
  :has(> .media-follows-text) > :not(.media-follows-text) > :last-child { margin-bottom: 0 !important; }
  .media-follows-text, .media-fixed-ratio { --media-offset: var(--media-offset-heading, 0px); }
  .media-follows-text.media-anchor-eyebrow, .media-fixed-ratio.media-anchor-eyebrow { --media-offset: var(--media-offset-eyebrow, 0px); }
  /* A: Höhe = Text (ab Bezugskante bis letztes Element), Format 3:2 (Mindesthöhe) bis 4:5 (Höchsthöhe) */
  .media-follows-text { align-self: stretch; position: relative; container-type: inline-size; aspect-ratio: auto !important; }
  .media-follows-text::before { content: ""; display: block; height: calc(100cqw / 1.5 + var(--media-offset)); }
  .media-follows-text > :first-child { position: absolute !important; left: 0; right: 0; top: var(--media-offset) !important; margin: 0 !important;
    width: 100% !important; height: min(calc(100% - var(--media-offset)), 125cqw) !important; aspect-ratio: auto !important; }
  /* B und Serie: festes Format, oben bündig mit der Bezugskante, unten frei */
  .media-fixed-ratio { align-self: start; margin-top: var(--media-offset) !important; aspect-ratio: auto !important; height: auto !important; }
  .media-series .media-fixed-ratio { --media-ratio: 3 / 2; }
  .media-fixed-ratio > :first-child { display: block; width: 100% !important; height: auto !important; aspect-ratio: var(--media-ratio, 4 / 5) !important; margin: 0 !important; }
  /* Bild füllt den Rahmen, Ausschnitt über den Fokuspunkt */
  .media-follows-text > img:first-child, .media-fixed-ratio > img:first-child, .media-follows-text > :first-child img, .media-fixed-ratio > :first-child img {
    object-fit: cover; object-position: var(--media-focus, 50% 50%); }
  .media-follows-text > :first-child img, .media-fixed-ratio > :first-child img { width: 100% !important; height: 100% !important; }
}
/* Projekt: Versätze je Zeilentyp, Schatten bei A auf dem Bild statt auf dem Container */
.split { --media-offset-heading: 37px; }
.service { --media-offset-heading: 0px; }
.page-head-grid { --media-offset-eyebrow: 4px; }
@media (min-width: 901px) {
  .media-follows-text { overflow: visible; box-shadow: none; }
  .media-follows-text > :first-child { box-shadow: var(--shadow); }
}

/* Einzelbild mit Lightbox (zoom() im Build): nur klickbare Bilder bekommen Hover/Abdunkeln */
.lb-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.lb-zoom:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.ph:has(.lb-zoom:focus-visible)::before { opacity: .28; }

/* Referenzen-Übersicht: Instagram-Hinweis zentriert unter den Kacheln */
.insta-hinweis { margin: 40px auto 0; max-width: 40em; text-align: center; color: var(--text-muted); font-size: 18px; }
.insta-hinweis + .more-link { margin-top: 18px; }

/* Leistungskacheln: beim Hover fährt neben „Mehr erfahren“ ein kleiner Pfeil ein (nur mit Maus) */
.tlink-wrap { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.tlink-pfeil { display: inline-flex; width: 18px; height: 18px; color: var(--text); opacity: 0; transform: translateX(-6px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.tlink-pfeil svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .card:hover .tlink-pfeil { opacity: 1; transform: none; } }
.card:focus-visible .tlink-pfeil { opacity: 1; transform: none; }

/* TEST 2026-11-15: abgerundete Ecken 1px (vorher 2px) für freistehende Bilder und Kacheln (Kante-an-Kante-Reihen wie das Team bleiben eckig).
   Zum Zurücknehmen diesen Block löschen. */
.ph, .slot, .card, .card-media, .review, .tile, .insp-tile, .maker, .mappe, .projekt .gallery-page button, .gallery-page button, .mappe-grid button,
.page-head-media, .page-head-media > img, .page-head-media > picture > img, .media-follows-text > :first-child, .kontakt-form, .gallery-slot, .mappe-no { border-radius: 1px; }
.card { overflow: hidden; }
.lineup .ph { border-radius: 0; }

/* Startseite „Über den Betrieb“: Collage beginnt bündig mit der Überschrift (Versatz = Eyebrow-Höhe) */
@media (min-width: 901px) { #betrieb .tile-pair { margin-top: var(--media-offset-heading, 37px); } }

/* Innenausbau: Abschnitt Altbausanierung (nur Text + Liste), Liste zweispaltig ab Tablet */
.altbau-liste { margin-top: 28px; max-width: 760px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
@media (max-width: 640px) { .altbau-liste { grid-template-columns: minmax(0, 1fr); } }

/* Team: Berufsbezeichnung unter jedem Porträt (Bilder bleiben Kante an Kante) */
.team-beruf { margin: 0; padding: 10px 4px 0; font-size: 12.5px; line-height: 1.35; text-align: center; color: var(--text-muted); hyphens: manual; }
@media (max-width: 640px) { .team-beruf { font-size: 12px; padding: 8px 4px 14px; } }
