/* HS Industriemontagen GmbH, Startseite (Entwurf, Website-Aktion Stufe 2, Code 2qsefn).
   Startbereich 1:1 aus dem Kachel-Entwurf (Inter, #363e63, #f5f5f7), darunter dieselbe Sprache. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --brand: #363e63; --brand-text: #ffffff;
  --bg: #f5f5f7; --tile: #ffffff; --ink: #1d1d1f; --muted: #6e6e73; --nacht: #16181c;
  --linie: rgba(0, 0, 0, .09); --linie-hell: rgba(255, 255, 255, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gap: 14px; --r: 30px; --r-k: 26px; --pad: 52px;
  --kopf-h: 88px; --breite: 1440px;
  /* Unterhalb des Startbereichs genau drei Größen plus klein */
  --fs-h2: clamp(36px, 4.3vw, 62px); --fs-h3: 26px; --fs-text: 17px; --fs-klein: 15px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink);
  font-size: var(--fs-text); line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[id] { scroll-margin-top: calc(var(--kopf-h) + 8px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 70%, white); outline-offset: 3px; border-radius: 6px; }
.marke-blau :focus-visible, .nacht :focus-visible { outline-color: #ffffff; }
.nw { white-space: nowrap; }

/* ---------- Kopf (wie im Entwurf, beim Scrollen mitlaufend) ---------- */
.kopf { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.kopf.gescrollt { border-color: var(--linie); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .35); }
.kopf-bar { max-width: var(--breite); margin: 0 auto; height: var(--kopf-h); padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.marke { flex: none; display: flex; align-items: center; }
.marke picture { display: block; }
.marke img { height: 60px; width: auto; mix-blend-mode: multiply; }
.menue { display: flex; gap: 28px; margin-left: auto; min-width: 0; overflow: hidden; }
.menue a { white-space: nowrap; font-weight: 500; font-size: 15px; opacity: .78; transition: opacity .2s; }
.menue a:hover { opacity: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-text); font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .25s var(--ease), filter .25s; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.gross { height: 54px; padding: 0 30px; }
.kopf-bar .btn { height: 44px; padding: 0 20px; font-size: 15px; flex: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tile); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center; margin-left: auto; flex: none; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor; transform: translateY(-3px); transition: transform .3s var(--ease), box-shadow .3s; }
.burger[aria-expanded="true"] span { transform: rotate(45deg); box-shadow: none; }
.burger[aria-expanded="true"] span::after { content: ""; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-90deg); }
.menue-handy { display: none; }
.mehr { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 15px; font-weight: 600; white-space: nowrap; }
.mehr svg { flex: none; }
.link { display: inline-block; color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--brand); }

/* ---------- Startbereich (1:1 Entwurf, Modus "unter": Text 6 Spalten, Bild über beide Reihen) ---------- */
.bento { max-width: var(--breite); margin: 0 auto; padding: 0 24px 24px; display: grid; gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 176px;
  height: calc(100vh - var(--kopf-h)); min-height: 700px; max-height: 1060px; }
.bento > * { border-radius: var(--r); overflow: hidden; position: relative; min-width: 0; min-height: 0; }
.k-text { grid-column: 1 / span 6; grid-row: 1; background: var(--tile); padding: var(--pad); display: flex; flex-direction: column; justify-content: center; }
/* Zeilenfall wie im Entwurf (balance wie dort; gemessen gegen www.korthauer.io/2qsefn/entwurf/ mit echter Schrift) */
.h1 { font-weight: 700; letter-spacing: -.048em; line-height: 1; font-size: 64px; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.h1 .w { white-space: nowrap; }
.h1 .w.trenn { white-space: normal; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.k-unten { margin-top: 30px; }
.lead { font-size: 20px; line-height: 1.45; color: var(--muted); font-weight: 450; max-width: 34em; }
.akte { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 30px; }
.k-bild { grid-column: 7 / -1; grid-row: 1 / -1; background: var(--tile); }
.k-bild picture { display: block; width: 100%; height: 100%; }
.k-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.k-reihe { grid-column: 1 / span 6; grid-row: 2; display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); border-radius: 0; overflow: visible; }
.k-kachel { position: relative; border-radius: var(--r-k); overflow: hidden; padding: 24px 26px; display: flex; flex-direction: column; min-width: 0; }
.k-lbl { font-size: var(--fs-klein); font-weight: 600; color: var(--muted); }
.bento .k-lbl { font-size: 14px; letter-spacing: -.005em; }
.btn .kurz { display: none; }
.k-leist { background: var(--tile); gap: 12px; justify-content: flex-start; }
.k-l { list-style: none; display: grid; grid-template-columns: repeat(var(--lsp, 2), minmax(0, 1fr)); column-gap: 22px; font-size: 21px; font-weight: 650; letter-spacing: -.02em; line-height: 1.14; }
.k-l li { min-width: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); hyphens: manual; overflow-wrap: normal; }
.k-l a { display: block; padding: 9px 0 8px; transition: color .2s; }
.k-l a:hover { color: var(--brand); }
.k-anruf { background: var(--brand); color: var(--brand-text); justify-content: space-between; transition: filter .25s; }
.k-anruf:hover { filter: brightness(1.1); }
.k-anruf .k-lbl { color: inherit; opacity: .8; }
.k-anruf .ikon { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.k-anruf .k-at { display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-width: 0; }
.k-anruf .nr { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; word-spacing: .22em; }
@keyframes ein { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ein { animation: ein .9s var(--ease) both; }
.lead.ein { animation-delay: .15s; }
.akte.ein { animation-delay: .3s; }
body.eng .lead { font-size: 17px; }
body.eng .akte { margin-top: 20px; }

/* ---------- Abschnitte ---------- */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.abschnitt + .abschnitt, .bento + .abschnitt { margin-top: 112px; }
.kopfzeile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; padding: 0 var(--pad) 34px; }
.kopfzeile .h2 { grid-column: 1 / span 7; }
.kopfzeile p { grid-column: 8 / -1; color: var(--muted); }
.h2 { font-weight: 700; letter-spacing: -.042em; line-height: 1.03; font-size: var(--fs-h2); text-wrap: balance; }
.h3 { font-weight: 700; letter-spacing: -.028em; line-height: 1.15; font-size: var(--fs-h3); }
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.kachel { position: relative; border-radius: var(--r); overflow: hidden; background: var(--tile); padding: var(--pad); min-width: 0; }
.kachel.marke-blau { background: var(--brand); color: var(--brand-text); }
.kachel.nacht { background: var(--nacht); color: #f5f5f7; }
.kachel.foto { padding: 0; background: #d9dbe0; }
.kachel.foto img { width: 100%; height: 100%; object-fit: cover; }
.text p + p { margin-top: 16px; }
.text p { max-width: 38em; }
.liste-fein { list-style: none; }
.liste-fein li { padding: 13px 0 12px; border-top: 1px solid var(--linie); font-weight: 500; line-height: 1.4; }
.liste-fein li:last-child { border-bottom: 1px solid var(--linie); }
.liste-fein.hell li { border-color: var(--linie-hell); font-weight: 450; color: rgba(245, 245, 247, .88); }

/* Profil */
.profil .k-a { grid-column: 1 / span 7; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.profil .k-a .h2 { max-width: 10em; }
.profil .k-b { grid-column: 8 / -1; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }

/* Dienstleistungen als Bild-Text-Kapitel, Bildseite wechselt */
.kapitel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 0; min-height: 400px; }
.kapitel figure { position: relative; overflow: hidden; background: #d9dbe0; min-height: 100%; }
.kapitel figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.kapitel:hover figure img { transform: scale(1.035); }
.kapitel .inhalt, .duo .inhalt { padding: var(--pad); display: flex; flex-direction: column; }
.kapitel .h3, .duo .h3 { margin-bottom: 16px; }
.kapitel .text p, .duo .text p { color: #3a3a3c; }
.kapitel .link, .duo .link { margin-top: auto; padding-top: 26px; align-self: flex-start; }
.kapitel.rechts { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.kapitel.rechts figure { order: 2; }
.tags-lbl { display: block; margin-top: 22px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tags li { font-size: var(--fs-klein); font-weight: 500; line-height: 1.2; padding: 8px 14px; border-radius: 999px; background: var(--bg); color: var(--ink); }
.duo { grid-column: span 6; padding: 0; display: flex; flex-direction: column; }
.duo figure { aspect-ratio: 16 / 9.5; overflow: hidden; background: #d9dbe0; }
.duo figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.duo:hover figure img { transform: scale(1.035); }
.duo .inhalt { flex: 1; }

/* Zeichnung weiß auf Markenfarbe (wie im Entwurf, wenn kein Foto passt): Mischer von oben */
.kapitel.mischer-kapitel { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.kapitel figure.zeichnung { background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; padding: 28px 22px; min-height: 520px; }
.zeichnung::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center; }
.dwg { position: relative; width: 100%; height: 100%; max-height: 520px; overflow: visible; }
.dwg path, .dwg circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dwg .o { stroke-width: 2; } .dwg .d { stroke-width: 1.3; }
.dwg .c { stroke-width: .9; stroke-dasharray: 18 4 2 4; opacity: .45; }
.dwg .m { stroke-width: 1.2; opacity: .85; }
.dwg .sch { stroke-width: 4; }
.dwg .pt { fill: currentColor; stroke: none; }
.dwg .fl { stroke-width: 1.2; fill: rgba(255, 255, 255, .1); transition: opacity .45s var(--ease), fill .45s var(--ease); }
.dwg text { font-family: "Inter", sans-serif; fill: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.01em; paint-order: stroke; stroke: var(--brand); stroke-width: 5px; stroke-linejoin: round; }
/* Beim Scrollen setzt das Skript die Fliesen nacheinander (nur live, Standbild = alle gesetzt) */
html.bewegt .mischer .fl { opacity: .14; fill: transparent; }
html.bewegt .mischer .fl.gesetzt { opacity: 1; fill: rgba(255, 255, 255, .1); }

/* Projekte: Mosaik aus eigenen Projektfotos */
.mosaik { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 420px; grid-auto-flow: dense; gap: var(--gap); }
.mosaik .quer { grid-column: span 6; }
.mosaik .hoch { grid-column: span 3; }
.mosaik figure img { transition: transform .8s var(--ease); }
.mosaik figure:hover img { transform: scale(1.04); }
.projekte .unten { margin-top: var(--gap); }
.k-schwerpunkte { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 18px; }
.k-partner { grid-column: 8 / -1; display: flex; flex-direction: column; gap: 18px; }
.k-partner .k-lbl, .k-daten .k-lbl { color: inherit; opacity: .78; }
.k-partner > p { color: rgba(255, 255, 255, .84); max-width: 34em; }
.punkte { list-style: none; }
.punkte li { padding: 14px 0 13px; border-top: 1px solid var(--linie); }
.punkte .titel { display: block; font-weight: 600; line-height: 1.3; }
.punkte .info { display: block; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.punkte.hell li { border-color: var(--linie-hell); }
.punkte.hell .info { color: rgba(255, 255, 255, .74); }
.k-schwerpunkte .link { margin-top: auto; padding-top: 8px; align-self: flex-start; }
@media (min-width: 1101px) {
  .karriere .k-bieten .liste-fein { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .karriere .k-bieten .liste-fein li:last-child { border-bottom: 0; }
}

/* Über uns */
.firma .k-geschichte { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 34px; }
.firma .k-geschichte .h2 { max-width: 11em; }
.firma .k-geschichte .link { margin-top: auto; align-self: flex-start; }
.firma .k-foto { grid-column: 8 / -1; min-height: 560px; }
.firma .k-foto img { object-position: 50% 62%; }

/* Jobs (Karriere): das Herzstück, dunkel */
.karriere .k-foto { grid-column: 1 / span 5; grid-row: span 2; min-height: 640px; }
.karriere .k-foto img { object-position: 30% 50%; }
.karriere .k-intro { grid-column: 6 / -1; }
.karriere .k-intro .h2 { max-width: 11em; margin-bottom: 26px; }
.karriere .k-intro p { color: rgba(245, 245, 247, .8); max-width: 38em; }
.karriere .k-intro p + p { margin-top: 14px; }
.karriere .k-stellen { grid-column: 6 / -1; padding-top: 30px; padding-bottom: 30px; display: flex; flex-direction: column; gap: 16px; }
.stellen { list-style: none; }
.stellen a { display: block; padding: 18px 0 17px; border-top: 1px solid var(--linie-hell); transition: color .2s; }
.stellen li:first-child a { border-top: 0; padding-top: 4px; }
.stellen .titel { display: block; font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.028em; line-height: 1.2; }
.stellen .info { display: block; font-size: var(--fs-klein); color: rgba(245, 245, 247, .64); margin-top: 4px; }
.stellen a:hover .titel { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.k-stellen .fragen { font-size: var(--fs-klein); color: rgba(245, 245, 247, .64); border-top: 1px solid var(--linie-hell); padding-top: 16px; }
.k-stellen .fragen a { color: #f5f5f7; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); white-space: nowrap; }
.karriere .k-bieten { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 18px; }
.karriere .k-bieten .k-lbl { color: rgba(245, 245, 247, .64); }
.karriere .k-staerken { grid-column: 1 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.staerken { list-style: none; }
.staerken li { padding: 16px 0 15px; border-top: 1px solid var(--linie); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.028em; line-height: 1.2; }
.staerken li:first-child { border-top: 0; padding-top: 0; }
.k-staerken .btn { align-self: flex-start; }

/* Knöpfe unterhalb des Startbereichs in der Größe klein (keine vierte Größe am Handy) */
.abschnitt .btn { font-size: var(--fs-klein); }
.zk-legende { display: none; }

/* Formulare */
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld.breit { grid-column: 1 / -1; }
.feld label { font-size: var(--fs-klein); font-weight: 600; color: var(--muted); }
.feld input, .feld textarea { width: 100%; border: 1px solid #86868b; border-radius: 14px; background: #fff; padding: 13px 15px; font-size: var(--fs-text); line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.feld textarea { min-height: 132px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.zustimmung { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: var(--fs-klein); color: var(--muted); line-height: 1.45; cursor: pointer; }
.zustimmung input { width: 20px; height: 20px; margin-top: 0; flex: none; accent-color: var(--brand); }
.zustimmung a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.senden { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.review-hinweis { font-size: var(--fs-klein); color: var(--muted); }
.meldung { color: var(--ink); }
.meldung.zeigen { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: color-mix(in srgb, var(--brand) 8%, #fff); }
.meldung a { color: var(--brand); font-weight: 600; }
.meldung.zeigen.fehler { background: #fdf0ee; }

/* Kontakt und Anfahrt */
.kontakt .k-anfrage { grid-column: 1 / span 7; grid-row: span 2; display: flex; flex-direction: column; }
/* Desktop: das Nachrichtenfeld wächst, bis die Kachel so hoch ist wie Foto und Kontaktdaten daneben */
@media (min-width: 1101px) {
  .kontakt .formular:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
  .kontakt .felder { flex: 1; grid-template-rows: auto auto minmax(0, 1fr); }
  .kontakt .feld.breit textarea { flex: 1; }
}
.kontakt .k-anfrage .h2 { margin-bottom: 14px; max-width: 10em; }
.kontakt .einleitung { color: var(--muted); margin-bottom: 30px; max-width: 34em; }
.kontakt .k-foto { grid-column: 8 / -1; aspect-ratio: 16 / 9; }
.kontakt .k-foto img { object-position: 50% 58%; }
.kontakt .k-daten { grid-column: 8 / -1; display: flex; flex-direction: column; gap: 26px; }
.k-daten .k-lbl { display: block; margin-bottom: 6px; }
.tel-gross { display: inline-block; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.042em; line-height: 1.03; word-spacing: .12em; white-space: nowrap; }
.tel-gross:hover, .k-daten a.unter:hover { opacity: .85; }
.k-daten a.unter { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); overflow-wrap: anywhere; }
.k-daten address { font-style: normal; line-height: 1.5; margin-bottom: 8px; }
.k-daten .neben { display: block; font-size: var(--fs-klein); color: rgba(255, 255, 255, .74); margin: 4px 0 8px; max-width: 30em; }

/* Fuß */
.fuss { max-width: var(--breite); margin: 112px auto 0; padding: 26px 52px 34px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
  color: var(--muted); font-size: var(--fs-klein); border-top: 1px solid var(--linie); }
.fuss nav { display: flex; gap: 22px; margin-left: auto; }
.fuss a:hover { color: var(--ink); }

/* Untere Leiste am Handy */
.mbar { display: none; }

/* Rechtstexte und Folgeseite */
.recht { max-width: 860px; margin: 24px auto 0; padding: 0 24px; }
.recht .kachel { padding: 56px 60px; }
.recht h1 { font-size: var(--fs-h2); letter-spacing: -.042em; line-height: 1.05; margin-bottom: 28px; }
.recht h2 { font-size: var(--fs-h3); letter-spacing: -.028em; line-height: 1.2; margin: 38px 0 10px; }
.recht h3 { font-size: var(--fs-text); margin: 24px 0 8px; }
.recht h4 { font-size: var(--fs-text); font-weight: 600; margin: 18px 0 6px; }
.recht p, .recht li { color: #3a3a3c; }
.recht p + p { margin-top: 12px; }
.recht ul { margin: 10px 0 0 20px; }
.recht a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.recht .themen { list-style: none; margin: 26px 0 0; }
.recht .themen li { padding: 13px 0 12px; border-top: 1px solid var(--linie); }

/* ---------- Bewegung beim Scrollen: Fotos öffnen sich, leichtes Parallax. Nur live, nie verdeckend. ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes oeffnen { from { clip-path: inset(5% 5% 5% 5% round 22px); } to { clip-path: inset(0 0 0 0 round 0); } }
    @keyframes parallax { from { transform: scale(1.1) translateY(-3%); } to { transform: scale(1.1) translateY(3%); } }
    .kachel.foto > img { animation: parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .kachel.foto, .kapitel figure, .duo figure { animation: oeffnen linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .mosaik .kachel.foto:hover > img { animation-play-state: paused; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ein { animation: none; }
  .kapitel figure img, .duo figure img, .mosaik figure img { transition: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 900px) and (max-width: 1100px) { .k-l { --lsp: 4; } }
@media (max-width: 1100px) {
  :root { --gap: 12px; --r: 28px; --r-k: 24px; --pad: 40px; --kopf-h: 76px; --fs-h3: 24px; }
  .menue, .kopf-bar .btn { display: none; }
  .burger { display: inline-flex; margin-right: -4px; }
  .kopf-bar { padding: 0 16px 0 28px; }
  .marke img { max-height: 60px; }
  .menue-handy { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--linie);
    padding: 6px 28px 22px; box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .4); }
  .menue-handy[hidden] { display: none; }
  .menue-handy a { display: block; padding: 14px 0; font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.02em; border-top: 1px solid var(--linie); }
  .menue-handy a:first-child { border-top: 0; }
  .menue-handy .btn { display: inline-flex; margin-top: 16px; padding: 0 24px; height: 50px; font-size: 16px; border: 0; }
  .bento { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; padding: 0 16px 16px; }
  .k-bild { order: 1; aspect-ratio: 16 / 10.5; flex: none; }
  .k-text { order: 2; padding: 40px 44px; justify-content: flex-start; }
  .h1 { font-size: 56px; }
  .k-unten { margin-top: 0; }
  .lead { margin-top: 18px; font-size: 19px; }
  .akte { margin-top: 28px; }
  .k-reihe { order: 3; height: 148px; flex: none; }
  .k-l { font-size: 18px; column-gap: 16px; }
  .k-l a { padding: 7px 0 6px; }
  .abschnitt { padding: 0 16px; }
  .abschnitt + .abschnitt, .bento + .abschnitt { margin-top: 88px; }
  .kopfzeile { grid-template-columns: 1fr; padding: 0 8px 28px; gap: 16px; }
  .kopfzeile .h2, .kopfzeile p { grid-column: auto; }
  .kopfzeile p { max-width: 40em; }
  .profil .k-a, .profil .k-b, .firma .k-geschichte, .firma .k-foto, .karriere .k-intro, .karriere .k-stellen,
  .karriere .k-bieten, .karriere .k-staerken, .kontakt .k-anfrage, .kontakt .k-foto, .kontakt .k-daten,
  .k-schwerpunkte, .k-partner { grid-column: 1 / -1; grid-row: auto; }
  .kapitel, .kapitel.rechts, .kapitel.mischer-kapitel { grid-template-columns: 1fr; min-height: 0; }
  .kapitel figure, .kapitel.rechts figure { order: 0; min-height: 0; aspect-ratio: 16 / 9; }
  .kapitel figure.zeichnung { aspect-ratio: auto; min-height: 0; padding: 30px 40px; }
  .kapitel figure.zeichnung .dwg { max-height: 460px; }
  .mosaik { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; }
  .mosaik .quer { grid-column: span 4; }
  .mosaik .hoch { grid-column: span 2; grid-row: span 1; }
  .firma .k-foto { min-height: 0; aspect-ratio: 4 / 3.4; }
  .karriere .k-foto { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 16 / 11; }
  .karriere .k-foto img { object-position: 40% 62%; }
  .kontakt .k-foto { aspect-ratio: 16 / 9; }
  .fuss { padding: 24px 24px 30px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .bento { min-height: calc(100vh - var(--kopf-h)); }
  .k-text { flex: 1 0 auto; justify-content: center; }
}

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  :root { --gap: 10px; --r: 24px; --r-k: 20px; --pad: 24px; --kopf-h: 64px; --fs-h2: 34px; --fs-h3: 21px; --fs-text: 16px; --fs-klein: 14px; }
  .kopf-bar { padding: 0 8px 0 18px; gap: 12px; }
  .marke { flex: 0 1 auto; min-width: 0; }
  .marke img { height: 42px; max-height: 46px; }
  .menue-handy { padding: 4px 18px 20px; }
  .bento { padding: 0 10px 14px; }
  .k-bild { aspect-ratio: 4 / 3.3; }
  .k-text { padding: 26px 22px 24px; }
  .h1 { font-size: 34px; }
  .lead { margin-top: 14px; font-size: 16px; line-height: 1.5; }
  .akte { margin-top: 22px; gap: 10px; }
  .akte .btn { width: 100%; height: 52px; }
  .akte .mehr { margin-top: 6px; }
  .k-reihe { display: flex; flex-direction: column; height: auto; }
  .k-kachel { padding: 16px 18px; }
  .k-anruf { order: 1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; height: 76px; }
  .k-anruf .ikon { position: static; flex: none; width: 44px; height: 44px; }
  .k-anruf .k-at { display: flex; flex-direction: column; gap: 1px; height: auto; }
  .k-anruf .k-lbl { font-size: 13px; }
  .k-anruf .nr { font-size: 21px; }
  .k-leist { order: 2; gap: 8px; }
  .k-l { font-size: 17px; column-gap: 14px; }
  .k-l a { padding: 8px 0 7px; }
  .abschnitt { padding: 0 10px; }
  .abschnitt + .abschnitt, .bento + .abschnitt { margin-top: 64px; }
  .kopfzeile { padding: 0 12px 22px; }
  .text p { max-width: none; }
  .profil .k-a { gap: 22px; }
  .kapitel, .kapitel.rechts, .kapitel.mischer-kapitel { grid-template-columns: 1fr; min-height: 0; }
  .kapitel figure, .kapitel.rechts figure { order: 0; min-height: 0; aspect-ratio: 16 / 10; }
  .kapitel figure.zeichnung { aspect-ratio: auto; min-height: 0; padding: 18px 12px 16px; flex-direction: column; gap: 10px; }
  .mischer .hinweise { display: none; }
  .zk-legende { display: block; position: relative; font-size: var(--fs-klein); line-height: 1.45; color: rgba(255, 255, 255, .82); text-align: center; max-width: 30em; }
  .h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .kapitel .inhalt, .duo .inhalt { padding: 24px 22px 26px; }
  .duo { grid-column: 1 / -1; }
  .tags { margin-top: 18px; gap: 6px; }
  .tags li { padding: 7px 12px; }
  .btn .lang { display: none; }
  .btn .kurz { display: inline; }
  .mosaik { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .mosaik .quer { grid-column: span 2; aspect-ratio: 16 / 10; }
  .mosaik .hoch { grid-column: span 1; aspect-ratio: 3 / 4; }
  .firma .k-foto { aspect-ratio: 4 / 4.4; }
  .karriere .k-foto { aspect-ratio: 4 / 4.2; }
  .karriere .k-foto img { object-position: 30% 62%; }
  .k-staerken .btn { width: 100%; }
  .felder { grid-template-columns: 1fr; }
  .kontakt .k-foto { aspect-ratio: 4 / 3.4; }
  .recht { padding: 0 10px; }
  .recht .kachel { padding: 30px 22px; }
  .fuss { margin-top: 64px; padding: 22px 18px 110px; }
  .fuss nav { margin-left: 0; }
  .mbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; gap: 8px; padding: 6px;
    border-radius: 999px; background: rgba(255, 255, 255, .86); border: 1px solid var(--linie); box-shadow: 0 12px 40px -10px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
    transform: translateY(calc(100% + 28px)); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .3s, visibility 0s linear .5s; }
  .mbar.zeigen { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .3s, visibility 0s; }
  .mbar a { flex: 1; height: 50px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--ink); }
  .mbar a.an { background: var(--brand); color: var(--brand-text); flex: 1.35; }
}
