/* ============================================================
   ARCHIV – TITELBEREICH
   ============================================================ */

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
}

#archive-heading {
  text-align: center;
  font-size: 24px;
  margin: 20px 0 10px 0;
  font-weight: bold;
}

#archive-heading-fixed {
  margin-right: 6px;
}

#archive-heading-dynamic {
  color: #444;
  font-weight: normal;
}

/* ============================================================
   ARCHIV SELECTOR – GLOBAL STYLES
   ============================================================ */

/* Wrapper für alle Dropdowns + Buttons */
#archive-selector-wrapper {
  margin: 20px auto;
  text-align: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Labels */
.archive-selector-wrapper label {
  font-weight: normal;
  font-size: 15px;
  color: #333;
}

/* ============================================================
   DROPDOWNS: Monat, Jahr, Datentyp
   ============================================================ */

#archive-month,
#archive-year,
#archive-type {
  position: relative;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
  color: black;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Pfeil + Trennlinie */
  background-image:
    linear-gradient(to right, #ccc 1px, transparent 1px),
    url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 9 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 30px center, right 10px center;
  background-size: 1px 60%, 10px 6px;

  padding-right: 40px;
}

/* ============================================================
   DROPDOWN: Variante (für Jahrestabellen)
   ============================================================ */

#archive-variant {
  position: relative;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
  color: black;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Pfeil + Trennlinie wie bei den anderen */
  background-image:
    linear-gradient(to right, #ccc 1px, transparent 1px),
    url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 9 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 30px center, right 10px center;
  background-size: 1px 60%, 10px 6px;

  padding-right: 40px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

/* Anzeigen */
#archive-load {
  font-size: 14px;
  padding: 4px 14px;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#archive-load:hover {
  background-color: #ddd;
}

/* Download */
#archive-download {
  font-size: 14px;
  padding: 4px 14px;
  background-color: #e6f3e6;
  border: 1px solid #8bc98b;
  border-radius: 4px;
  color: #2d6a2d;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#archive-download:hover {
  background-color: #d4ebd4;
}

/* ============================================================
   INFOBOX (AUSKLAPPBAR)
   ============================================================ */

.archive-info {
  margin: 20px 0;
  padding: 15px 18px;
  background: #f5f5f5;
  border-left: 4px solid #888;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #333;
}

.archive-info-compact {
  margin-bottom: 8px;
}

.archive-info-toggle {
  display: inline-block;
  margin-left: 8px;
  color: #0066cc;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}

.archive-info-toggle:hover {
  text-decoration: underline;
}

.archive-info-details {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #444;
}

.archive-info-details p {
  margin: 8px 0 12px 0;
}

/* ============================================================
   ARCHIV – AUSGABEBEREICH
   ============================================================ */

.archive-content {
  margin: 20px auto;
  width: 100%;
  max-width: 1200px; /* schön breit, aber nicht zu breit */
  min-height: 600px; /* damit es nicht winzig ist */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
  box-sizing: border-box;
}

/* Iframe für HTML-Tabellen */
.archive-frame {
  width: 100%;
  height: 1250px;
  border: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  background: white;
}

/* PDF-Anzeige */
.archive-pdf {
  width: 100%;
  height: 1200px; /* PDFs brauchen mehr Höhe */
  border: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  background: white;
}

/* PNG-Bilder (Schnee, Jahrestabelle) */
.archive-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

.archive-status {
  text-align: center;
  font-size: 15px;
  color: #666;
  margin-top: 5px;
  margin-bottom: 10px;
  min-height: 20px;
  transition: opacity 0.3s ease;
}

.archive-status.loading::after {
  content: ' Lade...';
  animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
  0% { content: ' Lade'; }
  33% { content: ' Lade.'; }
  66% { content: ' Lade..'; }
  100% { content: ' Lade...'; }
}

/* ============================================================
   MOBILE OPTIMIERUNG
   ============================================================ */

@media (max-width: 550px) {

  #archive-month,
  #archive-year,
  #archive-type {
    font-size: 12px;
    padding: 6px 12px;
    padding-right: 36px;

    background-image:
      linear-gradient(to right, #ccc 1px, transparent 1px),
      url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 9 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 26px center, right 8px center;
    background-size: 1px 60%, 10px 6px;
  }

  #archive-variant {
    font-size: 12px;
    padding: 6px 12px;
    padding-right: 36px;

    background-image:
      linear-gradient(to right, #ccc 1px, transparent 1px),
      url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 9 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 26px center, right 8px center;
    background-size: 1px 60%, 10px 6px;
  }

  #archive-load,
  #archive-download {
    font-size: 12px;
    margin-top: 6px;
    align-self: center;
  }

.archive-content {
    min-height: 400px;
    padding: 5px;
  }

  .archive-frame {
    height: 700px;
  }

  .archive-pdf {
    height: 800px;
  }



