/* BEYOND Protection Services
   Brand: black ground, light grey running text, white for headlines, links and the action.
   One typeface (Manrope). Links are never underlined and have no hover state; white marks them. Footer links stay grey. */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope.ttf") format("truetype-variations"), url("assets/fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: transparent;   /* no ground behind pictures, so Safari's bar takes its colour from the page itself */
  --surface-2: #1e1e1e;
  --text: #b4b4b4;      /* running text */
  --muted: #8a8a8a;     /* secondary notes */
  --ink: #ffffff;       /* headlines, links, highlights */
  --accent: #ffffff;
  --accent-ink: #000000;

  --head-weight: 300;   /* large headlines are set light (Sebo, 2026-10-17) */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* five type steps */
  --step-small: 0.875rem;                                  /* 14 */
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);      /* 16–18 */
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.875rem);   /* 20–30 */
  --step-head: clamp(2rem, 1.2rem + 3vw, 3.75rem);          /* 32–60 */
  --step-section: clamp(1.75rem, 1.1rem + 2vw, 2.75rem);  /* section headlines, deliberately calmer than the hero */
  --step-display: clamp(3rem, 6.4vw, 7rem);                  /* hero */

  /* type rhythm: one line-height and tracking per size, used everywhere (light weights need less negative tracking) */
  --lh-display: 1.06; --ls-display: -0.012em;
  --lh-head: 1.1;     --ls-head: -0.008em;
  --lh-lead: 1.38;    --ls-lead: 0em;
  --lh-title: 1.25;   --ls-title: -0.01em;
  --lh-body: 1.47;
  /* vertical rhythm inside a block: one gap from title to text, one from text to link or button */
  --gap-title: 0.5rem;
  --gap-action: 1.5rem;
  --margin: clamp(1.25rem, 3.3vw, 3rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7rem, 13vw, 13rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-arrow: cubic-bezier(0.22, 1, 0.36, 1);
  /* text motion, the same everywhere */
  --title-fade: 1100ms; --title-step: 140ms;
  --reveal-fade: 800ms; --reveal-move: 1000ms; --reveal-rise: 20px; --reveal-step: 80ms;
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--step-body); line-height: var(--lh-body); font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--ink); text-decoration: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; color: var(--ink); }
strong { color: var(--ink); }
p { text-wrap: pretty; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { padding-inline: var(--margin); }

.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); font-weight: 600; font-size: var(--step-body);
  text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.button:active { transform: scale(0.97); }
.link, .link-plain { text-decoration: none; }

/* controls and card links are not text to select */
.button, .nav, .lang, .menu-toggle, .to-top, .brand, .footer-brand, .scene-link, .card-link, .cards-all, .f-first, img { -webkit-user-select: none; user-select: none; }

/* ---------- link arrow: every link outside navigation and footer ends in an arrow,
   which turns 45° to the upper right on hover ---------- */
:root { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 12h17M13.5 5.5 20 12l-6.5 6.5'/%3E%3C/svg%3E"); }
main a:not(.scene-link):not(.card-link)::after, .hero-body a::after, .more::after {
  content: ""; display: inline-block; flex: none;
  width: 1.15em; height: 1.15em; margin-left: 0.45em; vertical-align: -0.22em;
  background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transform-origin: 50% 50%;
  /* one calm curve in both directions, no overshoot */
  transition: transform 520ms var(--ease-arrow);
}
@media (hover: hover) and (pointer: fine) {
  /* the arrow turns towards the upper right */
  main a:hover::after, .hero-body a:hover::after, a:hover .more::after { transform: translate(0.06em, -0.06em) rotate(-45deg); }
}
main a:active::after, .hero-body a:active::after, a:active .more::after { transform: translate(0.06em, -0.06em) rotate(-45deg) scale(0.92); transition-duration: 160ms; }
@media (prefers-reduced-motion: reduce) {
  main a::after, .hero-body a::after { transition: none !important; }
}

/* ---------- page stack: the page slides off the footer ---------- */
.page { position: relative; z-index: 2; background: var(--bg); }

/* ============ HERO ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr;
  padding: 2rem var(--margin) clamp(2.5rem, 5vw, 4.5rem);
}
.hero-page { min-height: 100svh; }
.hero-media { position: absolute; inset: 0; z-index: -1; margin: 0; background: transparent; overflow: hidden; clip-path: inset(0); }
.hero-media img { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: -1px; z-index: 1;  /* -1px: no seam of photo at the edges */
  /* the photo dissolves into the page black at the bottom, so the hero has no hard edge */
  background: linear-gradient(to top,
    rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.97) 8%, rgba(0, 0, 0, 0.82) 22%,
    rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.62) 100%); /* taste-skill-ignore: neutral scrim under text on a photo */
}

.topbar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 3rem; column-gap: 2rem; }
.brand { display: block; width: 26px; justify-self: start; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; gap: 2.5rem; font-size: var(--step-body); }
.nav a { color: var(--text); transition: color 180ms ease; }
.nav a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
.lang { justify-self: end; display: flex; align-items: center; gap: 0.7rem; font-size: var(--step-body); font-weight: 400; letter-spacing: 0; }  /* same type as the navigation */
.lang-menu { display: none; }
.lang-sep { width: 1px; height: 0.95em; background: var(--muted); }
.lang-item { color: var(--text); }
.lang-item[aria-current="true"] { color: var(--ink); }
.menu-toggle { display: none; color: var(--ink); }

.hero-body {
  align-self: end;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); grid-template-rows: auto auto;
  column-gap: clamp(2rem, 5vw, 5rem); align-items: end;
}
.hero-title {
  grid-column: 1; grid-row: 2;
  font-size: var(--step-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: var(--head-weight);
  margin-left: -0.05em;
}
.lines .line { display: block; }
.lines [data-line] { display: block; white-space: nowrap; }
.hero-side { grid-column: 2; grid-row: 2; padding-bottom: 0.35em; }
.hero-lead { color: var(--text); line-height: var(--lh-body); max-width: 34ch; }
.hero-action { margin-top: var(--gap-action); }

/* No eyebrows. Every section opens with a real headline: white, large, light, written as a sentence.
   Supporting copy sits offset to the right underneath, so the eye moves down the page in one line. */
.section-title { color: var(--ink); font-size: var(--step-section); font-weight: var(--head-weight); line-height: var(--lh-head); letter-spacing: var(--ls-head); max-width: 30ch; margin-bottom: clamp(3rem, 6vw, 5rem); }

.lede { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
/* right after the hero: close enough that the answer reads as the continuation of the headline */
#inhalt > .lede:first-child { padding-top: clamp(2.5rem, 6vw, 5.5rem); }
.lede-title { grid-column: 1 / span 10; max-width: 24ch; margin-bottom: 0; text-wrap: pretty; }  /* fill the measure instead of balancing, so every lede is equally wide */
.lede-body { grid-column: 7 / -1; margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 40ch; font-size: var(--step-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); }
.lede-body strong, .hl { color: var(--ink); font-weight: inherit; }  /* Apple's two-tone paragraph: grey text, the key phrase in white */
.lede-body a { display: inline-block; margin-top: var(--gap-action); font-size: var(--step-body); letter-spacing: 0; }

/* ============ INTRO ============ */

/* ============ LEISTUNGEN ============ */
.services {
  padding-top: var(--section);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: start;
}

.group + .group { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.group-name { font-size: var(--step-small); font-weight: 400; color: var(--muted); margin-bottom: 1rem; }

/* ============ BILDBAND ============ */

.band { margin-top: var(--section); height: min(86svh, 56vw); overflow: hidden; background: var(--surface); }

/* ============ AUSGANGSLAGE: EIN GEWÖHNLICHER TAG ============
   Quiet on purpose: read like an agenda. Time on the left, what happens on the right, plenty of air,
   each line simply fading in. No pinning, no sideways movement. */

/* ============ ERSCHEINEN, OHNE BEWEGUNG ============
   A section that waits: the content before it fades out while it scrolls away, then this content simply
   appears in the middle of the screen, without moving, and stays for a moment. Used for the conclusion of
   the situations and for the invitation at the end. main.js sets --show here and --fade on the section before. */
.appear { padding-block: var(--section); }
.appear-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.appear.is-live { height: 200svh; padding-block: 0; }
.appear.is-live .appear-stage { position: sticky; top: 0; height: 100svh; opacity: var(--show, 0); }

.is-leaving { opacity: var(--fade, 1); }

/* ============ FÜR WEN: ZWEI HOCHFORMATE, VERSETZT ============ */
.people { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.person { grid-column: 1 / span 5; }
.person-low { grid-column: 7 / span 5; margin-top: clamp(6rem, 14vw, 14rem); }
.person-pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); margin-bottom: 1.75rem; }
.person-pic img { width: 100%; height: 100%; object-fit: cover; }
.person-title { font-size: var(--step-lead); font-weight: 500; line-height: var(--lh-title); letter-spacing: var(--ls-title); margin-bottom: var(--gap-title); }
.person p { max-width: 40ch; }

/* ============ UNTERNEHMEN ============ */
.facts-row { padding-top: clamp(4rem, 8vw, 7rem); }
.facts-line { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.facts-line > div { grid-column: span 2; }
.facts-line > div:first-child { grid-column: 7 / span 2; }
.facts-line > div:nth-child(2) { grid-column: span 2; }
.facts-line dt { color: var(--muted); font-size: var(--step-small); }
.facts-line dd { margin-top: var(--gap-title); color: var(--ink); line-height: var(--lh-title); }
.values { padding-top: var(--section); }
.values-title { max-width: 32ch; margin-bottom: clamp(3rem, 6vw, 5rem); }  /* a quiet line on the way to the region, no stage of its own */
.region { padding-top: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.region-pic { grid-column: 1 / span 7; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); margin: 0; }
.region-pic img { width: 100%; height: 100%; object-fit: cover; }
.region-copy { grid-column: 9 / -1; }
.region-copy .section-title { margin-bottom: clamp(2rem, 4vw, 3rem); }
.region .region-list { display: block; }
.region .region-item + .region-item { margin-top: 1.25rem; }
.region .region-name { font-size: var(--step-lead); line-height: var(--lh-title); letter-spacing: var(--ls-title); }
.region .region-state { margin-top: var(--gap-title); font-size: var(--step-small); }
.region-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.region-name { display: block; color: var(--muted); font-size: var(--step-head); font-weight: var(--head-weight); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.region-state { display: block; margin-top: 0.9rem; color: var(--muted); font-size: var(--step-body); }
.region-item.is-active .region-name { color: var(--ink); }
.region-item.is-active .region-state { color: var(--text); }

/* ============ KONTAKT ============ */
.reach { padding-top: calc(var(--section) * 0.75); padding-bottom: 0; }
.reach-grid { display: flex; flex-wrap: wrap; column-gap: clamp(3rem, 8vw, 8rem); row-gap: 2.5rem; }
.reach-label { color: var(--muted); font-size: var(--step-small); margin-bottom: var(--gap-title); }
.reach-value { display: block; color: var(--ink); font-size: var(--step-lead); font-weight: var(--head-weight); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); }
.reach-value::after { display: none !important; }
.reach-note { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 44ch; }  /* directly under the two ways to reach us */

/* ============ WEITERE LEISTUNGEN: KARTEN ============ */
.cards { padding-top: var(--section); }
.card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; }
.card-link, .scene-link { display: block; color: inherit; }
.card-pic { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); margin-bottom: 1.5rem; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1400ms var(--ease-arrow); }
.card-name { font-size: var(--step-lead); font-weight: 500; line-height: var(--lh-title); letter-spacing: var(--ls-title); }
.card-desc { margin-top: var(--gap-title); }
.card .more, .scene-cap .more { display: inline-block; margin-top: var(--gap-action); color: var(--ink); }
.cards-head { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(3rem, 6vw, 5rem); }
.cards-head .section-title { margin-bottom: 0; }

/* ============ SZENE: DIE LEISTUNGEN ============
   Pinned for a few screens. A close-up fills the screen under a headline; the words fade, the veil lifts,
   then the picture steps back and becomes the first of three services, which settle into a row with their
   names. main.js writes the progress into custom properties. Without script or with reduced motion it is
   a plain headline above the three services. */
.soft { color: var(--muted); }
.scene { position: relative; padding-top: var(--section); --cw: 26vw; --gap: 3vw; }
.scene-stage { position: relative; background: var(--bg); }
.scene-row { display: grid; grid-template-columns: repeat(3, var(--cw)); column-gap: var(--gap); justify-content: center; }
.scene-pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.scene-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1400ms var(--ease-arrow); }
@media (hover: hover) and (pointer: fine) {
  /* only the "Mehr erfahren" link is clickable; hovering it lets the picture settle out */
  .scene:not(.is-live) .scene-card:has(.more:hover) .scene-pic img, .scene.is-settled .scene-card:has(.more:hover) .scene-pic img,
  .card:has(.more:hover) .card-pic img { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .scene-pic img, .card-pic img { transition: none; } }
.scene-cap { padding-top: 1.5rem; }
.scene-name { font-size: var(--step-lead); font-weight: 500; line-height: var(--lh-title); letter-spacing: var(--ls-title); }
.scene-desc { margin-top: var(--gap-title); }
.scene-veil { display: none; }
.scene-copy { padding-bottom: clamp(3rem, 6vw, 5rem); text-align: center; }
.scene-title { font-size: var(--step-display); font-weight: var(--head-weight); line-height: var(--lh-display); letter-spacing: var(--ls-display); }

.scene.is-live { height: 310svh; padding-top: 0; margin-top: calc(var(--section) * 0.6); }
.scene.is-live .scene-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; clip-path: inset(0); }  /* clips the fixed row: a window onto it */
/* after the scene has played once it is one plain screen; scrolling back only scrolls */

.scene.is-live.is-played .scene-row { position: absolute; }
  /* the words have long scrolled past */
.scene.is-live .scene-row {
  position: fixed; left: 50%; top: 50%; width: max-content;
  transform: translate3d(-50%, -50%, 0) translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--s, 1));
  transform-origin: var(--ox, 50%) var(--oy, 50%); will-change: transform;
}
.scene.is-live .scene-card:not(.is-first) .scene-pic { opacity: var(--rest, 1); }
.scene.is-live .scene-cap { opacity: var(--cap, 1); transform: translate3d(0, calc((1 - var(--cap, 1)) * var(--reveal-rise)), 0); }
.scene.is-live:not(.is-settled) .scene-cap .more { pointer-events: none; }
.scene.is-live:not(.is-settled) .scene-cap .more::after { transform: none; }
.scene.is-live .scene-veil { display: block; position: absolute; inset: 0; background: #000; opacity: var(--veil, 0.5); pointer-events: none; }
/* like Apple's "Eye-opening control": the words are never held, they scroll over the picture like any text,
   while the picture behind is already moving from the moment it enters the screen */
.scene.is-live .scene-copy {
  position: absolute; left: 0; right: 0; top: 55svh; z-index: 3; padding: 0 var(--margin); pointer-events: none;
}
.scene.is-live .scene-title .soft { color: rgba(255, 255, 255, 0.62); } /* taste-skill-ignore: grey that stays readable over the photo */
 /* taste-skill-ignore: grey that stays readable over the photo */

/* ============ ABLAUF ============ */
.steps { padding-top: var(--section); }

.steps { padding-top: var(--section); }
.step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: 3rem; }
.step-list .step-title { font-size: var(--step-lead); font-weight: 500; letter-spacing: var(--ls-title); line-height: var(--lh-title); }
.step-list .step p { margin-top: var(--gap-title); max-width: 34ch; }
.step-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.step-title { font-size: var(--step-lead); line-height: var(--lh-title); letter-spacing: var(--ls-title); font-weight: 500; }
.step p { max-width: 34ch; }

/* ============ BILDPAAR ============ */

/* ============ HALTUNG ============ */

.record li { color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.4rem; font-size: var(--step-body); }

/* ============ ZIELGRUPPEN ============ */
.audience { padding-top: var(--section); }

/* ============ EINSATZGEBIET ============ */

/* ============ FAQ ============ */
.faq {
  padding-top: var(--section); padding-bottom: var(--section);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
}
.faq-title { grid-column: 1 / -1; }
.faq-text { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem; row-gap: 2.25rem; align-items: start; }
.faq-text p { line-height: var(--lh-body); }
.faq-text strong { display: block; margin-bottom: var(--gap-title); font-weight: 500; }  /* the question stands on its own line */

/* ============ ANFRAGE ============ */
.request { background: var(--surface); padding-block: var(--section); }


/* ============ KONTAKT (Startseite) ============ */
.cta-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cta .cta-title { font-size: var(--step-head); font-weight: var(--head-weight); line-height: var(--lh-head); letter-spacing: var(--ls-head); max-width: 26ch; }
.cta-side { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; align-items: center; }
.cta-side p { margin-inline: auto; }
.cta-actions { justify-content: center; }
.cta-title { max-width: 26ch; margin-bottom: 0; }
.cta-side p { max-width: 36ch; font-size: var(--step-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); }  /* same size as the supporting text elsewhere */
.cta-actions { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

/* ============ FOOTER ============ */
#inhalt { padding-bottom: var(--section); }
.faq { padding-bottom: 0; }

.footer {
  /* the footer is the one light surface: white ground, black emblem, dark type. On larger screens it rests
     behind the page, which slides off it at the end (see the close of this file) */
  position: relative;
  min-height: 50svh;
  --f-ink: #000000; --f-text: #3a3a3a; --f-muted: #7a7a7a;
  background: #ffffff; color: var(--f-text);
  padding-top: clamp(2.5rem, 4vw, 3.5rem); padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex; justify-content: space-between; align-items: stretch; gap: 3rem;
}
.footer-left { flex: 0 1 50%; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }  /* the columns start in the middle of the page */
.footer-brand { display: block; width: clamp(52px, 4.6vw, 70px); }
.footer-brand img { width: 100%; height: auto; }
.footer-cols { flex: none; display: grid; grid-template-columns: repeat(3, max-content); column-gap: clamp(2.5rem, 5vw, 5rem); font-size: var(--step-body); line-height: 1.75; }
.footer-cols .f-first { color: var(--f-muted); font-size: var(--step-small); margin-bottom: var(--gap-title); }
.footer a { color: var(--f-ink); }
.copyright { font-size: var(--step-small); color: var(--f-muted); }
.footer .to-top {
  position: absolute; right: var(--margin); bottom: clamp(1.5rem, 2.5vw, 2.25rem);
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: var(--step-small); color: var(--f-muted); line-height: 1;
}
.to-top::after {
  content: ""; display: inline-block; width: 1.15em; height: 1.15em; margin-left: 0.45em; vertical-align: -0.22em;
  background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transform: rotate(-90deg); transition: transform 520ms var(--ease-arrow);
}
@media (hover: hover) and (pointer: fine) {
  .to-top:hover::after { transform: rotate(-45deg); }
}
.to-top:active::after { transform: rotate(-45deg) scale(0.92); transition-duration: 160ms; }
@media (prefers-reduced-motion: reduce) { .to-top::after { transition: none !important; } }

/* ============ SEITENBILD ============ */

/* ============ INDEX DER LEISTUNGEN ============ */

/* ============ GRUNDSÄTZE ============ */

/* ============ GRÜNDER ============ */

/* ============ LEISTUNGSBLÖCKE ============ */
.service-block { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.service-figure { grid-column: 1 / span 6; grid-row: 1; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.service-figure img { width: 100%; height: 100%; object-fit: cover; }
.service-copy { grid-column: 8 / -1; grid-row: 1; }
.service-block.flip .service-figure { grid-column: 7 / -1; }
.service-block.flip .service-copy { grid-column: 1 / span 5; }
.service-title { font-size: var(--step-head); line-height: var(--lh-head); letter-spacing: var(--ls-head); font-weight: var(--head-weight); }

.service-tagline { margin-top: var(--gap-title); color: var(--text); font-size: var(--step-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); }
.service-text { margin-top: var(--gap-action); max-width: 44ch; }

.button-quiet { margin-top: 2.25rem; background: var(--surface-2); color: var(--ink); }

/* ============ ERREICHBARKEIT ============ */

/* ============ RECHTLICHES ============ */
.legal-head { padding-top: 2.75rem; padding-bottom: clamp(4rem, 9vw, 8rem); --axis: 42%; }
.legal-title { margin-top: clamp(5rem, 14vw, 12rem); margin-left: var(--axis); font-size: var(--step-head); font-weight: var(--head-weight); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
.legal { padding-bottom: 0; }
.legal-block { display: grid; grid-template-columns: 42% minmax(0, 40rem); padding-block: 1.5rem; }
.legal-block h2 { font-size: var(--step-body); font-weight: 600; padding-right: var(--gutter); }
.legal-text p { max-width: 62ch; }
.legal-text p + p { margin-top: 0.9em; }

/* ============ PHONE / TABLET ============ */
@media (max-width: 60rem) {
  /* full-screen menu: black field, large links rising in one after another */
  .nav {
    position: fixed; inset: 0; z-index: 50;
    display: flex; flex-direction: column; justify-content: center; gap: 0.25rem;
    padding: 6rem var(--margin) 4rem; background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity 280ms ease, visibility 0s linear 280ms;
  }
  .nav a {
    font-size: clamp(2.25rem, 10vw, 3.75rem); font-weight: var(--head-weight); line-height: var(--lh-head); letter-spacing: var(--ls-head);
    color: var(--text); padding-block: 0.2rem;
    opacity: 0; transform: translateY(18px);
    transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
  }
  .nav a[aria-current="page"] { color: var(--ink); }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity 320ms ease, visibility 0s; }
  .nav.is-open a { opacity: 1; transform: none; transition-delay: calc(var(--n, 0) * 70ms + 120ms); }
  html.menu-open { overflow: hidden; }
  html.menu-open .hero, html.menu-open .legal-head { z-index: 100; }
  .legal-head { position: relative; }
  .brand, .menu-toggle { position: relative; z-index: 60; }
  .lang-bar { display: none; }
  .lang-menu {
    display: flex; margin-top: 3rem; font-size: var(--step-body);
    opacity: 0; transform: translateY(18px); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
  }
  .nav.is-open .lang-menu { opacity: 1; transform: none; transition-delay: calc(var(--n, 0) * 70ms + 120ms); }
  .nav .lang-menu a, .nav .lang-menu .lang-item { font-size: inherit; letter-spacing: 0.02em; padding: 0; opacity: 1; transform: none; }
  .menu-toggle { justify-self: end; }
  /* the button sits in the last column; its lines end as far from the edge as the emblem starts (the 44px tap area
     reaches 10px past them) */
  .menu-toggle { grid-column: -1; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-right: -10px; }
  .burger { position: relative; display: block; width: 24px; height: 10px; }
  .burger span {
    position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
    transition: transform 320ms var(--ease-in-out), top 320ms var(--ease-in-out);
  }
  .burger span:first-child { top: 0; }
  .burger span:last-child { top: 8px; }
  .menu-toggle[aria-expanded="true"] .burger span:first-child { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .burger span:last-child { top: 4px; transform: rotate(-45deg); }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-body { grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); }
  .topbar { grid-template-columns: auto 1fr auto; }

  .service-copy { grid-column: 7 / -1; }
  .service-block.flip .service-copy { grid-column: 1 / span 6; }

  .faq-text { grid-column: 1 / -1; }
  .lede-title { grid-column: 1 / -1; }
  .lede-body { grid-column: 5 / -1; }
}

@media (max-width: 47.99rem) {
  /* one even rhythm between sections on phones */
  :root { --section: 6rem; }
  #inhalt > .lede:first-child { padding-top: 4.5rem; }  /* clear room after the hero */
  .hero { padding: 1.25rem var(--margin) 1.75rem; }
  .topbar { gap: 1.5rem; }
  .brand { width: 22px; }
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .hero-title { grid-column: 1; grid-row: 2; font-size: 10.5vw; }
  .hero-side { grid-column: 1; grid-row: 3; margin-top: 1.5rem; padding-bottom: 0; }
  .hero-lead { font-size: 1.0625rem; max-width: 32ch; }
  .hero-action { display: none; }  /* phones: no button in the hero (Sebo) */
  /* phones: the navigation stays at the top, on black */
  .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; padding: 1rem var(--margin); background: var(--bg); }
  .hero { padding-top: 4.75rem; z-index: 10; grid-template-rows: 1fr; }  /* z-index lifts the fixed bar above what scrolls under it; the words stay bottom left */
  .legal-head { z-index: 10; }
  /* the page ends on the white footer: Safari's bottom bar and the space under it show white too */
  html { background: #ffffff; }
  body { background: transparent; }
  .legal-head { padding-top: 6rem; }

  .services { display: block; }

  .group + .group { margin-top: 2rem; }

  .band { height: 72svh; }
  .scene { --cw: calc(100vw - 2 * var(--margin)); --gap: 1.5rem; }
  /* phones: the three services one below the other, each a wide picture with its text underneath */
  .scene-row { grid-template-columns: var(--cw); row-gap: 3.5rem; }
  .scene-link { display: block; }
  .scene-pic { aspect-ratio: 4 / 3; }
  .scene-cap { padding-top: 1.25rem; }
  /* the headline stands above the pictures, aligned left like every other headline; the pictures open and the
     words come in like everywhere else on the site (main.js) */
  .scene.is-mob .scene-copy { padding-bottom: 3rem; text-align: left; }
  .js .mob-shutter img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1200ms var(--ease-in-out), transform 1600ms var(--ease-soft); }
  .js .mob-shutter.is-in img { clip-path: inset(0); transform: none; }
  .scene-desc { font-size: 1.0625rem; line-height: 1.45; }
  .scene-cap .more { margin-top: 0.75rem; font-size: 0.9375rem; }
  .scene-title { font-size: 2rem; }  /* same size as the other section headlines on phones */

  .lede { display: block; }
  .step-list { grid-template-columns: 1fr; row-gap: 2.25rem; }
  .step-list.cols-3 { grid-template-columns: 1fr; }
  .step-list .step p { font-size: 1.0625rem; }
  .cta .cta-title { font-size: 2.25rem; }
  .people { display: block; }
  .person-low { margin-top: 3.5rem; }

  .facts-line { display: grid; grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .facts-line > div, .facts-line > div:first-child, .facts-line > div:nth-child(2) { grid-column: auto; }
  .facts-line > div:last-child { grid-column: 1 / -1; }
  .region { display: block; }
  .region-pic { margin-bottom: 2.5rem; }
  .reach-grid { display: block; }
  .reach-item + .reach-item { margin-top: 2rem; }
  .reach-note { margin-left: 0; }
  .card-row { grid-template-columns: 1fr; }

  .lede-body { margin-top: 3rem; font-size: 1.0625rem; line-height: 1.5; }
  .section-title { font-size: 2rem; margin-bottom: 2.75rem; }
  /* white headlines of cards and blocks: one size, clearly above the text */
  .scene-name, .card-name, .person-title, .spec-name, .step-list .step-title { font-size: 1.5rem; line-height: 1.2; }
  .lede-title { margin-bottom: 0; }

  .record + .record { margin-top: 2.5rem; }

  .cta { grid-template-columns: 1fr; row-gap: 2rem; }
  .cta-actions .button { width: 100%; }

  .faq { display: block; }
  .faq-text { grid-template-columns: 1fr; margin-top: 1.5rem; }

  .service-block { display: block; }
  .service-figure { aspect-ratio: 4 / 3; margin-bottom: 2rem; }

  .legal-head { padding-top: 1.25rem; }
  .legal-title { margin-left: 0; margin-top: 5rem; }
  .legal-block { display: block; }
  .legal-block h2 { margin-bottom: 0.5rem; }
  /* phones: emblem on top, the three columns one below the other, the copyright last; no "Nach oben" */
  .footer {
    position: relative; min-height: 0;
    display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "cols" "copy";
    row-gap: 3rem; column-gap: 1.5rem; align-items: end;
    padding-top: 3rem; padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
  .footer-left { display: contents; }
  .footer-brand { grid-area: brand; width: 58px; }
  .footer-cols { grid-area: cols; width: auto; grid-template-columns: 1fr; row-gap: 2rem; font-size: 1rem; }
  .copyright { grid-area: copy; }
  .footer .to-top { display: none; }  /* phones: no back-to-top link (Sebo) */
  .lang { justify-self: end; }
  .copyright, .footer .to-top { font-size: 0.8125rem; }
}

/* ============ SEITENWECHSEL (nur Desktop) ============
   One continuous upward movement: a black panel rises from the bottom and covers the page, which lifts
   with it at a slower rate (parallax). On the new page the panel carries on upwards and leaves through
   the top, while the new page rises into place behind it. Driven by main.js. */
:root { --ease-curtain: cubic-bezier(0.83, 0, 0.17, 1); --ease-curtain-leave: cubic-bezier(0.55, 0, 0.15, 1); --pt-out: 620ms; --pt-in: 680ms; }
html::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: var(--bg); transform: translate3d(0, 100%, 0);
}
html.pt-leaving::after { animation: curtain-cover var(--pt-out) var(--ease-curtain) forwards; }
html.pt-leaving body { animation: page-lift var(--pt-out) var(--ease-curtain) forwards; }
html.pt-entering::after { animation: curtain-leave var(--pt-in) var(--ease-curtain-leave) both; }
html.pt-entering body { animation: page-rise var(--pt-in) var(--ease-curtain-leave) both; }
@keyframes curtain-cover { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes curtain-leave { from { transform: none; } to { transform: translate3d(0, -100%, 0); } }
@keyframes page-lift { to { transform: translate3d(0, -14vh, 0); } }
@keyframes page-rise { from { transform: translate3d(0, 14vh, 0); } to { transform: none; } }
@media (max-width: 60rem), (prefers-reduced-motion: reduce) {
  html::after { display: none; }
  html.pt-leaving body, html.pt-entering body { animation: none; }
}

/* ============ MOTION ============ */
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  /* hero type simply fades in, line by line; no sliding (Sebo) */
  /* one system for all text on the site:
     - page titles (hero, legal pages) and what stands with them only fade in, line by line in reading order (Sebo: no sliding)
     - everything further down rises a little as it fades in, the moment it enters the screen, one after another
     - the pinned closing and the services scene are tied to the scroll instead (see their sections) */
  .js .lines [data-line], .js [data-rise] { opacity: 0; animation: fade-in var(--title-fade) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * var(--title-step) + 200ms); }

  .js [data-reveal] { opacity: 0; transform: translateY(var(--reveal-rise)); transition: opacity var(--reveal-fade) var(--ease-out), transform var(--reveal-move) var(--ease-out); transition-delay: calc(var(--d, 0) * var(--reveal-step)); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* the figure stays unclipped so the observer can see it; the picture inside opens like a shutter, top to bottom */
  .js .shutter[data-reveal] { opacity: 1; transform: none; background: transparent; }
  .js .shutter[data-reveal] img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1200ms var(--ease-in-out), transform 1600ms var(--ease-soft); transition-delay: calc(var(--d, 0) * 120ms); }
  .js .shutter[data-reveal].is-in img { clip-path: inset(0); transform: none; }

  .js [data-stagger] > *, .js [data-stagger] li { opacity: 0; transform: translateY(var(--reveal-rise)); transition: opacity var(--reveal-fade) var(--ease-out), transform var(--reveal-move) var(--ease-out); transition-delay: calc(var(--k, 0) * var(--reveal-step)); }
  .js [data-stagger].is-in > *, .js [data-stagger].is-in li { opacity: 1; transform: none; }

  /* the one moving picture: a slow drift across the night street */
  .hero-media img.drift { animation: drift 26s var(--ease-in-out) infinite alternate; }
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-2.5%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-media img.drift { animation: none; }
  .nav, .nav a { transition: opacity 150ms ease !important; transform: none !important; }
  .burger span { transition: none; }
}

/* the close of a page: invitation and footer share the last screen. The invitation is held in the space
   above the footer, so it never moves again once it has appeared; at the end of the page you see both. */
@media (min-width: 48rem) {
  :root { --footer-h: clamp(16rem, 34svh, 22rem); }
  .footer { height: var(--footer-h); min-height: 0; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; }
  .page { margin-bottom: var(--footer-h); }  /* the page ends above the footer and slides off it */
  .footer > * { transform: translate3d(0, var(--fo, 0px), 0); will-change: transform; }  /* parallax, set by main.js */
  #inhalt:has(> .cta:last-child) { padding-bottom: 0; }
  .cta.appear.is-live { height: calc(200svh - var(--footer-h)); }
  .cta.appear.is-live .appear-stage { height: calc(100svh - var(--footer-h)); }
}

/* Leistungen page: the picture rests slightly enlarged and settles out while the "Mehr erfahren" button is hovered */
@media (prefers-reduced-motion: no-preference) {
  .js .service-block .service-figure.shutter[data-reveal].is-in img { transform: scale(1.08); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .js .service-block:has(.button:hover) .service-figure.shutter[data-reveal].is-in img { transform: scale(1); transition: clip-path 1200ms var(--ease-in-out), transform 1400ms var(--ease-arrow); transition-delay: 0ms; }
}

/* ============ LEISTUNGS-UNTERSEITEN: UMFANG ============
   Same vocabulary as the homepage: a two-tone headline across the page, then a picture that opens like a
   shutter on the left and, offset beside it, the areas of the service with their parts. No lines, only space. */
.spec { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.spec-title { grid-column: 1 / -1; }
.spec-pic { grid-column: 1 / span 5; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); margin: 0; }
.spec-pic img { width: 100%; height: 100%; object-fit: cover; }
.spec-rows { grid-column: 7 / -1; display: grid; row-gap: clamp(2.75rem, 4.5vw, 4rem); }
.spec.has-pic .spec-rows { align-self: center; }  /* centred beside the picture, as on the Leistungen page */
.spec:not(.has-pic) .spec-rows { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.spec-name { color: var(--ink); font-size: var(--step-lead); font-weight: 500; line-height: var(--lh-title); letter-spacing: var(--ls-title); margin-bottom: var(--gap-title); }
.spec-items li { color: var(--text); font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.375rem); line-height: 1.42; }
.spec-items li + li { margin-top: 0.35rem; }
.spec-items li { max-width: 44ch; }
@media (max-width: 47.99rem) {
  .spec { display: block; }
  .spec-pic { margin-bottom: 3rem; }
  .spec.has-pic .spec-rows { margin-top: 0; }
  .spec:not(.has-pic) .spec-rows { grid-template-columns: 1fr; }
}

/* presence: three ways of being there, set large like the homepage statements */

.band-still img { width: 100%; height: 100%; object-fit: cover; }

/* back to the overview, above the service name in the hero */
.crumb { margin-bottom: clamp(1rem, 2vw, 1.5rem); font-size: var(--step-body); }
.crumb a { color: var(--ink); }

/* the road picture keeps its horizon in a short band */
.band-still img[src*="road"] { object-position: 50% 85%; }

/* no rubber-band bounce at the top or bottom of the page */
/* and no sideways movement: nothing can scroll or spring horizontally (clip keeps position: sticky working) */
html, body { overscroll-behavior: none; overflow-x: clip; }

/* the browser's own scrollbar takes room beside the page and shows a black strip next to every picture when a mouse
   is used; it is hidden, and main.js draws one slim bar over the page instead, the same for mouse and trackpad */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
.scroll-thumb {
  position: fixed; top: 0; right: 3px; z-index: 9998; width: 6px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.5); mix-blend-mode: difference; /* taste-skill-ignore: inverts, so it reads on black and on the white footer */
  opacity: 0; transition: opacity 400ms var(--ease-out), width 200ms var(--ease-out); will-change: transform; cursor: default;
}
.scroll-thumb.is-on, .scroll-thumb:hover, .scroll-thumb.is-dragging { opacity: 1; }
.scroll-thumb:hover, .scroll-thumb.is-dragging { width: 8px; background: rgba(255, 255, 255, 0.55); } /* taste-skill-ignore: neutral thumb */
@media (hover: none) { .scroll-thumb { display: none; } }
