@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/inter-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/inter-800.woff2') format('woff2');
}

/* =========================================================
   Bauunternehmen Günther – Design Tokens
   ========================================================= */
:root {
  /* Farben */
  --blue-900: #01173a;
  --blue-800: #012a66;
  --blue-700: #013280;
  --blue-600: #0047BB;   /* Primär */
  --blue-500: #2e66cf;
  --blue-100: #d9e4f7;
  --blue-50:  #eef3fb;
  --ink-900:  #0b0f19;
  --ink-700:  #232a35;
  --ink-500:  #4d5563;
  --line:     #e3e8f0;
  --surface:  #f6f8fb;
  --white:    #ffffff;
  /* Typografie */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  /* Form & Motion */
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(1, 23, 58, .08);
  --shadow-md: 0 10px 30px rgba(1, 23, 58, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .3s;
  /* Zeichenplan / drawing sheet frame */
  --frame-inset: 20px;
  --frame-line: rgba(1, 23, 58, 0.4);
}

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

html,
body,
h1, h2, h3, h4, p,
ul, ol,
figure {
  margin: 0;
}

body {
  padding: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html {
  scroll-padding-top: calc(88px + var(--frame-inset));
  background: var(--white);
}

/* =========================================================
   Base typography
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  /* Transparent: the fixed blueprint-paper layer (body::before) supplies the
     white page background. An opaque background here would paint over that
     layer, since body's own in-flow background paints after its negative
     z-index descendants when body itself doesn't establish a stacking
     context. */
  background: transparent;
  /* Reserve space so the sticky header starts inset below the top frame strip
     from the very first paint, matching where it sticks once scrolled. */
  padding-top: var(--frame-inset);
  counter-reset: plansheet;
}

/* =========================================================
   Blaupausen-Papier – fixed, page-wide background layer
   A "drawing sheet" backdrop that stays put while sections scroll over it:
   white paper with a faint blueprint grid (major lines every 72px, echoing
   .hero__grid; minor subdivision lines every 24px, echoing .plan-board).
   Lives behind everything (z-index: -1) so light/transparent sections let
   it show through, while opaque sections/cards simply cover it.
   ========================================================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--white);
  background-image:
    repeating-linear-gradient(0deg, rgba(1, 50, 128, .06) 0, rgba(1, 50, 128, .06) 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(90deg, rgba(1, 50, 128, .06) 0, rgba(1, 50, 128, .06) 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(0deg, rgba(1, 50, 128, .03) 0, rgba(1, 50, 128, .03) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(1, 50, 128, .03) 0, rgba(1, 50, 128, .03) 1px, transparent 1px, transparent 24px);
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  color: var(--ink-500);
}

/* =========================================================
   Utilities
   ========================================================= */
.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.eyebrow--dark {
  color: var(--blue-100);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--blue-500);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--blue-600);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* =========================================================
   Zeichenplan-Rahmen (technical drawing sheet frame)
   ========================================================= */
.plan-frame,
.plan-frame__edge,
.plan-frame__corner {
  position: fixed;
  pointer-events: none;
  z-index: 900;
}

.plan-frame__edge--top,
.plan-frame__edge--bottom {
  left: 0;
  width: 100%;
  height: var(--frame-inset);
  background-color: var(--white);
  background-image:
    repeating-linear-gradient(90deg, var(--frame-line) 0 1px, transparent 1px 50px),
    repeating-linear-gradient(90deg, var(--frame-line) 0 1px, transparent 1px 10px);
  background-repeat: no-repeat, no-repeat;
}

.plan-frame__edge--top {
  top: 0;
  background-size: 100% 9px, 100% 5px;
  background-position: bottom, bottom;
  border-bottom: 1px solid var(--frame-line);
}

.plan-frame__edge--bottom {
  bottom: 0;
  background-size: 100% 9px, 100% 5px;
  background-position: top, top;
  border-top: 1px solid var(--frame-line);
}

.plan-frame__edge--left,
.plan-frame__edge--right {
  top: 0;
  height: 100%;
  width: var(--frame-inset);
  background-color: var(--white);
  background-image:
    repeating-linear-gradient(180deg, var(--frame-line) 0 1px, transparent 1px 50px),
    repeating-linear-gradient(180deg, var(--frame-line) 0 1px, transparent 1px 10px);
  background-repeat: no-repeat, no-repeat;
}

.plan-frame__edge--left {
  left: 0;
  background-size: 9px 100%, 5px 100%;
  background-position: right, right;
  border-right: 1px solid var(--frame-line);
}

.plan-frame__edge--right {
  right: 0;
  background-size: 9px 100%, 5px 100%;
  background-position: left, left;
  border-left: 1px solid var(--frame-line);
}

.plan-frame__corner {
  width: 11px;
  height: 11px;
}

.plan-frame__corner--tl {
  top: var(--frame-inset);
  left: var(--frame-inset);
  transform: translate(-50%, -50%);
}

.plan-frame__corner--tr {
  top: var(--frame-inset);
  right: var(--frame-inset);
  transform: translate(50%, -50%);
}

.plan-frame__corner--bl {
  bottom: var(--frame-inset);
  left: var(--frame-inset);
  transform: translate(-50%, 50%);
}

.plan-frame__corner--br {
  bottom: var(--frame-inset);
  right: var(--frame-inset);
  transform: translate(50%, 50%);
}

.plan-frame__corner::before,
.plan-frame__corner::after {
  content: "";
  position: absolute;
  background: var(--frame-line);
}

.plan-frame__corner::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.plan-frame__corner::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

/* Per-section technical annotation (sheet number + label) */
section[data-plan] {
  position: relative;
  counter-increment: plansheet;
}

section[data-plan]::after {
  content: "BLATT " counter(plansheet, decimal-leading-zero) " · " attr(data-plan);
  /* Alt-text syntax hides the decorative label from screen readers;
     browsers without support keep the plain declaration above. */
  content: "BLATT " counter(plansheet, decimal-leading-zero) " · " attr(data-plan) / "";
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0.55;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

section[data-plan][data-plan-side="left"]::after {
  right: auto;
  left: 14px;
}

section[data-plan]::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(#fff, #fff) center / 100% 1px no-repeat,
    linear-gradient(#fff, #fff) center / 1px 100% no-repeat;
  mix-blend-mode: difference;
  opacity: 0.55;
  pointer-events: none;
  z-index: 5;
}

section[data-plan][data-plan-side="left"]::before {
  left: auto;
  right: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid currentColor;
  color: var(--blue-600);
}

.btn-ghost:hover {
  background: var(--blue-50);
}

.btn-ghost--dark {
  color: var(--white);
}

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

.btn-white {
  background: var(--white);
  color: var(--blue-800);
}

.btn-white:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: var(--frame-inset);
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  margin-inline: var(--frame-inset);
  transition: height var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
  transition: height var(--dur) var(--ease);
}

.site-header.scrolled .site-header__inner {
  height: 60px;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand__img {
  display: block;
  height: 44px;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.site-nav a:hover::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.site-header__cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--blue-900);
  display: flex;
  flex-direction: column;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--ease) var(--dur);
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}

.mobile-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-close {
  position: relative;
  width: 40px;
  height: 40px;
}

.nav-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--white);
}

.nav-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav__links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__links ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.mobile-nav__links li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.mobile-nav.open .mobile-nav__links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav__links a {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
}

.mobile-nav__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 48px;
}

.mobile-nav__contact a {
  color: var(--blue-100);
  font-size: 15px;
}

body.no-scroll {
  overflow: hidden;
}

/* =========================================================
   Footer / Quick actions
   ========================================================= */
main {
  margin-inline: var(--frame-inset);
}

.site-footer {
  background: var(--ink-900);
  color: var(--blue-100);
  padding-block: 72px 32px;
  margin-inline: var(--frame-inset);
}

.site-footer__grid {
  display: grid;
  /* minmax(0, …): long unbreakable words (e.g. e-mail address, service names)
     must not inflate a column beyond its share of the grid. */
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}

.site-footer__brand p {
  color: var(--blue-100);
  margin: 14px 0;
  max-width: 34em;
}

.site-footer__social {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  color: var(--blue-100);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.quick-actions {
  position: fixed;
  right: calc(24px + var(--frame-inset));
  bottom: calc(24px + var(--frame-inset));
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.quick-actions.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quick-actions__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.quick-actions__btn:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
}

.quick-actions__btn--hammer {
  background: var(--white);
}

.quick-actions__btn--hammer img {
  width: 22px;
  height: 22px;
}

.quick-actions__btn--hammer:hover {
  background: var(--blue-50);
}

.quick-actions.visible .quick-actions__btn:nth-child(1) { transition-delay: 0ms; }
.quick-actions.visible .quick-actions__btn:nth-child(2) { transition-delay: 60ms; }
.quick-actions.visible .quick-actions__btn:nth-child(3) { transition-delay: 120ms; }
.quick-actions.visible .quick-actions__btn:nth-child(4) { transition-delay: 180ms; }

/* =========================================================
   Homepage – Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(82vh - var(--frame-inset));
  display: flex;
  align-items: center;
  background: var(--blue-900);
  color: var(--white);
  overflow: hidden;
  padding-block: 96px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 1px, transparent 1px, transparent 72px);
}

/* Wrapper introduced for the scroll-stage intro (see dormant block below).
   Layout-neutral by default: it renders as if it weren't there at all. */
.hero__stage {
  display: contents;
}

.hero__inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-up .8s var(--ease) .15s forwards;
}

.hero__title span {
  color: var(--blue-500);
}

.hero__eyebrow {
  opacity: 0;
  animation: fade-up .7s var(--ease) forwards;
}

.hero__text {
  color: var(--blue-100);
  max-width: 560px;
  font-size: 1.05rem;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-up .8s var(--ease) .3s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up .8s var(--ease) .45s forwards;
}

/* Hero visual – technical drawing surface (house canvas prepared, drawn in a later phase) */
.hero__visual {
  position: relative;
  opacity: 0;
  animation: fade-up .8s var(--ease) .55s forwards;
}

.hero__board {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  max-height: min(520px, 62vh);
  margin-inline: auto;
  border: 1px solid rgba(217, 228, 247, 0.22);
  box-shadow: inset 0 0 60px rgba(217, 228, 247, 0.04);
  background: transparent;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__board-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.hero__board-corner::before,
.hero__board-corner::after {
  content: "";
  position: absolute;
  background: rgba(217, 228, 247, 0.55);
}

.hero__board-corner::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.hero__board-corner::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.hero__board-corner--tl {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.hero__board-corner--tr {
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.hero__board-corner--bl {
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
}

.hero__board-corner--br {
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
}

.hero__board-meta {
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--blue-100);
  opacity: .6;
}

.hero__board-meta--bottom {
  top: auto;
  bottom: -22px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  position: relative;
}

.hero__scroll-mouse::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--blue-500);
  border-radius: 2px;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__scroll-mouse::before {
    animation: scroll-cue 2s ease-in-out infinite;
  }

  @keyframes scroll-cue {
    0% { transform: translate(-50%, 0); opacity: 1; }
    60% { transform: translate(-50%, 10px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 0; }
  }
}

/* =========================================================
   Homepage – Hero, scroll-stage intro (dormant)
   Pinned scroll choreography for the hero: the house canvas fills the
   viewport on load and shrinks into the drawing board as the page scrolls,
   while the text fades/slides in. Everything here is gated behind
   `html.js .hero--stage`, so it stays completely inert until a later phase
   adds the `hero--stage` modifier to the markup and drives `--intro-p`
   (0..1) from JS. Also respects prefers-reduced-motion by only applying
   under the no-preference media query.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero--stage {
    /* Viewport offset of the hero's top edge: page frame + sticky header
       (72px inner + 1px border; 64px + 1px below 690px). The stage fills
       the viewport below the header and pins there. */
    --stage-top: calc(var(--frame-inset) + 73px);
    --hero-intro-distance: 100vh;
    --hero-intro-distance: 100svh;
    --intro-p: 0;
    display: block;
    min-height: 0;
    padding-block: 0;
    height: calc(100vh - var(--stage-top) + var(--hero-intro-distance));
    height: calc(100svh - var(--stage-top) + var(--hero-intro-distance));
    /* An overflow ancestor would defeat position: sticky on .hero__stage;
       the stage itself clips its contents instead. */
    overflow: visible;
  }

  html.js .hero--stage .hero__stage {
    display: flex;
    align-items: center;
    position: sticky;
    top: var(--stage-top);
    height: calc(100vh - var(--stage-top));
    height: calc(100svh - var(--stage-top));
    width: 100%;
    overflow: hidden;
    padding-block: 48px;
  }

  html.js .hero--stage .hero__inner {
    position: relative;
    z-index: 2;
  }

  /* The time-based entrance animations are replaced by scroll choreography. */
  html.js .hero--stage .hero__eyebrow,
  html.js .hero--stage .hero__title,
  html.js .hero--stage .hero__text,
  html.js .hero--stage .hero__actions,
  html.js .hero--stage .hero__visual {
    animation: none;
  }

  html.js .hero--stage .hero__visual {
    opacity: 1;
  }

  html.js .hero--stage .hero__eyebrow {
    --o: clamp(0, (var(--intro-p) - 0.35) / 0.15, 1);
    opacity: var(--o);
    transform: translateY(calc((1 - var(--o)) * 18px));
  }

  html.js .hero--stage .hero__title {
    --o: clamp(0, (var(--intro-p) - 0.40) / 0.18, 1);
    opacity: var(--o);
    transform: translateY(calc((1 - var(--o)) * 18px));
  }

  html.js .hero--stage .hero__text {
    --o: clamp(0, (var(--intro-p) - 0.48) / 0.18, 1);
    opacity: var(--o);
    transform: translateY(calc((1 - var(--o)) * 18px));
  }

  html.js .hero--stage .hero__actions {
    --o: clamp(0, (var(--intro-p) - 0.56) / 0.19, 1);
    opacity: var(--o);
    transform: translateY(calc((1 - var(--o)) * 18px));
  }

  html.js .hero--stage .hero__scroll {
    opacity: calc(1 - clamp(0, var(--intro-p) / 0.15, 1));
  }

  /* The board frame itself must never receive opacity/transform/filter in
     stage mode: in a later phase the canvas inside it briefly switches to
     `position: fixed`, and an ancestor with opacity < 1 or a transform would
     become its containing block and break viewport-relative positioning.
     The fade is done via a pseudo-element and the corner/meta labels instead. */
  html.js .hero--stage .hero__board {
    --frame-o: clamp(0, (var(--intro-p) - 0.7) / 0.3, 1);
    border-color: transparent;
    box-shadow: none;
  }

  html.js .hero--stage .hero__board::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(217, 228, 247, 0.22);
    box-shadow: inset 0 0 60px rgba(217, 228, 247, 0.04);
    opacity: var(--frame-o);
    pointer-events: none;
  }

  html.js .hero--stage .hero__board-corner {
    opacity: var(--frame-o);
  }

  html.js .hero--stage .hero__board-meta {
    /* .hero__board-meta already carries opacity: .6 today; cap the stage
       fade-in at the same ceiling so the settled look matches exactly. */
    opacity: calc(var(--frame-o) * 0.6);
  }

  /* Viewport-pinned canvas (intro and journey). JS reparents the canvas to
     <body> whenever it pins it: Safari/WebKit mis-renders position: fixed
     descendants of a position: sticky (+ overflow: hidden) subtree - the
     canvas scrolls away with .hero__stage instead of staying viewport-fixed.
     The selector therefore matches by class alone, independent of where the
     canvas currently lives. z-index 1: above the hero's background and grid
     (z-index 0), below the hero copy (.hero__inner, z-index 2) - the same
     order the canvas had inside the board. Both work in the root stacking
     context because the hero itself carries no z-index. */
  html.js .hero__canvas--fixed {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  /* Journey mode: once the intro finishes, the (still detached) canvas is
     raised above the section content it travels over: plan boards (z-index
     1) and plan corner marks (5), while staying below the quick actions
     (400), header (500) and frame overlays (850/900). Declared after the
     --fixed rule so this z-index wins while both classes are set. */
  html.js .hero__canvas--journey {
    z-index: 399;
  }

  /* NOTE: .hero--stage must NOT be given a z-index here. The pinned canvas
     is a <body> child at z-index 1 during the intro; a z-index on the hero
     would make the whole section an atomic stacking-context layer painting
     above the canvas, hiding the house behind the hero's opaque background. */

  html.js .hero--stage .hero__grid {
    z-index: 0;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 990px) {
  html.js .hero--stage {
    --hero-intro-distance: 70vh;
    --hero-intro-distance: 70svh;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 690px) {
  html.js .hero--stage {
    --stage-top: calc(var(--frame-inset) + 65px);
  }
}

/* =========================================================
   Homepage – Leistungen
   ========================================================= */
.leistungen {
  /* Transparent so the fixed blueprint-paper layer (body::before) shows through. */
  background: transparent;
  padding-block: 96px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head__text {
  font-size: 1.05rem;
  margin-top: 10px;
}

.leistungen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--ink-500);
}

/* =========================================================
   Homepage – Zahlen
   ========================================================= */
.zahlen {
  /* Dark blueprint band, echoing the hero: breaks the light/paper rhythm of
     the surrounding sections. */
  position: relative;
  background: var(--blue-900);
  color: var(--white);
  padding-block: 112px;
  overflow: hidden;
}

.zahlen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 1px, transparent 1px, transparent 72px);
  pointer-events: none;
}

.zahlen__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__number {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.stat__label {
  font-size: 15px;
  color: var(--blue-100);
}

/* =========================================================
   Shared – Plan board (light wireframe canvas)
   A "drafting sheet" variant of .hero__board for light sections: used by
   the crane scene (.about-teaser__media) and the brick facade scene
   (.about-split__media). Sits above the offset __frame border.
   ========================================================= */
.plan-board {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  width: 100%;
  background-color: var(--surface);
  background-image:
    repeating-linear-gradient(to right, rgba(1, 23, 58, .06) 0, rgba(1, 23, 58, .06) 1px, transparent 1px, transparent 36px),
    repeating-linear-gradient(to bottom, rgba(1, 23, 58, .06) 0, rgba(1, 23, 58, .06) 1px, transparent 1px, transparent 36px);
  border: 1px solid rgba(1, 23, 58, .25);
}

.plan-board__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Journey mode: the about-board no longer runs its own crane wireframe
   instance - the single wandering model (fixed hero canvas, see above)
   visits and draws itself into this board instead. The frame/corners/meta
   labels stay as-is; only the now-unused static canvas is hidden. */
html.journey-on .about-teaser .plan-board__canvas {
  display: none;
}

.plan-board__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.plan-board__corner::before,
.plan-board__corner::after {
  content: "";
  position: absolute;
  background: rgba(1, 23, 58, .45);
}

.plan-board__corner::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.plan-board__corner::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.plan-board__corner--tl {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.plan-board__corner--tr {
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.plan-board__corner--bl {
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
}

.plan-board__corner--br {
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
}

.plan-board__meta {
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-500);
  opacity: .7;
}

.plan-board__meta--bottom {
  top: auto;
  bottom: -22px;
}

/* =========================================================
   Shared – Plan slot (empty technical-drawing frame)
   A blank drafting-sheet placeholder that reserves the layout space a
   later phase will use for the single fixed-position wireframe model
   scrolling across the page. Transparent so the fixed paper grid
   (body::before) shows through; visually just a dashed frame with
   corner ticks and meta labels, echoing .hero__board / .plan-board.
   Hidden by default — only shown in the gated two-column desktop
   layout further below (html.js, prefers-reduced-motion: no-preference,
   >=990px). In every other case the section keeps today's single-column
   layout untouched.
   ========================================================= */
.plan-slot {
  display: none;
  position: relative;
  border: 1px dashed rgba(0, 71, 187, 0.25);
  background: transparent;
}

.plan-slot__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.plan-slot__corner::before,
.plan-slot__corner::after {
  content: "";
  position: absolute;
  background: rgba(1, 23, 58, .45);
}

.plan-slot__corner::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.plan-slot__corner::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.plan-slot__corner--tl {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.plan-slot__corner--tr {
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.plan-slot__corner--bl {
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
}

.plan-slot__corner--br {
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
}

.plan-slot__meta {
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-500);
  opacity: .7;
}

.plan-slot__meta--bottom {
  top: auto;
  bottom: -22px;
}

/* =========================================================
   Homepage – Über uns Teaser
   ========================================================= */
.about-teaser {
  /* Transparent so the fixed blueprint-paper layer (body::before) shows through. */
  background: transparent;
  padding-block: 96px;
}

.about-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-teaser__text p {
  font-size: 1.05rem;
  margin: 18px 0 28px;
}

.about-teaser__media {
  position: relative;
}

.about-teaser__frame {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--blue-100);
  /* Square, not rounded: frame + plan board read together as one drafting sheet. */
  border-radius: 0;
  z-index: 0;
}

/* =========================================================
   Homepage – Ablauf
   ========================================================= */
.ablauf {
  /* Slightly translucent tint (blue-50 @ ~85% alpha) so it still reads as its
     own light-blue block while letting a hint of the paper grid through. */
  background: rgba(238, 243, 251, .85);
  padding-block: 96px;
}

.ablauf__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.ablauf__number {
  display: block;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--blue-100);
  -webkit-text-stroke: 1.5px var(--blue-600);
  margin-bottom: 12px;
}

.ablauf__step h3 {
  margin-bottom: 8px;
}

.ablauf__step p {
  font-size: 15px;
}

/* =========================================================
   Homepage – Leistungen / Ablauf, asymmetric plan-slot layout (dormant)
   Reserves a left-hand "plan-slot" column next to Leistungen and Ablauf so
   a later phase can land the single fixed-position wireframe model there
   as the page scrolls (the sequence being hero board -> leistungen slot ->
   about board -> ablauf slot -> cta). Gated behind `html.js` (same
   activation pattern as the hero scroll-stage above), the no-preference
   motion query, and a >=990px viewport, so it stays completely inert
   everywhere else and the existing single-column layout (including the
   890px/690px breakpoints) is left untouched as the fallback.
   ========================================================= */
@media (min-width: 990px) and (prefers-reduced-motion: no-preference) {
  html.js .plan-slot {
    display: block;
    position: sticky;
    /* Frame strip + stuck header (72px) + breathing room, mirroring the
       --stage-top convention so it tracks future header-size changes. */
    top: calc(var(--frame-inset) + 72px + 28px);
    height: min(520px, 62vh);
  }

  html.js .leistungen__row,
  html.js .ablauf__row {
    display: grid;
    grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 48px;
  }

  html.js .leistungen__row .leistungen__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  html.js .ablauf__row .ablauf__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  html.js .ablauf__row .ablauf__step {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: start;
    gap: 20px;
  }

  html.js .ablauf__row .ablauf__number {
    margin-bottom: 0;
  }
}

/* =========================================================
   Homepage – CTA Band
   ========================================================= */
.cta-band {
  background: var(--blue-800);
  padding-block: 96px;
  color: var(--white);
}

.cta-band__inner {
  text-align: center;
  max-width: 640px;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: var(--blue-100);
  margin: 16px 0 32px;
  font-size: 1.05rem;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   Reveal system
   ========================================================= */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

html.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 890px) {
  :root {
    --frame-inset: 16px;
  }

  .site-nav,
  .site-header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .leistungen__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__content {
    max-width: none;
  }

  .hero__visual {
    /* Auto margins stop the grid item from stretching, and the board has no
       intrinsic width — without an explicit width the visual collapses. */
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
  }

  .about-teaser__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-teaser__grid {
    gap: 48px;
  }

  .ablauf__grid,
  .zahlen__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* The subpage grids (.contact-grid, .anfahrt-grid, .about-split__grid, …)
     are overridden in "Responsive – subpages" at the end of the file: their
     base rules are declared after this block and would win the cascade. */

  section {
    padding-block: 72px;
  }

  .hero,
  .leistungen,
  .zahlen,
  .about-teaser,
  .ablauf,
  .cta-band,
  .contact-section,
  .anfahrt-section,
  .about-split,
  .about-checklist,
  .reviews {
    padding-block: 72px;
  }

  .page-hero {
    padding-block: 96px 64px;
  }

  .page-hero--sm {
    padding-block: 72px 48px;
  }
}

@media (max-width: 690px) {
  :root {
    --frame-inset: 12px;
  }

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

  .site-header__inner {
    height: 64px;
  }

  .brand__img {
    height: 36px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 320px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .quick-actions {
    right: calc(16px + var(--frame-inset));
    bottom: calc(16px + var(--frame-inset));
  }

  .hero,
  .leistungen,
  .zahlen,
  .about-teaser,
  .ablauf,
  .cta-band,
  .contact-section,
  .anfahrt-section,
  .about-split,
  .about-checklist,
  .reviews {
    padding-block: 56px;
  }

  .about-teaser__frame,
  .about-split__frame {
    display: none;
  }

  .page-hero {
    padding-block: 80px 48px;
  }

  section[data-plan]::after {
    font-size: 9px;
  }
}

/* =========================================================
   Page hero (subpages)
   ========================================================= */
.page-hero {
  position: relative;
  background: var(--blue-900);
  color: var(--white);
  overflow: hidden;
  padding-block: 120px 80px;
}

.page-hero--sm {
  padding-block: 88px 56px;
}

.page-hero__inner {
  position: relative;
  max-width: 720px;
}

.page-hero__eyebrow {
  opacity: 0;
  animation: fade-up .7s var(--ease) forwards;
}

.page-hero__title {
  color: var(--white);
  margin-bottom: 16px;
  opacity: 0;
  animation: fade-up .8s var(--ease) .15s forwards;
}

.page-hero--sm .page-hero__title {
  margin-bottom: 0;
}

.page-hero__lead {
  color: var(--blue-100);
  max-width: 640px;
  font-size: 1.05rem;
  opacity: 0;
  animation: fade-up .8s var(--ease) .3s forwards;
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-section {
  background: var(--white);
  padding-block: 96px;
}

.contact-grid {
  display: grid;
  /* minmax(0, …): the long e-mail address in the info cards must not inflate
     the tracks' min-content and push the grid past the viewport. */
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 24px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  transition: border-color var(--dur) var(--ease);
}

.info-card:hover {
  border-color: var(--blue-600);
}

.info-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--blue-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-card__body strong {
  color: var(--ink-900);
  font-size: 14px;
}

.info-card__body a,
.info-card__body span {
  color: var(--ink-500);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.info-card__body a:hover {
  color: var(--blue-600);
}

.contact-note {
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 8px;
}

.contact-note a {
  color: var(--blue-600);
  text-decoration: underline;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}

.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--white);
  color: var(--ink-900);
  transition: border-color var(--dur) var(--ease);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--blue-600);
}

.contact-form__submit {
  width: 100%;
}

.form-field--website {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
}

.form-status:empty {
  margin-top: 0;
}

.form-status--ok {
  color: var(--blue-600);
}

.form-status--error {
  color: #b3261e;
}

.form-note {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 16px;
}

/* =========================================================
   Anfahrt page
   ========================================================= */
.anfahrt-section {
  background: var(--white);
  padding-block: 96px;
}

.anfahrt-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.anfahrt-info p {
  font-size: 15px;
  margin: 20px 0 24px;
}

.anfahrt-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.anfahrt-map__canvas {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.anfahrt-map__canvas.leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
}

.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
}

.map-consent__title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-600);
  font-weight: 600;
  margin: 0;
}

.map-consent__note {
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-500);
  margin: 0;
}

.map-consent__note a {
  color: var(--blue-600);
  text-decoration: underline;
}

.map-consent__note a:hover {
  color: var(--blue-700);
}

/* =========================================================
   About page – split intro
   ========================================================= */
.about-split {
  background: var(--white);
  padding-block: 96px;
}

.about-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-split__text p {
  font-size: 1.05rem;
  margin-top: 18px;
}

.about-split__media {
  position: relative;
}

.about-split__frame {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--blue-100);
  /* Square, not rounded: frame + plan board read together as one drafting sheet. */
  border-radius: 0;
  z-index: 0;
}

/* =========================================================
   About page – checklist
   ========================================================= */
.about-checklist {
  background: var(--surface);
  padding-block: 96px;
}

.about-checklist__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.checklist-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.checklist-item__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-item strong {
  display: block;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.checklist-item p {
  font-size: 15px;
}

/* =========================================================
   About page – reviews
   ========================================================= */
.reviews {
  background: var(--white);
  padding-block: 96px;
}

.reviews__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.reviews__toolbar .section-head {
  margin-bottom: 0;
}

.reviews__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.reviews__nav-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-500);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.reviews__nav-btn:hover:not(:disabled) {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.reviews__nav-btn:disabled {
  opacity: .35;
  cursor: default;
}

.reviews__track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.reviews__track:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 4px;
}

.reviews__item {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}

.reviews__item:hover {
  box-shadow: var(--shadow-md);
}

.reviews__item img {
  width: 100%;
  height: auto;
  display: block;
}

.reviews__credit {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 24px;
}

.reviews__credit a {
  color: var(--blue-600);
  text-decoration: underline;
}

/* =========================================================
   Prose / legal pages
   ========================================================= */
.prose {
  /* Long links / e-mail addresses in the legal texts must never force a
     horizontal scroll on narrow viewports (inherits to all descendants). */
  overflow-wrap: break-word;
  max-width: 760px;
  padding-block: 64px 96px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.prose h4 {
  font-size: 1rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.prose p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.prose ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 16px;
}

.prose ul li {
  display: list-item;
  margin-bottom: 8px;
  color: var(--ink-500);
}

.prose a {
  color: var(--blue-600);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* =========================================================
   Responsive – subpages
   These overrides must live BELOW the subpage base rules above: the global
   breakpoint blocks earlier in the file are declared before those base rules
   and would lose the same-specificity cascade against them (which is exactly
   how the subpages' mobile layouts silently broke once before).
   ========================================================= */
@media (max-width: 990px) {
  .reviews__item {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 890px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .anfahrt-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .about-split__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .about-checklist__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 690px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 24px 20px;
  }

  .reviews__nav {
    display: none;
  }

  .reviews__track {
    padding-inline: 7.5%;
    scroll-padding-inline: 7.5%;
  }

  .reviews__item {
    flex-basis: 85%;
    scroll-snap-align: center;
  }

  .anfahrt-map {
    aspect-ratio: 4 / 3;
    min-height: 300px;
  }

  .map-consent {
    padding: 24px 20px;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media print {
  .plan-frame,
  .quick-actions,
  .cursor-guides,
  section[data-plan]::before,
  section[data-plan]::after {
    display: none;
  }

  /* Printers drop background colors by default; restore dark-on-light text
     for the sections that rely on a dark background on screen. */
  .zahlen {
    background: none;
    color: var(--ink-700);
  }

  .zahlen::before {
    display: none;
  }

  .stat__number {
    color: var(--blue-600);
  }

  .stat__label {
    color: var(--ink-500);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__title,
  .hero__eyebrow,
  .hero__text,
  .hero__actions,
  .hero__visual,
  .page-hero__title,
  .page-hero__eyebrow,
  .page-hero__lead {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .hero__scroll-mouse::before {
    animation: none;
  }
}

/* =========================================================
   Cursor guides – technical crosshair overlay (mouse-only)
   Full-viewport crosshair + monospace coordinate readout.
   Sits below .plan-frame / .mobile-nav (z-index 900) so the
   plan frame's white edge strips terminate the lines visually.
   ========================================================= */
.cursor-guides {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-guides {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 850;
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s linear;
    /* Blend the whole overlay against the page. The fixed/z-indexed
       container is its own stacking context, so blending on the children
       would only hit the container's transparent background. */
    mix-blend-mode: difference;
  }

  .cursor-guides.is-active {
    opacity: 1;
  }

  .cursor-guides__line {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    opacity: .12;
    will-change: transform;
  }

  .cursor-guides__line--h {
    width: 100%;
    height: 1px;
  }

  .cursor-guides__line--v {
    width: 1px;
    height: 100%;
  }

  .cursor-guides__label {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    line-height: 1.5;
    color: #fff;
    opacity: .6;
    white-space: nowrap;
    will-change: transform;
  }

  .cursor-guides__label span {
    display: block;
  }
}

/* =========================================================
   Leistungsseiten (service landing pages)
   ========================================================= */
.leistung-intro {
  background: var(--white);
  padding-block: 96px;
}

.leistung-intro__text {
  max-width: 760px;
}

.leistung-intro__text p {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.leistung-items__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.leistung-region {
  background: var(--surface);
  padding-block: 96px;
}

.leistung-region__body {
  max-width: 760px;
}

.leistung-region__body p {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.region-chips__item {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 890px) {
  .leistung-items__grid {
    grid-template-columns: 1fr;
  }
}
