/* The package-page template (4 Nov 2026): every package page shares these components, stamped by
   tools/render-packages.mjs. The map itself is package-map.js with vendor/leaflet-1.9.4. */

/* 1. The hero: a real hero again, the same on every package page. 7ed3d1d (4 Nov 2026, the shared
   template) had cut it to a 300 px band; the subject of the photo sat under the headline. */
.hero.hero-band{min-height:clamp(460px,64vh,720px);align-items:flex-end}
.hero.hero-band .hero-inner{padding-bottom:88px}
.hero.hero-band h1{margin-bottom:0}
@media(max-width:720px){.hero.hero-band{min-height:clamp(400px,62vh,560px)}.hero.hero-band .hero-inner{padding-bottom:54px}}

/* 2. Key facts: one white card over the foot of the hero, cells in even columns split by hairlines,
   the value larger than its label; four to a row, two on a phone. */
.pkg-facts{position:relative;z-index:2;margin-top:-36px;padding:0 0 6px;background:none;border:0}
.pkg-facts-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0;padding:0;background:#E6DFD3;border:1px solid #E6DFD3;border-radius:var(--r,18px);overflow:hidden;box-shadow:0 18px 40px -28px rgba(44,38,32,.45)}
.pkg-facts-list div{min-width:0;background:#fff;padding:16px 22px 18px}
.pkg-facts-list dt{font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;color:var(--terra-text,#A8482A);font-weight:600;margin:0 0 6px}
.pkg-facts-list dd{margin:0;font-family:'Fraunces',serif;font-size:1.12rem;line-height:1.3;color:var(--ink,#2C2620);font-weight:600}
@media(max-width:640px){.pkg-facts{margin-top:-24px}.pkg-facts-list{grid-template-columns:repeat(2,minmax(0,1fr))}.pkg-facts-list div{padding:12px 14px 14px}.pkg-facts-list dd{font-size:1rem}}

/* 3. No section links bar since 12 Nov 2026 (it covered the hero title). Anchors clear the 58 px header. */
#request,#included,#itinerary,#prices,#faq,#stages,#tell-us{scroll-margin-top:74px}

/* 4. The request form: one component, at the top and at the close, at the content width. */
.pkg-request{padding:34px 0 10px}
.pkg-close{padding:48px 0 56px}
:is(.pkg-request,.pkg-close) .ask-form{max-width:none;margin:0}

/* 6. The itinerary: the route map (package-map.js, about 60%) beside the stage list (about 40%).
   Without the map the list takes the width and shows every stage's details. */
.pkg-route{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
.pkg-route--map{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.pkg-route-map{position:sticky;top:116px;height:min(600px,calc(100vh - 150px));min-height:420px;border-radius:var(--r,18px);overflow:hidden;border:1px solid rgba(44,38,32,.12);background:#e9e5dc;z-index:0}
.pkg-route-side{min-width:0}
.pkg-back{display:inline-flex;align-items:center;min-height:40px;margin:0 0 10px;padding:0 14px;border:1px solid rgba(44,38,32,.22);border-radius:999px;background:#fff;color:var(--ink,#2C2620);font:inherit;font-size:.88rem;font-weight:600;cursor:pointer}
.pkg-back:hover{border-color:var(--ink-soft,#5E5447)}
.pkg-back[hidden]{display:none}
.pkg-route-list{list-style:none;margin:0;padding:0;background:#fff;border:1px solid rgba(44,38,32,.1);border-radius:var(--r,18px);overflow:hidden}
.pkg-route-list>li+li{border-top:1px solid rgba(44,38,32,.08)}
.pkg-rl-plain{padding:12px 18px;font-size:.92rem;color:var(--ink,#2C2620)}
.pkg-rl-plain .pkg-tag{margin-right:8px}
.pkg-rl-plain .pkg-note{margin:2px 0 0}
.pkg-rl-btn{display:flex;align-items:baseline;gap:10px;width:100%;margin:0;padding:13px 18px;border:0;background:none;font:inherit;font-size:.95rem;color:var(--ink,#2C2620);text-align:left;cursor:pointer}
.pkg-rl-btn:hover,.pkg-rl-btn:focus-visible{background:var(--cream,#FBF7EF)}
.pkg-rl-n{font-family:'Fraunces',serif;font-weight:600;color:var(--terra-text,#A8482A);min-width:1.7em}
.pkg-rl-t{flex:1;font-weight:500;min-width:0}
.pkg-rl-km{font-family:'Fraunces',serif;font-weight:600;white-space:nowrap}
.pkg-st{padding:0 18px 16px}
.pkg-route--js .pkg-st{display:none}
.pkg-route--js .is-open .pkg-st{display:block}
.pkg-route.is-stage .pkg-route-list>li:not(.is-open){display:none}
.pkg-route.is-stage .is-open .pkg-rl-btn{cursor:default;background:var(--cream,#FBF7EF)}
.pkg-route.is-stage .is-open .pkg-rl-btn .pkg-rl-km{display:none}
.pkg-st-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:12px 0 6px}
.pkg-tag{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--terra-text,#A8482A)}
.pkg-km{font-family:'Fraunces',serif;font-weight:600;font-size:1.05rem;color:var(--ink,#2C2620);white-space:nowrap}
.pkg-note{font-size:.88rem;line-height:1.55;color:var(--ink-soft,#5E5447);margin:0 0 6px}
.pkg-desc{font-size:.92rem;line-height:1.62;color:var(--ink,#2C2620);margin:4px 0 8px}
.pkg-ele{position:relative;margin-top:10px}
.pkg-ele svg{display:block;width:100%;height:56px}
.pkg-ele polygon{fill:rgba(65,80,46,.14)}
.pkg-ele polyline{fill:none;stroke:var(--olive,#41502E);stroke-width:1.5;vector-effect:non-scaling-stroke}
.pkg-ele span{position:absolute;right:0;font-size:.7rem;color:var(--ink-soft,#5E5447);background:rgba(255,255,255,.85);padding:0 4px;border-radius:4px}
.pkg-ele .hi{top:0}.pkg-ele .lo{bottom:0}
.pkg-help{margin:20px 0 0;font-size:.92rem;line-height:1.6;color:var(--ink-soft,#5E5447)}
.pkg-attr{font-size:.8rem;color:var(--ink-soft,#5E5447);margin:14px 0 0}
.pkg-attr a{color:inherit;text-decoration:underline}
@media(max-width:900px){
  .pkg-route--map{grid-template-columns:minmax(0,1fr)}
  .pkg-route-map{position:relative;top:auto;height:55vh;min-height:320px;scroll-margin-top:110px}
}

/* 7. Prices and cancellation. */
.pkg-prices{background:var(--cream,#FBF7EF);padding-top:0}
.pkg-prices .price-band{margin-bottom:24px}

/* 8. FAQ group headings. */
.pkg-faq-group{font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;color:var(--terra-text,#A8482A);margin:30px 0 4px;font-family:'Inter',sans-serif;font-weight:600}
.faq-wrap > .pkg-faq-group:first-child{margin-top:0}

/* After the FAQ: the intro (on the beige of the section before it, so no top padding of its own),
   then the closing form. */
.pkg-intro{padding:0 0 56px}
/* 9 Nov 2026: the intro reads as part of the FAQ above it: the same centred 820 px column (left edges line
   up), the FAQ's group-heading eyebrow with the same thin rule under it, the FAQ answer type, and the
   pull-quote in that column at the FAQ question size. The section keeps its own background band. */
.pkg-intro .wrap>*{max-width:820px;margin-left:auto;margin-right:auto}
.pkg-intro .eyebrow{display:block;font-family:'Inter',sans-serif;font-size:.74rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--terra-text,#A8482A);margin:0 0 22px;padding-bottom:14px;border-bottom:1px solid rgba(44,38,32,.14)}
.pkg-intro p{font-size:1.02rem;line-height:1.72;color:var(--ink-soft,#5E5447);margin:0 0 1.1em;max-width:none}
.pkg-intro .wrap>.lead{font-size:1.2rem;line-height:1.4;margin:26px auto 0;padding-left:20px;border-left:3px solid var(--terra,#BE5B3A)}
@media(max-width:560px){.pkg-intro{padding:0 0 44px}.pkg-close{padding:36px 0 44px}}

/* The summary card beside the request form (7 Nov 2026): a short card above the form on a phone, a sticky
   column on the right from 1024 px. .pkg-d shows on the desktop card only, .pkg-m on the phone card only. */
.pkg-req-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.pkg-sum{background:#fff;border:1px solid rgba(44,38,32,.1);border-radius:var(--r,18px);padding:18px 20px;box-shadow:0 10px 30px -24px rgba(44,38,32,.5)}
.pkg-sum .pkg-d{display:none}
.pkg-sum-img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px;margin:0 0 14px}
.pkg-sum-name{font-family:'Fraunces',serif;font-weight:600;font-size:1.08rem;line-height:1.3;margin:0 0 6px}
.pkg-sum-price{margin:0;line-height:1.3}.pkg-sum-price b{font-family:'Fraunces',serif;font-size:1.6rem;font-weight:600}
.pkg-sum-price span{font-size:.9rem;color:var(--ink-soft,#5E5447)}
.pkg-sum-facts{margin:4px 0 10px;font-size:.92rem;color:var(--ink-soft,#5E5447)}
.pkg-sum-inc{list-style:none;padding:0;margin:0 0 12px;display:grid;gap:6px;font-size:.92rem}
.pkg-sum-inc li{position:relative;padding-left:22px;line-height:1.5}
.pkg-sum-inc li::before{content:'✓';position:absolute;left:0;top:0;color:var(--olive,#41502E);font-weight:600}
.pkg-sum-h{font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600;color:var(--ink-soft,#5E5447);margin:4px 0 8px}
.pkg-sum-next ol{margin:0 0 14px;padding-left:20px;display:grid;gap:6px;font-size:.92rem;line-height:1.5}
.pkg-sum-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;font-size:.92rem;font-weight:600}
.pkg-sum-links a{color:var(--terra-text,#A8482A);text-decoration:underline;text-underline-offset:3px}
@media(min-width:1024px){
  /* 12 Nov 2026: the card no longer slides along (static), and the form box and the card stretch to one height */
  .pkg-req-grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:34px;align-items:stretch}
  .pkg-req-grid>.ask-form{grid-column:1;grid-row:1;margin:0;display:flex;flex-direction:column}
  .pkg-req-grid>.ask-form>form.ccf,.pkg-req-grid>.ask-form>.cc-done{flex:1}
  .pkg-sum{grid-column:2;grid-row:1;padding:20px 22px 22px}
  .pkg-sum .pkg-d{display:revert}.pkg-sum .pkg-m{display:none}
  .pkg-sum-img.pkg-d{display:block}
}

/* The "Plan my walk" bar on phones (7 Nov 2026): fixed to the bottom, above the iPhone home bar; the body
   gets the same room at the bottom while it shows, so the footer is never hidden behind it. */
.pkg-bar{display:none}
@media(max-width:1023.98px){
  .pkg-bar{display:flex;align-items:center;justify-content:center;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:60;min-height:52px;margin:0;padding:0 18px;text-align:center;line-height:1.25;box-shadow:0 10px 28px -12px rgba(44,38,32,.55);transform:translateY(calc(100% + 24px + env(safe-area-inset-bottom,0px)));visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s}
  .pkg-bar.on{transform:none;visibility:visible;transition:transform .25s ease,visibility 0s}
  html.pkg-bar-on body{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){.pkg-bar,.pkg-bar.on{transition:none}}
/* 16 Nov 2026 (MOBILE-FIXES): with the cookie banner open the bar sits just above it (render-ads.mjs sets
   --bc-consent-h and html.bc-consent-on), and the page keeps room for both. */
@media(max-width:1023.98px){
  html.bc-consent-on .pkg-bar{bottom:calc(var(--bc-consent-h,0px) + 8px)}
  html.bc-consent-on.pkg-bar-on body{padding-bottom:calc(var(--bc-consent-h,0px) + 70px)!important}
}
/* The price on the first screen: one line under the hero title (render-packages.mjs heroPrice). */
.pkg-hero-price{margin:12px 0 0;color:#fff;font-weight:600;font-size:1.06rem;line-height:1.4;text-shadow:0 1px 12px rgba(30,20,8,.55)}
.pkg-hero-price .price-x,.pkg-hero-price b{color:inherit}
/* Phones: the line under the big price at least 12.5 px (it was 11.84). */
@media(max-width:899.98px){.price-band .big span{font-size:12.5px}}
/* The card beside the compact form, tighter on a phone (12 Nov 2026) */
@media(max-width:720px){.pkg-sum{padding:14px 16px}.pkg-sum .pkg-sum-inc{gap:4px;margin-bottom:8px;font-size:.88rem}}
/* The cancellation lines (12 Nov 2026): on a phone a long value (de, it: "100%, abzüglich der Buchungsgebühr") wraps
   inside the screen instead of pushing the page sideways; the inline nowrap stays for wider screens. */
@media(max-width:720px){.pkg-prices dl>div{gap:12px}.pkg-prices dl dt{min-width:0}.pkg-prices dl dd{white-space:normal!important;text-align:right;min-width:0;flex:0 1 auto}}
