/* =========================
   Fonts (Orbitron)
   ========================= */
@font-face {
  font-family: 'Orbitron';
  src: url('/assets/fonts/orbitron/Orbitron-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron';
  src: url('/assets/fonts/orbitron/Orbitron-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}

/* =========================
   Globales Grundlayout
   ========================= */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Überschriften global */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
}

/* =========================
   Download Button (global)
   ========================= */
a.download-button {
  display: inline-block !important;
  padding: 10px 16px !important;
  background: red !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

a.download-button:hover {
  background: darkred !important;
}

/* =========================
   SPI Flasher (SCOPED!)
   ========================= */
.flasher-page {
  color: white; /* bleibt im restlichen Content */
}

/* Bild sauber zentrieren */
.flasher-page .image-wrapper {
  display: flex;
  justify-content: center;
}

.flasher-page .article-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
}

/* =========================
   Tabelle (wichtig fix!)
   ========================= */
.flasher-page .pinout-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: #ffffff;
  color: #111; /* FIX: dunkler Text */
}

.flasher-page .pinout-table th,
.flasher-page .pinout-table td {
  border: 1px solid #ddd;
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  color: #111; /* FIX: überschreibt weiß */
}

.flasher-page .pinout-table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #111;
}

.flasher-page .pinout-table tr:nth-child(even) td {
  background: #fafafa;
}

/* =========================
   Hinweisbox
   ========================= */
.flasher-page .note {
  font-size: 0.95rem;
  color: #333;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #f8f8f8;
  border-left: 4px solid #00ffff;
  border-radius: 6px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
  .flasher-page .pinout-table {
    font-size: 0.9rem;
  }

  .flasher-page .pinout-table th,
  .flasher-page .pinout-table td {
    padding: 0.55rem 0.6rem;
  }

  .flasher-page .article-image {
    margin: 1rem 0;
  }

  .flasher-page .note {
    font-size: 0.9rem;
  }
}