/* ==========================================================================
   LSVD Saar – Schwarzes Brett 0.17.19
   Band auf der Startseite (unter dem Wegweiser), Übersicht /schwarzes-brett/,
   Einzelseiten nutzen den Kopfbereich der Termin-Seiten (termin-single.css).
   ========================================================================== */

.lsvd-brett {
  --lsvd-brett-kork: #ebe3d6;
  box-sizing: border-box;
}

/* ---------- Zettel ---------- */
.lsvd-brett__zettel {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 24px;
  align-items: flex-start;
}
.lsvd-zettel {
  flex: 1 1 280px;
  max-width: 380px;
  transform: rotate(-1.2deg);
  transition: transform .25s ease;
}
.lsvd-zettel--1 { transform: rotate(.9deg); }
.lsvd-zettel--2 { transform: rotate(-.5deg); }
.lsvd-zettel:hover,
.lsvd-zettel:focus-within { transform: rotate(0) translateY(-3px); }

.lsvd-zettel__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 24px 22px;
  background: var(--lsvd-papier);
  color: var(--lsvd-tinte) !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(26, 26, 26, .08), 0 10px 24px rgba(26, 26, 26, .10);
  transition: box-shadow .25s ease;
}
.lsvd-zettel__link:hover,
.lsvd-zettel__link:focus-visible { box-shadow: 0 2px 4px rgba(26, 26, 26, .08), 0 16px 34px rgba(26, 26, 26, .16); }
.lsvd-zettel__link:focus-visible { outline: 3px solid var(--lsvd-rot); outline-offset: 3px; }

/* Pinnnadel */
.lsvd-zettel__pin {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8665c 0, var(--lsvd-rot) 55%, #7a170f 100%);
  box-shadow: 0 3px 4px rgba(26, 26, 26, .3);
}

.lsvd-zettel__bild { display: block; margin: -8px -10px 6px; overflow: hidden; }
.lsvd-zettel__bild img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.lsvd-zettel__label {
  font: 600 1.25rem/1 "Caveat", "Segoe Print", cursive;
  color: var(--lsvd-rot);
}
.lsvd-zettel__titel {
  font: 600 1.35rem/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lsvd-zettel__text { font-size: .97rem; line-height: 1.5; color: var(--lsvd-tinte); }
.lsvd-zettel__von { font-size: .85rem; color: var(--lsvd-stumm); }
.lsvd-zettel__mehr { margin-top: 4px; font-weight: 700; color: var(--lsvd-rot); }
.lsvd-zettel__mehr span { display: inline-block; transition: transform .2s ease; }
.lsvd-zettel__link:hover .lsvd-zettel__mehr span { transform: translateX(4px); }

/* ---------- Band auf der Startseite ---------- */
.lsvd-brett--home {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 32px clamp(28px, 4vw, 56px);
  align-items: center;
  width: min(100% - 48px, 1120px);
  margin: 0 auto var(--lsvd-home-gap, 72px);
  padding: clamp(28px, 4vw, 44px);
  background-color: var(--lsvd-brett-kork);
  background-image: radial-gradient(rgba(26, 26, 26, .07) 1px, transparent 1px);
  background-size: 9px 9px;
  border-radius: 4px;
}
body.home .lsvd-original-home > .lsvd-brett--home {
  width: min(100% - 2 * var(--lsvd-home-gutter, 24px), var(--lsvd-home-w, 1120px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.lsvd-brett__kicker {
  margin: 0 0 8px !important;
  color: var(--lsvd-rot);
  font: 700 .78rem/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}
.lsvd-brett--home .lsvd-brett__titel {
  margin: 0 0 10px !important;
  font: 600 clamp(1.7rem, 2.6vw, 2.2rem)/1.1 Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.02em !important;
}
.lsvd-brett--home .lsvd-brett__titel::after { content: none !important; }
.lsvd-brett__intro { margin: 0 0 14px !important; color: var(--lsvd-tinte); line-height: 1.5; }
.lsvd-brett__alle { color: var(--lsvd-rot) !important; font-weight: 700; text-decoration: none !important; }
.lsvd-brett__alle:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.lsvd-brett--home .lsvd-brett__zettel { padding-top: 6px; }

/* ---------- Übersicht /schwarzes-brett/ ---------- */
.lsvd-brett--archiv {
  width: min(100% - 48px, 1120px);
  max-width: none !important;
  margin: clamp(16px, 3vw, 32px) auto 64px !important;
}
.lsvd-brett__archivkopf { max-width: 720px; margin-bottom: 40px; }
.lsvd-brett--archiv .lsvd-brett__titel {
  margin: 0 0 16px !important;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem) !important;
  line-height: 1.04;
  letter-spacing: -.03em;
}
.lsvd-brett--archiv .lsvd-brett__intro { font-size: 1.1rem; }
.lsvd-brett--archiv .lsvd-brett__zettel {
  padding: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 40px);
  background-color: var(--lsvd-brett-kork);
  background-image: radial-gradient(rgba(26, 26, 26, .07) 1px, transparent 1px);
  background-size: 9px 9px;
  border-radius: 4px;
}
.lsvd-brett__leer {
  padding: 32px;
  background: var(--lsvd-sand);
  border-radius: 4px;
  font: 600 1.5rem/1.2 "Caveat", "Segoe Print", cursive;
  text-align: center;
}
.lsvd-brett__selbst { margin: 28px 0 0 !important; color: var(--lsvd-stumm); }
.lsvd-brett__selbst a { color: var(--lsvd-rot); font-weight: 700; }

/* ---------- Einzelseite: wie Termin-Seiten, eine Spalte ---------- */
body.single-aushang {
  --lsvd-event-col: 720px;
  --lsvd-event-gutter: 24px;
}
body.single-aushang main { padding-top: clamp(24px, 3vw, 40px) !important; }
body.single-aushang .lsvd-event-head {
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  width: min(100% - 2 * var(--lsvd-event-gutter), var(--lsvd-event-col)) !important;
  max-width: none !important;
  margin-top: 0 !important;
}
body.single-aushang main .wp-block-post-content {
  max-width: none !important; width: 100% !important;
  padding-left: 0 !important; padding-right: 0 !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
body.single-aushang main .wp-block-post-content > *,
body.single-aushang main > .lsvd-event-note,
body.single-aushang main > .lsvd-aushang-fuss {
  box-sizing: border-box;
  width: min(100% - 2 * var(--lsvd-event-gutter), var(--lsvd-event-col)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.single-aushang main .wp-block-post-content > p { text-align: left !important; hyphens: manual !important; }
body.single-aushang main .wp-block-post-content > p:first-of-type { font-size: clamp(1.15rem, 1.8vw, 1.35rem) !important; line-height: 1.5; }
body.single-aushang main .wp-block-post-content > h2,
body.single-aushang main .wp-block-post-content > h3 {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-size: clamp(1.6rem, 2.6vw, 2rem) !important;
  line-height: 1.15;
  margin-top: 1.6em !important;
  margin-bottom: .5em !important;
}
.lsvd-aushang-head .lsvd-event-head__kicker a { color: inherit; text-decoration: none; }
.lsvd-aushang-head .lsvd-event-head__kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lsvd-aushang-head__frist {
  display: block;
  font-size: .72rem !important;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lsvd-stumm) !important;
}
.lsvd-aushang-fuss { margin-top: 48px !important; }
.lsvd-aushang-fuss a { color: var(--lsvd-rot); font-weight: 700; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
  .lsvd-brett--home {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100% - 32px);
    padding: 24px 18px 30px;
  }
  .lsvd-brett--archiv { width: calc(100% - 32px); }
  .lsvd-zettel { max-width: none; flex-basis: 100%; }
  body.single-aushang { --lsvd-event-gutter: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .lsvd-zettel, .lsvd-zettel__link, .lsvd-zettel__mehr span { transition: none; }
}

/* 0.17.20: Längere Bezeichnungen in den Eckdaten (z. B. „Vorstellungen“) brauchen mehr Platz */
@media (min-width: 861px) {
  .lsvd-aushang-head .lsvd-event-head__facts > div { grid-template-columns: 130px minmax(0, 1fr); }
}

/* 0.17.22: Formular „Euer Aufruf ans Brett“ */
.lsvd-am { margin-top: 56px !important; max-width: 760px; }
.lsvd-am__titel {
  margin: 0 0 10px !important;
  font: 600 clamp(1.6rem, 2.6vw, 2rem)/1.15 Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.02em;
}
.lsvd-am__intro { margin: 0 0 22px !important; color: var(--lsvd-tinte); line-height: 1.55; }
@media (max-width: 640px) {
  .lsvd-am .lsvd-tm__grid { grid-template-columns: 1fr; }
}

/* 0.17.23: Letzte Zeile der Aushang-Seite nicht am Footer kleben lassen */
body.single-aushang main > .lsvd-aushang-fuss { margin-bottom: clamp(56px, 8vw, 96px) !important; }
