/* ==========================================================================
   Glenfinnan Viadukt Touren — Stylesheet
   Palette: pine teal (primary), heather gold (accent), brick red (CTA)
   ========================================================================== */

:root {
  --color-primary: #123F38;
  --color-primary-dark: #0B2B26;
  --color-primary-light: #1D5A4F;
  --color-accent: #C6A233;
  --color-accent-dark: #A3841F;
  --color-cta: #A6402E;
  --color-cta-dark: #863023;
  --color-btn-bg: #1E7A52;
  --color-btn-bg-dark: #145C3D;
  --color-bg: #F7F5EC;
  --color-bg-soft: #EEF2ED;
  --color-surface: #FFFFFF;
  --color-border: #DDE3D9;
  --color-text: #202922;
  --color-text-muted: #56635A;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --shadow-card: 0 10px 30px -14px rgba(18, 63, 56, 0.28);
  --shadow-btn: 0 8px 20px -8px rgba(30, 122, 82, 0.55);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-primary-dark);
  line-height: 1.18;
  font-weight: 600;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: 10px;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 2.6rem;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-head p { margin-top: 0.9rem; color: var(--color-text-muted); font-size: 1.02rem; }

section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.bg-soft { background: var(--color-bg-soft); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-s) 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: normal;
}
.btn-primary {
  background: var(--color-btn-bg);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-btn-bg-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--color-primary-dark); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--color-primary-dark);
}
.btn-light:hover, .btn-light:focus-visible { background: var(--color-accent); color: var(--color-primary-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.btn .ext-ico { font-size: 0.85em; opacity: 0.85; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 245, 236, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  max-width: 1320px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}
.brand svg { width: 38px; height: 24px; flex-shrink: 0; }
.brand span { white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 1.35rem; flex-wrap: nowrap; }
.main-nav a {
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-cta);
  transition: right 0.2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }

/* ---------- Nav "Lesestoff" dropdown (flat list, no sub-categories) ---------- */
.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.91rem;
  color: var(--color-primary-dark);
  padding: 6px 2px;
  white-space: nowrap;
}
.plus-icon {
  width: 15px; height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.plus-icon::before, .plus-icon::after { content: ""; position: absolute; background: currentColor; }
.plus-icon::before { left: 3px; right: 3px; top: 50%; height: 1.4px; transform: translateY(-50%); }
.plus-icon::after { top: 3px; bottom: 3px; left: 50%; width: 1.4px; transform: translateX(-50%); transition: opacity 0.15s ease; }
.nav-dropdown-toggle[aria-expanded="true"] .plus-icon::after { opacity: 0; }

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.nav-dropdown-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: normal;
}
.nav-dropdown-menu li a:hover, .nav-dropdown-menu li a:focus-visible { background: var(--color-bg-soft); color: var(--color-primary-dark); }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-s);
  align-items: center;
  justify-content: center;
}
.hamburger:hover { background: var(--color-bg-soft); }
.hamburger span {
  position: relative;
  width: 24px; height: 2px;
  background: var(--color-primary-dark);
  display: block;
}
.hamburger span::before, .hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px; height: 2px;
  background: var(--color-primary-dark);
  transition: transform 0.25s ease, top 0.25s ease;
}
.hamburger span::before { top: -8px; }
.hamburger span::after { top: 8px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 43, 38, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 400;
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(3.4rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(11,43,38,0.86) 0%, rgba(11,43,38,0.78) 45%, rgba(11,43,38,0.94) 100%),
    url("../images/glenfinnan%20viaduct%20website.jpg");
  background-size: cover;
  background-position: center 62%;
  z-index: -1;
}
.hero .container { max-width: 820px; text-align: center; }
.hero .eyebrow { color: var(--color-accent); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  letter-spacing: -0.01em;
}
.hero-intro {
  margin: 1.2rem auto 2.2rem;
  max-width: 620px;
  color: #EAF1EC;
  font-size: 1.08rem;
}
.hero .btn-row { justify-content: center; }
.hero-note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: #C9D6CD;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-btn {
  all: unset;
  display: block;
  width: 100%; height: 100%;
  cursor: default;
}
.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 43, 38, 0.0);
  opacity: 0;
  pointer-events: none; /* purely decorative — must never steal the click from .gallery-btn beneath it */
  transition: opacity 0.25s ease, background 0.25s ease;
}
.gallery-overlay svg { width: 34px; height: 34px; stroke: #fff; }

/* Fullsize viewing affordance: desktop / mouse pointers only */
@media (hover: hover) and (pointer: fine) {
  .is-desktop-lightbox .gallery-btn { cursor: zoom-in; }
  .is-desktop-lightbox .gallery-item:hover img { transform: scale(1.06); }
  .is-desktop-lightbox .gallery-item:hover .gallery-overlay,
  .is-desktop-lightbox .gallery-btn:focus-visible + .gallery-overlay {
    opacity: 1;
    background: rgba(11, 43, 38, 0.28);
  }
}

.lightbox {
  position: fixed; inset: 0;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  background: rgba(9, 25, 22, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-s); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.24); }

/* ---------- Comparison table ---------- */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 4px 18px -10px rgba(18, 63, 56, 0.18);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 640px;
}
.compare-table colgroup .col-label { width: 25%; }
.compare-table colgroup col:not(.col-label) { width: 37.5%; }
.compare-table caption { text-align: left; padding: 1.2rem 1.4rem 0; color: var(--color-text-muted); font-size: 0.85rem; }
.compare-table th, .compare-table td {
  padding: 1rem 1.4rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}
.compare-table thead th {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  border-bottom: 2px solid var(--color-primary);
  padding-top: 1.3rem;
  padding-bottom: 1.1rem;
}
.compare-table thead th:first-child { color: var(--color-text-muted); font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-table tbody th {
  font-weight: 600;
  color: var(--color-text);
  /* deliberately NOT nowrap: with table-layout:fixed a long label must be
     free to wrap onto multiple lines, otherwise it overflows its column
     width and visually collides with the next cell on narrow screens */
}
.compare-table tbody tr:nth-child(even) { background: var(--color-bg-soft); }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: none; }
.compare-table .table-yes, .compare-table .table-no {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
}
.compare-table .table-yes { color: var(--color-primary); }
.compare-table .table-no { color: var(--color-cta); }
.compare-table .table-partial { color: var(--color-accent-dark); }
.price-tag { font-weight: 700; letter-spacing: 0.04em; color: var(--color-primary); }
.compare-table .buy-row th { background: var(--color-surface); }
.compare-table .buy-row td { text-align: center; padding: 1.3rem 1rem; }
.btn-table {
  padding: 0.7rem 1.1rem;
  font-size: 0.92rem;
  width: 100%;
  max-width: 260px;
}
.scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.7rem;
}
.table-footnote {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  max-width: 760px;
}

/* ---------- Tour sections ---------- */
.tour-section { scroll-margin-top: calc(var(--header-h) + 12px); }
.tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.tour-section:nth-of-type(even) .tour-grid,
.tour-media-right .tour-grid { direction: rtl; }
.tour-media-right .tour-grid > * { direction: ltr; }
.tour-media {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.tour-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-copy .badge {
  display: inline-block;
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.tour-copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.9rem; }
.tour-copy p.lead { color: var(--color-text-muted); margin-bottom: 1.3rem; }
.tour-highlights { display: grid; gap: 0.65rem; margin-bottom: 1.7rem; }
.tour-highlights li { display: flex; gap: 0.65rem; align-items: flex-start; }
.tour-highlights svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; stroke: var(--color-cta); }
.fine-print {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.review-card .stars { color: var(--color-accent-dark); letter-spacing: 2px; font-size: 0.95rem; }
.review-card .stars .dim { color: #D8D2BC; }
.review-card blockquote { color: var(--color-text); font-size: 0.97rem; flex-grow: 1; }
.review-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.3rem; }
.review-who strong { display: block; font-size: 0.95rem; color: var(--color-primary-dark); }
.review-who span { display: block; font-size: 0.82rem; color: var(--color-text-muted); }
.review-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: var(--color-bg-soft);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
}

/* ---------- Pre-footer article hub ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-card h3 { font-size: 1.02rem; color: var(--color-primary-dark); }
.article-card p { font-size: 0.9rem; color: var(--color-text-muted); flex-grow: 1; }
.article-card-link { font-size: 0.88rem; font-weight: 700; color: var(--color-primary); }
.article-card-link:hover, .article-card-link:focus-visible { text-decoration: underline; }

/* ---------- Article pages (artikel/*.html) ---------- */
.article-hero {
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
  padding: clamp(2.6rem, 6vw, 4rem) 0 2.2rem;
  border-bottom: 1px solid var(--color-border);
}
.article-hero-inner { max-width: 760px; }
.article-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: 0.4rem; }
.article-lede { margin-top: 1rem; font-size: 1.05rem; color: var(--color-text-muted); }

.article-body { max-width: 760px; padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.article-body h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 2.2rem 0 1rem; }
.article-body h3 { font-size: 1.1rem; margin: 1.6rem 0 0.7rem; color: var(--color-primary-dark); }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 1.3rem; display: grid; gap: 0.5rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { padding-left: 0.2rem; }
.article-body a:not(.btn) { color: var(--color-primary); text-decoration: underline; text-decoration-color: var(--color-border); text-underline-offset: 3px; }
.article-body a:not(.btn):hover { text-decoration-color: currentColor; }
.article-body figure { margin: 1.6rem 0; }
.article-body img { border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.article-body figcaption { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.6rem; text-align: center; }

.article-table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border-radius: var(--radius-m); border: 1px solid var(--color-border); }
.article-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.article-table th, .article-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 0.94rem; }
.article-table thead th { background: var(--color-bg-soft); font-weight: 700; color: var(--color-primary-dark); }
.article-table tbody tr:last-child td { border-bottom: none; }

.article-callout {
  background: var(--color-bg-soft);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-s);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.96rem;
}
.article-callout strong { color: var(--color-primary-dark); }

.article-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  margin: 1.8rem 0;
  box-shadow: var(--shadow-card);
}
.article-cta p:last-of-type { margin-bottom: 1rem; }
.article-cta .btn-row { justify-content: flex-start; }

.article-backlink {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.cta-banner p { color: #CFE0D8; max-width: 560px; margin: 0.8rem auto 1.8rem; }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #CFE0D8;
  padding: 3.4rem 0 2rem;
  scroll-margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 0.8rem; }
.footer-brand svg { width: 36px; height: 24px; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { display: grid; gap: 0.55rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: #fff; text-decoration: underline; }
.footer-contact li { margin-bottom: 0.6rem; }
.footer-note { font-size: 0.9rem; max-width: 380px; color: #A9C2B6; }
.disclaimer {
  font-size: 0.8rem;
  line-height: 1.7;
  color: #93AC9F;
  max-width: 900px;
  margin: 1.8rem 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8AA396;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-btn-bg);
  color: #fff;
  box-shadow: var(--shadow-btn);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
  z-index: 300;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--color-btn-bg-dark); }
.back-to-top svg { width: 22px; height: 22px; stroke: #fff; }

/* ==========================================================================
   Responsive: tablet
   ========================================================================== */
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Responsive: mobile — hamburger nav, stacked layout, uniform centered buttons
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(80vw, 320px);
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 1.4rem) 1.6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -12px 0 30px rgba(0,0,0,0.18);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a {
    padding: 0.95rem 0.2rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.05rem;
  }
  .main-nav a::after { display: none; }
  .hamburger { display: inline-flex; }

  /* "Lesestoff" becomes an inline accordion inside the drawer instead of a floating panel */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.95rem 0.2rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.05rem;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--color-bg-soft);
    min-width: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.3s ease;
  }
  .nav-dropdown-menu.is-open { max-height: 600px; }
  .nav-dropdown-menu li a { padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--color-border); }

  /* Uniform, centered buttons everywhere on mobile — same explicit width
     for every .btn regardless of its parent container's own padding, so
     nothing (nav drawer CTA included) ends up a different size. */
  .btn { width: min(86vw, 340px); }
  .btn-row { flex-direction: column; align-items: center; justify-content: center; }
  /* Table action buttons stay sized to their cell, not the page-wide uniform width */
  .btn-table { width: 100%; max-width: 220px; }
  .hero .btn-row, .cta-banner .btn-row { align-items: center; }
  .tour-copy .btn-row { align-items: center; justify-content: center; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-section:nth-of-type(even) .tour-grid, .tour-media-right .tour-grid { direction: ltr; }
  .tour-copy { text-align: center; }
  .tour-highlights { justify-items: center; text-align: left; }
  .reviews-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-cta .btn-row { justify-content: center; }
  .article-hero-inner, .article-body { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .disclaimer { margin-left: auto; margin-right: auto; text-align: center; }
  .scroll-hint { display: block; }
  .table-footnote { text-align: center; margin-left: auto; margin-right: auto; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { padding: 1.2rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
