/* OMBRA · Camping (Beispiel) · lp-297
   Signatur: der Schatten einer Pinienkrone wandert über einen Stellplatz (von oben), 7 bis 22 Uhr am Scroll.
   Schrift: Kanit (OFL), lokal. Farben: Sand, Pinie, Schirm-Rot. */

@font-face { font-family: "Kanit"; src: url("../fonts/kanit-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("../fonts/kanit-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("../fonts/kanit-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("../fonts/kanit-800i.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --sand: #f1e8d8;
  --sand-2: #e7d9bf;
  --pinie: #12302d;
  --pinie-2: #1f4540;
  --rot: #cf2430;
  --rot-dunkel: #a91b25;
  --tinte: #14231f;
  --leise: #4b5a55;
  --nacht: #0c1722;

  /* Schrift-Ordnung: fünf Größen */
  --s-klein: clamp(0.82rem, 0.78rem + 0.15vw, 0.9rem);
  --s-text: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --s-mittel: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
  --s-titel: clamp(2rem, 1.4rem + 2.6vw, 4.2rem);
  --s-riese: min(28.5vw, 50vh);

  --rand: clamp(1rem, 4vw, 3.5rem);
  --luft: clamp(4rem, 9vw, 9rem);
  --ecke: 6px;
  --zug: cubic-bezier(.22, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--tinte);
  font: 400 var(--s-text)/1.55 "Kanit", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: break-word; line-height: 1.02; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
.rand { width: min(100% - 2 * var(--rand), 1600px); margin-inline: auto; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--pinie); color: #fff; padding: .7rem 1rem; border-radius: var(--ecke); }
.sprung:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.5rem;
  background: var(--rot); color: #fff; text-decoration: none; font-weight: 600; font-size: var(--s-text);
  border: 0; border-radius: 999px; cursor: pointer; transition: background .2s, transform .2s var(--zug);
}
.knopf:hover { background: var(--rot-dunkel); transform: translateY(-2px); }
.knopf:active { transform: translateY(0) scale(.98); }
.knopf-klein { min-height: 44px; padding: .5rem 1.1rem; font-size: var(--s-klein); }

/* Kopfzeile */
.leiste {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem var(--rand); color: var(--pinie); transition: color .5s, background .5s;
}
.leiste:not(.fest) .leiste-nav a, .leiste:not(.fest) .marke { text-shadow: 0 0 10px rgba(241, 232, 216, .9); }
.leiste.nacht { color: #f6efe2; }
.leiste.nacht .leiste-nav a, .leiste.nacht .marke { text-shadow: 0 0 10px rgba(12, 23, 34, .9); }
.leiste.fest { background: rgba(241, 232, 216, .94); color: var(--pinie); box-shadow: 0 1px 0 rgba(18, 48, 45, .12); }
.marke { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; letter-spacing: .06em; text-decoration: none; min-height: 44px; }
.marke small { font-weight: 400; font-size: var(--s-klein); letter-spacing: 0; opacity: .8; margin-left: .2rem; }
.marke-zapfen { width: 18px; height: 22px; background: currentColor; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; }
.leiste-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.leiste-nav a { text-decoration: none; font-weight: 600; font-size: var(--s-klein); min-height: 44px; display: inline-flex; align-items: center; }
.leiste-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Kopf: die Bühne mit dem wandernden Schatten */
.bahn { position: relative; height: 420vh; background: var(--sand); }
.buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.platz { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.platz-nacht { opacity: 0; }
.schatten {
  position: absolute; left: -30%; top: -30%; width: 160%; height: 160%; pointer-events: none;
  transform: translate3d(9%, -4%, 0) rotate(-14deg) scale(1.15, 1.08);   /* = Stand 7:00, das Skript übernimmt ihn genau */
  opacity: .8; will-change: transform, opacity;
}
.schatten img { width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease-out; }
html.js .schatten:not(.da) img { opacity: 0; }
.licht { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.licht-frueh { background: linear-gradient(110deg, rgba(255, 196, 120, .5), rgba(255, 225, 160, .15)); opacity: .55; }
.licht-abend { background: linear-gradient(290deg, rgba(255, 140, 40, .55), rgba(255, 90, 60, .2)); }

.uhr {
  position: absolute; right: var(--rand); top: clamp(5rem, 11vh, 7rem); text-align: right; color: var(--pinie);
  transition: color .6s;
}
.uhr-zeit { display: flex; flex-direction: column; align-items: flex-end; line-height: .9; }
.z-zeit { font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5.4rem); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.z-wort { font-weight: 800; font-style: italic; font-size: var(--s-mittel); color: var(--rot); margin-top: .35rem; }
.uhr-werte, .uhr-anteil { text-shadow: 0 0 10px rgba(241, 232, 216, .95), 0 0 2px rgba(241, 232, 216, .9); }
.bahn.nacht .uhr-werte, .bahn.nacht .uhr-anteil { text-shadow: 0 0 10px rgba(12, 23, 34, .95); }
.uhr-werte { display: flex; gap: 1rem; justify-content: flex-end; margin-top: .7rem; font-size: var(--s-klein); }
.uhr-werte b, .uhr-anteil b { font-weight: 800; font-size: 1.15em; font-variant-numeric: tabular-nums; }
.uhr-anteil { margin-top: .2rem; font-size: var(--s-klein); }

.kapitel {
  list-style: none; margin: 0; padding: 0; position: absolute; left: var(--rand); top: clamp(5.5rem, 12vh, 8rem);
  width: min(30rem, 42vw); display: grid; color: var(--pinie);
}
.kapitel li {
  grid-area: 1 / 1; font-size: var(--s-mittel); font-weight: 600; line-height: 1.3;
  opacity: 0; transform: translateY(.8rem); transition: opacity .6s var(--zug), transform .6s var(--zug);
  text-shadow: 0 0 18px rgba(241, 232, 216, .9), 0 0 4px rgba(241, 232, 216, .9);
}
.kapitel li.aktiv { opacity: 1; transform: none; }

.kopf-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--rand); color: var(--pinie); transition: color .6s; }
.kopf-satz {
  max-width: 34rem; font-size: var(--s-text); font-weight: 600; line-height: 1.4;
  text-shadow: 0 0 16px rgba(241, 232, 216, .95), 0 0 3px rgba(241, 232, 216, .9);
}
.kopf-handlung { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.knopf-satz { font-size: var(--s-klein); max-width: 19rem; line-height: 1.35; text-shadow: 0 0 12px rgba(241, 232, 216, .95); }
.riesenwort {
  font-size: var(--s-riese); font-weight: 800; line-height: .82; letter-spacing: -0.035em;
  margin: .06em 0 0 -.05em; padding-bottom: clamp(.6rem, 2.2vh, 1.4rem); white-space: nowrap;
}
.bahn.nacht .kopf-text, .bahn.nacht .uhr, .bahn.nacht .kapitel { color: #f6efe2; }
.bahn.nacht .kapitel li, .bahn.nacht .kopf-satz, .bahn.nacht .knopf-satz { text-shadow: 0 0 16px rgba(12, 23, 34, .95), 0 0 3px rgba(12, 23, 34, .9); }
.bahn.nacht .z-wort { color: #ffb15c; }

/* Wohnen */
.titel { font-size: var(--s-titel); max-width: 20ch; }
.titel em { display: block; font-style: italic; color: var(--rot); }
.vorspann { max-width: 38rem; margin-top: 1.2rem; color: var(--leise); font-size: var(--s-mittel); line-height: 1.45; }
.wohnen { padding: var(--luft) 0; }
.wohnart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; margin-top: clamp(4rem, 8vw, 8rem); }
.wa-bild { position: relative; margin: 0; overflow: hidden; grid-row: 1; aspect-ratio: 16 / 9; }
.wa-bild > img { width: 100%; height: 100%; object-fit: cover; }
.wa-links .wa-bild { grid-column: 1 / 10; }
.wa-rechts .wa-bild { grid-column: 4 / 13; }
.wa-text {
  grid-row: 1; position: relative; z-index: 2; background: var(--sand); padding: clamp(1.4rem, 2.6vw, 2.6rem);
  margin-bottom: clamp(-3rem, -4vw, -1.5rem);
}
.wa-links .wa-text { grid-column: 9 / 13; margin-right: var(--rand); }
.wa-rechts .wa-text { grid-column: 1 / 5; margin-left: var(--rand); }
.wa-nr { font-weight: 800; font-style: italic; color: var(--rot); font-size: var(--s-mittel); }
.wa-text h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.9rem); margin: .2rem 0 .8rem; }
.wa-text p + p { margin-top: .8rem; }
.messung { display: flex; align-items: center; gap: .8rem; font-size: var(--s-klein); }
.messung b { font-size: 1.25em; font-weight: 800; }
.messung-balken { position: relative; flex: 0 0 7rem; height: 12px; background: #f9d24a; border-radius: 99px; overflow: hidden; }
.messung-balken span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--pinie); border-radius: 99px; transition: width 1.4s var(--zug); }
.wa-preis { font-weight: 600; }

/* Ein Tag: Band fährt seitwärts */
.tag { position: relative; height: 380vh; background: var(--pinie); color: var(--sand); }
.tag-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(1rem, 3vh, 2.5rem); }
.tag-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 3.5rem; }
.tag-uhr { font-weight: 800; font-size: clamp(2.4rem, 1.5rem + 3vw, 4.8rem); font-variant-numeric: tabular-nums; color: #ffb15c; line-height: 1; }
.tag-band { display: flex; gap: clamp(1rem, 3vw, 3rem); padding-left: var(--rand); width: max-content; will-change: transform; }
.tag-bild { margin: 0; width: min(46vw, 78vh); flex: none; }
.tag-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ecke); }
.tag-bild figcaption { margin-top: 1rem; max-width: 30rem; font-size: var(--s-text); line-height: 1.4; }
.tag-bild figcaption b { color: #ffb15c; font-weight: 800; margin-right: .3rem; }
.tag-ende { flex: none; width: min(38vw, 32rem); align-self: center; padding-right: var(--rand); }
.zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; margin: 0; }
.zahlen div { border-top: 2px solid rgba(241, 232, 216, .3); padding-top: .6rem; }
.zahlen dt { font-size: var(--s-klein); opacity: .8; }
.zahlen dd { margin: 0; font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.8rem); line-height: 1; }
.tag-ende > p { margin-top: 1.5rem; font-size: var(--s-klein); opacity: .7; }

/* Preise */
.preise { padding: var(--luft) 0; }
.tabelle-rahmen { margin-top: 2.5rem; overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; min-width: 34rem; }
.tabelle th, .tabelle td { text-align: left; padding: 1.1rem .8rem 1.1rem 0; border-bottom: 1px solid rgba(18, 48, 45, .2); vertical-align: top; }
.tabelle thead th { font-size: var(--s-klein); font-weight: 600; color: var(--leise); }
.tabelle tbody th { font-weight: 600; }
.tabelle td { font-weight: 800; font-size: var(--s-mittel); font-variant-numeric: tabular-nums; }
.tabelle td:last-child { font-weight: 400; font-size: var(--s-text); }
.fragen { margin-top: clamp(3rem, 6vw, 5rem); max-width: 52rem; }
.fragen details { border-bottom: 1px solid rgba(18, 48, 45, .2); }
.fragen summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; font-size: var(--s-mittel); list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; color: var(--rot); font-weight: 800; transition: transform .3s var(--zug); }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { padding: 0 0 1.3rem; max-width: 44rem; color: var(--leise); }

/* Anfrage */
.anfrage { padding: var(--luft) 0; background: var(--sand-2); scroll-margin-top: 4rem; }
.anfrage-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.wahl-bild { position: relative; margin: 2.5rem 0 0; overflow: hidden; border-radius: var(--ecke); aspect-ratio: 16 / 10; }
.wahl-bild > img { width: 100%; height: 100%; object-fit: cover; }
.formular { display: grid; gap: 1.1rem; }
.wahl { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.wahl legend { font-weight: 600; margin-bottom: .6rem; padding: 0; }
.wahl label { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border: 2px solid var(--pinie); border-radius: 99px; font-weight: 600; cursor: pointer; }
.wahl input:checked + span { background: var(--pinie); color: var(--sand); }
.wahl input:focus-visible + span { outline: 3px solid var(--rot); outline-offset: 3px; }
.feld { display: grid; gap: .35rem; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.feld label { font-weight: 600; font-size: var(--s-klein); }
.leise { font-weight: 400; color: var(--leise); }
.feld input, .feld select, .feld textarea {
  font: inherit; color: var(--tinte); background: #fffaf1; border: 1.5px solid rgba(18, 48, 45, .35); border-radius: var(--ecke);
  padding: .65rem .8rem; min-height: 48px; width: 100%;
}
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--pinie); outline: 2px solid var(--pinie); outline-offset: 1px; }
.feld input[aria-invalid="true"] { border-color: var(--rot); }
.feld-fehler { color: var(--rot-dunkel); font-size: var(--s-klein); min-height: 1em; }
.haken { display: flex; align-items: center; gap: .6rem; min-height: 48px; font-weight: 600; cursor: pointer; }
.haken input { width: 22px; height: 22px; accent-color: var(--pinie); }
.formular .knopf { justify-self: start; }
.formular-meldung { font-weight: 600; min-height: 1.5em; }
.formular-meldung:focus { outline: none; }

/* Fuß */
.fuss { background: var(--pinie); color: var(--sand); padding: clamp(3rem, 6vw, 5rem) 0 2.5rem; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 2rem; align-items: start; }
.fuss a { text-underline-offset: 3px; }
.fuss p { line-height: 1.8; }
.zeichen-liste { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.zeichen-link { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; }
.zeichen-link:hover { background: rgba(241, 232, 216, .12); }
.zeichen { width: 20px; height: 20px; }
.fuss-klein { grid-column: 1 / -1; font-size: var(--s-klein); opacity: .75; border-top: 1px solid rgba(241, 232, 216, .2); padding-top: 1.2rem; }

/* Rechtliches */
.recht { width: min(100% - 2 * var(--rand), 50rem); margin: 0 auto; padding: 7rem 0 5rem; }
.recht h1 { font-size: var(--s-titel); }
.recht h2 { font-size: var(--s-mittel); margin: 2.5rem 0 .8rem; }
.recht dl { display: grid; grid-template-columns: 10rem 1fr; gap: .4rem 1rem; }
.recht dd { margin: 0; }
.recht p + p { margin-top: .8rem; }
.hinweis-kasten { margin-top: 1.5rem; background: var(--sand-2); padding: 1rem 1.2rem; border-radius: var(--ecke); }
.recht-seite .leiste { background: var(--sand); }

/* Startbild ohne Springen: bis zum ersten Zeichnen nur der erste Bildschirm */
html.js:not(.bereit) .kapitel li:not(:first-child) { visibility: hidden; }

/* Ohne Bewegung: kein Anheften, alles steht untereinander */
html:not(.bewegt) .bahn { height: auto; }
html:not(.bewegt) .buehne { position: relative; height: 100vh; height: 100svh; }
html:not(.bewegt) .tag { height: auto; padding: var(--luft) 0; }
html:not(.bewegt) .tag-buehne { position: static; height: auto; }
html:not(.bewegt) .tag-band { width: auto; flex-wrap: wrap; padding-right: var(--rand); }
html:not(.bewegt) .tag-bild { width: min(100%, 36rem); }
html:not(.bewegt) .messung-balken span, html:not(.js) .messung-balken span { transition: none; }
html:not(.js) .messung-balken span { width: 50%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* Handy und flache Fenster */
@media (max-width: 860px) {
  .leiste-nav { display: none; }
  .leiste .knopf-klein { margin-left: auto; }
  .marke small { display: none; }
  .uhr { top: 4.6rem; }
  .uhr-werte { flex-direction: column; gap: 0; align-items: flex-end; }
  .kapitel { top: auto; bottom: calc(var(--s-riese) * .82 + 9.5rem); width: auto; right: var(--rand); }
  .kopf-satz { display: none; }
  .tag-bild img { aspect-ratio: 4 / 5; max-height: 52vh; }
  .kapitel li { font-size: var(--s-text); }
  .kopf-satz { font-size: var(--s-klein); }
  .wohnart { display: block; margin-top: 3.5rem; }
  .wa-text { margin: -2.5rem var(--rand) 0 !important; }
  .tag-bild { width: 80vw; }
  .tag-ende { width: 80vw; }
  .anfrage-raster { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr; }
}
@media (max-width: 860px) and (max-height: 700px), (max-height: 560px) {
  .kapitel { display: none; }
  .uhr-werte, .uhr-anteil { display: none; }
  .kopf-satz { display: none; }
  .tag-bild figcaption { font-size: var(--s-klein); margin-top: .5rem; }
  .tag-bild { width: min(46vw, 62vh); }
}
@media (max-height: 560px) { .tag-kopf { padding-top: 3rem; } .tag-kopf .titel { font-size: var(--s-mittel); } }
.knopf:disabled { opacity: .55; cursor: wait; transform: none; }
