/* cafe.php: seitenspezifische Regeln (Look-Welle 6, 04.09.2026).
   Nur Tokens aus styles.css, keine harten Farben ausser Text auf Fotos und der WebGL-Szene.
   Aufbau: Hero mit Heute-Karte und zweiter Fotoebene, Zeitenkarte als Karte ueber der
   Hero-Unterkante, drei Kapitel (Dienstag, Freitag, Sonntag mit
   Torten-Schiene), dunkle Abendbahn, Vorgeschmack, Rundgang, Anfahrt. */

/* ---------- Hero ---------- */
.hero-cafe .hero-title {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.9rem);
}
.hero-cafe .kicker {
  color: var(--accent);
}
.hero-bilder {
  position: relative;
  min-width: 0;
}
.page-cafe .hero-photo img {
  aspect-ratio: 16 / 9;
}
/* Zweite Ebene: kleines Nachtfoto, laeuft langsamer als das Hauptbild (data-parallax-layer) */
.hero-photo-nacht {
  display: none;
  position: absolute;
  left: -28px;
  bottom: -30px;
  width: 260px;
  margin: 0;
  border: 4px solid var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
  rotate: -2deg;
  z-index: 2;
}
.hero-photo-nacht img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.hero-photo-nacht figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
@media (min-width: 1024px) {
  .hero-photo-nacht {
    display: block;
  }
}

/* Heute-Karte (includes/status-karte.php), gleiche Optik wie auf der Startseite */
.page-cafe .hero-status {
  justify-self: stretch;
  width: 100%;
  max-width: 48ch;
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.page-cafe .hero-status-now {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--ink);
}
.page-cafe .hero-status-line {
  margin: 0;
  font-size: var(--fs-md);
  line-height: var(--lh-copy);
  color: var(--muted);
}
.page-cafe .hero-status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-4);
  margin: 0;
}
.page-cafe .hero-status-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.hero-cafe .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-5);
}

/* ---------- Zeitenkarte als Karte ueber der Hero-Unterkante ---------- */
.cafe-zeiten {
  padding-top: 0;
}
.cafe-zeiten-karte {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--sp-6));
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.cafe-zeiten-karte .section-head {
  margin-bottom: var(--sp-3);
}
.cafe-zeiten-karte .section-head p {
  margin: var(--sp-1) 0 0;
}
.cafe-zeiten-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-5);
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-md);
  color: var(--muted);
}
.cafe-zeiten-fuss a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-2);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: .15em;
}
@media (max-width: 767px) {
  .cafe-zeiten-karte {
    margin-top: calc(-1 * var(--sp-5));
    padding: var(--sp-4) var(--sp-3);
    border-radius: var(--radius-md);
  }
}

/* ---------- Kapitel: Dienstag, Freitag, Sonntag ---------- */
.kapitel-grid {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 900px) {
  .kapitel-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--sp-6);
  }
  .kapitel-grid--rechts .kapitel-text {
    order: 2;
  }
}
.kapitel-text {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}
.kapitel-text h2 {
  margin: 0;
}
.kapitel-text p {
  margin: 0;
  max-width: 52ch;
}
.kapitel-zeit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.kapitel-naechster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
}
.kapitel-naechster .chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .2em .9em;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.kapitel-naechster .chip--heute {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: #fff;
}
.kapitel-naechster a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.kapitel-bild {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.kapitel-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kapitel--freitag .kapitel-bild {
  aspect-ratio: 21 / 9;
}
@media (max-width: 899px) {
  .kapitel-bild {
    order: -1;
  }
}

/* ---------- Sonntag: feststehende Schiene, Tortenraster ---------- */
.sonntag-grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 1024px) {
  .sonntag-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: var(--sp-6);
    align-items: start;
  }
  .sonntag-schiene {
    position: sticky;
    top: calc(var(--header-h, 72px) + 24px);
  }
}
.sonntag-schiene .surprise-row {
  margin: var(--sp-2) 0 0;
}
.torten-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) {
  .torten-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.torten-item {
  margin: 0;
  min-width: 0;
}
.torten-item .lb-item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
}
.torten-item .lb-item:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}
.torten-item figcaption {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  line-height: var(--lh-copy);
  color: var(--muted);
}
.torten-hinweis {
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-md);
  color: var(--muted);
}

/* ---------- Abend: Vollbild-Nachtfoto mit Text, Videos, Bewertung ---------- */
.cafe-abend {
  padding-top: 0;
}
.abend-bild {
  position: relative;
  margin: 0 0 var(--sp-6);
  height: clamp(320px, 62vh, 720px);
  overflow: hidden;
  background: #000;
}
.abend-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.abend-bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .12) 70%);
  pointer-events: none;
  z-index: 1;
}
.abend-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 5vw, 56px);
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.abend-text h2 {
  margin: 0 0 var(--sp-2);
  color: #fff;
}
.abend-text p {
  margin: 0;
  max-width: 44ch;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}
.page-cafe .video-grid {
  margin-top: 0;
}
/* Titel liegt innerhalb der Videokarte (Surface-Grund), deshalb Token-Farbe statt fester heller Schrift */
.video-titel {
  margin: 0;
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.cafe-review {
  margin-top: var(--sp-5);
}
.cafe-review .rv-snippet {
  padding: 0;
}

/* ---------- Vorgeschmack: Listenzeilen ---------- */
.menu-rows {
  max-width: 640px;
}
.menu-rows .list-row > span {
  flex: 1 1 auto;
}
.menu-rows .list-row > strong {
  color: var(--ink);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}
.menu-rows-more {
  margin: var(--sp-4) 0 0;
}
.menu-rows-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Reservieren und Anfahrt ---------- */
.cafe-reserve {
  display: grid;
  gap: var(--sp-4);
  max-width: 760px;
}
.cafe-reserve .list-row {
  font-size: var(--fs-base);
  line-height: var(--lh-copy);
  color: var(--ink);
}
.cafe-reserve a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: var(--fw-medium);
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: .15em;
}
.cafe-reserve a:hover {
  color: var(--accent-2-strong);
}

/* ---------- Rundgang: Grundriss plus Opt-in-Knopf ---------- */
.tour-intro {
  display: grid;
  gap: var(--sp-5);
  align-items: start;
}
@media (min-width: 768px) {
  .tour-intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }
}
.tour-plan {
  margin: 0;
}
.tour-plan img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.tour-plan figcaption {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.tour-copy {
  display: grid;
  gap: var(--sp-4);
}
.tour-copy p {
  margin: 0;
}
.tour-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
}
.tour-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: .15em;
  font-weight: var(--fw-medium);
}
.tour-alt {
  display: none;
}
.tour-lite [data-tour-start],
.tour-lite .tour-only {
  display: none;
}
.tour-lite .tour-alt {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  [data-tour-start],
  .tour-only {
    display: none;
  }
  .tour-alt {
    display: block;
  }
}

/* ---------- 3D-Rundgang (erst nach Klick sichtbar) ---------- */
.grundriss-scroll-wrap {
  position: relative;
  height: 420vh;
}
.grundriss-scroll-wrap[hidden] {
  display: none;
}
.grundriss-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* Farbe der WebGL-Szene (Grundriss/grundriss-scroll.js: 0x0c0f16), themenunabhaengig */
  background: #0c0f16;
}
.grundriss-scroll-sticky canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.gs-loading {
  display: none;
}
.grundriss-scroll-wrap.is-loading .gs-loading {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-md);
  z-index: 4;
}
.grundriss-scroll-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gs-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-width: 380px;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.gs-card.is-active {
  opacity: 1;
  visibility: visible;
}
.gs-card--left {
  left: clamp(1rem, 5vw, 4rem);
}
.gs-card--right {
  right: clamp(1rem, 5vw, 4rem);
}
.gs-card h3 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}
.gs-card p {
  margin: 0;
  font-size: var(--fs-md);
  line-height: var(--lh-copy);
  color: var(--muted);
}
.gs-card p a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: .15em;
}
.gs-card-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-top: var(--sp-3);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.gs-dots {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}
.gs-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  opacity: .35;
}
.gs-dot.on {
  opacity: 1;
}
.gs-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 6;
}
.gs-close.button.ghost {
  background: var(--surface);
}
@media (max-width: 768px) {
  .grundriss-scroll-wrap {
    height: 360vh;
  }
  .gs-card {
    max-width: none;
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 4.5rem;
    transform: none;
  }
  .gs-card-photo {
    max-height: 30vh;
  }
  .gs-dots {
    right: .5rem;
  }
}
