/* ==========================================
   reisen.guggbyte.com – Brand Stylesheet
   Palette übernommen von der Mutterseite guggbyte.com
   #0A0C14 (bg), #FFE600 (brand), #0D1B4B (navy), #161929 (surface)
   Fonts: Barlow Condensed (display), Barlow (body), IBM Plex Mono (mono)
   ========================================== */

:root {
  /* --- Mutterseiten-Palette (guggbyte.com) --- */
  --bg: #0A0C14;
  --bg-2: #0f1220;
  --surface: #161929;
  --surface-2: #1e2235;
  --border: #2a2f48;
  --brand: #FFE600;
  --brand-dim: #c9b600;
  --brand-glow: rgba(255, 230, 0, 0.15);
  --navy: #0D1B4B;
  --text: #e8eaf0;
  --text-dim: #8b90a8;
  --text-faint: #4a5070;

  /* --- Aliase für die bestehenden Reisen-Klassen --- */
  --bg-card: var(--surface);
  --ink: var(--text);
  --ink-muted: var(--text-dim);
  --brand-soft: var(--navy);
  --accent: var(--brand);
  --line: var(--border);

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.6);
  --radius: 4px;
  --radius-sm: 4px;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.5em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.muted { color: var(--text-dim); }
.small { font-size: 0.85em; }

code {
  background: var(--surface-2);
  color: var(--brand);
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 20, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }
.nav-mark {
  color: var(--brand);
  font-size: 1.15rem;
  transform: translateY(-1px);
}
.nav-logo {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 7px;
}
.nav-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  text-decoration: none;
}
@media (max-width: 600px) {
  .nav-links { gap: 1rem; font-size: 0.8rem; }
  .nav-inner { padding: 0.7rem 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 20% 20%, var(--brand-glow), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--bg) 70%);
  color: var(--text);
  padding: 5rem 1.5rem 4.5rem;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.4em;
}
.hero-logo {
  width: min(460px, 84%);
  height: auto;
  margin: 0.2em auto 1em;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 1.8em;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 500;
  margin: 0 0 0.6em;
}
.hero .kicker { color: var(--brand); }

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--bg);
  padding: 0.8em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
  box-shadow: 0 4px 18px var(--brand-glow);
}
.btn:hover {
  background: #fff176;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 1.5rem;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.container.narrow {
  max-width: 720px;
}

/* ---------- Card-Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-dim);
  text-decoration: none;
}
.card-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brand);
  background: linear-gradient(135deg, var(--navy) 0%, var(--surface-2) 100%);
}
.card-body {
  padding: 1.1rem 1.2rem 1.4rem;
}
.card-meta {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.4em;
}
.card h3 {
  margin: 0 0 0.4em;
  font-size: 1.3rem;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Article ---------- */
.article-head {
  padding: 5rem 1.5rem 4rem;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.article-head .container {
  max-width: 820px;
}
.article-head h1 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.3em;
}
.article-head .kicker {
  color: var(--brand);
}
.article-meta {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.article-body {
  max-width: 720px;
  padding: 3rem 1.5rem 4rem;
  font-size: 1.05rem;
  color: var(--text);
}
.article-body .lead {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 1.5em;
}
.article-body h2 {
  margin-top: 2em;
}
.article-body ul {
  padding-left: 1.4em;
}
.article-body ul li {
  margin: 0.3em 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.gallery img {
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- Tages-Bildraster im Reiseverlauf ---------- */
.figgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}
.figgrid figure { margin: 0; }
.figgrid img {
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.figgrid figcaption {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.day { margin-top: 2.2em; }
.day h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.day h3 .day-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.04em;
}
.roadsign-quote {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--text-dim);
}

/* ---------- Header-Slideshow (auto-Wechsel) ---------- */
.article-head { position: relative; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slides .slide.is-active { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.62));
}
.article-head > .container { position: relative; z-index: 2; }

/* ---------- Zitat-Sektion (Startseite) ---------- */
.quote-section {
  padding: 3.5rem 1.5rem;
  background:
    radial-gradient(circle at 80% 30%, var(--brand-glow), transparent 50%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  color: var(--text);
}
.quote figcaption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.back-link {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* ---------- Eckdaten-Tabelle ---------- */
.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.98rem;
}
.facts th,
.facts td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.facts th {
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
  width: 38%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ---------- Roadmap: Karte + Timeline ---------- */
.map {
  height: 440px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  background: var(--surface);
  z-index: 0;
}
.map-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin: -0.8rem 0 1.8rem;
}
.roadmap {
  list-style: none;
  padding-left: 0.4rem;
  margin: 1.5rem 0 2rem;
}
.roadmap li {
  position: relative;
  padding: 0 0 1.2rem 1.6rem;
  border-left: 2px solid var(--border);
}
.roadmap li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.roadmap li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--bg);
}
.roadmap .rm-time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.roadmap .rm-place {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}
.roadmap .rm-note {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.roadmap a { color: var(--text-dim); }
.roadmap a:hover { color: var(--brand); }

/* Leaflet-Popups an das dunkle Theme anpassen */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.leaflet-popup-content { font-family: var(--font-body); }
.leaflet-container { font-family: var(--font-body); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-2);
  color: var(--text-dim);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
}
.footer strong { color: var(--text); }
.footer a {
  color: var(--text-dim);
}
.footer a:hover { color: var(--brand); }
.footer .muted {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
}
