/* ==========================================================================
   SaiDu — design system
   entdecken · erleben · wachsen

   Signature motif: the Austrian trail signpost (Wanderwegweiser) — three
   fingerpost cards on the home page, and a photo-led journey through the
   four trust-building stages on the Erlebnis & Abenteuer page (see
   adventure.css: .journey). Every place the site needs to point
   somewhere, it points the way a real Tyrolean trail sign would.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fraunces-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fraunces-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/karla-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/karla-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/karla-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/karla-italic.woff') format('woff');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrainsmono.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrainsmono.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  /* pine is the darkest tone in the palette on purpose — no more
     near-black greens anywhere on the site */
  --ink: #26332a;
  --forest: #425a3b;
  --forest-dim: #5c7a52;
  --gold: #c97b3d;
  --gold-bright: #e8b98a;
  --wood: #5a6656;
  --night: #26332a;
  --night-soft: #314a37;
  /* a warm, near-neutral espresso-brown — used only for the site footer,
     so it doesn't read as "yet another dark green" and gives the
     full-colour logo (green + gold) somewhere with real contrast to sit */
  --footer-bg: #2c231c;
  --mist: #edefe1;
  --parchment: #fffcf6;
  --sand: #f5efe2;
  --line: #dad3c1;
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Karla', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 12px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
input, textarea { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.6rem 1rem;
  z-index: 200;
  transition: top 0.2s var(--ease);
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: 1rem; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow::before {
  content: '';
  width: 1.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.on-dark { color: var(--gold-bright); }

.lede {
  font-size: 1.08rem;
  color: var(--wood);
  max-width: 46ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest);
  color: var(--parchment);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-primary.on-dark { background: var(--gold); color: var(--ink); }
.btn-primary.on-dark:hover { background: var(--gold-bright); }
.btn-ghost {
  border: 1.5px solid currentColor;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--parchment); }
.btn-ghost.on-dark { color: var(--mist); }
.btn-ghost.on-dark:hover { background: var(--mist); color: var(--night); }
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* solid-ish colour, no backdrop-filter: that property makes this
     element a containing block for any position:fixed descendant —
     which was silently squashing the mobile nav's fullscreen panel
     down into the header's own (tiny) box */
  background: rgba(245, 239, 226, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img { height: 68px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}
.primary-nav a:not(.btn) {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.primary-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}
.primary-nav a:not(.btn):hover,
.primary-nav a.is-active { color: var(--ink); opacity: 1; }
.primary-nav a:not(.btn):hover::after,
.primary-nav a.is-active::after { right: 0; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; z-index: 101; position: relative; }
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(44, 35, 28, 0.97);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem var(--gutter);
    gap: 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .primary-nav a:not(.btn) { font-size: 1.15rem; color: var(--mist); opacity: 0.82; }
  .primary-nav a:not(.btn):hover,
  .primary-nav a.is-active { color: var(--gold-bright); }
  body.nav-open .primary-nav { opacity: 1; transform: translateY(0); visibility: visible; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--mist);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand { max-width: 32ch; }
.footer-brand .brand img { height: 143px; }
.footer-brand p { color: rgba(255,255,255,0.65); margin-top: 0.9rem; font-size: 0.95rem; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  color: var(--mist);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-link:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }
.social-link.is-disabled { opacity: 0.4; cursor: default; }
.social-link.is-disabled:hover { background: none; color: var(--mist); border-color: var(--line-on-dark); }
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col li { color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Signature motif — the trail fingerpost
   ========================================================================== */
.signpost {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 1.9rem 1.9rem 2.2rem;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
  min-height: 15rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.signpost:hover { transform: translateX(6px); border-color: var(--gold); box-shadow: 0 16px 30px -20px rgba(38,51,42,.35); }
.signpost::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--gold);
}
.signpost .eyebrow { color: var(--gold); }
.signpost .eyebrow::before { background: var(--gold); }
.signpost h3 { color: var(--ink); font-size: 1.4rem; margin-top: 0.5rem; }
.signpost p { color: var(--wood); margin-top: 0.65rem; font-size: 0.95rem; max-width: 30ch; }
.signpost .signpost-link {
  margin-top: auto;
  padding-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
}
.signpost .signpost-link svg { transition: transform 0.25s var(--ease); }
.signpost:hover .signpost-link svg { transform: translateX(4px); }

/* ==========================================================================
   Utility layout blocks shared across pages
   ========================================================================== */
section { padding-block: clamp(2.5rem, 6vw, 4.75rem); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.section-head h2 { margin-top: 0.6rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- shared CTA band (used on multiple pages) ---------- */
.cta-band-inner {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  background: var(--night);
  color: var(--parchment);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
}
.cta-band-inner h2 { color: var(--parchment); }
.cta-band-inner .eyebrow { color: var(--gold-bright); }
.cta-band-inner .eyebrow::before { background: var(--gold-bright); }
.cta-band-inner .lede { margin-inline: auto; margin-top: 0.8rem; color: rgba(255,255,255,0.72); }
.cta-band-inner .btn { margin-top: 1.8rem; }
.cta-band-inner .btn-primary { background: var(--gold); color: var(--ink); }
.cta-band-inner .btn-primary:hover { background: var(--gold-bright); }
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta-band-actions .btn { margin-top: 0; }
.cta-band-inner .btn-ghost { color: var(--parchment); }
.cta-band-inner .btn-ghost:hover { background: var(--parchment); color: var(--ink); }

/* ---------- info accordion (details/summary — reused on multiple pages) ---------- */
.faq-item {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--forest);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); background: var(--forest); color: var(--parchment); border-color: var(--forest); }
.faq-item-answer {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.92rem;
  color: var(--wood);
  line-height: 1.6;
}
.faq-item-answer a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- "coming soon" modal (triggered by .js-coming-soon) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 51, 42, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.modal-dialog {
  position: relative;
  background: var(--parchment);
  border-radius: var(--radius-lg);
  max-width: 30rem;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 2.75rem);
  box-shadow: 0 30px 60px -20px rgba(38, 51, 42, 0.45);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-dialog { opacity: 1; transform: translateY(0) scale(1); }
.modal-dialog h2 { margin-top: 0.6rem; font-size: 1.6rem; }
.modal-dialog .lede { margin-top: 0.9rem; }
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wood);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal-close:hover { background: var(--mist); color: var(--ink); }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* ---------- activities tag cloud ---------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.tag-cloud li {
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55em 1.1em;
}
.tag-cloud-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--wood);
  max-width: 60ch;
}
.modal-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.6rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  background: var(--mist);
  border: 1px solid var(--line);
}
.modal-note svg { flex: none; margin-top: 0.15rem; color: var(--forest); }
.modal-note p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--wood); }
.modal-note strong { color: var(--forest); }

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-dialog { transition: none; }
}

/* ---------- lightbox (click any journey photo to see it larger) ---------- */
.lightbox-dialog {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal.is-open .lightbox-dialog { opacity: 1; transform: scale(1); }
.lightbox-image {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.lightbox-close { background: rgba(23,32,15,0.7); color: var(--parchment); }
.lightbox-close:hover { background: var(--gold); color: var(--night); }

@media (prefers-reduced-motion: reduce) {
  .lightbox-dialog { transition: none; }
}
