/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --color-bg:        #13111e;
  --color-surface:   #1a1828;
  --color-border:    #252238;
  --color-text:      #ede8f5;
  --color-text-muted:#7068a0;
  --color-accent:    #c084fc;
  --color-accent-lt: #d8b4fe;
  --color-brown:     #a78bfa;
  --color-sand:      #7c3aed;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', monospace;

  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.35);
  --shadow-hover: 0 6px 24px rgba(192,132,252,0.20);

  --max-width: 1200px;
  --nav-height: 60px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cpath d='M0 200 Q50 180 100 200 Q150 220 200 200 Q250 180 300 200 Q350 220 400 200' fill='none' stroke='%23c084fc' stroke-width='0.5' opacity='0.12'/%3E%3Cpath d='M0 220 Q50 200 100 220 Q150 240 200 220 Q250 200 300 220 Q350 240 400 220' fill='none' stroke='%23c084fc' stroke-width='0.5' opacity='0.09'/%3E%3Cpath d='M0 240 Q50 220 100 240 Q150 260 200 240 Q250 220 300 240 Q350 260 400 240' fill='none' stroke='%23c084fc' stroke-width='0.5' opacity='0.07'/%3E%3Cpath d='M0 180 Q50 160 100 180 Q150 200 200 180 Q250 160 300 180 Q350 200 400 180' fill='none' stroke='%23c084fc' stroke-width='0.5' opacity='0.09'/%3E%3Cpath d='M0 160 Q50 140 100 160 Q150 180 200 160 Q250 140 300 160 Q350 180 400 160' fill='none' stroke='%23c084fc' stroke-width='0.5' opacity='0.07'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(19, 17, 30, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  color: var(--color-accent);
}

.nav__logo-icon { font-size: 1.3rem; }

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--color-accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #09080f;
}

.hero__topo-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Cpath d='M0 400 Q100 350 200 380 Q300 410 400 360 Q500 310 600 340 Q700 370 800 330 L800 600 L0 600 Z' fill='%23c084fc' opacity='0.08'/%3E%3Cpath d='M0 430 Q80 390 180 415 Q280 440 380 395 Q480 350 580 375 Q680 400 800 360 L800 600 L0 600 Z' fill='%23a855f7' opacity='0.05'/%3E%3Cpath d='M-50 300 Q150 220 300 260 Q450 300 550 240 Q650 180 800 210 L850 0 L-50 0 Z' fill='%23c084fc' opacity='0.04'/%3E%3Ccircle cx='400' cy='200' r='3' fill='%23c084fc' opacity='0.5'/%3E%3Cpath d='M0 350 Q100 310 200 335 Q300 360 400 315 Q500 270 600 295 Q700 320 800 285' fill='none' stroke='%23c084fc' stroke-width='1' opacity='0.20'/%3E%3Cpath d='M0 370 Q100 330 200 355 Q300 380 400 335 Q500 290 600 315 Q700 340 800 305' fill='none' stroke='%23c084fc' stroke-width='0.8' opacity='0.14'/%3E%3Cpath d='M0 390 Q100 350 200 375 Q300 400 400 355 Q500 310 600 335 Q700 360 800 325' fill='none' stroke='%23c084fc' stroke-width='0.6' opacity='0.09'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: bold;
  color: var(--color-bg);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-sand);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-lt);
  border-color: var(--color-accent-lt);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--color-brown);
  border-color: var(--color-brown);
  font-size: 0.85rem;
}
.btn--secondary:hover {
  background: var(--color-brown);
  color: #fff;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-accent);
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   CONTAINER & SECTIONS
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.recent-section { padding: 4rem 0; }

.section-title {
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-brown);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.section-footer {
  margin-top: 2.5rem;
  text-align: center;
}

/* ============================================================
   TOUR CARDS GRID
   ============================================================ */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tour-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tour-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.tour-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--color-text);
}

.tour-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.tour-card:hover .tour-card__image img {
  transform: scale(1.04);
}

.tour-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a3d28 0%, #1a2518 100%);
}

.tour-card__placeholder-icon {
  font-size: 4rem;
  opacity: 0.4;
}

.tour-card__kategorie-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.tour-card__body {
  padding: 1.25rem;
}

.tour-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.tour-card__date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.tour-card__diff {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-brown);
  background: rgba(139, 94, 42, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.tour-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--color-text);
  line-height: 1.3;
}

.tour-card__region {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.tour-card__facts {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tour-card__fact {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.tour-card__fact strong {
  color: var(--color-text);
}

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.tag--hochtour       { background: #e8f0e7; color: #2d5a27; }
.tag--trailrun       { background: #e8f4eb; color: #1a6b35; }
.tag--klettern       { background: #f5eae0; color: #7a3d10; }
.tag--klettersteig   { background: #f0eaf5; color: #5a3580; }
.tag--schneeschuhwandern { background: #e8f2f8; color: #1a5a7a; }
.tag--skitour        { background: #f0f4fa; color: #2a4580; }
.tag--eisklettern    { background: #e8f4f8; color: #1a6878; }
.tag--alpinklettern  { background: #f5e8e8; color: #8b1a1a; }
.tag--wandern        { background: #f5f0e8; color: #7a5a28; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  background: var(--color-text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='150'%3E%3Cpath d='M0 80 Q150 40 300 70 Q450 100 600 60 L600 150 L0 150 Z' fill='%233d6b35' opacity='0.2'/%3E%3Cpath d='M0 100 Q120 70 250 90 Q380 110 600 80 L600 150 L0 150 Z' fill='%23c9a96e' opacity='0.1'/%3E%3C/svg%3E");
  background-size: cover;
  padding: 3rem 0 2.5rem;
  color: var(--color-bg);
  margin-bottom: 2rem;
}

.page-header__title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.page-header__sub {
  color: var(--color-sand);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.filter-bar--year {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 2rem;
}

.filter-year-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter-year-btn:hover,
.filter-year-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

/* ============================================================
   TOUR DETAIL
   ============================================================ */
.tour-header {
  background: var(--color-text);
  padding: 3rem 0 2.5rem;
  color: var(--color-bg);
}

.tour-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-sand);
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.back-link:hover { color: #fff; }

.tour-header__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.tour-header__date {
  font-size: 0.85rem;
  color: var(--color-sand);
  font-family: var(--font-mono);
}

.tour-header__title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.tour-header__region {
  color: var(--color-sand);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* ============================================================
   GALLERY
   ============================================================ */
.tour-gallery { margin: 2rem 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery__item:hover img { transform: scale(1.03); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 14, 6, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.is-open { display: flex; }

.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0 0.5rem;
  line-height: 1;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.lightbox__counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   TOUR BODY
   ============================================================ */
.tour-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ============================================================
   KEY FACTS
   ============================================================ */
.keyfacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.keyfact {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.2rem;
}

.keyfact__icon {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  display: block;
}

.keyfact__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.keyfact__value {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-text);
}

/* ============================================================
   AUSRÜSTUNG
   ============================================================ */
.ausruestung {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.ausruestung__title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.ausruestung__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ausruestung__list li {
  background: rgba(61, 107, 53, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(61, 107, 53, 0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ============================================================
   GPX VIEWER
   ============================================================ */
.gpx-section { display: flex; flex-direction: column; gap: 0.75rem; }

.gpx-viewer { display: flex; flex-direction: column; gap: 0.75rem; }

.tour-map {
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #ddd;
}

.elevation-profile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elevation-profile__loading {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.elevation-profile svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   MULTI-ROUTE SECTION
   ============================================================ */
.multi-route-section { display: flex; flex-direction: column; gap: 0.75rem; }

.route-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.route-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.route-panel__header {
  padding: 0.75rem 1rem;
  background: var(--route-color, #3d6b35);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.route-panel__name {
  font-weight: bold;
  font-size: 0.95rem;
}

.route-panel__grade {
  font-size: 0.85rem;
  background: rgba(255,255,255,0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.elevation-profile--small {
  height: 130px;
  border: none;
  border-radius: 0;
  padding: 0.5rem 1rem 0.25rem;
}

.route-panel .btn {
  margin: 0 1rem 0.75rem;
  align-self: flex-start;
}

/* ============================================================
   TOUR DESCRIPTION (PROSE)
   ============================================================ */
.prose {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.8;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--color-brown);
  letter-spacing: 0.03em;
}

.prose p { margin-bottom: 1rem; }

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose ul li { margin-bottom: 0.3rem; }

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--color-accent-lt); }

/* ============================================================
   TOUREN-TABELLE
   ============================================================ */
.tabellen-page { padding: 2rem 1.5rem 4rem; }

.tabelle-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tabelle-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tabelle-controls .filter-bar {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex: 1;
}

.tabelle-search {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text);
  width: 220px;
  transition: border-color 0.2s;
}
.tabelle-search:focus {
  outline: none;
  border-color: var(--color-accent);
}

.tabelle-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.touren-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.touren-tabelle thead {
  background: var(--color-text);
  color: var(--color-bg);
}

.touren-tabelle th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.touren-tabelle th.sort-active { color: var(--color-sand); }

.touren-tabelle th.sortable:hover { color: var(--color-sand); }

.touren-tabelle td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.touren-tabelle tbody tr:last-child td { border-bottom: none; }

.touren-tabelle tbody tr:hover { background: rgba(61,107,53,0.04); }

.col-km, .col-hm, .col-dauer, .col-date, .col-diff {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
}

.col-km, .col-hm { text-align: right; }

.tabelle-link {
  color: var(--color-accent);
  font-weight: bold;
  transition: color 0.2s;
}
.tabelle-link:hover { color: var(--color-accent-lt); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  color: var(--color-text-muted);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================================
   TOURENKARTE
   ============================================================ */
.map-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height));
}

.map-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.map-header__inner {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-shrink: 0;
}

.map-header__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.map-header__sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.map-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.map-filter {
  padding: 0.3rem 0.85rem;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s;
}

.map-filter:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.map-filter--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.map-wrap {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

#tourMap {
  flex: 1;
  min-height: 0;
  z-index: 1;
}

/* Custom Marker */
.map-marker {
  width: 26px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mc, #3d6b35);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 7px rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.6);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.map-marker span {
  transform: rotate(45deg);
  font-size: 0.75rem;
  line-height: 1;
}

.map-marker--active {
  transform: rotate(-45deg) scale(1.25);
  box-shadow: 0 5px 18px rgba(0,0,0,0.45);
  border-color: #fff;
}

/* Side panel */
.map-panel {
  width: 320px;
  flex-shrink: 0;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 2;
}

.map-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding: 2rem;
  text-align: center;
}

.map-panel__icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.map-panel__detail {
  display: flex;
  flex-direction: column;
  position: relative;
}

.map-panel__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.map-panel__img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--color-border);
  flex-shrink: 0;
}

.map-panel__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-panel__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-panel__badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--bc, #3d6b35);
  color: #fff;
  border-radius: 20px;
  font-size: 0.75rem;
  align-self: flex-start;
}

.map-panel__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-top: 0.25rem;
}

.map-panel__region {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.map-panel__facts {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
}

.map-panel__fact {
  display: flex;
  flex-direction: column;
}

.map-panel__fact dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.map-panel__fact dd {
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 600;
}

.map-panel__link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.88rem;
  text-align: center;
  transition: background 0.18s;
}

.map-panel__link:hover {
  background: var(--color-accent-lt);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .stats-grid { gap: 2rem; }
  .tours-grid { grid-template-columns: 1fr; }
  .keyfacts__grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { gap: 0.4rem; }
  .hero { min-height: 55vh; }
  .route-panels { grid-template-columns: 1fr; }

  .map-page { height: auto; }
  .map-wrap { flex-direction: column; height: auto; }
  #tourMap { height: 60vw; min-height: 280px; }
  .map-panel { width: 100%; border-left: none; border-top: 1px solid var(--color-border); max-height: 50vh; }
  .map-header { gap: 0.75rem; padding: 0.6rem 1rem; }
}
