/* ============================================================
   BA-REISEN — detail & legal page styles
   Extends styles.css (same tokens). Sub-page hero, galleries,
   sub-location blocks, route stepper, prose and lightbox.
   ============================================================ */

/* ---------- sub-page hero ---------- */
.subhero {
  position: relative; background: var(--ink); color: var(--on-dark);
  padding: clamp(140px, 22vh, 230px) 0 clamp(56px, 9vh, 104px);
  overflow: hidden;
}
.subhero__bg { position: absolute; inset: 0; z-index: 0; }
.subhero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.subhero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,10,6,0.72) 0%, rgba(13,10,6,0.5) 38%, rgba(13,10,6,0.82) 100%),
    radial-gradient(120% 90% at 78% 16%, rgba(180,140,60,0.18), transparent 58%);
}
.subhero__inner { position: relative; z-index: 2; }
.subhero__credit { position: absolute; right: clamp(14px,3vw,32px); bottom: clamp(12px,2.4vw,20px); z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-mut); opacity: 0.75; pointer-events: none; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-mut); margin-bottom: 30px; }
.crumb a { color: var(--on-dark-mut); transition: color .3s var(--ease); }
.crumb a:hover { color: var(--gold-2); }
.crumb i { width: 14px; height: 1px; background: var(--line-gold); display: inline-block; }
.subhero__eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.subhero__eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--line-gold); }
.subhero__title { color: var(--paper); font-size: clamp(40px, 7.5vw, 104px); line-height: 0.98; letter-spacing: -0.02em; }
.subhero__title em { font-style: italic; color: var(--gold-2); }
.subhero__lede { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 28px); color: var(--on-dark); margin-top: 22px; max-width: 40ch; line-height: 1.4; }

/* trip facts row */
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 34px; align-items: center; }
.facts__pill { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); border: 1px solid var(--line-gold); border-radius: 100px; padding: 8px 16px; }
.facts__pill b { color: var(--gold-2); font-weight: 500; }

/* ---------- generic section ---------- */
.sec { padding: clamp(64px, 11vh, 140px) 0; }
.sec--paper { background: var(--paper); }
.sec--papyrus { background: var(--papyrus); }
.sec__head { max-width: 60ch; margin-bottom: clamp(36px, 6vh, 64px); }
.sec__head h2 { font-size: clamp(28px, 4vw, 50px); margin-top: 16px; }
.sec__head h2 em { font-style: italic; color: var(--clay); }
.sec__head p { color: var(--muted); margin-top: 16px; font-size: clamp(16px,1.7vw,19px); }

/* ---------- region intro split ---------- */
.rintro { display: grid; grid-template-columns: 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
@media (min-width: 900px){ .rintro { grid-template-columns: 1fr 1fr; } }
.rintro__lede { font-family: var(--serif); font-style: italic; font-size: clamp(22px,2.8vw,34px); line-height: 1.3; color: var(--ink); }
.rintro__lede .b { color: var(--clay); }
.rintro__body { color: var(--muted); font-size: clamp(16px,1.7vw,19px); line-height: 1.75; max-width: 56ch; }

/* ---------- sub-location blocks ---------- */
.subloc { padding-top: clamp(44px, 7vh, 80px); border-top: 1px solid var(--line); margin-top: clamp(44px, 7vh, 80px); }
.subloc:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.subloc__head { display: grid; grid-template-columns: auto 1fr; gap: 16px 24px; align-items: baseline; margin-bottom: 26px; }
.subloc__idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--gold); padding-top: 8px; }
.subloc__name { font-size: clamp(28px, 3.6vw, 46px); }
.subloc__name em { font-style: italic; color: var(--clay); }
.subloc__desc { grid-column: 2; color: var(--muted); font-size: clamp(16px,1.6vw,18px); line-height: 1.7; max-width: 60ch; }

/* ---------- galleries ---------- */
.gal { display: grid; gap: clamp(8px, 1vw, 14px); grid-template-columns: repeat(12, 1fr); }
.gal__item {
  position: relative; overflow: hidden; border-radius: 4px; background: var(--ink-2);
  grid-column: span 4; aspect-ratio: 4/3; cursor: zoom-in; padding: 0;
  border: 1px solid var(--line-soft);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
}
.gal__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .55s var(--ease); }
.gal__item:hover, .gal__item:focus-visible { transform: translateY(-5px); box-shadow: 0 26px 48px -24px rgba(13,10,6,0.7); border-color: var(--gold-2); outline: none; z-index: 2; }
.gal__item:hover img, .gal__item:focus-visible img { transform: scale(1.1); filter: saturate(1.06) contrast(1.03); }
.gal__item:active { transform: translateY(-2px) scale(0.992); }

/* gradient veil that washes up on hover */
.gal__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(195deg, rgba(13,10,6,0) 38%, rgba(13,10,6,0.18) 70%, rgba(13,10,6,0.5) 100%);
  opacity: 0; transition: opacity .5s var(--ease); }
.gal__item:hover .gal__veil, .gal__item:focus-visible .gal__veil { opacity: 1; }
/* sheen sweep */
.gal__item::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(247,242,232,0.16) 48%, transparent 62%);
  transform: translateX(-130%); transition: transform .9s var(--ease); }
.gal__item:hover::after, .gal__item:focus-visible::after { transform: translateX(130%); }

/* zoom badge — hidden so hover shows the image transition only (no + icon) */
.gal__zoom { display: none !important; }
.gal__zoom--legacy { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; pointer-events: none;
  display: grid; place-items: center; border-radius: 50%; color: var(--ink);
  background: var(--gold-2); border: 1px solid rgba(247,242,232,0.5);
  transform: translate(-50%, -50%) scale(0.5) rotate(-12deg); opacity: 0;
  box-shadow: 0 10px 26px -10px rgba(13,10,6,0.7);
  transition: opacity .45s var(--ease), transform .55s cubic-bezier(0.34,1.56,0.64,1); }
.gal__zoom svg { width: 22px; height: 22px; }
.gal__item:hover .gal__zoom, .gal__item:focus-visible .gal__zoom { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
@media (prefers-reduced-motion: reduce){
  .gal__item, .gal__item img, .gal__veil, .gal__item::after, .gal__zoom { transition-duration: .01ms; }
  .gal__item:hover { transform: none; }
}
/* feature first tile on wide galleries */
.gal--feat .gal__item:first-child { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 720px){
  .gal__item { grid-column: span 6; }
  .gal--feat .gal__item:first-child { grid-column: span 12; grid-row: auto; aspect-ratio: 16/10; }
}
@media (max-width: 460px){ .gal__item { grid-column: span 12; aspect-ratio: 16/10; } }

/* ---------- route stepper (trips) ---------- */
.stepper { display: flex; flex-wrap: wrap; gap: 10px 4px; align-items: center; }
.stepper__stop { display: inline-flex; align-items: center; gap: 4px; }
.stepper__dot { font-family: var(--serif); font-size: clamp(18px,2.2vw,26px); color: var(--ink); }
.stepper__sep { color: var(--gold); font-family: var(--mono); margin: 0 8px; }
.stepper__stop:nth-child(odd) .stepper__dot { color: var(--clay); font-style: italic; }

/* ---------- hero actions + print button ---------- */
.subhero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.subhero__actions .btn svg { flex: none; }
.sec__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.btn--print { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 12px 20px; }
.btn--print svg { width: 17px; height: 17px; flex: none; }
.btn--print:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-2px); }

/* ---------- day-by-day itinerary ---------- */
.days { display: grid; gap: 0; }
.day { display: grid; grid-template-columns: 84px 1fr; gap: clamp(16px, 3vw, 36px); padding: clamp(26px,4vh,40px) 0; border-top: 1px solid var(--line); }
.day:first-child { border-top: none; padding-top: 0; }
.day__rail { position: relative; display: flex; justify-content: center; }
.day__n { font-family: var(--serif); font-style: italic; font-size: clamp(30px,3.6vw,46px); color: var(--gold-2); line-height: 1; }
.day__rail::after { content: ""; position: absolute; top: 4px; bottom: -1px; left: 50%; width: 1px; background: linear-gradient(var(--line-gold), transparent); transform: translateX(-50%); opacity: 0; }
.day:not(:last-child) .day__rail::after { opacity: .5; top: 56px; bottom: calc(-1 * clamp(26px,4vh,40px)); }
.day__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.day__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); }
.day__meals { display: inline-flex; gap: 5px; }
.day__meals i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--gold); width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-gold); border-radius: 50%; }
.day__title { font-size: clamp(22px,2.6vw,30px); line-height: 1.12; }
.day__title em { font-style: italic; color: var(--clay); }
.day__text { color: var(--muted); font-size: clamp(15.5px,1.6vw,18px); line-height: 1.72; margin-top: 12px; max-width: 64ch; text-wrap: pretty; }
@media (max-width: 600px){
  .day { grid-template-columns: 1fr; gap: 8px; }
  .day__rail { justify-content: flex-start; }
  .day__rail::after, .day:not(:last-child) .day__rail::after { display: none; }
  .day__n { font-size: 30px; }
}

/* ---------- special notes ---------- */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 860px; }
.notes li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: clamp(15.5px,1.6vw,18px); line-height: 1.7; }
.notes li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border: 1px solid var(--green); transform: rotate(45deg); }
.notes b { color: var(--ink); font-weight: 600; }
.notes__legend { margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted-2); }

/* ---------- highlights ---------- */
.hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,230px),1fr)); gap: clamp(14px,2vw,24px); }
.hl__item { background: var(--papyrus); border: 1px solid var(--line-soft); border-radius: 6px; padding: 24px 22px; transition: transform .4s var(--ease), border-color .4s var(--ease); }
.hl__item:hover { transform: translateY(-4px); border-color: var(--green); }
.hl__item .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--green); }
.hl__item p { font-family: var(--serif); font-size: clamp(19px,2.1vw,24px); line-height: 1.15; margin-top: 12px; color: var(--ink); }

/* ---------- other-region / next nav ---------- */
.morecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,200px),1fr)); gap: 12px; }
.morecard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); transition: border-color .35s var(--ease), transform .35s var(--ease); }
.morecard:hover { border-color: var(--clay); transform: translateY(-3px); }
.morecard span { font-family: var(--serif); font-size: clamp(19px,2vw,24px); }
.morecard.is-current { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.morecard.is-current span { color: var(--gold-2); font-style: italic; }
.morecard .arr { color: var(--clay); }
.morecard.is-current .arr { color: var(--on-dark-mut); }

/* ---------- prose (legal / notes) ---------- */
.legal { background: var(--papyrus); }
.prose { max-width: 760px; margin: 0 auto; }
.prose__sec { padding-top: clamp(36px,6vh,64px); margin-top: clamp(36px,6vh,64px); border-top: 1px solid var(--line); position: relative; }
.prose__sec:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.prose__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--gold); display: block; margin-bottom: 14px; }
.prose h2 { font-size: clamp(26px,3.4vw,42px); margin-bottom: 22px; }
.prose h3 { font-family: var(--serif); font-size: clamp(20px,2.2vw,26px); font-weight: 600; color: var(--ink); margin: 30px 0 10px; }
.prose p { color: var(--ink-soft); font-size: clamp(16px,1.6vw,18px); line-height: 1.75; margin-bottom: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--gold); }
.prose ul { list-style: none; margin: 6px 0 18px; padding: 0; }
.prose li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: clamp(16px,1.6vw,18px); line-height: 1.7; margin-bottom: 10px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.prose__address { font-family: var(--mono); font-size: 15px; line-height: 1.9; color: var(--ink); letter-spacing: 0.01em; }
.prose__note { font-size: 14px; color: var(--muted-2); font-style: italic; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,7,4,0.92); display: none; align-items: center; justify-content: center; padding: clamp(16px,4vw,48px); }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85); transform-origin: center; will-change: transform, opacity; backface-visibility: hidden; }
.lb__close, .lb__nav { position: absolute; background: rgba(255,255,255,0.06); border: 1px solid var(--line-dark); color: var(--on-dark); border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; font-size: 22px; transition: background .3s var(--ease), border-color .3s var(--ease); }
.lb__close { top: clamp(16px,3vw,32px); right: clamp(16px,3vw,32px); }
.lb__nav { top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: clamp(10px,2vw,28px); }
.lb__nav--next { right: clamp(10px,2vw,28px); }
.lb__close:hover, .lb__nav:hover { background: rgba(205,164,80,0.18); border-color: var(--gold-2); }
.lb__count { position: absolute; bottom: clamp(14px,2.6vw,24px); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--on-dark-mut); }
.lb__cap { position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(52px,6.5vw,74px); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: min(90vw, 540px); padding: 9px 18px; text-align: center; pointer-events: none; background: rgba(10,7,4,0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(236,226,207,0.1); border-radius: 12px; }
.lb__cap.is-empty { display: none; }
.lb__cap-desc { font-family: var(--serif); font-size: clamp(15px,2vw,18px); line-height: 1.3; color: var(--on-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lb__cap-desc:empty { display: none; }
.lb__cap-credit { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-mut); white-space: nowrap; }
@media (max-width: 560px){ .lb__nav { width: 44px; height: 44px; } .lb__cap { bottom: clamp(48px,12vw,60px); padding: 7px 14px; gap: 3px; max-width: 92vw; } .lb__cap-desc { font-size: 14px; } }

/* ---------- CTA strip reused ---------- */
.ctastrip { background: var(--ink); color: var(--on-dark); padding: clamp(64px,10vh,120px) 0; text-align: center; }
.ctastrip h2 { color: var(--paper); font-size: clamp(32px,5vw,62px); max-width: 18ch; margin: 18px auto 22px; }
.ctastrip h2 em { font-style: italic; color: var(--gold-2); }
.ctastrip p { color: var(--on-dark-mut); max-width: 46ch; margin: 0 auto 32px; font-size: clamp(16px,1.7vw,19px); }
.ctastrip .eyebrow { justify-content: center; display: flex; }
.ctastrip__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn--gold-solid { background: var(--gold-2); color: var(--ink); }
.btn--gold-solid:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn--ghost-d { border: 1px solid var(--line-gold); color: var(--on-dark); }
.btn--ghost-d:hover { border-color: var(--gold-2); background: rgba(205,164,80,0.08); }

/* sub-page reveal initial (in case JS reveal late) */
.subpage .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.subpage .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .subpage .reveal { opacity: 1; transform: none; } }

/* ---------- print (Reise drucken) ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  .nav, .drawer, .footer, .lb, .subhero__bg, .subhero__credit, .subhero__actions,
  .ctastrip, .morecards, .sec__head .eyebrow, .gal, [data-screen-label="Galerie"],
  .btn--print, .js-print, .hero__scroll { display: none !important; }
  html, body { background: #fff !important; }
  .subpage .reveal { opacity: 1 !important; transform: none !important; }
  .subhero { background: #fff !important; color: #1a140c !important; padding: 0 0 14px !important; }
  .subhero__title { color: #1a140c !important; font-size: 30pt !important; }
  .subhero__title em { color: #8a5a2b !important; }
  .subhero__lede { color: #3a2f22 !important; font-size: 12pt !important; max-width: none !important; }
  .subhero__eyebrow::before { background: #8a5a2b !important; }
  .crumb { color: #6b5d49 !important; }
  .facts__pill { color: #1a140c !important; border-color: #c9b894 !important; }
  .facts__pill b { color: #8a5a2b !important; }
  .sec { padding: 12px 0 !important; }
  .sec--paper, .sec--papyrus, .legal { background: #fff !important; }
  .day { break-inside: avoid; padding: 12px 0 !important; border-top: 1px solid #ddd !important; }
  .day__n { color: #8a5a2b !important; font-size: 22pt !important; }
  .day__title { color: #1a140c !important; font-size: 14pt !important; }
  .day__text { color: #222 !important; font-size: 10.5pt !important; max-width: none !important; }
  .day__label { color: #2f7d4f !important; }
  .day__meals i { color: #8a5a2b !important; border-color: #c9b894 !important; }
  .notes li, .prose p, .prose li { color: #222 !important; }
  .prose h2, .notes b { color: #1a140c !important; }
  h2 { color: #1a140c !important; }
  .wrap { max-width: none !important; padding: 0 !important; }
}
