@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --card: #fffefa;
  --forest: #2e3b33;
  --ink: #29342c;
  --muted: #4c5b51;
  --line: #d9dcd2;
  --terracotta: #485844;
  --terracotta-hover: #384735;
  --mist: #e8ebe2;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; line-height: 1.13; }
h2 { font-size: clamp(2rem, 4.1vw, 3.2rem); letter-spacing: -.024em; }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.92rem); letter-spacing: -.016em; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
svg { width: 1.18em; height: 1.18em; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
[hidden], .symbols { display: none !important; }
:focus-visible { outline: 3px solid #835226; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #ffdfae; }
section[id] { scroll-margin-top: 1.4rem; }

.shell { width: min(calc(100% - 3rem), 70rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  color: #fff9ee;
  pointer-events: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.45rem; }
.brand { display: block; flex: none; pointer-events: auto; }
.brand-mark {
  width: clamp(7rem, 10vw, 9rem);
  filter: drop-shadow(0 1px 3px #101a17d0) drop-shadow(0 0 5px #101a178c);
}
.header-menu { position: relative; }
.header-menu > summary {
  width: 2.75rem;
  min-height: 2.75rem;
  justify-content: flex-start;
  padding: .5rem;
  color: #fff;
  pointer-events: auto;
}
.header-menu > summary:hover { color: #fff; }
.header-menu .menu-icon {
  width: 1.65rem;
  height: 1.65rem;
  filter: drop-shadow(0 1px 3px #101a17);
}
.header-menu > summary:hover .menu-icon { filter: drop-shadow(0 1px 5px #101a17); }
.header-menu nav {
  position: absolute;
  top: calc(100% + .45rem);
  left: 0;
  min-width: 11.5rem;
  padding: .25rem;
  border: 1px solid #fff9ee60;
  border-radius: .55rem;
  background: #172229f5;
  pointer-events: auto;
}
.header-menu nav a { display: flex; align-items: center; min-height: 2.75rem; padding: .4rem .65rem; border-radius: .3rem; text-decoration: none; }
.header-menu nav a:hover { background: #ffffff24; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.9rem;
  max-width: 100%;
  padding: .66rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  background: var(--forest);
  color: #fffaf1;
  font: 700 .95rem/1.24 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.button:hover { background-color: #172d25; }
.button-small { padding-inline: 1rem; }
.button-accent { background-color: var(--terracotta); }
.button-accent:hover { background-color: var(--terracotta-hover); }
.button-outline { border-color: #a2afa1; background: transparent; color: var(--forest); }
.button-outline:hover { border-color: var(--forest); background: #e8eee3; }
.button-on-dark { border-color: #e8e9d9; background: #2e3b334d; }
.button-on-dark:hover { background: #2e3b33; }

.hero {
  --hero-photo-inset: clamp(1rem, 3vw, 2.5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #121c25;
  color: #fff9ee;
}
.hero-inner { display: grid; align-items: center; min-height: clamp(26rem, 42vw, 34rem); }
.hero-copy { width: min(100%, 33rem); padding-block: 9.1rem 4.05rem; text-shadow: 0 1px 6px #0b141bcc; }
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-image { position: absolute; z-index: -1; inset: 0; background: url('fotos/titel-winter.webp') center 67% / cover no-repeat; }
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101a23d9, #101a23a8 26%, #101a234d 43%, #101a2300 66%);
}
:root[data-hero-season='summer'] .hero-image { background-image: url('fotos/titel-sommer.webp'); }
:root[data-hero-season='spring'] .hero-inner { min-height: max(26rem, 46vw); }
:root[data-hero-season='spring'] .hero-image { background-image: url('fotos/fruehling-donnerkogel.webp'); background-position: 55% 45%; }
:root[data-hero-season='autumn'] .hero-image { background-image: url('fotos/titel-herbst-ahorn-detail.webp'); background-position: center 89%; }
.eyebrow { display: flex; gap: .45rem; align-items: center; margin-bottom: 1.15rem; color: #f4e4c8; font-size: .875rem; font-weight: 650; }
.hero h1 { margin-left: -.035em; font-size: clamp(2.75rem, 6.5vw, 5.35rem); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.hero-region { display: block; max-width: 28rem; margin-top: .75rem; font-size: clamp(1.22rem, 2.4vw, 1.85rem); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.hero-intro { max-width: 24rem; margin-top: 1.37rem; color: #fcf4e7; font-size: clamp(1.04rem, 1.65vw, 1.26rem); }
.hero-actions { display: flex; gap: .72rem; flex-wrap: wrap; margin-top: 1.65rem; }
.hero-season {
  position: absolute;
  right: var(--hero-photo-inset);
  bottom: var(--hero-photo-inset);
  display: inline-flex;
  gap: .2rem;
  min-width: 0;
  margin: 0;
  padding: .2rem;
  border: 1px solid #fff9ee80;
  border-radius: .5rem;
  background: #172229ed;
  pointer-events: auto;
}
.hero-season label { cursor: pointer; }
.hero-season label span { display: grid; place-items: center; min-height: 2.75rem; padding-inline: .78rem; border-radius: .3rem; font-size: .88rem; font-weight: 650; }
.hero-season input:checked + span { background: #f7f7f2; color: var(--forest); }
.hero-season input:focus-visible + span { outline: 2px solid #ffdfae; outline-offset: -3px; }
.hero-season input:checked:focus-visible + span { outline-color: #465b4d; }

.section { padding-block: clamp(2.7rem, 6.1vw, 5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.65rem; }
.section-intro { margin-top: .56rem; color: var(--muted); }
.apartment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.apartment-card { display: flex; min-width: 0; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; }
.apartment-cover img { height: clamp(13rem, 22vw, 18rem); object-fit: cover; object-position: center 52%; background: #ded7c8; }
.apartment-body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.1rem, 2.5vw, 1.65rem); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.05rem; padding: 0; margin: .95rem 0 .85rem; list-style: none; color: var(--forest); font-size: .91rem; font-weight: 650; }
.facts li { display: flex; align-items: center; gap: .38rem; }
.apartment-body > p { color: var(--muted); margin-bottom: 1.2rem; }
.apartment-action { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: auto; border-top: 1px solid var(--line); padding-top: 1.05rem; }
.price { font-size: .875rem; }
.price strong { font-size: 1.12rem; }
.price small { display: block; color: var(--muted); font-size: .8rem; }

.comparison { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; background: var(--card); }
.comparison table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: .95rem; }
.comparison thead { background: var(--mist); }
.comparison thead td { width: 23%; }
.comparison td, .comparison th { padding: .8rem clamp(.55rem, 2vw, 1rem); vertical-align: top; overflow-wrap: anywhere; }
.comparison tbody tr { border-top: 1px solid var(--line); }
.comparison tbody td { color: var(--muted); }
.price-details { margin-top: 1.1rem; border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; min-height: 3rem; gap: .8rem; padding-block: .65rem; font-weight: 700; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] > summary svg { transform: rotate(180deg); }
summary:hover { color: var(--terracotta); }
.price-detail-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; padding: .65rem 0 1rem; }
.price-detail-body h3 { font-size: 1.35rem; }
.rates { margin: .6rem 0; }
.rates > div { display: flex; justify-content: space-between; gap: .5rem; padding-block: .28rem; }
.rates dd { margin: 0; text-align: right; font-weight: 700; }
.fine-print, .price-note { color: var(--muted); font-size: .875rem; }
.price-note { grid-column: 1 / -1; padding-top: .65rem; border-top: 1px solid var(--line); }

.booking-zone { background: var(--mist); }
.booking-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); margin-top: 1.6rem; border: 1px solid #d6dbd0; border-radius: .9rem; background: var(--card); overflow: hidden; }
.booking-card form, .booking-summary, .draft { padding: clamp(1.2rem, 3.15vw, 2.25rem); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-bottom: .95rem; }
.group-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); margin-bottom: .4rem; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: .34rem; font-size: .94rem; font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; }
input, select, textarea { color: var(--ink); font: 1rem/1.35 var(--sans); }
.field input, select, textarea { display: block; min-width: 0; width: 100%; border: 1px solid #9aa69b; border-radius: .4rem; background: #fffefa; padding: .65rem .72rem; }
.field input, select { min-height: 3rem; }
input[type="date"] { appearance: none; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; }
select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23233e33' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right .63rem center;
  background-repeat: no-repeat;
}
textarea { resize: vertical; }
.capacity-note { margin-bottom: .95rem; }
.checkbox { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; margin: -.3rem 0 .75rem; cursor: pointer; }
.checkbox input { margin: 0 0 0 .15rem; width: 1.18rem; height: 1.18rem; accent-color: var(--forest); }
form > .button { margin-top: 1.05rem; }

.booking-summary { background: #284338; color: #fffaf1; }
.booking-summary h3, .draft h3 { font-size: 1.8rem; }
.stay { margin: .75rem 0 1rem; }
.stay > div { padding-block: .64rem; border-bottom: 1px solid #627968; }
.stay dt { color: #e1e9da; font-size: .86rem; }
.stay dd { margin: .15rem 0 0; font-weight: 650; }
.booking-summary > p { font-size: .93rem; color: #f0ebdb; }
.draft { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.draft > p { margin-top: .62rem; }
.draft textarea { margin-top: .85rem; }
.draft-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
#copy-status:empty { display: none; }

.place-story {
  display: grid;
  align-items: center;
  isolation: isolate;
  gap: 1.5rem;
  padding: clamp(1.4rem, 4.2vw, 3rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background-color: #f6f6ef;
  background-image: linear-gradient(90deg, #fbfaf28f, #fbfaf224 68%, transparent), url('fotos/vanclaudi-hintergrund.webp');
  background-size: cover;
  background-position: center;
}
.place-copy, .house-drawing { grid-area: 1 / 1; min-width: 0; }
.place-copy { width: min(58%, 35rem); z-index: 1; }
.house-drawing { width: min(46%, 23rem); margin: 0; justify-self: end; }
.house-drawing img {
  mix-blend-mode: multiply;
  mask-image:
    radial-gradient(ellipse 32% 14% at right bottom, #000 53%, transparent),
    linear-gradient(90deg, transparent, #000 14%, #000 81%, transparent),
    linear-gradient(0deg, transparent, #000 7%, #000 90%, transparent);
  mask-composite: add, intersect;
}
.house-drawing figcaption { margin-top: .55rem; text-align: right; font-style: italic; }
.place-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.5rem); margin-top: 1.35rem; }
.place-photos figure { margin: 0; }
.place-photos img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 66%; border-radius: .7rem; }
.place-photos .terrace-photo img { object-position: center 75%; }
.place-photos .south-terrace-photo img { object-position: center 85%; }
.place-photos figcaption { margin-top: .4rem; }
.house-drawing figcaption, .place-photos figcaption { font-size: .875rem; color: var(--muted); }
.place-copy > p { margin-top: .85rem; color: var(--muted); }
.amenities { margin: 1rem 0 0; padding: 0; list-style: none; }
.amenities li { display: flex; align-items: start; gap: .57rem; padding-block: .37rem; }
.amenities svg { margin-top: .2rem; color: var(--terracotta); }

.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.faq h3 { margin-bottom: .62rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details > p { padding: .1rem 1.55rem .95rem 0; color: var(--muted); }
.faq a { text-underline-offset: .18em; }

.site-footer { padding-block: 1.65rem; background: #21382e; color: #f7f2e6; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-name { margin-bottom: .25rem; font: 550 1.32rem var(--sans); }
.site-footer address { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; font-style: normal; }
.site-footer a { text-underline-offset: .18em; text-decoration-color: #b6c4b7; }

@media (max-width: 47rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { padding-block: 1rem; }
  .brand-mark { width: 6.75rem; }
  .hero-image { background-position: 56% center; }
  .hero-copy { padding-block: 7.5rem 5.7rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .apartment-grid, .faq-grid { gap: 1rem; }
  .apartment-action { align-items: start; flex-direction: column; }
  .booking-card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 35rem) {
  .hero-image::after { background: radial-gradient(ellipse 112% 78% at 4% 59%, #101a23e0, #101a2399 48%, #101a2300 100%); }
  .apartment-grid, .price-detail-body, .place-story, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .apartment-action { align-items: center; flex-direction: row; }
  .apartment-cover img { height: auto; aspect-ratio: 1.72; }
  .comparison table { font-size: .875rem; }
  .comparison thead td { width: 25%; }
  .place-story { background-position: center, left center; }
  .place-copy, .house-drawing { grid-area: auto; width: 100%; }
  .house-drawing { max-width: 20rem; justify-self: center; }
  .faq-grid { gap: 1.5rem; }
}

@media (max-width: 23rem) {
  .hero h1 { font-size: 2.65rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .apartment-action { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.comparison:not([hidden]) + .apartment-grid { margin-top: 1.4rem; }

.apartment-grid { align-items: start; }
.photo-gallery { margin: 0 clamp(1.1rem, 2.5vw, 1.65rem) 1.1rem; border-top: 1px solid var(--line); }
.photo-gallery ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.photo-gallery a { display: block; color: var(--ink); font-size: .875rem; text-decoration: none; }
.photo-gallery a:hover span { text-decoration: underline; }
.photo-gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: .45rem; background: var(--mist); }
.photo-gallery span { display: block; margin-top: .2rem; }

.region-gallery { margin: 1.35rem 0 0; }
.region-gallery ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }

.place-photos-spring,
.place-photos-summer,
.place-photos-autumn,
:root:is([data-hero-season='spring'], [data-hero-season='summer'], [data-hero-season='autumn']) .place-photos-winter { display: none; }
:root[data-hero-season='spring'] .place-photos-spring,
:root[data-hero-season='summer'] .place-photos-summer,
:root[data-hero-season='autumn'] .place-photos-autumn { display: grid; }

.seasonal-stays-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin-top: 1.2rem; }
.seasonal-stays-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 3vw, 1.8rem); background: var(--mist); border-radius: .7rem; }
.seasonal-stays-grid article:last-child { background: #f3eadd; }
.seasonal-stays-grid p { margin: .65rem 0 1.15rem; }
.seasonal-stays-grid a { margin-top: auto; }

@media (max-width: 35rem) {
  .hero-season label span { padding-inline: .5rem; font-size: .82rem; }
}
.arrival { margin-top: 2rem; }
.arrival p { margin: .4rem 0 .85rem; }
.arrival details { margin-top: .5rem; }
.arrival summary { justify-content: flex-start; }
.arrival iframe { display: block; width: 100%; height: clamp(16rem, 40vw, 24rem); border: 0; border-radius: .7rem; }

.calendar-details { margin-block: 1rem .75rem; }
.calendar-frame {
  display: block;
  width: 100%;
  height: clamp(22rem, 55vw, 32rem);
  border: 0;
  border-radius: .5rem;
  background: #fff;
}

.gallery-video { font-size: .875rem; }
.gallery-video video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: .45rem; background: #18231d; }

.gallery-sources { margin-top: 1.5rem; }
.gallery-sources a { height: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: .45rem; }
.gallery-sources a:hover { text-decoration: underline; }
.gallery-sources small { display: block; margin-top: .3rem; }

.gallery-dialog {
  width: min(94vw, 68rem);
  max-height: 94dvh;
  padding: clamp(.7rem, 2vw, 1.25rem);
  border: 0;
  border-radius: .8rem;
  color: var(--ink);
  background: var(--card);
}
.gallery-dialog::backdrop { background: #101a17de; }
.gallery-bar, .gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.gallery-bar h2 { font-size: clamp(1rem, 3vw, 1.4rem); margin: 0; }
.gallery-dialog figure { margin: .65rem 0; }
.gallery-dialog img { display: block; width: 100%; height: min(64dvh, 46rem); object-fit: contain; background: #17211d; border-radius: .4rem; }
.gallery-dialog figcaption { margin-top: .4rem; text-align: center; }
.gallery-dialog button { min-height: 44px; padding: .35rem .75rem; font: inherit; color: inherit; border: 1px solid var(--line); border-radius: .4rem; background: transparent; cursor: pointer; }

.language-switch { position: relative; margin-inline-end: auto; pointer-events: auto; color: #fff; text-shadow: 0 1px 3px #101a17; }
.language-switch summary { min-height: 2.75rem; padding: .25rem .45rem; font-size: .85rem; }
.language-switch nav { position: absolute; top: 100%; left: 0; display: grid; grid-template-columns: 1fr 1fr; width: min(15rem, 66vw); max-height: 60dvh; overflow: auto; padding: .45rem; border-radius: .45rem; background: #172229; }
.language-switch:not([open]) nav { display: none; }
.language-switch nav a { padding: .5rem; }
.language-page { max-width: 48rem; }
.language-page nav, .language-page p { margin-block: .8rem; }
.language-page nav a { display: inline-block; padding: .45rem .1rem; }
.language-page h2 { margin-top: 1.3rem; }
