/* ==========================================================================
   Salman GmbH — Basis, Layout, Komponenten
   ========================================================================== */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation-duration: 240ms; }
::view-transition-new(root) { animation-duration: 240ms; }

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  animation: page-in 320ms var(--ease-out) both;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.is-leaving { opacity: 0; transition: opacity 240ms ease; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-stretch: var(--display-stretch);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 .6em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Lange deutsche Komposita dürfen in Fließ-Layouts trennen */
h2, h3 { hyphens: auto; hyphenate-limit-chars: 10 4 4; }

/* H1 darf nie hart mitten im Wort umbrechen: fitHeadlines() in main.js
   skaliert die Schrift dynamisch herunter, bis das längste Wort passt.
   Nur wenn das nicht reicht (oder ohne JS), trennt die Silbentrennung. */
h1 { font-size: var(--fs-h1); hyphens: auto; hyphenate-limit-chars: 10 5 5; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

p { margin: 0 0 1.1em; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul { padding-left: 1.2em; }

::selection { background: var(--red); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* --- Utility ------------------------------------------------------------ */

.wrap {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--content-narrow); }

.eyebrow {
  display: inline-block;
  font-stretch: var(--label-stretch);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: .7em;
  transform: skewX(calc(-1 * var(--slant)));
}

.lead { font-size: 1.2rem; line-height: 1.55; color: var(--steel); }

.dark { background: var(--ink); color: var(--white); }
.dark .lead, .dark p { color: var(--mist); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }

.section { padding-block: var(--space-section); }
.section--sm { padding-block: var(--space-section-sm); }
.section--alt { background: var(--paper-2); }

/* Schräge Sektionskanten */
.slant-top { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--space-section) + var(--cut)); }
.slant-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); padding-bottom: calc(var(--space-section) + var(--cut)); margin-bottom: calc(-1 * var(--cut)); }

/* Eigene Compositor-Ebene: sonst verwirft Chromium den clip-path frameweise,
   wenn Nachfahren (Reveals, Slider, Akkordeon) Layer promoten/demoten,
   und die Kante flackert zwischen schräg und gerade */
.slant-top, .slant-bottom, .cta { transform: translateZ(0); will-change: transform; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .95em 1.9em .95em 1.5em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font);
  font-stretch: var(--label-stretch);
  font-weight: 800;
  font-size: .9375rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - .85em) 100%, 0 100%);
  transition: background var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 2px currentColor;
  clip-path: none;
}
.btn--ghost:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

.dark .btn--ghost { --btn-fg: var(--white); }
.dark .btn--ghost:hover { background: var(--white); color: var(--ink); }

.btn--phone { gap: .55em; white-space: nowrap; }
.btn .arrow { font-weight: 900; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
}
.textlink .arrow { transition: transform var(--t-fast) var(--ease-out); }
.textlink:hover .arrow { transform: translateX(4px); }

/* --- Header ------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: var(--mist);
  font-size: .8125rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 2.4rem;
  flex-wrap: wrap;
}

.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--red); }
.topbar__group { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.topbar__item svg { width: .95em; height: .95em; fill: var(--red); flex: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-med) ease;
}

.header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 15, 30, .09); }

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.6rem;
}

.header__logo { display: block; flex: none; }
.header__logo img { height: 2.4rem; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }

.nav a {
  font-weight: 700;
  font-size: .9375rem;
  font-stretch: var(--label-stretch);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: .4em;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--red);
  transform: skewX(calc(-1 * var(--slant)));
  transition: right var(--t-fast) var(--ease-out);
}

.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

.nav .btn { margin-left: .5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform var(--t-fast) ease, opacity var(--t-fast) ease;
}

/* --- Hero: Ziehharmonika ------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(21rem, 4.5fr) 7.5fr;
  min-height: min(calc(100svh - 7rem), 54rem);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  container-type: inline-size;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 4rem);
  position: relative;
  z-index: 3;
}

/* Headline skaliert mit der Spaltenbreite, damit das längste Wort
   („entstehen") immer in die Farbfläche passt und nie umbricht */
.hero .hero__copy h1 { font-size: min(var(--fs-display), 10.8cqi); }

@media (min-width: 1101px) {
  .hero .hero__copy .lead { font-size: min(1.2rem, 4.6cqi); }
}

.hero__copy h1 {
  font-size: var(--fs-display);
  color: var(--white);
  margin-bottom: .35em;
}

.hero__copy h1 em {
  font-style: italic;
  color: var(--red);
}

.hero__copy .lead { max-width: 34ch; margin-bottom: 2.2rem; color: var(--mist); }

.hero .btn--ghost { --btn-fg: var(--white); }
.hero .btn--ghost:hover { background: var(--white); color: var(--ink); }

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Akkordeon — gescherter Container. Die Panels sind volle Layer, die nur
   per translateX verschoben werden (reine Compositor-Transforms, 60 FPS).
   Jedes Panel deckt alles rechts seiner Kante ab, das nächste liegt darüber
   (Painter-Prinzip). Das Bild liegt in einer gegen-translatierten Ebene und
   steht dadurch still, während die Kanten wandern. */
.accordion {
  --acc-overhang: 6rem;
  --strip-center: 3.5rem;
  --active-w: 34rem;
  position: relative;
  overflow: hidden;
  transform: skewX(calc(-1 * var(--slant)));
  margin-right: calc(-1 * var(--acc-overhang));
}

.acc-panel {
  position: absolute;
  inset: 0;
  cursor: pointer;
  overflow: hidden;
  transform: translateX(var(--x, 0px));
  will-change: transform;
}

.accordion.is-ready .acc-panel { transition: transform 620ms var(--ease-quart); }

.acc-panel:nth-child(1) { z-index: 1; }
.acc-panel:nth-child(2) { z-index: 2; }
.acc-panel:nth-child(3) { z-index: 3; }
.acc-panel:nth-child(4) { z-index: 4; }
.acc-panel:nth-child(5) { z-index: 5; }

.acc-panel.is-active { cursor: default; }

.acc-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  border-left: 1px solid rgba(253, 253, 252, .28);
  z-index: 4;
  pointer-events: none;
}

.acc-panel__media {
  position: absolute;
  inset: -2% -24%;
  transform: translateX(calc(-1 * var(--x, 0px))) skewX(var(--slant));
  will-change: transform;
}

.accordion.is-ready .acc-panel__media { transition: transform 620ms var(--ease-quart); }

.acc-panel__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.92);
  transition: filter 620ms ease;
}

.acc-panel.is-active .acc-panel__media img { filter: saturate(1); }

.acc-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(178deg, rgba(11,15,30,.18) 30%, rgba(11,15,30,.82) 88%);
  transition: background var(--t-med) ease;
  z-index: 1;
}

.acc-panel:not(.is-active)::after { background: rgba(11, 15, 30, .58); }
.acc-panel:not(.is-active):hover::after { background: rgba(11, 15, 30, .38); }

.acc-panel__label {
  position: absolute;
  left: var(--strip-center);
  top: 50%;
  translate: -50% -50%;
  transform: skewX(var(--slant));
  writing-mode: vertical-rl;
  rotate: 180deg;
  font-stretch: var(--display-stretch);
  font-weight: 900;
  font-size: 1.0rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  z-index: 2;
  opacity: 1;
  transition: opacity var(--t-med) ease;
}

.acc-panel.is-active .acc-panel__label { opacity: 0; }

.acc-panel__body {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3.2rem);
  bottom: clamp(1.6rem, 3.5vw, 2.8rem);
  width: calc(var(--active-w) - clamp(3rem, 8vw, 6.4rem));
  z-index: 2;
  opacity: 0;
  transform: skewX(var(--slant)) translateY(14px);
  transition: opacity var(--t-med) ease 180ms, transform var(--t-med) var(--ease-out) 180ms;
  pointer-events: none;
}

.acc-panel.is-active .acc-panel__body {
  opacity: 1;
  transform: skewX(var(--slant));
  pointer-events: auto;
}

.acc-panel__body h2 {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  color: var(--white);
  margin-bottom: .3em;
}

.acc-panel__body p {
  color: rgba(253,253,252,.85);
  font-size: var(--fs-small);
  max-width: 42ch;
  margin-bottom: 1rem;
}

.acc-panel__num {
  position: absolute;
  top: 1.6rem;
  left: var(--strip-center);
  translate: -50%;
  transform: skewX(var(--slant));
  z-index: 2;
  font-stretch: var(--display-stretch);
  font-weight: 900;
  font-style: italic;
  font-size: .95rem;
  color: rgba(253,253,252,.55);
  transition: opacity var(--t-med) ease;
}

.acc-panel.is-active .acc-panel__num { opacity: 0; }

/* --- Trust-Band ---------------------------------------------------------- */

.trustband {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trustband .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.trust-item__big {
  font-stretch: var(--display-stretch);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
}

.trust-item__txt {
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--steel);
}

.trust-item__txt strong { color: var(--ink); display: block; font-size: .875rem; }

.stars { color: var(--star); letter-spacing: .1em; font-size: .9rem; white-space: nowrap; }

.trust-logos { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.trust-logos img { height: 2.6rem; width: auto; filter: grayscale(1); opacity: .75; transition: filter var(--t-fast) ease, opacity var(--t-fast) ease; }
.trust-logos img:hover { filter: none; opacity: 1; }

/* --- Leistungskarten ------------------------------------------------------ */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) ease, border-color var(--t-fast) ease;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(11,15,30,.12);
  border-color: transparent;
}

.svc-card__media {
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.6rem), 0 100%);
}

.svc-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-quart);
}

.svc-card:hover .svc-card__media img { transform: scale(1.05); }

.svc-card__body { padding: .4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }

.svc-card__icon {
  width: 3.4rem; height: 3.4rem;
  margin-top: -1.9rem;
  margin-bottom: .8rem;
  position: relative;
  z-index: 2;
}

.svc-card h3 {
  margin-bottom: .35em;
  font-stretch: 104%;
  font-size: 1.28rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.svc-card p { font-size: var(--fs-small); color: var(--steel); flex: 1; }

.svc-card .textlink { margin-top: 1.1rem; }

/* --- Zahlenband ----------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: left;
}

.stat__num {
  font-stretch: var(--display-stretch);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1;
  color: var(--red);
  display: block;
}

.stat__label {
  font-size: var(--fs-small);
  color: var(--mist);
  margin-top: .4rem;
  display: block;
}

/* --- Split-Sektionen (Bild + Text) ---------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split > * { min-width: 0; }

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  clip-path: polygon(0 0, 100% calc(var(--slant-tan) * 8%), 100% 100%, 0 calc(100% - var(--slant-tan) * 8%));
  object-fit: cover;
}

.split__media::after {
  content: "";
  position: absolute;
  left: -0.9rem; top: 1.2rem;
  width: 4.5rem; height: 4.5rem;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  z-index: -1;
}

/* --- Zitat-Slider (Rezensionen) ------------------------------------------- */

.quotes {
  position: relative;
  overflow: hidden;
}

.quotes__track {
  display: flex;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 600ms var(--ease-quart);
}

.quotes__track.is-dragging { transition: none; cursor: grabbing; }

.quote {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding-inline: 2px;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.5;
  font-weight: 500;
  max-width: 56ch;
}

.quote blockquote::before { content: "\201E"; color: var(--red); font-weight: 900; }
.quote blockquote::after { content: "\201C"; color: var(--red); font-weight: 900; }

.quote figcaption {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-small);
}

.quote figcaption strong { font-stretch: var(--label-stretch); text-transform: uppercase; letter-spacing: .05em; }

.quotes__nav {
  display: flex;
  gap: .6rem;
  margin-top: 2.2rem;
}

.quotes__btn {
  width: 2.9rem; height: 2.9rem;
  border: 2px solid var(--ink);
  background: none;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - .55rem) 100%, 0 100%);
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}

.quotes__btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.dark .quotes__btn { border-color: var(--white); color: var(--white); }
.dark .quotes__btn:hover { background: var(--red); border-color: var(--red); }

/* --- CTA-Sektion ----------------------------------------------------------- */

.cta {
  background: var(--ink);
  color: var(--white);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  /* dockt an die Vorsektion an, damit im Keil kein Seitenhintergrund aufblitzt */
  margin-top: calc(-1 * var(--cut));
  padding-top: calc(var(--space-section) + var(--cut));
  padding-bottom: var(--space-section);
  position: relative;
  overflow: hidden;
}

.cta .btn--ghost { --btn-fg: var(--white); }
.cta .btn--ghost:hover { background: var(--white); color: var(--ink); }

.cta::before {
  content: "";
  position: absolute;
  right: -6rem; top: -4rem;
  width: 26rem; height: 130%;
  background: var(--ink-2);
  transform: skewX(calc(-1 * var(--slant)));
  pointer-events: none;
}

.cta .wrap { position: relative; }

.cta h2 { max-width: 22ch; }

.cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

.cta__note { margin-top: 1.4rem; color: var(--mist); font-size: var(--fs-small); }

/* --- Footer ----------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--mist);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2.5rem;
  padding-block: var(--space-section-sm);
}

.footer__logo img { height: 2.1rem; width: auto; margin-bottom: 1.1rem; }

.footer h4 {
  color: var(--white);
  font-size: .9375rem;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { color: var(--mist); text-decoration: none; transition: color var(--t-fast) ease; }
.footer a:hover { color: var(--white); }

.footer__certs { display: flex; gap: 1.6rem; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; }
.footer__certs img {
  height: 2.4rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .6;
  transition: opacity var(--t-fast) ease;
}
.footer__certs img:hover { opacity: 1; }

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8125rem;
}

.selinqo-btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .45em .95em;
  border: 1px solid var(--line-dark);
  color: var(--mist);
  text-decoration: none;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  clip-path: polygon(0 0, 100% 0, calc(100% - .5em) 100%, 0 100%);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.selinqo-btn img { height: 1.05em; width: auto; }
.selinqo-btn:hover { color: var(--white); border-color: var(--mist); }

/* Team-Platzhalter (Karte ohne Foto) */
.team-card__ph {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background:
    linear-gradient(255deg, transparent calc(50% + 1.2rem), var(--red) calc(50% + 1.2rem), var(--red) calc(50% + 1.65rem), transparent calc(50% + 1.65rem)),
    var(--ink);
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.3rem), 0 100%);
}

.team-card__ph span {
  font-stretch: var(--display-stretch);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--white);
  letter-spacing: .02em;
}

/* --- Seitenkopf (Unterseiten) ------------------------------------------------ */

.pagehead {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.pagehead__media {
  position: absolute;
  inset: 0;
}

.pagehead__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .38;
}

.pagehead__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(11,15,30,.92) 22%, rgba(11,15,30,.35) 75%);
}

.pagehead .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.pagehead h1 { color: var(--white); max-width: 18ch; margin-bottom: .3em; }
.pagehead .lead { color: var(--mist); max-width: 52ch; }

.crumbs {
  font-size: var(--fs-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  color: var(--mist);
}

.crumbs a { color: var(--white); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { margin-inline: .5em; color: var(--red); }

/* --- Bildreihen / Galerie ----------------------------------------------------- */

.imgrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
}

.imgrow img, .gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) ease;
}

.imgrow img:hover, .gallery img:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(11,15,30,.16); }

/* --- Galerie: Filter + Mosaik --------------------------------------------------- */

.ftabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.2rem;
}

.ftab {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--steel);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-label);
  font-stretch: var(--label-stretch);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .6em 1.4em .6em 1.1em;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 100%, 0 100%);
  transition: background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.ftab:hover { border-color: var(--ink); color: var(--ink); }

.ftab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  grid-auto-rows: 10.5rem;
  grid-auto-flow: dense;
  gap: .9rem;
}

.mosaic__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  animation: mosaic-in 480ms var(--ease-out) both;
}

.mosaic__item--w { grid-column: span 2; }
.mosaic__item--t { grid-row: span 2; }
.mosaic__item--b { grid-column: span 2; grid-row: span 2; }

.mosaic__item.is-hidden { display: none; }

@keyframes mosaic-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mosaic__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  cursor: zoom-in;
  transition: transform 700ms var(--ease-quart);
}

.mosaic__item:hover img { transform: scale(1.045); box-shadow: none; }

.mosaic__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.9rem 1.1rem .8rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--white);
  background: linear-gradient(184deg, rgba(11,15,30,0) 0%, rgba(11,15,30,.82) 78%);
  opacity: 0;
  translate: 0 8px;
  transition: opacity var(--t-fast) ease, translate var(--t-fast) var(--ease-out);
  pointer-events: none;
}

.mosaic__item:hover figcaption { opacity: 1; translate: 0 0; }

@media (max-width: 700px) {
  .mosaic { grid-auto-rows: 8rem; gap: .6rem; }
}

/* --- Rezensionen ------------------------------------------------------------------ */

.review-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.review-hero__score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
}

.review-hero__num {
  font-stretch: var(--display-stretch);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: .9;
  color: var(--ink);
}

.review-hero__num::after {
  content: "";
  display: block;
  width: 2.2em;
  height: .07em;
  margin-top: .12em;
  background: var(--red);
  transform: skewX(calc(-1 * var(--slant)));
}

.stars--lg { font-size: 1.5rem; }

.review-hero__sub {
  font-weight: 700;
  font-stretch: var(--label-stretch);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: var(--fs-small);
  color: var(--steel);
}

.review-featured {
  margin: 0;
  position: relative;
  max-width: 56rem;
  padding-left: clamp(3.5rem, 8vw, 7rem);
}

.review-featured__mark {
  position: absolute;
  left: 0;
  top: -.35em;
  font-stretch: var(--display-stretch);
  font-weight: 900;
  font-size: clamp(5rem, 10vw, 8.5rem);
  line-height: 1;
  color: var(--red);
}

.review-featured blockquote {
  margin: 0 0 1.6rem;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--white);
}

.review-featured figcaption {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-featured figcaption strong {
  font-stretch: var(--label-stretch);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.review-columns {
  columns: 2;
  column-gap: 1.5rem;
}

.review-card {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}

.review-card blockquote {
  margin: .9rem 0 1.1rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.review-card figcaption {
  font-stretch: var(--label-stretch);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: var(--fs-small);
}

@media (max-width: 800px) {
  .review-columns { columns: 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 15, 30, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 70rem); max-height: 86vh; width: auto; height: auto; }

.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  line-height: 1;
  opacity: .8;
}

.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { opacity: 1; color: var(--red); }
.lightbox__close { top: 1rem; right: 1.5rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* --- FAQ ------------------------------------------------------------------------ */

.faq { display: grid; gap: .8rem; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 700;
  font-size: 1.03rem;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
  transition: rotate var(--t-fast) var(--ease-out);
}

.faq details[open] summary::after { rotate: 45deg; }

.faq details > div { padding: 0 1.4rem 1.3rem; color: var(--steel); }

/* --- Formular --------------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .form-field--full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .85em 1em;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, .14);
}

/* Ohne appearance:none rendern native Selects flacher als Text-Inputs,
   weil das UA-Widget das vertikale Padding verschluckt */
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23565b6e' stroke-width='2' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: .7em auto;
  padding-right: 2.8em;
}

.form-check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-small); color: var(--steel); }
.form-check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--red); flex: none; }

/* --- Anfahrtskarte (OpenStreetMap) ------------------------------------------------ */

.map__frame {
  display: block;
  width: 100%;
  height: 20rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1rem;
  flex-wrap: wrap;
  margin-top: .9rem;
}

.map__credit {
  font-size: var(--fs-label);
  color: var(--steel);
  text-decoration: none;
}

.map__credit:hover { text-decoration: underline; }

/* --- Hinweis-Dialog: Weiterleitung zu Google Maps ---------------------------------- */

.extern-dialog {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(11, 15, 30, .6);
}

.extern-dialog.is-open { display: flex; }

.extern-dialog__box {
  background: var(--paper);
  max-width: 30rem;
  padding: 1.8rem 2rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--red);
  box-shadow: 0 24px 60px rgba(11, 15, 30, .35);
}

.extern-dialog__box h3 { margin-bottom: .5em; }

.extern-dialog__box p {
  font-size: var(--fs-small);
  color: var(--steel);
  margin-bottom: 1.4em;
}

.extern-dialog__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .extern-dialog.is-open .extern-dialog__box { animation: extern-dialog-in 240ms var(--ease-out); }
}

@keyframes extern-dialog-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* --- Team ---------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem;
}

.team-card { background: var(--white); border: 1px solid var(--line); }

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: top;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.3rem), 0 100%);
}

.team-card__body { padding: .9rem 1.3rem 1.3rem; }
.team-card__body strong { display: block; font-stretch: var(--label-stretch); text-transform: uppercase; letter-spacing: .04em; }
.team-card__body span { color: var(--steel); font-size: var(--fs-small); }

/* --- Reveal-Animationen ---------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in { opacity: 1; transform: none; }

.reveal-clip {
  clip-path: polygon(0 0, 0 0, calc(0% - var(--slant-tan) * 100%) 100%, 0 100%);
  transition: clip-path 950ms var(--ease-quart);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-clip.is-in {
  clip-path: polygon(0 0, calc(100% + var(--slant-tan) * 100%) 0, 100% 100%, 0 100%);
}

/* --- Reduced motion / Print ------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-clip { opacity: 1; transform: none; clip-path: none; }
}

/* --- Responsive ---------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }

  /* Copy bekommt das stärkste Baustellenmotiv als Hintergrund,
     damit sofort ein Bild im ersten Viewport steht */
  .hero__copy {
    padding-block: clamp(3.5rem, 9vw, 5rem);
    background:
      linear-gradient(180deg, rgba(11,15,30,.88) 0%, rgba(11,15,30,.62) 55%, rgba(11,15,30,.92) 100%),
      url("../img/mid/Abbruch-BAd-Honnef.webp") center 28% / cover no-repeat;
  }

  /* Akkordeon wird zur horizontalen Swipe-Leiste mit Scroll-Snap */
  .accordion {
    transform: none;
    margin-right: 0;
    overflow: visible;
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: 1.1rem var(--gutter) 2.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .accordion::-webkit-scrollbar { display: none; }

  .acc-panel {
    position: relative;
    inset: auto;
    flex: 0 0 min(74vw, 21rem);
    height: 19rem;
    scroll-snap-align: start;
    transform: none !important;
    will-change: auto;
    clip-path: polygon(0 0, 100% 0, calc(100% - 1.1rem) 100%, 0 100%);
  }

  .acc-panel::before { display: none; }

  .acc-panel__media {
    inset: 0;
    transform: none !important;
    will-change: auto;
  }

  .acc-panel::after {
    background: linear-gradient(180deg, rgba(11,15,30,.08) 30%, rgba(11,15,30,.86) 82%) !important;
  }

  .acc-panel__label, .acc-panel__num { display: none; }

  .acc-panel__body {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    left: 1.2rem;
    right: 1.9rem;
    width: auto;
    bottom: 1.2rem;
  }

  .acc-panel__body h2 { font-size: 1.15rem; }
  .acc-panel__body p { font-size: .85rem; margin-bottom: .6rem; }
}

@media (max-width: 1080px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(21rem, 88vw);
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform var(--t-med) var(--ease-out);
    z-index: 150;
  }

  .nav.is-open { transform: none; box-shadow: -20px 0 60px rgba(11,15,30,.4); }
  .nav a { color: var(--white); font-size: 1.15rem; }
  .nav .btn { margin: 1rem 0 0; }

  .nav-toggle { display: block; position: relative; z-index: 160; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--white); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--white); }

  .topbar__group--hours { display: none; }

  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --fs-body: 1rem; }

  .topbar .wrap { justify-content: center; }
  .topbar__group--address { display: none; }

  .hero__actions .btn { width: 100%; justify-content: center; }

  .acc-panel { flex-basis: 82vw; height: 17rem; }

  .trustband .wrap { justify-content: flex-start; gap: 1.2rem 2rem; }

  .quotes__nav { margin-top: 1.6rem; }
}
