:root {
  --tide: #34463f;
  --sand: #efeae0;
  --brass: #99bdb5;
  --brass-ink: #48685d;
  --petrol: #516c63;
  --haze: #d2d4c9;
  --line: #d3d0c6;
  --card: #f8f5ed;
  --ral-salbei: #99bdb5;
  --ral-seidengrau: #c9c6be;
  --ral-creme: #ece5d9;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-sans: "Source Sans 3", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5.5rem; }
body.startseite { margin: 0; background: var(--sand); color: var(--tide); font: 400 1.0625rem/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
.startseite :where(h1,h2,h3,h4,p,figure,dl,dd,ol,ul) { margin: 0; }
.startseite :where(img) { display: block; max-width: 100%; }
.startseite :where(a) { color: inherit; text-decoration: none; }
.startseite :where(button,input,select,textarea) { font: inherit; }
.startseite :where(button) { cursor: pointer; }
.startseite :where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #608c80; outline-offset: 4px;
}
.container-wide { width: 100%; max-width: 88rem; margin-inline: auto; padding-inline: 1.25rem; }
.startseite .light { background: var(--sand); color: var(--tide); }
.startseite .dark { background: var(--tide); color: var(--sand); }
.chapter { padding-block: 6rem; }
.startseite .eyebrow, .contact-info dt, .facts-list dt {
  font: 600 .875rem/1.45 var(--font-sans); letter-spacing: .115em; text-transform: uppercase; color: var(--brass-ink);
}
.dark .eyebrow { color: var(--brass); }
.intro { max-width: 42rem; }
.intro h2, .interior h2, .film-intro h2, .developer-panel h3 {
  margin-top: 1rem; font: 500 clamp(2.1rem,4.8vw,3rem)/1.12 var(--font-display); letter-spacing: -.03em;
}
.hairline { height: 1px; width: 100%; max-width: 12rem; margin-top: 2rem; background: linear-gradient(90deg,transparent,var(--brass) 20%,var(--brass) 80%,transparent); }
.intro > p:not(.eyebrow) { margin-top: 1.5rem; max-width: 58ch; color: #56635b; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 120; padding: .8rem 1.2rem; background: var(--card); color: var(--tide); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.masthead { position: fixed; inset: 0 0 auto; z-index: 50; color: #faf6ec; border-bottom: 1px solid transparent; transition: background .35s, color .35s, border-color .35s; }
.masthead.scrolled, .masthead.open { background: rgb(239 234 224 / 95%); backdrop-filter: blur(14px); color: var(--tide); border-color: var(--line); }
.masthead-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; flex-shrink: 0; font: 400 1.125rem/1 var(--font-display); letter-spacing: -.025em; }
.wordmark { --zeichengroesse: 2.65rem; gap: .48rem; }
.masthead nav { display: flex; align-items: center; gap: clamp(1rem,2.1vw,2rem); font-size: 1rem; font-weight: 600; }
.masthead nav > a { transition: color .2s, background .2s; }
.masthead nav > a:not(.nav-contact):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-contact, .menu-trigger { border-radius: 99rem; }
.nav-contact { background: var(--brass); color: #263832; padding: .625rem 1.25rem; }
.menu-trigger { display: none; color: inherit; border: 1px solid currentColor; padding: .45rem 1rem; background: transparent; font-size: 1rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--tide); color: #faf6ec; }
.hero-image { position: absolute; inset: 0 0 6rem; z-index: -1; overflow: hidden; }
.hero-image > img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; animation: hero-arrival 16s cubic-bezier(.22,.61,.36,1) both; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at top,transparent,rgb(29 42 36 / 30%)),linear-gradient(to bottom,rgb(32 47 41 / 53%),rgb(26 39 33 / var(--hero-mitte,48%)) 43%,rgb(27 41 35 / 78%) 76%,rgb(34 49 43 / 94%)); }
@keyframes hero-arrival { from { transform: scale(1.045); } to { transform: scale(1); } }
.hero-inner { min-height: 100vh; min-height: 100svh; display: flex; align-items: end; }
.hero-content { display: grid; gap: 3rem; width: 100%; padding-block: 8rem 4rem; }
.hero-heading .eyebrow { color: #faf6ec; }
.hero h1 { font: 500 clamp(2rem,4.3vw,4rem)/1.08 var(--font-display); letter-spacing: -.035em; margin-top: 1.5rem; }
.hero h1 span { display: block; }
.hero .hairline { max-width: 28rem; margin-top: 2.5rem; }
.hero-lead { max-width: 36rem; margin-top: 2rem; color: #f1f1e6; line-height: 1.625; }
.hero-actions, .document-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: .9rem 1.5rem; border: 1px solid transparent; border-radius: 99rem; font-size: 1rem; line-height: 1.45; font-weight: 600; transition: background .18s, border-color .18s; }
.pill.primary { padding-inline: 1.65rem; background: var(--brass); color: #263832; }
.pill.primary:hover, .nav-contact:hover { background: #afcfc4; }
.pill.ghost { border-color: rgb(239 234 224 / 45%); }
.pill.ghost:hover { background: rgb(239 234 224 / 10%); border-color: var(--sand); }
.hero-stats, .local-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.hero-stats { grid-template-columns: repeat(3,auto); justify-content: start; margin-top: 2.5rem; gap: clamp(.65rem,1.65vw,1.65rem); }
.hero-stats dt { font-size: .875rem; font-weight: 600; line-height: 1.35; color: #f0f0e8; }
.hero-stats dd { margin-top: .5rem; font: 400 2.25rem/1.1 var(--font-display); }
.hero-stats .stat-note { margin-top: .15rem; color: #d4dbd2; font: 400 .875rem/1.4 var(--font-sans); }
.photo-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: relative; height: 6rem; }
.photo-strip > img { width: 100%; height: 100%; object-fit: cover; opacity: .74; border-right: 1px solid rgb(239 234 224 / 14%); }
.photo-strip::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3rem; background: linear-gradient(transparent,var(--sand)); }
.feature-grid { padding: 0; list-style: none; margin-top: 3rem; display: grid; }
.feature-grid li { padding: 2rem; border-bottom: 1px solid var(--line); transition: background .25s; }
.feature-grid li:last-child { border-bottom: 0; }
.feature-grid li:hover { background: var(--card); }
.feature-index { display: flex; align-items: baseline; gap: 1rem; color: var(--brass-ink); font: 400 1.5rem/1.3 var(--font-display); }
.feature-index::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.feature-grid h3, .gallery-caption h3, .references-grid h4 { font: 500 1.45rem/1.22 var(--font-display); }
.feature-grid h3 { margin-top: 1.5rem; letter-spacing: -.015em; }
.feature-grid p { margin-top: .75rem; color: #536259; font-size: 1.0625rem; line-height: 1.6; }
.exterior-pair { margin-top: 5rem; display: grid; gap: 1.5rem; }
.exterior-pair img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); border-radius: 1rem; aspect-ratio: 1.6; }
#film { padding-bottom: 6rem; }
.film-intro { display: grid; align-items: end; gap: 2rem; }
.film-intro h2 { font-size: 2.25rem; }
.film-intro > p { color: #536259; }
.film-frame { position: relative; max-width: 56rem; margin: 2.5rem auto 0; border-radius: .75rem; border: 1px solid var(--line); overflow: hidden; background: var(--tide); }
.film-frame > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.film-frame::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(transparent,rgb(29 42 36 / 60%)); }
.film-frame figcaption { position: absolute; z-index: 1; bottom: 1.1rem; left: 1.35rem; color: #fff; font-size: .9375rem; line-height: 1.4; }
.interior { padding-block: 5rem; overflow: hidden; }
.gallery-layout { display: grid; gap: 1.25rem; margin-top: 3rem; }
.gallery-layout > div { min-width: 0; }
.gallery-stage { position: relative; aspect-ratio: 16/9; background: var(--card); overflow: hidden; touch-action: pan-y pinch-zoom; }
.gallery-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .65s; }
.gallery-stage img.active { opacity: 1; }
.gallery-stage img[src*="innen-03"] { object-position: 50% 52%; }
.circle { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0; background: var(--card); color: var(--tide); font: 400 1.2rem/1 var(--font-sans); border: 1px solid var(--line); border-radius: 50%; }
.circle:hover { background: var(--brass); }
.gallery-stage .previous { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-caption { display: grid; align-items: start; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1rem 0; }
.gallery-caption p { font-size: 1.0625rem; line-height: 1.625; color: #526058; }
.gallery-count { color: #47564d; font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gallery-next-preview { display: none; border: 0; padding: 0; }
.gallery-controls { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.gallery-bars { display: grid; flex: 1; grid-template-columns: repeat(4,1fr); gap: .5rem; }
.gallery-bars button { display: grid; align-items: center; padding: 0; height: 2.2rem; border: 0; background: transparent; }
.gallery-bars button::after { content: ""; display: block; height: 3px; background: var(--line); }
.gallery-bars button[aria-pressed="true"]::after { background: var(--brass-ink); }
.location-copy { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
.location-copy .eyebrow { color: var(--haze); }
.location-copy p:not(.eyebrow) { margin-top: .8rem; color: #e5e6dc; font-size: 1.125rem; line-height: 1.625; }
.local-stats { margin: 5rem 0 2rem; border-block: 1px solid rgb(239 234 224 / 25%); }
.local-stats > div { display: flex; flex-direction: column-reverse; justify-content: start; padding-block: 1.25rem; }
.local-stats > div:nth-child(2) { padding-inline: .75rem; border-inline: 1px solid rgb(239 234 224 / 25%); }
.local-stats > div:last-child { padding-left: .75rem; }
.local-stats dt { margin-top: .3rem; font-size: .875rem; line-height:1.4; color: #e0e3d9; }
.local-stats dd { color: var(--brass); font: 500 clamp(1rem,2.65vw,2.05rem)/1.2 var(--font-display); }
.facts-list { margin-top: 3.5rem; border-top: 1px solid rgb(239 234 224 / 20%); }
.facts-list > div { display: grid; gap: .5rem; border-bottom: 1px solid rgb(239 234 224 / 20%); padding-block: 1rem; }
.facts-list dt { color: #d0d5c9; }
.facts-list dd { color: var(--sand); font: 400 1.125rem/1.55 var(--font-sans); }
.document-links { margin-top: 2.5rem; }
.interlude { position: relative; background: var(--tide); }
.interlude > img { width: 100%; height: auto; }
.interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom,var(--tide),transparent min(6rem,20%),transparent calc(100% - min(8rem,22%)),var(--tide)); }
.contact-grid { display: grid; align-items: start; gap: 3rem; }
.contact-grid > div { min-width: 0; }
.contact-info { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.contact-info img { margin-bottom: 1rem; height: 2.25rem; width: auto; }
.contact-info dd { font: 500 1.22rem/1.4 var(--font-sans); margin-top: .25rem; overflow-wrap: anywhere; }
.contact-info dd.contact-role { font: 400 .875rem/1.5 var(--font-sans); color: #59685f; }
.contact-info a:hover, .text-link:hover { text-decoration: underline; }
#bautraeger { margin-top: 5rem; scroll-margin-top: 1rem; }
.developer-panel { padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 1rem; }
.developer-name { font: 500 1.45rem/1.22 var(--font-display); }
.developer-panel .eyebrow { margin-top: 1.5rem; }
.developer-panel h3 { font-size: 2rem; line-height: 1.14; }
.developer-panel .hairline { max-width: 10rem; margin-top: 1.5rem; }
.developer-copy { max-width: 75ch; margin-top: 1.5rem; font-size: 1.0625rem; line-height: 1.625; color: #56635b; }
.developer-copy > p + p { margin-top: 1rem; }
.text-link { font-size: 1rem; }
.references { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.references-grid { display: grid; margin-top: 1.5rem; gap: 2rem; }
.ref-image { width: 100%; position: relative; display: block; padding: 0; border: 0; border-radius: .2rem; overflow: hidden; background: var(--line); }
.ref-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.ref-image span { position: absolute; left: 50%; top: 50%; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; background: var(--card); color: var(--tide); font-size: 1.4rem; opacity: 0; transition: opacity .25s; }
.ref-image:hover img,.ref-image:focus-visible img { transform: scale(1.035); }
.ref-image:hover span,.ref-image:focus-visible span { opacity: 1; }
.references-grid h4 { margin-top: 1rem; }
.references-grid p { margin-top: .25rem; font-size: 1rem; color: #56635b; }
.site-footer { font-size: 1rem; }
.footer-grid { display: grid; gap: 3rem; padding-block: 4rem; }
.footer-name { display:flex; align-items:center; gap:.45rem; --zeichengroesse:2.45rem; font: 400 1.5rem/1.3 var(--font-display); margin-bottom: .5rem; }
.footer-subhead { margin: 1.5rem 0 .5rem !important; }
.footer-company { font: 400 1.125rem/1.5 var(--font-display); }
.footer-grid img { width: auto; max-width: 9rem; height: 2.5rem; object-fit: contain; object-position: left; filter: brightness(0) invert(95%); margin-bottom: .5rem; }
.site-footer nav { display: grid; justify-items: start; gap: .5rem; margin-top: 1rem; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-base { border-top: 1px solid rgb(239 234 224 / 15%); }
.footer-base > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; font-size: .875rem; }
#bildansicht { width: min(58rem,95vw); padding: 1rem; color: var(--sand); background: #293932; border: 1px solid #88978c; border-radius: .75rem; max-height: 95dvh; }
#bildansicht::backdrop { background: rgb(19 28 24 / 83%); }
#bildansicht > img { display: block; margin: 0 auto; max-height: 68vh; object-fit: contain; }
.viewer-tools { display: flex; justify-content: end; margin-bottom: .65rem; }
.viewer-tools button { background: none; color: inherit; border: 0; padding: .45rem; }
.viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .75rem; text-align: center; }
.viewer-bottom .circle { flex-shrink: 0; }
@media (min-width: 40rem) {
  .container-wide { padding-inline: 2rem; }
  .chapter { padding-block: 8rem; }
  .intro h2, .interior h2 { font-size: clamp(2.55rem,4.5vw,3.6rem); }
  .hero-image { bottom: 8rem; }
  .hero-lead { font-size: 1.1875rem; }
  .photo-strip { height: 8rem; }
  .feature-grid { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 4rem; }
  .feature-grid li { grid-column: span 2; padding: 2.5rem; }
  .feature-grid li:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line); }
  .feature-grid li:last-child { grid-column: 2/span 2; }
  #film { padding-bottom: 8rem; }
  .film-intro h2 { font-size: 3rem; }
  .interior { padding-block: 7rem; }
  .gallery-caption { grid-template-columns: minmax(12rem,1fr) minmax(0,2fr) auto; }
  .local-stats > div { padding-block: 1.5rem; }
  .local-stats > div:nth-child(2) { padding-inline: 1.5rem; }
  .local-stats > div:last-child { padding-left: 1.5rem; }
  .local-stats dt { font-size: .875rem; }
  .facts-list > div { grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 1rem; }
  .facts-list dd { font-size: 1.16rem; }
  #bautraeger { margin-top: 7rem; }
  .developer-panel { padding: 2.5rem; }
  .developer-panel h3 { font-size: 2.25rem; }
}
@media (min-width: 48rem) {
  .hero-image { bottom: 10rem; }
  .hero-content { grid-template-columns: minmax(0,8fr) minmax(0,4fr); align-items: end; padding-bottom: 6rem; }
  .hero-aside { padding-bottom: .5rem; }
  .photo-strip { height: 10rem; }
  .exterior-pair, .film-intro { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }
  .exterior-pair img:last-child { aspect-ratio: auto; }
  .film-intro > p { margin-left: auto; }
  .location-copy, .references-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 64rem) {
  .container-wide { padding-inline: 3rem; }
  .feature-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .feature-grid li:nth-child(n) { border-right: 1px solid var(--line); }
  .feature-grid li:nth-child(3), .feature-grid li:last-child { border-right: 0; }
  .feature-grid li:nth-child(4) { grid-column: 2/span 2; border-bottom: 0; }
  .feature-grid li:last-child { grid-column: 4/span 2; }
  .gallery-layout { grid-template-columns: minmax(0,1fr) minmax(9rem,11rem); }
  .gallery-next-preview { position: relative; display: block; align-self: start; height: calc(min(100vw - 6rem,82rem) * .5625 - 6.89rem); overflow: hidden; background: var(--card); }
  .gallery-next-preview img { height: 100%; width: 100%; object-fit: cover; }
  .gallery-next-preview .circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
  .next-title { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1rem .75rem; background: rgb(239 234 224 / 92%); color: var(--tide); font: 500 1.1rem/1.25 var(--font-display); }
  .contact-grid { grid-template-columns: minmax(0,5fr) minmax(0,7fr); }
}
@media (min-width: 80rem) { .references-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 55rem) {
  .hero { --hero-mitte: 62%; }
  .menu-trigger { display: inline-flex; }
  .masthead nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: .5rem 1.25rem 1.25rem; background: var(--sand); border-bottom: 1px solid var(--line); }
  .masthead.open nav { display: grid; gap: .125rem; }
  .masthead nav a { padding: .75rem .25rem; }
  .masthead nav .nav-contact { padding-inline: 1.25rem; text-align: center; margin-top: .3rem; }
}
@media (prefers-reduced-motion:no-preference) {
  html { scroll-behavior: smooth; }
  .reveal-pending { opacity: 0; transform: translateY(1rem); }
  .reveal { transition: opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1); }
}
@media (prefers-reduced-motion:reduce) {
  .hero-image > img { animation: none; }
  .gallery-stage img, .ref-image img, .masthead { transition: none; }
}

@media (max-width: 23rem) {
  .local-stats { grid-template-columns: 1fr; }
  .local-stats > div, .local-stats > div:nth-child(2), .local-stats > div:last-child {
    display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: baseline;
    padding: .85rem 0; border-inline: 0;
  }
  .local-stats > div + div { border-top: 1px solid rgb(239 234 224 / 25%); }
  .local-stats dt { grid-area: 1 / 2; margin: 0; }
  .local-stats dd { grid-area: 1 / 1; font-size: 1.125rem; }
}
