/* KEHLITZ Real Estate Valuers – Designsystem „Der Lageplan“ (siehe DESIGN.md) */

@font-face {
  font-family: "Roboto";
  src: url(/assets/fonts/roboto-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  src: url(/assets/fonts/roboto-latin-ext.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --nachtblau: #000931;
  --planblau: #0b2e4a;
  --tusche: #111418;
  --lagegrau: #edeeee;
  --vermessungsgrau: #5e6463;
  --silberlinie: #adb1b0;
  --weiss: #fff;
  --muted: #4a5052;

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2rem, 4.2vw, 3.25rem);
  --fs-h3: clamp(1.5rem, 2.4vw, 2rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-label: .75rem;
  --fw-body: 350;
  --track-label: .16em;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --topbar-h: 48px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --z-header: 30;
  --z-menu: 25;
  --z-skip: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-optical-sizing: auto;
  color: var(--tusche);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

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

.skip {
  position: fixed; top: 8px; left: 8px; z-index: var(--z-skip);
  padding: 12px 18px; background: var(--weiss); color: var(--nachtblau);
  font-weight: 400; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ---------- Grundgerüst ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.center { text-align: center; }

.section { position: relative; overflow: hidden; padding-block: clamp(80px, 12vw, 152px); }

.h2 {
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--planblau);
  text-wrap: balance;
  margin-bottom: clamp(28px, 4vw, 44px);
  position: relative;
  padding-bottom: 22px;
}
/* Die feine Messlinie unter jeder Überschrift */
.h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 1px; background: currentColor;
  transform-origin: left;
}
.center .h2::after, .h2.center::after { left: 50%; margin-left: -28px; transform-origin: center; }

.h3 { font-size: var(--fs-h3); font-weight: 300; line-height: 1.22; letter-spacing: -0.01em; color: var(--planblau); text-wrap: balance; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.65; max-width: 58ch; margin-inline: auto; text-wrap: pretty; hyphens: manual; }
p { text-wrap: pretty; }

/* Links: Haarlinie, die sich bei Hover von links durchzeichnet */
.link {
  text-decoration: none; font-weight: 400; color: var(--planblau);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat,
              linear-gradient(rgba(11,46,74,.28), rgba(11,46,74,.28)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease-out);
}
.link:hover, .link:focus-visible { background-size: 100% 1px, 100% 1px; }
.link--light { color: var(--weiss); background-image: linear-gradient(currentColor, currentColor), linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--nachtblau); color: var(--weiss);
  border: 1px solid var(--nachtblau); border-radius: 0;
  font-weight: 400; font-size: 1rem; letter-spacing: .02em; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s var(--ease-ui), border-color .15s var(--ease-ui), color .15s var(--ease-ui), transform .15s var(--ease-ui);
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .09s; }
.btn--ghost { background: transparent; color: var(--nachtblau); }
.btn--light { background: var(--weiss); color: var(--nachtblau); border-color: var(--weiss); }
.btn--ghost-light { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,.6); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--planblau); border-color: var(--planblau); transform: translateY(-1px); }
  .btn--ghost:hover { background: rgba(0,9,49,.06); color: var(--nachtblau); border-color: var(--nachtblau); }
  .btn--light:hover { background: var(--lagegrau); border-color: var(--lagegrau); }
  .btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: var(--weiss); }
}

/* ---------- Kopf ---------- */
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--vermessungsgrau); color: var(--weiss);
  /* wie auf der alten Seite: leicht, ohne Sperrung */
  font-size: 1rem; font-weight: 300; letter-spacing: normal; text-transform: uppercase;
  padding-inline: 16px; text-align: center; line-height: 1.5;
}

.header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: var(--nachtblau);
  transition: box-shadow .3s var(--ease-ui);
}
.header.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,9,49,.18); }
.header__inner {
  height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
}
.header__logo { grid-column: 2; display: block; padding: 6px; }
.header__logo img { height: 40px; width: auto; }

.menu-btn {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; min-width: 48px; padding: 0 4px 0 12px;
  background: none; border: 0; color: var(--weiss); cursor: pointer;
  position: relative; z-index: calc(var(--z-menu) + 1);
}
.menu-btn__label { font-size: .8125rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
.menu-btn__lines { width: 26px; height: 16px; position: relative; display: block; }
.menu-btn__lines span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease-out), opacity .2s linear;
}
.menu-btn__lines span:nth-child(1) { top: 0; }
.menu-btn__lines span:nth-child(2) { top: 7px; transform: scaleX(.7); transform-origin: right; }
.menu-btn__lines span:nth-child(3) { top: 14px; }
@media (hover: hover) { .menu-btn:hover .menu-btn__lines span:nth-child(2) { transform: scaleX(1); } }
.menu-btn[aria-expanded="true"] .menu-btn__lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 520px) { .menu-btn__label { display: none; } }

/* Vollbild-Menü: legt sich wie im Original von links über die Seite */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--nachtblau);
  color: var(--weiss);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .6s var(--ease-io), visibility 0s linear .6s;
  visibility: hidden;
  overflow-y: auto;
}
.menu[hidden] { display: block; }
.menu::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(/assets/img/bg-stadtplan.webp) center / cover no-repeat;
  filter: invert(1); mix-blend-mode: screen; opacity: .5;
}
.menu__inner { position: relative; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-io), visibility 0s; }
.menu__inner {
  min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto;
}
.menu__list { display: grid; gap: 2px; }
.menu__list a {
  display: inline-block; padding: 6px 0;
  font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.15; font-weight: 300; letter-spacing: -0.01em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 92% / 0 1px no-repeat;
  transition: background-size .4s var(--ease-out), color .2s;
}
.menu__list a:hover, .menu__list a:focus-visible, .menu__list a[aria-current="true"] { background-size: 100% 1px; }
.menu__list li { opacity: 0; transform: translateY(18px); transition: opacity .3s linear, transform .3s var(--ease-out); }
.menu.is-open .menu__list li { opacity: 1; transform: none; transition: opacity .5s linear, transform .7s var(--ease-out); }
.menu.is-open .menu__list li:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__list li:nth-child(2) { transition-delay: .3s; }
.menu.is-open .menu__list li:nth-child(3) { transition-delay: .35s; }
.menu.is-open .menu__list li:nth-child(4) { transition-delay: .4s; }
.menu.is-open .menu__list li:nth-child(5) { transition-delay: .45s; }
.menu__meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: var(--fs-small); border-top: 1px solid rgba(255,255,255,.2); padding-top: 24px; }
.menu__meta a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; opacity: .85; }
.menu__meta a:hover { opacity: 1; }
.menu__legal { display: flex; gap: 24px; margin-left: auto; }
@media (max-width: 700px) { .menu__legal { margin-left: 0; } }

/* ---------- Parallax-Ebenen (wie „Motion Effects“ im Original) ---------- */
.parallax { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.parallax__img {
  position: absolute; left: 0; right: 0; top: -15%; height: 130%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  will-change: transform;
}
.section > .wrap, .intro__stage, .scroll-cue { position: relative; z-index: 1; }

/* ---------- Intro ---------- */
.intro {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--topbar-h) - var(--header-h));
  display: grid; place-items: center;
  padding-block: 24px 128px; /* Platz für den Scroll-Hinweis, damit nichts überlappt */
  background: #f6f6f6;
}
.intro__stage { width: min(100%, 1100px); padding-inline: var(--gutter); display: grid; justify-items: center; }
.intro__lottie { width: 100%; aspect-ratio: 16 / 9; max-height: min(62svh, max(150px, calc(100svh - var(--topbar-h) - var(--header-h) - 280px))); }
.intro__lottie svg { display: block; }
.intro__text { text-align: center; margin-top: clamp(-40px, -3vw, -12px); }
.intro h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 300; line-height: 1.3; color: var(--planblau);
  letter-spacing: .01em;
}
.intro h1 span { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.5; letter-spacing: normal; text-transform: uppercase; color: var(--vermessungsgrau); font-weight: 300; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  color: var(--vermessungsgrau); text-decoration: none;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
}
.scroll-cue i { width: 1px; height: 44px; background: rgba(94,100,99,.3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--planblau); transform: translateY(-100%); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }
.scroll-cue:hover { color: var(--planblau); }

/* Text des Intros erscheint erst, wenn das Monogramm steht */
.js .intro__text, .js .scroll-cue { opacity: 0; transform: translateY(10px); transition: opacity .8s linear, transform 1s var(--ease-out); }
.js .scroll-cue { transform: translate(-50%, 10px); }
.intro.is-done .intro__text { opacity: 1; transform: none; }
.intro.is-done .scroll-cue { opacity: 1; transform: translate(-50%, 0); transition-delay: .3s; }

/* ---------- Leistungen ---------- */
.section--plan { background: #f4f5f5; }
.section--plan .parallax__img { opacity: .9; }
.facets { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 36px; }
.facets li { display: flex; align-items: center; }
.facets li + li::before { content: ""; width: 1px; height: 18px; margin-inline: clamp(16px, 2vw, 28px); background: var(--silberlinie); }
.facets a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  color: var(--planblau); font-weight: 400; font-size: 1rem; line-height: 1.3;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.facets a:hover, .facets a:focus-visible { background-size: 100% 1px; }
@media (max-width: 760px) {
  .facets { flex-direction: column; gap: 0; }
  .facets li + li::before { display: none; }
}

/* ---------- Gleicher Takt: Leistungen, Immobilienbewertung, Über uns ---------- */
/* Alle drei Abschnitte sind gleich hoch und tragen ihren Inhalt mittig – ruhig, aber in jeweils eigener Komposition */
.section--equal { display: grid; align-content: center; padding-block: clamp(64px, 5.5vw, 88px); }
#immobilienbewertung .h2 { margin-bottom: 28px; }
@media (min-width: 900px) {
  .section--equal { min-height: clamp(700px, calc(100svh - var(--header-h)), 880px); }
}

/* ---------- Immobilienbewertung: ruhiger Slider ---------- */
.slider { max-width: 880px; margin-inline: auto; }
.slider__stage { display: grid; touch-action: pan-y; }
/* Alle Folien liegen übereinander: die Bühne ist so hoch wie die längste, nichts springt */
.slide { grid-area: 1 / 1; display: grid; justify-items: center; align-content: start; text-align: center;
  opacity: 0; visibility: hidden; transform: translateX(calc(var(--dir, 1) * 28px));
  transition: opacity .45s linear, transform .8s var(--ease-out), visibility 0s .8s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s linear .12s, transform .9s var(--ease-out) .08s, visibility 0s; }
.slide.is-leaving { transform: translateX(calc(var(--dir, 1) * -28px)); }
.slide__kicker { font-size: 1rem; font-weight: 300; text-transform: uppercase; color: var(--vermessungsgrau); line-height: 1.5; margin-bottom: 6px; }
.slide .h3 { margin-bottom: 22px; }
.slide__text p { max-width: 66ch; margin-inline: auto; hyphens: manual; font-size: 1.0625rem; line-height: 1.68; }
.slide__text p + p { margin-top: 14px; }
.slide .tags { justify-content: center; margin-top: 20px; }
.note { color: var(--planblau); font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 0; }
.tags li { font-size: .875rem; font-weight: 400; color: var(--planblau); line-height: 1.5; }
.tags li + li::before { content: "·"; margin-inline: .6em; color: var(--silberlinie); }

/* Gezeichnete Planskizze je Leistung */
.plan-icon { width: 52px; height: 52px; margin-bottom: 16px; fill: none; stroke: var(--planblau); stroke-width: 1.5; stroke-linecap: square; }
.plan-icon path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.slide.is-active .plan-icon path { animation: draw 1.4s var(--ease-out) both .15s; }
.slide.is-active .plan-icon path:nth-child(2) { animation-delay: .3s; }
.slide.is-active .plan-icon path:nth-child(3) { animation-delay: .45s; }
.slide.is-active .plan-icon path:nth-child(4) { animation-delay: .6s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Steuerung: Pfeile, Messlinien mit Beschriftung, Pause */
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: clamp(24px, 2.4vw, 32px); }
.slider__arrow, .slider__pause { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--planblau); }
.slider__arrow svg { width: 32px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .slider__arrow[data-prev]:hover svg { transform: translateX(-4px); }
  .slider__arrow[data-next]:hover svg { transform: translateX(4px); }
}
.slider__pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.slider__pause .i-play { display: none; }
.slider__pause[aria-pressed="true"] .i-play { display: block; }
.slider__pause[aria-pressed="true"] .i-pause { display: none; }
.slider__marks { display: flex; gap: 2px; margin-inline: 12px; padding: 0; list-style: none; }
.slider__marks button { display: grid; align-content: center; width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--muted); }
.slider__line { position: relative; display: block; height: 1px; background: rgba(11,46,74,.22); overflow: hidden; }
.slider__line i { position: absolute; inset: 0; background: var(--planblau); transform: scaleX(0); transform-origin: left; }
.slider__marks [aria-current] .slider__line i { transform: scaleX(1); }
.slider.is-playing .slider__marks [aria-current] .slider__line i { transform: scaleX(0); animation: slider-lauf var(--takt, 8s) linear forwards; }
.slider.is-holding .slider__marks [aria-current] .slider__line i { animation-play-state: paused; }
@keyframes slider-lauf { to { transform: scaleX(1); } }
.slider__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.slider__marks button:hover, .slider__marks [aria-current] { color: var(--nachtblau); }
.slider__count { display: none; font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--planblau); min-width: 4ch; text-align: center; }

@media (max-width: 760px) {
  .slider__nav { flex-wrap: wrap; gap: 0 4px; }
  .slider__marks { order: 5; flex-basis: 100%; margin: 8px 0 0; gap: 4px; }
  .slider__marks li { flex: 1; }
  .slider__marks button { min-width: 0; width: 100%; min-height: 44px; padding: 0; align-content: center; }
  .slider__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .slider__count { display: block; }
  .plan-icon { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active, .slide.is-leaving { transform: none; }
}

/* ---------- Über uns: eine Spalte, ein Satz, der sich beim Lesen füllt ---------- */
.about .statement { max-width: 30ch; margin: 0 auto 32px; }
.statement { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 300; line-height: 1.38; letter-spacing: -0.012em; color: var(--planblau); text-wrap: balance; }
.about__text { max-width: 62ch; margin-inline: auto; hyphens: manual; }
.about__cta { margin-top: 28px; font-weight: 400; color: var(--planblau); }

/* Lichtstreif-Moment: die Worte füllen sich beim Lesen mit Tinte */
.js .statement[data-highlight] .w { color: rgba(11,46,74,.32); transition: color .4s linear; }
.js .statement[data-highlight] .w.on { color: var(--planblau); }

/* ---------- Management ---------- */
.section--photo { background: #f7f7f7; }
.section--photo .parallax::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.45); }
/* Kartenstapel: vorn eine Person, dahinter versetzt die zweite */
.people { --dx: 28px; --dy: 52px; position: relative; display: grid; max-width: 860px; margin-inline: auto; padding: 0 var(--dx) var(--dy) 0; }
.person { grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: minmax(160px, 230px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: start;
  background: #fff; padding: clamp(22px, 2.8vw, 36px); border: 1px solid rgba(11,46,74,.12); box-shadow: 0 1px 2px rgba(11,46,74,.04), 0 18px 40px -24px rgba(11,46,74,.28); }
.person.is-front { z-index: 2; }
.person.is-back { z-index: 1; transform: translate(var(--dx), var(--dy)); background: #f4f5f7; box-shadow: 0 1px 2px rgba(11,46,74,.04); cursor: pointer; transition: transform .45s var(--ease-out), background-color .3s linear .35s; }
.person.is-back > * { opacity: 0; }
.person__photo { overflow: hidden; aspect-ratio: 3 / 4; background: var(--lagegrau); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.person.is-front:hover .person__photo img { transform: scale(1.025); }
.person__role { font-size: .875rem; line-height: 1.5; font-weight: 400; color: var(--vermessungsgrau); margin: 8px 0 16px; }
.person__text p:last-child { font-size: 1rem; line-height: 1.7; }
/* Der Name der hinteren Karte steht auf ihrem sichtbaren Rand */
.people__next { position: absolute; right: 0; bottom: 0; z-index: 3; display: inline-flex; align-items: center; gap: 14px; min-height: 44px; height: var(--dy); padding: 0 clamp(18px, 2.4vw, 32px);
  border: 0; background: none; cursor: pointer; font: inherit; font-size: .9375rem; font-weight: 400; color: var(--planblau); }
.people__next svg { width: 28px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .people:has(.people__next:hover) .person.is-back, .person.is-back:hover { transform: translate(calc(var(--dx) + 6px), calc(var(--dy) + 6px)); }
  .people__next:hover svg { transform: translateX(4px); }
}
@media (max-width: 1099px) { .people { max-width: 760px; } }
@media (max-width: 560px) {
  .people { --dx: 12px; --dy: 52px; }
  .person { grid-template-columns: 1fr; }
  .person__photo { max-width: 220px; }
}

/* ---------- Kartenkacheln ---------- */
.section--tiles { padding-block: clamp(64px, 8vw, 112px); background: var(--weiss); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); }
/* Wendekarten: vorn die Stadtkarte mit Titel, hinten der Text. Ein Klick dreht sie um die senkrechte Achse */
.tile { position: relative; aspect-ratio: 2 / 3; perspective: 1400px; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.tile__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.75,.15,1); }
.tile.is-open .tile__inner { transform: rotateY(180deg); }
.tile__face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--nachtblau); color: var(--weiss); }
.tile__back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(30px, 2.8vw, 40px) clamp(26px, 2.6vw, 36px); }
/* Vorderseite: die Stadtkarte in voller Farbe, darunter ein heller Streifen mit dem Titel. Logo und Streifen stehen auf allen vier Karten auf derselben Linie */
.tile__front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tile__title { position: absolute; z-index: 2; left: 0; right: 0; top: 57%; height: max(78px, 15.5%); display: flex; align-items: center; justify-content: center; text-align: center;
  padding-inline: 18px; background: rgba(222,225,230,.86);
  font-size: clamp(1.125rem, 1.55vw, 1.375rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.005em; color: var(--nachtblau); text-wrap: balance; }
.tile__hint { position: absolute; z-index: 2; left: 50%; bottom: clamp(18px, 2vw, 26px); width: 22px; height: 22px; margin-left: -11px; fill: none; stroke: rgba(255,255,255,.6); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out), stroke .3s; }
.tile__label { font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 300; line-height: 1.25; color: #fff; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.22); hyphens: manual; }
.tile__back p:not(.tile__label) { font-size: clamp(.9375rem, 1.02vw, 1.0625rem); line-height: 1.6; font-weight: 350; color: rgba(255,255,255,.9); hyphens: manual; -webkit-hyphens: manual; text-wrap: pretty; }
.tile__face::after { content: ""; position: absolute; inset: 10px; z-index: 2; border: 1px solid rgba(255,255,255,.14); pointer-events: none; transition: border-color .5s var(--ease-out), inset .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile:not(.is-open):hover .tile__inner { transform: rotateY(-7deg); }
  .tile:hover .tile__front img { transform: scale(1.04); }
  .tile:hover .tile__hint { transform: rotate(180deg); stroke: #fff; }
  .tile:hover .tile__face::after { border-color: rgba(255,255,255,.32); inset: 14px; }
}
.tile:focus-visible .tile__face::after { border-color: #fff; inset: 14px; }
/* Einmaliger Hinweis, wenn die Karten ins Bild kommen: jede dreht sich einmal ganz herum */
.tiles.is-hint .tile__inner { animation: tile-hint 2.2s cubic-bezier(.45,0,.2,1) both; animation-delay: calc(var(--i, 0) * 160ms); }
@keyframes tile-hint { 0% { transform: rotateY(0); } 38%, 56% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
/* Absicherung gegen Safari/iOS: Elemente mit eigener Ebene (Streifen, Bild, Pfeil) erben backface-visibility nicht.
   Darum trägt jedes Element der Vorderseite sie selbst, und die Vorderseite wird zur Drehmitte ganz ausgeblendet. */
.tile__face > *, .tile__face::after { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tile__front { transition: visibility 0s .12s; }
.tile.is-open .tile__front { visibility: hidden; }
.tile__back { visibility: hidden; transition: visibility 0s .12s; }
.tile.is-open .tile__back { visibility: visible; }
.tiles.is-hint .tile__front { animation: tile-hint-front 2.2s linear both; animation-delay: calc(var(--i, 0) * 160ms); }
.tiles.is-hint .tile__back { animation: tile-hint-back 2.2s linear both; animation-delay: calc(var(--i, 0) * 160ms); }
@keyframes tile-hint-front { 0%, 14% { visibility: visible; } 14.1%, 72% { visibility: hidden; } 72.1%, 100% { visibility: visible; } }
@keyframes tile-hint-back { 0%, 14% { visibility: hidden; } 14.1%, 72% { visibility: visible; } 72.1%, 100% { visibility: hidden; } }
@media (max-width: 1199px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile { aspect-ratio: 4 / 5; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) {
  .tile__inner { transition: none; }
  .tiles.is-hint .tile__inner, .tiles.is-hint .tile__face { animation: none; }
  .tile__front, .tile__back { transition: none; }
}

/* ---------- Kontakt ---------- */
.section--contact { background: var(--lagegrau); padding-block: clamp(80px, 10vw, 128px); }
/* Kontakt: eine zentrierte Achse wie alle anderen Abschnitte */
.contact { display: grid; justify-items: center; text-align: center; max-width: calc(760px + 2 * var(--gutter)); }
.contact__text, .contact__reach { width: 100%; display: grid; justify-items: center; }
.contact__name { font-size: var(--fs-h3); line-height: 1.2; color: var(--planblau); }
.contact__role { font-size: .9375rem; font-weight: 400; color: var(--vermessungsgrau); margin: 8px 0 18px; text-wrap: balance; }
.contact address { font-size: 1.125rem; line-height: 1.7; font-style: normal; }
.contact__br { display: none; }
.contact__sep { display: inline-block; width: 4px; height: 4px; margin: 0 .7em; border-radius: 50%; background: var(--silberlinie); vertical-align: middle; }
/* Telefon und E-Mail nebeneinander, getrennt durch eine feine senkrechte Linie, darüber und darunter eine Maßlinie */
.contact__lines { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: clamp(32px, 4vw, 44px) 0 clamp(28px, 3.4vw, 40px); border-block: 1px solid rgba(11,46,74,.18); }
.contact__lines li { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 22px 16px; }
.contact__lines li + li { border-left: 1px solid rgba(11,46,74,.18); }
.contact__lines span { font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; font-weight: 400; color: var(--vermessungsgrau); }
.contact__lines a { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-variant-numeric: tabular-nums; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Karte: Panorama über die ganze Breite, in Grau */
.map { position: relative; height: clamp(340px, 38vw, 520px); background: #e4e6e6; overflow: hidden; border-top: 1px solid rgba(11,46,74,.12); }
.map__ground { position: absolute; inset: -2%; background: url(/assets/img/bg-stadtplan.webp) center / cover; filter: grayscale(1) contrast(1.15); opacity: .55; }
.map__consent { position: relative; z-index: 1; height: 100%; display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center; padding: 32px var(--gutter); }
.map__card { display: grid; justify-items: center; gap: 18px; width: min(560px, 100%); padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 48px); background: rgba(255,255,255,.92); border: 1px solid rgba(11,46,74,.12); }
.map__place { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 400; color: var(--planblau); }
.map__pin { width: 26px; height: 26px; fill: none; stroke: var(--planblau); stroke-width: 1.6; }
.map__note { hyphens: manual; max-width: 44ch; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.map iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(1.03); opacity: 0; transition: opacity .8s linear; }
.map iframe.is-loaded { opacity: 1; }
@media (max-width: 520px) {
  .map__actions .btn { width: 100%; }
  .contact__actions { width: 100%; max-width: 360px; }
  .contact__actions .btn { width: 100%; }
  .map__actions { width: 100%; }
  .map { height: auto; }
  .map__consent { padding-block: 48px; }
  .contact__br { display: inline; }
  .contact__sep { display: none; }
  .contact__lines { grid-template-columns: 1fr; }
  .contact__lines li { padding: 16px 0; }
  .contact__lines li + li { border-left: 0; border-top: 1px solid rgba(11,46,74,.18); }
}

/* ---------- Fuß: schiebt sich unter der Seite hervor ---------- */
main { position: relative; z-index: 1; background: var(--weiss); box-shadow: 0 30px 60px -30px rgba(0,9,49,.55); }
.footer { position: sticky; bottom: 0; z-index: 0; background: var(--nachtblau); color: var(--weiss); padding-block: clamp(48px, 6vw, 72px) 20px; --reveal: 1; }
.footer:has(.sig.is-offen) { z-index: 2; }
.footer.is-static { position: relative; }
.footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(/assets/img/bg-stadtplan.webp) center / cover no-repeat; filter: invert(1); mix-blend-mode: screen; opacity: .18; }
.footer__inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 36px 48px; align-items: center;
  opacity: calc(.2 + .8 * var(--reveal)); transform: translateY(calc((1 - var(--reveal)) * 56px)); }
.footer__logo img { width: 144px; }
.footer__seals { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 24px 48px; }
.footer__seals img { height: 64px; width: auto; }
.footer__base { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: .6em; font-size: .875rem; color: rgba(255,255,255,.78); letter-spacing: .01em; }
.footer__legal a { color: var(--weiss); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal a:hover, .footer__legal a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__seals { justify-content: center; gap: 20px 32px; }
  .footer__seals img { height: 52px; }
  .footer__base { width: 100%; flex-direction: column; gap: 4px; }
  .footer__legal { justify-content: center; column-gap: 24px; }
  .footer__legal > span:first-child { flex-basis: 100%; }
  .footer__dot { display: none; }
}

/* Smartpage-Signatur „W“ */
.sig { position: relative; display: flex; align-items: center; gap: 14px; flex: none;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.sig.is-da { opacity: 1; transform: none; }
.sig.is-da .sig__btn { pointer-events: auto; }
/* Das W wie im Smartpage-Zeichen: fetter, geometrischer Strich in einem dunklen Kreis – klein und leise */
.sig__btn { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #0d0f12; color: var(--weiss); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 22px -10px rgba(0,0,0,.8);
  transition: transform .35s var(--ease-out); }
.sig__btn::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; } /* Tippfläche 44 px */
.sig__btn::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--silberlinie); opacity: 0; transform: scale(.86);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); pointer-events: none; }
.sig__btn svg { width: 17px; height: auto; display: block; animation: sig-atem 6s ease-in-out infinite; }
.sig__btn path { fill: none; stroke: currentColor; stroke-width: 13; stroke-linecap: butt; stroke-linejoin: miter; }
@keyframes sig-atem { 0%, 100% { opacity: .72; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.sig__btn:focus-visible { outline: 0; }
.sig__btn:focus-visible::after, .sig.is-offen .sig__btn::after { opacity: 1; transform: none; }
.sig.is-offen .sig__btn svg, .sig__btn:hover svg, .sig__btn:focus-visible svg { animation: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .sig__btn:hover { transform: scale(1.05); }
  .sig__btn:hover::after { opacity: 1; transform: none; }
  .sig:has(.sig__btn:hover) .sig__tipp { opacity: 1; transform: none; }
}
.sig__tipp { order: -1; font-size: var(--fs-label); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; white-space: nowrap;
  color: var(--silberlinie); opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.sig:has(.sig__btn:focus-visible) .sig__tipp { opacity: 1; transform: none; }
.sig.is-offen .sig__tipp { opacity: 0 !important; }
.sig__karte { position: absolute; right: 0; bottom: calc(100% + 14px); width: 284px; padding: 24px 24px 22px; text-align: left;
  background: var(--planblau); color: var(--weiss); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 28px 64px -20px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(6px); transform-origin: 100% 100%; pointer-events: none; visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s; }
.sig.is-offen .sig__karte { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.sig__bild { display: block; width: 100%; height: auto; margin: 0 0 18px; overflow: visible; }
.sig__strich { fill: none; stroke: var(--weiss); stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter;
  stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.sig__strich--fein { stroke: var(--silberlinie); stroke-width: 1; }
.sig.is-offen .sig__strich { animation: sig-zeichnen .8s var(--ease-out) forwards var(--d); }
@keyframes sig-zeichnen { to { stroke-dashoffset: 0; } }
.sig__titel { font-size: var(--fs-label); font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--silberlinie);
  padding-top: 14px; margin-bottom: 8px; border-top: 1px solid rgba(255,255,255,.18); }
.sig__text { font-size: .9375rem; line-height: 1.55; color: rgba(255,255,255,.86); hyphens: manual; }
@media (max-width: 760px) {
  .sig__tipp { display: none; }
  .sig__karte { right: 50%; transform: translate(50%, 6px); width: min(284px, calc(100vw - 32px)); transform-origin: 50% 100%; }
  .sig.is-offen .sig__karte { transform: translate(50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__inner { opacity: 1; transform: none; }
  .sig__btn svg { animation: none; opacity: 1; }
  .sig__strich, .sig.is-offen .sig__strich { stroke-dashoffset: 0; animation: none; }
}

/* ---------- Überschriften steigen auf (wie fadeInUp im Original) ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .8s linear, transform 1s var(--ease-out); }
.js [data-rise].is-in { opacity: 1; transform: none; }
.js .h2[data-rise]::after { transform: scaleX(0); transition: transform 1.1s var(--ease-out) .25s; }
.js .h2[data-rise].is-in::after { transform: scaleX(1); }

/* ---------- Rechtstexte: gesetzt wie ein Planheft ---------- */
::selection { background: var(--planblau); color: var(--weiss); }
.legal__head { position: relative; overflow: hidden; background: var(--nachtblau); color: var(--weiss); padding-block: clamp(56px, 9vw, 120px) clamp(40px, 5vw, 64px); }
.legal__head::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(/assets/img/bg-stadtplan.webp) center 30% / cover no-repeat; filter: invert(1); mix-blend-mode: screen; opacity: .22; }
.legal__head .wrap { position: relative; }
.legal__crumbs { display: flex; gap: 10px; font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--silberlinie); margin-bottom: clamp(28px, 4vw, 48px); }
.legal__crumbs a { color: var(--weiss); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-block: -14px; }
.legal__crumbs a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.legal__titelblock { display: inline-grid; gap: 18px; max-width: 100%; }
.legal__title { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 200; line-height: 1; letter-spacing: -0.03em; hyphens: manual; }
.legal__mass { width: 100%; height: 24px; overflow: visible; fill: none; stroke: var(--silberlinie); stroke-width: 1; }
.legal__mass path { vector-effect: non-scaling-stroke; }
.js .legal__mass path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease-out) forwards; }
.js .legal__mass path:nth-child(1) { animation-delay: .25s; animation-duration: .5s; }
.js .legal__mass path:nth-child(2) { animation-delay: .55s; animation-duration: 1.4s; }
.js .legal__mass path:nth-child(3) { animation-delay: 1.5s; animation-duration: .5s; }
.legal__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 28px; font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--silberlinie); }

.legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); padding-block: clamp(56px, 7vw, 96px) clamp(96px, 10vw, 144px); }
.legal__aside { position: relative; }
.masskette { position: sticky; top: calc(var(--header-h) + 40px); }
.masskette__label { font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--vermessungsgrau); margin-bottom: 16px; }
.masskette ol { position: relative; list-style: none; margin: 0; padding: 0 0 0 28px; }
.masskette ol::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: rgba(11,46,74,.18); }
.masskette__fill { position: absolute; left: 4px; width: 1px; background: var(--planblau); transform: scaleY(0); transform-origin: top; pointer-events: none; }
.masskette li { position: relative; }
.masskette li::before { content: ""; position: absolute; left: -24px; top: 50%; width: 9px; height: 1px; background: rgba(11,46,74,.35); }
.masskette a { display: flex; gap: 12px; padding-block: 10px; font-size: .9375rem; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .3s var(--ease-out); }
.masskette a:hover, .masskette a[aria-current] { color: var(--nachtblau); }
.masskette a[aria-current] { font-weight: 400; }
.masskette__num { flex: none; font-variant-numeric: tabular-nums; color: var(--silberlinie); }
.masskette a[aria-current] .masskette__num { color: var(--planblau); }
/* Vermessungspunkt */
.masskette__punkt { position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin-top: -4.5px; background: var(--weiss); border: 1px solid var(--planblau); transform: translateY(0); pointer-events: none; }
.masskette__punkt::after { content: ""; position: absolute; inset: 2px; background: var(--planblau); }
.masskette.is-bereit .masskette__punkt { transition: transform .7s var(--ease-out); }
/* Fülllinie liegt genau auf der Liste (oben setzt das Skript) */
.masskette__fill { bottom: 0; }

.legal__text { max-width: 70ch; }
.legal__part + .legal__part { margin-top: clamp(56px, 6vw, 80px); padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid rgba(11,46,74,.14); }
.legal__part { scroll-margin-top: calc(var(--header-h) + 32px); }
.legal__text h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); font-weight: 300; line-height: 1.18; letter-spacing: -0.015em; color: var(--planblau); margin-bottom: 24px; text-wrap: balance; }
.legal__num { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: var(--fs-label); font-weight: 400; letter-spacing: var(--track-label); color: var(--vermessungsgrau); font-variant-numeric: tabular-nums; }
.legal__num::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.legal__text h3 { font-size: 1.125rem; font-weight: 400; line-height: 1.4; color: var(--nachtblau); margin: 36px 0 10px; }
.legal__text p, .legal__text ul { font-size: 1.0625rem; line-height: 1.72; margin-bottom: 16px; }
.legal__text ul { list-style: none; padding-left: 0; }
.legal__text li { position: relative; padding-left: 24px; }
.legal__text li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 10px; height: 1px; background: var(--planblau); }
.legal__back { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: clamp(56px, 6vw, 80px); padding-top: 24px; border-top: 1px solid rgba(11,46,74,.14); }
.legal__back .link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.notfound__text { max-width: 62ch; margin-top: clamp(32px, 4vw, 48px); font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.6; color: var(--nachtblau); }
.notfound { padding-bottom: clamp(72px, 9vw, 128px); }
.notfound .legal__back { max-width: 62ch; justify-content: flex-start; gap: 8px 32px; }

/* Impressum: Angaben als Schriftfeld eines Plans */
.schriftfeld { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 8px; background: rgba(11,46,74,.3); border: 1px solid rgba(11,46,74,.3); }
.schriftfeld > div { background: var(--weiss); padding: 18px 22px 20px; }
.schriftfeld__wide { grid-column: 1 / -1; }
.schriftfeld dt { font-size: var(--fs-label); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--vermessungsgrau); margin-bottom: 8px; hyphens: manual; }
.schriftfeld dd { font-size: 1.0625rem; line-height: 1.6; color: var(--tusche); }
.schriftfeld__wide dd { font-size: 1.375rem; font-weight: 300; line-height: 1.4; color: var(--planblau); }
.schriftfeld .nums { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.schriftfeld__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; background: var(--lagegrau) !important; padding-block: 12px !important;
  font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--vermessungsgrau); }

@media (max-width: 899px) {
  .legal__grid { grid-template-columns: 1fr; gap: 40px; }
  .masskette { position: static; }
  .masskette__punkt, .masskette__fill { display: none; }
  .masskette ol { padding-left: 20px; }
  .masskette li::before { left: -16px; }
}
@media (max-width: 560px) {
  .schriftfeld { grid-template-columns: 1fr; }
  .schriftfeld__foot { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .legal__mass path { stroke-dashoffset: 0; animation: none; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-rise], .js .intro__text { opacity: 1; transform: none; }
  .js .scroll-cue { opacity: 1; transform: translateX(-50%); }
  .js .h2[data-rise]::after { transform: none; }
  .js .statement[data-highlight] .w { color: var(--planblau); }
  .parallax__img { transform: none !important; }
}

/* ---------- Feinschliff Mobil ---------- */
.scroll-cue span { white-space: nowrap; }
@media (max-width: 600px) {
  .topbar { font-size: clamp(.8125rem, 3.6vw, 1rem); }
  .intro__stage { padding-inline: 0; width: 100%; grid-template-columns: minmax(0, 1fr); }
  .intro__lottie { width: 170vw; max-width: none; max-height: none; justify-self: start; position: relative; left: 50%; transform: translateX(-50%); }
  .intro__text { margin-top: -12vw; padding-inline: 8px; }
  .intro h1 span { font-size: clamp(.8125rem, 3.6vw, 1rem); }
}

/* ---------- Typografie-Feinschliff (Satz wie im Architekturbüro) ---------- */
p, li, dd, address { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; hanging-punctuation: first; }
.h2, .h3, h1, .tile__title, .tile__back p, .menu__list a { hyphens: manual; }
.lead, .person__text p, .slide__text p, .about__text, .map__note, .sig__text, .legal__title, .schriftfeld dt { -webkit-hyphens: manual; }
p { text-wrap: pretty; }
.person__text p { max-width: 62ch; hyphens: manual; }
.about__cta .link, .map__consent .link { display: inline-block; padding-block: 11px; margin-block: -11px; }

/* ---------- Anpassung an alle Größen ---------- */
/* Niedrige Fenster (Smartphone quer, kleine Laptops): Intro kompakt, Logo bleibt sichtbar */
@media (max-height: 560px) and (min-width: 601px) {
  .intro { min-height: 0; padding-block: 12px 76px; }
  .intro__lottie { max-height: 40svh; }
  .intro__text { margin-top: -8px; }
  .scroll-cue { bottom: 8px; gap: 6px; }
  .scroll-cue i { height: 24px; }
  .section--equal { min-height: 0; }
}

/* Smartphone: die vier Karten liegen nebeneinander und werden gewischt, die nächste schaut am Rand hervor */
@media (max-width: 600px) {
  .section--tiles .wrap { padding-inline: 0; }
  .tiles { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 min(82vw, 340px); aspect-ratio: auto; height: 440px; scroll-snap-align: start; }
  .tile__back { padding: 26px 22px; gap: 14px; }
}
@media (max-width: 360px) {
  .tile__back p:not(.tile__label) { font-size: .875rem; line-height: 1.55; }
  .tile__label { font-size: 1.0625rem; padding-bottom: 12px; }
}
.tiles__dots { display: none; padding: 0; list-style: none; }
@media (max-width: 600px) { .tiles__dots { display: flex; justify-content: center; gap: 4px; margin-top: 10px; } }
.tiles__dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.tiles__dots button::before { content: ""; width: 24px; height: 1px; background: rgba(11,46,74,.25); transition: background .3s, height .3s; }
.tiles__dots button[aria-current]::before { background: var(--planblau); height: 2px; }

/* Smartphone: Porträt klein neben Name und Rolle, darunter der Text: die Karte wird halb so lang */
@media (max-width: 560px) {
  .person { grid-template-columns: 96px 1fr; column-gap: 18px; row-gap: 0; padding: 20px; }
  .person__photo { grid-row: 1 / span 2; width: 96px; max-width: none; }
  .person__text { display: contents; }
  .person .h3 { grid-column: 2; align-self: end; margin: 0; font-size: 1.375rem; }
  .person__role { grid-column: 2; align-self: start; margin: 6px 0 0; }
  .person__text p:last-child { grid-column: 1 / -1; margin-top: 18px; }
  .person.is-back .person__text > * { opacity: 0; }
}
