:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: .25rem; --radius-md: .5rem; --radius-lg: .75rem; --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(.16,1,.3,1);
  --content-narrow: 680px; --content-default: 1000px; --content-wide: 1280px;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
}

:root, [data-theme="light"] {
  --color-bg: #f6f4f0;
  --color-surface: #fbfaf7;
  --color-surface-2: #efece6;
  --color-line: #ddd8cf;
  --color-text: #1e2426;
  --color-text-muted: #6a716f;
  --color-text-faint: #a5a9a4;
  --color-text-inverse: #f6f4f0;
  --color-primary: #0b5763;
  --color-primary-hover: #0a444d;
  --color-accent: #a05a2c;
  --shadow-md: 0 4px 16px rgba(30,36,38,.07);
  --shadow-lg: 0 18px 48px rgba(30,36,38,.13);
}

[data-theme="dark"] {
  --color-bg: #14181a;
  --color-surface: #1a1f21;
  --color-surface-2: #212729;
  --color-line: #333b3d;
  --color-text: #d7d9d6;
  --color-text-muted: #8e948f;
  --color-text-faint: #666c68;
  --color-text-inverse: #14181a;
  --color-primary: #5fa3ae;
  --color-primary-hover: #7cbcc6;
  --color-accent: #cf8f5c;
  --shadow-md: 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.45);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  min-height: 100dvh; line-height: 1.65;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-bg);
}
img, svg { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.14; font-weight: 500; }
p, li { text-wrap: pretty; }
a { color: inherit; transition: color var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive); }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--content-wide)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--content-default)); margin-inline: auto; }
section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.eyebrow {
  font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 600; margin-bottom: var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before { content:""; width: 28px; height: 1px; background: currentColor; display: inline-block; }
h2.section-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; letter-spacing: -.01em; }
.lede { font-size: var(--text-lg); color: var(--color-text-muted); line-height: 1.5; max-width: 62ch; margin-top: var(--space-5); }
.muted { color: var(--color-text-muted); }
.divider { height: 1px; background: var(--color-line); border: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive);
}
.header.is-scrolled { border-bottom-color: var(--color-line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 72px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand__mark { color: var(--color-primary); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 600; letter-spacing: .04em; font-size: var(--text-sm); }
.brand__sub { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav > a, .nav__group > a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1340px) { .nav { gap: var(--space-4); } .nav a { font-size: .8125rem; } }
.nav a { font-size: var(--text-sm); text-decoration: none; color: var(--color-text-muted); }
.nav a:hover { color: var(--color-text); }
.nav__group { position: relative; display: flex; align-items: center; gap: .25rem; }
.nav__sub {
  position: absolute; top: calc(100% + .55rem); left: -.9rem; min-width: 15rem;
  display: flex; flex-direction: column; gap: 0;
  background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  padding: .4rem 0; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60;
}
.nav__sub a { padding: .5rem .9rem; display: block; }
.nav__sub a:hover { background: var(--color-surface); color: var(--color-text); }
.nav__group:hover .nav__sub,
.nav__group:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__caret { color: var(--color-text-muted); flex: none; transition: transform .16s ease; }
.nav__group:hover .nav__caret, .nav__group:focus-within .nav__caret { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-full); color: var(--color-text-muted); }
.icon-btn:hover { background: var(--color-surface); color: var(--color-text); }
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  padding: .6rem 1.1rem; border-radius: var(--radius-full);
  background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary);
}
[data-theme="dark"] .btn { color: #10171a; }
.btn:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-line); }
.btn--ghost:hover { background: var(--color-surface); color: var(--color-text); border-color: var(--color-text-faint); }
[data-theme="dark"] .btn--ghost, [data-theme="dark"] .btn--ghost:hover { color: var(--color-text); }
[data-theme="dark"] .hero .btn--ghost { color: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 0; }
.hero__media { position: relative; height: clamp(380px, 62vh, 620px); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(12,20,22,.55) 0%, rgba(12,20,22,.25) 40%, rgba(12,20,22,.8) 100%);
}
@media (max-width: 760px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(12,20,22,.62) 0%, rgba(12,20,22,.58) 45%, rgba(12,20,22,.9) 100%); }
  .hero__media { height: clamp(460px, 76vh, 640px); }
}
.hero__content { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(var(--space-8), 5vw, var(--space-16)); }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-3xl); color: #fff; letter-spacing: -.02em; max-width: 16ch;
}
.hero p { color: rgba(255,255,255,.82); max-width: 54ch; margin-top: var(--space-5); font-size: var(--text-base); }
.hero__tag { color: rgba(255,255,255,.72); font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase; margin-bottom: var(--space-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Key figures ---------- */
.figures { border-bottom: 1px solid var(--color-line); background: var(--color-surface); }
.figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure { padding: var(--space-8) var(--space-6); border-left: 1px solid var(--color-line); }
.figure:first-child { border-left: 0; }
.figure__value { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; color: var(--color-primary); }
.figure__label { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: .06em; text-transform: uppercase; margin-top: var(--space-2); }

/* ---------- Generic grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.stack > * + * { margin-top: var(--space-5); }

.card {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); padding: var(--space-6); height: 100%;
}
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); }

figure.shot { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-line); background: var(--color-surface); }
figure.shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
figure.shot figcaption { font-size: var(--text-xs); color: var(--color-text-muted); padding: var(--space-3) var(--space-4); }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-12); }
.photo-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.photo-grid figure:nth-child(1) img { aspect-ratio: 1/1; }

/* ---------- Tenant list ---------- */
.tenants { margin-top: var(--space-12); }
.tenant-group + .tenant-group { margin-top: var(--space-10); }
.tenant-group h3 { font-size: var(--text-sm); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; margin-bottom: var(--space-4); }
.tenant-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--space-8); }
.tenant-list li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); }
.tenant-list li span:last-child { color: var(--color-text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Property blocks ---------- */
.property { border-top: 1px solid var(--color-line); padding-top: var(--space-12); margin-top: var(--space-12); }
.property:first-of-type { border-top: 0; margin-top: var(--space-12); padding-top: 0; }
.property__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.property__head h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; }
.badge {
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--color-line); border-radius: var(--radius-full);
  padding: .3rem .8rem; color: var(--color-text-muted); white-space: nowrap;
}
.badge--live { color: var(--color-accent); border-color: color-mix(in oklab, var(--color-accent) 40%, transparent); }
.specs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 var(--space-8); margin-top: var(--space-6); }
.specs li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); }
.specs li span:first-child { color: var(--color-text-muted); }
.specs li span:last-child { text-align: right; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin-top: var(--space-10); border-left: 1px solid var(--color-line); padding-left: var(--space-8); }
.timeline li { position: relative; padding-bottom: var(--space-8); }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-8) - 4.5px); top: .55rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--color-bg); border: 1.5px solid var(--color-primary);
}
.timeline .year { font-size: var(--text-xs); letter-spacing: .12em; color: var(--color-primary); font-weight: 600; }
.timeline h4 { font-size: var(--text-base); font-weight: 600; margin-top: var(--space-1); }
.timeline p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }

.quote {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400;
  line-height: 1.45; border-left: 2px solid var(--color-accent);
  padding-left: var(--space-6); margin-block: var(--space-10); max-width: 46ch;
}
.quote cite { display: block; font-family: var(--font-body); font-size: var(--text-xs); font-style: normal; color: var(--color-text-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: var(--space-4); }

.portrait { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-line); }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 22%; }

.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.pill { font-size: var(--text-xs); border: 1px solid var(--color-line); border-radius: var(--radius-full); padding: .3rem .8rem; color: var(--color-text-muted); }

/* ---------- Contact ---------- */
.contact { background: var(--color-surface); border-top: 1px solid var(--color-line); }
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.contact-list { list-style: none; margin-top: var(--space-6); }
.contact-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line); display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); }
.contact-list a { text-decoration: none; color: var(--color-primary); font-weight: 500; }
.contact-list a:hover { color: var(--color-primary-hover); }

.footer { padding-block: var(--space-10); border-top: 1px solid var(--color-line); }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-muted); }
.footer a { color: inherit; }
.footer a:hover { color: var(--color-text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-2, .contact__grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .figures__grid { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--color-line); }
  .tenant-list { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid figure:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .photo-grid figure:nth-child(1) img { aspect-ratio: 16/9; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-line);
    padding: var(--space-6) 1.25rem;
  }
  .nav-toggle { display: grid; }
  .nav__group { flex-direction: column; align-items: flex-start; gap: var(--space-4); width: 100%; }
  .nav__caret { display: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; border-left: 1px solid var(--color-line); border-radius: 0; box-shadow: none;
    padding: 0 0 0 .9rem; margin-left: .1rem; min-width: 0; gap: var(--space-3);
  }
  .nav__sub a { padding: 0; }
  .header__actions .btn { display: none; }
  .grid-3, .tenant-list, .specs, .photo-grid { grid-template-columns: 1fr; }
  .figures__grid { grid-template-columns: 1fr; }
  .figure { border-left: 0; border-top: 1px solid var(--color-line); }
  .figure:first-child { border-top: 0; }
  .photo-grid figure:nth-child(1) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Bildgalerie in Objektkarten */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; background: var(--color-surface); }
.gallery figcaption { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: .01em; }

/* ---------- Bautechnik ---------- */
.plan { margin: 0; border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.plan img { width: 100%; display: block; }
.plan figcaption { padding: var(--space-3) var(--space-4); font-size: var(--text-xs); color: var(--color-text-muted); background: var(--color-surface); border-top: 1px solid var(--color-line); }
[data-theme="dark"] .plan img { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(1.05); }
[data-theme="dark"] .plan { background: #0f1416; }

.reftable { width: 100%; border-collapse: collapse; margin-top: var(--space-8); font-size: var(--text-sm); }
.reftable th, .reftable td { text-align: left; padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.reftable thead th { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; padding-block: var(--space-3); }
.reftable td:first-child { font-weight: 600; white-space: nowrap; padding-right: var(--space-8); }
.reftable td:nth-child(2) { color: var(--color-text-muted); white-space: nowrap; padding-right: var(--space-8); }
.reftable-wrap { overflow-x: auto; }

.tech-list { list-style: none; margin-top: var(--space-6); }
.tech-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); }
.tech-list strong { display: block; margin-bottom: var(--space-1); }
.tech-list span { color: var(--color-text-muted); }

@media (max-width: 720px) {
  .reftable, .reftable tbody, .reftable tr, .reftable td { display: block; width: 100%; }
  .reftable thead { display: none; }
  .reftable tr { padding: var(--space-5) 0; border-bottom: 1px solid var(--color-line); }
  .reftable td { border: 0; padding: 0; white-space: normal; }
  .reftable td:first-child { font-family: var(--font-display); font-size: var(--text-base); font-weight: 400; padding-right: 0; }
  .reftable td:nth-child(2) { font-size: var(--text-xs); letter-spacing: .04em; text-transform: uppercase; margin-block: var(--space-1) var(--space-3); padding-right: 0; }
}

/* ---------- Zoombare Bilder + Lightbox ---------- */
img.is-zoomable { cursor: zoom-in; transition: opacity .25s ease; }
img.is-zoomable:hover { opacity: .88; }
img.is-zoomable:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(9, 12, 14, .94);
  align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; animation: lbIn .22s ease both; }
@keyframes lbIn { from { opacity: 0 } to { opacity: 1 } }
.lightbox__stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.lightbox__stage img {
  max-width: min(1400px, 100%); max-height: calc(100vh - 9rem);
  width: auto; height: auto; object-fit: contain; display: block;
  border-radius: 6px; background: #fff;
}
.lightbox figcaption {
  color: rgba(255,255,255,.72); font-size: var(--text-xs);
  text-align: center; max-width: 72ch; line-height: 1.6;
}
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-full);
  width: 46px; height: 46px; cursor: pointer;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 1.5rem); }
@media (max-width: 640px) {
  .lightbox__nav { top: auto; bottom: 1rem; }
  .lightbox__stage img { max-height: calc(100vh - 12rem); }
}

/* ---------- Unterseiten ---------- */
.subhero { border-bottom: 1px solid var(--color-line); background: var(--color-surface); }
.subhero__inner { padding-block: clamp(var(--space-12), 7vw, var(--space-20)) clamp(var(--space-10), 5vw, var(--space-16)); }
.subhero h1 { font-family: var(--font-display); font-weight: 300; font-size: var(--text-3xl); line-height: 1.04; letter-spacing: -.02em; }
.crumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-6); }
.crumb a { color: var(--color-text-muted); text-decoration: none; }
.crumb a:hover { color: var(--color-primary); }

.pagenav { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); margin-top: var(--space-10); }
.pagenav a {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--color-line); border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6); background: var(--color-bg);
  transition: border-color .2s ease, transform .2s ease;
}
.pagenav a:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.pagenav a[aria-current="page"] { border-color: var(--color-primary); background: var(--color-surface-2); }
.pagenav strong { display: block; font-family: var(--font-display); font-size: var(--text-base); font-weight: 400; }
.pagenav span { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-2); line-height: 1.5; }

.note {
  border-left: 2px solid var(--color-primary); padding: var(--space-4) 0 var(--space-4) var(--space-6);
  font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-8);
}
.gallery--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery--tall img { aspect-ratio: 3 / 4; }
.gallery--doc img { aspect-ratio: auto; object-fit: contain; background: #fff; border: 1px solid var(--color-line); padding: 6px; }
.section-sm { padding-block: clamp(var(--space-12), 6vw, var(--space-16)); }
.gallery figure.panorama { grid-column: 1 / -1; }
.gallery figure.panorama img { aspect-ratio: 20 / 7; }

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */
.legal { max-width: 68ch; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-block: var(--space-8) var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p { margin-block: 0 var(--space-4); line-height: 1.75; color: var(--color-text-soft); }
.legal ul { margin-block: 0 var(--space-4); padding-left: 1.15em; color: var(--color-text-soft); }
.legal li { margin-bottom: .45em; line-height: 1.7; }
.legal a { color: var(--color-accent); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal .note { margin-top: var(--space-8); font-size: var(--text-xs); color: var(--color-text-muted); }

.footer__legal { display: flex; gap: var(--space-4); }
.footer__legal a { text-decoration: underline; text-underline-offset: .2em; }
.subhero h1 { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 520px) { .subhero h1 { font-size: var(--text-2xl); } }

/* ---------- Übersichtskacheln Startseite ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-10); }
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-md); border: 1px solid var(--color-line);
  background: var(--color-surface); text-decoration: none; color: inherit;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); border-color: var(--color-primary); box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); }
.tile img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.tile:hover img { transform: scale(1.04); }
.tile__body { padding: var(--space-5) var(--space-5) var(--space-6); }
.tile__kicker { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; }
.tile__body h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; margin-top: var(--space-2); }
.tile__body p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); }
.tile__more { display: inline-block; margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); }
.tile:hover .tile__more::after, .tile:focus-visible .tile__more::after { transform: translateX(4px); }
.tile__more::after { content: " →"; display: inline-block; transition: transform .3s ease; }

/* ---------- Beratungsangebot ---------- */
.service-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-10); }
.service-list li {
  border: 1px solid var(--color-line); border-radius: var(--radius-md);
  padding: var(--space-6); background: var(--color-bg);
}
.service-list h3 { font-size: var(--text-base); font-weight: 600; }
.service-list p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); }
.service-list .service-num {
  display: block; font-family: var(--font-display); font-size: var(--text-lg);
  color: var(--color-primary); margin-bottom: var(--space-3); font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
}
.service-list .service-for {
  display: block; margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  font-size: var(--text-xs); color: var(--color-text-faint);
}
.service-list .service-for strong { color: var(--color-text-muted); font-weight: 600; }
