/* Berghaus Firnlicht: Beispielvorlage. Welt: Nebel, Fels, Arvenholz, Lampenlicht. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url(schriften/bricolage-grotesque-latin.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 300 800; font-display: swap; src: url(schriften/figtree-latin.woff2) format("woff2"); }

:root {
  --nebel: #e9ecea;
  --firn: #f7f8f5;
  --fels: #262a28;
  --fels-2: #4a514d;
  --stein: #5c6460;
  --tanne: #264437;
  --moos: #6f8a5b;
  --lampe: #e3a052;
  --belegt: #c9cdca;
  --titel: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;
  --rand: clamp(18px, 4vw, 64px);
  --aus: cubic-bezier(.16, 1, .3, 1);
  --fahrt: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nebel); color: var(--fels); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, h3 { margin: 0; font-family: var(--titel); font-weight: 600; letter-spacing: -.03em; text-wrap: balance; font-variation-settings: "opsz" 96; }
p { margin: 0; text-wrap: pretty; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--tanne); color: var(--firn); }
:focus-visible { outline: 2px solid var(--tanne); outline-offset: 3px; }
input, textarea { caret-color: var(--tanne); }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--tanne); color: var(--firn); }
.sprung:focus { top: 12px; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.klein { font-size: .8125rem; color: var(--stein); }

.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 4px; background: var(--tanne); color: var(--firn); font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s var(--aus); }
.knopf:active { transform: scale(.97); }
.knopf:disabled { background: var(--belegt); color: var(--fels-2); cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .knopf:not(:disabled):hover { background: #1b3329; } }

/* Kopf */
.kopf { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 20px; padding: 16px var(--rand); color: var(--firn); transition: color .4s, background-color .4s; }
.kopf.hell { color: var(--fels); background: rgb(233 236 234 / .88); backdrop-filter: blur(10px); }
.marke { font-family: var(--titel); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1; text-decoration: none; }
.marke small { display: block; margin-top: 4px; font: 500 .6875rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.kopf nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.kopf nav a:not(.kopf-knopf) { text-decoration: none; font-size: .9375rem; }
.kopf-knopf { padding: 9px 16px; border-radius: 4px; border: 1.5px solid currentColor; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.beispiel { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 4px; background: rgb(127 135 130 / .25); }
@media (max-width: 720px) { .kopf nav a:not(.kopf-knopf), .beispiel { display: none; } }

/* Einstieg: Tal mit Tiefe, Texte wechseln beim Scrollen */
.tal { position: relative; height: 240vh; background: var(--fels); }
.tal-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tal-foto, .tal-tiefe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tal-tiefe { opacity: 0; transition: opacity .8s var(--aus); }
.tal-tiefe.bereit { opacity: 1; }
.tal-buehne::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgb(20 24 22 / .5) 0%, rgb(20 24 22 / .18) 45%, transparent 70%), linear-gradient(180deg, rgb(20 24 22 / .5) 0%, transparent 35%, transparent 60%, rgb(20 24 22 / .6) 100%); }
.nebel {
  position: absolute; inset: 34% -15% 10%; z-index: 2; pointer-events: none; opacity: var(--nebel, .85);
  background: radial-gradient(70% 45% at 25% 55%, rgb(247 248 245 / .9), transparent 70%), radial-gradient(60% 40% at 78% 48%, rgb(247 248 245 / .75), transparent 72%), radial-gradient(90% 30% at 50% 70%, rgb(233 236 234 / .8), transparent 75%);
  filter: blur(34px); will-change: transform, opacity;
}
.tal-texte { position: absolute; z-index: 3; left: var(--rand); right: var(--rand); top: 34%; translate: 0 -50%; color: var(--firn); }
.tal-zeile { position: absolute; left: 0; top: 0; translate: 0 -50%; max-width: 13ch; font-family: var(--titel); font-weight: 700; letter-spacing: -.045em; line-height: .88; font-size: clamp(3.8rem, 12vw, 12rem); font-variation-settings: "opsz" 96; opacity: 0; text-shadow: 0 2px 40px rgb(20 24 22 / .35); }
.tal-zeile.aktiv { opacity: 1; }
p.tal-zeile { max-width: 16ch; font-size: clamp(2.4rem, 7vw, 6.6rem); }
.tal-fuss { position: absolute; z-index: 3; left: var(--rand); right: var(--rand); bottom: clamp(26px, 6vh, 60px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; color: var(--firn); }
.tal-fuss .knopf { background: var(--firn); color: var(--fels); }
.tal-fuss .knopf:hover { background: #fff; }
.frei-hinweis {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px 0 0; border: 0; background: none; cursor: pointer;
  font: 500 1rem/1.3 var(--text); text-align: left; color: var(--firn); text-shadow: 0 1px 12px rgb(20 24 22 / .5);
}
.frei-hinweis[hidden] { display: none; }
.frei-hinweis b { font-weight: 700; }
.frei-hinweis::after { content: ""; flex: none; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; rotate: 45deg; transition: translate .2s var(--aus); }
.frei-punkt { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #9fc27f; box-shadow: 0 0 0 4px rgb(159 194 127 / .28); }
@media (hover: hover) and (pointer: fine) { .frei-hinweis:hover::after { translate: 3px 0; } .frei-hinweis:hover span:last-of-type { text-decoration: underline; text-underline-offset: .25em; } }
@media (max-width: 720px) { .tal { height: 200vh; } .frei-hinweis { font-size: .9375rem; min-height: 44px; } }

/* Das Haus: Satz, der beim Scrollen hell wird */
.haus { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 5vw, 90px); align-items: end; padding: clamp(100px, 14vw, 200px) var(--rand) clamp(80px, 11vw, 160px); background: var(--nebel); }
.haus-text { max-width: 20ch; align-self: start; font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: 1.06; font-weight: 500; letter-spacing: -.035em; }
.haus-text .wort { opacity: .16; }
.haus-bild { margin: 0; }
.haus-bild .u-rahmen { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .haus { grid-template-columns: 1fr; } .haus-bild .u-rahmen { aspect-ratio: 5 / 4; } }

.abschnitt-kopf { max-width: 900px; }
.abschnitt-kopf h2 { font-size: clamp(2.6rem, 6.5vw, 6rem); line-height: .95; }
.abschnitt-kopf p { margin-top: 16px; max-width: 48ch; color: var(--fels-2); font-size: 1.125rem; }

/* Zimmer: Karten, eine klappt gross auf */
.zimmer { padding: clamp(60px, 9vw, 120px) var(--rand); background: var(--firn); }
.zimmer-reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin-top: clamp(34px, 5vw, 60px); }
.zimmer-reihe.offen { grid-template-columns: 1fr; }
.z-karte { position: relative; display: grid; grid-template-rows: auto 1fr; border: 0; padding: 0; text-align: left; background: var(--nebel); border-radius: 6px; overflow: hidden; cursor: pointer; color: inherit; }
.z-karte img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--aus); }
@media (hover: hover) and (pointer: fine) { .z-karte:not(.gross):hover img { transform: scale(1.04); } }
.z-karte .z-text { padding: 20px 22px 22px; display: grid; gap: 6px; }
.z-karte h3 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); line-height: 1; }
.z-karte .z-preis { font-weight: 600; font-variant-numeric: tabular-nums; }
.z-karte .z-mehr { display: none; }
.zimmer-reihe.offen .z-karte:not(.gross) { display: none; }
.z-karte.gross { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto; cursor: default; }
.z-karte.gross img { aspect-ratio: auto; height: 100%; min-height: 420px; }
.z-karte.gross .z-text { align-content: center; padding: clamp(24px, 4vw, 54px); gap: 12px; }
.z-karte.gross h3 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
.z-karte.gross .z-mehr { display: grid; gap: 12px; }
.z-fakten { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; padding: 0; list-style: none; }
.z-fakten li { padding: 5px 10px; border-radius: 4px; background: var(--firn); font-size: .875rem; }
.z-aktionen { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 8px; }
.z-zurueck { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 860px) {
  .zimmer-reihe { grid-template-columns: 1fr; }
  .z-karte.gross { grid-template-columns: 1fr; }
  .z-karte img, .z-karte.gross img { min-height: 0; aspect-ratio: 4 / 3; }
}

.u-rahmen { overflow: hidden; border-radius: 6px; }
.u-rahmen img { width: 100%; height: 118%; object-fit: cover; }
.haus-bild figcaption { margin-top: 14px; max-width: 40ch; color: var(--fels-2); }
.haus-bild figcaption b { display: block; color: var(--fels); font-family: var(--titel); font-size: 1.5rem; letter-spacing: -.02em; }

/* Anfrage */
.anfrage { padding: clamp(80px, 11vw, 150px) var(--rand); background: var(--fels); color: var(--firn); }
.anfrage .abschnitt-kopf p { color: #c4cbc6; }
.anfrage-raster { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(34px, 5vw, 60px); align-items: start; }
@media (max-width: 960px) { .anfrage-raster { grid-template-columns: 1fr; } }
.kalender-block { background: #2f3431; border-radius: 6px; padding: clamp(18px, 2.5vw, 28px); }
.zimmer-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.zimmer-wahl button { border: 1.5px solid #59615c; background: transparent; border-radius: 4px; padding: 9px 14px; cursor: pointer; font-weight: 600; }
.zimmer-wahl button small { font-weight: 400; opacity: .7; margin-left: 6px; }
.zimmer-wahl button[aria-checked="true"] { background: var(--firn); color: var(--fels); border-color: var(--firn); }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kal-kopf button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 1.3rem; }
.kal-kopf button:hover { background: #3b413e; }
.kal-monate { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 620px) { .kal-monate { grid-template-columns: 1fr; } .kal-monat + .kal-monat { display: none; } }
.kal-monat b { display: block; margin-bottom: 8px; font-family: var(--titel); font-size: 1.2rem; letter-spacing: -.02em; }
.kal-tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; }
.kal-tage .wt { font-size: .6875rem; font-weight: 700; color: #a9b1ac; padding: 4px 0; }
.kal-tage button { height: 42px; border: 0; background: transparent; cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600; position: relative; }
.kal-tage button:disabled { color: #626a65; cursor: default; font-weight: 400; }
.kal-tage button.belegt { color: #7d857f; text-decoration: line-through; }
.kal-tage button.im-bereich { background: rgb(227 160 82 / .22); }
.kal-tage button.anfang, .kal-tage button.ende { background: var(--lampe); color: var(--fels); border-radius: 50%; }
.kal-tage button:not(:disabled):not(.anfang):not(.ende):hover { background: #3b413e; border-radius: 50%; }
.kal-legende { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 16px; font-size: .8125rem; color: #c4cbc6; align-items: center; }
.kal-tage button.anfang { border-radius: 50% 0 0 50%; }
.kal-tage button.ende { border-radius: 0 50% 50% 0; }
.kal-legende span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -10px; }
.l-frei { background: var(--firn); } .l-belegt { background: #626a65; } .l-wahl { background: var(--lampe); }

.anfrage-blatt, .danke { background: var(--firn); color: var(--fels); border-radius: 6px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; }
.blatt-bild { position: relative; margin: calc(-1 * clamp(22px, 3vw, 32px)) calc(-1 * clamp(22px, 3vw, 32px)) 4px; overflow: hidden; border-radius: 6px 6px 0 0; aspect-ratio: 16 / 7; background: var(--fels-2); }
.blatt-bild[hidden] { display: none; }
.blatt-bild img { width: 100%; height: 100%; object-fit: cover; }
.blatt-bild figcaption { position: absolute; left: 16px; bottom: 12px; color: var(--firn); font: 700 1.6rem/1 var(--titel); letter-spacing: -.03em; text-shadow: 0 2px 16px rgb(20 24 22 / .55); }
.blatt-bild::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(20 24 22 / .55)); pointer-events: none; }
.blatt-bild figcaption { z-index: 1; }
.auswahl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--belegt); }
.auswahl dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--stein); }
.auswahl dd { margin: 2px 0 0; font-weight: 600; }
.gaeste { display: flex; justify-content: space-between; align-items: center; }
.zaehler { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--belegt); border-radius: 4px; }
.zaehler button { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; }
.zaehler output { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.summe { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--belegt); border-bottom: 1px solid var(--belegt); }
.summe b { font-family: var(--titel); font-size: 1.8rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.anfrage-blatt label { display: grid; gap: 5px; font-size: .875rem; font-weight: 600; }
.anfrage-blatt label small { font-weight: 400; color: var(--stein); }
.anfrage-blatt input, .anfrage-blatt textarea { width: 100%; border: 1.5px solid var(--belegt); border-radius: 4px; background: #fff; padding: 11px 12px; font-size: 1rem; }
.anfrage-blatt input:focus, .anfrage-blatt textarea:focus { outline: none; border-color: var(--tanne); }
.anfrage-blatt [aria-invalid="true"] { border-color: #b3261e; background: #fbeceb; }
.meldung { color: #9e2a20; font-weight: 600; min-height: 1.2em; }
.danke[hidden] { display: none; }
.danke h3 { font-size: clamp(2rem, 4vw, 3rem); }

.fuss { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding: 60px var(--rand) 70px; background: var(--firn); font-size: .9375rem; color: var(--fels-2); }
.fuss .marke { color: var(--fels); margin-bottom: 14px; }
.fuss p + p { margin-top: 12px; }
@media (max-width: 800px) { .fuss { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .nebel { display: none; }
  .tal { height: auto; }
  .tal-buehne { position: relative; }
  .tal-zeile { position: static; translate: none; opacity: 1; margin-bottom: 18px; }
  .tal-texte { top: 22%; translate: none; }
  p.tal-zeile { display: none; }
  .haus-text .wort { opacity: 1; }
}
