/* Green House Baukonzept – statische Website */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-var.woff2") format("woff2");
  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 {
  --ground: #ffffff;
  --ground-2: #f5f5f7;
  --ground-3: #ebebef;
  --ink: #1d1d1f;
  --ink-soft: #5f5f64;
  --brand: #18952a;
  --accent: #137a22;
  --accent-press: #0f6a1d;
  --field: #0e3a18;
  --field-2: #134a20;
  --field-ink: #ffffff;
  --field-soft: rgba(255, 255, 255, 0.74);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* fünf Stufen */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --step-display: clamp(2.5rem, 0.9rem + 6.4vw, 7rem);

  --m: clamp(16px, 2.4vw, 36px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(96px, 12vw, 200px);
  --bar-h: 52px;
  --radius: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
p, h1, h2, h3, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 600; }
button { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.022em; line-height: 1.08; font-weight: 650; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); }

.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- Buttons & Links */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius);
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 560; font-size: var(--step-body); letter-spacing: -0.01em;
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.button:hover { background: var(--accent-press); }
.button:active { transform: scale(0.97); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 560; text-decoration: none; }
.link-arrow svg, .scatter__desc svg { width: 1em; height: 1em; transition: transform var(--t-ui) var(--ease-out); }
.link-arrow:hover svg, a:hover > .link-arrow svg, .scatter__item:hover .scatter__desc svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- Navigation */

.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
@media (prefers-reduced-transparency: reduce) { .bar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.bar__inner { display: flex; align-items: center; gap: 24px; height: var(--bar-h); padding: 0 var(--m); padding-left: max(var(--m), env(safe-area-inset-left)); padding-right: max(var(--m), env(safe-area-inset-right)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.02em; font-size: var(--step-body); margin-right: auto; }
.brand .house { width: 28px; height: 25px; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__top { display: flex; align-items: center; gap: 4px; }
.nav__trigger, .nav__link {
  display: inline-flex; align-items: center; height: var(--bar-h); padding: 0 12px;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  font-size: var(--step-small); color: var(--ink); opacity: 0.86;
  transition: opacity var(--t-hover) var(--ease-out);
}
.nav__trigger:hover, .nav__link:hover, .nav__group:focus-within .nav__trigger, .nav__link[aria-current], .nav__group.is-active .nav__trigger { opacity: 1; }
.nav__link[aria-current], .nav__group.is-active .nav__trigger { font-weight: 600; }
.nav__call { font-size: var(--step-small); font-weight: 560; color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; }
.bar__call, .bar__menu { display: none; }

@media (min-width: 900px) {
  .nav__panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    padding: 28px var(--m) 44px calc(var(--m) + 38px);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.18); /* taste-skill-ignore: Overlay-Menü */
    display: none;
  }
  .nav__group:hover .nav__panel, .nav__group:focus-within .nav__panel, .nav__group.is-open .nav__panel {
    display: block; animation: panel-in var(--t-ui) var(--ease-out);
  }
  .nav__list { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 56px; }
  .nav__list a { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); line-height: 1.5; transition: color var(--t-hover) var(--ease-out); }
  .nav__list a:hover, .nav__list a[aria-current] { color: var(--accent); }
}

@media (max-width: 899.98px) {
  :root { --bar-h: 48px; }
  .bar__inner { gap: 12px; }
  .bar__call, .bar__menu {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px;
    text-decoration: none; font-size: var(--step-body); font-weight: 560; touch-action: manipulation;
  }
  .bar__call { color: var(--accent); }
  .bar__menu { min-width: 44px; padding: 0 0 0 8px; }
  .nav {
    position: fixed; inset: var(--bar-h) 0 0 0; z-index: 49;
    display: block; overflow-y: auto; overscroll-behavior: contain;
    background: var(--ground);
    padding: 12px var(--m) calc(40px + env(safe-area-inset-bottom));
    display: none;
  }
  .nav:target, .nav.is-open { display: block; animation: panel-in var(--t-ui) var(--ease-out); }
  .nav__top { display: block; }
  .nav__trigger { height: auto; padding: 22px 0 6px; font-size: var(--step-small); color: var(--ink-soft); opacity: 1; pointer-events: none; }
  .nav__link { height: auto; padding: 10px 0; font-size: var(--step-head); font-weight: 650; letter-spacing: -0.025em; opacity: 1; }
  .nav__list a { display: block; padding: 7px 0; font-size: var(--step-head); font-weight: 650; letter-spacing: -0.025em; text-decoration: none; line-height: 1.2; }
  .nav__list a[aria-current], .nav__link[aria-current] { color: var(--accent); }
  .nav__top > li:not(.nav__group):first-of-type { margin-top: 18px; }
  .nav__call { display: inline-flex; margin-top: 28px; font-size: var(--step-lead); }
  body.menu-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- Hero (Startseite) */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100svh - var(--bar-h));
  padding: 18px var(--m) 24px;
  column-gap: var(--gap);
}
.hero__corner--tl { grid-column: 1; grid-row: 1; max-width: 40ch; display: grid; gap: 16px; justify-items: start; }
.hero__lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.012em; }
.monument {
  grid-column: 1 / -1; grid-row: 2; align-self: center;
  margin: 0; font-weight: 700; letter-spacing: -0.055em; line-height: 0.86;
  text-transform: uppercase; white-space: nowrap;
  transform-origin: 50% 60%;
}
.monument__line { display: block; font-size: 13vw; text-align: center; }
.monument__window {
  display: inline-block; vertical-align: baseline;
  width: 0.62em; height: 0.74em; margin: 0 0.05em 0 0.02em;
  clip-path: polygon(50% 0, 69% 17%, 69% 4%, 82% 4%, 82% 29%, 100% 45%, 100% 100%, 0 100%, 0 45%);
  overflow: clip; background: #c9d6c2;
}
.monument__window img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.hero__phone-pic { display: none; }
.hero__corner--bl { grid-column: 1; grid-row: 3; align-self: end; color: var(--ink-soft); }
.hero__corner--br { grid-column: 2; grid-row: 3; align-self: end; justify-self: end; display: flex; gap: 22px; font-size: var(--step-small); }
.hero__corner--br a { text-decoration: none; }
.hero__corner--br a:hover { color: var(--accent); }

@media (max-width: 699.98px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; min-height: calc(100svh - var(--bar-h)); padding-top: 9svh; padding-bottom: 0; }
  .monument { grid-row: 1; align-self: start; }
  .hero__corner--tl { grid-row: 2; margin-top: 28px; max-width: none; }
  .hero__corner--tl .button { width: 100%; }
  .hero__corner--bl { grid-row: 3; margin-top: 18px; font-size: var(--step-small); }
  .hero__corner--br { display: none; }
  .hero__phone-pic { display: block; grid-row: 4; margin: 28px calc(var(--m) * -1) 0; height: max(46svh, 300px); overflow: clip; align-self: end; }
  .hero__phone-pic img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------------------------------------------------------------- Leistungen (Index) */

.index { padding: var(--section) var(--m); }
.index > h2 { margin-bottom: clamp(48px, 6vw, 96px); }
.index__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px var(--gap); align-items: start; }
.index__col { grid-column: span 3; }
.index__col h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1.25em; }
.index__col li a {
  display: inline-block; padding: 3px 0; text-decoration: none; color: var(--ink-soft);
  font-size: var(--step-body); line-height: 1.3;
  transition: color var(--t-hover) var(--ease-out);
}
.index__col li a:hover, .index__col li a:focus-visible, .index__col li a.is-on { color: var(--ink); }
.index__sum { display: none; }
.index__desc { grid-column: 10 / -1; grid-row: 1; font-size: var(--step-body); line-height: 1.45; color: var(--ink); min-height: 6em; transition: opacity var(--t-ui) var(--ease-out); }
.index__desc.is-swapping { opacity: 0; }

@media (max-width: 899.98px) {
  .index__grid { grid-template-columns: 1fr; gap: 40px; }
  .index__col { grid-column: auto; }
  .index__col li a { line-height: 1.4; padding: 6px 0; color: var(--ink); }
  .index__sum { display: block; margin-top: 10px; color: var(--ink-soft); }
  .index__desc { display: none; }
}

/* ---------------------------------------------------------------- Intro */

.intro {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: var(--section) var(--m); background: var(--ground-2);
}
.intro__side { grid-column: 1 / 6; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px var(--gap); align-content: start; }
.intro__side h2 { grid-column: 1 / -1; }
.intro__pic { grid-column: 1 / 4; aspect-ratio: 1; overflow: clip; margin-top: clamp(24px, 10vw, 160px); }
.intro__pic img { width: 100%; height: 100%; object-fit: cover; }
.intro__note { grid-column: 1 / 3; font-size: var(--step-small); line-height: 1.45; color: var(--ink-soft); max-width: 22ch; }
.intro__text { grid-column: 7 / -1; padding-top: clamp(0px, 4vw, 64px); display: grid; gap: 32px; align-content: start; }
.statement { font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.02em; text-indent: 3em; font-weight: 500; }
.intro__more { max-width: 52ch; }
.intro__more a { color: var(--accent); font-weight: 560; }

@media (max-width: 899.98px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .intro__more { max-width: none; }
  .intro__side, .intro__text { grid-column: 1; display: contents; }
  .intro__side > *, .intro__text > * { grid-column: 1; }
  .intro__side h2 { order: 1; }
  .statement { order: 2; text-indent: 0; font-size: var(--step-lead); }
  .intro__more { order: 3; }
  .intro__pic { order: 4; width: 62%; justify-self: end; aspect-ratio: 4 / 5; margin-top: 8px; }
  .intro__note { order: 5; max-width: 30ch; }
}

/* ---------------------------------------------------------------- Gründe + Rechner */

.reasons { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--section) var(--m); align-items: start; }
.reasons__list { grid-column: 1 / 7; container-type: inline-size; }
.giant { font-weight: 750; letter-spacing: -0.055em; line-height: 0.9; padding-top: 0.08em; text-transform: uppercase; font-size: 20cqw; white-space: nowrap; }
.giant [data-fit] { display: block; }
.reasons__sub { margin: 18px 0 20px; color: var(--ink-soft); font-size: var(--step-lead); letter-spacing: -0.015em; }
.bars { display: grid; gap: 6px; counter-reset: none; }
.bars__row { display: flex; align-items: center; min-height: 56px; padding: 12px 18px; background: var(--ground-2); font-weight: 520; line-height: 1.3; border-radius: 6px; transition: background-color var(--t-hover) var(--ease-out); }
.bars__row:hover { background: var(--ground-3); }
.reasons__calc { grid-column: 8 / -1; position: sticky; top: calc(var(--bar-h) + 24px); }

@media (max-width: 899.98px) {
  .reasons { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .reasons__list, .reasons__calc { grid-column: 1; position: static; }
}

.calc { background: var(--field); color: var(--field-ink); padding: clamp(24px, 3vw, 44px); border-radius: 20px; display: grid; gap: 24px; }
.calc__title { font-size: var(--step-lead); font-weight: 650; }
.calc__intro { color: var(--field-soft); line-height: 1.5; }
.calc__field { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; }
.calc__field label { font-weight: 560; }
.calc__field output { font-variant-numeric: tabular-nums; font-weight: 600; }
.calc__field input { grid-column: 1 / -1; width: 100%; accent-color: #9be3a5; height: 32px; margin: 0; cursor: pointer; }
.scale { border: 0; padding: 0; margin: 0; min-width: 0; }
.scale legend { font-weight: 560; padding: 0; margin-bottom: 12px; }
.scale__row { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.scale__step { position: relative; cursor: pointer; }
.scale__step input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.scale__k {
  display: grid; place-items: center; height: 48px; border-radius: 6px;
  background: var(--c); color: #111; font-weight: 700; font-size: var(--step-small);
  transition: transform var(--t-press) var(--ease-out);
}
.scale__step:nth-child(1) .scale__k, .scale__step:nth-child(n+8) .scale__k { color: #fff; }
.scale__step:active .scale__k { transform: scale(0.94); }
.scale__step input:checked + .scale__k { outline: 2px solid #fff; outline-offset: 3px; transform: translateY(-3px); }
.scale__step input:focus-visible + .scale__k { outline: 3px solid #fff; outline-offset: 3px; }
.scale__v { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.calc__result { display: grid; gap: 10px; padding-top: 4px; }
.calc__big { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc__note { color: var(--field-soft); }
.calc__note strong { color: #fff; }

/* ---------------------------------------------------------------- Galerie-Streifen */

.strip { position: relative; min-height: 88svh; display: grid; align-content: center; padding: 64px 0; background: var(--ground-2); overflow: clip; }
.strip__title { position: relative; z-index: 2; margin: 0 var(--m) -12px; font-size: var(--step-lead); font-weight: 650; letter-spacing: -0.02em; }
.strip__title span { color: var(--ink-soft); font-weight: 450; margin-left: 0.4em; }
.strip__row {
  display: flex; gap: 5vw; overflow-x: auto; padding: 32px var(--m) 32px; scroll-padding: 0 var(--m);
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab;
  scroll-snap-type: x proximity;
}
.strip__row::-webkit-scrollbar { display: none; }
.strip__row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip__row.is-dragging img { pointer-events: none; }
.strip__frame { flex: 0 0 auto; width: max(11vw, 150px); aspect-ratio: 2 / 3; scroll-snap-align: start; }
.strip__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms var(--ease-out); user-select: none; -webkit-user-drag: none; }
.strip__frame:hover img { transform: scale(1.1); }

@media (max-width: 699.98px) {
  .strip { min-height: 0; padding: 72px 0 56px; }
  .strip__title { margin-bottom: 0; }
  .strip__row { padding-top: 20px; }
  .strip__frame { width: 34vw; }
  .strip__row { scroll-snap-type: x mandatory; }
}

/* ---------------------------------------------------------------- Sanierung im Bestand (Streuung) */

.scatter { padding: var(--section) var(--m); }
.scatter > h2 { margin-bottom: clamp(40px, 5vw, 80px); }
.scatter__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(56px, 9vh, 120px); }
.scatter__item { display: grid; gap: 12px; text-decoration: none; align-content: start; }
.scatter__item--a { grid-column: 1 / 7; }
.scatter__item--b { grid-column: 9 / -1; margin-top: clamp(80px, 14vw, 240px); }
.scatter__item--c { grid-column: 3 / 10; }
.scatter__pic { display: block; overflow: clip; background: var(--ground-2); }
.scatter__item--a .scatter__pic { aspect-ratio: 3 / 2; }
.scatter__item--b .scatter__pic { aspect-ratio: 4 / 5; }
.scatter__item--c .scatter__pic { aspect-ratio: 16 / 9; }
.scatter__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-soft); }
.scatter__item:hover .scatter__pic img { transform: scale(1.04); }
.scatter__name { font-size: var(--step-small); color: var(--ink-soft); font-weight: 500; }
.scatter__desc { display: inline-flex; gap: 8px; align-items: center; font-size: var(--step-body); }
.scatter__desc svg { color: var(--accent); flex: none; }
.scatter__remark { grid-column: 2 / 7; align-self: center; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; max-width: 24ch; margin-top: clamp(-200px, -10vw, 0px); }

@media (max-width: 899.98px) {
  .scatter__grid { grid-template-columns: minmax(0, 1fr); row-gap: 72px; }
  .scatter__item { grid-column: 1 !important; margin-top: 0; }
  .scatter__item:nth-child(3n+2) { width: 68%; justify-self: end; }
  .scatter__item:nth-child(3n) { width: 82%; }
  .scatter__remark { grid-column: 1; margin: 0; }
}

/* ---------------------------------------------------------------- News */

.news-teaser { padding: 0 var(--m) var(--section); }
.news-teaser > h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.news-list { padding: 0 var(--m) var(--section); }
.news-teaser__item { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); text-decoration: none; background: var(--ground-2); border-radius: 20px; overflow: clip; }
.news-teaser__pic { grid-column: 1 / 7; display: block; aspect-ratio: 16 / 10; overflow: clip; }
.news-teaser__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-soft); }
.news-teaser__item:hover .news-teaser__pic img { transform: scale(1.03); }
.news-teaser__text { grid-column: 7 / -1; display: grid; gap: 14px; align-content: center; padding: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0; }
.news-teaser__text time { color: var(--ink-soft); font-size: var(--step-small); }
.news-teaser__h { display: block; font-size: var(--step-head); font-weight: 650; letter-spacing: -0.022em; line-height: 1.08; }
.news-teaser__p { color: var(--ink); max-width: 52ch; }

@media (max-width: 899.98px) {
  .news-teaser__item { grid-template-columns: 1fr; gap: 0; }
  .news-teaser__pic, .news-teaser__text { grid-column: 1; }
  .news-teaser__text { padding: 24px; }
}

/* ---------------------------------------------------------------- Adresse in großen Zeilen */

.address { background: var(--ground-2); padding-top: clamp(64px, 8vw, 120px); }
.address__h { padding: 0 var(--m); margin-bottom: 32px; }
.address__rows { display: grid; }
.address__row {
  display: flex; align-items: flex-end; min-height: clamp(84px, 10vw, 150px);
  padding: 0 var(--m) 0.24em; font-size: clamp(2rem, 1rem + 4.6vw, 5.5rem); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1; overflow-wrap: anywhere;
}
.address__row:nth-child(odd) { background: var(--ground-3); }
.address__row a { text-decoration: none; transition: color var(--t-hover) var(--ease-out); }
.address__row a:hover { color: var(--accent); }
.address__row--small { font-size: clamp(1.5rem, 0.7rem + 3.9vw, 5.5rem); }
.address__row--greet a { display: inline-flex; align-items: center; gap: 24px; }
.address__row--greet .round {
  display: inline-grid; place-items: center; width: 0.9em; height: 0.9em; border-radius: 50%;
  background: var(--accent); color: #fff; transition: transform var(--t-ui) var(--ease-out), background-color var(--t-hover);
}
.address__row--greet .round svg { width: 44%; height: 44%; }
.address__row--greet a:hover .round { transform: translateX(6px); }
.address__row--greet a:active .round { transform: scale(0.94); }

@media (max-width: 699.98px) {
  .address__row { font-size: 9vw; min-height: 84px; }
  .address__row--small { font-size: 6.6vw; }
  .address__row--greet { background: var(--accent) !important; color: #fff; padding-bottom: 0; align-items: center; }
  .address__row--greet a { width: 100%; justify-content: space-between; }
  .address__row--greet a:hover { color: #fff; }
  .address__row--greet .round { width: 56px; height: 56px; background: #fff; color: var(--accent); }
}

/* ---------------------------------------------------------------- Footer (Vorhang) */

.main { position: relative; z-index: 1; background: var(--ground); }
.foot {
  position: relative; z-index: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto;
  min-height: 100svh; padding: 40px var(--m) calc(18px + env(safe-area-inset-bottom));
  background: var(--field); color: var(--field-soft); font-size: var(--step-small); line-height: 1.6;
}
.foot__cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gap); }
.foot__cols > div { grid-column: span 3; display: grid; gap: 8px; align-content: start; }
.foot__head { color: var(--field-ink); font-weight: 600; }
.foot a { text-decoration: none; transition: color var(--t-hover) var(--ease-out); }
.foot a:hover { color: var(--field-ink); }
.foot__invite { align-self: end; color: var(--field-ink); font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; margin: 64px 0 28px; }
.foot__invite a { text-decoration: underline; text-decoration-thickness: 0.06em; }
.foot__mark { overflow: clip; padding-top: 0.04em; color: var(--field-ink); font-weight: 700; letter-spacing: -0.055em; line-height: 0.8; text-transform: uppercase; white-space: nowrap; transform-origin: 50% 100%; }
.foot__mark span { display: block; font-size: 15.4vw; text-align: center; }
.foot__legal { margin-top: 20px; font-size: var(--step-small); }

@media (max-width: 899.98px) {
  .foot { min-height: auto; }
  .foot__cols > div { grid-column: span 6; }
  .foot__invite { margin-top: 20svh; }
}

/* ---------------------------------------------------------------- Unterseiten */

.page-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gap); padding: clamp(48px, 9vw, 140px) var(--m) clamp(40px, 5vw, 72px); align-items: end; }
.page-head__text { grid-column: 1 / 9; display: grid; gap: clamp(20px, 2.4vw, 36px); }
.page-head h1 { font-size: var(--step-display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.96; hyphens: manual; overflow-wrap: break-word; }
.page-head__lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.012em; max-width: 40ch; }
.page-head__lead a { color: var(--accent); }
.page-head__nav { grid-column: 10 / -1; font-size: var(--step-body); }
.page-head__nav p { color: var(--ink-soft); margin-bottom: 8px; font-size: var(--step-small); }
.page-head__nav a { display: inline-block; padding: 3px 0; text-decoration: none; color: var(--ink-soft); transition: color var(--t-hover) var(--ease-out); }
.page-head__nav a:hover { color: var(--ink); }
.page-head__nav a[aria-current] { color: var(--ink); font-weight: 600; }
.page-head__pic { grid-column: 9 / -1; aspect-ratio: 4 / 3; overflow: clip; }
.page-head__pic img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { color: var(--ink-soft); font-size: var(--step-small); }
.post-meta a { color: var(--accent); text-decoration: none; }

.page-fig { margin: 0 var(--m); aspect-ratio: 21 / 9; overflow: clip; background: var(--ground-2); }
.page-fig img { width: 100%; height: 100%; object-fit: cover; }
.page-fig--contain { background: #fff; }
.page-fig--contain img { object-fit: contain; padding: 2%; }

.article { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(56px, 7vw, 112px) var(--m) var(--section); }
.article__body { grid-column: 1 / 8; display: grid; gap: 1.1em; align-content: start; max-width: 68ch; line-height: 1.62; }
.article__body h2 { margin-top: 1.4em; margin-bottom: 0.1em; }
.article__body h3 { font-size: var(--step-lead); margin-top: 1.2em; }
.article__body a { color: var(--accent); }
.article__aside { grid-column: 9 / -1; }
.advice { position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 14px; justify-items: start; background: var(--ground-2); padding: clamp(24px, 2.6vw, 36px); border-radius: 20px; }
.advice__h { font-weight: 650; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.advice .button { font-variant-numeric: tabular-nums; }

.facts { display: grid; gap: 6px; margin: 0.4em 0; }
.facts li { background: var(--ground-2); padding: 16px 20px; border-radius: 6px; line-height: 1.45; }
.facts strong { display: block; font-weight: 600; }
.facts span { display: block; color: var(--ink); margin-top: 2px; }
.inline-fig { margin: 1.2em 0; display: grid; gap: 10px; }
.inline-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.inline-fig--pair > div { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.inline-fig--pair img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.inline-fig figcaption { color: var(--ink-soft); font-size: var(--step-small); }

.page-calc { padding: 0 var(--m) var(--section); display: grid; grid-template-columns: repeat(12, 1fr); }
.page-calc .calc { grid-column: 1 / 8; }

.next { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; margin: 0 var(--m) var(--section); text-decoration: none; background: var(--ground-2); border-radius: 20px; overflow: clip; }
.next__text { grid-column: 1 / 7; display: grid; gap: 12px; padding: clamp(28px, 4vw, 64px); }
.next__label { color: var(--ink-soft); font-size: var(--step-small); }
.next__title { font-size: var(--step-head); font-weight: 650; letter-spacing: -0.025em; line-height: 1.05; transition: color var(--t-hover) var(--ease-out); }
.next:hover .next__title { color: var(--accent); }
.next__p { color: var(--ink); max-width: 46ch; }
.next__pic { grid-column: 7 / -1; align-self: stretch; overflow: clip; min-height: 260px; }
.next__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-soft); }
.next:hover .next__pic img { transform: scale(1.04); }

.legal { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: var(--section) var(--m); }
.legal__title { grid-column: 1 / 5; }
.legal__body { grid-column: 5 / 12; display: grid; gap: 1em; max-width: 72ch; }
.legal--page { padding-top: 0; }
.legal--page .legal__body { grid-column: 1 / 9; }
.legal__body h2 { font-size: var(--step-lead); margin-top: 1.4em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: var(--step-body); margin-top: 1.2em; }
.legal__body a { color: var(--accent); overflow-wrap: anywhere; }

@media (max-width: 899.98px) {
  .page-head { grid-template-columns: minmax(0, 1fr); }
  .page-head__text, .page-head__nav, .page-head__pic { grid-column: 1; }
  .page-head__nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .page-head__nav a { padding: 6px 0; }
  .page-fig { aspect-ratio: 4 / 3; margin: 0; }
  .article { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .article__body, .article__aside { grid-column: 1; }
  .page-calc { grid-template-columns: 1fr; }
  .page-calc .calc { grid-column: 1; }
  .next { grid-template-columns: 1fr; gap: 0; }
  .next__text, .next__pic { grid-column: 1; }
  .next__pic { min-height: 0; aspect-ratio: 16 / 9; }
  .legal { grid-template-columns: 1fr; }
  .legal__title, .legal__body, .legal--page .legal__body { grid-column: 1; }
}

/* ---------------------------------------------------------------- Bewegung */

@media (prefers-reduced-motion: no-preference) {
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: load-rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js .monument__line > span:not(.monument__window) { display: inline-block; opacity: 0; transform: translateY(18%); animation: load-rise 900ms var(--ease-expo) forwards; }
  .js .monument__line > span:last-child { animation-delay: 120ms; }
  .js .monument__window { clip-path: polygon(50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 100% 100%, 0 100%, 0 100%); animation: house-open 1100ms var(--ease-in-out) 260ms forwards; }
  .monument__window img { animation: settle 9s var(--ease-soft) both; }
  .js [data-open] { clip-path: inset(0 0 100% 0); animation: open 1000ms var(--ease-in-out) 150ms forwards; }
  .js [data-open] img { transform: scale(1.08); animation: settle 1400ms var(--ease-expo) 100ms forwards; }
  .js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform var(--t-reveal) var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-rise].in { opacity: 1; transform: none; }
  .js .bars.in .bars__row { animation: row-in 600ms var(--ease-out) both; animation-delay: calc(var(--r) * 60ms + 120ms); }
  .js .strip__row .strip__frame { opacity: 0; transform: translateX(40px); transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--r, 0) * 70ms); }
  .js .strip__row.in .strip__frame { opacity: 1; transform: none; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes open { to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes house-open { to { clip-path: polygon(50% 0, 69% 17%, 69% 4%, 82% 4%, 82% 29%, 100% 45%, 100% 100%, 0 100%, 0 45%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .strip__frame:hover img, .scatter__item:hover .scatter__pic img, .next:hover .next__pic img { transform: none; }
}

@media print {
  .bar, .foot, .advice, .calc { display: none; }
  .main { background: none; }
}

/* ---------------------------------------------------------------- Bildband (verwandte Seiten) */

.band { padding: 0 var(--m) var(--section); }
.band > h2 { margin-bottom: clamp(28px, 3.5vw, 48px); }
.band__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.band__card { display: grid; gap: 10px; text-decoration: none; }
.band__pic { display: block; aspect-ratio: 4 / 3; overflow: clip; background: var(--ground-2); border-radius: 14px; }
.band__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-soft); }
.band__card:hover .band__pic img { transform: scale(1.04); }
.band__title { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: var(--step-lead); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; transition: color var(--t-hover) var(--ease-out); }
.band__title svg { width: 0.8em; height: 0.8em; color: var(--accent); transition: transform var(--t-ui) var(--ease-out); }
.band__card:hover .band__title { color: var(--accent); }
.band__card:hover .band__title svg { transform: translateX(4px); }
.band__p { color: var(--ink); }
.js .band__row > li[data-rise] { transition-delay: calc(var(--i, 0) * 90ms); }

@media (max-width: 899.98px) {
  .band__row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .advice { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; }
  .advice > p { grid-column: 1; }
  .advice .button, .advice .link-arrow { grid-column: 2; justify-self: end; }
  .advice .button { grid-row: 1; }
  .advice .link-arrow { grid-row: 2; }
}
@media (max-width: 559.98px) {
  .advice { grid-template-columns: minmax(0, 1fr); }
  .advice .button, .advice .link-arrow { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (min-width: 900px) {
  .legal__body { grid-column: 5 / -1; display: block; max-width: none; columns: 2; column-gap: calc(var(--gap) * 2); }
  .legal--page .legal__body { grid-column: 1 / -1; columns: 3; }
  .legal__body > * { break-inside: avoid; margin-bottom: 1em; }
  .legal__body > h2, .legal__body > h3 { break-after: avoid; }
}

a[href^="tel:"] { white-space: nowrap; }
.all-links { columns: 3 14em; column-gap: var(--gap); font-size: var(--step-lead); }
.all-links a { display: inline-block; padding: 4px 0; text-decoration: none; font-weight: 560; letter-spacing: -0.015em; }
.all-links a:hover { color: var(--accent); }
.hero__corner--tr { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.012em; }
.hero__corner--tr a { text-decoration: none; color: var(--accent); font-weight: 560; }
.hero__corner--tr a:hover { color: var(--accent-press); }
@media (max-width: 699.98px) { .hero__corner--tr { display: none; } }
