/* ============================================================
   Dampflokwalk meets Mein Marsch — custom.css
   Lokale Schriften, Farbsystem, Layout, Komponenten, Animation
   ============================================================ */

/* ---------- Lokale Schriftarten (self-hosted, Open Source) ---------- */
@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab/roboto-slab-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab/roboto-slab-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab/roboto-slab-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans/work-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans/work-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans/work-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans/work-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --russ-schwarz: #1c1a17;
  --waggon-gruen: #2e3b2f;
  --waggon-gruen-hell: #3a4a3b;
  --messing: #b87333;
  --signalgelb: #d9a441;
  --bahnhof-creme: #f2ead8;
  --stahlgrau: #6e7c6f;

  --font-display: "Roboto Slab", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --radius-sm: 4px;
  --radius-md: 10px;
}

/* ---------- Basis ---------- */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background-color: var(--bahnhof-creme);
  color: var(--russ-schwarz);
  overflow-x: hidden;
}
h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}
.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--messing);
}
a { color: var(--messing); }
a:hover { color: var(--signalgelb); }

/* Sichtbarer Fokus-Zustand (Barrierefreiheit) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--signalgelb);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.schienen-divider {
  width: 100%;
  height: 20px;
  background-image: url("../img/divider-schwelle.svg");
  background-repeat: repeat-x;
  background-size: 200px 20px;
  opacity: 0.5;
}

/* ---------- Navbar ---------- */
.navbar-dlw {
  background-color: var(--russ-schwarz);
  border-bottom: 3px solid var(--messing);
}
.navbar-dlw .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bahnhof-creme) !important;
  font-size: 1.15rem;
}
.navbar-dlw .navbar-brand span {
  color: var(--signalgelb);
}
.navbar-dlw .nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--bahnhof-creme) !important;
  opacity: 0.85;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.navbar-dlw .nav-link:hover,
.navbar-dlw .nav-link:focus {
  opacity: 1;
  color: var(--signalgelb) !important;
}
.navbar-dlw .btn-anmelden {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background-color: var(--signalgelb);
  color: var(--russ-schwarz);
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
}
.navbar-dlw .btn-anmelden:hover {
  background-color: var(--bahnhof-creme);
}

.navbar-toggler-icon {
	background-color: antiquewhite;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at top left, var(--waggon-gruen-hell) 0%, var(--russ-schwarz) 62%);
  color: var(--bahnhof-creme);
  position: relative;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero-title .accent {
  color: var(--signalgelb);
}
.hero-lead {
  font-size: 1.15rem;
  max-width: 42ch;
  color: rgba(242, 234, 216, 0.85);
}
.hero-img-wrap {
  position: relative;
}
.hero-img-wrap img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,0.45));
  opacity: 0.4
}
/* Dampf-Animation */
.steam {
  position: absolute;
  border-radius: 50%;
  background: rgba(242, 234, 216, 0.55);
  filter: blur(2px);
  animation: steam-rise 6s ease-in infinite;
  opacity: 0;
}
.steam:nth-child(1) { width: 26px; height: 26px; left: 6%; top: 34%; animation-delay: 0s; }
.steam:nth-child(2) { width: 34px; height: 34px; left: 9%; top: 30%; animation-delay: 1.4s; }
.steam:nth-child(3) { width: 20px; height: 20px; left: 4%; top: 38%; animation-delay: 2.8s; }
.steam:nth-child(4) { width: 30px; height: 30px; left: 8%; top: 32%; animation-delay: 4.2s; }
@keyframes steam-rise {
  0%   { transform: translate(0,0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.8; }
  100% { transform: translate(-30px, -140px) scale(1.8); opacity: 0; }
}

.btn-brass {
  background-color: var(--messing);
  border: none;
  color: var(--bahnhof-creme);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn-brass:hover {
  background-color: var(--signalgelb);
  color: var(--russ-schwarz);
  transform: translateY(-2px);
}
.btn-outline-creme {
  border: 2px solid var(--bahnhof-creme);
  color: var(--bahnhof-creme);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: all 0.2s ease;
}
.btn-outline-creme:hover {
  background: var(--bahnhof-creme);
  color: var(--russ-schwarz);
}

/* ---------- Section-Generic ---------- */
section {
  padding: 5rem 0;
}
.section-dark {
  background-color: var(--russ-schwarz);
  color: var(--bahnhof-creme);
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ---------- Info-Karten ---------- */
.info-card {
  background-color: var(--waggon-gruen);
  color: var(--bahnhof-creme);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  height: 100%;
  border-top: 4px solid var(--messing);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--signalgelb);
}
.info-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}
.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.info-card p {
  color: rgba(242,234,216,0.8);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Split-Flap Klapptafel (Signature Element) ---------- */
.klapptafel {
  background-color: var(--russ-schwarz);
  border: 3px solid var(--messing);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.klapptafel-head {
  display: grid;
  grid-template-columns: 90px 1fr 130px 110px;
  gap: 0.5rem;
  background-color: var(--messing);
  color: var(--russ-schwarz);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}
.klapptafel-row {
  display: grid;
  grid-template-columns: 90px 1fr 130px 110px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(217,164,65,0.25);
}
.klapptafel-row:nth-child(even) {
  background-color: rgba(217,164,65,0.05);
}
.flap {
  font-family: var(--font-mono);
  color: var(--bahnhof-creme);
  background-color: var(--waggon-gruen);
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.95rem;
}
.klapptafel-row .programm-titel {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--bahnhof-creme);
}
.klapptafel-row .programm-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signalgelb);
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .klapptafel-head { display: none; }
  .klapptafel-row {
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
    padding: 1rem;
  }
}

/* ---------- Strecke ---------- */
.strecke-karte {
  background-color: var(--waggon-gruen);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  color: var(--bahnhof-creme);
}
.strecke-liste {
  list-style: none;
  padding-left: 0;
  margin: 0;
  position: relative;
}
.strecke-liste li {
  position: relative;
  padding: 0 0 1.6rem 2.4rem;
  border-left: 2px dashed var(--messing);
  margin-left: 0.5rem;
}
.strecke-liste li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.strecke-liste li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--signalgelb);
  border: 2px solid var(--russ-schwarz);
}
.strecke-liste .km {
  font-family: var(--font-mono);
  color: var(--signalgelb);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------- Galerie ---------- */
.galerie-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}
.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.galerie-item:hover img {
  transform: scale(1.06);
}
.galerie-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(28,26,23,0.9), transparent);
  color: var(--bahnhof-creme);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 1.4rem 1rem 0.8rem;
}

/* ---------- Anmeldung / Formular ---------- */
.anmelden-wrap {
  background-color: var(--waggon-gruen);
  border-radius: var(--radius-md);
  padding: 3rem;
  color: var(--bahnhof-creme);
}
.form-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signalgelb);
}
.form-control, .form-select {
  background-color: var(--russ-schwarz);
  border: 1px solid rgba(217,164,65,0.4);
  color: var(--bahnhof-creme);
  border-radius: var(--radius-sm);
}
.form-control:focus, .form-select:focus {
  background-color: var(--russ-schwarz);
  color: var(--bahnhof-creme);
  border-color: var(--signalgelb);
  box-shadow: 0 0 0 0.2rem rgba(217,164,65,0.25);
}
.form-control::placeholder {
  color: rgba(242,234,216,0.4);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--russ-schwarz);
  color: rgba(242,234,216,0.7);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer a {
  color: var(--bahnhof-creme);
}
.footer .brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bahnhof-creme);
  font-size: 1.2rem;
}
.footer hr {
  border-color: rgba(217,164,65,0.25);
  margin: 2rem 0 1.2rem;
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
