/* ============================================================
   FWV Board – Vorstandschaft | Frontend-Styles
   Frankenwaldverein Schauenstein
   ============================================================ */

:root {
  --fwv-green:        #2d5a27;
  --fwv-green-mid:    #3e7a36;
  --fwv-green-light:  #e8f2e6;
  --fwv-accent:       #c8831a;
  --fwv-text:         #1a1a1a;
  --fwv-text-light:   #555;
  --fwv-white:        #ffffff;
  --fwv-card-radius:  12px;
  --fwv-shadow:       0 4px 18px rgba(0, 0, 0, 0.10);
  --fwv-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.18);
  --fwv-transition:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --fwv-overlay-bg:   rgba(30, 60, 25, 0.92);
}

/* Grid-Layout
   ---------------------------------------------------------- */
.fwv-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  padding: 12px 0 32px;
}

/* Kachel
   ---------------------------------------------------------- */
.fwv-board-card {
  position: relative;
  background: var(--fwv-white);
  border-radius: var(--fwv-card-radius);
  box-shadow: var(--fwv-shadow);
  overflow: hidden;
  transition: box-shadow var(--fwv-transition), transform var(--fwv-transition);
  cursor: default;
}

.fwv-board-card.has-overlay {
  cursor: pointer;
}

.fwv-board-card:hover,
.fwv-board-card:focus-within {
  box-shadow: var(--fwv-shadow-hover);
  transform: translateY(-4px);
}

/* Foto
   ---------------------------------------------------------- */
.fwv-board-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--fwv-green-light);
}

.fwv-board-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--fwv-transition);
}

.fwv-board-card:hover .fwv-board-card__image img {
  transform: scale(1.04);
}

.fwv-board-card__image img.fwv-placeholder {
  object-fit: contain;
  padding: 24px;
  background: var(--fwv-green-light);
}

/* Info-Bereich
   ---------------------------------------------------------- */
.fwv-board-card__info {
  padding: 14px 16px 18px;
  border-top: 3px solid var(--fwv-green-light);
}

.fwv-board-card__position {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fwv-green-mid);
  margin: 0 0 4px;
}

.fwv-board-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fwv-text);
  margin: 0 0 4px;
  line-height: 1.25;
}

.fwv-board-card__subtitle {
  font-size: 0.8rem;
  color: var(--fwv-text-light);
  margin: 0;
  line-height: 1.4;
}

/* Overlay
   ---------------------------------------------------------- */
.fwv-board-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--fwv-overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--fwv-transition);
  pointer-events: none;
}

.fwv-board-card.has-overlay:hover .fwv-board-card__overlay,
.fwv-board-card.has-overlay.is-active .fwv-board-card__overlay {
  opacity: 1;
  pointer-events: auto;
}

.fwv-board-card__overlay-inner {
  text-align: center;
  padding: 20px;
  transform: translateY(12px);
  transition: transform var(--fwv-transition);
}

.fwv-board-card.has-overlay:hover .fwv-board-card__overlay-inner,
.fwv-board-card.has-overlay.is-active .fwv-board-card__overlay-inner {
  transform: translateY(0);
}

.fwv-board-card__overlay-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fwv-white);
  margin: 0 0 16px;
}

/* Kontakt-Buttons
   ---------------------------------------------------------- */
.fwv-board-card__contact-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.fwv-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--fwv-transition), transform 0.15s ease;
  min-width: 150px;
  justify-content: center;
}

.fwv-contact-btn:hover {
  transform: scale(1.05);
}

.fwv-contact-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* E-Mail */
.fwv-contact-btn--email {
  background: var(--fwv-white);
  color: var(--fwv-green);
}
.fwv-contact-btn--email:hover {
  background: #f0f8ee;
}

/* Telefon */
.fwv-contact-btn--phone {
  background: var(--fwv-green-mid);
  color: var(--fwv-white);
}
.fwv-contact-btn--phone:hover {
  background: var(--fwv-green);
}

/* WhatsApp */
.fwv-contact-btn--whatsapp {
  background: #25d366;
  color: var(--fwv-white);
}
.fwv-contact-btn--whatsapp:hover {
  background: #1ebe5a;
}

/* Leer-Zustand
   ---------------------------------------------------------- */
.fwv-board-empty {
  color: var(--fwv-text-light);
  font-style: italic;
}

/* Responsive
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  .fwv-board-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 380px) {
  .fwv-board-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Reduzierte Bewegung (Barrierefreiheit)
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .fwv-board-card,
  .fwv-board-card__image img,
  .fwv-board-card__overlay,
  .fwv-board-card__overlay-inner,
  .fwv-contact-btn {
    transition: none;
  }
}
