/* ==========================================================================
   Waffenhistorisches Premium-Museums-Design (Archiv der Drei Linien)
   ========================================================================== */

body { 
    font-family: 'Segoe UI', Georgia, Garamond, serif; 
    line-height: 1.7; 
    margin: 0; 
    padding: 0; 
    color: #2c3e50; 
    
    /* Haupt-Hintergrundfarbe: Dunkler Schiefer */
    background-color: #111a24;
    
    /* ABSOLUT OFFLINE-SICHERE HISTORISCHE WASSERZEICHEN ÜBER BILD-PFADE */
    background-image: 
        /* Linkes Wasserzeichen: Originalgetreuer kaiserlich-russischer Doppeladler */
        url("img/zarenadler.svg"),
        /* Rechtes Wasserzeichen: Originalgetreues sowjetisches Staatsemblem Hammer & Sichel */
        url("img/hammersichel.svg"),
        /* Subtiles rüstungstechnisches Linienraster */
        linear-gradient(rgba(26, 42, 58, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 42, 58, 0.5) 1px, transparent 1px);
        
    /* Exakte Positionierung im Browserfenster (Zentriert links und rechts des Kastens) */
    background-position: 
        left 3% center, 
        right 3% center, 
        0 0, 
        0 0;
    background-size: 
        240px 240px, 
        240px 240px, 
        40px 40px, 
        40px 40px;
    background-repeat: 
        no-repeat, 
        no-repeat, 
        repeat, 
        repeat;
    background-attachment: fixed;
}


html {
    scroll-behavior: smooth; /* Aktiviert das sanfte Gleiten beim Klicken */
}




/* Header im historischen Arsenal-Look */
header { 
    background-color: #0d161f; 
    color: #f1f2f6; 
    padding: 35px 0; 
    text-align: center; 
    border-bottom: 4px solid #962d22; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
header h1 { 
    margin: 0; 
    font-size: 2.6em; 
    font-weight: 700; 
    letter-spacing: 1.5px; 
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #f3f1ed;
}
header p { 
    margin: 8px 0 0 0; 
    color: #bdc3c7; 
    font-style: italic; 
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

/* Navigationsleiste */
/* ==========================================================================
   MODERNES & OFFLINE-SICHERES DROP-DOWN-NAVIGATIONSSYSTEM
   ========================================================================== */

nav { 
    background-color: #1a2530; 
    text-align: center; 
    padding: 0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Hauptmenü-Leiste */
.menu-main {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.menu-item {
    position: relative;
}

.menu-item > a { 
    color: #cbd5e1; 
    text-decoration: none; 
    padding: 15px 20px; 
    display: block;
    font-weight: 600; 
    font-size: 0.95em; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease; 
}

.menu-item > a:hover { 
    background-color: #962d22; 
    color: #ffffff; 
}

/* Das ausklappbare Untermenü (Fold-Down) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a2530;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
    border-top: 3px solid #962d22;
    border-radius: 0 0 4px 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    z-index: 1001;
}

.dropdown-content a {
    color: #cbd5e1;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: #962d22;
    color: white;
}

/* Die magische Zeile: Klappt das Menü beim Überfahren mit der Maus auf */
.menu-item:hover .dropdown-content {
    display: block;
}

/* Im CSS-Bereich einfügen: */
.back-link {
  color: #ffffff !important; /* Reines Weiß */
  text-decoration: none;     /* Entfernt die standardmäßige Unterstreichung */
  font-weight: bold;         /* Macht den Link besser lesbar */
  transition: color 0.2s;    /* Sorgt für einen weichen Effekt beim Drüberfahren */
}

/* Farbe beim Drüberfahren mit der Maus (Hover) */
.back-link:hover {
  color: #cbd5e1 !important; /* Wechselt zu einem dezenten Hellgrau */
  text-decoration: underline;/* Blendet die Unterstreichung beim Hovern ein */
}

/* Hauptcontainer */
.container { 
    max-width: 1150px; 
    margin: 40px auto; 
    padding: 0 25px; 
}

/* Inhalts-Box: Museums-Vitrinen-Effekt mit dezentem Archivpapier-Hintergrund */
.main-content { 
    background-color: #fcfbfa; 
    /* Subtiles Archivpapier-Muster rein über CSS */
    background-image: radial-gradient(#f4f1ea 15%, transparent 15%),
                      radial-gradient(#f4f1ea 15%, transparent 15%);
    background-size: 4px 4px;
    background-position: 0 0, 2px 2px;
    padding: 45px; 
    border-radius: 6px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border: 1px solid #e1dbd0;
}

/* Typographie-Schärfung */
h2 { 
    color: #0d161f; 
    border-bottom: 2px solid #962d22; 
    padding-bottom: 12px; 
    margin-top: 0; 
    font-size: 1.8em;
    letter-spacing: 0.5px;
}
h3 { 
    color: #962d22; 
    margin-top: 35px; 
    font-size: 1.4em;
    border-left: 4px solid #0d161f;
    padding-left: 10px;
}
p { 
    margin: 0 0 18px 0; 
    text-align: justify; 
    color: #2c3e50;
    font-size: 1.05em;
}

/* Exponat-Karten (Grid-Layout) */
.card-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); 
    gap: 25px; 
    margin-top: 25px; 
}
.card { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 5px; 
    padding: 22px; 
    border-top: 4px solid #1a2a3a; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}
.card.b-status { 
    border-top-color: #962d22; 
    background: #fffcfb;
}
.card h4 { 
    margin: 0 0 10px 0; 
    color: #0d161f; 
    font-size: 1.25em; 
}

/* Info-Badges */
.meta-info { 
    font-size: 0.85em; 
    color: #475569; 
    margin-bottom: 12px; 
    background: #f1f5f9; 
    padding: 4px 10px; 
    border-radius: 3px; 
    display: inline-block; 
    border: 1px solid #cbd5e1;
    font-family: monospace;
}

/* Wissenschaftliche Datentabellen */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 25px 0; 
    font-size: 0.95em; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
th, td { 
    border: 1px solid #e2e8f0; 
    padding: 14px; 
    text-align: left; 
}
th { 
    background-color: #0d161f; 
    color: #ffffff; 
    font-weight: 600;
    letter-spacing: 0.5px;
}
tr:nth-child(even) { 
    background-color: #f8fafc; 
}

/* Boxen für Infoboxen und Forschungsaufträge */
.ballistik-box, .diversifikation-box, .quellen-bruecke, .forschungs-auftrag {
    border-radius: 4px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}
.ballistik-box { background-color: #f8fafc; border-left: 4px solid #962d22; }
.diversifikation-box { background-color: #f0fdf4; border-left: 4px solid #27ae60; }
.quellen-bruecke, .forschungs-auftrag { background-color: #f8fafc; border-left: 4px solid #3498db; }

/* Fußzeile */
footer { 
    background-color: #0d161f; 
    color: #ffffff; /* Korrigiert: Reines Weiß für absolute Lesbarkeit des Copyrights */
    text-align: center; 
    padding: 20px 0; 
    margin-top: 50px; 
    font-size: 0.85em; 
    border-top: 4px solid #1a2530; 
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}
footer a {
    color: #ffffff; /* Links ebenfalls in Weiß */
    text-decoration: underline;
    font-weight: 600; /* Leicht fett für bessere optische Abhebung */
    transition: color 0.2s;
}
footer a:hover {
    color: #c0392b; /* Kräftiges Arsenal-Rot beim Überfahren mit der Maus */
}
/* Styling für den Update-Hinweis */
.update-box {
    background-color: #f8fafc; /* Heller, unaufdringlicher Hintergrund */
    border-left: 4px solid #c0392b; /* Roter Akzent passend zu deiner Menüleiste */
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 4px 4px 0;
}
.update-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1a2a3a;
    font-size: 1.1em;
}
.update-list {
    list-style-type: none; /* Keine Standard-Punkte */
    padding-left: 0;
    margin: 0;
}
.update-list li {
    font-size: 0.95em;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.4;
}
.update-list li:last-child {
    margin-bottom: 0; /* Kein Abstand beim letzten Eintrag */
}
.update-list a {
    color: #c0392b;
    text-decoration: underline;
}
.update-list a:hover {
    color: #1a2a3a;
}
/* Styling für den Button auf der Webseite */
.print-button {
  background-color: #475569;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 20px;
}
.print-button:hover {
  background-color: #334155;
}

/* Versteckt den Quellennachweis standardmäßig auf dem Bildschirm */
.print-quellennachweis {
  display: none;
}

/* ==========================================
   CSS REIN FÜR DEN AUSDRUCK (DIN A4)
   ========================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 1.5cm;
  }

  /* Macht den Quellennachweis auf dem Papier sichtbar */
  .print-quellennachweis {
    display: block !important;
    font-size: 9pt;
    color: #475569 !important;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-family: sans-serif;
  }

  /* Blendet störende Elemente aus */
  .print-button, 
  #webp-lightbox-overlay, 
  nav, footer, .sidebar { 
    display: none !important; 
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  h1, h2, h3 {
    page-break-after: avoid;
    color: black !important;
  }

  .galerie-grid {
    display: block !important; 
  }

  .galerie-item {
    page-break-inside: avoid; 
    margin-bottom: 2cm;
    text-align: center;
  }

  .galerie-item img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 12cm; 
    object-fit: contain;
  }

  .galerie-caption {
    font-size: 10pt;
    color: #333 !important;
    margin-top: 5px;
    font-style: italic;
  }
}
/* Das Haupt-Akkordeon */
.fakten-akkordeon {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin: 20px 0;
  padding: 10px;
  font-family: sans-serif;
  transition: all 0.3s ease;
}

/* Die anklickbare Kopfzeile */
.fakten-akkordeon summary {
  font-weight: bold;
  font-size: 1.1em;
  color: #475569;
  cursor: pointer;
  padding: 5px;
  outline: none;
  user-select: none;
}

/* Ändert die Farbe beim Drüberfahren */
.fakten-akkordeon summary:hover {
  color: #1e293b;
}

/* Der Bereich, der aufklappt */
.akkordeon-inhalt {
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
  margin-top: 10px;
}

/* Schicke Tabellen-Formatierung für die Fakten */
.details-tabelle {
  width: 100%;
  border-collapse: collapse;
}

.details-tabelle td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95em;
  color: #334155;
}

/* Jede zweite Zeile leicht grau hinterlegen für bessere Lesbarkeit */
.details-tabelle tr:nth-child(even) {
  background-color: #f1f5f9;
}

/* ==========================================
   INTEGRATION IN DEINEN DIN A4 AUSDRUCK
   ========================================== */
@media print {
  /* Auf dem Papier soll das Akkordeon IMMER voll aufgeklappt und sichtbar sein */
  .fakten-akkordeon {
    display: block !important;
    border: none !important;
    background: transparent !important;
    page-break-inside: avoid;
  }
  
  .fakten-akkordeon summary {
    display: list-item !important; /* Behält den kleinen Pfeil im Druck bei */
    font-size: 12pt !important;
    color: black !important;
  }
  
  .details-tabelle tr:nth-child(even) {
    background-color: #f8fafc !important; /* Sehr heller Grauton fürs Papiersparen */
  }
}
/* Container für die Zeitleiste */
.timeline-container {
  max-width: 800px;
  margin: 40px auto;
  font-family: sans-serif;
  padding: 0 10px;
}

.timeline-title {
  text-align: center;
  color: #1e293b;
  margin-bottom: 30px;
}

/* Die vertikale Hauptlinie */
.timeline {
  position: relative;
  padding: 10px 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px; /* Position der Linie */
  width: 4px;
  background: #cbd5e1; /* Hellgraue Linie */
  border-radius: 2px;
}

/* Einzelner Zeitleisten-Punkt */
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

/* Die Jahreszahl-Box */
.timeline-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 32px;
  background: #475569; /* Passend zu deinem Druckbutton */
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9em;
  text-align: center;
  line-height: 32px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1;
}

/* Der Text-Inhalt rechts neben der Linie */
.timeline-content {
  margin-left: 100px; /* Schafft Platz für die Jahreszahl-Box */
  background: #f8fafc;
  padding: 15px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.timeline-content h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #1e293b;
  font-size: 1.1em;
}

.timeline-content p {
  margin: 0;
  color: #475569;
  font-size: 0.95em;
  line-height: 1.5;
}

/* ==========================================
   INTEGRATION IN DEINEN DIN A4 AUSDRUCK
   ========================================== */
@media print {
  .timeline-container {
    page-break-inside: avoid;
    margin: 20px 0;
  }
  .timeline::before {
    background: #475569 !important; /* Dunklere Linie für den Drucker */
  }
  .timeline-badge {
    background: #e2e8f0 !important;
    color: #000000 !important;
    border: 1px solid #475569;
    box-shadow: none;
  }
  .timeline-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1;
    box-shadow: none;
  }
}
/* LIGHTBOX SYSTEM FOR STEMPEL-DATENBANK */
.stempel-link { display: block; cursor: pointer; transition: transform 0.2s; }
.stempel-link:hover { transform: scale(1.03); }
.stempel-badge { display: inline-block; background-color: #1a2a3a; color: white; padding: 4px 8px; font-family: monospace; font-weight: bold; border-radius: 3px; font-size: 0.95em; }
.methodik-box { background-color: #f8fafc; border-left: 4px solid #3498db; padding: 18px; margin-bottom: 25px; border-radius: 0 5px 5px 0; }
.anker-nav { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 4px; padding: 12px; margin-bottom: 30px; text-align: center; }
.anker-link { display: inline-block; margin: 0 15px; color: #962d22; text-decoration: none; font-weight: bold; font-size: 0.95em; text-transform: uppercase; letter-spacing: 0.5px; }
.anker-link:hover { color: #1a2a3a; text-decoration: underline; }
.section-header { background-color: #1a2a3a; color: white; padding: 10px 15px; font-weight: bold; font-size: 1.1em; border-left: 4px solid #962d22; margin-top: 30px; margin-bottom: 15px; border-radius: 3px; scroll-margin-top: 70px; }
.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(17, 26, 36, 0.92); text-align: center; box-sizing: border-box; padding-top: 40px; }
.lightbox img { max-width: 85%; max-height: 80vh; border: 3px solid #fcfbfa; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin: 0 auto; display: inline-block; }
.lightbox:target { display: block; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fcfbfa; font-size: 45px; font-weight: bold; text-decoration: none; }
.lightbox-close:hover { color: #962d22; }
.lightbox-caption { color: #bdc3c7; margin-top: 15px; font-size: 1em; font-style: italic; letter-spacing: 0.5px; }
