/* VDG Mitgliederbereich – Welt B
   Newsletter-Archiv (Rubrik Aktuelles), siehe js/content.js.

   Thomas: "Und so sah mal Aktuelles aus. Bitte nachbauen... Die bunten
   Kaesten entsprechen den Themen unseres Newsletters." Farbige, nach Thema
   filterbare Beitragskacheln + Archiv vergangener Ausgaben darunter.

   Scoping: #page-aktuelles, analog zu css/vdg-recht.css/vdg-wissen.css fuer
   ihre jeweiligen Rubriken. Reine Ergaenzung - keine bestehende Regel
   veraendert. */

#page-aktuelles .newsletter-archive{
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e2e6e0;
}

/* Kopfzeile der Themen- bzw. Ausgaben-Detailansicht (Schritt 3c) */
#page-aktuelles .newsletter-detail-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-left: 6px solid var(--tile-color, #2f6b4a);
  padding: 4px 0 4px 16px;
  margin-bottom: 20px;
}
#page-aktuelles .newsletter-detail-head h2{ margin: 2px 0 6px; }
#page-aktuelles .newsletter-detail-head p{ margin: 0; color: #4c5a46; max-width: 70ch; }

/* Beitragszeilen innerhalb eines Themas bzw. einer Ausgabe */
#page-aktuelles .newsletter-rows{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

#page-aktuelles .newsletter-row{
  --tile-color: #2f6b4a;
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: #fff;
  border: 1px solid #e2e6e0;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#page-aktuelles .newsletter-row:hover{
  border-color: var(--tile-color);
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}

#page-aktuelles .newsletter-row-bar{
  width: 5px;
  border-radius: 999px;
  background: var(--tile-color);
  flex: 0 0 5px;
}

/* Teaserbild je Beitrag (Schritt 3d) - feste Groesse, damit Zeilen ohne Bild
   (nicht jeder Original-Beitrag hatte eins) nicht "springen"; object-fit
   verhindert Verzerrung bei Hoch-/Querformat-Fotos aus dem Original-PDF. */
#page-aktuelles .newsletter-row-thumb{
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef3ea;
}
#page-aktuelles .newsletter-row-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 480px){
  #page-aktuelles .newsletter-row-thumb{ flex-basis: 56px; width: 56px; height: 56px; }
}

#page-aktuelles .newsletter-row-main{
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
#page-aktuelles .newsletter-row-cat{
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tile-color);
}
#page-aktuelles .newsletter-row-main strong{ font-size: 16px; line-height: 1.35; }
#page-aktuelles .newsletter-row-summary{ font-size: 15.5px; color: #4c5a46; }
#page-aktuelles .newsletter-row-meta{ font-size: 15.5px; color: #77836f; }

#page-aktuelles .newsletter-row-more{
  align-self: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--tile-color);
  white-space: nowrap;
}

/* Themengruppen innerhalb einer kompletten Ausgabe */
#page-aktuelles .newsletter-issue-group h3{
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 5px solid var(--tile-color, #2f6b4a);
}

#page-aktuelles .newsletter-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* Themen-Kachel: seit Schritt 3c ein <button> (Einstieg ins Thema) statt
   eines Links auf einen einzelnen Beitrag - deshalb Button-Eigenheiten
   (Rahmen, Schriftart, Ausrichtung) ausdruecklich zuruecksetzen. */
#page-aktuelles .newsletter-tile{
  --tile-color: #2f6b4a;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 0;
  border-radius: 14px;
  background: var(--tile-color);
  color: #fff;
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  min-height: 160px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
#page-aktuelles .newsletter-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.16);
}

#page-aktuelles .newsletter-tile-pill{
  align-self: flex-start;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#page-aktuelles .newsletter-tile h3{
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

#page-aktuelles .newsletter-tile p{
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  opacity: .92;
  flex: 1;
}

#page-aktuelles .newsletter-tile-foot{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15.5px;
  opacity: .85;
  margin-top: auto;
  gap: 8px;
}

#page-aktuelles .newsletter-tile-more{
  font-weight: 700;
  white-space: nowrap;
}

#page-aktuelles .newsletter-editions{
  background: #eef3ea;
  border-radius: 14px;
  padding: 20px 24px;
}

#page-aktuelles .newsletter-editions-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

#page-aktuelles .newsletter-editions-head h3{
  margin: 2px 0 6px;
}

#page-aktuelles .newsletter-editions-head p{
  margin: 0;
  color: #4c5a46;
  max-width: 60ch;
}

#page-aktuelles .newsletter-editions-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#page-aktuelles .newsletter-edition-chip{
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #c9d3c2;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  min-width: 180px;
}
#page-aktuelles .newsletter-edition-chip:hover{
  border-color: #8fa683;
}
#page-aktuelles .newsletter-edition-chip.active{
  border-color: #17281d;
  background: #17281d;
  color: #fff;
}
#page-aktuelles .newsletter-edition-chip span{
  font-size: 15.5px;
  opacity: .75;
}

@media (max-width: 640px){
  #page-aktuelles .newsletter-editions-list{
    flex-direction: column;
  }
  #page-aktuelles .newsletter-edition-chip{
    width: 100%;
  }
}

/* Schritt 10o: Newsletter – Suche und Filter „Neueste (letzte 2 Monate)“ */
.nl-recent{display:inline-flex;gap:6px;align-items:center;border:1px solid #dbe5d6;border-radius:999px;padding:7px 14px;background:#fff;cursor:pointer;font-size:15px;white-space:nowrap}
.nl-recent small{color:#6b7a70}
.nl-recent.is-on{background:#CAE2A6;border-color:#CAE2A6}
.nl-box-tools{flex-wrap:wrap;gap:10px}
.nl-filterbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:4px 0 16px}
.nl-filterbar .section-archive-search{flex:1 1 280px;min-width:0}
.nl-filterbar select{font:inherit;font-size:15px;padding:8px 10px;border:1px solid #dbe5d6;border-radius:12px;background:#fff;max-width:100%}
.nl-results-head{margin:0 0 10px;color:#3d4a40}
@media(max-width:600px){.nl-recent{white-space:normal}}
