/* Pension: Live-Plakette der Rezeption, Fussblock Rezeption und Anreise, Fruehstueck, Sauna, Anreise.
   Farben nur aus den Variablen des Themas. Breakpoints 490, 768, 1040. Bewegung nur bei prefers-reduced-motion: no-preference. */

/* ---------- Startbild: Plakette der Rezeption, groesser und ruhig schwebend ---------- */
.status[data-status="rezeption"] {
  gap: 2px 0; padding: 12px 22px 12px 16px; border-radius: 18px;
  background: rgb(var(--thema-tiefer-rgb, 10 31 53) / 0.86);
  border: 1px solid rgb(var(--thema-gold-rgb, 180 134 63) / 0.6);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 2px 6px rgb(0 0 0 / 0.25), 0 22px 44px -18px rgb(0 0 0 / 0.75);
  font-size: 1.125rem;
}
/* Als Textblock statt Flex-Reihe: am Handy bricht der Satz an Wortgrenzen um, nicht vor dem Mittelpunkt */
.status[data-status="rezeption"]:not([hidden]) { display: block; inline-size: fit-content; max-inline-size: 100%; }
.status[data-status="rezeption"] .status__punkt { display: inline-block; vertical-align: 0.05em; }
.status[data-status="rezeption"] .status__zeile2 { white-space: normal; }
.status[data-status="rezeption"] .status__zeile1 { font: 600 1.25rem / 1.3 var(--f-anzeige); letter-spacing: 0.005em; color: #FFFDF8; }
.status[data-status="rezeption"] .status__zeile2 { color: #F3E6CC; }
.status[data-status="rezeption"] .status__punkt { inline-size: 12px; block-size: 12px; margin-inline-end: 12px; box-shadow: 0 0 0 3px rgb(123 224 164 / 0.22); }
.status[data-status="rezeption"][data-art="zu"] .status__punkt { box-shadow: 0 0 0 3px rgb(240 167 154 / 0.22); }
@media (max-width: 489.98px) {
  .status-reihe > .status[data-status="rezeption"] { padding: 9px 14px 9px 12px; font-size: 1rem; border-radius: 14px; }
  .status[data-status="rezeption"] .status__zeile1 { font-size: 1.0625rem; }
}

/* ---------- Fuss: Rezeption und Anreise als eigener Block ---------- */
.zp-fuss { gap: var(--a-5); }
.zp-fuss__kopf { display: grid; gap: var(--a-2); }
.zp-fuss__live { display: inline-flex; align-items: center; gap: var(--a-2); margin: 0; font: 600 0.875rem / 1.3 var(--f-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--holz, #6B4528); }
.zp-fuss__punkt { inline-size: 9px; block-size: 9px; border-radius: 50%; background: #1E7A45; box-shadow: 0 0 0 3px rgb(30 122 69 / 0.18); }
.zp-fuss .fuss__titel2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--thema-tief, #112F4D); }
.zp-fuss .oeffnung { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.zp-fuss .opening-day { padding: var(--a-4) var(--a-5); border-radius: 18px; }
.zp-fuss .opening-day-label strong { font-size: 1.0625rem; }
.zp-fuss .opening-phrase { font: 500 1.375rem / 1.3 var(--f-anzeige); color: var(--thema-tief, #112F4D); }
.zp-fuss .opening-status { font-size: 1rem; }
.zp-fuss__anreise { display: grid; gap: var(--a-3); align-content: start; padding: var(--a-5); border-radius: 20px;
  background: var(--thema-gold-flaeche, #F1EADB); border: 1px solid var(--thema-gold-rand, #DCCBA6); box-shadow: var(--schweben); }
.zp-fuss__anreise:not(:has(.fuss__zeitsatz:not([hidden]))) { display: none; }
.zp-fuss__anreise .fuss__zeitsatz { max-inline-size: 52ch; color: var(--tinte); }
.zp-fuss__anreise [data-zeiten-satz="anreise"] { font: 600 1.125rem / 1.4 var(--f-text); color: var(--thema-tief, #112F4D); }
@media (min-width: 768px) {
  .zp-fuss { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; column-gap: var(--a-6); }
  .zp-fuss__kopf { grid-column: 1 / -1; }
}

/* ---------- Fruehstueck und Sauna: Foto und Text als Paar, Plakette schwebt ueber dem Foto ---------- */
.zp-haus { background: linear-gradient(180deg, rgb(239 230 214 / 0) 0%, rgb(239 230 214 / 0.5) 50%, rgb(239 230 214 / 0) 100%); }
.zp-haus--abend { background: linear-gradient(180deg, rgb(var(--thema-gold-rgb, 180 134 63) / 0) 0%, rgb(var(--thema-gold-rgb, 180 134 63) / 0.12) 50%, rgb(var(--thema-gold-rgb, 180 134 63) / 0) 100%); }
.zp-paar { display: grid; gap: var(--a-7); grid-template-columns: minmax(0, 1fr); align-items: center; }
.zp-paar__bild { position: relative; }
.zp-foto { border-radius: 28px; overflow: clip; box-shadow: var(--schweben-foto, var(--schweben-hoch)); background: var(--sand); }
.zp-foto img { display: block; inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.zp-foto--hoch img { aspect-ratio: 4 / 3; object-position: 100% 50%; }
.zp-plakette {
  display: flex; align-items: center; gap: var(--a-3); inline-size: max-content; max-inline-size: calc(100% - 2 * var(--a-4));
  margin: var(--a-3) 0 0 var(--a-3); position: relative; z-index: 2;
  padding: var(--a-3) var(--a-5) var(--a-3) var(--a-4); border-radius: 20px;
  background: var(--papier-verlauf, #FFFDF8); border: 1px solid rgb(var(--thema-gold-rgb, 180 134 63) / 0.45);
  box-shadow: 0 2px 4px rgb(60 40 20 / 0.08), 0 24px 44px -20px rgb(var(--thema-tief-rgb, 17 47 77) / 0.55);
}
.zp-plakette__gross { font: 500 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem) / 1 var(--f-anzeige); color: var(--thema-tief, #112F4D); white-space: nowrap; }
.zp-plakette__klein { font: 500 0.9375rem / 1.35 var(--f-text); color: var(--tinte); }
.zp-plakette--abend { color: #FFFDF8; background: var(--thema-tief, #112F4D); border-color: rgb(var(--thema-gold-rgb, 180 134 63) / 0.7); }
.zp-plakette--abend .zp-plakette__gross { color: var(--thema-gold-hell, #E9D9B4); }
.zp-plakette--abend .zp-plakette__klein { color: #FFFDF8; }
.zp-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a-3); }
.zp-liste li { display: grid; gap: 2px; padding: var(--a-4) var(--a-5); border-radius: 18px; background: var(--papier-verlauf, #FFFDF8);
  border: 1px solid rgb(107 69 40 / 0.1); box-shadow: var(--schweben); border-inline-start: 4px solid var(--thema-gold, #B4863F); }
.zp-liste strong { font-weight: 700; color: var(--thema-tief, #112F4D); }
.zp-liste span { color: var(--tinte-weich); }
@media (min-width: 768px) {
  .zp-plakette { position: absolute; margin: 0; inset-block-end: calc(-1 * var(--a-5)); inset-inline-start: var(--a-4); }
  .zp-paar__bild { margin-block-end: var(--a-5); }
}
@media (min-width: 1040px) {
  .zp-paar { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--a-8); }
  .zp-paar--gedreht .zp-paar__bild { order: 2; }
  .zp-paar--gedreht .zp-plakette { inset-inline-start: auto; inset-inline-end: var(--a-4); }
  .zp-paar--gedreht .zp-foto .ki__marke { inset-inline-end: auto; inset-inline-start: var(--a-4); }
}
@media (min-width: 768px) and (max-width: 1039.98px) {
  .zp-paar--gedreht .zp-plakette { inset-inline-start: auto; inset-inline-end: var(--a-4); }
  .zp-paar--gedreht .zp-foto .ki__marke { inset-inline-end: auto; inset-inline-start: var(--a-4); }
}

/* ---------- Anreise: drei Stationen auf einer gezeichneten Linie ---------- */
.zp-anreise { background: linear-gradient(180deg, rgb(239 230 214 / 0) 0%, rgb(239 230 214 / 0.55) 60%, rgb(239 230 214 / 0) 100%); }
.zp-weg { position: relative; padding-block-start: var(--a-7); }
.zp-weg__linie { display: block; overflow: visible; position: absolute; inset-inline: 2%; inset-block-start: 0; inline-size: 96%; block-size: 40px; color: var(--thema-gold, #B4863F); pointer-events: none; }
.zp-weg__stationen { --fx-takt: 9%; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a-5); grid-template-columns: minmax(0, 1fr); position: relative; }
.zp-station { display: grid; gap: var(--a-2); align-content: start; padding: var(--a-6) var(--a-5) var(--a-5); border-radius: 24px;
  background: var(--papier-verlauf, #FFFDF8); border: 1px solid rgb(107 69 40 / 0.1); box-shadow: var(--schweben-hoch); }
.zp-station[hidden] { display: none; }
.zp-station__zeichen { display: grid; place-items: center; inline-size: 56px; block-size: 56px; margin-block-end: var(--a-2); border-radius: 50%;
  color: var(--thema-tief, #112F4D); background: var(--thema-gold-flaeche, #F1EADB); box-shadow: inset 0 0 0 1px var(--thema-gold-rand, #DCCBA6), 0 10px 20px -12px rgb(var(--thema-tief-rgb, 17 47 77) / 0.6); }
.zp-station__titel { font-size: 1.375rem; }
.zp-station__zeit { margin: 0; min-block-size: 1.2em; font: 500 clamp(1.75rem, 1.45rem + 1.2vw, 2.375rem) / 1.15 var(--f-anzeige); color: var(--thema-tief, #112F4D); }
.zp-station__text { margin: 0; color: var(--tinte-weich); }
.zp-station__text:empty { display: none; }
.zp-anreise__rezeption { margin: var(--a-6) 0 0; font: 600 1.125rem / 1.4 var(--f-text); color: var(--thema-tief, #112F4D); }
.zp-anreise__ersatz { margin: var(--a-5) 0 0; }
.zp-anreise__rezeption[hidden], .zp-anreise__ersatz[hidden] { display: none; }
@media (min-width: 768px) {
  .zp-weg__stationen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zp-weg__linie { inset-inline: 4%; inset-block-start: 8px; inline-size: 92%; block-size: 60px; }
  .zp-weg { padding-block-start: var(--a-8); }
}

/* ---------- Bewegung: aus dem Effektkatalog (Maskenwuchs, Linienzug, Staffel mit Hebung), beide Scrollrichtungen.
   Hebung endet, sobald die Karte ganz im Bild ist, damit gelesener Text nie halb durchsichtig steht. ---------- */
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) and (pointer: fine) {
    .zp-station { transition: translate 500ms var(--kurve), box-shadow 500ms var(--kurve); }
    .zp-station:hover { translate: 0 -4px; box-shadow: 0 2px 4px rgb(60 40 20 / 0.08), 0 40px 70px -26px rgb(60 40 20 / 0.45); }
  }
  @supports (animation-timeline: view()) {
    .fx-maskenwuchs {
      animation-name: fx-maske-k;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    @keyframes fx-maske-k {
      from { clip-path: inset(28% 22% 28% 22% round 16px); }
      to   { clip-path: inset(0 0 0 0 round 0); }
    }
    @media (max-width: 767.98px) {
      .fx-maskenwuchs { animation-name: fx-maske-k-schmal; }
      @keyframes fx-maske-k-schmal {
        from { clip-path: inset(18% 10% 18% 10% round 16px); }
        to   { clip-path: inset(0 0 0 0 round 0); }
      }
    }
    .fx-linienzug {
      stroke-dasharray: 1;
      animation-name: fx-linie-k;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 10% cover 70%;
    }
    @keyframes fx-linie-k {
      from { stroke-dashoffset: 1; }
      to   { stroke-dashoffset: 0; }
    }
    .fx-staffel > * {
      --fx-versatz: calc((sibling-index() - 1) * var(--fx-takt, 7%));
    }
    .fx-hebung {
      animation-name: fx-hebung-k;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    .fx-staffel > .fx-hebung {
      animation-range: entry calc(0% + var(--fx-versatz)) entry calc(80% + var(--fx-versatz));
    }
    @keyframes fx-hebung-k {
      from { transform: translateY(18px) scale(0.985); opacity: 0.25; }
      to   { transform: translateY(0) scale(1);        opacity: 1; }
    }
  }
}
