/*
Theme Name: VLV ver.di
Theme URI: https://vlv-verdi.de
Description: Child-Theme für die ver.di-Vertrauensleute-Seite. Frisch und zugänglich, mit ver.di-Rot als Akzent. Basiert auf Kadence. Pflegbar von mehreren Personen über Block-Patterns.
Author: vlv-verdi
Version: 1.2.0
Template: kadence
Text Domain: vlv-verdi
*/

/* ==========================================================================
   1. Farb- und Layout-Variablen
   Hier zentral anpassen — gilt überall im Theme
   ========================================================================== */
:root {
  /* ver.di-Rot als Akzent, nicht dominant */
  --vlv-rot: #E2231A;
  --vlv-rot-dunkel: #A8170F;
  --vlv-rot-hell: #FCEBEB;

  /* Kategorie-Farben für News */
  --vlv-blau: #185FA5;
  --vlv-blau-hell: #E6F1FB;
  --vlv-gruen: #0F6E56;
  --vlv-gruen-hell: #E1F5EE;
  --vlv-amber: #854F0B;
  --vlv-amber-hell: #FAEEDA;

  /* Text-Hierarchie mit hohen Kontrasten für alle Altersgruppen */
  --vlv-text: #1a1a1a;
  --vlv-text-leise: #555555;
  --vlv-text-sehr-leise: #767676;

  --vlv-rahmen: rgba(0, 0, 0, 0.12);
  --vlv-rahmen-stark: rgba(0, 0, 0, 0.25);
  --vlv-flaeche: #f7f7f5;
  --vlv-weiss: #ffffff;

  --vlv-radius: 8px;
  --vlv-radius-gross: 12px;

  /* Typografie — bewusst groß für gute Lesbarkeit */
  --vlv-text-basis: 17px;
  --vlv-text-klein: 15px;
  --vlv-text-mini: 13px;
}

/* ==========================================================================
   2. Globale Typografie
   ========================================================================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  color: var(--vlv-text);
  font-size: var(--vlv-text-basis);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--vlv-text);
}

a {
  color: var(--vlv-rot-dunkel);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration-thickness: 2px;
}

/* ==========================================================================
   3. Buttons — global verwendbar
   ========================================================================== */
.vlv-button-primary,
.wp-block-button.is-style-vlv-primary .wp-block-button__link {
  background: var(--vlv-rot);
  color: var(--vlv-weiss) !important;
  font-size: var(--vlv-text-klein);
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--vlv-radius);
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease;
  border: none;
}
.vlv-button-primary:hover,
.wp-block-button.is-style-vlv-primary .wp-block-button__link:hover {
  background: var(--vlv-rot-dunkel);
  color: var(--vlv-weiss) !important;
  text-decoration: none;
}

.vlv-button-sekundaer {
  border: 1px solid var(--vlv-rahmen-stark);
  color: var(--vlv-text) !important;
  font-size: var(--vlv-text-klein);
  font-weight: 500;
  padding: 11px 21px;
  border-radius: var(--vlv-radius);
  text-decoration: none;
  display: inline-block;
  background: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.vlv-button-sekundaer:hover {
  border-color: var(--vlv-text);
  background: var(--vlv-flaeche);
  text-decoration: none;
}

/* ==========================================================================
   4. Hero-Sektion
   ========================================================================== */
.vlv-hero {
  padding: 4rem 1.5rem;
  background: var(--vlv-weiss);
}
.vlv-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}
.vlv-hero__badge {
  display: inline-block;
  background: var(--vlv-rot-hell);
  color: var(--vlv-rot-dunkel);
  font-size: var(--vlv-text-mini);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.vlv-hero__titel {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--vlv-text);
}
.vlv-hero__text {
  font-size: 19px;
  color: var(--vlv-text-leise);
  max-width: 560px;
  margin: 0 0 1.75rem;
  line-height: 1.55;
}
.vlv-hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   5. Sektion-Grundgerüst
   ========================================================================== */
.vlv-sektion {
  padding: 3.5rem 1.5rem;
}
.vlv-sektion--flaeche {
  background: var(--vlv-flaeche);
}
.vlv-sektion__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.vlv-sektion__inner--schmal {
  max-width: 720px;
}
.vlv-sektion__kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 8px;
}
.vlv-sektion h2 {
  font-size: 26px;
  margin: 0;
}
.vlv-sektion__alle {
  font-size: var(--vlv-text-klein);
  color: var(--vlv-text-leise);
  text-decoration: none;
}
.vlv-sektion__alle:hover {
  color: var(--vlv-rot-dunkel);
  text-decoration: underline;
}

/* ==========================================================================
   6. News-Karten
   ========================================================================== */
.vlv-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.vlv-news-karte {
  border: 1px solid var(--vlv-rahmen);
  border-radius: var(--vlv-radius-gross);
  padding: 1.5rem;
  background: var(--vlv-weiss);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vlv-news-karte:hover {
  border-color: var(--vlv-text-sehr-leise);
  transform: translateY(-2px);
  text-decoration: none;
}
.vlv-news-karte__kategorie {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.vlv-news-karte__kategorie--tarif { color: var(--vlv-rot-dunkel); }
.vlv-news-karte__kategorie--betrieb { color: var(--vlv-blau); }
.vlv-news-karte__kategorie--recht { color: var(--vlv-gruen); }
.vlv-news-karte__kategorie--schulung { color: var(--vlv-amber); }
.vlv-news-karte__titel {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 10px;
}
.vlv-news-karte__datum {
  font-size: var(--vlv-text-mini);
  color: var(--vlv-text-sehr-leise);
}

/* ==========================================================================
   7. Termine
   ========================================================================== */
.vlv-termin {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--vlv-weiss);
  border-radius: var(--vlv-radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
  border: 1px solid var(--vlv-rahmen);
}
.vlv-termin:hover {
  transform: translateX(2px);
  text-decoration: none;
  border-color: var(--vlv-text-sehr-leise);
}
.vlv-termin__datum {
  text-align: center;
  min-width: 56px;
  padding: 4px 8px;
  background: var(--vlv-rot-hell);
  border-radius: var(--vlv-radius);
}
.vlv-termin__monat {
  font-size: 12px;
  font-weight: 500;
  color: var(--vlv-rot-dunkel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vlv-termin__tag {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--vlv-rot-dunkel);
}
.vlv-termin__inhalt {
  flex: 1;
}
.vlv-termin__titel {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}
.vlv-termin__meta {
  font-size: var(--vlv-text-klein);
  color: var(--vlv-text-leise);
}
.vlv-termin__pfeil {
  color: var(--vlv-text-sehr-leise);
  font-size: 20px;
}

/* ==========================================================================
   8. Über uns / Mission
   ========================================================================== */
.vlv-ueber__text {
  font-size: 19px;
  line-height: 1.6;
  color: var(--vlv-text-leise);
  margin-bottom: 1.5rem;
}
.vlv-ueber__zitat {
  border-left: 3px solid var(--vlv-rot);
  padding: 4px 0 4px 1.25rem;
  font-style: italic;
  font-size: 19px;
  color: var(--vlv-text);
  margin: 1.5rem 0;
}

/* ==========================================================================
   9. Themen / FAQ — Akkordeon
   ========================================================================== */
.vlv-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vlv-faq details {
  background: var(--vlv-weiss);
  border: 1px solid var(--vlv-rahmen);
  border-radius: var(--vlv-radius);
  padding: 0;
  overflow: hidden;
}
.vlv-faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.vlv-faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--vlv-text-sehr-leise);
  transition: transform 0.15s ease;
}
.vlv-faq details[open] summary::after {
  content: "−";
}
.vlv-faq summary::-webkit-details-marker {
  display: none;
}
.vlv-faq__inhalt {
  padding: 0 20px 18px;
  color: var(--vlv-text-leise);
  font-size: var(--vlv-text-basis);
  line-height: 1.65;
}

/* ==========================================================================
   10. Downloads / Materialien
   ========================================================================== */
.vlv-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.vlv-download {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--vlv-weiss);
  border: 1px solid var(--vlv-rahmen);
  border-radius: var(--vlv-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.vlv-download:hover {
  border-color: var(--vlv-text-sehr-leise);
  text-decoration: none;
}
.vlv-download__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--vlv-rot-hell);
  color: var(--vlv-rot-dunkel);
  border-radius: var(--vlv-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
}
.vlv-download__inhalt { flex: 1; min-width: 0; }
.vlv-download__titel {
  font-size: var(--vlv-text-basis);
  font-weight: 500;
  margin-bottom: 2px;
}
.vlv-download__meta {
  font-size: var(--vlv-text-mini);
  color: var(--vlv-text-sehr-leise);
}

/* ==========================================================================
   11. Ansprechpartner-Karten
   ========================================================================== */
.vlv-personen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.vlv-person {
  background: var(--vlv-weiss);
  border: 1px solid var(--vlv-rahmen);
  border-radius: var(--vlv-radius-gross);
  padding: 1.5rem;
}
.vlv-person__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--vlv-rot-hell);
  color: var(--vlv-rot-dunkel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 12px;
}
.vlv-person__name {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 2px;
}
.vlv-person__rolle {
  font-size: var(--vlv-text-klein);
  color: var(--vlv-text-leise);
  margin-bottom: 12px;
}
.vlv-person__kontakt {
  font-size: var(--vlv-text-klein);
  color: var(--vlv-rot-dunkel);
}

/* ==========================================================================
   12. Mitglied-werden-Banner
   ========================================================================== */
.vlv-mitglied-banner {
  background: var(--vlv-rot);
  color: var(--vlv-weiss);
  padding: 3rem 1.5rem;
  text-align: center;
}
.vlv-mitglied-banner h2 {
  color: var(--vlv-weiss);
  font-size: 30px;
  margin: 0 0 1rem;
}
.vlv-mitglied-banner p {
  font-size: 19px;
  max-width: 540px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
  opacity: 0.95;
}
.vlv-mitglied-banner__button {
  background: var(--vlv-weiss);
  color: var(--vlv-rot-dunkel) !important;
  font-size: var(--vlv-text-basis);
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--vlv-radius);
  text-decoration: none;
  display: inline-block;
}
.vlv-mitglied-banner__button:hover {
  background: var(--vlv-flaeche);
  text-decoration: none;
}

/* ==========================================================================
   13. Anpassungen für "The Events Calendar" Plugin
   Damit die echten Termine im vlv-Stil aussehen
   ========================================================================== */
.vlv-sektion .tribe-events .tribe-events-calendar-list__event-row {
  background: var(--vlv-weiss);
  border: 1px solid var(--vlv-rahmen);
  border-radius: var(--vlv-radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.vlv-sektion .tribe-events .tribe-events-calendar-list__event-row:hover {
  transform: translateX(2px);
  border-color: var(--vlv-text-sehr-leise);
}
.vlv-sektion .tribe-events .tribe-events-calendar-list__event-date-tag {
  background: var(--vlv-rot-hell);
  border-radius: var(--vlv-radius);
  padding: 6px 10px;
  min-width: 56px;
  text-align: center;
}
.vlv-sektion .tribe-events .tribe-events-calendar-list__event-date-tag-month {
  font-size: 12px;
  color: var(--vlv-rot-dunkel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.vlv-sektion .tribe-events .tribe-events-calendar-list__event-date-tag-daynum {
  font-size: 24px;
  font-weight: 500;
  color: var(--vlv-rot-dunkel);
  line-height: 1.1;
}
.vlv-sektion .tribe-events .tribe-events-calendar-list__event-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}
.vlv-sektion .tribe-events .tribe-events-calendar-list__event-title a {
  color: var(--vlv-text);
  text-decoration: none;
}
.vlv-sektion .tribe-events .tribe-events-calendar-list__event-datetime,
.vlv-sektion .tribe-events .tribe-events-calendar-list__event-venue {
  font-size: var(--vlv-text-klein);
  color: var(--vlv-text-leise);
}
/* Plugin-Header (Filter, Monatsname) zurückhaltend halten */
.vlv-sektion .tribe-events-c-top-bar,
.vlv-sektion .tribe-events-header {
  display: none;
}

/* ==========================================================================
   14. Anpassungen für Query-Loop (News-Karten dynamisch)
   ========================================================================== */
.vlv-news__grid .wp-block-post {
  border: 1px solid var(--vlv-rahmen);
  border-radius: var(--vlv-radius-gross);
  padding: 1.5rem;
  background: var(--vlv-weiss);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vlv-news__grid .wp-block-post:hover {
  border-color: var(--vlv-text-sehr-leise);
  transform: translateY(-2px);
}
.vlv-news__grid .wp-block-post-terms {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vlv-rot-dunkel);
  margin-bottom: 10px;
  display: block;
}
.vlv-news__grid .wp-block-post-terms a {
  color: inherit;
  text-decoration: none;
}
.vlv-news__grid .wp-block-post-title a {
  color: var(--vlv-text);
  text-decoration: none;
}
.vlv-news__grid .wp-block-post-title a:hover {
  text-decoration: underline;
}
.vlv-news__grid .wp-block-post-date {
  font-size: var(--vlv-text-mini);
  color: var(--vlv-text-sehr-leise);
}

/* ==========================================================================
   15. Mobile Anpassungen
   ========================================================================== */
@media (max-width: 600px) {
  .vlv-hero { padding: 2.5rem 1.25rem; }
  .vlv-sektion { padding: 2.5rem 1.25rem; }
  .vlv-mitglied-banner { padding: 2.5rem 1.25rem; }
  .vlv-sektion h2 { font-size: 22px; }
  .vlv-mitglied-banner h2 { font-size: 24px; }
}

/* ==========================================================================
   16. Fokus-Stile für Tastatur-Navigation (Barrierefreiheit)
   ========================================================================== */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--vlv-rot);
  outline-offset: 2px;
  border-radius: 4px;
}
