/* Museumsbahn Etzwilen-Singen – site stylesheet (written for this site). */

/* Open Sans, SIL Open Font License, self-hosted */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Outfit, SIL Open Font License, self-hosted: headings, navigation, buttons */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Colours follow the mascot's uniform: navy cloth, brass buttons, warm beaver brown. */
:root {
  --navy: #1b2d55;
  --navy-deep: #101d3a;
  --navy-soft: #2b4479;
  --gold: #f0b429;
  --gold-deep: #c98a06;
  --gold-soft: #fff4d6;
  --brown: #8a5a32;
  --sky: #eaf2fc;
  --cream: #faf6ef;
  --ink: #14213d;
  --text: #3d4659;
  --muted: #6b7486;
  --line: #e3e6ee;
  --red: #c8412f;
  --green: #2f7d52;
  --green-soft: #eef7f1;
  --band-bg: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(16, 29, 58, .10);
  --shadow-lift: 0 18px 40px rgba(16, 29, 58, .16);
  --display: 'Outfit', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --page-width: 1240px;
  --gutter: 32px;
  --header-height: 78px;
}

/* ---- base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--text);
  font: 16px/1.65 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { display: block; background: #fff; overflow-x: clip; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; }
h3 { font-size: 22px; }
h4 { font-size: 19px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }

p { margin: .85em 0; }
a { color: var(--navy-soft); text-decoration: underline; text-decoration-color: rgba(43, 68, 121, .3); text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-color: currentColor; }
strong, b { color: var(--ink); font-weight: 700; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
ul, ol { margin: .85em 0; padding-left: 1.5em; }
li { margin: .4em 0; }
iframe { max-width: 100%; border: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
blockquote {
  margin: 1.5em 0;
  padding: 18px 24px;
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cream);
  color: var(--text);
  font-size: 1.05em;
}
abbr[title] { text-decoration: none; color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 0 0 10px 10px; background: var(--gold); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 0; }

.float-left { float: left; margin: 4px 24px 12px 0; border-radius: var(--radius-sm); }
.float-right { float: right; margin: 4px 0 12px 24px; border-radius: var(--radius-sm); }
.centered { display: block; margin-left: auto; margin-right: auto; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.link-arrow { color: var(--navy); font-weight: 700; text-decoration: none; }
.link-arrow::after { content: '\2192'; display: inline-block; margin-left: 6px; transition: transform .2s; }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---- header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 18px rgba(16, 29, 58, .08);
}

.utility-bar { background: var(--navy); color: #dfe6f5; font-size: 13px; transition: margin-top .3s; }
.utility-bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.utility-bar a { color: #fff; text-decoration: none; }
.utility-bar a:hover { color: var(--gold); }
.utility-phone { display: flex; align-items: center; gap: 6px; margin: 0 auto 0 0; }
.utility-phone svg { color: var(--gold); }
.top-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.top-nav li { margin: 0; }
.top-nav a { display: block; padding: 0 10px; font-weight: 600; }
.top-nav a.is-current { color: var(--gold); }

.lang-menu { position: relative; }
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ''; width: 6px; height: 6px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lang-menu[open] summary, .lang-menu summary:hover { border-color: var(--gold); color: var(--gold); }
.lang-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
}
.lang-menu li { margin: 0; }
.lang-menu ul a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; }
.lang-menu ul a:hover { background: var(--sky); color: var(--navy); }
.lang-menu ul a[aria-current] { background: var(--gold-soft); }
.lang-short { display: inline-block; width: 30px; padding: 2px 0; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }

.masthead .wrap { display: flex; align-items: center; gap: 8px; height: var(--header-height); transition: height .3s; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand-badge { flex: 0 0 auto; width: 52px; height: 52px; border: 3px solid var(--gold); border-radius: 50%; background: var(--gold-soft); transition: width .3s, height .3s; }
.brand-name { display: flex; flex-direction: column; font-size: 21px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.brand-name small { margin-top: 3px; color: var(--gold-deep); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.site-header.is-compact .brand-badge { width: 42px; height: 42px; }

.main-nav > ul { display: flex; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; margin: 0; }
.main-nav a { display: block; color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none; }
.main-nav > ul > li > a { position: relative; padding: 0 11px; line-height: var(--header-height); transition: line-height .3s, color .2s; }
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: calc(50% - 18px);
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
}
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.is-current::after, .main-nav > ul > li > a.is-ancestor::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav a.is-current, .main-nav a.is-ancestor { color: var(--navy); }
.main-nav .nav-extra { display: none; }
.main-nav li ul {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, visibility .2s, transform .2s;
}
.main-nav li:hover > ul, .main-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.main-nav li ul a { padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.main-nav li ul a:hover, .main-nav li ul a.is-current { background: var(--sky); }

.site-search { position: relative; }
.search-toggle, .nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  cursor: pointer;
}
.search-toggle:hover { background: var(--gold-soft); }
.search-form {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: flex;
  gap: 6px;
  width: 320px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
}
.search-form[hidden] { display: none; }
.search-form input { flex: 1; min-width: 0; }
.search-form button {
  width: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.header-cta { margin-left: 6px; white-space: nowrap; }

.nav-toggle { display: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2.5px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s, background .25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.site-header.is-compact { --header-height: 62px; }
.site-header.is-compact .utility-bar { margin-top: -38px; }

/* ---- buttons ------------------------------------------------------------- */

.actions { margin: 14px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { color: #fff; background: var(--navy-soft); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16, 29, 58, .18); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #ffc43d; color: var(--ink); }
.btn--navy { background: var(--navy); }
.btn--ghost { border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--large { padding: 14px 26px; font-size: 16px; }
.btn--wide { display: flex; width: 100%; text-align: center; }
.btn--quiet { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--quiet:hover { background: var(--cream); color: var(--ink); }

/* ---- page hero image / slideshow ----------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  height: clamp(170px, 26vw, 340px);
  background: var(--navy);
}
.hero::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(16, 29, 58, 0) 55%, rgba(16, 29, 58, .35)); pointer-events: none; }
.hero--tall { height: clamp(220px, 42vw, 520px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s ease; }
.hero-slide > img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active > img { animation: hero-drift 9s ease-out both; }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-captions { position: absolute; inset: 0; z-index: 3; max-width: var(--page-width); margin: 0 auto; }
.hero-line {
  position: absolute;
  padding: .45em .7em;
  border-radius: 10px;
  background: rgba(16, 29, 58, .78);
  color: #fff;
  font-size: clamp(12px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.hero-line--large { font-size: clamp(13px, 2.45vw, 28px); }

/* ---- start page: stage --------------------------------------------------- */

.stage {
  position: relative;
  height: clamp(520px, 72vh, 720px);
  overflow: hidden;
  background: var(--navy-deep);
}
.stage .hero-slide > img { position: absolute; inset: 0; }
.stage .hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 29, 58, .9) 0%, rgba(16, 29, 58, .62) 45%, rgba(16, 29, 58, .1) 80%),
              linear-gradient(0deg, rgba(16, 29, 58, .6) 0%, rgba(16, 29, 58, 0) 45%);
}
.stage-copy { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding-bottom: 70px; color: #fff; }
.stage-copy .wrap > * { max-width: 620px; }
.stage-copy .eyebrow { color: var(--gold); }
.stage-title { margin: 0 0 14px; color: #fff; text-shadow: 0 2px 18px rgba(16, 29, 58, .35); font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
.stage-lead { margin: 0 0 26px; color: #e9eef8; font-size: clamp(16px, 1.6vw, 19px); }
.stage-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-slide.is-active .stage-copy .wrap > * { animation: stage-in .8s ease-out both; }
.hero-slide.is-active .stage-copy .wrap > :nth-child(2) { animation-delay: .1s; }
.hero-slide.is-active .stage-copy .wrap > :nth-child(3) { animation-delay: .2s; }
.hero-slide.is-active .stage-copy .wrap > :nth-child(4) { animation-delay: .3s; }
@keyframes stage-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.stage-controls {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--page-width);
  padding: 0 var(--gutter);
  transform: translateX(-50%);
}
.stage-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(16, 29, 58, .3);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.stage-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.stage-dots { display: flex; gap: 8px; }
.stage-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s, background .3s; }
.stage-dots button[aria-current="true"] { width: 32px; background: var(--gold); }

/* "plan your visit" bar overlapping the stage */
.plan-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: -64px 0 0;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lift);
}
.plan-title { flex: 0 0 auto; margin: 0; font-size: 20px; line-height: 1.2; max-width: 150px; }
.plan-bar ul { display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.plan-bar li { margin: 0; }
.plan-bar a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition: background .2s;
}
.plan-bar a:hover { background: var(--sky); }
.plan-bar strong { display: block; font-size: 15px; line-height: 1.25; }
.plan-bar small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.plan-icon { display: flex; flex: 0 0 46px; align-items: center; justify-content: center; height: 46px; border-radius: 14px; background: var(--sky); color: var(--navy); }
.plan-icon--gold { background: var(--gold); color: var(--ink); }
.plan-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- page bands and columns ---------------------------------------------- */

.band { padding: 72px 0; background: var(--band-bg); }
.band + .band { padding-top: 24px; }
.band--tint, .band--cream { --band-bg: var(--cream); }
.band--soft { --band-bg: #fbfcfe; }
.band--sky { --band-bg: var(--sky); }
.band--tint + .band, .band--cream + .band, .band--sky + .band, .band + .band--cream, .band + .band--sky, .band + .band--tint { padding-top: 72px; }
.band--flush { padding: 0; }
.band::after, .main-col::after, .prose::after { content: ''; display: table; clear: both; }

.section-head { margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }

.wrap--split { display: flex; align-items: flex-start; gap: 48px; }
.wrap--split > .main-col { flex: 1 1 auto; min-width: 0; }
.wrap--split > .side-col {
  position: sticky;
  top: 120px;
  flex: 0 0 310px;
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--cream);
}
.wrap--split > .side-col:empty { display: none; }

.row { display: flex; flex-wrap: wrap; gap: 0 5%; }
.row + .row, .row + .prose, .prose + .row { margin-top: 20px; }
.col { flex: 0 0 100%; min-width: 0; }
.col-1-2 { flex-basis: 47.5%; }
.col-1-3 { flex-basis: 30%; }
.col-2-3 { flex-basis: 65%; }
.col-1-4 { flex-basis: 21.25%; }
.col-3-4 { flex-basis: 73.75%; }
.col-1-5 { flex-basis: 16%; }
.col-1-6 { flex-basis: 12.5%; }
.row--flush { gap: 0; }
.row--flush > .col-1-4 { flex-basis: 25%; }
.row--flush > .col-3-4 { flex-basis: 75%; }
.row--flush > .col-1-2 { flex-basis: 50%; }

.gap { clear: both; max-height: 40px; }

.rule { clear: both; }
.rule--short {
  width: 64px;
  height: 5px;
  margin: 6px auto 34px;
  border: 0;
  border-radius: 5px;
  background: var(--gold);
}

.heading { margin: 0; padding-bottom: 10px; }
.heading--center { text-align: center; }
.heading--light { font-weight: 700; }

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose a[id]:empty { display: block; }
.prose img { border-radius: var(--radius-sm); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
/* the WordPress content colours links and text inline; the site's own colours read better */
.prose [style*="color: #0000ff"], .prose [style*="color: #ff0000"], .prose [style*="color: #333333"] { color: inherit !important; }

.figure { margin: 0; }
.figure img { display: block; border-radius: var(--radius-sm); }
.figure--center { text-align: center; }
.figure--center img { margin: 0 auto; }
.captioned { max-width: 100%; margin: 1em 0; }
.captioned figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

.table-scroll { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec-table td, .spec-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { width: 42%; color: var(--ink); background: var(--cream); font-weight: 600; }

/* ---- cards (start page) -------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-image img { transform: scale(1.05); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.card-body h3 { margin: 0 0 8px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body p { margin: 0 0 16px; }
.card-body .link-arrow { margin-top: auto; }

.chip {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.chip--gold { background: var(--gold); color: var(--ink); }

/* ---- mascot -------------------------------------------------------------- */

.mascot-band { position: relative; overflow: hidden; }
.mascot-band::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, .28), rgba(240, 180, 41, 0) 70%);
}
.mascot-intro { position: relative; display: flex; align-items: center; gap: 48px; }
.mascot-figure { position: relative; flex: 0 0 300px; }
.mascot-figure::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -4px;
  z-index: -1;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 29, 58, .12);
  filter: blur(6px);
}
.mascot-figure img { display: block; width: 100%; animation: mascot-bob 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes mascot-bob { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg) translateY(-4px); } }
.mascot-text { flex: 1; min-width: 0; }
.speech {
  position: relative;
  margin: 18px 0 24px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.speech::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 34px;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 4px;
  transform: rotate(45deg);
}
.speech > :first-child { margin-top: 0; }
.speech > :last-child { margin-bottom: 0; }
.tip-list { margin: 12px 0 0; padding: 0; list-style: none; }
.tip-list li { position: relative; margin: 10px 0 0; padding-left: 34px; }
.tip-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2314213d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.mascot-tip { display: flex; align-items: flex-start; gap: 12px; }
.mascot-tip img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; background: var(--gold-soft); }
.mascot-tip p { position: relative; margin: 0; padding: 12px 14px; border-radius: 14px; background: #fff; font-size: 14px; line-height: 1.5; box-shadow: 0 4px 12px rgba(16, 29, 58, .08); }

/* ---- upcoming rides ------------------------------------------------------ */

.ride-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ride {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ride:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.ride-date {
  display: flex;
  flex: 0 0 78px;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  line-height: 1.05;
  text-transform: uppercase;
}
.ride-date strong { color: #fff; font-size: 30px; font-weight: 700; }
.ride-date span { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.ride-date small { margin-top: 3px; color: #b9c4dd; font-size: 11px; }
.ride-body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.ride-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.ride-image { flex: 0 0 84px; height: 84px; overflow: hidden; border-radius: 14px; }
.ride-image img { width: 100%; height: 100%; object-fit: cover; }
.ride-empty { display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: var(--radius); background: var(--sky); }
.ride-empty img { flex: 0 0 auto; border-radius: 50%; background: var(--gold-soft); }
.ride-empty p { margin: 0; color: var(--ink); font-size: 17px; font-weight: 600; }

/* ---- support band -------------------------------------------------------- */

.support-band {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background: var(--navy) linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: #dfe6f5;
}
.support-band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 10px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 18px, transparent 18px 36px);
}
.support-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; }
.support-inner h2 { color: #fff; }
.support-inner p { max-width: 620px; }
.support-inner .stage-actions { flex: 0 0 auto; }

/* ---- news teasers -------------------------------------------------------- */

.teaser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.teaser-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.teaser-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teaser { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.teaser:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.teaser-image { display: block; aspect-ratio: 495 / 400; overflow: hidden; background: var(--sky); }
.teaser-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.teaser:hover .teaser-image img { transform: scale(1.05); }
.teaser-title { margin: 18px 22px 6px; font-size: 19px; line-height: 1.3; }
.teaser-title a { color: var(--ink); text-decoration: none; }
.teaser-title a:hover { color: var(--navy-soft); }
.teaser-cats { margin: 0 22px 20px; }
.teaser-cats, .post-cats { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.teaser-cats a, .post-cats a { color: var(--gold-deep); text-decoration: none; }

/* ---- articles ------------------------------------------------------------ */

.list-heading { margin-bottom: 30px; }
.post { padding-bottom: 44px; }
.post + .post { padding-top: 44px; border-top: 1px solid var(--line); }
.post-head { text-align: center; }
.post-head .post-cats { margin: 0; }
.post-title { margin: 8px 0 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.post-title a { color: inherit; text-decoration: none; }
.post-head::after { content: ''; display: block; width: 56px; height: 5px; margin: 20px auto 26px; border-radius: 5px; background: var(--gold); }
.post-meta { margin: 20px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.post-more a { font-weight: 700; }
.post-more a::after { content: ' \2192'; }
.post-image { display: block; margin-bottom: 25px; }
.post-image img { display: block; width: 100%; border-radius: var(--radius); }
.post-foot { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

.post--preview { display: flex; gap: 28px; align-items: flex-start; }
.post--preview .post-thumb { flex: 0 0 180px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.post--preview .post-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.post--preview .post-body { flex: 1; min-width: 0; }
.post--preview .post-head { text-align: left; }
.post--preview .post-head::after { margin-left: 0; }
.post--preview .post-title { font-size: 24px; }
.post--preview .post-meta { text-align: left; }

/* ---- sidebar ------------------------------------------------------------- */

.side-col { color: var(--text); font-size: 15px; }
.side-box, .side-col > .mini-list { padding: 0 0 24px; }
.side-col > :last-child { padding-bottom: 0; }
.side-box > :last-child { margin-bottom: 0; }
.side-box img { border-radius: var(--radius-sm); }
.side-title { margin: 0 0 10px; font-size: 17px; }
.side-nav ul { margin: 0; padding: 0; list-style: none; }
.side-nav li { margin: 0; }
.side-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.side-nav a:hover { background: #fff; }
.side-nav .is-current a, .side-nav a.is-current { background: var(--navy); color: #fff; }

.mini-list ul { margin: 0; padding: 0; list-style: none; }
.mini-list li { margin: 0; padding: 6px 0; }
.mini-list a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.mini-list strong { color: inherit; font-size: 14px; font-weight: 600; line-height: 1.45; }
.mini-list a:hover strong { text-decoration: underline; }
.mini-thumb { flex: 0 0 44px; height: 44px; overflow: hidden; border-radius: 12px; background: var(--sky); }
.mini-thumb img { display: block; width: 44px; height: 44px; object-fit: cover; }

/* ---- breadcrumbs --------------------------------------------------------- */

.crumbs { padding: 14px 0; background: var(--cream); font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--navy-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs-label { margin-right: 4px; }
.crumbs-sep { margin: 0 6px; color: #b7bdca; }
.crumbs-current { color: var(--ink); font-weight: 600; }

/* ---- galleries, tiles, video --------------------------------------------- */

.gallery { margin: 0 0 20px; }
.gallery-lead { display: block; margin-bottom: 8px; overflow: hidden; border-radius: var(--radius); background: var(--sky); }
.gallery-lead img { display: block; width: 100%; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 8px; }
.gallery-thumbs a { display: block; overflow: hidden; border-radius: 10px; background: var(--sky); }
.gallery-thumbs img { display: block; width: 100%; aspect-ratio: 495 / 400; object-fit: cover; border-radius: 0; transition: transform .3s, opacity .3s; }
.gallery-thumbs a:hover img { transform: scale(1.06); }
.gallery-lead:hover img { opacity: .9; }

.tile-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; font-size: 14px; }
.tile-filter button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.tile-filter button:hover { border-color: var(--navy); }
.tile-filter button.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.tile-filter small { margin-left: 2px; font-size: 11px; opacity: .7; }
.tile-filter-sep { display: none; }

.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tile-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--radius-sm); background: #fff; box-shadow: 0 6px 18px rgba(16, 29, 58, .08); transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile[hidden] { display: none; }
.tile-image { display: block; overflow: hidden; background: var(--sky); }
.tile-image img { display: block; width: 100%; transition: transform .4s; }
.tile:hover .tile-image img { transform: scale(1.05); }
.tile-body { padding: 14px 14px 16px; text-align: center; }
.tile-title { margin: 0; font-size: 15px; line-height: 1.35; }
.tile-title a { color: var(--ink); text-decoration: none; }
.tile-title a:hover { color: var(--navy-soft); }
.tile-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 20px; overflow: hidden; border-radius: var(--radius); background: var(--navy-deep); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  padding-top: 120px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.video-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform .2s;
}
.video-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -14px 0 0 -7px;
  border: 14px solid transparent;
  border-left: 22px solid var(--ink);
  border-right: 0;
}
.video-play:hover::before { transform: scale(1.1); }

/* ---- accordion ----------------------------------------------------------- */

.accordion { margin: 0 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.accordion summary {
  position: relative;
  padding: 14px 18px 14px 52px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: '+';
  position: absolute;
  top: 50%;
  left: 16px;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  font-size: 18px;
  line-height: 23px;
  text-align: center;
}
.accordion[open] summary::before { content: '\2013'; background: var(--gold); color: var(--ink); }
.accordion summary:hover { background: var(--cream); }
.accordion-body { padding: 4px 20px 18px; }

/* ---- route (Streckenplan) ------------------------------------------------ */

.route { position: relative; margin: 40px 0; padding: 0; list-style: none; }
.route::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 8px; margin-left: -4px; border-radius: 4px; background: repeating-linear-gradient(180deg, var(--brown) 0 6px, #c9a27a 6px 14px); opacity: .5; }
.route-stop { position: relative; width: 44%; margin: 0 0 30px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.route-stop:nth-child(even) { margin-left: 56%; }
.route-stop:nth-child(n+2) { margin-top: -110px; }
.route-stop::before {
  content: '';
  position: absolute;
  top: 40px;
  right: -13.64%;
  width: 13.64%;
  border-top: 3px dashed var(--line);
}
.route-stop:nth-child(even)::before { right: auto; left: -13.64%; }
.route-photo { display: block; overflow: hidden; }
.route-photo img { display: block; width: 100%; aspect-ratio: 390 / 280; object-fit: cover; border-radius: 0; transition: transform .4s; }
.route-photo:hover img { transform: scale(1.04); }
.route-name { margin: 0; padding: 14px 16px; font-size: 16px; line-height: 1.4; }
.route-stop .route-photo { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.route-stop::after {
  content: '';
  position: absolute;
  top: 31px;
  right: calc(-13.64% - 11px);
  width: 22px;
  height: 22px;
  border: 5px solid var(--gold);
  border-radius: 50%;
  background: var(--navy);
}
.route-stop:nth-child(even)::after { right: auto; left: calc(-13.64% - 11px); }

/* ---- forms --------------------------------------------------------------- */

input[type="text"], input[type="email"], input[type="search"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus, textarea:focus { outline: 0; border-color: var(--navy-soft); box-shadow: 0 0 0 4px rgba(43, 68, 121, .12); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--navy); }

.form { display: flex; flex-wrap: wrap; gap: 0 3%; padding: 28px; border-radius: var(--radius); background: var(--cream); }
.form h3 { flex: 0 0 100%; margin-bottom: 18px; }
.field { flex: 0 0 100%; margin: 0 0 18px; }
.field--half { flex-basis: 48.5%; }
.field--quarter { flex-basis: 30%; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.field--check { display: flex; align-items: center; gap: 10px; }
.field--check label { margin: 0; font-size: 15px; font-weight: 400; color: var(--text); }
.field--trap { position: absolute; left: -9999px; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #fff6f4; }
.notice { margin: 0 0 25px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.notice h3 { margin: 0 0 5px; font-size: 17px; }
.notice p { margin: 0; }
.notice--error { border-color: #f1c4bc; background: #fff6f4; }
.notice--error h3 { color: var(--red); }
.notice--ok { border-color: #bfe0cc; background: var(--green-soft); }
.notice--ok h3 { color: var(--green); }
.notice--lang { display: flex; align-items: center; gap: 12px; border-color: #f3dc9c; background: var(--gold-soft); color: var(--ink); font-weight: 600; }
.notice--lang img { flex: 0 0 36px; border-radius: 50%; background: #fff; }

.search-page-form { display: flex; gap: 8px; max-width: 460px; margin: 20px 0 30px; }
.search-result { margin-bottom: 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.search-result h3 { margin: 8px 0 6px; font-size: 19px; }
.search-result p { margin: 0; font-size: 15px; }
.search-result-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

/* ---- Schienenvelo reservation -------------------------------------------- */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fine-print { font-size: 14px; color: var(--muted); }
.back-link { margin: 0 0 15px; font-size: 14px; font-weight: 600; }
.fact-list { margin: 0 0 .85em; padding: 0; list-style: none; }
.fact-list li { margin: 0 0 10px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-width: 0; margin: 0; padding: 12px 14px 12px 54px; border-radius: var(--radius-sm); background: var(--cream); color: var(--muted); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}
.steps .is-done { color: var(--ink); }
.steps .is-done::before { content: '\2713'; background: var(--green); color: #fff; }
.steps .is-current { background: var(--navy); color: #fff; }
.steps .is-current::before { background: var(--gold); color: var(--ink); }
.steps .is-current .steps-name { color: #fff; }
.steps-name { display: block; font-size: 13px; font-weight: 700; }
.steps-value { display: block; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }

.bike-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 25px; }
.bike-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.bike-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.bike-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bike-image:hover img { transform: scale(1.04); }
.bike-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.bike-body p { margin: 0 0 8px; }
.bike-title { margin: 0 0 8px; font-size: 20px; }
.bike-facts { color: var(--muted); font-size: 14px; }
.bike-body .btn { margin-top: auto; }

.month-nav { display: flex; align-items: center; margin: 0 0 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; }
.month-nav > * { flex: 1; }
.month-nav a { color: var(--gold); font-weight: 700; text-decoration: none; }
.month-nav strong { color: #fff; text-align: center; font-size: 17px; }
.month-nav > :last-child { text-align: right; }
.day-list { margin: 0 0 15px; padding: 0; list-style: none; }
.day { display: flex; align-items: center; gap: 15px; margin: 0 0 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.day-date { flex: 0 0 34%; color: var(--ink); }
.day-date strong { display: block; }
.day-date small { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font-weight: 700; }
.day-note { flex: 1; margin: 0; color: var(--muted); font-style: italic; }
.day--closed { background: #fafbfc; }
.day--closed .day-date { color: var(--muted); text-decoration: line-through; }
.day--closed .day-date strong { color: inherit; }
.day-slots { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { display: block; padding: 8px 4px; border: 2px solid var(--navy); border-radius: 12px; background: #fff; text-align: center; line-height: 1.3; text-decoration: none; }
.slot strong { display: block; font-size: 16px; color: var(--navy); }
.slot small { color: var(--text); }
a.slot:hover { background: var(--navy); }
a.slot:hover strong, a.slot:hover small { color: #fff; }
.slot--full { border-color: var(--line); background: var(--cream); }
.slot--full strong, .slot--full small { color: var(--muted); }

.summary { margin: 0 0 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.summary > div { display: flex; gap: 15px; padding: 10px 16px; }
.summary > div + div { border-top: 1px solid var(--line); }
.summary dt { flex: 0 0 34%; color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); font-weight: 700; }
.field--check.has-error label { color: var(--red); }

/* ---- not found ----------------------------------------------------------- */

.lost { display: flex; align-items: center; gap: 48px; }
.lost img { flex: 0 0 260px; width: 260px; }
.lost h1 { margin-bottom: 12px; }

/* ---- footer -------------------------------------------------------------- */

.site-footer { position: relative; background: var(--navy-deep); color: #c4cde0; font-size: 15px; }
.site-footer::before { content: ''; display: block; height: 6px; background: repeating-linear-gradient(90deg, var(--gold) 0 40px, var(--gold-deep) 40px 80px); }
.footer-mascot { position: absolute; top: -46px; right: max(24px, calc(50% - 600px)); }
.footer-mascot img { display: block; width: 80px; height: 80px; border: 4px solid var(--gold); border-radius: 50%; background: var(--gold-soft); box-shadow: var(--shadow); }
.footer-cols { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.footer-col { min-width: 0; }
.footer-logo { display: block; width: 210px; margin-bottom: 14px; padding: 8px 12px; border-radius: 12px; background: #fff; }
.site-footer h3, .site-footer .side-title { margin: 0 0 14px; color: #fff; font-size: 17px; }
.site-footer a, .site-footer strong { color: #fff; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 0 0 8px; }
.footer-col p { margin: .6em 0; }
.footer-col hr { width: 60%; margin: 14px 0; border-top: 1px dashed rgba(255, 255, 255, .3); }
.site-footer .link-arrow { color: var(--gold); }
.site-footer .mini-thumb { background: rgba(255, 255, 255, .1); }
.site-footer .mini-list strong { font-size: 14px; color: #fff; }

.site-legal { padding: 18px 0; background: #0a1328; color: #93a0bd; font-size: 13px; }
.site-legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.site-legal a { color: #dfe6f5; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.to-top[hidden] { display: none; }
.to-top:hover { color: var(--ink); background: #ffc43d; }

.cookie-note {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  width: 380px;
  max-width: calc(100vw - 30px);
  padding: 20px 24px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  box-shadow: 0 20px 50px rgba(16, 29, 58, .3);
}
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0 0 14px; }

/* ---- lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 70px;
  background: rgba(10, 19, 40, .92);
}
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: var(--radius-sm); box-shadow: 0 0 30px rgba(0, 0, 0, .6); }
.lightbox-caption { margin-top: 12px; color: #f3f3f3; font-size: 14px; text-align: center; }
.lightbox-count { margin-left: 12px; color: #9aa6c2; }
.lightbox button {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { top: 50%; left: 14px; margin-top: -25px; }
.lightbox-next { top: 50%; right: 14px; margin-top: -25px; }
.has-lightbox { overflow: hidden; }

/* ---- smaller screens ----------------------------------------------------- */


@media (max-width: 989px) {
  :root { --gutter: 22px; --header-height: 66px; }
  .tile-grid--4, .tile-grid--5, .tile-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .plan-title { max-width: none; }
  .plan-bar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid, .teaser-grid, .teaser-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .wrap--split { display: block; }
  .wrap--split > .side-col { position: static; margin-top: 40px; }
  .support-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .band { padding: 48px 0; }
  .band--tint + .band, .band--cream + .band, .band--sky + .band, .band + .band--cream, .band + .band--sky, .band + .band--tint { padding-top: 48px; }
  .utility-phone span, .utility-phone a { font-size: 12px; }
  .brand-badge { width: 42px; height: 42px; }
  .brand-name { font-size: 18px; }
  .brand-name small { font-size: 10px; }
  .header-cta { display: none; }
  .stage { height: auto; min-height: 560px; }
  .stage-copy { align-items: flex-end; padding-bottom: 150px; }
  .stage-controls { bottom: 90px; }
  .plan-bar { margin-top: -56px; padding: 16px; }
  .plan-bar ul { grid-template-columns: minmax(0, 1fr); }
  .card-grid, .teaser-grid, .teaser-grid--2, .teaser-grid--4, .ride-list { grid-template-columns: minmax(0, 1fr); }
  .mascot-intro { flex-direction: column; gap: 10px; text-align: left; }
  .mascot-figure { flex-basis: auto; width: 220px; }
  .speech::before { left: 50%; top: -12px; margin-left: -13px; }
  .ride-image { display: none; }
  .col, .row--flush > .col { flex-basis: 100%; margin-bottom: 25px; }
  .row > .col:last-child { margin-bottom: 0; }
  .tile-grid, .tile-grid--3, .tile-grid--4, .tile-grid--5, .tile-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery-thumbs { grid-template-columns: repeat(min(var(--cols, 5), 4), 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .field--half, .field--quarter { flex-basis: 100%; }
  .form { padding: 20px; }
  .bike-grid { grid-template-columns: minmax(0, 1fr); }
  .day, .summary > div { display: block; }
  .day-slots { margin-top: 10px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .steps li:not(.is-current) .steps-value { display: none; }
  .post--preview { display: block; }
  .post--preview .post-thumb { display: block; width: 180px; margin-bottom: 20px; }
  .route::before { left: 9px; }
  .route-stop, .route-stop:nth-child(even), .route-stop:nth-child(n+2) { width: auto; margin: 0 0 25px 40px; }
  .route-stop::before, .route-stop:nth-child(even)::before { left: -31px; right: auto; width: 31px; }
  .route-stop::after, .route-stop:nth-child(even)::after { left: -42px; right: auto; }
  .lost { flex-direction: column; gap: 20px; text-align: center; }
  .lost img { flex-basis: auto; width: 200px; }
  .lightbox { padding: 50px 10px; }
  .to-top { right: 15px; bottom: 15px; }
  .cookie-note { left: 15px; bottom: 15px; }
  .float-left, .float-right { float: none; display: block; margin: 0 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide.is-active > img, .hero-slide.is-active .stage-copy .wrap > *, .mascot-figure img { animation: none; }
  .card, .teaser, .tile, .ride, .btn { transition: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .cookie-note, .side-col, .stage-controls, .plan-bar { display: none; }
  body { background: #fff; }
}

/* ---- page additions ------------------------------------------------------ */

.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card--plain { border: 1px solid var(--line); box-shadow: none; }
.card--plain:hover { transform: none; box-shadow: none; }
.contact-card { gap: 32px; padding: 28px; border-radius: var(--radius); background: var(--sky); }
.contact-card > img { flex: 0 0 140px; width: 140px; border-radius: 50%; background: var(--gold-soft); }
.lang-wrap { padding-top: 28px; }
.lang-wrap .notice { margin-bottom: 0; }

@media (max-width: 767px) {
  .card-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .contact-card > img { flex-basis: auto; width: 110px; }
}

/* ---- display font ---------------------------------------------------------- */

.stage-title, .brand-name, .main-nav a, .top-nav a, .btn, .eyebrow, .plan-bar strong, .ride-date, .ride-title, .chip,
.steps-name, .month-nav, .side-title, .lang-menu summary, .link-arrow, .tile-filter button, .teaser-title, .post-title,
.site-footer h3, .footer-col .side-title, .accordion summary { font-family: var(--display); }
.stage-title { font-weight: 800; letter-spacing: -.025em; }
.brand-name { font-size: 23px; font-weight: 800; }
.main-nav a { font-size: 16px; font-weight: 600; }
.btn { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.plan-bar strong { font-size: 17px; font-weight: 700; }
.ride-date strong { font-size: 34px; font-weight: 800; }
.card-body h3, .teaser-title { font-size: 22px; font-weight: 700; }

/* ---- page header picture with the title in it ------------------------------ */

.hero { height: clamp(260px, 34vw, 460px); }
.hero::after { background: linear-gradient(180deg, rgba(16, 29, 58, .15) 0%, rgba(16, 29, 58, 0) 30%, rgba(16, 29, 58, .75) 100%); }
.hero-heading { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 3; color: #fff; }
.hero-heading h1 { max-width: 820px; margin: 0; color: #fff; font-size: clamp(38px, 5.5vw, 72px); text-shadow: 0 3px 24px rgba(16, 29, 58, .45); }
.hero-heading h1::after { content: ''; display: block; width: 72px; height: 6px; margin-top: 18px; border-radius: 6px; background: var(--gold); }
/* the content slides up over the picture like a sheet */
.hero + .band {
  position: relative;
  z-index: 4;
  margin-top: -36px;
  padding-top: 64px;
  border-radius: 36px 36px 0 0;
}
@media (min-width: 1280px) and (max-width: 1440px) {
  .main-nav > ul > li > a { padding: 0 9px; font-size: 15px; }
  .main-nav > ul > li > a::after { left: 9px; right: 9px; }
}
@media (max-width: 767px) {
  .hero-heading { bottom: 52px; }
  .hero + .band { margin-top: -28px; padding-top: 44px; border-radius: 28px 28px 0 0; }
}

/* The menu folds into the menu button below 1280px: the French, Italian and Rumantsch labels are long. */
@media (max-width: 1279px) {
  .top-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { padding: 9px 16px; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-height) - 38px);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { display: block; padding: 8px var(--gutter) 16px; }
  .main-nav .nav-extra { display: block; }
  .main-nav > ul > li > a, .main-nav li ul a { padding: 12px 4px; border-bottom: 1px solid var(--line); line-height: 1.4; font-size: 16px; }
  .main-nav > ul > li > a::after { display: none; }
  .main-nav li ul { position: static; min-width: 0; padding: 0 0 0 16px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .main-nav li ul a { border-radius: 0; font-size: 15px; }
}
@media (max-width: 767px) {
  .header-cta { display: none; }
}
