/* ==========================================================================
   Fuß (partials/12-footer.html, modules/footer.js) + mobile Buchungsleiste
   ========================================================================== */

.site-footer {
  position: relative;
  isolation: isolate;
  padding-top: var(--section-y);
  padding-bottom: calc(var(--s-7) + var(--mobile-bar-h) + var(--safe-bottom));
  overflow: clip;
}

/* ---- Abschluss-CTA mit Faden-Knoten ---------------------------------------- */
.footer-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: var(--s-5);
  padding-block: var(--s-4) var(--section-y-tight);
  text-align: center;
}
.footer-cta__title { max-width: 16ch; }
.footer-cta__title em { color: var(--c-narzisse); }
.footer-cta__lead { max-width: 40ch; color: var(--fg-2); }
.footer-cta__action {
  position: relative;
  margin-top: var(--s-4);
  padding: 22px 34px;
}
.footer-cta__btn { position: relative; z-index: 1; }
.footer-cta__selection {
  min-height: 3em;                   /* zwei Zeilen reserviert – kein Springen beim Füllen */
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.footer-cta__sel-line { display: block; }
.footer-cta__selection strong { color: var(--fg); font-weight: 600; }
.footer-cta__phone { font-size: var(--step--1); color: var(--fg-2); }
.footer-cta__phone a { color: var(--fg); }

/* Faden vom Rand bis zum Knoten (Pfad baut footer.js); liegt unter dem Text.
   Das kreuzende Stück des Knotens liegt darüber (faden--ueber) – mit einem Hof in
   Flächenfarbe, der den unteren Strang an der Kreuzung unterbricht. */
.footer-faden { position: absolute; inset: 0; z-index: -1; overflow: visible; }
.footer-faden--ueber { z-index: 2; pointer-events: none; }
.footer-knot { transform-box: view-box; }
.footer-faden .footer-knot__halo {
  fill: none;
  stroke: var(--bg);
  stroke-width: 5px;
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
}
.footer-faden .footer-knot__over { stroke-linecap: butt; }
.footer-faden .footer-knot__tail { stroke-width: 1px; opacity: .9; }

/* ---- Riesiges Webetikett ----------------------------------------------------- */
.footer-label {
  container-type: inline-size;
  display: flex;
  justify-content: center;
  padding: var(--s-fluid-md) var(--margin);
  border-block: 1px solid var(--line);
}
.footer-label .woven-label { --wl-bg: var(--c-linen); }
/* Wortmarke: ruhig statt rund – Fraunces opsz 144, wght 400, SOFT 60, WONK 1, eng gesetzt */
.footer-label .woven-label__name {
  --wght: 400;
  --soft: 60;
  --wonk: 1;
  /* „Muster“: 15vw (max. 20rem). Lange Wortmarken schrumpfen, bis sie in EINER Zeile
     in die Etikettbreite passen (100cqi = Innenbreite des Bands; ≈ .5em je Zeichen
     plus Rand und Kerben) – nie Überlauf, nie ein zweizeiliges Riesenetikett. */
  font-size: min(max(4rem, 15vw), 20rem, calc((100cqi - 4.5rem) / (var(--wordmark-len, 6) * .56 + .9)));
  white-space: nowrap;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 144, "SOFT" var(--soft), "WONK" var(--wonk);
  letter-spacing: -.03em;
}
/* „HOTEL · MONSCHAU“ als zweite, eingewebte Zeile (eigenes Band mit Stichen) */
.footer-label .woven-label__descriptor {
  display: block;
  margin-top: .15em;
  padding: .7em 1.6em .66em 1.9em;
  border-block: 1px dashed rgb(138 47 36 / .6);
  background: rgb(35 31 28 / .05);
  font-size: clamp(.75rem, .45rem + .75vw, 1.25rem);
  letter-spacing: .44em;
  color: var(--c-ink-2);
}

/* ---- Spalten ----------------------------------------------------------------- */
.footer-main { padding-block: var(--s-fluid-lg) var(--s-fluid-md); }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-7) var(--gutter);
}
@media (min-width: 1024px) {
  .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer-col__title { margin-bottom: var(--s-4); color: var(--c-senf); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--s-1); }
.footer-col a, .footer-col address > * { font-size: var(--step--1); }
.footer-col a:not(.link) {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--fg);
  text-decoration: none;
  background-image: repeating-linear-gradient(90deg, var(--faden) 0 6px, transparent 6px 9px);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 10px);
  background-size: 0% 1.5px;
  transition: background-size 320ms var(--ease-out);
}
@media (hover: hover) {
  .footer-col a:not(.link):hover { background-size: 100% 1.5px; }
}
.footer-col a:not(.link):focus-visible { background-size: 100% 1.5px; }
@media (pointer: fine) {
  /* Maus: kompaktere Zeilen (Ziel ≥ 24 px, WCAG 2.5.8); Touch behält 44 px */
  .footer-col a:not(.link) { min-height: 2rem; background-position: 0 calc(100% - 4px); }
  .footer-col ul { gap: var(--s-2); }
}
.footer-col address { display: grid; gap: var(--s-1); color: var(--fg-2); line-height: 1.6; }

/* ---- Bildnachweis ------------------------------------------------------------ */
.credits {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: auto 80px;
}
.credits__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 64px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: var(--step--1);
}
.credits__summary::-webkit-details-marker { display: none; }
.credits__summary .icon { transition: transform var(--d-3) var(--ease-out); }
.credits[open] .credits__summary .icon { transform: rotate(45deg); }
.credits__body { padding-bottom: var(--s-7); font-size: var(--step--2); color: var(--fg-2); line-height: 1.55; }
.credits__intro { max-width: 72ch; margin-bottom: var(--s-5); }
.credits__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-4) var(--gutter);
}
@media (min-width: 768px) { .credits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .credits__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.credits__item { display: grid; gap: .15rem; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.credits__caption { color: var(--fg); font-weight: 500; }
.credits__meta a, .credits__other a { color: inherit; text-underline-offset: .2em; }
.credits__other { list-style: none; padding: 0; margin-top: var(--s-6); display: grid; gap: var(--s-2); }

/* ---- Unterste Zeile ------------------------------------------------------------ */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  padding-top: var(--s-6);
  font-size: var(--step--2);
  color: var(--fg-2);
}
.footer-bottom__legal { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-bottom__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.footer-bottom__joy {
  --wght: 340; --soft: 100; --wonk: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step--1);
  font-weight: var(--wght);
  font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk);
  color: var(--fg);
}
/* Schalter „Bewegung reduzieren“ */
.switch {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: var(--tap);
  color: var(--fg);
  font-size: var(--step--2);
  font-weight: 500;
}
.switch__track {
  position: relative;
  width: 36px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  transition: background-color var(--d-2) var(--ease-out);
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
  transition: transform var(--d-2) var(--ease-out);
}
.switch[aria-checked="true"] .switch__track { background-color: var(--c-narzisse); border-color: var(--c-narzisse); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(16px); background: var(--c-ink); }
.to-top { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); color: var(--fg); text-decoration: none; font-weight: 500; }
.to-top .icon { width: 1.1rem; height: 1.1rem; transform: rotate(-90deg); }

/* ==========================================================================
   Mobile Buchungsleiste (#mobile-booking) mit Fortschrittsfaden (#mobile-progress)
   ========================================================================== */
.mobile-booking {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: calc(var(--mobile-bar-h) + var(--safe-bottom));
  padding: 7px var(--margin) calc(7px + var(--safe-bottom));
  background-color: rgb(245 239 228 / .94);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
          backdrop-filter: blur(12px) saturate(1.1);
  color: var(--c-ink);
  box-shadow: 0 -1px 0 var(--c-line), 0 -12px 32px -16px rgb(35 31 28 / .25);
  transform: translate3d(0, 110%, 0);
  transition: transform var(--d-3) var(--ease-out);
  --focus: var(--c-krapp);
  --cta-bg: var(--c-krapp);
  --cta-fg: var(--c-paper);
  --cta-bg-hover: var(--c-krapp-deep);
  --fg: var(--c-ink);
  --fg-2: var(--c-ink-2);
}
.mobile-booking.is-visible { transform: none; }
html:not(.js) .mobile-booking { display: none; }
@media (min-width: 1024px) {
  .mobile-booking { display: none; }
}
.mobile-booking__summary {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0;
  min-height: var(--tap);
  align-content: center;
  text-align: left;
  color: inherit;
  text-decoration: none;
}
/* Kapitel des Tages (folgt dem Tagesbogen): „MORGEN · FRÜHSTÜCK“ – 14 + 20 + 16 px = 50 px */
.mobile-booking__chapter {
  display: block;
  min-height: 14px;
  font-size: .6875rem;
  font-weight: 600;
  font-stretch: 85%;
  font-variation-settings: "wdth" 85;
  line-height: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-booking__chapter:empty { display: none; }
.mobile-booking__dates {
  line-height: 20px;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 420;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-booking__meta { font-size: var(--step--2); line-height: 16px; color: var(--c-ink-2); white-space: nowrap; }
.mobile-booking__btn { flex: none; }
/* Fortschrittsfaden oben an der Leiste */
.mobile-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  pointer-events: none;
}
.mobile-progress__bar {
  position: absolute;
  inset: 0;
  background: var(--c-krapp);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}
.mobile-progress__bar::after {
  /* Nadelöhr am Fadenende */
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-krapp);
  transform: scaleX(calc(1 / max(var(--progress, 1), .02)));
}
