/* ==========================================================================
   TSV 1919 – Vorstand
   Ausgelagert aus Page-Code-Injection (head) am 2026-08-15.
   Verbatim übernommen: bestehendes body.page-vorstand-Scoping unverändert,
   keine Deduplizierung, keine Designänderung, keine Selektoren umgeschrieben,
   keine Breakpoints verändert. Alle 3 ursprünglichen Style-Blöcke in
   exakt derselben Cascade-Reihenfolge erhalten.
   ========================================================================== */


/* ── Block 1: TSV – VORSTAND – FINAL (Injection CSS) ────────────────────── */

/* =========================================================
   TSV – VORSTAND – FINAL (Injection CSS)
   Layout: | Info | Bild | Bild | Info |
   ========================================================= */

/* Casper Canvas-Bremse NUR auf dieser Seite aushebeln */
body.page-vorstand.page-template .gh-content,
body.page-vorstand.page-template .gh-canvas,
body.page-vorstand.page-template .article,
body.page-vorstand.page-template .article-header,
body.page-vorstand.page-template .article-content{
  max-width: none !important;
  width: 100% !important;
}

body.page-vorstand.page-template .gh-canvas{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Wrapper */
body.page-vorstand .board-grid{
  width: min(1400px, calc(100% - 64px)) !important;
  margin: 18px auto 90px !important;
}

/* Row */
body.page-vorstand .board-row{
  display: grid !important;
  grid-template-columns: 360px 240px 240px 360px !important; /* Info schmaler, Bilder größer */
  gap: 26px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 30px !important;
}

/* Info Cards */
body.page-vorstand .board-text{
  position: relative !important;

  background: rgba(12,12,14,.60) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px !important;

  padding: 22px 22px 16px !important;

  color: rgba(255,255,255,.94) !important;
  font-size: 19px !important;     /* Schrift größer */
  line-height: 1.65 !important;

  min-height: 250px !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;

  box-shadow: 0 18px 45px rgba(0,0,0,.45) !important;
}

body.page-vorstand .board-text--left{ text-align: right !important; }
body.page-vorstand .board-text--right{ text-align: left !important; }

body.page-vorstand .board-text strong{
  font-weight: 900 !important;
}

body.page-vorstand .board-text a{
  color: rgba(255,255,255,.92) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  word-break: break-word !important;
}

/* roter Akzent unten */
body.page-vorstand .board-text::after{
  content:"" !important;
  display:block !important;
  height: 6px !important;
  margin-top: 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgba(196,0,20,.95), transparent) !important;
}

/* Bilder: KEINE Box / KEIN Verlauf, nur Zentrierung */
body.page-vorstand .board-image{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;

  min-height: 250px !important; /* damit die Reihe sauber mittig bleibt */
}

/* Bild größer */
body.page-vorstand .board-image img{
  width: 220px !important;
  height: 220px !important;
  border-radius: 999px !important;
  object-fit: cover !important;

  border: 2px solid rgba(196,0,0,.38) !important;
  box-shadow:
    0 20px 45px rgba(0,0,0,.60),
    0 0 0 10px rgba(196,0,0,.10) !important;
}

/* Buttons */
body.page-vorstand .board-actions{
  display: flex !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

body.page-vorstand .board-btn{
  flex: 1 1 0 !important;
  height: 42px !important;

  border-radius: 12px !important;
  font-weight: 900 !important;
  font-size: 14px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  color: rgba(255,255,255,.95) !important;
  text-decoration: none !important;

  background: rgba(0,0,0,.25) !important;
  border: 1px solid rgba(255,255,255,.14) !important;

  box-shadow:
    0 14px 28px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.06) !important;

  transition: transform .15s ease, filter .15s ease !important;
}

body.page-vorstand .board-btn--primary{
  background: linear-gradient(180deg, rgba(196,0,20,.95), rgba(90,0,10,.95)) !important;
  border-color: rgba(255,255,255,.18) !important;
}

body.page-vorstand .board-btn:hover{
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
}

/* Mobile */
@media (max-width: 1100px){
  body.page-vorstand .board-grid{
    width: min(900px, calc(100% - 28px)) !important;
  }
  body.page-vorstand .board-row{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  body.page-vorstand .board-text{
    text-align: center !important;
    min-height: unset !important;
  }
  body.page-vorstand .board-image{
    min-height: unset !important;
    padding: 6px 0 !important;
  }
  body.page-vorstand .board-image img{
    width: 200px !important;
    height: 200px !important;
  }
  body.page-vorstand .board-actions{
    flex-direction: column !important;
  }
}
/* Titel "Der Vorstand" wirklich mittig */
body.page-vorstand.page-template .article-header{
  text-align: center !important;
}

body.page-vorstand.page-template .article-title{
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}


/* ── Block 2: VORSTAND – CARD BREITE + MAIL ──────────────────────────────── */

/* ================================
   VORSTAND – CARD BREITE + MAIL
   ================================ */

/* komplette Grid-Breite erhöhen */
body.page-vorstand .board-grid{
  max-width: 1400px !important;
  margin: 0 auto !important;
}

/* linke & rechte Textfelder etwas breiter */
body.page-vorstand .board-text{
  min-width: 380px !important;
}

/* Mail-Adressen niemals umbrechen */
body.page-vorstand .board-text a{
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  display: inline-block;
  font-size: 15px;
}


/* ── Block 3: VORSTAND – HEADER ABSTAND FIX + MOBILE ORDER ──────────────── */

/* ================================
   VORSTAND – HEADER ABSTAND FIX
   ================================ */

body.page-vorstand .article-header{
  padding-top: 80px !important;
  margin-top: 0 !important;
}

body.page-vorstand .article-title{
  margin-top: 0 !important;
  margin-bottom: 28px !important;
  text-align: center !important;
}
/* =========================================================
   VORSTAND – MOBILE ORDER (für ALLE Reihen):
   Bild1 → Text links → Bild2 → Text rechts
   (gilt für Vorsitzende, Kassenwart, Schriftführer usw.)
   ========================================================= */
@media (max-width: 1100px){

  body.page-vorstand .board-row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;

    /* feste Reihenfolge pro Board-Row */
    grid-template-areas:
      "img1"
      "txt1"
      "img2"
      "txt2" !important;
  }

  /* 1) Text links */
  body.page-vorstand .board-row > :nth-child(1){
    grid-area: txt1 !important;
  }

  /* 2) Bild links */
  body.page-vorstand .board-row > :nth-child(2){
    grid-area: img1 !important;
  }

  /* 3) Bild rechts */
  body.page-vorstand .board-row > :nth-child(3){
    grid-area: img2 !important;
  }

  /* 4) Text rechts */
  body.page-vorstand .board-row > :nth-child(4){
    grid-area: txt2 !important;
  }

  /* Mobile-Optik */
  body.page-vorstand .board-text{
    text-align: center !important;
    min-height: unset !important;
  }

  body.page-vorstand .board-image{
    min-height: unset !important;
    padding: 6px 0 !important;
  }
}
