/* Hangstille – Demo-Ferienwohnung · FatCat Digital
   Stil: minimalistisch, alpin-skandinavisch. Eine Schrift, viel Weißraum, Haarlinien. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-german.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f7f6f2;
  --snow: #ffffff;
  --alt: #efeee8;
  --ink: #1d2321;
  --muted: #565c58;      /* 6.3:1 auf --paper, 5.8:1 auf --alt */
  --line: #d9d7cf;
  --line-strong: #b9b7ae;
  --pine: #35503f;       /* 8.2:1 auf --paper */
  --pine-soft: #e3e8e1;
  --wood: #b08f68;       /* nur dekorativ */
  --busy: #cfccc2;

  --wrap: 77.5rem;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --space: clamp(5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 3.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 380;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--snow); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Demo-Leiste (Pflicht, immer sichtbar) ---------- */
.demobar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #e9ebe6;
  font-size: .75rem; line-height: 1.4; letter-spacing: .01em;
  padding: .5rem var(--gutter);
  text-align: center;
}
.demobar p { margin: 0; }
.demobar a { color: #fff; font-weight: 550; white-space: nowrap; margin-left: .5em; }
.demobar a:hover { color: #cfe0d2; }
.demobar a:focus-visible { outline-color: #fff; }
.demobar__tag {
  display: inline-block; border: 1px solid #8d948f; border-radius: 2px;
  padding: 0 .4em; margin-right: .4em; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
}
@media (max-width: 520px) { .demobar a { display: block; margin: .15rem 0 0; white-space: normal; } }

/* ---------- Kopf ---------- */
.site-head__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.4rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 500; letter-spacing: .02em; }
.brand__mark { color: var(--pine); }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav a { text-decoration: none; font-size: .9375rem; color: var(--muted); padding: .3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (min-width: 768px) { .nav { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
  background: var(--ink); color: var(--snow); border: 1px solid var(--ink);
  padding: .9rem 1.6rem; border-radius: 0; cursor: pointer; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--pine); border-color: var(--pine); color: var(--snow); }
.btn--small { padding: .55rem 1.05rem; font-size: .875rem; background: transparent; color: var(--ink); }
.btn--small:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  font-size: .75rem; font-weight: 550; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.5rem;
  display: flex; align-items: center; gap: .9rem;
}
.num { color: var(--pine); font-variant-numeric: tabular-nums; }
.num::after { content: ""; display: inline-block; width: 2.5rem; height: 1px; background: var(--line-strong); vertical-align: middle; margin-left: .9rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 8vw, 6.5rem); }
.hero__eyebrow { margin-bottom: 1.25rem; }
.hero__title {
  font-size: clamp(3.6rem, 15.5vw, 11.5rem);
  font-weight: 200; letter-spacing: -.055em; line-height: .9;
  margin-left: -.04em;
}
.hero__title .ch { display: inline-block; }
.hero__lead {
  max-width: 32rem; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.55;
}

.ridge { position: relative; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; height: clamp(3.5rem, 8vw, 6.9rem); }
.ridge__svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ridge__line { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ridge__pin { position: absolute; left: 58.33%; top: 39%; display: flex; align-items: center; gap: .6rem; transform: translate(-5px, -50%); }
.ridge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--pine); flex: none; }
.ridge__label { position: absolute; right: calc(100% + .7rem); bottom: .9rem; font-size: .75rem; color: var(--muted); white-space: nowrap; background: var(--paper); padding: 0 .3rem; }
@media (max-width: 640px) {
  .ridge { margin-bottom: 1.75rem; }
  .ridge__label { left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, 2.2rem); }
}

.hero__media { margin: clamp(1.25rem, 3vw, 2rem) 0 0; overflow: hidden; background: var(--alt); aspect-ratio: 4 / 5; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
@media (min-width: 600px) { .hero__media { aspect-ratio: 3 / 2; } }
@media (min-width: 1100px) { .hero__media { aspect-ratio: 21 / 10; } .hero__media img { object-position: 50% 0%; transform-origin: 50% 0%; } } /* oben verankert: Fensteroberkante bleibt trotz Zoom/Parallaxe im Bild (neues Hero 2026-11-02) */

.facts {
  margin: clamp(1rem, 2.5vw, 2rem) 0 0; display: grid; grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}
.facts div { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 1rem; }
.facts dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 250; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(4, 1fr); border-bottom: 0; }
  .facts div { padding: 1.6rem 1.5rem 0 0; border-top: 1px solid var(--line); }
  .facts div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}

/* ---------- Intro ---------- */
.intro { padding-block: var(--space) 0; }
.intro__text {
  max-width: 54rem; margin: 0;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-weight: 280; line-height: 1.35; letter-spacing: -.018em;
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space); }
.section--tight { padding-top: 0; }
.section--alt { background: var(--alt); }
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 46rem; }
.section__head h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
.section__lead { margin: 1.5rem 0 0; color: var(--muted); max-width: 36rem; }

/* Ausstattung */
.amenities { display: grid; gap: 0; border-top: 1px solid var(--line); }
.amenities__group { padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--line); }
.amenities h3 { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pine); margin-bottom: 1rem; }
.amenities li { padding: .35rem 0; }
@media (min-width: 768px) {
  .amenities { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
}
@media (min-width: 1100px) {
  .amenities { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-bottom: 1px solid var(--line); }
  .amenities__group { border-bottom: 0; padding: 2rem 1.75rem 2.25rem; }
  .amenities__group:first-child { padding-left: 0; }
  .amenities__group + .amenities__group { border-left: 1px solid var(--line); }
}

.rules { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2rem; font-size: .875rem; color: var(--muted); }
.rules li { display: flex; align-items: center; gap: .6rem; }
.rules li::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--wood); transform: rotate(45deg); }

/* Galerie */
.gallery { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
.g { margin: 0; }
.g .ph { overflow: hidden; background: var(--alt); aspect-ratio: 4 / 3; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g:hover img { transform: scale(1.025); }
.g figcaption { font-size: .8125rem; color: var(--muted); padding-top: .7rem; letter-spacing: .01em; }
.g2 .ph { aspect-ratio: 4 / 5; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g1 { grid-column: 1 / -1; }
  .g .ph { aspect-ratio: auto; height: clamp(260px, 42vw, 420px); }
  .g1 .ph { height: clamp(320px, 56vw, 560px); }
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(12, 1fr); }
  .g1 { grid-column: 1 / 9; }
  .g2 { grid-column: 9 / 13; }
  .g3 { grid-column: 1 / 5; }
  .g4 { grid-column: 5 / 10; }
  .g5 { grid-column: 10 / 13; }
  .g1 .ph, .g2 .ph { height: clamp(420px, 40vw, 640px); }
  .g3 .ph, .g4 .ph, .g5 .ph { height: clamp(300px, 27vw, 430px); }
  .g3 { margin-top: clamp(1.5rem, 4vw, 4rem); }
  .g5 { margin-top: clamp(3rem, 7vw, 7rem); }
}

.quote { margin: clamp(4rem, 9vw, 7rem) auto 0; max-width: 40rem; text-align: center; }
.quote p { font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-weight: 280; line-height: 1.4; letter-spacing: -.012em; margin-bottom: 1.25rem; }
.quote footer { font-size: .8125rem; color: var(--muted); }
.tag { display: inline-block; margin-left: .5rem; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: .05rem .45rem; border-radius: 2px; }

/* Jahreslauf */
.seasons {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 1.25rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.seasons:focus-visible { outline-offset: -2px; }
.season { scroll-snap-align: start; }
.season__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); margin-bottom: 1.25rem; }
.season__img img { width: 100%; height: 100%; object-fit: cover; }
.season__months { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; font-variant-numeric: tabular-nums; }
.season h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: .8rem; }
.season > p:not(.season__months) { font-size: .975rem; color: var(--ink); }
.season ul { border-top: 1px solid var(--line-strong); margin-top: 1.25rem; font-size: .875rem; }
.season li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.season li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
@media (min-width: 768px) {
  .seasons { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 3.5rem 2rem; }
}
@media (min-width: 1100px) {
  .seasons { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .season:nth-child(even) { margin-top: 4rem; }
}

/* Lage */
.distances { margin: 0; border-top: 1px solid var(--ink); }
.distances div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.distances dd { margin: 0; font-size: 1.375rem; font-weight: 280; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
@media (min-width: 1000px) {
  .lage { display: grid; grid-template-columns: 5fr 6fr; gap: 6rem; align-items: start; }
  .lage .section__head { margin-bottom: 0; }
}

/* Anfrage */
.booking { display: grid; gap: 3.5rem; }
@media (min-width: 1000px) { .booking { grid-template-columns: 6fr 5fr; gap: 5rem; align-items: start; } }

.cal { background: var(--snow); padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--line); }
.cal__fallback { margin: 0; color: var(--muted); font-size: .9375rem; }
.cal__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.cal__title { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.cal__nav { display: flex; gap: .4rem; }
.cal__nav button {
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: inherit; font-size: 1rem; cursor: pointer; display: grid; place-items: center;
}
.cal__nav button:hover:not(:disabled) { border-color: var(--ink); }
.cal__nav button:disabled { opacity: .35; cursor: default; }
.cal__months { display: grid; gap: 2rem; }
@media (min-width: 640px) { .cal__months { grid-template-columns: 1fr 1fr; } }
.cal__month h3 { font-size: 1.0625rem; font-weight: 450; letter-spacing: 0; margin-bottom: .8rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal__dow { font-size: .6875rem; color: var(--muted); letter-spacing: .06em; padding-bottom: .35rem; }
.cal__day {
  aspect-ratio: 1; min-height: 34px; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: .875rem; font-variant-numeric: tabular-nums; cursor: pointer; position: relative;
  transition: background .15s;
}
.cal__day:hover:not(:disabled) { background: var(--pine-soft); }
.cal__day:disabled { cursor: default; }
.cal__day.is-past { color: #a3a69f; }
.cal__day.is-busy { color: #62665f; background: repeating-linear-gradient(-45deg, transparent 0 4px, var(--busy) 4px 5px); text-decoration: line-through; text-decoration-color: #9ea198; }
.cal__day.is-range { background: var(--pine-soft); }
.cal__day.is-start, .cal__day.is-end { background: var(--pine); color: #fff; }
.cal__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.5rem 0 0; font-size: .8125rem; color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: .5rem; }
.cal__legend i { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--line-strong); }
.cal__legend .l-busy { background: repeating-linear-gradient(-45deg, transparent 0 3px, var(--busy) 3px 4px); }
.cal__legend .l-sel { background: var(--pine); border-color: var(--pine); }
.cal__hint { margin: .75rem 0 0; font-size: .8125rem; color: var(--muted); }

.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; gap: 1.35rem; }
@media (min-width: 480px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .8125rem; font-weight: 550; letter-spacing: .04em; margin-bottom: .45rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--snow); border: 1px solid var(--line-strong); border-radius: 0;
  padding: .8rem .9rem; min-height: 3rem;
  transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 52%, calc(100% - .9rem) 52%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--pine); outline: 2px solid var(--pine); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: #9b3b2f; }
.form__note { font-size: .8125rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .9375rem; min-height: 1.5em; }
.form__status.is-done { padding: 1rem 1.1rem; border-left: 2px solid var(--pine); background: var(--snow); }
.form__status.is-error { color: #8a3226; }

/* Fuß */
.site-foot { background: var(--ink); color: #d9dcd6; padding-block: clamp(3.5rem, 7vw, 5.5rem); font-size: .9375rem; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: #cfe0d2; }
.site-foot a:focus-visible { outline-color: #fff; }
.site-foot__in { display: grid; gap: 2rem; }
.site-foot__brand { font-size: 1.75rem; font-weight: 250; letter-spacing: -.03em; color: #fff; margin-bottom: .2rem; }
.site-foot address { font-style: normal; line-height: 1.8; }
.site-foot__links { display: grid; gap: .5rem; align-content: start; }
@media (min-width: 768px) { .site-foot__in { grid-template-columns: 2fr 1.4fr 1fr; } }

/* 4K-Bildschirme: ab 1920 px wächst die Grundschrift mit (bei 3840 px ≈ 1,6×).
   Weil Schriften, Abstände und --wrap in rem stehen, skaliert das ganze Layout gleichmäßig. */
@media (min-width: 1921px) { html { font-size: calc(100% + (100vw - 1920px) / 192); } }

/* QA 2026-10-23: keine Einzelwörter in der letzten Zeile */
p, li, blockquote, figcaption, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* Bildpipeline 2026-11-11: <picture> erzeugt keine eigene Box — Layout bleibt wie beim nackten <img> */
picture { display: contents; }
picture > source { display: none; } /* sonst wird <source> unter display:contents zum Grid-Element (handel: Bild 0 px hoch) */

/* Parallaxe (Leo 2026-11-11: ruhig, linear an den Scroll gekoppelt, Weg 7 %). Nur CSS scroll-driven, ohne Unterstützung
   statisch. Eigene Eigenschaften translate/scale statt transform — so bleibt ein GSAP-transform (z.B. Vorhang-Zoom) unberührt.
   Aus bei „Bewegung reduzieren" und beim Seiten-Schalter data-bewegung="aus". scale 1.08 > Weg ±3,5 % → nie ein Rand sichtbar;
   die Bildquellen sind dafür mit Faktor 1,08 bemessen (bildpipeline/faktoren.json). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* overflow:hidden machte den Rahmen selbst zum Scroll-Container → view() lief nie. clip schneidet gleich, ohne Scroller. */
    html:not([data-bewegung="aus"]) .season__img { overflow: clip; }
    html:not([data-bewegung="aus"]) .season__img img {
      scale: 1.08;
      animation: parallaxe linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
@keyframes parallaxe { from { translate: 0 -3.5%; } to { translate: 0 3.5%; } }
