/* ============================================================
   TrailLife — personal outdoor blog
   ============================================================ */

:root {
  --ink:        #1b1916;
  --ink-soft:   #3a3630;
  --muted:      #76716a;
  --muted-2:    #9b958c;
  --line:       #e3ddd1;

  --cream:      #f4f1e9;
  --cream-2:    #efeadf;
  --paper:      #fffdf8;

  --orange:     #e3742a;   /* Gravel */
  --orange-ink: #b9551a;
  --blue:       #4a6ea4;   /* Wandern */
  --blue-ink:   #355182;
  --olive:      #7e8b4c;   /* Radfahren */
  --olive-ink:  #5e6a32;

  --shadow-sm:  0 1px 2px rgba(40,32,20,.05), 0 4px 14px rgba(40,32,20,.05);
  --shadow-md:  0 6px 18px rgba(40,32,20,.07), 0 22px 50px rgba(40,32,20,.10);
  --shadow-lg:  0 12px 30px rgba(40,32,20,.10), 0 40px 90px rgba(40,32,20,.16);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --container: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --font-display: "Anton", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
}

/* =====================================================
   Dark mode
   ===================================================== */
[data-theme="dark"] {
  --ink:        #f0ece2;
  --ink-soft:   #ccc5b8;
  --muted:      #8a8278;
  --muted-2:    #6b6560;
  --line:       #2e2b26;

  --cream:      #1a1814;
  --cream-2:    #201e1a;
  --paper:      #232018;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.2), 0 4px 14px rgba(0,0,0,.25);
  --shadow-md:  0 6px 18px rgba(0,0,0,.28), 0 22px 50px rgba(0,0,0,.35);
  --shadow-lg:  0 12px 30px rgba(0,0,0,.35), 0 40px 90px rgba(0,0,0,.50);
}

/* dark mode toggle button */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; cursor: pointer;
  color: var(--ink-soft); transition: color .25s, border-color .25s, background .25s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); background: var(--cream-2); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .ico-moon { display: block; }
.theme-toggle .ico-sun  { display: none; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun  { display: block; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--orange); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ---- shared bits ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow .rule {
  width: 34px; height: 2px; background: var(--orange); display: inline-block; border-radius: 2px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: inline-block; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .005em;
  text-transform: none;
}

/* =====================================================
   Header / nav
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center;
  height: 72px;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(40,32,20,.06);
  height: 62px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 0; font-family: var(--font-display);
  font-size: 1.55rem; letter-spacing: .01em; line-height: 1; }
.brand .b-trail { color: var(--ink); }
.brand .b-life { color: var(--orange); }
.brand .b-dot { color: var(--orange); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 38px); }
.nav a {
  font-size: .94rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0; letter-spacing: .01em;
  transition: color .25s;
}
.nav a.dim { color: var(--muted-2); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--orange); border-radius: 2px; transition: right .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after { right: 0; }
.nav a:hover::after { right: 0; }
.nav a.dim:hover { color: var(--ink-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 22px; padding: 0 36px;
    background: var(--paper); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .42s var(--ease-out);
  }
  .nav a { font-size: 1.3rem; }
  body.nav-open { overflow: hidden; position: fixed; width: 100%; }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 60px var(--gut) 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10% -10% -10% -10%; z-index: 0; pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(38% 44% at 22% 26%, rgba(227,116,42,.16), rgba(227,116,42,0) 60%),
    radial-gradient(40% 46% at 80% 20%, rgba(74,110,164,.13), rgba(74,110,164,0) 62%),
    radial-gradient(46% 50% at 62% 82%, rgba(126,139,76,.15), rgba(126,139,76,0) 64%),
    linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 42%, var(--cream-2) 100%);
  background-repeat: no-repeat;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0 0;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  }
  50% {
    background-position: 14% 10%, -12% 8%, 8% -10%, 0 0;
    background-size: 130% 130%, 120% 124%, 134% 128%, 100% 100%;
  }
  100% {
    background-position: -10% 14%, 10% -8%, -8% 12%, 0 0;
    background-size: 118% 122%, 132% 120%, 122% 134%, 100% 100%;
  }
}
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-particles span {
  position: absolute; border-radius: 50%;
  will-change: transform;
}
@keyframes pdrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(var(--ax), calc(var(--ay) * .4)); }
  50%  { transform: translate(calc(var(--ax) * .6), var(--ay)); }
  75%  { transform: translate(calc(var(--ax) * -.3), calc(var(--ay) * .7)); }
  100% { transform: translate(0, 0); }
}

.hero-inner { position: relative; z-index: 3; max-width: 880px; will-change: opacity; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 9px 20px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 70%, transparent); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: clamp(26px, 4vw, 40px);
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  position: relative; }
.hero-badge .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--orange); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 13vw, 10.5rem);
  line-height: .9; letter-spacing: .003em;
  color: var(--ink);
}
.hero h1 .accent { color: var(--orange); }
.hero h1 .accent .pdot { color: var(--orange); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }

.hero-sub {
  margin: clamp(22px,3vw,30px) auto 0; max-width: 540px;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--muted);
  text-wrap: balance;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: clamp(30px, 4vw, 44px); }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 15px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn .ico { width: 20px; height: 20px; display: inline-grid; place-items: center; }
.btn .ico svg { width: 20px; height: 20px; }
.btn-light {
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-md);
  border: 1px solid rgba(40,32,20,.05);
}
.btn-light.orange { color: var(--orange-ink); }
.btn-light.blue { color: var(--blue-ink); }
.btn-light:hover { box-shadow: var(--shadow-lg); }
.btn-solid { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-md); }
.btn-solid:hover { background: #2a2620; box-shadow: var(--shadow-lg); }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted-2);
}
.scroll-cue .bar { width: 1px; height: 34px; background: linear-gradient(var(--muted-2), transparent);
  position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; top: -34px; left: 0; width: 1px; height: 34px;
  background: linear-gradient(var(--orange), transparent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); } 100% { transform: translateY(68px); } }

/* =====================================================
   Sections
   ===================================================== */
section { position: relative; }
.section { padding: clamp(70px, 10vw, 130px) 0; }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px,5vw,60px); }
.section-head h2 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .94; color: var(--ink);
}
.section-head .lead { max-width: 480px; color: var(--muted); font-size: 1.05rem; margin-top: 4px; }
.section-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }

/* ---- tour cards ---- */
.tours-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 30px);
}
.tour-card {
  position: relative; background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease-out);
  will-change: transform;
}
.tour-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--shadow-lg); opacity: 0;
  transition: opacity .3s var(--ease); pointer-events: none;
}
.tour-card:hover::after { opacity: 1; }
.tour-card.feature { grid-row: span 1; }

.tour-map { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tour-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour-strip { height: 5px; }

.tour-body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tour-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5em;
  padding: 5px 13px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500;
}
.tour-card h3 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.1; font-weight: 700;
  letter-spacing: -.01em; }
.tour-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.tour-meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--muted-2); font-family: var(--font-mono); letter-spacing: .02em; }
.tour-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* route stats overlaid on map */
.tour-stats {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tour-stat {
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(4px);
  border-radius: var(--r-pill); padding: 5px 11px;
  font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .4em; box-shadow: var(--shadow-sm);
}
.tour-stat b { font-weight: 600; }

/* accent theming */
.t-orange .tour-strip { background: var(--orange); }
.t-orange .tour-pill { background: rgba(227,116,42,.13); color: var(--orange-ink); }
.t-blue .tour-strip { background: var(--blue); }
.t-blue .tour-pill { background: rgba(74,110,164,.14); color: var(--blue-ink); }
.t-olive .tour-strip { background: var(--olive); }
.t-olive .tour-pill { background: rgba(126,139,76,.16); color: var(--olive-ink); }
.t-green .tour-strip { background: #4a7c59; }
.t-green .tour-pill { background: rgba(74,124,89,.13); color: #2d5c3e; }
.t-green .commute-map { background: rgba(74,124,89,.07); color: #4a7c59;
  display: flex; align-items: center; justify-content: center; }

@media (max-width: 760px) {
  .tours-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Galerie — GPS route art wall
   ===================================================== */
.galerie { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.gal-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.8vw, 22px);
  grid-auto-flow: dense;
}
.gal-tile {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .28s var(--ease-out);
  will-change: transform; min-height: 150px;
}
.gal-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--shadow-md); opacity: 0;
  transition: opacity .3s var(--ease); pointer-events: none;
}
.gal-tile:hover::after { opacity: 1; }
.gal-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gal-tile .gal-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  background: linear-gradient(transparent, rgba(20,16,10,.04));
}
.gal-tile .gal-name { font-weight: 700; font-size: 1.02rem; color: #1b1916; letter-spacing: -.01em; }
.gal-tile .gal-dist { font-family: var(--font-mono); font-size: .74rem; color: #3a3630;
  background: rgba(255,253,248,.9); padding: 3px 9px; border-radius: var(--r-pill);
  white-space: nowrap; }
.gal-tile .gal-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill); font-weight: 500;
}
/* spans */
.gal-tile.s4 { grid-column: span 4; }
.gal-tile.s5 { grid-column: span 5; }
.gal-tile.s6 { grid-column: span 6; }
.gal-tile.s7 { grid-column: span 7; }
.gal-tile.s8 { grid-column: span 8; }
.gal-tile.tall { aspect-ratio: 3 / 4; }
.gal-tile.wide { aspect-ratio: 16 / 9; }
.gal-tile.box  { aspect-ratio: 1 / 1; }

@media (max-width: 900px) {
  .gal-grid { grid-template-columns: repeat(6, 1fr); }
  .gal-tile.s4, .gal-tile.s5 { grid-column: span 3; }
  .gal-tile.s6, .gal-tile.s7, .gal-tile.s8 { grid-column: span 6; }
}
@media (max-width: 540px) {
  .gal-grid { grid-template-columns: 1fr; }
  .gal-tile.s4, .gal-tile.s5, .gal-tile.s6, .gal-tile.s7, .gal-tile.s8 { grid-column: span 1; }
  .gal-tile.tall, .gal-tile.box { aspect-ratio: 16 / 11; }
}

/* =====================================================
   Interactive tour map  (Meine Touren)
   ===================================================== */
.touren { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); }

/* dynamic scroll affordance above the tour selector */
.scroll-hint { display: none; align-items: center; gap: 14px; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); user-select: none; }
.scroll-hint.is-scrollable { display: flex; }
.scroll-hint .sh-side { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap;
  opacity: .28; transition: opacity .3s var(--ease), color .3s; }
.scroll-hint .sh-side.on { opacity: 1; color: var(--orange-ink); }
.scroll-hint .sh-arrow { font-size: 1.05rem; line-height: 1; display: inline-block; }
.scroll-hint .sh-right.on .sh-arrow { animation: nudgeR 1.5s var(--ease) infinite; }
.scroll-hint .sh-left.on .sh-arrow { animation: nudgeL 1.5s var(--ease) infinite; }
.scroll-hint .sh-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.scroll-hint .sh-fill { display: block; height: 100%; width: 0; background: var(--orange);
  border-radius: 2px; transition: width .12s linear; }
@keyframes nudgeR { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes nudgeL { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .scroll-hint .sh-arrow { animation: none !important; }
}

.tour-select {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 42%, 440px);
  gap: 14px; padding: 12px 4px 32px; margin-bottom: 6px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--orange) var(--line);
}
.tour-select::-webkit-scrollbar { height: 9px; }
.tour-select::-webkit-scrollbar-track { background: var(--line); border-radius: var(--r-pill); }
.tour-select::-webkit-scrollbar-thumb { background: var(--orange); border-radius: var(--r-pill);
  border: 2px solid var(--line); }
.tour-select::-webkit-scrollbar-thumb:hover { background: var(--orange-ink); }
.tsel {
  text-align: left; scroll-snap-align: start; min-width: 0;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 15px 18px; cursor: pointer;
  transition: transform .3s var(--ease-out), border-color .3s, background .3s, color .3s;
  will-change: transform;
}
@media (max-width: 820px) {
  .tour-select { grid-auto-columns: clamp(220px, 62%, 320px); }
}
@media (max-width: 560px) {
  .tour-select { grid-auto-columns: 80%; }
}
.tsel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tsel-empty {
  grid-column: 1 / -1; max-width: 560px;
  padding: 26px 28px; border: 1.5px dashed var(--line); border-radius: var(--r-md);
  background: var(--paper); color: var(--muted); font-size: .98rem; line-height: 1.5;
}
.section-empty {
  grid-column: 1 / -1; max-width: 620px;
  padding: 34px 32px; border: 1.5px dashed var(--line); border-radius: var(--r-lg);
  background: var(--paper); color: var(--muted); font-size: 1.04rem; line-height: 1.55;
  box-shadow: var(--shadow-sm);
}
.tsel .ts-cat { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500; display: inline-flex; align-items: center; gap: .5em; }
.tsel .ts-cat .swatch { width: 8px; height: 8px; border-radius: 50%; }
.tsel .ts-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; margin: 7px 0 5px;
  color: var(--ink); line-height: 1.15; }
.tsel .ts-meta { font-family: var(--font-mono); font-size: .74rem; color: var(--muted-2); }
.tsel.active { border-color: transparent; color: #fff; box-shadow: var(--shadow-lg); }
.tsel.active .ts-name { color: #fff; }
.tsel.active .ts-cat, .tsel.active .ts-meta { color: rgba(255,255,255,.82); }
.tsel.active .ts-cat .swatch { background: #fff !important; }
.tsel.active.c-gravel { background: var(--orange); }
.tsel.active.c-rad    { background: var(--olive); }
.tsel.active.c-wandern{ background: var(--blue); }

.map-shell { position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(40,32,20,.06); margin-bottom: 16px;
  background: #e9e3d6; }
#map { height: clamp(340px, 56vh, 540px); width: 100%; background: #e9e3d6; z-index: 1; }
.map-loading { position: absolute; inset: 0; z-index: 500; display: flex; align-items: center;
  justify-content: center; gap: 12px; background: rgba(244,241,233,.94);
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: var(--muted); }
.map-spinner { width: 22px; height: 22px; border: 3px solid var(--line);
  border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.replay-btn { position: absolute; right: 14px; bottom: 14px; z-index: 450;
  display: none; align-items: center; gap: 7px; padding: 10px 18px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-md); transition: background .25s, color .25s, transform .25s var(--ease-out); }
.replay-btn:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
@keyframes dotGlow { 0%,100% { box-shadow: 0 0 10px currentColor, 0 2px 8px rgba(0,0,0,.35); }
  50% { box-shadow: 0 0 22px currentColor, 0 2px 12px rgba(0,0,0,.35); } }

/* leaflet skin tweaks */
.leaflet-container { font-family: var(--font-body) !important; background: var(--cream-2); }
.leaflet-control-attribution { font-size: 10px !important; background: color-mix(in srgb, var(--paper) 70%, transparent) !important; }
.leaflet-bar a { color: var(--ink) !important; }
.leaflet-popup-content { font-family: var(--font-body); font-weight: 600; }

.tour-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: stretch; }
.tstats-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tstat { background: var(--paper); padding: 20px 22px; }
.tstat .v { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1;
  color: var(--ink); }
.tstat .v .u { font-family: var(--font-mono); font-size: .42em; color: var(--orange); margin-left: .25em; }
.tstat .l { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 8px; }
.elev-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 22px 16px; display: flex; flex-direction: column; }
.elev-card .elev-head { display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; }
.elev-card .elev-head .rule { width: 18px; height: 2px; background: var(--orange); border-radius: 2px; }
.elev-card .elev-head .elev-range { margin-left: auto; color: var(--ink-soft); letter-spacing: .04em; }
.elev-card .elev-head .elev-range .dash { margin: 0 .5em; color: var(--muted-2); }
#elevSvg { width: 100%; height: 130px; display: block; overflow: visible; flex: 1; }

@media (max-width: 820px) {
  .tour-detail { grid-template-columns: 1fr; }
}

/* =====================================================
   Stats band (dark, mid-page)
   ===================================================== */
.stats-band, .footer-wrap { position: relative; background: #1b1916; color: #f4f1e9; overflow: hidden; }
[data-theme="dark"] .stats-band,
[data-theme="dark"] .footer-wrap { background: #0e0d0b; color: #f4f1e9; }
.stats-band::before, .footer-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 70% at 12% 0%, rgba(227,116,42,.22), transparent 60%),
    radial-gradient(60% 70% at 92% 12%, rgba(126,139,76,.16), transparent 60%),
    radial-gradient(50% 60% at 60% 100%, rgba(74,110,164,.12), transparent 60%);
}
.stats { position: relative; z-index: 2; padding: clamp(64px, 9vw, 112px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px,4vw,40px);
  text-align: center; }
.stat .num {
  font-family: var(--font-display); font-size: clamp(3.2rem, 8vw, 6rem); line-height: 1;
  color: #f4f1e9; display: inline-flex; align-items: baseline;
}
.stat .num .unit { font-size: .3em; margin-left: .12em; color: var(--orange); letter-spacing: .02em; }
.stat .label { margin-top: 10px; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(244,241,233,.6); }
.stat:nth-child(1) .num .unit { color: var(--orange); }
.stat:nth-child(2) .num .unit { color: #c98a4a; }
.stat:nth-child(3) .num .unit { color: #8fa7d6; }
.stat:nth-child(4) .num .unit { color: #a6b56a; }

@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }

.foot { position: relative; z-index: 2; border-top: 1px solid rgba(244,241,233,.12);
  padding: clamp(40px,6vw,64px) 0 36px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot .brand { font-size: 2rem; margin-bottom: 14px; }
.foot .brand .b-trail { color: #f4f1e9; }
.foot-blurb { max-width: 320px; color: rgba(244,241,233,.6); font-size: .96rem; }

.news { background: rgba(244,241,233,.05); border: 1px solid rgba(244,241,233,.12);
  border-radius: var(--r-md); padding: 22px 24px; min-width: min(360px, 100%); }
.news h4 { margin: 0 0 4px; font-size: 1.1rem; color: var(--cream); }
.news p { margin: 0 0 16px; color: rgba(244,241,233,.6); font-size: .9rem; }
.news form { display: flex; gap: 10px; }
.news input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: var(--r-pill);
  background: rgba(244,241,233,.08); border: 1px solid rgba(244,241,233,.14);
  color: var(--cream); font-family: inherit; font-size: .95rem; }
.news input::placeholder { color: rgba(244,241,233,.4); }
.news input:focus { outline: none; border-color: var(--orange); }
.news button { padding: 13px 20px; border-radius: var(--r-pill); background: var(--orange);
  color: #fff; font-weight: 600; transition: background .25s, transform .25s var(--ease-out); }
.news button:hover { background: #cf6320; transform: translateY(-1px); }
.news .ok { color: #a6b56a; font-size: .9rem; margin: 0; }

.foot-bottom { margin-top: clamp(40px,6vw,60px); display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono); font-size: .76rem; color: rgba(244,241,233,.5); letter-spacing: .03em; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--orange); }
.foot-legal { display: flex; gap: 18px; }
.foot-legal a { color: rgba(244,241,233,.4); }
.foot-legal a:hover { color: var(--orange); }

/* =====================================================
   Reveal animations
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(.97);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* section headings: stronger upward sweep */
.section-head.reveal {
  transform: translateY(56px) scale(.98);
  transition-duration: .9s;
}

/* tour cards & gallery: slide up + scale */
.tour-card.reveal, .gal-tile.reveal {
  transform: translateY(48px) scale(.95);
  transition-duration: .8s;
}

/* stats: lighter float, no scale */
.stat.reveal {
  transform: translateY(28px);
}

/* eyebrow rule lines: slide in from left */
.eyebrow .rule {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.section-head.reveal.in .eyebrow .rule {
  transform: scaleX(1);
  transition-delay: .15s;
}

.hero h1 .line > span { transform: translateY(110%); opacity: 0;
  transition: transform 1s var(--ease-out), opacity 1s var(--ease-out); }
body.hero-in .hero h1 .line > span { transform: translateY(0); opacity: 1; }
body.hero-in .hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.hero-badge, .hero-sub, .hero-cta { opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
body.hero-in .hero-badge { opacity: 1; transform: none; transition-delay: .05s; }
body.hero-in .hero-sub { opacity: 1; transform: none; transition-delay: .32s; }
body.hero-in .hero-cta { opacity: 1; transform: none; transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; opacity: 1; }
  .hero-badge, .hero-sub, .hero-cta { opacity: 1; transform: none; }
}
