/* ============================================================
   MOTORRAD-TRACKS – Design "Foto · Sundown" (Variante H)
   Warmes Abendlicht auf Tiefschwarz · Gratisservice der ECL GmbH
   ============================================================ */

:root {
  --ink: #0a0708;          /* Grundton */
  --ink-2: #140d0b;        /* Panels */
  --panel: #1e1310;        /* Karten */
  --panel-2: #2a1a15;
  --cream: #f6ecdc;        /* Text */
  --amber: #ffa63a;        /* Akzent */
  --amber-soft: rgba(255, 166, 58, 0.16);
  --rust: #b83c17;         /* Zweitakzent */
  --muted: #b6a08c;
  --line: rgba(246, 236, 220, 0.12);
  --radius: 3px;
  --disp: Impact, Haettenschweiler, "Arial Black", "Arial Narrow Bold", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  line-height: 1.6;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffc978; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .btn, .date-chip, .spd, .free-service, .legal-links a { letter-spacing: 0.03em; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 800;
  background: rgba(9, 6, 7, 0.94);
  border-bottom: 2px solid var(--rust);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75);
}
.site-header .inner {
  display: flex; align-items: center; gap: 12px;
  height: 70px; max-width: 1120px; margin: 0 auto; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img, .brand svg { width: 56px; height: 34px; flex-shrink: 0; }
.brand .wordmark {
  font-family: var(--disp); text-transform: uppercase; font-size: 23px;
  color: var(--cream); letter-spacing: 0.05em; line-height: 1;
}
.brand .wordmark b { color: var(--amber); }
.brand .wordmark .sub {
  display: block; font-family: var(--body); text-transform: none; letter-spacing: 0.14em;
  font-size: 9.5px; color: var(--muted); margin-top: 4px;
}
.site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }

/* Burger-Button: nur auf schmalen Bildschirmen sichtbar (siehe Media-Query unten) */
.nav-toggle {
  display: none; margin-left: auto; flex: 0 0 auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: rgba(246, 236, 220, 0.06);
  border: 1px solid rgba(246, 236, 220, 0.25); border-radius: 3px;
  color: var(--cream); font-size: 21px; line-height: 1; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--amber); color: #fff; }
.nav-toggle:active { background: rgba(255, 166, 58, 0.18); }
.site-nav a {
  font-family: var(--disp); text-transform: uppercase; font-size: 13.5px; letter-spacing: 0.07em;
  color: var(--muted); padding: 9px 12px; border-radius: 2px;
}
.site-nav a:hover { color: var(--cream); background: rgba(255, 166, 58, 0.12); }

/* ---------------- Hero (Startseite) ---------------- */

.hero {
  position: relative; overflow: hidden;
  padding: 62px 0 74px;
  background-image: url("/img/photo-sunset.jpg");
  background-size: cover; background-position: center 40%;
  border-bottom: 3px solid var(--rust);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,4,5,.95) 0%, rgba(6,4,5,.72) 44%, rgba(6,4,5,.18) 82%);
}
.hero .container, .hero .wrap { position: relative; z-index: 2; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1;
  background: linear-gradient(180deg, rgba(10,7,8,0), rgba(10,7,8,.92));
}

.hero .kicker {
  display: inline-block; font-family: var(--disp); text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.22em; color: #2a0d05;
  background: linear-gradient(180deg, #ffc978, var(--amber));
  padding: 6px 14px; margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--disp); text-transform: uppercase; margin: 0;
  font-size: clamp(48px, 8.5vw, 104px); line-height: 0.9;
  color: #fff8ee; text-shadow: 0 4px 26px rgba(0,0,0,.85);
}
.hero h1 .hl { display: block; color: var(--amber); text-shadow: 0 0 30px rgba(255,166,58,.55); }

.hero p.sub {
  max-width: 560px; margin: 18px 0 24px; color: #eeddc6; font-size: 17px;
  text-shadow: 0 2px 12px #000;
}
.hero p.sub b { color: #fff; }

.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .stats { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.stat-chip {
  background: rgba(18, 11, 9, 0.84);
  border: 1px solid rgba(255, 166, 58, 0.3); border-left: 3px solid var(--amber);
  padding: 9px 17px; font-size: 13px; color: var(--muted); border-radius: 2px;
}
.stat-chip b {
  font-family: var(--disp); color: #fff; font-size: 21px; margin-right: 8px;
  vertical-align: -2px; letter-spacing: 0.02em;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--disp); text-transform: uppercase; font-size: 15.5px; letter-spacing: 0.05em;
  padding: 13px 24px; border-radius: var(--radius); border: 1px solid transparent;
  transition: filter 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(2px); }
.btn-primary {
  background: linear-gradient(180deg, #ffb95e, var(--amber) 55%, var(--rust));
  color: #2a0d05; border-color: rgba(255, 220, 170, 0.5);
  box-shadow: 0 8px 24px rgba(255, 166, 58, 0.28);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 10px 30px rgba(255,166,58,.42); }
.btn-ghost {
  background: rgba(246, 236, 220, 0.05); color: var(--cream);
  border-color: rgba(246, 236, 220, 0.5);
}
.btn-ghost:hover { border-color: var(--amber); background: rgba(255, 166, 58, 0.12); color: #fff; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------------- Track-Galerie ---------------- */

.section { padding: 52px 0 68px; }
.section-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section h2 {
  font-family: var(--disp); text-transform: uppercase; margin: 0;
  font-size: clamp(30px, 4.4vw, 44px); color: #fff8ee;
  text-shadow: 0 3px 14px rgba(0,0,0,.7);
}
.section h2::after {
  content: ""; display: block; width: 132px; height: 5px; margin-top: 10px;
  background: linear-gradient(90deg, var(--amber), var(--rust));
}
.flames { height: 58px; width: auto; opacity: 0.9; margin-bottom: 6px;
  filter: drop-shadow(0 4px 14px rgba(255, 166, 58, 0.45)); }
.section .hint { color: var(--muted); margin: 16px 0 28px; font-size: 15px; max-width: 760px; }

.track-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.track-card {
  display: block; color: var(--cream); padding: 20px;
  background: linear-gradient(180deg, var(--panel), #120b0a);
  border: 1px solid #38241d; border-left: 4px solid var(--amber); border-radius: 2px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.track-card:hover {
  transform: translateY(-4px); border-color: #6b3a24;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.62);
}
.track-card .date-chip {
  display: inline-block; font-family: var(--disp); text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.12em; color: var(--amber);
  border-bottom: 2px solid var(--rust); padding-bottom: 3px; margin-bottom: 12px;
}
.track-card h3 { font-family: var(--disp); text-transform: uppercase; margin: 0 0 6px; font-size: 26px; color: #fff; }
.track-card .rider { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.track-card .desc {
  color: #cfbaa4; font-size: 14px; margin: 0 0 16px; min-height: 20px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.track-card .meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid #38241d; padding-top: 12px;
}
.meta-item { font-size: 12.5px; color: var(--muted); }
.meta-item b {
  font-family: var(--disp); color: var(--amber); font-size: 17px; margin-right: 5px;
  vertical-align: -2px; letter-spacing: 0.02em;
}

.empty-state {
  border: 2px dashed rgba(255, 166, 58, 0.32); border-radius: 3px;
  padding: 50px 20px; text-align: center; color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------------- Track-Detailseite ---------------- */

.detail-hero {
  position: relative; overflow: hidden;
  background-image: url("/img/photo-sunset.jpg");
  background-size: cover; background-position: center 46%;
  border-bottom: 2px solid var(--rust);
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,4,5,.96) 0%, rgba(6,4,5,.84) 55%, rgba(6,4,5,.55) 100%);
}
.detail-hero .container { position: relative; z-index: 2; }

.detail-head { padding: 32px 0 26px; }
.back-link {
  font-family: var(--disp); text-transform: uppercase; font-size: 13px; letter-spacing: 0.1em;
  color: var(--muted); display: inline-block; margin-bottom: 16px;
}
.back-link:hover { color: var(--amber); }

.detail-head h1 {
  font-family: var(--disp); text-transform: uppercase; margin: 0 0 6px;
  font-size: clamp(32px, 5.4vw, 58px); color: #fff8ee; text-shadow: 0 3px 16px rgba(0,0,0,.75);
}
.detail-head .rider-line {
  font-family: var(--disp); text-transform: uppercase; font-size: 19px; letter-spacing: 0.07em;
  color: var(--amber); margin-bottom: 12px;
}
.detail-head .desc-text { color: #cfbaa4; max-width: 760px; margin: 0 0 18px; white-space: pre-wrap; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.info-chip {
  background: linear-gradient(180deg, rgba(30, 19, 16, 0.92), rgba(14, 9, 8, 0.92));
  border: 1px solid var(--line); border-bottom: 2px solid var(--amber);
  padding: 8px 16px; font-size: 13.5px; color: var(--muted); border-radius: 2px;
}
.info-chip b { font-family: var(--disp); color: #fff; font-size: 18px; margin-right: 6px; vertical-align: -2px; }

/* Karte + Player */
.map-wrap {
  position: relative; border-radius: 3px; overflow: hidden;
  border: 2px solid #000; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}
#map { height: min(58vh, 560px); width: 100%; background: #140d0b; }

.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 800;
  background: linear-gradient(180deg, rgba(10,7,8,.88), rgba(10,7,8,.97));
  border-top: 2px solid rgba(255, 166, 58, 0.55); padding: 10px 14px 12px;
}
.player-row { display: flex; align-items: center; gap: 12px; }
.play-btn {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  border: 2px solid #ffc978; color: #2a0d05; font-size: 19px;
  background: linear-gradient(180deg, #ffb95e, var(--amber));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 166, 58, 0.4);
}
.play-btn:hover { filter: brightness(1.08); }
.player-bar input[type="range"] { flex: 1; accent-color: var(--amber); height: 26px; margin: 0; min-width: 60px; }
.time-label {
  font-family: var(--disp); font-size: 19px; letter-spacing: 0.06em; color: #fff;
  min-width: 92px; text-align: right; flex-shrink: 0;
}
.speed-row { display: flex; justify-content: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.spd {
  font-family: var(--disp); font-size: 13px; letter-spacing: 0.05em; cursor: pointer;
  padding: 5px 14px; border-radius: 2px;
  border: 1px solid rgba(246, 236, 220, 0.2); background: rgba(246, 236, 220, 0.04); color: var(--muted);
}
.spd:hover { color: #fff; border-color: rgba(255, 166, 58, 0.6); }
.spd.active {
  background: linear-gradient(180deg, #ffb95e, var(--amber)); border-color: #ffc978; color: #2a0d05;
  box-shadow: 0 4px 14px rgba(255, 166, 58, 0.38);
}

/* Panels (Download / Fotos / Film) */
.panel {
  margin-top: 22px; padding: 22px 24px 24px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(28, 18, 15, 0.95), rgba(12, 8, 7, 0.96));
  border: 1px solid #38241d; border-top: 3px solid rgba(255, 166, 58, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.panel-title {
  font-family: var(--disp); text-transform: uppercase; margin: 0 0 10px;
  font-size: 27px; color: #fff8ee;
}
.panel .hint { margin: 0 0 16px; }
.hint { color: var(--muted); font-size: 14.5px; }
.hint.small { font-size: 13px; line-height: 1.65; }
.hint b { color: #e6d8c4; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-row .btn { padding: 11px 18px; font-size: 14.5px; }

.photo-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.photo-card {
  margin: 0; flex: 0 0 auto; width: 216px; cursor: pointer; border-radius: 2px; overflow: hidden;
  border: 1px solid #38241d; background: var(--panel);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.photo-card:hover { transform: translateY(-4px); border-color: rgba(255, 166, 58, 0.6); }
.photo-card img { display: block; width: 100%; height: 146px; object-fit: cover; }
.photo-card figcaption { padding: 9px 11px; font-size: 12.5px; color: var(--muted); }

.photo-pin {
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a2419, #0b0706);
  border: 2px solid var(--amber); display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; box-shadow: 0 0 14px rgba(255, 166, 58, 0.55);
}

.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(5, 4, 4, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; cursor: zoom-out;
}
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 80vh; border-radius: 2px;
  border: 2px solid rgba(255, 166, 58, 0.5); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}
.lightbox-caption { color: #ded2c0; font-size: 14px; }
.lightbox-close {
  position: absolute; top: 16px; right: 22px; background: transparent; border: none;
  color: #fff; font-size: 38px; line-height: 1; cursor: pointer; text-shadow: 0 2px 8px #000;
}
/* Höhenprofil */
.profile { width: 100%; height: auto; max-height: 280px; display: block;
  background: linear-gradient(180deg, rgba(255,166,58,.05), rgba(0,0,0,0));
  border: 1px solid #38241d; border-radius: 2px; }
.profile-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.video-progress {
  font-family: var(--disp); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 14px; color: var(--amber); min-width: 90px;
}

/* ---------------- Route-Marker ---------------- */

.mt-dot { border-radius: 50%; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.75); }
.mt-dot.start { width: 14px; height: 14px; background: #6ee07a; border: 2px solid #06240f; margin: 3px; }
.mt-dot.end   { width: 14px; height: 14px; background: #e0463a; border: 2px solid #2b0407; margin: 3px; }
.mt-dot.anim  { width: 22px; height: 22px; background: #fff; border: 4px solid var(--amber);
  box-shadow: 0 0 20px rgba(255, 166, 58, 0.95); }

/* Leaflet dunkel */
.leaflet-container { background: #140d0b; font-family: var(--body); }
.leaflet-control-attribution {
  background: rgba(10, 7, 8, 0.8) !important; color: var(--muted) !important; font-size: 10.5px !important;
}
.leaflet-control-attribution a { color: #ded2c0 !important; }
.leaflet-bar a {
  background: #1a1210 !important; color: var(--cream) !important; border-bottom-color: #000 !important;
}
.leaflet-bar a:hover { background: #291a15 !important; }

/* ---------------- Rechtstexte ---------------- */

.legal { padding: 46px 0 74px; max-width: 820px; margin: 0 auto; }
.legal h1 {
  font-family: var(--disp); text-transform: uppercase;
  font-size: clamp(34px, 5.2vw, 54px); margin-bottom: 24px; color: #fff8ee;
}
.legal h1::after {
  content: ""; display: block; width: 132px; height: 5px; margin-top: 12px;
  background: linear-gradient(90deg, var(--amber), var(--rust));
}
.legal h2 {
  font-family: var(--disp); text-transform: uppercase; font-size: 20px; margin-top: 34px;
  color: var(--amber); border-bottom: 1px solid rgba(255, 166, 58, 0.25); padding-bottom: 6px;
}
.legal p, .legal li { color: #cfbaa4; font-size: 14.5px; }
.legal ul { padding-left: 22px; }
.legal .free-note {
  background: linear-gradient(180deg, rgba(184, 60, 23, 0.24), rgba(120, 36, 12, 0.14));
  border: 1px solid rgba(255, 166, 58, 0.42); border-left: 4px solid var(--amber);
  border-radius: 2px; padding: 16px 20px; margin: 24px 0; color: #f2e6d6; font-size: 14.5px;
}

/* ---------------- Footer ---------------- */

.site-footer { border-top: 3px solid var(--rust); background: #090607; padding: 0 0 36px; margin-top: 20px; }
.site-footer .tread {
  height: 34px; background-image: url("/img/tread.png"); background-repeat: repeat-x;
  background-size: auto 34px; opacity: 0.35; margin-bottom: 22px;
}
.site-footer .inner {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
}
.site-footer .legal-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
.site-footer .legal-links a {
  font-family: var(--disp); text-transform: uppercase; color: var(--muted);
}
.site-footer .legal-links a:hover { color: var(--amber); }
.site-footer .free-service { color: var(--muted); font-size: 13px; max-width: 560px; }

/* ---------------- Responsive ---------------- */

/* Kopfbereich + Menü: ab hier (Handy und Tablet hochkant) klappbar */
@media (max-width: 860px) {
  .site-header .inner { height: 62px; gap: 10px; padding: 0 14px; position: relative; }
  .brand img, .brand svg { width: 44px; height: 27px; }
  .brand .wordmark { font-size: 18px; }
  .brand .wordmark .sub { display: none; }   /* Untertitel spart Platz */
  .nav-toggle { display: flex; }

  /* Menü als aufklappbares Panel unter dem Header */
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    margin: 0; flex-direction: column; gap: 0;
    background: #0b0c0f;
    border-top: 2px solid var(--rust);
    border-bottom: 1px solid rgba(246, 236, 220, 0.12);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.75);
    padding: 6px 10px 10px; max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 15px 12px; font-size: 15.5px;
    border-bottom: 1px solid rgba(246, 236, 220, 0.09);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a:hover { background: rgba(255, 166, 58, 0.10); }
}

@media (max-width: 760px) {
  .hero { padding: 46px 0 60px; background-position: center 34%; }
  .hero h1 { font-size: clamp(40px, 13vw, 66px); }
  #map { height: 44vh; }
  .photo-card { width: 168px; }
  .photo-card img { height: 112px; }
  .panel { padding: 18px 16px 20px; }
  .btn { padding: 11px 17px; font-size: 14px; }
}
