/* =========================================================================
   Schottlands Küsten & Inselwelten — Reiseblog
   Maritim-klares Design. Eine zentrale Stildatei für alle Seiten.
   ========================================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben — Nordsee-Palette */
  --tief:        #0b2a3a;   /* Tiefsee-Navy, Haupttext & dunkle Flächen */
  --tief-2:      #103a4f;   /* etwas heller, Karten auf dunklem Grund */
  --petrol:      #1f6f78;   /* Petrol, Akzent & Links */
  --petrol-h:    #2a8c93;   /* Petrol hell, Hover */
  --moewe:       #c9d6dd;   /* kühles Hellgrau-Blau, Linien */
  --nebel:       #eef3f5;   /* Seiten-Hintergrund */
  --schaum:      #ffffff;   /* Karten, Flächen */
  --sand:        #d8a657;   /* warmer Kontrast (Leuchtfeuer-Gelb), sparsam */
  --sand-d:      #b9863b;
  --text:        #1c2b33;   /* Fließtext */
  --text-leise:  #5a6e78;   /* gedämpft, Captions */
  --warn-bg:     #fff6e6;   /* Hinweis-/Warnboxen */
  --warn-bd:     #e6b450;
  --tipp-bg:     #eaf4f3;   /* Tipp-Boxen */
  --tipp-bd:     #1f6f78;

  /* Typografie — eine moderne geometrische Sans (GetYourGuide-Anmutung) */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Maße */
  --maxw: 1080px;
  --maxw-text: 720px;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 6px 24px rgba(11, 42, 58, 0.10);
  --shadow-lg: 0 14px 40px rgba(11, 42, 58, 0.18);
  --gap: clamp(1rem, 2.5vw, 2rem);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--nebel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--petrol); text-decoration: none; }
a:hover { color: var(--petrol-h); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; border-radius: 3px; }

/* ---------- Typografie (GetYourGuide-Anmutung: kräftige Sans, klare Hierarchie) ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--tief); }
h1 { font-size: clamp(2.05rem, 5vw, 3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.05rem); margin-top: 2.6em; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.18rem, 2.4vw, 1.4rem); margin-top: 1.8em; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--petrol);
}

/* ---------- Layout-Container ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.wrap-text { max-width: var(--maxw-text); margin-inline: auto; padding-inline: var(--gap); }

/* =========================================================================
   Kopfzeile / Navigation
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11, 42, 58, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; max-width: var(--maxw); margin-inline: auto;
  padding: 0.7rem var(--gap);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.brand:hover { color: #fff; text-decoration: none; }
.brand .compass { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 0.3rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--moewe); font-size: 0.9rem; font-weight: 500;
  padding: 0.4rem 0.7rem; border-radius: 999px; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }
.nav-links a.active { color: var(--tief); background: var(--sand); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.12); color: #fff; border: 0;
    width: 42px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 1.2rem;
  }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--tief); padding: 0.5rem var(--gap) 1rem;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { max-height: 30rem; }
  .nav-links a { display: block; padding: 0.7rem 0.6rem; border-radius: 8px; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--tief);
}
.hero::after { /* dunkler Verlauf für Lesbarkeit */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,42,58,0.30) 0%, rgba(11,42,58,0.55) 55%, rgba(11,42,58,0.85) 100%);
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(4rem, 14vh, 9rem) var(--gap) clamp(3rem, 8vh, 5rem);
}
.hero .eyebrow { color: var(--sand); }
.hero h1 { color: #fff; max-width: 16ch; margin: 0.3em 0 0.4em; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; color: #eaf1f4; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.6rem;
  font-size: 0.95rem; color: #dce7ec;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta strong { color: #fff; font-weight: 600; }

/* Destinations-Hero (kompakter, mit Bild) */
.page-hero { position: relative; color: #fff; background: var(--tief); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,42,58,0.25), rgba(11,42,58,0.78));
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(2.5rem, 9vh, 5rem) var(--gap) clamp(1.6rem, 4vh, 2.6rem);
}
.page-hero .kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.14); color: #fff;
  padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 0.9rem;
}
.page-hero h1 { color: #fff; margin: 0 0 0.3em; }
.page-hero .sub { font-size: 1.1rem; color: #e8f0f3; max-width: 50ch; margin: 0; }
.photo-credit {
  position: absolute; right: 0.6rem; bottom: 0.5rem; z-index: 2;
  font-size: 0.68rem; color: rgba(255,255,255,0.78);
  background: rgba(11,42,58,0.45); padding: 0.15rem 0.5rem; border-radius: 6px;
}
.photo-credit a { color: rgba(255,255,255,0.9); text-decoration: underline; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.7rem 1.25rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sand); color: var(--tief); }
.btn-primary:hover { background: #e6b667; color: var(--tief); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-solid { background: var(--petrol); color: #fff; }
.btn-solid:hover { background: var(--petrol-h); color: #fff; box-shadow: var(--shadow); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* =========================================================================
   Sektionen / Fließtext
   ========================================================================= */
.section { padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.section-tinted { background: var(--schaum); border-block: 1px solid var(--moewe); }

.lead-in { font-size: 1.18rem; color: var(--text); }
.prose :is(h2, h3) { scroll-margin-top: 5rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose hr { border: 0; border-top: 1px solid var(--moewe); margin: 2.5em 0; }
.prose a { font-weight: 500; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* =========================================================================
   Etappen-Übersicht (Startseite) — die Reise als Kette
   ========================================================================= */
.voyage {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.port-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--schaum); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--moewe);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.port-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.port-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--tief-2); }
.port-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.port-card:hover .thumb img { transform: scale(1.05); }
.port-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.port-card .day {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--petrol); margin-bottom: 0.25rem;
}
.port-card h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.port-card p { font-size: 0.95rem; color: var(--text-leise); margin: 0 0 1rem; flex: 1; }
.port-card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tag {
  font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--tipp-bg); color: var(--petrol); border: 1px solid #cfe3e2;
}
.tag.paid { background: #fbf0dd; color: var(--sand-d); border-color: #ecd6a8; }
.port-card .num {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11,42,58,0.82); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}

/* =========================================================================
   Karte (Leaflet)
   ========================================================================= */
.map-block { margin: 1.8rem 0; }
.map {
  width: 100%; height: 460px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--moewe); background: var(--moewe);
  z-index: 0;
}
.map-overview { height: 540px; }
.map-note { font-size: 0.85rem; color: var(--text-leise); margin-top: 0.6rem; }
.leaflet-container { font-family: var(--font-body); border-radius: var(--radius); }
.leaflet-popup-content { font-size: 0.92rem; line-height: 1.5; }
.leaflet-popup-content strong { color: var(--tief); }
.map-fallback {
  display: none; padding: 1rem 1.2rem; background: var(--warn-bg);
  border: 1px solid var(--warn-bd); border-radius: var(--radius-s);
  font-size: 0.92rem; margin-top: 0.8rem;
}
.map-fallback.show { display: block; }

/* Legende für Wegpunkte */
.map-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 0.8rem; font-size: 0.85rem; color: var(--text-leise); }
.map-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.dot.start { background: #2e8b57; }
.dot.stop  { background: var(--petrol); }
.dot.pub   { background: var(--sand); }
.dot.paid  { background: #b04632; }

/* =========================================================================
   Download-Box (GPX)
   ========================================================================= */
.gpx-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  background: var(--tief); color: #fff; border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin: 1.8rem 0; box-shadow: var(--shadow);
}
.gpx-box .ico { width: 42px; height: 42px; flex: none; color: var(--sand); }
.gpx-box .txt { flex: 1; min-width: 220px; }
.gpx-box .txt strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.gpx-box .txt span { font-size: 0.9rem; color: var(--moewe); }

/* =========================================================================
   Info-/Hinweis-Boxen
   ========================================================================= */
.box { border-radius: var(--radius-s); padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: 0.97rem; }
.box p:last-child { margin-bottom: 0; }
.box-warn { background: var(--warn-bg); border-left: 4px solid var(--warn-bd); }
.box-tip  { background: var(--tipp-bg); border-left: 4px solid var(--tipp-bd); }
.box-title { font-weight: 700; color: var(--tief); display: block; margin-bottom: 0.2rem; }

/* Varianten-Umschalter (Invergordon, Kirkwall) */
.variant-switch { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0; }
.variant-switch .btn { font-size: 0.92rem; }
.variant-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--petrol); color: var(--petrol); background: transparent;
  font-weight: 600; font-size: 0.92rem; font-family: var(--font-body);
}
.variant-pill[aria-selected="true"] { background: var(--petrol); color: #fff; }

/* Fakten-Tabelle */
.facts { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.95rem; background: var(--schaum); border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--shadow); }
.facts th, .facts td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--moewe); vertical-align: top; }
.facts tr:last-child :is(th,td) { border-bottom: 0; }
.facts th { background: var(--tipp-bg); color: var(--tief); font-weight: 600; width: 38%; }
.facts caption { text-align: left; font-weight: 600; color: var(--tief); margin-bottom: 0.5rem; font-family: var(--font-display); font-size: 1.1rem; }

/* Kosten-/Quick-Cards */
.quick-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 1.4rem 0; }
.quick {
  background: var(--schaum); border: 1px solid var(--moewe); border-radius: var(--radius-s);
  padding: 1rem 1.1rem; box-shadow: var(--shadow);
}
.quick .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-leise); font-weight: 600; }
.quick .v { font-family: var(--font-display); font-size: 1.4rem; color: var(--tief); margin-top: 0.15rem; }
.quick .v small { font-size: 0.9rem; color: var(--text-leise); }

/* =========================================================================
   Inter-Port-Navigation (vor/zurück)
   ========================================================================= */
.port-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 3rem 0 1rem; }
.port-nav a {
  display: flex; flex-direction: column; gap: 0.15rem; max-width: 48%;
  padding: 0.9rem 1.2rem; background: var(--schaum); border: 1px solid var(--moewe);
  border-radius: var(--radius-s); box-shadow: var(--shadow); text-decoration: none;
}
.port-nav a:hover { text-decoration: none; border-color: var(--petrol); }
.port-nav .dir { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-leise); font-weight: 600; }
.port-nav .nm { font-family: var(--font-display); font-size: 1.1rem; color: var(--tief); }
.port-nav .next { text-align: right; margin-left: auto; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--tief); color: var(--moewe); margin-top: 3rem; }
.site-footer .wrap { padding-block: 2.5rem; }
.site-footer h4 { color: #fff; margin: 0 0 0.6rem; font-size: 1rem; }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.35rem; }
.footer-grid a { color: var(--moewe); font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-note { font-size: 0.82rem; color: #8aa3b0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.3rem;
  font-size: 0.8rem; color: #8aa3b0; line-height: 1.6;
}
.footer-bottom a { color: #aebfc8; text-decoration: underline; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .map { height: 360px; }
  .map-overview { height: 420px; }
  .port-nav a { max-width: 100%; }
}

/* Kleine Helfer */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.credits-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.credits-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--moewe); font-size: 0.9rem; color: var(--text-leise); }
.credits-list strong { color: var(--text); }
