/* ==============================================================================
   CSS STYLE SHEET – DIE MULTICAR-SCHRAUBER
   URIGER RETRO-WERKSTATT-STIL (GEMÜTLICH, ÖLVERSCHMIERT & PRIVATER CHARAKTER)
   ============================================================================== */

/* --- 1. Custom Properties (Design-System) --- */
:root {
  /* Farbpalette: Warmes Werkstatt-Papier, Alt-Karton, Maschinengrün & Kommunalorange */
  --bg-primary: #eae4d5;       /* Warmes Altpapier / Alt-Kartonage-Ton - sehr gemütlich */
  --bg-secondary: #dfd8c4;     /* Dunklerer, warmer Holz- und Pappton */
  --bg-dark: #22292c;          /* Tiefes Schiefer-Anthrazit für Footer und Kontraste */
  --text-main: #232a2d;        /* Dunkles Ölkohle-Grau für beste Lesbarkeit */
  --text-muted: #57656c;       /* Gedämpftes Grau für Sekundärtexte */
  
  --color-rust: #b3321d;       /* Oxidrot / Rostrot als primäre Akzentfarbe */
  --color-rust-hover: #962817; /* Dunkleres Rostrot */
  --color-steel: #2c3e50;      /* Klassischer Stahl-Ton für Ränder */
  --color-steel-light: #b8c1ba;/* Helles Graugrün für Trenner */
  --color-orange: #d35400;     /* Originales Multicar-Kommunalorange */
  --color-green: #244234;      /* DDR-Maschinengrün / Werkbank-Lackierung */
  --color-yellow: #f1c40f;     /* Warn-Gelb für Baken und Akzente */
  
  /* Typografie (System-Fonts mit Schreibmaschinen-Charakter) */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Courier New", Courier, ui-monospace, monospace; /* Echter Schreibmaschinen-Vibe */
  
  /* Keine harten Schlagschatten für einen unaufgeregten, privaten Hobby-Vibe */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --border-radius: 4px;        /* Dezent abgerundeter, handgemachter Werkstatt-Look */
  
  /* Abstände */
  --space-xs: clamp(0.25rem, 1cqi + 0.1rem, 0.5rem);
  --space-sm: clamp(0.5rem, 1.5cqi + 0.2rem, 1rem);
  --space-md: clamp(1rem, 2cqi + 0.5rem, 2rem);
  --space-lg: clamp(2rem, 3cqi + 1rem, 4rem);
  --space-xl: clamp(3rem, 5cqi + 1.5rem, 6rem);
  --max-width: 1200px;          /* Gemütliche Lesebreite */
}

/* --- 2. Basis-Styles & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  font-size: 16px;
}

/* 
   Körper mit uuuuurigem Werkstatt-Hintergrund:
   Wir zeichnen über ein SVG-Data-URL winzige, transluzente, feine Ölflecken und Rostflecken
   direkt in den CSS-Hintergrund! Komplett lokal, extrem schnell und extrem atmosphärisch!
*/
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-primary);
  background-image: 
    /* Ein feines radiales Muster für Papierkörnung */
    radial-gradient(rgba(44, 62, 80, 0.05) 1px, transparent 1px),
    /* Urige, transluzente Ölflecken, Schmutzränder und Rostsprenkel im Hintergrund */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'><filter id='blur'><feGaussianBlur stdDeviation='10'/></filter><filter id='rust-blur'><feGaussianBlur stdDeviation='5'/></filter><circle cx='80' cy='120' r='30' fill='%235c4327' opacity='0.04' filter='url(%23blur)'/><circle cx='380' cy='420' r='50' fill='none' stroke='%234a3319' stroke-width='8' opacity='0.035' filter='url(%23blur)'/><circle cx='240' cy='280' r='12' fill='%23b3321d' opacity='0.03' filter='url(%23rust-blur)'/><path d='M480,100 C500,90 530,110 510,130 C490,150 460,130 480,100 Z' fill='%236e4d2b' opacity='0.025' filter='url(%23blur)'/><circle cx='180' cy='520' r='40' fill='%235c4327' opacity='0.03' filter='url(%23blur)'/><circle cx='510' cy='300' r='18' fill='%23b3321d' opacity='0.025' filter='url(%23rust-blur)'/></svg>");
  background-size: 15px 15px, 600px 600px;
  background-attachment: scroll, scroll;
}

/* Tastatur-Fokus für Barrierefreiheit */
:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  font-style: italic;
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-steel);
}

.logo-link img {background-color: transparent; border:0;}

/* --- 3. Typografie --- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--color-steel);
  line-height: 1.25;
  margin-top: 0;
  font-weight: 850;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.7rem, 4.2vw + 0.8rem, 2.6rem);
  border-bottom: 3px double var(--color-rust);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
  color: var(--color-steel);
}

h2 {
  font-size: clamp(1.35rem, 2.5vw + 0.6rem, 1.85rem);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-rust);
  border-radius: var(--border-radius);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw + 0.5rem, 1.4rem);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--color-green);
  padding-left: 10px;
}

p, ul, ol, dl, table {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

p {
  color: var(--text-main);
  text-align: justify;
  text-justify: inter-word;
}

/* Monospace Technische Typografie */
.tech-spec {
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: bold;
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border: 1px solid var(--color-steel-light);
  border-radius: var(--border-radius);
  color: var(--color-green);
}

/* --- 4. Layout-Elemente & Navigation --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

header {
  border-bottom: 3px solid var(--color-steel);
  background-color: var(--bg-primary);
  background-image: radial-gradient(rgba(44, 62, 80, 0.05) 1px, transparent 1px);
  background-size: 15px 15px;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.logo-link {
  display: block;
  width: 250px;
  height: auto;
  text-decoration: none;
}

.nav-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-md);
}

.nav-main a {
  text-decoration: none;
  color: var(--color-steel);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: var(--border-radius);
}

.nav-main a:hover {
  color: var(--color-rust);
  background-color: var(--bg-secondary);
}

.nav-main a.active {
  color: #fff;
  background-color: var(--color-rust);
}

/* Einfacher Einführungsbereich (Hobby-Stil!) */
.intro-section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.intro-box {
  background-color: transparent;
}

.intro-text-large {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: var(--space-md);
}

/* Gemütliche rote News-Box mit integriertem Polaroid-Motorbild */
.news-box {
  background-color: rgba(184, 56, 35, 0.07);
  border: 1px solid var(--color-rust);
  border-left: 5px solid var(--color-rust);
  padding: var(--space-md);
  margin: var(--space-md) 0 var(--space-lg) 0;
  border-radius: var(--border-radius);
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: var(--space-md);
  align-items: center;
}

@media (max-width: 650px) {
  .news-box {
    grid-template-columns: 1fr;
  }
}

.news-box-content h3 {
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--color-rust);
  border: none;
  padding-left: 0;
  font-family: var(--font-sans);
  font-size: 1.15rem;
}

.news-box-content p {
  margin-bottom: 0;
  font-size: 0.98rem;
  text-align: left;
}

.news-box-content a {
  color: var(--color-rust);
  font-weight: bold;
  text-decoration: underline;
}

.news-box-content a:hover {
  color: var(--color-rust-hover);
}

/* Polaroid-Stil für das Motorbild in der Newsbox */
.news-box-image {
  background-color: #fff;
  border: 1px solid var(--color-steel-light);
  padding: 8px 8px 16px 8px;
  transform: rotate(1.5deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.news-box-image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-steel-light);
}

/* Schlichter Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-steel);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-steel);
  transition: all 0.15s ease;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn:hover, .btn:focus {
  background-color: var(--color-rust);
  border-color: var(--color-rust);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-steel) !important;
  border-color: var(--color-steel);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--bg-secondary);
}

/* --- 5. Inhalts-Komponenten --- */

/* Text-Bild Spalten */
.feature-row {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse .feature-col {
  direction: ltr;
}

@media (max-width: 768px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* Schlichtes, unaufgeregtes Figure */
.content-figure {
  margin: 0 0 var(--space-md) 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-steel-light);
  padding: 8px;
  border-radius: var(--border-radius);
}

.content-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1px;
  border: 1px solid var(--color-steel-light);
}

.content-figcaption {
  font-size: 0.85rem;
  color: var(--text-main);
  padding: var(--space-sm) 4px 4px 4px;
  line-height: 1.4;
  border-top: 1px dashed var(--color-steel-light);
  margin-top: 8px;
}

.content-figcaption strong {
  color: var(--color-steel);
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

/* Schrittfolge (Schrauber-Prozess) */
.step-list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

.step-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-steel-light);
  border-radius: var(--border-radius);
}

.step-item.active-step {
  border-color: var(--color-rust);
  background-color: #fff;
  border-left: 4px solid var(--color-rust);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-rust);
  line-height: 1;
  background-color: var(--bg-primary);
  border: 1px solid var(--color-steel-light);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-body h4 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

/* --- 6. Bildergalerie mit Lightbox --- */
.gallery-section {
  background-color: var(--bg-secondary);
  padding-top: var(--space-md);
  padding-bottom: var(--space-lg);
  border-top: 1px solid var(--color-steel-light);
  border-bottom: 1px solid var(--color-steel-light);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-lg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.gallery-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--color-steel-light);
  border-radius: var(--border-radius);
  padding: 8px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.gallery-link {
  display: block;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--color-steel-light);
}

.gallery-link img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.2s ease;
  border: none;
}

.gallery-link:hover img {
  transform: scale(1.02);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-link:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.gallery-caption {
  font-size: 0.85rem;
  padding: var(--space-sm) 4px 4px 4px;
  color: var(--text-main);
  line-height: 1.4;
  border-top: 1px dashed var(--color-steel-light);
  margin-top: 8px;
  flex-grow: 1;
}

.gallery-caption strong {
  display: block;
  color: var(--color-steel);
  margin-bottom: 2px;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(35, 43, 46, 0.95);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrapper {
  max-height: 65vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox img, .lightbox video {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border: 3px solid var(--bg-primary);
  border-radius: var(--border-radius);
  background-color: #1a1a1a;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.lightbox-caption {
  color: var(--text-main);
  text-align: left;
  margin-top: 15px;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--color-steel-light);
  border-radius: var(--border-radius);
  max-width: 800px;
  font-size: 0.92rem;
  line-height: 1.4;
  border-left: 4px solid var(--color-rust);
}

.lightbox-caption strong {
  display: block;
  color: var(--color-rust);
  margin-bottom: 2px;
}

/* Controls */
.lightbox-btn {
  background: var(--bg-primary);
  border: 1px solid var(--color-steel-light);
  color: var(--color-steel);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.15s ease;
  z-index: 1010;
}

.lightbox-btn:hover {
  background: var(--color-rust);
  color: #fff;
  border-color: var(--color-rust);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-close { top: -50px; right: 0; border-radius: var(--border-radius); }

@media (max-width: 1024px) {
  .lightbox-prev { left: 10px; top: auto; bottom: -60px; transform: none; }
  .lightbox-next { right: 10px; top: auto; bottom: -60px; transform: none; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-content { width: 95%; }
  .lightbox-image-wrapper { max-height: 55vh; }
  .lightbox img, .lightbox video { max-height: 55vh; }
}

/* --- 7. Conversion-Zone (#aktueller-motor) --- */
.conversion-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.conversion-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-steel-light);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

/* Warnlinie */
.conversion-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(45deg, var(--color-yellow), var(--color-yellow) 10px, #1e272c 10px, #1e272c 20px);
}

.conversion-badge {
  display: inline-block;
  background-color: var(--color-green);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: bold;
  padding: 2px 8px;
  border: 1px solid var(--color-steel-light);
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.conversion-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .conversion-grid {
    grid-template-columns: 1fr;
  }
}

.conversion-specs {
  background-color: var(--bg-primary);
  border: 1px solid var(--color-steel-light);
  padding: var(--space-md);
  border-radius: var(--border-radius);
}

.conversion-specs h4 {
  margin-top: 0;
  border-bottom: 1px solid var(--color-steel-light);
  padding-bottom: 6px;
  color: var(--color-steel);
}

.conversion-specs ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.conversion-specs li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.conversion-specs li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: bold;
}

.conversion-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-dark);
  color: #fff;
  padding: var(--space-md);
  border-radius: var(--border-radius);
  text-align: center;
}

.conversion-action p {
  color: #cbd5e1;
  text-align: center;
}

.price-tag {
  font-size: clamp(2rem, 3.5vw + 0.8rem, 2.8rem);
  font-weight: 800;
  color: var(--color-yellow);
  margin: 8px 0;
  font-family: var(--font-mono);
}

.exchange-cond {
  background-color: rgba(184, 56, 35, 0.2);
  border: 1px solid var(--color-rust);
  padding: 10px;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: bold;
  color: #ff9f93;
  margin-bottom: var(--space-md);
}

.phone-link {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.2vw + 0.8rem, 1.9rem);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  display: block;
  margin-top: 5px;
  transition: color 0.2s ease;
}

.phone-link:hover {
  color: var(--color-yellow);
}

.private-warning {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--text-muted);
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Neue Video- und Motor-Medien-Galerie für den aktuellen Motor */
.motor-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.motor-media-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--color-steel-light);
  padding: 6px;
  border-radius: var(--border-radius);
}

.motor-media-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-steel-light);
  display: block;
}

/* Versteckt die Beschreibungen in der Motor-Galerie auf der Hauptseite, damit sie kompakt bleibt */
.motor-media-card .gallery-caption {
  display: none;
}

/* --- 8. FAQ Sektion (Gedämpfter Stil) --- */
.faq-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--color-steel-light);
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--color-steel-light);
  border-radius: var(--border-radius);
  background-color: var(--bg-primary);
  overflow: hidden;
}

.faq-item summary {
  padding: 14px var(--space-md);
  font-weight: 700;
  color: var(--color-steel);
  cursor: pointer;
  outline: none;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "[+]";
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-rust);
}

.faq-item[open] summary::after {
  content: "[-]";
}

.faq-answer {
  padding: 0 var(--space-md) var(--space-md) var(--space-md);
  border-top: 1px dashed var(--color-steel-light);
  background-color: var(--bg-primary);
}

/* --- 9. Tabellen-Styles --- */
.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-steel-light);
  border-radius: var(--border-radius);
}

table.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 600px;
  background-color: var(--bg-primary);
}

table.tech-table th, table.tech-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-steel-light);
}

table.tech-table th {
  background-color: var(--color-steel);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

table.tech-table tr:last-child td {
  border-bottom: none;
}

table.tech-table tr:nth-child(even) {
  background-color: var(--bg-secondary);
}

table.tech-table td strong {
  color: var(--color-steel);
}

/* --- 10. Timeline Sektion (M25 subpage) --- */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: var(--space-xl) auto;
  padding: 0 10px;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--color-steel);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

@media (max-width: 600px) {
  .timeline-container::after {
    left: 20px;
  }
}

.timeline-block {
  position: relative;
  margin-bottom: var(--space-lg);
  width: 50%;
  padding-right: 30px;
}

.timeline-block:nth-child(even) {
  left: 50%;
  padding-right: 0;
  padding-left: 30px;
}

@media (max-width: 600px) {
  .timeline-block, .timeline-block:nth-child(even) {
    width: 100%;
    left: 0;
    padding-left: 45px;
    padding-right: 0;
  }
}

.timeline-badge {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--color-rust);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  top: 18px;
  right: -8px;
  z-index: 10;
}

.timeline-block:nth-child(even) .timeline-badge {
  left: -8px;
}

@media (max-width: 600px) {
  .timeline-badge, .timeline-block:nth-child(even) .timeline-badge {
    left: 12px;
    right: auto;
  }
}

.timeline-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-steel-light);
  border-radius: var(--border-radius);
  padding: var(--space-md);
}

.timeline-date {
  font-family: var(--font-sans);
  font-weight: bold;
  color: var(--color-rust);
  font-size: 1.1rem;
  margin-bottom: 4px;
  display: block;
}

.timeline-title {
  font-weight: 700;
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  color: var(--color-steel);
}

.timeline-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-main);
}

/* --- 11. Footer --- */
footer {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-top: 4px solid var(--color-rust);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.footer-about h3, .footer-links h3 {
  color: #ffffff;
  border-bottom: 2px solid var(--color-rust);
  padding-bottom: 4px;
  display: inline-block;
  margin-top: 0;
}

.footer-about p {
  color: #cbd5e1;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
  font-size: 0.95rem;
  font-weight: bold;
}

.footer-links a:hover {
  color: var(--color-yellow);
}

.footer-bottom {
  border-top: 1px dashed rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom-links {
  margin-top: 10px;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.15s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* --- 12. Utilities --- */
.text-center { text-align: center; }
.text-rust { color: var(--color-rust); }
.weight-bold { font-weight: 700; }
.margin-top-0 { margin-top: 0; }
.margin-bottom-sm { margin-bottom: var(--space-sm); }
.margin-bottom-md { margin-bottom: var(--space-md); }
.margin-bottom-lg { margin-bottom: var(--space-lg); }

/* Sticky Mobile Call-to-Action Bar */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  border-top: 4px solid var(--color-rust);
  padding: 10px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
  z-index: 999;
}

@media (max-width: 600px) {
  .mobile-cta-bar {
    display: flex;
    justify-content: center;
  }
  .mobile-cta-bar .btn {
    width: 100%;
    margin: 0;
  }
  footer {
    padding-bottom: 75px;
  }
}
