/* Pessoa Solutions – Montage · Ausbau · Service
   Layout: dunkel, ruhig, viel Raum. Mobile zuerst, ab 900px zweispaltig.
   Farben und Schrift aus dem Logo: Oliv auf fast schwarzem Grund, Montserrat.
   Startseite für Privatkunden, gewerbe.html für Firmen. */

@font-face {
  font-family: "Montserrat";
  font-weight: 200 600;
  font-display: swap;
  src: url("fonts/montserrat.woff2") format("woff2");
}

:root {
  --bg: #121310;
  --surface: #1b1c17;
  --surface-2: #24251e;
  --deep: #0c0d0a;
  --line: #33342a;
  --text: #edece5;
  --muted: #a3a291;
  --olive: #b9b79c;
  --olive-hover: #cfcdb5;
  --olive-deep: #575640;
  --on-olive: #121310;
  --header-bg: rgb(18 19 16 / 0.78);

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --bar-h: 4.25rem;
  --space: clamp(5.5rem, 14vw, 10rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
html { overflow-x: clip; max-width: 100%; }
body { overflow-x: hidden; max-width: 100%; }
h1, h2, h3, .label { overflow-wrap: break-word; hyphens: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--olive); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--olive-hover); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Typografie */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 6.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.35rem, 4.5vw, 2.1rem); font-weight: 500; }
h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.12em; }
.label {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
}
.sub { color: var(--muted); font-weight: 300; font-size: clamp(1rem, 2.6vw, 1.2rem); line-height: 1.6; max-width: 38rem; text-wrap: balance; }
.lead { color: var(--muted); font-size: 1.02rem; max-width: 38rem; }

/* Kopfzeile: wird beim Scrollen kompakter und leicht transparent */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 21;
  height: env(safe-area-inset-top, 0px); background: var(--bg);
}
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-block: 1.1rem;
  transition: padding 0.35s var(--ease);
}
.site-header.is-compact {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-compact .wrap { padding-block: 0.65rem; }
.logo { flex: 0 1 auto; min-width: 0; }
.logo img { height: 1.2rem; width: auto; transition: height 0.35s var(--ease); }
.site-header.is-compact .logo img { height: 1.05rem; }
.header-right { display: flex; align-items: center; gap: 1.6rem; }
.nav { display: none; align-items: center; gap: 1.6rem; }
.nav a, .nav-firmen { color: var(--text); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.nav a:hover { color: var(--olive); }
.nav-firmen {
  flex: none; padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: 2px;
  color: var(--olive); font-size: 0.66rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-firmen:hover, .nav-firmen[aria-current="page"] { border-color: var(--olive); color: var(--olive-hover); }
@media (min-width: 1000px) { .nav { display: flex; } .nav-firmen { font-size: 0.72rem; padding: 0.55rem 1rem; } }
@media (min-width: 900px) {
  .logo img { height: 1.8rem; }
  .site-header.is-compact .logo img { height: 1.4rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font: 500 0.78rem/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--olive); border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn--solid { background: var(--olive); color: var(--on-olive); }
.btn--solid:hover { background: var(--olive-hover); border-color: var(--olive-hover); color: var(--on-olive); }
.btn--ghost { background: transparent; color: var(--olive); }
.btn--ghost:hover { background: rgb(185 183 156 / 0.1); color: var(--olive-hover); border-color: var(--olive-hover); }
.btn--small { min-height: 2.5rem; padding: 0.55rem 1.1rem; }
.btn--big { min-height: 4.25rem; padding: 1rem 1.25rem; font-size: 0.82rem; }

/* Kopfbereich mit großem Bild (Parallax) */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88svh, 52rem);
  display: grid; align-items: end;
}
.hero-media {
  position: absolute; inset: -12% 0 0; z-index: 0;
  will-change: transform; background: var(--surface);
}
@media (max-width: 699px) { .hero-media { inset: 0; } }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(18 19 16 / 0.7) 0%, rgb(18 19 16 / 0.45) 45%, rgb(18 19 16 / 0.8) 80%, var(--bg) 100%);
}
.hero .wrap {
  position: relative; z-index: 1; width: 100%;
  padding-block: 7.5rem 3.5rem;
  display: grid; gap: 1.25rem;
}
.hero .wrap { gap: 0; }
.hero-intro { font-size: clamp(1.1rem, 3.6vw, 1.3rem); font-weight: 400; color: var(--text); line-height: 1.5; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.7rem, 8vw, 3.8rem); line-height: 1.15; }
.h1-lead { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Wechselndes Wort: feste Zeilenhöhe, Breite vom längsten Wort */
.rotator { position: relative; display: inline-block; max-width: 100%; height: 1.2em; overflow: hidden; vertical-align: top; color: var(--olive); }
.rotator-sizer { visibility: hidden; white-space: nowrap; }
.rotator-word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; transform: translateY(100%);
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
.rotator-word.is-active { opacity: 1; transform: none; }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-100%); }
.rotator-static { display: none; color: var(--olive); font-size: 0.5em; letter-spacing: 0.12em; line-height: 1.5; margin-top: 0.5em; }

/* Drei Anfrage-Buttons: auf dem Handy WhatsApp breit, E-Mail und Anrufen halb darunter */
.hero-cta { margin-top: 2.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; max-width: 46rem; }
.hero-cta .btn:first-child { grid-column: 1 / -1; }
.hero-cta .btn { padding-inline: 0.6rem; letter-spacing: 0.12em; }
.wide-only { display: none; }
@media (min-width: 700px) {
  .hero-cta { grid-template-columns: 1.3fr 1fr 0.8fr; }
  .hero-cta .btn:first-child { grid-column: auto; }
  .wide-only { display: inline; }
}
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; color: var(--olive); font-size: 0.85rem; }
.checks li { display: inline-flex; align-items: center; gap: 0.45rem; }
.checks li::before { content: "✓"; font-size: 0.9em; }

/* Kopfbereich beim Laden: Text nacheinander von unten, Foto zoomt langsam heran */
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-in { animation: hero-in 0.9s var(--ease) backwards; animation-delay: calc(0.15s + var(--i, 0) * 0.1s); }
.hero-media img { animation: hero-zoom 1.5s var(--ease) backwards; }
.hero-content { will-change: opacity; }

/* Kurzer Kopfbereich ohne Bild (gewerbe.html) */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 1.25rem; padding-block: clamp(8rem, 22vw, 12rem) clamp(3.5rem, 9vw, 5.5rem); }

/* Abschnitte */
.section .wrap { padding-block: var(--space); display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.section-head { display: grid; gap: 1rem; max-width: 44rem; }
.section--surface { background: var(--surface); }

/* Kurzporträt unter dem Kopfbereich */
.teaser .wrap { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; align-items: center; padding-block: 3rem 1rem; }
@media (min-width: 760px) { .teaser .wrap { grid-template-columns: 8rem minmax(0, 1fr); gap: 2rem; padding-block: 4rem 1rem; } }
.teaser-photo { aspect-ratio: 1; width: 100%; margin: 0; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.teaser-photo img { width: 100%; height: 100%; object-fit: cover; }
.teaser-text { display: grid; gap: 0.6rem; max-width: 40rem; min-width: 0; }
.more-link { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; }

/* Leistungen: Gruppen mit Kacheln */
.group { display: grid; gap: 1.5rem; }
.group-head { display: grid; gap: 0.35rem; }
.group-head h3 { font-size: 1rem; letter-spacing: 0.16em; color: var(--olive); }
.group-head p { color: var(--muted); max-width: 44rem; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: grid; align-content: start; gap: 0.6rem; padding: 0 1.4rem 1.6rem; background: var(--bg); min-width: 0; }
.tile h3 { font-size: 0.88rem; }
.tile p { color: var(--muted); font-size: 0.95rem; }
.tile--text { padding-top: 1.6rem; align-content: end; }
.tile-img { margin: 0 -1.4rem 0.6rem; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tiles--two { max-width: 56rem; }
@media (min-width: 600px) { .tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Sobald die dritte Kachel (Oberflächen) eingeblendet ist: drei nebeneinander, auf dem Handy untereinander */
.tiles--two:has(> li:nth-child(3):not([hidden])) { max-width: none; }
@media (min-width: 600px) and (max-width: 759px) { .tiles--two:has(> li:nth-child(3):not([hidden])) { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .tiles--two:has(> li:nth-child(3):not([hidden])) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.area-note { color: var(--muted); max-width: 44rem; }

/* Fotos tippen zum Vergrößern */
.shot-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot-open img { transition: transform 0.6s var(--ease); }
.shot-open:hover img { transform: scale(1.03); }

/* Ablauf und Anfrage */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { display: grid; align-content: start; gap: 0.4rem; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.75rem; font-weight: 300; letter-spacing: 0.3em; color: var(--olive);
}
/* Dünne Linie von Schritt 1 zu Schritt 3: auf dem Handy senkrecht, ab 760px waagerecht */
.steps { position: relative; padding-left: 1.5rem; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 0.3rem; bottom: 0.3rem; width: 1px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--olive); transform-origin: top; }
@media (min-width: 760px) {
  .steps { padding-left: 0; padding-top: 1.5rem; }
  .steps::before, .steps::after { top: 0; bottom: auto; right: 0; width: auto; height: 1px; }
  .steps::after { transform-origin: left; }
}
.steps p { color: var(--muted); font-size: 0.92rem; }
.ask { display: grid; gap: 0.85rem; max-width: 44rem; }
@media (min-width: 640px) { .ask { grid-template-columns: 1fr 1fr; } }
.ask-call { color: var(--muted); font-size: 0.95rem; margin-top: -1rem; }

/* Über mich */
.about { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 4.5rem; align-items: center; } }
.about-img { margin: 0; aspect-ratio: 8 / 9; width: 100%; max-width: 24rem; overflow: hidden; background: var(--surface-2); }
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.about-text { display: grid; gap: 1.1rem; max-width: 38rem; }
.about-text .section-head { margin-bottom: 0.25rem; }
.about-text > p { color: var(--muted); }
.about-text .about-intro { color: var(--text); font-size: 1.1rem; }
.values { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.values li { padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 2px; font-size: 0.68rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); }

/* Referenzen (ausgeblendet, bis echte Kundenstimmen da sind) */
.quotes { display: grid; gap: 1rem; }
@media (min-width: 700px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { display: grid; gap: 0.75rem; margin: 0; padding: 1.75rem; border: 1px dashed var(--line); border-radius: 2px; color: var(--muted); }
.quote::before { content: "“"; font-size: 3rem; line-height: 0.6; color: var(--olive); font-weight: 200; }
.quote-by { font-size: 0.85rem; }

/* Für Firmen: kompakter Block auf dunklerer Fläche */
.firmen { background: var(--deep); border-block: 1px solid var(--line); }
.firmen .wrap { display: grid; gap: 2rem; padding-block: clamp(4rem, 10vw, 6.5rem); }
.firmen-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; max-width: 36rem; }
.firmen-photos figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.firmen-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.firmen-photos figure:hover img { transform: scale(1.05); }
@media (min-width: 900px) {
  .firmen .wrap { grid-template-columns: 1.15fr 1fr; column-gap: 4rem; align-items: center; }
  .firmen .section-head { grid-row: span 2; }
  .firmen-photos { max-width: none; }
}

/* Partner gesucht (gewerbe.html) */
.partner {
  display: grid; gap: 1.75rem; padding: clamp(1.75rem, 5vw, 3rem);
  background: var(--olive-deep); border-radius: 2px;
}
@media (min-width: 900px) { .partner { grid-template-columns: 1.6fr 1fr; align-items: end; gap: 3rem; } .partner > div:last-child { justify-self: end; } }
.partner p { color: rgb(237 236 229 / 0.85); }
.partner .btn--solid { background: var(--text); border-color: var(--text); color: var(--on-olive); }
.partner .btn--solid:hover { background: #ffffff; border-color: #ffffff; }

/* Häufige Fragen */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem;
  padding-block: 1.25rem; font-weight: 500; font-size: 1rem; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--olive); font-weight: 300; font-size: 1.4rem; line-height: 1; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--olive-hover); }
.faq summary:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.faq details p { color: var(--muted); padding-bottom: 1.4rem; max-width: 42rem; }

/* Kontakt */
.contact { background: var(--surface); }
.contact-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-item { display: grid; gap: 0.4rem; padding-block: 1.5rem; min-width: 0; border-bottom: 1px solid var(--line); color: var(--text); }
@media (min-width: 760px) {
  .contact-item:nth-child(odd) { padding-right: 2rem; }
  .contact-item:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
}
a.contact-item:hover { color: var(--text); }
a.contact-item:hover .value { color: var(--olive-hover); }
.contact-item .label { font-size: 0.68rem; letter-spacing: 0.3em; }
.contact-item .value { font-size: clamp(1.1rem, 4vw, 1.35rem); font-weight: 400; letter-spacing: 0.04em; overflow-wrap: anywhere; transition: color 0.2s var(--ease); }
.contact-item .hint { font-size: 0.85rem; color: var(--muted); }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 1.5rem; padding-block: 3rem; }
.site-footer img { width: 11rem; height: auto; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; color: var(--muted); font-size: 0.8rem; }
.footer-meta nav { display: flex; gap: 1.5rem; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--olive); }

/* Kontaktleiste unten, nur auf dem Handy */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.5rem;
  padding: 0.6rem var(--gutter-r) calc(0.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { min-height: 3rem; padding-inline: 0.4rem; letter-spacing: 0.12em; font-size: 0.72rem; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
/* Startseite: Leiste erst zeigen, wenn der Kopfbereich aus dem Bild ist (setzt script.js) */
.mobile-bar { transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }
.bar-wait:not(.bar-on) .mobile-bar { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* Rechtstexte */
.legal .wrap { padding-block: 8rem 5rem; }
.legal article { max-width: 44rem; display: grid; gap: 1.1rem; }
.legal h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 1rem; }
.legal h2 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.14em; margin-top: 1.75rem; }
.legal p, .legal li, .legal address { color: var(--muted); }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.legal address { font-style: normal; }
.back { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; }

/* Deutlich markierte Platzhalter – vor Veröffentlichung ersetzen */
.ph { background: rgb(185 183 156 / 0.16); color: var(--olive-hover); padding: 0.05em 0.35em; border: 1px dashed var(--olive); border-radius: 2px; }
.ph-notice { padding: 1rem 1.25rem; border: 1px dashed var(--olive); color: var(--olive-hover); font-size: 0.9rem; }

/* Bild vergrößert */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(18 19 16 / 0.96); color: var(--text); }
.lightbox::backdrop { background: rgb(18 19 16 / 0.8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 0.9rem; justify-items: center; padding: 4rem max(16px, env(safe-area-inset-left, 0px)) 3rem; max-width: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 10rem); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { font-size: 0.7rem; font-weight: 300; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lb-btn { position: fixed; border: 1px solid var(--line); background: rgb(27 28 23 / 0.8); color: var(--text); width: 3rem; height: 3rem; border-radius: 2px; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.lb-btn:hover { border-color: var(--olive); color: var(--olive-hover); }
.lb-close { top: calc(env(safe-area-inset-top, 0px) + 1rem); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev, .lb-next { bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); }
.lb-prev { left: max(16px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .lb-prev, .lb-next { bottom: auto; top: 50%; transform: translateY(-50%); } }

/* Einblenden beim Scrollen, jeweils nur einmal (Klassen setzt script.js) */
.motion .reveal, .motion .reveal-side, .motion .step {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.motion .reveal.is-in, .motion .reveal-side.is-in, .motion .is-in .step { opacity: 1; transform: none; }
/* Porträt gleitet ab 900px von der Seite ein, auf dem Handy von unten */
@media (min-width: 900px) { .motion .reveal-side { transform: translateX(-40px); } }
/* Leistungsfotos werden von unten nach oben aufgedeckt */
.motion .reveal-clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); transition-delay: var(--delay, 0s); }
.motion .reveal-clip.is-in { clip-path: inset(0 0 0 0); }
/* Ablauf: Linie zeichnet sich, Schritte folgen nacheinander */
.motion .reveal-steps::after { transform: scaleY(0); transition: transform 1.4s var(--ease) 0.1s; }
@media (min-width: 760px) { .motion .reveal-steps::after { transform: scaleX(0); } }
.motion .reveal-steps.is-in::after { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-media { transform: none !important; }
  .rotator { display: none; }
  .rotator-static { display: block; }
}
