/* Wohnen am Disselhook: warme Papierflächen, Fotokarten und gezeichnete Details. */
:root {
  color-scheme: light;
  --paper: #fdfbf7;
  --cream: #f2eee5;
  --ink: #302e2a;
  --muted: #625c52;
  --brand: #762118;
  --brand-dark: #59180f;
  --blue: #48616f;
  --blue-pale: #e7edef;
  --line: #d3c9ba;
  --warm-from: #e6dbce;
  --warm-mid: #f0e8dc;
  --warm-to: #e8ded1;
  --warm-border: #b7a48f;
  --warm-gradient: linear-gradient(115deg, var(--warm-from) 0%, var(--warm-mid) 62%, var(--warm-to) 100%);
  --white: #fffefa;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 5.5rem);
  --measure: 80rem;
  --grain: url('../img/brand/papier.svg');
}
* { box-sizing: border-box; }
html { scroll-padding-top: 8rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip; color: var(--ink); font: clamp(1.125rem, 1rem + .3vw, 1.3125rem)/1.7 var(--sans);
  background-color: var(--paper);
  background-image: var(--grain), radial-gradient(ellipse at 12% 18%, #e8dfcc58, transparent 65%);
  background-size: 180px 180px, 100% 1200px;
  background-repeat: repeat, no-repeat;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
figure, p, dl { margin: 0; }
p + p { margin-top: 1.2em; }
address { font-style: normal; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a, button { -webkit-tap-highlight-color: #e9ded1; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }
.brand:focus-visible { outline-color: var(--brand); border-radius: 2px; }
main:focus { outline: none; }
::selection { color: var(--white); background: var(--brand); }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.14; text-wrap: balance; overflow-wrap: break-word; }
h1 { color: var(--brand); font-size: clamp(2.75rem, 5vw, 4.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3.3vw, 3.15rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); letter-spacing: -.025em; }
h4 { font-size: 1.4rem; }
p, li, dd { overflow-wrap: break-word; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .45rem; }
.layout-container { width: min(var(--measure), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section-space { margin-top: clamp(5rem, 9vw, 9rem); }
.eyebrow { color: var(--blue); font-size: .875rem; line-height: 1.5; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow + h1, .eyebrow + h2 { margin-top: 1.1rem; }
.prose { max-width: 61ch; }
.diamond { display: block; flex: 0 0 18px; width: 18px; height: 18px; color: var(--blue); }
.ornament { display: inline-flex; align-items: center; gap: .65rem; }
.ornament-line { flex: 1 1 auto; height: 1px; background: currentColor; }
.ornament-diamond { color: var(--blue); }
.arrow { display: inline-block; flex: 0 0 auto; vertical-align: middle; transition: transform .18s ease; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(calc(-100% - 1.5rem)); padding: .8rem 1.2rem; border: 1px solid var(--brand); background: var(--brand); color: var(--white); text-decoration: none; box-shadow: 0 4px 18px #0002; }
.skip-link:focus, .skip-link:focus-visible { transform: none; outline-color: var(--brand-dark); }
/* Ein ruhiger, deckender Kopf. Die Desktop-Navigation bleibt direkt sichtbar. */
.site-header { position: sticky; top: 0; z-index: 50; border-top: 5px solid var(--brand); border-bottom: 1px solid var(--line); background: var(--grain), var(--paper); box-shadow: 0 10px 34px transparent; transform: translateY(0); transition: transform .34s cubic-bezier(.22,.61,.36,1), box-shadow .34s ease; }
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; min-height: 116px; padding-block: 1.1rem; }
.site-header.is-scroll-hidden { transform: translateY(calc(-100% - 6px)); }
.site-header.is-scroll-shadow { box-shadow: 0 10px 34px #2d241c16; }
.brand { display: inline-flex; flex: 0 0 auto; flex-direction: column; align-items: center; color: var(--brand); text-decoration: none; line-height: 1; }
.brand-small { font: .95rem/1.16 var(--serif); letter-spacing: .012em; }
.brand-name { margin-top: .08rem; font: 1.82rem/1.12 var(--serif); letter-spacing: .012em; }
.brand-ornament { width: 6.6rem; margin-top: .22rem; color: var(--line); }
.main-navigation { min-width: 0; max-width: 100%; }
#hauptnavigation ul { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.1rem, 2.1vw, 2.3rem); list-style: none; margin: 0; padding: 0; }
#hauptnavigation li { margin: 0; }
#hauptnavigation a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-size: 1.0625rem; text-decoration: none; position: relative; }
#hauptnavigation a::after { content: ''; position: absolute; bottom: 6px; left: 0; right: 0; height: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .18s ease, height .18s ease; }
#hauptnavigation a:hover::after, #hauptnavigation a[aria-current]::after { transform: scaleX(1); }
#hauptnavigation a:hover::after { height: 2px; }
#hauptnavigation a[aria-current] { color: var(--brand); }
#hauptnavigation .arrow { display: none; }
.menu-toggle { min-height: 48px; min-width: 48px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--brand); border: 1px solid var(--line); padding: .6rem; line-height: 1; }
.menu-toggle svg { flex: 0 0 auto; width: 22px; height: 22px; }
.menu-toggle path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .2s ease, opacity .2s ease; }
.menu-line-first { transform-origin: 12px 7px; }
.menu-line-last { transform-origin: 12px 17px; }
.menu-toggle[aria-expanded='true'] .menu-line-first { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-line-middle { opacity: 0; }
.menu-toggle[aria-expanded='true'] .menu-line-last { transform: translateY(-5px) rotate(-45deg); }
/* Der Text und der Pfeil bilden einen Link; nur der Text wird unterstrichen. */
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.3rem; min-height: 58px; max-width: 100%; padding: .9rem 1.4rem; border: 1px solid var(--brand); font-size: 1.0625rem; line-height: 1.45; text-align: left; text-decoration: none; }
.button > span, .button > svg { position: relative; z-index: 1; }
.button > span { min-width: 0; }
.button-primary { background: var(--brand); color: var(--white); }
.button-primary::before { content: ''; position: absolute; z-index: 0; inset: 0; background: var(--brand-dark); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.button-primary:hover::before, .button-primary:focus-visible::before { transform: scaleX(1); }
.button-primary:hover { text-decoration: none; }
.button:hover .arrow, .text-link:hover .arrow, .related-links a:hover .arrow { transform: translateX(3px); }
p + .button, .prose > .button, .living-copy > .button, .community-copy > .button { margin-top: 1.8rem; }
.text-link { display: inline-flex; align-items: center; gap: .85rem; min-height: 44px; max-width: 100%; margin-top: 1.2rem; font-size: inherit; line-height: 1.5; text-decoration: none; }
.text-link:hover { text-decoration: none; }
.text-link > span, .back-to-top > span, .related-links a > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.text-link:hover > span, .back-to-top:hover > span, .related-links a:hover > span { text-decoration-thickness: 2px; }
/* Fotografien und die hellen Ränder der Fotokarten. */
.photo { display: block; width: 100%; height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
figcaption, .caption-text { color: var(--muted); font: italic 1rem/1.55 var(--serif); letter-spacing: .002em; }
figcaption { padding-top: .85rem; }
.photo-card-image { margin-inline: .4rem; padding: 12px; background: var(--white); box-shadow: 0 8px 30px #42372c12, 0 1px 4px #42372c0a; transform: rotate(var(--photo-rotation, -1.1deg)); }
/* Startseite: ein Leitsatz, ein Ort, ein Bildpaar. */
.home-hero { padding-top: clamp(2rem, 4.5vw, 4.4rem); }
.hero-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.2rem, 4vw, 4rem); align-items: center; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 1.7rem; }
.hero-copy h1 { font-size: clamp(3.4rem, 6.05vw, 6.25rem); line-height: 1.025; letter-spacing: -.056em; }
.hero-copy h1 span, .hero-copy h1 em { display: block; }
.hero-copy h1 em { font-weight: 400; color: var(--blue); padding-bottom: .08em; }
.hero-location { margin-top: 1.8rem; color: var(--blue); font-size: 1.125rem; line-height: 1.5; letter-spacing: .035em; white-space: nowrap; }
.hero-description { max-width: 37ch; margin-top: 1.8rem; line-height: 1.75; }
.hero-visual { position: relative; min-width: 0; }
.hero-photo-stack { position: relative; margin-inline: 0; transform: none; }
.hero-photo-stack > .photo { aspect-ratio: 1.12; }
.hero-main-photo img { object-position: 55% 50%; }
.hero-main-photo figcaption { text-align: right; padding-top: 1rem; }
.has-detail .hero-main-photo figcaption { padding-top: 2.5rem; }
.hero-detail-photo { position: absolute; width: clamp(135px, 14vw, 190px); left: -2rem; bottom: -.8rem; padding: 8px; background: var(--white); transform: rotate(-4deg); box-shadow: 0 7px 26px #322a221c; }
.hero-detail-photo .photo { aspect-ratio: 3 / 4; }
.hero-detail-photo img { object-position: center; }
.season-spring .hero-main-photo img { object-position: 50% 44%; }
.season-winter .hero-main-photo img { object-position: 50% 68%; }
.season-advent .hero-main-photo img { object-position: 52% 52%; }
.introduction-grid, .living-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.introduction-grid .prose { padding-top: 1.5rem; }
.introduction-heading h2 { max-width: none; }
.home-facts { display: grid; grid-template-columns: 1fr 1.35fr 1fr; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.living-facts { margin-top: 2.1rem; padding-top: 1.65rem; }
.home-facts > div { display: flex; flex-direction: column-reverse; gap: .45rem; padding-inline: clamp(1.25rem, 4vw, 4rem); border-left: 1px solid var(--line); }
.living-facts > div { padding-inline: clamp(.7rem, 1.4vw, 1.35rem); }
.home-facts > div:first-child { padding-left: 0; border: 0; }
.home-facts dt { color: var(--muted); font-size: 1.0625rem; }
.home-facts dd { margin: 0; color: var(--brand); font: clamp(2.8rem, 5vw, 4.6rem)/1.05 var(--serif); letter-spacing: -.05em; }
.living-facts dd { font-size: clamp(2rem, 3.2vw, 3.25rem); }
.home-facts dd span { font-size: .45em; }
.feature-band { margin-inline: calc(50% - 50vw); }
.warm-surface { background: var(--grain), var(--warm-gradient); color: var(--ink); }
.warm-surface h2, .warm-surface strong { color: var(--ink); }
.warm-surface .eyebrow { color: var(--blue); }
.warm-surface figcaption { color: var(--muted); }
.warm-surface .home-facts, .warm-surface .home-facts > div { border-color: var(--line); }
.warm-surface .home-facts dt { color: var(--muted); }
.warm-surface .home-facts dd { color: var(--brand); }
.warm-surface .button-primary { border-color: transparent; }
.feature-band.warm-surface.content-section { padding-block: clamp(3.5rem, 6vw, 5.5rem); border-top: 0; }
.feature-band-blue { background: var(--grain), var(--blue); color: var(--white); }
.feature-band-blue h2, .feature-band-blue strong { color: var(--white); }
.home-living { padding-block: clamp(3.5rem, 6.5vw, 6.5rem); }
.living-grid { align-items: center; }
.living-photo-wrap { min-width: 0; }
.living-photo .photo { aspect-ratio: 1.03; border: 10px solid var(--white); box-shadow: 0 8px 26px #42372c10; }
.living-photo img { object-position: 36% 52%; }
.living-photo figcaption { padding-inline: .65rem; }
.living-copy h2 { margin-bottom: 1.5rem; }
.community-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(3rem, 9vw, 9rem); align-items: center; }
.community-copy h2 { margin-bottom: 1.6rem; }
.community-photo { width: 100%; max-width: 28rem; justify-self: end; }
.community-photo .photo { aspect-ratio: 3 / 4; border: 10px solid var(--white); box-shadow: 0 8px 26px #42372c10; }
.community-photo figcaption { padding-inline: .65rem; }
.location-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.5rem; }
.location-heading .button { flex: 0 0 auto; }
.location-photo .photo { aspect-ratio: 2.25; }
.location-photo img { object-position: 50% 63%; }
.location-photo figcaption { text-align: right; }
.contact-callout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding: clamp(2rem, 5vw, 4.5rem); border-top: 1px solid var(--warm-border); }
.contact-callout h2 { font-size: clamp(2rem, 3.1vw, 2.9rem); }
.callout-details { min-width: 0; padding-top: .75rem; }
.callout-details p { max-width: 35ch; }
.callout-details .button { margin-top: 1.8rem; }
/* Auf den Hauptunterseiten stehen Teaser und Fotokarte beieinander. */
.page-intro { padding-block: 3.5rem 2.75rem; }
.page-heading { min-width: 0; }
.page-intro h1 { max-width: 17ch; hyphens: auto; }
.heading-rule { width: 7rem; margin-top: 2rem; color: var(--line); gap: .65rem; }
.heading-rule .ornament-line:last-child { display: none; }
.heading-rule .ornament-line:first-child { transform-origin: left center; }
.heading-rule .ornament-diamond { flex: 0 0 18px; color: var(--blue); }
.page-intro-with-photo { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; margin-top: 0; padding-top: 1.8rem; padding-bottom: 4rem; }
.page-intro-with-photo .page-heading { padding-block: 4rem 1.5rem; }
.page-lead { max-width: 35ch; margin-top: 1.8rem; font: clamp(1.35rem, 1.1rem + .5vw, 1.55rem)/1.55 var(--serif); letter-spacing: -.012em; }
.page-intro-photo { align-self: start; padding-top: 0; }
.page-intro-photo .photo { aspect-ratio: 1.13; }
.page-intro-photo figcaption { text-align: right; padding-top: 1.25rem; }
.page-wohnungen { --photo-rotation: .8deg; }
.page-wohnungen .page-intro-photo img { object-position: 45% 47%; }
.page-service { --photo-rotation: -.7deg; }
.page-service .page-intro-photo .photo { aspect-ratio: 1; }
.page-service .page-intro-photo img { object-position: 50% 56%; }
.page-service h1 { font-size: clamp(2.75rem, 4.6vw, 4.55rem); }
.page-umgebung { --photo-rotation: 0deg; }
.page-umgebung .page-intro-photo img { object-position: 50% 65%; }
.page-kontakt { --photo-rotation: 0deg; }
.page-kontakt .page-intro-photo .photo { aspect-ratio: 1.4; }
.page-content { padding-bottom: 1rem; }
.page-content > .lead { max-width: 55ch; font: clamp(1.35rem, 2.25vw, 1.8rem)/1.5 var(--serif); letter-spacing: -.013em; margin-bottom: 3.5rem; }
.content-section { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.page-content > .content-section:first-child { margin-top: 0; }
.content-section h2 { max-width: 32ch; font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 1.5rem; }
.content-section h3 { margin-top: 2rem; margin-bottom: 1rem; }
.content-section > p, .content-section > ul, .content-section > ol, .content-section > address { max-width: 64ch; }
.content-section p + ul, .content-section p + ol { margin-top: 1.2rem; }
.content-photo { margin-block: 3.5rem; max-width: 60rem; }
.content-photo .photo { aspect-ratio: 1.85; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.content-grid .content-photo { margin-top: 0; }
.content-grid .content-photo .photo { aspect-ratio: 1.1; }
.related-links { padding: 0; list-style: none; }
.related-links li { border-bottom: 1px solid var(--line); margin: 0; }
.related-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; text-decoration: none; }
.history-section {
  --history-surface: var(--blue);
  --history-ink: var(--white);
  --history-muted: var(--blue-pale);
  --history-line: rgba(255, 254, 250, .42);
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: 3.5rem;
  padding: 0;
  border-top: 0;
}
.history-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 5.5vw, 5.25rem);
}
.history-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(72vw, 76rem);
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--history-surface) 0%, rgba(72, 97, 111, .94) 16%, rgba(72, 97, 111, .45) 42%, rgba(72, 97, 111, .12) 100%),
    url('../img/graphics/geschichte-lageplan.webp') right center / cover no-repeat;
  opacity: .42;
  transform: scale(var(--history-plan-scale, 1));
  transform-origin: right center;
  will-change: transform;
}
.history-section .layout-container { position: relative; z-index: 1; }
.history-section h2 { color: var(--cream); }
.history-section .layout-container > p { max-width: 64ch; color: var(--history-muted); }
.history-window { max-width: 64ch; }
.history-list { position: relative; max-width: 64ch; list-style: none; padding: 0; margin: 2rem 0 0; }
.history-list::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: var(--history-line-top, 1.45rem);
  bottom: var(--history-line-bottom, 3.1rem);
  left: 13px;
  width: 1px;
  background: var(--history-line);
  transform-origin: top center;
}
.history-list li {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  min-height: 4.55rem;
  margin: 0;
}
.history-marker {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 2.9rem;
}
.history-marker::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--history-surface);
  transform: translate(-50%, -50%);
}
.history-marker .diamond {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #dbe5e8;
}
.history-marker .diamond path:last-child { color: var(--history-ink); }
.history-entry { position: relative; z-index: 2; min-width: 0; padding: .55rem 0 1.15rem; color: var(--history-ink); }
.history-list li:last-child { min-height: 0; }
.history-list li:last-child .history-entry { padding-bottom: 0; }
.has-js .history-list:not(.is-line-visible)::before { transform: scaleY(0); }
.has-js .history-list.is-line-visible::before { transform: scaleY(1); transition: transform 1.25s cubic-bezier(.22,.61,.36,1); }
.has-js .history-list li { opacity: 0; transform: translate3d(0, 7px, 0); }
.has-js .history-list li.is-visible { opacity: 1; transform: translate3d(0, 0, 0); transition: opacity .62s ease, transform .72s cubic-bezier(.22,.61,.36,1); }
.has-js .history-list li .history-marker .diamond { transform: scale(.86); opacity: 0; }
.has-js .history-list li.is-visible .history-marker .diamond { transform: scale(1); opacity: 1; transition: opacity .55s ease, transform .7s cubic-bezier(.22,.61,.36,1); }

/* Der historische Lageplan bleibt eine dekorative Ebene. Seine leichte Skalierung
   wird per Seitenscroll gesteuert, ohne Inhalt oder Layout zu verschieben. */
.ornamented-section { position: relative; border-top: 0; padding-top: clamp(3.5rem, 6vw, 5rem); }
.section-divider-diamond { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: .7rem; height: 18px; color: var(--blue); transform: translateY(-50%); }
.section-divider-line { flex: 1 1 auto; height: 1px; background: var(--line); transform: scaleX(1); }
.section-divider-line-left { transform-origin: right center; }
.section-divider-line-right { transform-origin: left center; }
.section-divider-diamond .diamond { flex: 0 0 18px; width: 18px; height: 18px; color: inherit; opacity: 1; transform: scale(1); }
.has-js .section-divider-diamond:not(.is-visible) .section-divider-line { transform: scaleX(0); }
.has-js .section-divider-diamond:not(.is-visible) .diamond { opacity: 0; transform: scale(.9); }
.has-js .section-divider-diamond.is-visible .section-divider-line { transform: scaleX(1); transition: transform 1.85s cubic-bezier(.22,.61,.36,1); }
.has-js .section-divider-diamond.is-visible .diamond { opacity: 1; transform: scale(1); transition: opacity 1.25s .55s ease, transform 1.25s .55s cubic-bezier(.22,.61,.36,1); }
.related-links-with-notes li { padding-block: 1rem; }
.related-links-with-notes a { padding: 0; }
.related-links-with-notes p { margin-top: .15rem; }
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.gallery-heading h2 { margin-top: .75rem; margin-bottom: 0; }
.gallery-controls { display: flex; gap: .65rem; flex: 0 0 auto; }
.gallery-button { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; border: 1px solid var(--brand); background: transparent; color: var(--brand); transition: background-color .18s ease, color .18s ease; }
.gallery-button:hover { background: var(--brand); color: var(--white); }
.gallery-track { display: flex; align-items: stretch; gap: 1.5rem; overflow-x: auto; overflow-y: clip; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: var(--blue) transparent; padding: .5rem .5rem 1.5rem; margin-inline: -.5rem; }
.gallery-track::-webkit-scrollbar { height: 5px; }
.gallery-track::-webkit-scrollbar-track { background: transparent; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 999px; }
.gallery-card { flex: 0 0 min(42%, 32rem); display: grid; grid-template-rows: auto minmax(4.8rem, auto); align-content: start; scroll-snap-align: start; min-width: 0; padding: 10px; background: var(--white); box-shadow: 0 8px 26px #42372c10; }
.gallery-card .photo { aspect-ratio: 4 / 3; }
.gallery-card figcaption { align-self: start; padding: 1rem .3rem .25rem; }
.floorplans-section { margin-top: 3.5rem; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.floorplans-inner > h2 { max-width: 32ch; }
.floorplans-lead { max-width: 64ch; margin-top: 1.5rem; }
.floorplan { margin-top: clamp(3rem, 5vw, 4.5rem); padding-top: clamp(2.5rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.floorplan .floorplan-title { max-width: 32ch; margin: 0 0 1.35rem; font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -.035em; }
.floorplan-title span { color: var(--blue); white-space: nowrap; }
.floorplan-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(16rem, .92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.floorplan-image { min-width: 0; }
.floorplan-frame { padding: clamp(.7rem, 1.1vw, .95rem); border: 1px solid #dfd7ca; background: var(--white); box-shadow: 0 8px 26px #42372c10, 0 1px 4px #42372c0a; }
.floorplan-frame picture { display: block; }
.floorplan-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.floorplan-image figcaption { padding: .85rem .3rem 0; color: var(--muted); text-align: left; }
.has-js .floorplan-frame { opacity: 0; transform: perspective(1100px) translate3d(0, 14px, 0) rotateX(1.6deg) scale(.992); transform-origin: 50% 72%; }
.has-js .floorplan-frame.is-visible { opacity: 1; transform: perspective(1100px) translate3d(0, 0, 0) rotateX(0) scale(1); transition: opacity .72s ease, transform .95s cubic-bezier(.22,.61,.36,1); }
.room-table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.room-table th, .room-table td { padding: .62rem .45rem; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); font-weight: 400; }
.room-table td, .room-table tr th:last-child { text-align: right; white-space: nowrap; }
.room-table thead { color: var(--blue); }
.room-table thead th { font: 400 1.08rem/1.45 var(--serif); letter-spacing: .01em; }
.room-table tfoot th, .room-table tfoot td { padding-top: .85rem; border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); border-bottom: 0; font-family: var(--sans); font-size: inherit; font-weight: 700; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4rem; row-gap: 3.5rem; }
.contact-block { min-width: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
.contact-block h2 { font-size: clamp(1.8rem, 2.8vw, 2.55rem); margin-bottom: 1.2rem; hyphens: auto; }
.contact-block address { margin-top: 1rem; }
.contact-address { margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.contact-person { margin-top: 1.55rem; margin-bottom: 0; color: var(--blue); font: clamp(1.35rem, 2vw, 1.65rem)/1.35 var(--serif); }
.contact-role { margin-top: .15rem; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.person-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; margin-top: 1.5rem; }
.person-grid > div { min-width: 0; }
.contact-block a, .legal-copy a { overflow-wrap: anywhere; }
.contact-details { margin-top: .7rem; }
.contact-details > div { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .45rem .85rem; align-items: start; min-height: 2.75rem; }
.contact-details > div + div { margin-top: .1rem; }
.contact-details dt { padding-top: .3rem; color: var(--ink); font-size: inherit; font-weight: 400; }
.contact-details dd { min-width: 0; margin: 0; padding-top: .3rem; }
.contact-details a { display: inline; }
.contact-details-compact { margin-top: .45rem; }
.contact-grid-primary { margin-bottom: 0; }
.contact-arrival { margin-block: clamp(4.5rem, 7vw, 7rem); padding-block: clamp(2rem, 4.5vw, 4rem); }
.contact-arrival .living-grid { gap: clamp(2.5rem, 5vw, 5rem); }
.contact-arrival .living-photo .photo { aspect-ratio: 1.3; object-fit: cover; }
.contact-arrival .living-photo img { object-position: 50% 50%; }
.contact-arrival .living-photo figcaption { color: var(--muted); padding-inline: .65rem; }
.contact-arrival .living-copy h2 { margin-bottom: 1.5rem; }
.contact-grid-secondary { margin-top: 0; }
.info-panel { padding: 2rem 2.5rem; border-color: var(--warm-border); }
.info-panel .contact-details + p { margin-top: 1.5rem; }
.legal-layout { max-width: 65rem; }
.legal-copy p { max-width: 64ch; }
.legal-contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; margin-top: 1.5rem; }
.legal-contacts > div { min-width: 0; }
.legal-person > p { margin: 0; }
.legal-contact-details { margin-top: 1.25rem; }
.legal-copy a { overflow-wrap: anywhere; }
.legal-copy address + p, .legal-copy p + address { margin-top: 1rem; }
.privacy-date { margin-top: 3rem; color: var(--muted); }
/* Fußbereich: bewusst ruhig, ohne Wiederholung der Hauptnavigation. */
.site-footer { margin-top: clamp(5rem, 9vw, 8rem); padding-top: clamp(3.2rem, 5vw, 4.6rem); font-size: 1.125rem; line-height: 1.6; background: var(--grain), linear-gradient(115deg, #eee7dc, #f4eee4 65%, #ebe4d8); border-top: 1px solid var(--line); }
.footer-inner { padding-bottom: clamp(2.8rem, 5vw, 4.5rem); }
.footer-brand { max-width: 25rem; }
.footer-name { font: 1.6rem/1.3 var(--serif); color: var(--brand); }
.footer-claim { margin-top: .45rem; color: var(--blue); font-family: var(--serif); font-style: italic; }
.footer-brand address { margin-top: 1.3rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-links a > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.footer-links a:hover > span { text-decoration-thickness: 2px; }
.footer-links-legal { display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin-top: 1.1rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.footer-bottom small { font-size: inherit; color: var(--muted); }
.back-to-top { display: inline-flex; align-items: center; gap: .85rem; min-height: 48px; text-decoration: none; }
.back-to-top .up-arrow { flex: 0 0 auto; transition: transform .18s ease; }
.back-to-top:hover .up-arrow { transform: translateY(-3px); }
/* Bewegung ergänzt die lesbare Ausgangsdarstellung. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .page-startseite .hero-copy h1 { animation: hero-copy-in .72s .06s cubic-bezier(.22,.61,.36,1) both; }
  .page-startseite .hero-location { animation: hero-copy-in .68s .18s cubic-bezier(.22,.61,.36,1) both; }
  .page-startseite .hero-description { animation: hero-copy-in .68s .3s cubic-bezier(.22,.61,.36,1) both; }
  .page-heading .heading-rule .ornament-line:first-child { animation: heading-rule-in .9s .08s cubic-bezier(.22,.61,.36,1) both; }
  .page-heading .heading-rule .ornament-diamond { animation: heading-diamond-in .72s .78s cubic-bezier(.22,.61,.36,1) both; }
}
@keyframes hero-copy-in {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes heading-rule-in {
  from { transform: scaleX(0); opacity: .45; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes heading-diamond-in {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 70rem) {
  .hero-copy h1 { font-size: clamp(3.4rem, 6vw, 5rem); }
  .community-grid { gap: 3rem; }
}
@media (max-width: 72rem) {
  .contact-grid { grid-template-columns: 1fr; row-gap: 2.75rem; }
  .living-grid { align-items: start; }
}
@media (max-width: 64rem) {
  .legal-contacts { grid-template-columns: 1fr; gap: 1.3rem; }
}
/* Das aufgeklappte Menü ist eine durchgehende Fläche über die gesamte Breite. */
@media (max-width: 54rem) {
  html { scroll-padding-top: 6.5rem; }
  body.menu-open { overflow: hidden; }
  .site-header { z-index: 50; }
  .site-header-inner { width: 100%; min-height: 98px; gap: 0; padding: 0; }
  .brand { position: relative; z-index: 62; margin-left: var(--gutter); margin-block: 1.2rem; }
  .menu-toggle { position: relative; z-index: 62; margin-left: auto; margin-right: var(--gutter); margin-block: 1.2rem; }
  .brand-name { font-size: clamp(1.48rem, 5.6vw, 1.76rem); letter-spacing: .01em; }
  .brand-small { font-size: clamp(.82rem, 3.1vw, .92rem); }
  .site-header.is-menu-open .brand, .site-header.is-menu-open .menu-toggle { color: var(--white); }
  .site-header.is-menu-open .brand-ornament { color: var(--cream); }
  .site-header.is-menu-open .brand-ornament .ornament-diamond { color: var(--white); }
  .site-header.is-menu-open .menu-toggle { border-color: #ffffff70; }
  .site-header.is-menu-open .menu-toggle:hover,
  .site-header.is-menu-open .menu-toggle:focus-visible { border-color: var(--white); }
  .site-header.is-menu-open .menu-toggle:focus-visible,
  .site-header.is-menu-open .brand:focus-visible { outline-color: var(--white); }
  #hauptnavigation { position: fixed; z-index: 60; inset: 0; width: 100%; max-width: none; min-height: 100dvh; overflow-y: auto; padding: clamp(8.5rem, 18vh, 11rem) var(--gutter) max(2.5rem, env(safe-area-inset-bottom)); background: var(--grain), linear-gradient(135deg, #506773 0%, #405b68 65%, #354f5d 100%); color: var(--white); }
  #hauptnavigation ul { display: block; max-width: 42rem; margin-inline: auto; }
  #hauptnavigation li + li { border-top: 1px solid #ffffff32; }
  #hauptnavigation li a { display: flex; width: 100%; justify-content: space-between; gap: 1rem; padding-block: .6rem; min-height: 66px; color: var(--white); font: clamp(1.8rem, 5.2vw, 2.4rem)/1.35 var(--serif); }
  #hauptnavigation a::after { display: none; }
  #hauptnavigation a[aria-current], #hauptnavigation a[aria-current] > span { color: var(--white); }
  #hauptnavigation a[aria-current] > span, #hauptnavigation li a:hover > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
  #hauptnavigation .arrow { display: inline-block; width: 24px; }
  #hauptnavigation li a:hover .arrow,
  #hauptnavigation li a:focus-visible .arrow { transform: translateX(3px); }
  #hauptnavigation :focus-visible { outline-color: var(--white); }

  /* Ohne JavaScript bleibt die Navigation als einfache Linkliste erreichbar. */
  html:not(.has-js) .site-header-inner { flex-wrap: wrap; }
  html:not(.has-js) #hauptnavigation { position: static; width: 100%; min-height: 0; overflow: visible; padding: 0 var(--gutter) 1.25rem; background: transparent; color: var(--ink); }
  html:not(.has-js) #hauptnavigation ul { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; max-width: none; }
  html:not(.has-js) #hauptnavigation li + li { border-top: 0; }
  html:not(.has-js) #hauptnavigation li a { min-height: 44px; padding-block: .35rem; color: var(--ink); font: 1rem/1.35 var(--sans); }
  html:not(.has-js) #hauptnavigation .arrow { display: none; }
}
@media (max-width: 52rem) {
  body { font-size: 1.125rem; }
  h1, h2, h3, h4 { text-wrap: wrap; }
  .content-section h2 { max-width: none; }
  .home-hero { padding-top: 2.75rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy h1 { order: 0; font-size: clamp(3.9rem, 10vw, 6rem); }
  .hero-copy h1 span:first-child, .hero-copy h1 span:nth-child(2) { display: inline; }
  .hero-copy h1 em { display: block; }
  .hero-location { order: 1; margin-top: 1.25rem; font-size: clamp(1rem, 3.7vw, 1.125rem); }
  .hero-visual { order: 2; margin-top: 2.75rem; margin-left: 1.5rem; }
  .hero-description { order: 3; max-width: 48ch; margin-top: 2rem; }
  .hero-photo-stack > .photo { aspect-ratio: 1.45; }
  .hero-detail-photo { width: 155px; left: -1.5rem; bottom: -.6rem; }
  .hero-main-photo figcaption { text-align: left; }
  .introduction-grid, .living-grid { grid-template-columns: 1fr; gap: 2rem; }
  .introduction-grid .prose { padding-top: 0; }
  .introduction-heading { position: relative; }
  .home-facts { margin-top: 2.75rem; }
  .living-grid { gap: 2.5rem; }
  .living-photo-wrap { max-width: 94%; }
  .living-photo .photo { aspect-ratio: 1.6; }
  .community-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .location-heading { flex-direction: column; align-items: flex-start; gap: 1.7rem; }
  .location-photo .photo { aspect-ratio: 1.6; }
  .contact-callout { grid-template-columns: 1fr; gap: 1.5rem; }
  .callout-details { padding-top: 0; }
  .page-intro-with-photo { grid-template-columns: 1fr; gap: 2rem; margin-top: 0; padding-top: 3rem; padding-bottom: 3.5rem; }
  .page-intro-with-photo .page-heading { padding: 0; }
  .page-intro-with-photo h1 { max-width: none; }
  .page-lead { max-width: 47ch; }
  .page-intro-photo { padding-top: .5rem; }
  .page-intro-photo .photo, .page-service .page-intro-photo .photo, .page-kontakt .page-intro-photo .photo { aspect-ratio: 1.5; }
  .photo-card-image { transform: rotate(-.35deg); padding: 9px; margin-inline: .2rem; }
  .page-umgebung .photo-card-image { transform: none; }
  .page-content > .lead { margin-bottom: 3rem; }
  .floorplan-layout, .content-grid { gap: 2rem; }
  .contact-grid { gap: 2.5rem; }
  .gallery-card { flex-basis: 72%; }
  .person-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-bottom { flex-wrap: wrap; gap: .75rem 2rem; }
  .contact-arrival { padding-block: 1.6rem; }
  .contact-arrival .living-grid { gap: 1.75rem; }
  .contact-arrival .living-photo .photo { aspect-ratio: 1.45; }
}

@media (max-width: 46rem) {
  .floorplan-layout { grid-template-columns: 1fr; }
}
@media (max-width: 37rem) {
  .hero-copy h1 { font-size: clamp(3.4rem, 13.3vw, 4.9rem); }
  .hero-copy h1 span:first-child, .hero-copy h1 span:nth-child(2) { display: inline; }
  .hero-location { max-width: none; white-space: normal; }
  .hero-description { margin-top: 1.8rem; }
  .hero-visual { margin-top: 2rem; margin-left: .75rem; }
  .hero-photo-stack > .photo { aspect-ratio: 1.04; }
  .hero-detail-photo { width: 122px; left: -1rem; bottom: -.6rem; padding: 6px; }
  .has-detail .hero-main-photo figcaption { padding-top: 2.1rem; }
  .hero-main-photo figcaption { font-size: .875rem; }
  .button { gap: .8rem; padding: .85rem 1rem; }
  .home-facts { grid-template-columns: 1fr 1.4fr 1fr; padding-top: 1.8rem; }
  .home-facts > div { padding-inline: .65rem; }
  .home-facts dd { font-size: clamp(1.5rem, 7.5vw, 2.3rem); white-space: nowrap; }
  .home-facts dt { font-size: .9375rem; }
  .community-grid, .content-grid, .floorplan-layout { grid-template-columns: 1fr; }
  .community-photo { width: 85%; }
  .gallery-heading { align-items: flex-start; }
  .gallery-track { gap: 1rem; }
  .gallery-card { flex-basis: 86%; padding: 8px; grid-template-rows: auto minmax(4.8rem, auto); }
  .location-photo .photo { aspect-ratio: 1.06; }
  .location-photo img { object-position: 53% 60%; }
  .living-photo-wrap { max-width: 100%; }
  .living-photo .photo { aspect-ratio: 1.2; }
  .page-intro { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .page-intro h1, .page-service h1 { font-size: clamp(2.45rem, 12vw, 3rem); }
  .page-intro-photo .photo, .page-service .page-intro-photo .photo { aspect-ratio: 1.18; }
  .page-kontakt .page-intro-photo .photo { aspect-ratio: 1.3; }
  .heading-rule { margin-top: 1.5rem; }
  .page-lead { font-size: 1.35rem; margin-top: 1.5rem; }
  .content-photo .photo { aspect-ratio: 1.2; }
  .room-table { font-size: 1rem; }
  .room-table th, .room-table td { padding-inline: .25rem; }
  .info-panel { padding: 1.5rem; }
  .contact-details dd { overflow-wrap: anywhere; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
@media (max-width: 23rem) {
  .brand-small { font-size: .78rem; }
  .brand-ornament { width: 88px; }
  .menu-toggle { padding: .5rem; }
  .menu-toggle svg { width: 18px; height: 18px; }
}

@media (max-width: 52rem) {
  .history-stage::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .history-section { --history-plan-scale: 1 !important; }
  .has-js .section-divider-line { transform: scaleX(1) !important; }
  .has-js .history-list::before { transform: scaleY(1) !important; }
  .has-js .history-list li { opacity: 1 !important; transform: none !important; }
  .has-js .history-list li .history-marker .diamond { opacity: 1 !important; transform: none !important; }
  .has-js .section-divider-diamond .diamond { opacity: 1 !important; transform: none !important; }
  .has-js .floorplan-frame { opacity: 1 !important; transform: none !important; transition: none !important; }
  .button-primary::before, .site-header { transition: none !important; }
  .arrow, .up-arrow { transition: none !important; }
  #hauptnavigation li a:hover .arrow,
  #hauptnavigation li a:focus-visible .arrow { transform: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .button, .menu-toggle, .floorplan, .contact-callout { border: 1px solid ButtonText; }
  :focus-visible { outline-color: Highlight; }
  #hauptnavigation a[aria-current] > span { text-decoration: underline; }
  .photo-card-image { border: 1px solid CanvasText; }
}
@media print {
  body { color: #000; background: #fff; font: 11pt/1.5 Arial, sans-serif; }
  .history-section { color: #000; background: #fff; border: 1px solid #bbb; }
  .history-section h2, .history-section .layout-container > p, .history-entry, .history-entry strong { color: #000; }
  .history-marker::before { background: #fff; }
  .history-list::before { background: #777; }
  .layout-container { width: 100%; }
  .site-header, .hero-detail-photo, .site-footer nav, .back-to-top, .skip-link { display: none !important; }
  .hero-grid, .introduction-grid, .living-grid, .community-grid, .contact-callout, .page-intro-with-photo, .content-grid, .contact-grid { display: block; }
  .gallery-controls { display: none !important; }
  .gallery-track { display: block; overflow: visible; }
  .gallery-card { break-inside: avoid; margin-bottom: 1rem; transform: none; box-shadow: none; }
  .floorplan-frame { opacity: 1 !important; transform: none !important; box-shadow: none; }
  .hero-copy h1 { font-size: 38pt; }
  h1 { font-size: 28pt; } h2 { font-size: 22pt; } h3 { font-size: 16pt; }
  .home-hero, .page-intro, .content-section, .site-footer { padding-block: 1rem; margin-top: 1rem; }
  .section-space { margin-top: 2rem; }
  .hero-main-photo { max-width: 16cm; }
  .community-photo, .content-photo, .page-intro-photo { max-width: 10cm; }
  .photo-card-image { transform: none; box-shadow: none; }
  .floorplan, .contact-block { break-inside: avoid; }
  a { color: #000; }
}

