/* ============================================================
   Public Newsletter CSS
   Design angelehnt an fortbildung-augsburg.de
   ============================================================ */

/* ---- CSS Custom Properties --------------------------------- */
:root {
  --nl-header-bg:   #8B0000;
  --nl-header-text: #ffffff;
  --nl-body-bg:     #f5f4f4;
  --nl-body-text:   #1a1a1a;
  --nl-accent:      #8B0000;
  --nl-footer-bg:   #5c0000;
  --nl-footer-text: #f5d0d0;
  --nl-max-width:   680px;
}

/* ---- Reset / Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

body.nl-body {
  margin: 0;
  background: #ece8e8;
  font-family: 'Plus Jakarta Sans', Georgia, system-ui, sans-serif;
  color: var(--nl-body-text);
  line-height: 1.65;
}

/* ---- Outer wrapper ----------------------------------------- */
.nl-outer {
  max-width: 720px;
  margin: 36px auto;
  background: #fff;
  box-shadow: 0 6px 32px rgba(0,0,0,.14);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .nl-outer { margin: 0; border-radius: 0; }
}

/* ---- Inner ------------------------------------------------- */
.nl-inner {
  max-width: var(--nl-max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Header ------------------------------------------------ */
.nl-header {
  background: var(--nl-header-bg);
  color: var(--nl-header-text);
  padding: 44px 28px 36px;
  text-align: center;
  position: relative;
}

/* Dezente diagonale Linie unten – wie die rote Fläche auf fortbildung-augsburg.de */
.nl-header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--nl-header-bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

.nl-logo {
  margin-bottom: 20px;
}

.nl-logo img {
  /* weißer Hintergrund + Schatten wie bei fortbildung-augsburg.de */
  background: rgba(255,255,255,1);
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 2px 2px 8px rgba(0,0,0,.4);
}

.nl-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.nl-date {
  font-size: .9rem;
  opacity: .75;
  margin: 0;
  font-weight: 400;
}

/* ---- Main -------------------------------------------------- */
.nl-main {
  background: var(--nl-body-bg);
  padding: 36px 0 48px;
}

/* ---- Section ----------------------------------------------- */
.nl-section {
  margin-bottom: 40px;
}

.nl-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--nl-accent);
  border-bottom: 3px solid var(--nl-accent);
  padding-bottom: 8px;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---- Rich text content ------------------------------------- */
.nl-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--nl-body-text);
}
.nl-content h1,
.nl-content h2,
.nl-content h3 {
  color: var(--nl-accent);
  font-weight: 700;
  margin-top: 1.3em;
  margin-bottom: .5em;
}
.nl-content p   { margin-bottom: .9em; }
.nl-content a   { color: var(--nl-accent); font-weight: 500; }
.nl-content a:hover { text-decoration: underline; }
.nl-content ul,
.nl-content ol  { padding-left: 1.5rem; margin-bottom: .9em; }
.nl-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 16px auto;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.nl-content blockquote {
  border-left: 4px solid var(--nl-accent);
  margin: 1.2em 0;
  padding: .6em 1.2em;
  color: #555;
  background: #fdf5f5;
  border-radius: 0 4px 4px 0;
}

/* ---- Event Cards – angelehnt an Termin-Liste fortbildung-augsburg.de */
.nl-events {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nl-event-card {
  background: linear-gradient(to right, #f5f0f0, #ffffff);
  border-radius: 6px;
  border-left: 5px solid var(--nl-accent);
  box-shadow: 0 2px 6px rgba(139,0,0,.07);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nl-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139,0,0,.13);
}

.nl-event-external {
  background: linear-gradient(to right, #f8f0f0, #ffffff);
  border-left-color: #c0392b;
}

/* ---- Event header ------------------------------------------ */
.nl-event-header {
  padding: 16px 20px 10px;
}

.nl-event-number {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--nl-accent);
  padding: 2px 9px;
  border-radius: 100px;
  margin-bottom: 8px;
  letter-spacing: .04em;
}

.nl-event-external .nl-event-number {
  background: #c0392b;
}

.nl-event-organizer {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: #8B0000;
  background: #fce8e8;
  padding: 2px 9px;
  border-radius: 100px;
  margin-bottom: 8px;
  margin-right: 4px;
  border: 1px solid #e5c8c8;
}

.nl-event-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nl-accent);
  margin: 0 0 4px;
  line-height: 1.3;
}

.nl-event-subtitle {
  font-size: .9rem;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* ---- Event meta – Datum groß wie auf fortbildung-augsburg.de */
.nl-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 20px;
  background: rgba(139,0,0,.04);
  border-top: 1px solid rgba(139,0,0,.08);
  border-bottom: 1px solid rgba(139,0,0,.08);
  font-size: .85rem;
  color: #444;
}

.nl-event-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* Datum prominent */
.nl-event-meta-item:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nl-accent);
}

.nl-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--nl-accent);
}

.nl-event-description {
  padding: 12px 20px;
  font-size: .9rem;
  color: #444;
  line-height: 1.6;
}

.nl-event-footer {
  padding: 10px 20px 16px;
}

/* ---- Button ------------------------------------------------ */
.nl-btn {
  display: inline-block;
  background: var(--nl-accent);
  color: #fff !important;
  text-decoration: none !important;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
}
.nl-btn:hover {
  background: #a50000;
  transform: translateY(-1px);
}

.nl-btn-external {
  background: #c0392b;
}
.nl-btn-external:hover {
  background: #a93226;
}

/* ---- Footer ------------------------------------------------ */
.nl-footer {
  background: var(--nl-footer-bg);
  color: var(--nl-footer-text);
  padding: 28px;
  text-align: center;
}

.nl-footer-text {
  margin: 0;
  font-size: .85rem;
  line-height: 1.7;
  opacity: .9;
}

/* ---- Archive list ------------------------------------------ */
.list-group-item {
  border-left: none;
  border-right: none;
  padding: 1rem 1.25rem;
  transition: background .15s;
}
.list-group-item:first-child  { border-top: none; }
.list-group-item:hover {
  background: #fdf5f5;
}
.list-group-item .fw-semibold {
  color: var(--nl-accent);
  font-weight: 700;
}

/* ---- Print ------------------------------------------------- */
@media print {
  .nl-outer    { box-shadow: none; margin: 0; }
  .nl-btn      { border: 1px solid currentColor; }
  .nl-event-card { break-inside: avoid; }
}
