/* ============================================================
   pages.css — Ergaenzende Styles fuer die Unterseiten.
   Nutzt die Tokens aus site.css (--sand --deep --ocean --accent
   --warm --text --text-mid --text-light --border --display --body).
   Die Startseite bindet diese Datei NICHT ein.
   ============================================================ */

/* ──────── Sub-Hero ──────── */
.subhero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  padding: 7.5rem 0 3rem;
  background: var(--deep);
  overflow: hidden;
}
.subhero--slim { min-height: 42vh; padding-top: 7rem; }
.subhero-bg { position: absolute; inset: 0; }
.subhero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.subhero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,42,50,0.75) 0%, rgba(26,42,50,0.35) 45%, rgba(26,42,50,0.92) 100%);
}
.subhero-body { position: relative; z-index: 2; color: #fff; max-width: 46rem; }
.subhero-body h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.02em;
  margin: 0.75rem 0 0;
}
.subhero-lead {
  margin-top: 1.1rem; font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65; color: rgba(255,255,255,0.86); max-width: 38rem;
}
.subhero-actions {
  margin-top: 2rem; display: flex; flex-wrap: wrap;
  align-items: center; gap: 1.25rem 1.75rem;
}
.subhero-fact {
  font-size: 0.9rem; color: rgba(255,255,255,0.78);
}
.subhero-fact strong { color: #fff; font-weight: 600; }

/* ──────── Breadcrumb ──────── */
.crumb {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin: -0.6rem 0;
}
.crumb a {
  color: rgba(255,255,255,0.62); transition: color 0.2s;
  display: inline-flex; align-items: center; min-height: 44px;
  padding-inline: 3px; margin-inline: -3px;
}
.crumb a:hover { color: var(--accent); }
.crumb span[aria-current] { color: rgba(255,255,255,0.9); }
.crumb-sep { opacity: 0.45; }

/* ──────── Sekundaerer Button ──────── */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.42); border-radius: 3px;
  color: #fff; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost svg { width: 17px; height: 17px; }
.btn-ghost--dark { border-color: var(--border); color: var(--deep); }
@media (hover: hover) {
  .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
  .btn-ghost--dark:hover { background: var(--sand); border-color: var(--ocean); }
}

/* ──────── Generische Section ──────── */
.sec { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sec--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.sec--sand { background: var(--sand); }
.sec--deep { background: var(--deep); color: var(--sand); }
.sec-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--wide { max-width: 54rem; }
.sec-kicker {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}
.sec h2 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--h2); line-height: 1.12; letter-spacing: -0.02em;
}
.sec-head p { margin-top: 1.1rem; color: var(--text-mid); font-size: 1.05rem; }
.sec--deep .sec-head p { color: rgba(240,235,225,0.75); }

/* ──────── Fliesstext ──────── */
.prose { max-width: 40rem; }
.prose > * + * { margin-top: 1.35rem; }
.prose p { color: var(--text-mid); line-height: 1.75; }
.prose h3 {
  font-family: var(--display); font-weight: 400; font-size: var(--h3);
  color: var(--deep); line-height: 1.2; margin-top: 2.75rem;
}
.prose ul { list-style: none; }
.prose ul li {
  position: relative; padding-left: 1.5rem;
  margin-top: 0.7rem; color: var(--text-mid); line-height: 1.6;
}
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 1px; background: var(--accent);
}
.prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.btn-primary):not(.btn-ghost) {
  color: var(--ocean); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}

/* Asymmetrisches Text/Bild-Raster — 1.35fr / 1fr, nie 50/50 */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.35fr 1fr; }
  .split--flip { grid-template-columns: 1fr 1.35fr; }
  .split--flip .split-text { order: 2; }
}
.split-img img { border-radius: 2px; }

/* ──────── Zimmer-Uebersicht ──────── */
.roomgrid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 720px) { .roomgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .roomgrid { grid-template-columns: repeat(3, 1fr); } }
/* Erstes Zimmer bricht bewusst aus dem Raster aus */
@media (min-width: 720px) {
  .rcard--lead { grid-column: 1 / -1; }
  .rcard--lead .rcard-media { aspect-ratio: 21 / 9; }
  .rcard--lead .rcard-body { padding: 1.75rem 2rem 2rem; }
  .rcard--lead .rcard-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
}
.rcard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 2px;
  overflow: hidden; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
}
@media (hover: hover) {
  .rcard:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(26,42,50,0.12); }
}
.rcard-media { position: relative; aspect-ratio: 16 / 10; background: var(--sand); }
.rcard-media img { width: 100%; height: 100%; object-fit: cover; }
.rcard-flag {
  position: absolute; top: 0.85rem; left: 0.85rem;
  background: rgba(26,42,50,0.86); color: #fff;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 2px;
}
.rcard-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.rcard-title {
  font-family: var(--display); font-weight: 400;
  font-size: 1.12rem; line-height: 1.25; color: var(--deep);
  letter-spacing: -0.01em;
}
@media (min-width: 1060px) { .rcard-title { font-size: 1.18rem; } }
.rcard-meta {
  margin-top: 0.6rem; font-size: 0.84rem; color: var(--text-light);
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem;
}
.rcard-text {
  margin-top: 0.9rem; font-size: 0.94rem; line-height: 1.6;
  color: var(--text-mid); flex: 1;
}
.rcard-actions {
  margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
}
.rcard-more {
  min-height: 44px; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ocean);
}
.rcard-more svg { width: 15px; height: 15px; transition: transform 0.2s; }
@media (hover: hover) { .rcard-more:hover svg { transform: translateX(3px); } }
.btn-book-sm {
  min-height: 44px; display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--accent); color: #fff; border-radius: 3px;
  padding: 0.6rem 1.1rem; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-book-sm svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .btn-book-sm:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(158,107,56,0.35); }
}

/* ──────── Zimmer-Detail ──────── */
.rdetail { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.rdetail > * { min-width: 0; }
@media (min-width: 980px) { .rdetail { grid-template-columns: 1.55fr 1fr; } }

.gal-main {
  position: relative; aspect-ratio: 16 / 10;
  background: var(--sand); border-radius: 2px; overflow: hidden;
}
.gal-main img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.45s ease;
}
.gal-main img.active { opacity: 1; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--deep);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s;
}
.gal-prev { left: 0.75rem; } .gal-next { right: 0.75rem; }
@media (hover: hover) { .gal-nav:hover { background: #fff; } }
.gal-count {
  position: absolute; right: 0.85rem; bottom: 0.85rem;
  background: rgba(26,42,50,0.8); color: #fff;
  font-size: 0.75rem; padding: 0.3rem 0.65rem; border-radius: 2px;
}
.gal-thumbs {
  margin-top: 0.75rem; display: flex; gap: 0.6rem; min-width: 0; max-width: 100%;
  overflow-x: auto; padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gal-thumbs::-webkit-scrollbar { height: 4px; }
.gal-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gal-thumbs button {
  flex: 0 0 84px; height: 60px; min-height: 44px; padding: 0; border: 0; cursor: pointer;
  background: none; border-radius: 2px; overflow: hidden;
  opacity: 0.55; transition: opacity 0.2s, outline-color 0.2s;
  outline: 2px solid transparent; outline-offset: 1px; scroll-snap-align: start;
}
.gal-thumbs button.active { opacity: 1; outline-color: var(--accent); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.rside {
  background: #fff; border: 1px solid var(--border);
  border-radius: 2px; padding: clamp(1.5rem, 3vw, 2.1rem);
}
@media (min-width: 980px) { .rside { position: sticky; top: 6.5rem; } }
.rside h2 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.45rem; line-height: 1.2; color: var(--deep);
}
.rside-occ {
  margin-top: 0.55rem; font-size: 0.9rem; color: var(--text-light);
}
.rside .btn-primary { width: 100%; justify-content: center; margin-top: 1.5rem; }
.rside-note {
  margin-top: 0.85rem; font-size: 0.8rem; line-height: 1.5;
  color: var(--text-light); text-align: center;
}
.rside-contact {
  margin-top: 1.5rem; padding-top: 1.35rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.9rem;
}
.rside-contact a {
  color: var(--ocean); display: inline-flex; align-items: center;
  gap: 0.5rem; min-height: 44px;
}
.rside-contact svg { width: 16px; height: 16px; flex: 0 0 16px; }

.spec { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.92rem; }
.spec th, .spec td {
  text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec th { font-weight: 500; color: var(--text-light); width: 42%; }
.spec td { color: var(--text); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ──────── Vergleichstabelle ──────── */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp {
  border-collapse: collapse; width: 100%; min-width: 720px;
  font-size: 0.9rem; background: #fff;
}
.cmp th, .cmp td {
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: top;
}
.cmp thead th {
  background: var(--deep); color: var(--sand); font-weight: 500;
  font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase;
  position: sticky; top: 0;
}
.cmp tbody tr:nth-child(even) { background: var(--warm); }
.cmp td:first-child { font-weight: 500; color: var(--deep); }
.cmp a {
  color: var(--ocean); text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center; min-height: 44px;
}
.cmp-hint {
  margin-top: 0.85rem; font-size: 0.82rem; color: var(--text-light);
}

/* ──────── FAQ ──────── */
.faq { max-width: 46rem; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative; font-weight: 500; color: var(--deep);
  font-size: 1.02rem; line-height: 1.45; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 0.4rem; top: 1.55rem;
  width: 9px; height: 9px; border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent); transform: rotate(45deg);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.85rem; }
.faq details p, .faq details ul { padding-bottom: 1.3rem; }
.faq details p { color: var(--text-mid); line-height: 1.7; max-width: 40rem; }

/* ──────── Fakten-Streifen (asymmetrisch, keine Icon-Karten) ──────── */
.facts {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px) { .facts { grid-template-columns: 1.4fr 1fr 1fr; } }
.fact { background: var(--warm); padding: 1.5rem 1.4rem; }
.fact dt {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light);
}
.fact dd {
  margin-top: 0.5rem; font-family: var(--display); font-size: 1.5rem;
  line-height: 1.15; color: var(--deep);
}
.fact dd small { display: block; font-family: var(--body); font-size: 0.86rem; color: var(--text-mid); margin-top: 0.35rem; }

/* ──────── CTA-Band ──────── */
.ctaband { background: var(--deep); color: var(--sand); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.ctaband-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .ctaband-inner { grid-template-columns: 1.5fr 1fr; } }
.ctaband h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em;
}
.ctaband p { margin-top: 0.9rem; color: rgba(240,235,225,0.72); max-width: 34rem; }
.ctaband-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
@media (min-width: 860px) { .ctaband-actions { justify-content: flex-end; } }

/* ──────── Buchungsseite ──────── */
.bookpage { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.bookpage > * { min-width: 0; }
@media (min-width: 1000px) { .bookpage { grid-template-columns: 1.75fr 1fr; } }
.bookwidget {
  background: #fff; border: 1px solid var(--border);
  border-radius: 2px; padding: clamp(1rem, 2.5vw, 1.75rem);
  min-height: 460px;
}
.bookaside { display: flex; flex-direction: column; gap: 1.5rem; }
.bookbox {
  background: var(--sand); border-radius: 2px;
  padding: clamp(1.35rem, 3vw, 1.9rem);
}
.bookbox h3 {
  font-family: var(--display); font-weight: 400; font-size: 1.25rem;
  color: var(--deep); line-height: 1.2;
}
.bookbox ul { list-style: none; margin-top: 1rem; }
.bookbox li {
  position: relative; padding-left: 1.5rem; margin-top: 0.65rem;
  font-size: 0.93rem; line-height: 1.55; color: var(--text-mid);
}
.bookbox li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 1px; background: var(--accent);
}

/* ──────── Themen-Karten (bewusst ungleich gross) ──────── */
.topics { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 780px) { .topics { grid-template-columns: repeat(6, 1fr); } }
.topic {
  position: relative; display: block; overflow: hidden;
  border-radius: 2px; min-height: 240px; background: var(--deep);
}
@media (min-width: 780px) {
  .topic { grid-column: span 3; min-height: 260px; }
  .topic:nth-child(3n+1) { grid-column: span 4; }
  .topic:nth-child(3n+2) { grid-column: span 2; }
}
.topic img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.62; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), opacity 0.4s;
}
@media (hover: hover) { .topic:hover img { transform: scale(1.05); opacity: 0.75; } }
.topic::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,42,50,0.1) 30%, rgba(26,42,50,0.88) 100%);
}
.topic-body { position: relative; z-index: 2; padding: 1.5rem; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.topic-body h3 {
  font-family: var(--display); font-weight: 400; font-size: 1.35rem;
  color: #fff; line-height: 1.18;
}
.topic-body p { margin-top: 0.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.78); line-height: 1.5; }

/* ──────── Wegbeschreibung / Schritte ──────── */
.steps { counter-reset: step; max-width: 44rem; }
.step {
  counter-increment: step; position: relative;
  padding: 0 0 1.75rem 3.25rem; border-left: 1px solid var(--border);
  margin-left: 0.9rem;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  content: counter(step); position: absolute; left: -0.9rem; top: -0.15rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 600;
}
.step h3 { font-size: 1.05rem; font-weight: 600; color: var(--deep); }
.step p { margin-top: 0.45rem; color: var(--text-mid); line-height: 1.65; font-size: 0.96rem; }

/* ──────── Sticky Buchen-Leiste (Zimmerdetail, mobil) ──────── */
.rbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 0.7rem clamp(1rem, 4vw, 1.5rem);
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  display: flex; align-items: center; gap: 1rem;
}
.rbar.on { transform: translateY(0); }
@media (min-width: 980px) { .rbar { display: none; } }
.rbar-label { flex: 1; min-width: 0; }
.rbar-label strong {
  display: block; font-size: 0.9rem; color: var(--deep); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rbar-label span { font-size: 0.78rem; color: var(--text-light); }
.rbar .btn-book-sm { min-height: 46px; padding: 0.7rem 1.35rem; }

/* Auf Seiten mit .rbar die alte m-bar unterdruecken */
body.has-rbar .m-bar { display: none; }

/* ──────── Weiterfuehrende Links ──────── */
.morelinks {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 2px; overflow: hidden;
}
@media (min-width: 700px) { .morelinks { grid-template-columns: repeat(3, 1fr); } }
.morelink {
  background: var(--warm); padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  min-height: 44px; transition: background 0.25s;
}
@media (hover: hover) { .morelink:hover { background: var(--sand); } }
.morelink strong { font-size: 1rem; color: var(--deep); font-weight: 600; }
.morelink span { font-size: 0.88rem; color: var(--text-mid); line-height: 1.5; }

/* ──────── Reveal (identisch zur Startseite) ──────── */
@media (prefers-reduced-motion: reduce) {
  .rcard, .topic img, .gal-main img { transition: none !important; }
}

/* ──────── Touch-Ziele in Fliesstext-Listen ────────
   Links in Aufzaehlungen sind inline und damit nur zeilenhoch. padding-block
   vergroessert die Trefferflaeche auf 44px, ohne den Zeilenfluss zu aendern. */
@media (max-width: 1023px) {
  .prose li a, .prose p a, .step p a, .bookbox li a {
    padding-block: 0.8rem; margin-block: -0.8rem;
  }
}

/* Kartentitel als eigenstaendiges Ziel gross genug (das Bild darueber
   verlinkt dasselbe Zimmer und ist ohnehin grossflaechig). */
.rcard-title a { display: inline-block; padding-block: 0.45rem; margin-block: -0.45rem; }

/* ──────── Redaktionelle Zweiteilung ────────
   Reine Textabschnitte standen als schmale Spalte am linken Rand, die rechte
   Bildschirmhaelfte blieb leer — auf dem Desktop liest sich das wie ein
   Layoutfehler. Ab 1024px steht die Ueberschrift links, der Text rechts. */
@media (min-width: 1024px) {
  .sec--editorial > .wrap {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .sec--editorial .sec-head { margin-bottom: 0; max-width: none; }
  .sec--editorial .prose,
  .sec--editorial .faq,
  .sec--editorial .steps { max-width: none; }
  /* Der Kartenausschnitt darf die volle Spaltenbreite nutzen */
  .sec--editorial .prose iframe { min-height: 380px; }
}
