/* MDV — Meininger Dampflokverein */

:root {
  --paper:       #ffffff;
  --paper-2:     #f4f4f2;
  --paper-3:     #ececea;
  --ink:         #141414;
  --ink-2:       #333333;
  --ink-3:       #6b6b6b;
  --ink-4:       #a8a8a8;
  --rule:        #e2e2e0;
  --rule-strong: #8a8a88;
  --accent:      #a1232b;
  --accent-ink:  #741820;
  --f-display:   'Roboto Slab', Georgia, serif;
  --f-body:      'Roboto Slab', Georgia, serif;
  --f-mono:      'Roboto Mono', ui-monospace, monospace;
  --maxw:        1360px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  color: #ffffff;
  transition: background 280ms ease, color 280ms ease, box-shadow 280ms ease, padding 280ms ease;
}
.nav.is-scrolled {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
  padding: 14px 0;
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-display);
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.brand-logo { height: 48px; width: auto; display: block; }
.brand-text { line-height: 1.15; }
.brand-text .t1 { font-size: 16px; font-weight: 600; letter-spacing: 0.02em; }
.brand-text .t2 {
  font-family: var(--f-mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em;
  opacity: 0.75;
  margin-top: 2px;
}

.nav-links {
  display: flex; justify-content: center; gap: 32px;
  font-family: var(--f-display);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-item {
  position: relative;
  padding: 24px 0;
}
.nav-item > a {
  position: relative;
  padding: 4px 0;
  opacity: 0.88;
  transition: opacity 160ms ease;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.nav-item > a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: currentColor;
  transition: right 240ms ease;
}
.nav-item:hover > a { opacity: 1; }
.nav-item:hover > a::after { right: 0; }
.nav-item .chev {
  font-size: 12px;
  line-height: 1;
  transition: transform 220ms ease;
}
.nav-item:hover .chev { transform: rotate(180deg); }

.nav-drop {
  position: absolute;
  top: 100%; left: -20px;
  min-width: 260px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.25), 0 6px 14px -6px rgba(0,0,0,0.08);
  padding: 10px;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  display: flex; flex-direction: column;
}
.nav-item:hover .nav-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}
.nav-drop a {
  display: flex; flex-direction: column;
  padding: 12px 14px;
  font-family: var(--f-display); font-size: 14.5px; font-weight: 500;
  color: var(--ink);
  border-left: 2px solid transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.nav-drop a .sub {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px; font-weight: 400;
}
.nav-drop a:hover { background: #faf7f5; border-left-color: var(--accent); color: var(--accent); }
.nav-drop a:hover .sub { color: var(--accent); opacity: 0.7; }

/* Social icons in header */
.nav-socials {
  display: flex; align-items: center; gap: 4px;
}
.nav-socials a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  opacity: 0.9;
}
.nav-socials a:hover {
  background: var(--accent); color: #ffffff;
  border-color: var(--accent); opacity: 1;
}
.nav-socials i { font-size: 18px; line-height: 1; }

/* Mobile nav toggle + drawer */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid currentColor;
  width: 42px; height: 42px;
  color: inherit;
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle i { font-size: 18px; line-height: 1; }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: #000000;
  color: #ffffff;
  z-index: 90;
  padding: 96px 32px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}
.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms ease, visibility 0s;
}
.mobile-drawer-close {
  position: absolute;
  top: 22px; right: 24px;
  background: transparent;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  cursor: pointer;
}
.mobile-drawer-close i { font-size: 16px; line-height: 1; }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer > ul > li {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-drawer > ul > li > a,
.mobile-drawer > ul > li > .md-group > .md-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  font-family: var(--f-display); font-weight: 500;
  font-size: 22px;
  color: #ffffff;
  cursor: pointer;
}
.mobile-drawer .md-head-label {
  display: inline-flex; align-items: center; gap: 12px;
}
.mobile-drawer .md-head .chev {
  font-size: 14px;
  line-height: 1;
  transition: transform 220ms ease;
}
.mobile-drawer .md-group.is-open .md-head .chev { transform: rotate(180deg); }
.mobile-drawer .md-sub {
  max-height: 0; overflow: hidden;
  transition: max-height 280ms ease;
}
.mobile-drawer .md-group.is-open .md-sub { max-height: 600px; }
.mobile-drawer .md-sub a {
  display: block;
  padding: 12px 0 12px 18px;
  font-family: var(--f-display); font-size: 15.5px;
  color: #cfcfcf;
  border-left: 2px solid rgba(255,255,255,0.15);
  margin-left: 4px;
}
.mobile-drawer .md-sub a:hover { color: var(--accent); border-left-color: var(--accent); }
.mobile-drawer .md-sub a:last-child { margin-bottom: 14px; }
.mobile-drawer .md-socials {
  margin-top: 36px;
  display: flex; gap: 12px;
}
.mobile-drawer .md-socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #ffffff;
  transition: background 160ms ease, border-color 160ms ease;
}
.mobile-drawer .md-socials a:hover { background: var(--accent); border-color: var(--accent); }
.mobile-drawer .md-socials i { font-size: 16px; line-height: 1; }
.md-brand {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 14px;
}
.md-brand-name {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
}

/* ============ HERO (cinematic) ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: slow-zoom 18s ease-out forwards;
  will-change: transform;
}
@keyframes slow-zoom {
  from { transform: scale(1.15); }
  to   { transform: scale(1.0);  }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,7,5,0.55) 0%, rgba(10,7,5,0.15) 40%, rgba(10,7,5,0.35) 70%, rgba(10,7,5,0.85) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(10,7,5,0) 0%, rgba(10,7,5,0.35) 80%);
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.08; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 100px;
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 28px 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
}
.hero-sub {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  max-width: 52ch;
  opacity: 0.9;
  margin: 0 0 40px 0;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-family: var(--f-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1.5px solid transparent;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.is-soldout { background: transparent; border-color: var(--ink-4); color: var(--ink-4); cursor: default; pointer-events: none; }
.btn-ghost { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: #ffffff; background: rgba(255,255,255,0.08); }


/* ============ SECTION SHELL ============ */
section { padding: 80px 0; position: relative; }
.sec-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.sec-label .num { color: var(--accent); font-weight: 600; }
.sec-label .bar { flex: 0 0 48px; height: 1px; background: var(--rule-strong); }

.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 50px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.sec-head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.sec-head h2 em { font-style: normal; font-weight: 700; color: var(--accent); }
.sec-head .sec-lede {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}

/* ============ FAHRTEN (schedule) ============ */
.sched {
  border-top: 1px solid var(--rule);
}
.sched-row {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 28px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  position: relative;
}
.sched-row:hover { background: rgba(161,35,43,0.03); }
.sched-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
}
.sched-row:hover::before { transform: scaleY(1); }

.sched-dest h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}
.sched-dest .route {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.sched-dest .route .bi {
  font-size: 13px;
  margin: 0 4px;
}
.sched-dest .desc {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 72ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sched-dest .date {
  display: block;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.sched-dest .date .date-sub {
  color: var(--ink-3);
  font-weight: 400;
}

.sched-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.sched-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px;
  text-align: center;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  transition: background 180ms ease, color 180ms ease;
}
.sched-cta:hover { background: var(--ink); color: var(--paper); }
.sched-cta.sold { border-color: var(--ink-4); color: var(--ink-4); pointer-events: none; }

.sched-more {
  margin-top: 44px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.sched-more a { color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity 160ms ease; }
.sched-more a:hover { opacity: 0.75; }

.sonderfahrten-head { align-items: start; }
.sonderfahrten-head h2 { line-height: 0.9; }
.sonderfahrten-head .sec-lede { margin-top: 0; padding-top: 0; line-height: 1.3; }

/* ============ FÜHRUNGEN ============ */
.fuehr {
  background: #000000;
  color: #ffffff;
}
.fuehr .sec-label { color: #a8a8a8; }
.fuehr .sec-label .bar { background: #2a2a2a; }
.fuehr .sec-head { border-bottom-color: rgba(255,255,255,0.16); align-items: start; }
.fuehr .sec-head h2 { line-height: 0.9; }
.fuehr .sec-head .sec-lede { color: #cfcfcf; margin-top: 0; padding-top: 0; line-height: 1.3; }
.fuehr-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.fuehr-photo {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.fuehr-photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.02) saturate(0.92); }
.fuehr-photo .caption {
  position: absolute; left: 20px; bottom: 20px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #ffffff;
  background: rgba(10,7,5,0.7);
  padding: 8px 12px;
  backdrop-filter: blur(4px);
}
.fuehr-body { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.fuehr-body p { font-size: 17px; line-height: 1.65; color: #e5e5e5; max-width: 54ch; }
.fuehr-body p + p { margin-top: 16px; }
.fuehr-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
}
.fact {
  padding: 24px 22px;
  background: #000000;
}
.fact .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 8px; }
.fact .v { font-family: var(--f-display); font-weight: 500; font-size: 18px; line-height: 1.35; color: #ffffff; }
.fact .v em { font-style: italic; color: #ffffff; font-weight: 400; }
.fuehr-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-fuehr { background: #ffffff; color: #000000; border-color: #ffffff; }
.btn-fuehr:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn-fuehr-ghost { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.4); }
.btn-fuehr-ghost:hover { border-color: #ffffff; background: rgba(255,255,255,0.06); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo { aspect-ratio: 3/4; overflow: hidden; }
.about-lede {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: 22px; line-height: 1.4; color: var(--ink);
  margin: 0 0 28px 0; padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.about-lede .attrib {
  display: block; margin-top: 12px;
  font-family: var(--f-mono); font-style: normal;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.about-body p {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 18px 0;
  max-width: 58ch;
}

.about-cta {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--accent);
  color: var(--accent);
}
.about-cta:hover { color: var(--accent-ink); border-color: var(--accent-ink); }

/* ============ INSTAGRAM ============ */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ig-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}
.ig-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms ease, filter 400ms ease;
  filter: contrast(1.02) saturate(0.92);
}
.ig-card:hover img { transform: scale(1.06); filter: contrast(1.05) saturate(1) brightness(0.85); }
.ig-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,7,5,0) 40%, rgba(10,7,5,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  color: #ffffff;
}
.ig-caption {
  font-family: var(--f-display);
  font-size: 15.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
  max-width: 30ch;
}
.ig-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  margin-top: 14px;
  opacity: 0.9;
}
.ig-card:hover .ig-caption { opacity: 1; transform: translateY(0); }
.ig-card .ig-date {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #ffffff;
  background: rgba(10,7,5,0.55);
  padding: 6px 10px;
  backdrop-filter: blur(4px);
}

.insta-foot {
  margin-top: 40px;
  display: flex; justify-content: center;
}

/* Dark Instagram section */
.insta-dark {
  background: #000000;
  color: #ffffff;
}
.insta-dark .sec-label { color: #a8a8a8; }
.insta-dark .sec-label .bar { background: #2a2a2a; }
.insta-dark .sec-head { border-bottom-color: rgba(255,255,255,0.16); }
.insta-dark .sec-head .sec-lede { color: #cfcfcf; }
.insta-dark .sec-head .sec-lede a { color: var(--accent); border-bottom-color: var(--accent); }
.insta-dark .about-cta { color: var(--accent); border-color: var(--accent); }

/* ============ FOOTER ============ */
footer {
  background: #000000;
  color: #e5e5e5;
  padding: 96px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-brand .brand-logo { height: 56px; }
.foot-brand-stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-brand .brand-mark { border-color: #ffffff; color: #ffffff; }
.foot-brand .brand-text .t1 { color: #ffffff; font-size: 17px; }
.foot-brand .brand-text .t2 { color: #8a8a8a; display: block; }
.foot-brand p {
  margin: 22px 0 0 0;
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: 17px; line-height: 1.5; color: #b8b8b8; max-width: 32ch;
}
.foot h4 {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: #8a8a8a; margin: 0 0 20px 0; font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul li { margin-bottom: 10px; }
.foot ul a { font-family: var(--f-display); font-size: 15.5px; color: #e5e5e5; transition: color 160ms ease; }
.foot ul a:hover { color: var(--accent); }
.foot-contact .line { font-family: var(--f-display); font-size: 15.5px; color: #e5e5e5; line-height: 1.6; }
.foot-contact .line.small { font-family: var(--f-mono); font-size: 12.5px; color: #b8b8b8; letter-spacing: 0.02em; }

.foot-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #6b6b6b;
}
.foot-bottom .socials { display: flex; gap: 14px; }
.foot-bottom .socials a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: #b8b8b8;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.foot-bottom .socials a:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.foot-bottom .socials i { font-size: 15px; line-height: 1; }

/* ============ SUBPAGES ============ */
.page-hero {
  background: #000000;
  color: #ffffff;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(161,35,43,0.08) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}
.page-hero .sec-label { color: #8a8a8a; margin-bottom: 20px; }
.page-hero .sec-label .bar { background: #2a2a2a; }
.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-content {
  padding: 40px 0;
}
.page-content .content-wrap {
}
/* Editor (content-block) paragraphs need a clear gap between them. More specific
   than .page-content p and .sf-desc p, so it wins on every content page. */
.page-content .content-wrap p { margin: 0 0 28px 0; }
.page-content .content-wrap p:last-child { margin-bottom: 0; }
.page-content h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 64px 0 20px 0;
  color: var(--ink);
}
.page-content h2:first-child { margin-top: 10px; }
.page-content h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  margin: 40px 0 14px 0;
  color: var(--ink);
}
.page-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 20px 0;
}
.page-content a:not(.btn) {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 160ms ease;
}
.page-content a:not(.btn):hover { opacity: 0.75; }
.page-content ul, .page-content ol {
  padding-left: 24px;
  margin: 0 0 20px 0;
}
.page-content li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.page-content .rule-block {
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 40px 0;
  background: var(--paper-2);
}
.page-content .rule-block p { margin: 0; font-style: italic; }

/* ============ FAHRZEUGE ============ */
.fahrzeuge-section { padding: 0; }
.fahrzeug-list { border-top: 1px solid var(--rule); }
.fahrzeug {
  display: grid;
  grid-template-columns: 45fr 55fr;
  border-bottom: 1px solid var(--rule);
  min-height: 500px;
  padding: 32px 0;
}
.fahrzeug-photo { overflow: hidden; }
.fahrzeug-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.fahrzeug-body {
  padding: 64px 72px;
  display: flex; flex-direction: column; justify-content: center;
}
.fahrzeug-klass {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.fahrzeug-body h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px 0;
}
.fahrzeug-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 32px 0;
  max-width: 50ch;
}
.fahrzeug-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 28px;
  margin: 0 0 28px 0;
}
.fahrzeug-specs dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fahrzeug-specs dd {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  margin: 0;
}
.fahrzeug-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fahrzeug-status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.fahrzeug-status.active { color: #2a7a2a; }
.fahrzeug-status.in-restoration { color: #9a7010; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 160ms ease;
  box-sizing: border-box;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 180px; }
.contact-submit { align-self: flex-start; }
.form-success {
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(161,35,43,0.04);
  margin-bottom: 32px;
}
.form-success p { margin: 0; color: var(--ink); font-weight: 500; }
.form-error {
  padding: 20px 24px;
  border-left: 3px solid #c0392b;
  background: rgba(192,57,43,0.06);
  margin-bottom: 32px;
}
.form-error p { margin: 0; color: #c0392b; font-weight: 500; }
.contact-address {
  background: var(--paper-2);
  padding: 40px;
  border-top: 3px solid var(--accent);
}
.contact-address h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 24px 0;
}
.contact-address .addr-block {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.contact-address .addr-block a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--paper-2);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gi-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 240ms ease;
}
.gallery-item:hover .gi-caption { opacity: 1; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
  font-family: var(--f-mono);
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px;
  font-size: 13px;
  border: 1.5px solid var(--rule);
  color: var(--ink-2);
  transition: border-color 160ms ease, color 160ms ease;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination span.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .pg-arrow { padding: 0 16px; gap: 8px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lb-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 90vh;
}
.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.lb-caption {
  color: rgba(255,255,255,0.5);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  font-size: 20px;
  transition: border-color 160ms ease, background 160ms ease;
}
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-socials { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-toggle { grid-column: 2; justify-self: end; }
}
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(40px, 7.5vw, 88px); }
  .hero-content { padding-top: 110px; justify-content: flex-end; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .sched-row { gap: 20px; }
  .sched-dest h3 { font-size: 24px; }
  .fuehr-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .insta-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding-bottom: 80px; padding-left: 24px; padding-right: 24px; padding-top: 110px; justify-content: flex-end; }
  .hero h1 { font-size: clamp(36px, 9vw, 72px); }
  .page-hero { padding: 140px 0 60px; }
  /* Bias the crop toward the locomotive (right of centre) as the frame narrows */
  .hero-bg { background-position: 65% center; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .fahrzeug { grid-template-columns: 1fr; min-height: auto; }
  .fahrzeug-photo { min-height: 340px; }
  .fahrzeug-body { padding: 48px 0; }
}
@media (max-width: 600px) {
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .sched-row { grid-template-columns: 1fr; }
  .sched-actions { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  /* Portrait phones crop hard — push focus further onto the loco front */
  .hero-bg { background-position: 72% center; }
}

/* ---- Footer contact links ---- */
.foot-contact a { color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.foot-contact a:hover { opacity: 0.75; }

/* ---- Hero scroll cue ---- */
.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  animation: bounce-y 2s ease-in-out infinite;
  z-index: 4;
}
.hero-scroll-cue:hover { color: rgba(255,255,255,0.9); }
@keyframes bounce-y {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- Scroll-to-top button ---- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, background 160ms ease, color 160ms ease;
  z-index: 900;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--ink); color: var(--paper); }

/* ============ AKTUELLES ============ */
.aktuelles-list {
  border-top: 1px solid var(--rule);
  margin-top: 16px;
}
.aktuelles-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
}
.aktuelles-date {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 6px;
}
.aktuelles-body h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
}
.aktuelles-body h2 a { color: var(--ink); }
.aktuelles-body h2 a:hover { color: var(--accent); }
.aktuelles-teaser {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 24px 0;
  max-width: 72ch;
}
.aktuelles-more {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 160ms ease;
}
.aktuelles-more:hover { opacity: 0.7; }

/* ---- Article detail ---- */
.artikel-hero-date {
  display: block;
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.artikel-back {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.artikel-back a { color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.artikel-back a:hover { opacity: 0.7; }

@media (max-width: 700px) {
  .aktuelles-item { grid-template-columns: 1fr; gap: 12px; }
  .aktuelles-date { padding-top: 0; }
}

/* ============ SONDERFAHRTEN ============ */

/* Shared: hero meta line */
.sf-hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.sf-hero-route .bi { margin: 0 4px; }

/* Shared: status badge */
.sf-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1.5px solid currentColor;
}
.sf-badge--buchbar      { color: var(--accent); }
.sf-badge--voranmeldung { color: var(--ink-3); }
.sf-badge--ausgebucht   { color: var(--ink-4); }


/* ---- Overview list ---- */
.sf-overview { padding: 64px 0; }
.sched-dest h3 a { color: var(--ink); }
.sched-dest h3 a:hover { color: var(--accent); }
.sched-cta--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.sched-cta--accent:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #ffffff;
}
.sched-cta--muted {
  background: transparent;
  border-color: var(--ink-3);
  color: var(--ink-2);
}
.sched-cta--muted:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.sched-section-head {
  margin: 32px 0 16px;
}
.sched-section-head:first-child { margin-top: 0; }
.sched-section-head h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.sched-section-head p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
}
.sched-section-head p a { color: var(--accent); }
.sched-cta--details {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.sched-cta--details:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ---- Detail page ---- */
.sf-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--rule);
  margin-bottom: 56px;
}
.sf-fact {
  flex: 1 1 180px;
  padding: 20px 24px;
  border-right: 1px solid var(--rule);
}
.sf-fact:last-child { border-right: none; }
.sf-fact--cta { display: flex; align-items: center; justify-content: center; }
.sf-fact--cta .btn { width: 100%; justify-content: center; }
.sf-fact-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.sf-fact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.sf-desc {
  margin-bottom: 56px;
}
.sf-desc p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0;
}

/* Timetable */
.sf-timetable-wrap { margin-bottom: 56px; }
.sf-timetable {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.sf-timetable-leg h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 20px;
  color: var(--ink);
}
.sf-stops {
  border-left: 2px solid var(--rule);
}
.sf-stop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0 16px 24px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.sf-stop::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 19px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--rule-strong);
}
.sf-stop.is-terminal::before {
  background: var(--accent);
  border-color: var(--accent);
  width: 10px; height: 10px;
  left: -6px;
  top: 18px;
}
.sf-stop.is-geheim {
  color: var(--ink-3);
  font-style: italic;
}
.sf-stop-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.sf-stop.is-terminal .sf-stop-name { font-weight: 700; color: var(--ink); }
.sf-stop-times {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
}

.sf-detail-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.sf-detail-cta .sf-cta-note {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

/* ---- Booking page ---- */
.buchen-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
.buchen-form { display: flex; flex-direction: column; gap: 0; }
.buchen-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
.buchen-section:first-child { padding-top: 0; }
.buchen-section-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 28px;
  color: var(--ink);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field--plz { max-width: 120px; }
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23333' d='M8 10.5L2 4.5h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field select:focus { border-color: var(--accent); outline: none; }

/* Ticket stepper */
.ticket-station-hint {
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
  margin: 0;
}
.page-content .ticket-limit-hint {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(161,35,43,0.06);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.5;
}
.ticket-limit-hint a { color: var(--accent); border-bottom: 1px solid currentColor; }
.ticket-klasse-head {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding: 32px 0 4px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
}
.ticket-klasse-head:first-child { padding-top: 0; }
.ticket-klasse-head.is-soldout { color: var(--ink-4); border-bottom-color: var(--ink-4); display: flex; align-items: baseline; gap: 12px; }
.ticket-soldout-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.ticket-row.is-soldout { color: var(--ink-4); }
.ticket-row.is-soldout .ticket-typ { color: var(--ink-4); }
.ticket-soldout {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.buchen-tickets { display: flex; flex-direction: column; gap: 0; }
.ticket-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.ticket-info { display: flex; flex-direction: column; gap: 3px; }
.ticket-typ { font-weight: 600; font-size: 15px; }
.ticket-hinweis {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ticket-price {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.ticket-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--rule);
}
.ticket-stepper button {
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 150ms ease;
}
.ticket-stepper button:hover { background: var(--paper-2); }
.ticket-qty {
  min-width: 36px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  border-left: 1.5px solid var(--rule);
  border-right: 1.5px solid var(--rule);
  line-height: 36px;
}
.buchen-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
}
.buchen-total-amount {
  font-size: 22px;
  color: var(--ink);
}
.buchen-mwst {
  font-size: 11px;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-left: 6px;
}
.buchen-hinweise {
  margin: 20px 0;
  padding: 0 0 0 16px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.buchen-hinweise li {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* Captcha spacing on the booking form */
.buchen-captcha { margin-top: 28px; }

/* Booking submit */
.buchen-submit {
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.buchen-legal {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}
.buchen-legal a { color: var(--accent); border-bottom: 1px solid currentColor; }
.optional {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  font-weight: 400;
  text-transform: uppercase;
}
.req { color: var(--accent); margin-left: 2px; }

/* Booking sidebar */
.buchen-sidebar { position: sticky; top: 100px; }
.buchen-summary {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.buchen-summary-head { display: flex; flex-direction: column; gap: 6px; }
.bsh-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bsh-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}
.bsh-date {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.buchen-summary-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 14px;
}
.buchen-summary-facts dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 2px;
}
.buchen-summary-facts dd { margin: 0; color: var(--ink-2); }
.buchen-summary-prices { display: flex; flex-direction: column; gap: 4px; }
.bsp-head {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.bsp-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 1px solid var(--rule);
}
.bsp-row:last-child { border-bottom: none; }
.bsp-klasse {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 12px;
  margin-bottom: 4px;
}
.bsp-klasse:first-of-type { margin-top: 0; }
.bsp-empty { color: var(--ink-4); font-size: 13px; font-style: italic; padding: 4px 0; }
.bsp-klasse-inline { color: var(--ink-3); font-size: 11px; margin-left: 4px; font-style: normal; }
.buchen-summary-contact {
  font-size: 13px;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.buchen-summary-contact a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* Responsive */
@media (max-width: 1000px) {
  .buchen-grid { grid-template-columns: 1fr; }
  .buchen-sidebar { position: static; }
  .sf-timetable { grid-template-columns: 1fr; }
  .sf-facts { flex-direction: column; }
  /* In a column, flex-basis becomes the height — reset it so boxes size to content. */
  .sf-fact { flex: 0 0 auto; border-right: none; border-bottom: 1px solid var(--rule); }
  .sf-fact:last-child { border-bottom: none; }
}
@media (max-width: 700px) {
  .field-row { grid-template-columns: 1fr; }
  .field--plz { max-width: 100%; }
}

/* Error page — DR Lokschild */
.error-plate-page {
  background: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
}
.error-plate-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  text-align: center;
}

/* Plate group */
.dr-shield-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: clamp(260px, 48vw, 480px);
}
.dr-shield-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

/* Base plate */
.dr-shield {
  position: relative;
  background: #111110;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Subtle raised-edge look: lighter top/left, darker bottom/right */
}
.dr-shield--header { padding: 18px 48px; }
.dr-shield--main   { padding: 28px 40px; }
.dr-shield--small  { padding: 16px 20px; flex: 1; }

/* Screw heads */
.dr-screw {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #181816;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}
/* Crosshair slot */
.dr-screw::before, .dr-screw::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.18);
}
.dr-screw::before { width: 1px; height: 55%; top: 22.5%; left: calc(50% - 0.5px); }
.dr-screw::after  { height: 1px; width: 55%; left: 22.5%; top: calc(50% - 0.5px); }
.dr-screw--tl { top: 9px;    left: 9px; }
.dr-screw--tr { top: 9px;    right: 9px; }
.dr-screw--bl { bottom: 9px; left: 9px; }
.dr-screw--br { bottom: 9px; right: 9px; }

/* Typography */
.dr-text-header {
  font-family: var(--f-display);
  font-size: clamp(18px, 3.6vw, 34px);
  font-weight: 700;
  color: #f2f0e8;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.25;
}
.dr-text-num {
  font-family: var(--f-display);
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 900;
  line-height: 1;
  color: #f2f0e8;
  letter-spacing: 0.1em;
}
.dr-text-small {
  font-family: var(--f-display);
  font-size: clamp(14px, 2.4vw, 22px);
  font-weight: 700;
  color: #f2f0e8;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.loko-error-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  max-width: 460px;
  line-height: 1.7;
  margin: 0;
}
.error-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-ghost-light {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 2px;
  transition: color 180ms, border-color 180ms;
}
.btn-ghost-light:hover { color: #fff; border-color: rgba(255,255,255,0.65); }
.error-req-id {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-3);
}
.error-req-id code {
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}

#nav.is-scrolled #nav-logo { content: url('/images/logo_trans_black.png'); }
