/* Ferienhaus am Grimming, Version 2. Zuerst fürs Handy, ab 48rem und 64rem breiter. */

/* ---------- Icons ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  font-weight: 560; font-size: 0.9375rem; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  background: var(--enzian); color: white;
  transition: transform var(--d-press) var(--ease-out), background-color var(--d-kurz) ease, color var(--d-kurz) ease;
}
.btn:active { transform: scale(0.97); background: var(--enzian-druck); }
.btn--ruhig { background: var(--kalk-tief); color: var(--fels); }
.btn--ruhig:active { background: var(--linie); }
.btn--glas {
  background: oklch(100% 0 0 / 0.14); color: white;
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.18);
}
.btn--glas:active { background: oklch(100% 0 0 / 0.24); }
.btn--breit { width: 100%; }
.btn[aria-disabled="true"] { background: var(--kalk-tief); color: var(--grau); cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--enzian-druck); }
  .btn--ruhig:hover { background: var(--linie); }
  .btn--glas:hover { background: oklch(100% 0 0 / 0.22); }
  .btn[aria-disabled="true"]:hover { background: var(--kalk-tief); }
}

.iconbtn {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--kalk-tief); color: var(--fels);
  transition: transform var(--d-press) var(--ease-out), background-color var(--d-kurz) ease, opacity var(--d-kurz) ease;
}
.iconbtn:active { transform: scale(0.95); background: var(--linie); }
.iconbtn:disabled { opacity: 0.35; cursor: default; }
.iconbtn:disabled:active { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .iconbtn:not(:disabled):hover { background: var(--linie); }
}

.textlink {
  color: var(--enzian); font-weight: 540; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* ---------- Kopfleiste ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: var(--z-bar);
  padding-top: env(safe-area-inset-top);
  color: white;
  transition: background-color var(--d-mittel) ease, color var(--d-mittel) ease, box-shadow var(--d-mittel) ease;
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: 60px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 620; font-size: 1rem; letter-spacing: -0.01em; text-decoration: none;
}
.wordmark svg { width: 22px; height: 22px; }
.top .btn { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
/* Sobald der Hero weg ist: Kalk als Material, Inhalt scrollt darunter durch */
.top--fest {
  color: var(--fels);
  background: oklch(95.5% 0.014 80 / 0.8);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 1px 0 oklch(23% 0.015 55 / 0.07);
}
.top--fest .btn--glas { background: var(--kalk-tief); color: var(--fels); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 600px; max-height: 1100px;
  container-type: size;
  overflow: hidden;
  color: white;
  background: var(--nacht);
  isolation: isolate;
}
/* Der Rahmen hat das Seitenverhältnis des Fotos, damit die Gipfelmarke auf jedem Format am Gipfel sitzt.
   Er füllt die Fläche wie object-fit: cover und hält den Grimming in der Mitte. */
.hero__frame {
  --w: max(100cqw, 149.8cqh);
  --h: calc(var(--w) / 1.498);
  position: absolute; z-index: -1;
  width: var(--w); height: var(--h);
  left: clamp(calc(100cqw - var(--w)), calc(50cqw - 0.49 * var(--w)), 0px);
  top: clamp(calc(100cqh - var(--h)), calc(42cqh - 0.36 * var(--h)), 0px);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, oklch(20% 0.016 50 / 0.5), transparent 22%),
    linear-gradient(to top, oklch(18% 0.016 50 / 0.94) 8%, oklch(18% 0.016 50 / 0.55) 42%, transparent 64%);
}

/* Gipfelmarke wie auf einer Panoramatafel */
.peak {
  position: absolute; left: 49%; top: 32.2%;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, calc(-100% + 7px));
}
.peak__label {
  display: grid; justify-items: center; gap: 1px;
  white-space: nowrap; line-height: 1.3;
  text-shadow: 0 1px 10px oklch(15% 0.02 50 / 0.55);
}
.peak__label b { font-weight: 560; font-size: 0.875rem; letter-spacing: 0; }
.peak__label span { font-family: var(--mono); font-size: 0.75rem; opacity: 0.78; }
.peak__line {
  width: 1px; height: clamp(40px, 9cqh, 90px); margin-top: 8px;
  background: linear-gradient(oklch(100% 0 0 / 0.95), oklch(100% 0 0 / 0.4));
  transform-origin: bottom;
}
.peak__dot { width: 7px; height: 7px; border-radius: 50%; background: white; box-shadow: 0 0 0 4px oklch(100% 0 0 / 0.22); }

.hero__body {
  position: absolute; inset: auto 0 0;
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
}
.hero__eyebrow { margin-bottom: var(--s-4); font-size: var(--t-small); font-weight: 500; letter-spacing: 0.01em; color: var(--holz-nacht); }
.hero h1 {
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 11ch;
}
.hero__lead {
  margin-top: var(--s-4);
  max-width: 30ch;
  font-size: var(--t-lead);
  line-height: 1.45;
  color: oklch(100% 0 0 / 0.84);
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-5); }
.hero__facts li {
  display: inline-flex; align-items: center; height: 32px; padding: 0 13px;
  border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 500;
  background: oklch(100% 0 0 / 0.12); box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---------- Dock: die Buchungsleiste am unteren Rand ---------- */
.dock {
  position: fixed; z-index: var(--z-bar);
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 560px; margin-inline: auto;
  display: grid; align-items: center;
  min-height: 68px;
  padding: 10px 10px 10px 20px;
  border-radius: 22px;
  color: white;
  background: oklch(21% 0.016 50 / 0.76);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.1), 0 0 0 1px oklch(100% 0 0 / 0.06), 0 12px 32px oklch(15% 0.02 50 / 0.3);
  transition: transform 420ms var(--ease-sheet);
}
/* Rein und raus auf demselben Weg: nach unten */
.dock--weg { transform: translateY(calc(100% + 12px + env(safe-area-inset-bottom))); }
.dock__state {
  grid-area: 1 / 1;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  transition: opacity var(--d-kurz) ease, filter var(--d-kurz) ease, transform var(--d-kurz) var(--ease-out);
}
.dock__state[inert] { opacity: 0; filter: blur(3px); transform: translateY(4px); }
.dock__text { display: grid; line-height: 1.25; min-width: 0; }
.dock__text b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__text b small { font-weight: 400; font-size: 0.8125rem; opacity: 0.7; }
.dock__text span { color: oklch(100% 0 0 / 0.66); font-size: 0.8125rem; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--s-8); }
.section--nacht { background: var(--nacht); color: oklch(96% 0.01 80); }
.head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.head__label {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--t-small); font-weight: 560; color: var(--holz-text);
}
.head__label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--holz); }
.section--nacht .head__label { color: var(--holz-nacht); }
.section--nacht .head__label::before { background: var(--holz-nacht); }
.head h2 { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.035em; font-weight: 580; max-width: 16ch; }
.head p { color: var(--fels-2); max-width: 40ch; font-size: var(--t-lead); line-height: 1.45; }
.section--nacht .head p { color: oklch(100% 0 0 / 0.7); }
.head--zeile { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); }
.head--zeile > div { display: grid; gap: var(--s-3); }

.card {
  background: var(--kalk-hell);
  border-radius: var(--r-l);
  box-shadow: 0 0 0 1px oklch(23% 0.015 55 / 0.06), 0 1px 2px oklch(23% 0.015 55 / 0.04);
}

/* ---------- Galerie: Fotostreifen zum Wischen ---------- */
.strip {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(78%, 360px);
  gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--rand), calc((100% - var(--breite)) / 2));
  padding-inline: max(var(--rand), calc((100% - var(--breite)) / 2));
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: start; }
.shot a { display: grid; gap: 10px; text-decoration: none; -webkit-touch-callout: none; }
.shot__img {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--r-l);
  background: var(--kalk-tief);
  transition: transform var(--d-press) var(--ease-out);
}
.shot__img img { width: 100%; height: 100%; object-fit: cover; }
.shot a:active .shot__img { transform: scale(0.98); }
.shot__cap { display: flex; justify-content: space-between; gap: var(--s-3); padding-inline: 4px; font-size: var(--t-small); }
.shot__cap b { font-weight: 540; }
.shot__cap span { color: var(--grau); font-family: var(--mono); font-size: 0.75rem; }
@media (hover: hover) and (pointer: fine) {
  .shot__img img { transition: transform 600ms var(--ease-out); }
  .shot a:hover .shot__img img { transform: scale(1.03); }
}
.strip__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); margin-top: var(--s-5); }
.strip__track { flex: 1; max-width: 220px; height: 3px; border-radius: 3px; background: var(--kalk-tief); overflow: hidden; }
.strip__thumb { height: 100%; width: 30%; border-radius: 3px; background: var(--fels); transform-origin: left; will-change: transform; }
.strip__nav { display: none; gap: 8px; }
@media (hover: hover) and (pointer: fine) {
  .strip__nav { display: flex; }
}

/* ---------- Vollbild-Galerie ---------- */
.lb {
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: oklch(15% 0.012 50); color: white;
  overscroll-behavior: contain;
}
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb::backdrop { background: oklch(15% 0.012 50); }
.lb__bar, .lb__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-inline: max(var(--s-4), env(safe-area-inset-left)) max(var(--s-4), env(safe-area-inset-right));
}
.lb__bar { padding-top: calc(env(safe-area-inset-top) + 10px); padding-bottom: 10px; }
.lb__foot { padding-top: 12px; padding-bottom: calc(env(safe-area-inset-bottom) + 14px); align-items: flex-start; }
.lb__count { font-family: var(--mono); font-size: 0.8125rem; color: oklch(100% 0 0 / 0.7); font-variant-numeric: tabular-nums; }
.lb .iconbtn { background: oklch(100% 0 0 / 0.1); color: white; }
.lb .iconbtn:active { background: oklch(100% 0 0 / 0.2); }
@media (hover: hover) and (pointer: fine) {
  .lb .iconbtn:not(:disabled):hover { background: oklch(100% 0 0 / 0.18); }
}
.lb__track {
  display: flex; min-height: 0;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lb__track::-webkit-scrollbar { display: none; }
.lb__track:focus-visible { outline-offset: -3px; }
.lb__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; min-height: 0; padding: 0 var(--s-2); }
.lb__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb__cap { flex: 1; display: grid; gap: 2px; text-align: center; font-size: var(--t-small); padding-top: 4px; min-height: 44px; }
.lb__cap b { font-weight: 560; font-size: 1rem; }
.lb__cap span { color: oklch(100% 0 0 / 0.62); }
.lb__cap a { color: inherit; }
.lb[open] { animation: lb-in 260ms var(--ease-out); }
.lb.is-closing { animation: lb-out 160ms ease-out forwards; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
@keyframes lb-out { to { opacity: 0; transform: scale(0.985); } }
html.is-locked { overflow: hidden; }

/* ---------- Ausstattung ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: var(--s-5); }
.facts div { padding: var(--s-4) var(--s-4) var(--s-4); border-radius: var(--r-m); background: var(--holz-hell); }
.facts dd { font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 580; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd small { font-size: 0.55em; font-weight: 500; letter-spacing: -0.01em; }
.facts dt { margin-top: 6px; font-size: var(--t-small); color: var(--holz-text); font-weight: 520; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.amen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.amen li {
  display: grid; gap: 12px; align-content: start;
  padding: 16px; border-radius: var(--r-m);
  background: var(--kalk-hell);
  box-shadow: 0 0 0 1px oklch(23% 0.015 55 / 0.06);
}
.amen .ico { color: var(--holz); width: 22px; height: 22px; }
.amen b { font-weight: 560; display: block; line-height: 1.25; }
.amen span { color: var(--grau); font-size: var(--t-small); line-height: 1.35; display: block; margin-top: 2px; }

/* ---------- Preise ---------- */
.prices { display: grid; gap: var(--s-6); }
.price-list { border-top: 1px solid var(--nacht-linie); }
.price {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-4);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--nacht-linie);
}
.price h3 { font-size: 1.1875rem; font-weight: 560; letter-spacing: -0.015em; }
.price div p { color: oklch(100% 0 0 / 0.62); font-size: var(--t-small); margin-top: 2px; }
.price__amount { text-align: right; white-space: nowrap; line-height: 1; color: white; }
.price__amount small { display: block; font-size: var(--t-small); color: oklch(100% 0 0 / 0.6); margin-bottom: 4px; }
.price__amount b { font-size: clamp(2rem, 8vw, 2.75rem); font-weight: 560; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.terms { display: grid; gap: 2px; padding: 6px var(--s-4); border-radius: var(--r-m); background: var(--nacht-2); }
.terms div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: 14px 0; border-bottom: 1px solid var(--nacht-linie); }
.terms div:last-child { border-bottom: 0; }
.terms dt { color: oklch(100% 0 0 / 0.66); font-size: var(--t-small); flex: none; }
.terms dd { text-align: right; font-weight: 520; font-size: 0.9375rem; }

/* ---------- Kalender ---------- */
.cal { padding: var(--s-4) var(--s-3) var(--s-4); }
.cal__months { display: grid; gap: var(--s-6); touch-action: pan-y; }
.cal__month h3 { font-size: 1.0625rem; font-weight: 580; letter-spacing: -0.01em; padding: 0 4px; height: 44px; display: flex; align-items: center; }
.cal__top { position: relative; }
.cal__nav { position: absolute; top: 0; right: 4px; display: flex; gap: 6px; z-index: 1; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; margin-top: var(--s-3); }
.dow { text-align: center; color: var(--grau); padding-bottom: 6px; font-size: 0.75rem; font-weight: 500; }
.day {
  position: relative;
  height: 46px; width: 100%;
  display: grid; place-items: center;
  font-size: 0.9375rem; font-variant-numeric: tabular-nums;
  border-radius: 50%;
  transition: transform var(--d-press) var(--ease-out);
}
.day:not(:disabled):active { transform: scale(0.95); }
.day:disabled { color: oklch(72% 0.012 60); cursor: default; }
.day--booked { color: var(--grau); text-decoration: line-through; text-decoration-color: oklch(55% 0.02 60 / 0.55); }
.day { isolation: isolate; }
.day--booked[aria-disabled="true"] { cursor: default; }
/* Schraffur als Kreis, auch wenn die Zelle breiter als hoch ist */
.day--booked[aria-disabled="true"]::before {
  content: ""; position: absolute; z-index: -1; inset: 0; margin: auto;
  height: 100%; max-width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-linear-gradient(-45deg, transparent 0 4px, oklch(23% 0.015 55 / 0.07) 4px 5px);
}
.day--booked[aria-disabled="true"]:active { transform: none; }
/* Belegt ab dem Abend: als Abreisetag möglich */
.day--booked:not([aria-disabled="true"]) { color: var(--fels); text-decoration: none; }
.day--today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--holz); }
.day--range { background: var(--enzian-hell); border-radius: 0; color: var(--fels); }
.day--start, .day--end {
  --dot: radial-gradient(circle closest-side, var(--enzian) calc(100% - 1px), transparent);
  color: white; font-weight: 600; border-radius: 0; text-decoration: none;
}
.day--start { background: var(--dot), linear-gradient(to right, transparent 50%, var(--enzian-hell) 50%); }
.day--end { background: var(--dot), linear-gradient(to left, transparent 50%, var(--enzian-hell) 50%); }
.day--start.day--end { background: var(--dot); }
.day--start::after, .day--end::after { background: white; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: var(--s-4); padding: 0 6px; color: var(--grau); font-size: var(--t-micro); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px var(--linie); }
.legend .is-free { background: var(--kalk-hell); }
.legend .is-booked { background: repeating-linear-gradient(-45deg, transparent 0 3px, oklch(23% 0.015 55 / 0.25) 3px 4px); }
.legend .is-sel { background: var(--enzian); box-shadow: none; }
.cal__foot { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.cal__status {
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 12px 16px; border-radius: var(--r-m);
  background: var(--kalk); font-size: var(--t-small); line-height: 1.4;
}
.cal__status .ico { color: var(--enzian); }
.cal__status.is-error { color: var(--fehler); }
.cal__status.is-error .ico { color: var(--fehler); }
.cal__note { margin-top: var(--s-4); color: var(--grau); font-size: var(--t-small); }

/* ---------- Lage ---------- */
.place { display: grid; gap: var(--s-6); }
.map {
  position: relative; height: 320px; overflow: hidden;
  border-radius: var(--r-l); background: var(--kalk-tief);
  box-shadow: 0 0 0 1px oklch(23% 0.015 55 / 0.06);
  isolation: isolate;
}
.map__canvas { position: absolute; inset: 0; z-index: 0; }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.map__hint { margin-top: var(--s-3); color: var(--grau); font-size: var(--t-small); }
.map-pin { background: var(--enzian); border: 3px solid white; border-radius: 50%; box-shadow: 0 2px 10px oklch(23% 0.015 55 / 0.35); }
.map .leaflet-container { font-family: var(--font); background: var(--kalk-tief); }
.map .leaflet-control-attribution { font-size: 11px; line-height: 1.5; }
.ways li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.ways li:first-child { padding-top: 0; }
.ways .ico-wrap { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--holz-hell); color: var(--holz-text); }
.ways b { font-weight: 540; display: block; line-height: 1.3; }
.ways small { color: var(--grau); font-size: var(--t-small); }
.ways .km { font-family: var(--mono); font-size: 0.8125rem; color: var(--fels-2); text-align: right; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Anfrage ---------- */
.enquiry { display: grid; gap: var(--s-6); }
.contact { display: grid; gap: 4px; font-style: normal; }
.contact li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--fels-2); }
.contact .ico { color: var(--holz); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); padding: var(--s-5) var(--s-4); }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-small); font-weight: 540; color: var(--fels-2); padding-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px;
  border: 0; border-radius: 14px;
  background: var(--kalk);
  box-shadow: inset 0 0 0 1px var(--linie);
  transition: box-shadow var(--d-kurz) ease, background-color var(--d-kurz) ease;
  -webkit-appearance: none; appearance: none;
}
.field input[type="date"] { min-width: 0; display: block; line-height: 1.5; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23574b41' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background-color: var(--kalk-hell);
  box-shadow: inset 0 0 0 2px var(--enzian), 0 0 0 4px var(--enzian-hell);
}
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--fehler); }
.field__help { font-size: var(--t-small); color: var(--fehler); min-height: 0; padding-left: 2px; }
.field__help:empty { display: none; }
.form__foot { grid-column: 1 / -1; display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.form__status:empty { display: none; }
.form__status { padding: 14px 16px; border-radius: var(--r-m); background: var(--enzian-hell); font-size: var(--t-small); line-height: 1.5; }
.form__status b { display: block; font-weight: 600; margin-bottom: 2px; }
.form__fine { color: var(--grau); font-size: var(--t-micro); text-align: center; }

/* ---------- Fußzeile ---------- */
.footer {
  background: var(--nacht); color: oklch(100% 0 0 / 0.72);
  padding-top: var(--s-8);
  padding-bottom: calc(var(--s-7) + env(safe-area-inset-bottom));
  font-size: var(--t-small);
}
.footer__in { display: grid; gap: var(--s-6); }
.footer .wordmark { color: white; margin-bottom: var(--s-4); }
.footer address { font-style: normal; line-height: 1.6; }
.footer a { color: white; }
.footer__note { margin-top: var(--s-3); }
.footer details { border-bottom: 1px solid var(--nacht-linie); }
.footer details:first-child { border-top: 1px solid var(--nacht-linie); }
.footer summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; cursor: pointer; color: white; font-weight: 520; list-style: none;
}
.footer summary::-webkit-details-marker { display: none; }
.footer summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 6px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--d-kurz) var(--ease-out);
}
.footer details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.footer details p { padding-bottom: var(--s-4); }
.credits { display: grid; gap: var(--s-3); font-size: var(--t-micro); line-height: 1.6; color: oklch(100% 0 0 / 0.55); }
.credits a { color: oklch(100% 0 0 / 0.78); }

/* ---------- Breitere Bildschirme ---------- */
@media (min-width: 40rem) {
  .amen { grid-template-columns: repeat(3, 1fr); }
  .form { padding: var(--s-6); }
}
@media (min-width: 48rem) {
  .section { padding-block: var(--s-9); }
  .cal { padding: var(--s-5); }
  .cal__months { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .day { height: 50px; }
  .cal__foot { grid-template-columns: 1fr auto; align-items: center; }
  .map { height: 420px; }
  .footer__in { grid-template-columns: 1.1fr 1fr; }
  .credits { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .amen { grid-template-columns: repeat(5, 1fr); }
  .prices { grid-template-columns: 1fr 1.25fr; gap: var(--s-8); align-items: start; }
  .prices .head { position: sticky; top: 100px; }
  .place { grid-template-columns: 1.4fr 1fr; align-items: start; gap: var(--s-7); }
  .enquiry { grid-template-columns: 1fr 1.3fr; gap: var(--s-8); align-items: start; }
  .hero__body { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
}

/* ---------- Ankommen: einmalige Bewegung beim Laden ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__frame img { animation: hero-img 1400ms var(--ease-out) both; }
  .js .hero [data-in] { animation: rise 700ms var(--ease-out) both; animation-delay: calc(250ms + var(--i, 0) * 70ms); }
  .js .peak__line { animation: draw 700ms var(--ease-out) 700ms both; }
  .js .peak__label, .js .peak__dot { animation: fade 500ms ease 1000ms both; }
  .js .dock { animation: dock-in 600ms var(--ease-sheet) 600ms backwards; }

  /* Abschnitte erscheinen einmal beim ersten Hinscrollen */
  .reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
  .reveal-ready .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero [data-in], .js .dock { animation: fade 300ms ease both; }
  .dock, .dock__state { transition-property: opacity; }
  .dock--weg { transform: none; opacity: 0; pointer-events: none; }
  .dock__state[inert] { transform: none; filter: none; }
  .lb[open] { animation: fade 200ms ease; }
  .lb.is-closing { animation: lb-fade-out 150ms ease forwards; }
  .shot__img, .btn, .iconbtn, .day { transition: none; }
}
@keyframes hero-img { from { transform: scale(1.06); opacity: 0.4; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@keyframes draw { from { transform: scaleY(0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes lb-fade-out { to { opacity: 0; } }
@keyframes dock-in { from { transform: translateY(calc(100% + 24px)); } }

@media (prefers-reduced-transparency: reduce) {
  .dock { background: var(--nacht); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .top--fest { background: var(--kalk); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
