/* ============================================================
   VMHB Frontend Styles - Template Identical Design
   Version: 0.1.28 (Exakte Demo-Effekte für Dark & Light Mode)
   Based on: trainingszeiten-spindle-stripes__2_.html
   ============================================================ */

/* ============================================================
   1. CSS Custom Properties (Theme-Aware)
   ============================================================ */

:root {
  /* Light Mode Colors */
  --vmhb-bg: #ffffff;
  --vmhb-card-bg: rgba(255, 255, 255, 0.9);
  --vmhb-card-border: rgba(0, 0, 0, 0.08);
  --vmhb-ink: #0f172a;
  --vmhb-sub: #64748b;
  --vmhb-muted: rgba(0, 0, 0, 0.45);
  --vmhb-line: #e2e8f0;
  --vmhb-pill: #f1f5f9;
  --vmhb-accent: #2563eb;
  --vmhb-accent-rgb: 37, 99, 235;
  
  /* Stripe color (gold) */
  --vmhb-stripe: #fbbf24;
  --vmhb-stripe-rgb: 251, 191, 36;
  
  /* Shape & elevation */
  --vmhb-radius: 18px;
  --vmhb-shadow: 0 12px 45px rgba(0, 0, 0, 0.1);
  --vmhb-gap: 25px;
  --vmhb-sticky-top: 8px;
}

/* Dark Mode Variables */
body.dark-mode,
[data-theme="dark"],
.vmhb-dark-mode,
.dark-mode {
  --vmhb-bg: #0d1117;
  --vmhb-card-bg: rgba(20, 26, 35, 0.5);
  --vmhb-card-border: rgba(255, 255, 255, 0.06);
  --vmhb-ink: rgba(255, 255, 255, 0.92);
  --vmhb-sub: rgba(255, 255, 255, 0.6);
  --vmhb-muted: rgba(255, 255, 255, 0.45);
  --vmhb-line: rgba(255, 255, 255, 0.05);
  --vmhb-pill: rgba(255, 255, 255, 0.05);
  --vmhb-accent: #fbbf24;
  --vmhb-accent-rgb: 251, 191, 36;
  --vmhb-shadow: 0 12px 45px rgba(0, 0, 0, 0.6), 
                 inset 0 1px 0 rgba(255, 255, 255, 0.03), 
                 inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}


/* ============================================================
   2. Training Cards (Identical to Demo)
   ============================================================ */

.vmhb-training-card,
.vmhb-tz {
  background: var(--vmhb-card-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: var(--vmhb-radius);
  border: 1px solid var(--vmhb-card-border);
  padding: 28px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--vmhb-shadow);
}

/* Keine Bild-/Gradient-Overlays in Trainingszeiten (clean wie Kontaktkarten) */
.vmhb-training-card::after,
.vmhb-tz::after {
  content: none !important;
}
/* Stripe wie bei Kontaktkarten (3 Vereinsfarben als Gradient) */
.vmhb-training-card::before,
.vmhb-tz::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(
    180deg,
    var(--c1, var(--vmhb-stripe-color1, #fbbf24)) 0%,
    var(--c2, var(--vmhb-stripe-color2, #f59e0b)) 50%,
    var(--c3, var(--vmhb-stripe-color3, #d97706)) 100%
  );
  transition: width 0.3s ease, opacity 0.3s ease;
}

.vmhb-training-card:hover::before,
.vmhb-tz:hover::before {
  width: 8px;
  opacity: 1;
}
/* ============================================================
   3. Card Overlays (Gloss & Reflection) - Identical to Demo
   ============================================================ */

.vmhb-card-gloss,
.vmhb-training-card .vmhb-card-gloss {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    rgba(255, 255, 255, 0.01) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  border-radius: 18px 18px 0 0;
}

/* Light Mode: Dunkler Gradient-Overlay für bessere Lesbarkeit */
body:not(.dark-mode) .vmhb-home-tz__card .vmhb-card-gloss,
body:not([data-theme="dark"]) .vmhb-home-tz__card .vmhb-card-gloss {
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.15) 30%,
    rgba(0, 0, 0, 0.05) 60%,
    transparent 100%
  );
  border-radius: 18px;
}

.vmhb-card-reflection,
.vmhb-training-card .vmhb-card-reflection {
  position: absolute;
  top: -60%;
  right: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    125deg,
    transparent 35%,
    rgba(255, 255, 255, 0.02) 48%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.02) 52%,
    transparent 65%
  );
  z-index: 1;
  pointer-events: none;
  animation: vmhb-shimmer 10s ease-in-out infinite;
}

@keyframes vmhb-shimmer {
  0%, 100% { 
    transform: translate(0, 0); 
    opacity: 0.3; 
  }
  50% { 
    transform: translate(-35%, -35%); 
    opacity: 0.7; 
  }
}

/* Light mode: subtler effects */
body:not(.dark-mode) .vmhb-card-gloss,
body:not([data-theme="dark"]) .vmhb-card-gloss {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    transparent 60%
  );
}

body:not(.dark-mode) .vmhb-card-reflection,
body:not([data-theme="dark"]) .vmhb-card-reflection {
  opacity: 0.15;
}


/* ============================================================
   4. Card Content Structure (Identical to Demo)
   ============================================================ */

.vmhb-card-header,
.vmhb-card-info,
.vmhb-card-team,
.vmhb-card-teamtext,
.vmhb-tz__line1,
.vmhb-tz__line2,
.vmhb-tz__months,
.vmhb-home-tz__body {
  position: relative;
  z-index: 2;
}

/* Header (Date + Time) */
.vmhb-card-header {
  margin-bottom: 24px;
}

.vmhb-card-date {
  color: var(--vmhb-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Light Mode: Stärkere Text-Schatten für bessere Lesbarkeit */
body:not(.dark-mode) .vmhb-card-date,
body:not([data-theme="dark"]) .vmhb-card-date {
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.vmhb-card-time {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--vmhb-ink);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Light Mode: Stärkerer Schatten für große Zeitangabe */
body:not(.dark-mode) .vmhb-card-time,
body:not([data-theme="dark"]) .vmhb-card-time {
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.8);
}

body.dark-mode .vmhb-card-time,
[data-theme="dark"] .vmhb-card-time {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Team Info Section */
.vmhb-card-team {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.vmhb-card-badge {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

body:not(.dark-mode) .vmhb-card-badge,
body:not([data-theme="dark"]) .vmhb-card-badge {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.vmhb-card-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  /* WICHTIG: Verhindere Theme-Filter auf Logo-Bildern */
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
}

/* Dark Mode: Explizit keine Invertierung */
body.dark-mode .vmhb-card-badge img,
[data-theme="dark"] .vmhb-card-badge img,
.dark-mode .vmhb-card-badge img,
html.dark .vmhb-card-badge img {
  filter: none !important;
  -webkit-filter: none !important;
  image-rendering: auto !important;
}

.vmhb-card-teamtext h3,
.vmhb-card-teamname {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--vmhb-ink);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Light Mode: Bessere Lesbarkeit durch Text-Schatten */
body:not(.dark-mode) .vmhb-card-teamtext h3,
body:not(.dark-mode) .vmhb-card-teamname,
body:not([data-theme="dark"]) .vmhb-card-teamtext h3,
body:not([data-theme="dark"]) .vmhb-card-teamname {
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

.vmhb-card-teamtext p,
.vmhb-card-club {
  font-size: 0.85rem;
  color: var(--vmhb-muted);
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Light Mode: Bessere Lesbarkeit */
body:not(.dark-mode) .vmhb-card-teamtext p,
body:not(.dark-mode) .vmhb-card-club,
body:not([data-theme="dark"]) .vmhb-card-teamtext p,
body:not([data-theme="dark"]) .vmhb-card-club {
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Card Info (Location, etc) */
.vmhb-card-info {
  border-top: 1px solid var(--vmhb-line);
  padding-top: 16px;
  position: relative;
  z-index: 2;
}

.vmhb-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--vmhb-sub);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Light Mode: Bessere Lesbarkeit für Info-Items */
body:not(.dark-mode) .vmhb-info-item,
body:not([data-theme="dark"]) .vmhb-info-item {
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

.vmhb-info-item:last-child {
  margin-bottom: 0;
}

.vmhb-info-icon,
.vmhb-info-ic {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
}


/* ============================================================
   5. Trainingszeiten Format (Demo-Style)
   ============================================================ */

.vmhb-tz__line1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--vmhb-ink);
  margin-bottom: 12px;
  line-height: 1.5;
}

.vmhb-tz__line2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1rem;
  color: var(--vmhb-sub);
  font-weight: 500;
  margin-bottom: 18px;
}

.vmhb-tz__weekday {
  letter-spacing: 0.2px;
  font-weight: 700;
}

.vmhb-tz__time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--vmhb-accent);
  font-size: 1.5rem;
}

.vmhb-tz__title {
  color: var(--vmhb-ink);
  text-decoration: none;
  font-weight: 600;
}

.vmhb-tz__title:hover {
  color: var(--vmhb-accent);
}

.vmhb-tz__hall {
  color: var(--vmhb-sub);
}

.vmhb-tz__addr {
  color: var(--vmhb-muted);
  font-size: 0.85rem;
}

/* Gender Icons */
.vmhb-gender {
  display: inline-flex;
  align-items: center;
}

.vmhb-gender .fa-mars {
  color: #3b82f6;
}

.vmhb-gender .fa-venus {
  color: #ec4899;
}

.vmhb-gender .fa-venus-mars {
  color: #10b981;
}

/* Months Display */
.vmhb-tz__months,
.vmhb-card-months {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--vmhb-line);
  position: relative;
  z-index: 2;
}

.vmhb-month {
  display: inline-block;
  padding: 6px 10px;
  background: var(--vmhb-pill);
  border: 1px solid var(--vmhb-line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--vmhb-ink);
  transition: all 0.25s ease;
}

body.dark-mode .vmhb-month,
[data-theme="dark"] .vmhb-month {
  background: rgba(var(--vmhb-stripe-rgb), 0.1);
  border-color: rgba(var(--vmhb-stripe-rgb), 0.2);
  color: var(--vmhb-stripe);
}

.vmhb-dim-90 {
  opacity: 0.15;
}


/* ============================================================
   VMHB Trainingszeiten Teaser - REDESIGN
   Handball-Themed Hero Section mit SVG-Spielfeld
   ============================================================ */

/* ============================================================
   1. Container & Layout
   ============================================================ */

.vmhb-home-tz {
  position: relative;
  padding: 0;
  margin: 4rem 0;
  overflow: hidden;
  border-radius: var(--vmhb-radius, 18px);
  background: linear-gradient(135deg, 
    var(--ast-global-color-5, #0F172A) 0%, 
    var(--ast-global-color-4, #212A37) 100%
  );
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Dark Mode Enforcement */
.vmhb-home-tz.vmhb-dark-mode {
  --vmhb-bg: #0d1117;
  /*
   * Glasmorph-Scroll-Effekt:
   * Cards müssen halbtransparent bleiben, sonst sieht man den (bewegten)
   * Hero-Hintergrund nicht durch das Glass.
   */
  --vmhb-card-bg: rgba(20, 26, 35, 0.28);
  --vmhb-card-border: rgba(255, 255, 255, 0.14);
  --vmhb-ink: rgba(255, 255, 255, 0.95);
  --vmhb-sub: rgba(255, 255, 255, 0.7);
  --vmhb-muted: rgba(255, 255, 255, 0.5);
  --vmhb-accent: #fbbf24;
}

/* ============================================================
   2. Hero-Section (User-Hintergrundbild, kein SVG)
   ============================================================ */

.vmhb-home-tz__hero {
  position: relative;
  padding: 4rem 3rem 3rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Fallback (ohne Bild): dezenter Vereinsfarben-Gradient */
  background: linear-gradient(
    135deg,
    rgba(11, 61, 145, 0.18) 0%,
    rgba(245, 196, 0, 0.10) 55%,
    rgba(220, 38, 38, 0.08) 100%
  );

  /* Wenn gesetzt (Inline-Style): echtes Bild NUR EINMAL */
  background-image: var(--vmhb-hero-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /*
   * Hero-Scroll-Effekt (Parallax/Glass):
   * Das Bild bleibt am Viewport "fix", während die Cards scrollen.
   * Wichtig: Das Bild ist NUR hier gesetzt (kein zweites Bild in ::before/::after),
   * sonst wirkt es doppelt.
   */
  background-attachment: fixed;

  overflow: hidden;
}

/* Overlay (kein zweites Bild!) */
.vmhb-home-tz__hero::before {
  content: '';
  position: absolute;
  inset: 0;

  /* weicher Glass/Contrast-Overlay – aber ohne Bild */
  background:
    linear-gradient(135deg,
      rgba(0, 0, 0, 0.20) 0%,
      rgba(0, 0, 0, 0.35) 100%
    );

  pointer-events: none;
  z-index: 1;
}

/* Dunklerer Overlay für bessere Lesbarkeit */
.vmhb-home-tz__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.45) 100%
    );
  z-index: 2;
}

/* ============================================================
   3. Hero Content (über dem SVG)
   ============================================================ */

.vmhb-home-tz__hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.vmhb-home-tz__hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--vmhb-ink, #ffffff);
  margin: 0 0 1rem;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(251, 191, 36, 0.3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vmhb-home-tz__hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--vmhb-sub, rgba(255, 255, 255, 0.8));
  margin: 0 0 2.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  font-weight: 400;
}

/* ============================================================
   4. Training Cards Grid (Glasmorphismus - Variante 2)
   Nutzt globale CSS-Vars für Konsistenz mit anderen Cards
   ============================================================ */

.vmhb-home-tz__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 3rem;
  max-width: 1400px;
  margin: -4rem auto 0;
}

/* Card mit Glasmorphismus - nutzt globale CSS-Vars für Konsistenz */
.vmhb-home-tz__item {
  background: var(--vmhb-card-bg); /* Nutzt globale Variable */
  /* stärkeres Glass, damit der Hero-Hintergrund "durch" die Card sichtbar ist */
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--vmhb-card-border); /* Nutzt globale Variable */
  border-radius: var(--vmhb-radius); /* Nutzt globale Variable */
  padding: 28px; /* Gleich wie andere Cards */
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--vmhb-shadow); /* Nutzt globale Variable */
}

.vmhb-home-tz__item:hover {
  /* STARK glassy beim Hover */
  background: rgba(20, 26, 35, 0.35); /* Viel transparenter */
  backdrop-filter: blur(35px) saturate(200%); /* Starker Blur */
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(var(--vmhb-stripe-rgb, 245, 196, 0), 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Vereinsfarben-Stripe - identisch zu anderen Cards */
.vmhb-home-tz__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(
    180deg,
    var(--c1, var(--vmhb-stripe-color1, #fbbf24)) 0%,
    var(--c2, var(--vmhb-stripe-color2, #f59e0b)) 50%,
    var(--c3, var(--vmhb-stripe-color3, #d97706)) 100%
  );
  transition: width 0.3s ease;
  z-index: 1;
}

.vmhb-home-tz__item:hover::before {
  width: 8px;
}

/* Glow-Effekt auf Hover - nutzt Vereinsfarben-RGB */
.vmhb-home-tz__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(
      circle at top right,
      rgba(var(--vmhb-stripe-rgb, 251, 191, 36), 0.1) 0%,
      transparent 60%
    );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.vmhb-home-tz__item:hover::after {
  opacity: 1;
}

/* Card Content (über den Overlays) */
.vmhb-card-header,
.vmhb-card-team,
.vmhb-card-info {
  position: relative;
  z-index: 2;
}

/* ============================================================
   5. Card Header (Datum + Uhrzeit)
   ============================================================ */

.vmhb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vmhb-card-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vmhb-accent, #fbbf24);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vmhb-card-time {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--vmhb-ink, #ffffff);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   6. Card Team (Badge + Text)
   ============================================================ */

.vmhb-card-team {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vmhb-card-badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.vmhb-card-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.vmhb-card-teamtext h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--vmhb-ink, #ffffff);
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.vmhb-card-teamtext p {
  font-size: 0.875rem;
  color: var(--vmhb-sub, rgba(255, 255, 255, 0.7));
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   7. Card Info (Halle)
   ============================================================ */

.vmhb-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vmhb-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--vmhb-muted, rgba(255, 255, 255, 0.6));
  line-height: 1.5;
}

.vmhb-info-ic {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vmhb-accent, #fbbf24);
  font-size: 1rem;
}

/* ============================================================
   8. CTA Button (optional)
   ============================================================ */

.vmhb-home-tz__cta {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 3rem 3rem;
}

.vmhb-home-tz__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ast-global-color-5, #0F172A);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 20px rgba(251, 191, 36, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.vmhb-home-tz__cta-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 8px 30px rgba(251, 191, 36, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.vmhb-home-tz__cta-btn i {
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.vmhb-home-tz__cta-btn:hover i {
  transform: translateX(4px);
}

/* ============================================================
   9. Slider Dots (unter den Cards)
   ============================================================ */

.vmhb-slider-dots {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 3rem 3rem;
  margin-top: -1rem;
}

.vmhb-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.vmhb-slider-dot:hover {
  background: rgba(251, 191, 36, 0.4);
  border-color: rgba(251, 191, 36, 0.6);
  transform: scale(1.2);
}

.vmhb-slider-dot.is-active {
  background: var(--vmhb-accent, #fbbf24);
  border-color: var(--vmhb-accent, #fbbf24);
  width: 30px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* ============================================================
   10. Responsive Design
   ============================================================ */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .vmhb-home-tz__hero {
    padding: 4rem 2rem 3rem;
    min-height: 400px;
  }

  .vmhb-home-tz__hero-title {
    font-size: 2.5rem;
  }

  .vmhb-home-tz__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    margin-top: -3rem;
  }

  .vmhb-home-tz__item {
    padding: 1.5rem;
  }

  .vmhb-home-tz__cta {
    padding: 0 2rem 2rem;
  }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
  .vmhb-home-tz {
    margin: 2rem 0;
    border-radius: 12px;
  }

  .vmhb-home-tz__hero {
    padding: 3rem 1.5rem 2rem;
    min-height: 320px;
    background-attachment: scroll; /* Performance auf Mobile */
  }  
  .vmhb-home-tz__hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .vmhb-home-tz__hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .vmhb-home-tz__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    margin-top: -2rem;
  }

  .vmhb-home-tz__item {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .vmhb-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .vmhb-card-time {
    font-size: 1rem;
  }

  .vmhb-card-badge {
    width: 48px;
    height: 48px;
  }

  .vmhb-card-teamtext h3 {
    font-size: 1.125rem;
  }

  .vmhb-card-teamtext p {
    font-size: 0.8125rem;
  }

  .vmhb-info-item {
    font-size: 0.8125rem;
  }

  .vmhb-home-tz__cta {
    padding: 0 1.5rem 2rem;
  }

  .vmhb-home-tz__cta-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
  }

  .vmhb-slider-dots {
    padding: 1rem 1.5rem 2rem;
  }
}

/* Extra Small Mobile (max 480px) */
@media (max-width: 480px) {
  .vmhb-home-tz__hero {
    padding: 2.5rem 1rem 1.5rem;
  }

  .vmhb-home-tz__grid {
    padding: 1rem;
    gap: 1rem;
  }

  .vmhb-home-tz__item {
    padding: 1rem;
  }
}

/* ============================================================
   11. Print Styles (optional)
   ============================================================ */

@media print {
  .vmhb-home-tz__hero::before,
  .vmhb-home-tz__hero::after,
  .vmhb-slider-dots,
  .vmhb-home-tz__cta {
    display: none !important;
  }

  .vmhb-home-tz {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .vmhb-home-tz__item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ============================================================
   12. Accessibility Enhancements
   ============================================================ */

/* Fokus-Styles für Tastatur-Navigation */
.vmhb-home-tz__cta-btn:focus-visible,
.vmhb-slider-dot:focus-visible {
  outline: 3px solid var(--vmhb-accent, #fbbf24);
  outline-offset: 3px;
}

/* Reduzierte Bewegung (für Nutzer mit vestibulären Störungen) */
@media (prefers-reduced-motion: reduce) {
  .vmhb-home-tz__item,
  .vmhb-home-tz__cta-btn,
  .vmhb-slider-dot,
  .vmhb-home-tz__hero::before {
    transition: none !important;
    animation: none !important;
  }

  .vmhb-home-tz__hero {
    background-attachment: scroll !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .vmhb-home-tz__item {
    border: 2px solid currentColor;
  }

  .vmhb-card-header {
    border-bottom-width: 2px;
  }
}
/* ============================================================
   7. Container & Grid Layouts
   ============================================================ */

.vmhb-tz-wrap {
  display: grid;
  gap: var(--vmhb-gap);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .vmhb-tz-wrap {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }
}

.vmhb-training-cards-container {
  position: relative;
  margin-bottom: 30px;
}


/* ============================================================
   8. Mobile Slider (Identical to Demo)
   ============================================================ */

@media (max-width: 768px) {
  .vmhb-tz-wrap,
  .vmhb-home-tz__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .vmhb-tz-wrap::-webkit-scrollbar,
  .vmhb-home-tz__grid::-webkit-scrollbar {
    height: 6px;
  }

  .vmhb-tz-wrap::-webkit-scrollbar-track,
  .vmhb-home-tz__grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
  }

  body:not(.dark-mode) .vmhb-tz-wrap::-webkit-scrollbar-track,
  body:not(.dark-mode) .vmhb-home-tz__grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
  }

  .vmhb-tz-wrap::-webkit-scrollbar-thumb,
  .vmhb-home-tz__grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--vmhb-stripe), color-mix(in srgb, var(--vmhb-stripe) 80%, #f59e0b));
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(var(--vmhb-stripe-rgb), 0.4);
  }

  .vmhb-training-card,
  .vmhb-tz,
  .vmhb-home-tz__card {
    min-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  /* Slider Dots */
  .vmhb-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
  }

  .vmhb-slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
  }

  body:not(.dark-mode) .vmhb-slider-dot {
    background: rgba(0, 0, 0, 0.15);
  }

  .vmhb-slider-dot.is-active,
  .vmhb-slider-dot.active {
    background: linear-gradient(135deg, var(--vmhb-stripe), color-mix(in srgb, var(--vmhb-stripe) 85%, #f59e0b));
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(var(--vmhb-stripe-rgb), 0.5);
  }
}

@media (min-width: 769px) {
  .vmhb-slider-dots {
    display: none;
  }
}


/* ============================================================
   9. vCards & Contacts (Max 3 columns, more horizontal)
   ============================================================ */

.vmhb-vcard {
  border: 1px solid var(--vmhb-card-border);
  border-radius: var(--vmhb-radius);
  background: var(--vmhb-card-bg);
  backdrop-filter: blur(50px) saturate(180%);
  padding: 1.25rem 1.5rem;
  /* KEIN display: flex hier - wird spezifisch gesetzt */
  gap: .5rem;
  box-shadow: var(--vmhb-shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.vmhb-vcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(
    180deg,
    transparent 0%, transparent 5%,
    rgba(var(--vmhb-stripe-rgb), 0.2) 15%,
    rgba(var(--vmhb-stripe-rgb), 0.5) 25%,
    rgba(var(--vmhb-stripe-rgb), 0.8) 35%,
    var(--vmhb-stripe) 45%, var(--vmhb-stripe) 55%,
    rgba(var(--vmhb-stripe-rgb), 0.8) 65%,
    rgba(var(--vmhb-stripe-rgb), 0.5) 75%,
    rgba(var(--vmhb-stripe-rgb), 0.2) 85%,
    transparent 95%, transparent 100%
  );
  clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
  z-index: 1;
  box-shadow: 
    0 0 20px rgba(var(--vmhb-stripe-rgb), 0.6),
    0 0 40px rgba(var(--vmhb-stripe-rgb), 0.4),
    2px 0 15px rgba(var(--vmhb-stripe-rgb), 0.5);
  animation: vmhb-stripeGlow 4s ease-in-out infinite;
}

.vmhb-vcard > * {
  position: relative;
  z-index: 2;
}

.vmhb-vcard:hover {
  transform: translateY(-6px) scale(1.01);
}

body.dark-mode .vmhb-vcard,
[data-theme="dark"] .vmhb-vcard {
  background: rgba(20, 26, 35, 0.5);
}

body.dark-mode .vmhb-vcard:hover,
[data-theme="dark"] .vmhb-vcard:hover {
  background: rgba(20, 26, 35, 0.6);
  border-color: rgba(var(--vmhb-stripe-rgb), 0.2);
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(var(--vmhb-stripe-rgb), 0.12);
}

.vmhb-vcard__avatar {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--vmhb-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.vmhb-vcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vmhb-vcard__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--vmhb-ink);
  text-align: center;
  line-height: 1.3;
}

.vmhb-vcard__meta {
  color: var(--vmhb-sub);
  font-size: .88rem;
  text-align: center;
}

.vmhb-vcard__roles {
  color: var(--vmhb-sub);
  font-size: .85rem;
  opacity: .85;
  text-align: center;
}

.vmhb-vcard__actions {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: .25rem;
  flex-wrap: wrap;
}

.vmhb-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem;
  border: 1px solid var(--vmhb-line);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--vmhb-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vmhb-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

body:not(.dark-mode) .vmhb-btn {
  background: rgba(0, 0, 0, 0.02);
}

body:not(.dark-mode) .vmhb-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.vmhb-grid-vcards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  max-width: 100%;
}

/* Max 3 Spalten auf großen Bildschirmen */
@media (min-width: 1024px) {
  .vmhb-grid-vcards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 Spalten auf Tablets */
@media (min-width: 640px) and (max-width: 1023px) {
  .vmhb-grid-vcards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 Spalte auf Mobile */
@media (max-width: 639px) {
  .vmhb-grid-vcards {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   10. Team/Mannschaft Cards (Same Effects)
   ============================================================ */

.vmhb-card {
  border: 1px solid var(--vmhb-card-border);
  border-radius: var(--vmhb-radius);
  background: var(--vmhb-card-bg);
  overflow: hidden;
  box-shadow: var(--vmhb-shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.vmhb-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.vmhb-card > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.vmhb-media {
  position: relative;
  overflow: hidden;
  background: var(--vmhb-pill);
}

.vmhb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vmhb-overlay-bottom {
  position: absolute;
  inset: auto 0 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.8) 100%);
}

.vmhb-text-layer {
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  z-index: 2;
  color: #fff;
  line-height: 1.25;
}

.vmhb-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 .25rem 0;
}

.vmhb-subtitle {
  opacity: .9;
  font-size: 1.1rem;
  line-height: 1.35;
}


/* ============================================================
   11. Filter Bar
   ============================================================ */

.vmhb-filter {
  position: sticky;
  top: var(--vmhb-sticky-top);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  margin: 0 0 16px 0;
  border: 1px solid var(--vmhb-card-border);
  border-radius: var(--vmhb-radius);
  background: var(--vmhb-card-bg);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow: var(--vmhb-shadow);
}

@media (min-width: 640px) {
  .vmhb-filter {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: end;
  }
}

.vmhb-filter select,
.vmhb-filter input[type=text],
.vmhb-filter input[type=number] {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--vmhb-line);
  border-radius: 8px;
  background: var(--vmhb-card-bg);
  color: var(--vmhb-ink);
  font: inherit;
}

.vmhb-filter button {
  padding: .6rem 1.2rem;
  border-radius: 10px;
  min-height: 40px;
  border: 1px solid var(--vmhb-accent);
  background: var(--vmhb-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vmhb-filter button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--vmhb-accent-rgb), 0.3);
}


/* ============================================================
   12. Utility Classes
   ============================================================ */

.vmhb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 420px) {
  .vmhb-team-grid,
  .vmhb-grid-vcards {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   13. Animation on Load (Fade In Up)
   ============================================================ */

@keyframes vmhb-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vmhb-training-card,
.vmhb-tz,
.vmhb-home-tz__card,
.vmhb-vcard {
  animation: vmhb-fadeInUp 0.7s ease-out backwards;
}

.vmhb-training-card:nth-child(1),
.vmhb-tz:nth-child(1),
.vmhb-home-tz__card:nth-child(1) { 
  animation-delay: 0.1s; 
}

.vmhb-training-card:nth-child(2),
.vmhb-tz:nth-child(2),
.vmhb-home-tz__card:nth-child(2) { 
  animation-delay: 0.2s; 
}

.vmhb-training-card:nth-child(3),
.vmhb-tz:nth-child(3),
.vmhb-home-tz__card:nth-child(3) { 
  animation-delay: 0.3s; 
}


/* ============================================================
   14. Print Styles
   ============================================================ */

@media print {
  .vmhb-filter,
  .vmhb-slider-dots,
  .vmhb-btn {
    display: none !important;
  }

  .vmhb-card,
  .vmhb-tz,
  .vmhb-vcard {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .vmhb-training-card::before,
  .vmhb-tz::before,
  .vmhb-vcard::before {
    display: none;
  }
}

/* ============================================================
   15. Mannschaft (Dark only) – Preview-Style Patch
   Ziel: ruhiges Grid (>=3 Spalten Desktop), lineare Detailansicht,
   Posts/Tabellen/Trainer-Optik an Preview angleichen.
   ============================================================ */

/* Dark Mode ONLY: Variablen fest an VMHB-Container binden */
.vmhb-rich{
  --vmhb-bg: #0d1117;
  --vmhb-card-bg: rgba(25, 32, 45, 0.70);
  --vmhb-card-border: rgba(255, 255, 255, 0.08);
  --vmhb-ink: rgba(255, 255, 255, 0.92);
  --vmhb-sub: rgba(255, 255, 255, 0.60);
  --vmhb-muted: rgba(255, 255, 255, 0.45);
  --vmhb-line: rgba(255, 255, 255, 0.05);

  /* Accent (Preview-ähnlich) */
  --vmhb-accent: #dc2626;
  --vmhb-accent-rgb: 220, 38, 38;

  --vmhb-radius: 18px;
  --vmhb-gap: 25px;
  --vmhb-shadow: 0 12px 45px rgba(0,0,0,.60);
}

/* Panel/Card-Basis (Glass + Top-Gloss) */
.vmhb-panel{
  background: var(--vmhb-card-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: var(--vmhb-radius);
  border: 1px solid var(--vmhb-card-border);
  overflow: hidden;
  box-shadow: var(--vmhb-shadow);
  position: relative;
}
.vmhb-panel::after{
  content:"";
  position:absolute; left:0; right:0; top:0;
  height: 100px;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, transparent 100%);
  pointer-events:none;
}

/* LISTING: Team Grid – Desktop mind. 3 Spalten */
.vmhb-team-grid{
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--vmhb-gap);
}
@media (min-width: 740px){
  .vmhb-team-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px){
  .vmhb-team-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1400px){
  .vmhb-team-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Team Card ruhiger machen */
.vmhb-card{
  border-radius: var(--vmhb-radius);
  overflow: hidden;
  border: 1px solid var(--vmhb-card-border);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--vmhb-shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.vmhb-card:hover{
  transform: translateY(-6px);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}
.vmhb-card a{ color: inherit; text-decoration: none; }

.vmhb-text-layer .vmhb-title{
  font-weight: 700;
  letter-spacing: -0.3px;
}
.vmhb-text-layer .vmhb-subtitle{
  color: var(--vmhb-sub);
}

/* SINGLE: lineare, ruhige Sektionen */
.vmhb-team-single{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vmhb-team-single h3{
  margin: 18px 0 10px;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--vmhb-ink);
}

/* TRAINER: vorhandene .vmhb-vcard Richtung Preview */
.vmhb-grid-vcards{
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 740px){
  .vmhb-grid-vcards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px){
  .vmhb-grid-vcards{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==================== KONTAKT-KARTEN ==================== */
/* Separates CSS für Kontakt-Seite, keine Konflikte mit Trainer-Cards */

/* LISTENANSICHT: Horizontal (Avatar links, Content rechts) */
.vmhb-contact-card {
  background: var(--vmhb-card-bg);
  border: 1px solid var(--vmhb-card-border);
  border-radius: var(--vmhb-radius);
  overflow: hidden;
  box-shadow: var(--vmhb-shadow);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover-Effekt für Kontakt-Cards */
.vmhb-contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

/* Stripe an der linken Seite (3 Vereinsfarben als Gradient) */
.vmhb-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(
    180deg,
    var(--c1, #fbbf24) 0%,
    var(--c2, #f59e0b) 50%,
    var(--c3, #d97706) 100%
  );
  transition: width 0.3s ease, opacity 0.3s ease;
}

.vmhb-contact-card:hover::before {
  width: 8px;
  opacity: 1;
}

/* Avatar in Kontakt-Liste */
.vmhb-contact-card .vmhb-vcard__avatar {
  width: 110px;
  min-width: 110px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  padding: 0;
}

.vmhb-contact-card .vmhb-vcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content-Bereich in Kontakt-Liste */
.vmhb-contact-card .vmhb-vcard__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  gap: 0.5rem;
}

/* Mobile Optimierung für Kontakt-Liste */
@media (max-width: 768px) {
  .vmhb-contact-card .vmhb-vcard__avatar {
    width: 80px;
    min-width: 80px;
  }
  
  .vmhb-contact-card .vmhb-vcard__content {
    padding: 0.75rem 1rem;
  }
}

/* EINZELANSICHT: Steckbrief-Format (kein Karten-Look) */
.vmhb-contact-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

/* Avatar im Steckbrief (quadratisch, zentriert oben) */
.vmhb-contact-single .vmhb-vcard__avatar {
  width: 300px;
  height: 300px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 8px;
}

.vmhb-contact-single .vmhb-vcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name im Steckbrief */
.vmhb-contact-single .vmhb-vcard__name {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--vmhb-text);
}

/* Steckbrief-Daten */
.vmhb-contact-single .vmhb-vcard__roles {
  margin-bottom: 2rem;
}

.vmhb-contact-single .vmhb-vcard__roles > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.vmhb-contact-single .vmhb-vcard__roles > div:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.vmhb-contact-single .vmhb-vcard__roles > div:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Icon vor Rollen-Einträgen */
.vmhb-contact-single .vmhb-vcard__roles > div::before {
  content: '▸';
  margin-right: 0.75rem;
  color: var(--vmhb-accent);
  font-weight: bold;
}

/* Buttons im Steckbrief */
.vmhb-contact-single .vmhb-vcard__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

/* Teams-Liste im Steckbrief */
.vmhb-contact-single .vmhb-contact-teams {
  margin-top: 2rem;
}

.vmhb-contact-single .vmhb-contact-teams strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--vmhb-text);
  font-weight: 700;
}

.vmhb-contact-single .vmhb-contact-teams ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vmhb-contact-single .vmhb-contact-teams li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
}

.vmhb-contact-single .vmhb-contact-teams li:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.vmhb-contact-single .vmhb-contact-teams li::before {
  content: '▸';
  margin-right: 0.75rem;
  color: var(--vmhb-accent);
  font-weight: bold;
}

.vmhb-contact-single .vmhb-contact-teams a {
  color: var(--vmhb-text);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1.1rem;
}

.vmhb-contact-single .vmhb-contact-teams a:hover {
  color: var(--vmhb-accent);
}

/* Mobile Optimierung für Steckbrief */
@media (max-width: 768px) {
  .vmhb-contact-single .vmhb-vcard__avatar {
    width: 200px;
    height: 200px;
  }
  
  .vmhb-contact-single .vmhb-vcard__name {
    font-size: 1.5rem;
  }
  
  .vmhb-contact-single .vmhb-vcard__roles > div,
  .vmhb-contact-single .vmhb-contact-teams a {
    font-size: 1rem;
  }
  
  .vmhb-contact-single .vmhb-contact-teams strong {
    font-size: 1.25rem;
  }
}

/* TRAINER/KONTAKTE: Basis-Styles */
.vmhb-vcard{
  background: var(--vmhb-card-bg);
  border: 1px solid var(--vmhb-card-border);
  border-radius: var(--vmhb-radius);
  overflow: hidden;
  box-shadow: var(--vmhb-shadow);
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vmhb-vcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

/* Trainer Cards in Teams: Horizontal Layout mit 3-Farben-Stripe */
.vmhb-team-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
}

/* 3-Farben-Stripe für Trainer-Cards */
.vmhb-team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(
    180deg,
    var(--c1, #fbbf24) 0%,
    var(--c2, #f59e0b) 50%,
    var(--c3, #d97706) 100%
  );
  transition: width 0.3s ease;
}

.vmhb-team-card:hover::before {
  width: 8px;
}

/* Avatar in Trainer-Cards */
.vmhb-team-card .vmhb-vcard__avatar {
  width: 110px;
  min-width: 110px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  padding: 0;
}

.vmhb-team-card .vmhb-vcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content in Trainer-Cards */
.vmhb-team-card .vmhb-vcard__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  gap: 0.5rem;
}

/* Mobile Optimierung für Trainer-Cards */
@media (max-width: 768px) {
  .vmhb-team-card .vmhb-vcard__avatar {
    width: 80px;
    min-width: 80px;
  }
  
  .vmhb-team-card .vmhb-vcard__content {
    padding: 0.75rem 1rem;
  }
}

/* Legacy Grid-VCard Styles (für alte Implementierungen) */
.vmhb-grid-vcards .vmhb-vcard__avatar {
  width: 110px;
  height: auto;
  min-height: 150px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #374151, #1f2937);
}

.vmhb-grid-vcards .vmhb-vcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vmhb-grid-vcards .vmhb-vcard__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.vmhb-grid-vcards .vmhb-vcard__name {
  padding: 16px 16px 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.vmhb-grid-vcards .vmhb-vcard__roles {
  padding: 0 16px 10px;
  font-size: 0.85rem;
  color: var(--vmhb-sub);
  line-height: 1.4;
}

.vmhb-grid-vcards .vmhb-vcard__actions {
  padding: 0 16px 16px;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vmhb-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: var(--vmhb-ink);
  font-weight: 600;
  text-decoration: none;
}
.vmhb-btn:hover{
  background: rgba(255,255,255,0.10);
}

/* TRAININGSZEITEN: Typo-Feinschliff */
.vmhb-tz__weekday{ color: var(--vmhb-sub); font-weight: 600; }
.vmhb-tz__time{ color: var(--vmhb-accent); font-weight: 800; }


/* ============================================================
   RESPONSIVE FIXES - Patch v3
   Datum: 2026-02-05
   Fixes: Trainerkarten horizontal auf Mobile + Trainingszeiten responsive
   ============================================================ */

/* ============================================================
   1. TRAININGSZEITEN RESPONSIVE
   ============================================================ */

/* Responsive Padding für .vmhb-tz Cards */
@media (max-width: 739px) {
  .vmhb-tz {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .vmhb-tz {
    padding: 14px;
  }
}

/* Line1: Flex Layout mit Wrap für Umbruch */
.vmhb-tz__line1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.vmhb-tz__line1 i {
  flex-shrink: 0;
  margin-right: 2px;
}

.vmhb-tz__weekday,
.vmhb-tz__time {
  flex-shrink: 0;
  white-space: nowrap;
}

.vmhb-tz__title {
  word-break: break-word;
}

@media (max-width: 480px) {
  .vmhb-tz__line1 {
    gap: 6px;
    font-size: 0.9rem;
  }
  
  /* Trennzeichen (| und ·) ausblenden auf sehr kleinen Screens */
  .vmhb-tz__line1 > span:not([class]) {
    display: none;
  }
}

/* Line2: Flex Layout mit Wrap */
.vmhb-tz__line2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--vmhb-sub);
}

.vmhb-tz__line2 i {
  flex-shrink: 0;
  margin-right: 2px;
}

@media (max-width: 480px) {
  .vmhb-tz__line2 {
    gap: 6px;
    font-size: 0.85rem;
  }
  
  /* Trennzeichen ausblenden */
  .vmhb-tz__line2 > span:not([class]) {
    display: none;
  }
}

/* Monatsleiste: KRITISCH - Wrap erlauben! */
.vmhb-tz__months {
  display: flex;
  flex-wrap: wrap; /* ⚠️ Ohne dies läuft die Leiste über! */
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.vmhb-tz__months i {
  flex-shrink: 0;
  margin-right: 4px;
}

.vmhb-month {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: opacity 0.2s, background 0.2s;
}

/* Aktive Monate hervorheben */
.vmhb-month:not(.vmhb-dim-90) {
  background: rgba(var(--vmhb-accent-rgb), 0.12);
  border-color: rgba(var(--vmhb-accent-rgb), 0.2);
}

.vmhb-dim-90 {
  opacity: 0.35;
}

@media (max-width: 739px) {
  .vmhb-tz__months {
    gap: 4px;
  }
  
  .vmhb-month {
    padding: 3px 7px;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  /* Kalender-Icon auf sehr kleinen Screens ausblenden */
  .vmhb-tz__months i {
    display: none;
  }
  
  .vmhb-month {
    padding: 3px 6px;
    font-size: 0.6rem;
  }
}

/* Wrapper für besseres Spacing */
.vmhb-tz-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 739px) {
  .vmhb-tz-wrap {
    gap: 12px;
  }
}


/* ============================================================
   2. TRAINERKARTEN HORIZONTAL AUF MOBILE
   ============================================================ */

/* Mobile: Kleinere Avatare und kompakteres Layout */
/* NUR für Listenansicht */
@media (max-width: 739px) {
  .vmhb-grid-vcards .vmhb-vcard__avatar {
    width: 80px;
    min-height: 100px;
  }
  
  .vmhb-grid-vcards .vmhb-vcard__name {
    padding: 12px 12px 6px;
    font-size: 0.95rem;
  }
  
  .vmhb-grid-vcards .vmhb-vcard__roles {
    padding: 0 12px 8px;
    font-size: 0.8rem;
  }
  
  .vmhb-grid-vcards .vmhb-vcard__actions {
    padding: 0 12px 12px;
    gap: 8px;
  }
  
  .vmhb-grid-vcards .vmhb-btn {
    padding: 8px 6px;
    font-size: 0.8rem;
    gap: 6px;
  }
  
  /* Anpassung für Stripe in Team-Single */
  .vmhb-team-single .vmhb-vcard__name,
  .vmhb-team-single .vmhb-vcard__roles,
  .vmhb-team-single .vmhb-vcard__actions {
    padding-left: 12px;
  }
  
  /* Icon-only Buttons auf sehr kleinen Screens */
  @media (max-width: 480px) {
    .vmhb-grid-vcards .vmhb-btn span {
      display: none;
    }
    
    .vmhb-grid-vcards .vmhb-btn {
      justify-content: center;
    }
    
    .vmhb-grid-vcards .vmhb-vcard__avatar {
      width: 70px;
      min-height: 90px;
    }
  }
}

/* Desktop: Etwas größere Avatare für Listenansicht */
@media (min-width: 740px) {
  .vmhb-grid-vcards .vmhb-vcard__avatar {
    width: 110px;
    min-height: 150px;
  }
}

/* Einzelansicht: Mobile Anpassungen */
@media (max-width: 739px) {
  .vmhb-vcard:not(.vmhb-grid-vcards .vmhb-vcard) .vmhb-vcard__avatar {
    height: 240px; /* Kleiner auf Mobile */
  }
}


/* ============================================================
   3. ZUSÄTZLICHE MOBILE-OPTIMIERUNGEN
   ============================================================ */

/* Team-Single Container */
@media (max-width: 739px) {
  .vmhb-team-single {
    gap: 14px; /* Reduziert von 18px */
  }
  
  .vmhb-team-single h3 {
    font-size: 1.05rem;
    margin: 14px 0 8px;
  }
}

/* Beiträge-Cards kompakter */
@media (max-width: 739px) {
  .vmhb-post-media {
    height: 120px; /* Reduziert von 140px */
  }
  
  .vmhb-post-body {
    padding: 12px; /* Reduziert von 16px */
  }
  
  .vmhb-post-title {
    font-size: 0.95rem;
  }
  
  .vmhb-post-meta {
    font-size: 0.8rem;
  }
}

/* Team-Posts-Wrap */
@media (max-width: 739px) {
  .vmhb-team-posts {
    gap: 12px; /* Reduziert von 16px */
  }
}

/* ENDE RESPONSIVE FIXES PATCH v3 */


/* ============================================================
   HANDBALL.NET WIDGET STYLING
   ============================================================ */

/* Container-Styling */
.vmhb-handballnet-widget {
  background: var(--vmhb-card-bg);
  border: 1px solid var(--vmhb-card-border);
  border-radius: var(--vmhb-radius);
  padding: 1.5rem;
  box-shadow: var(--vmhb-shadow);
}

/* Override handball.net Widget-Styles für Dark Mode */
.vmhb-handballnet-widget table,
.vmhb-handballnet-widget .hbw-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent !important;
  color: var(--vmhb-ink) !important;
}

.vmhb-handballnet-widget th,
.vmhb-handballnet-widget thead td {
  background: rgba(var(--vmhb-accent-rgb), 0.1) !important;
  color: var(--vmhb-ink) !important;
  padding: 12px 8px;
  font-weight: 600;
  border-bottom: 2px solid var(--vmhb-line);
}

.vmhb-handballnet-widget td {
  background: transparent !important;
  color: var(--vmhb-ink) !important;
  padding: 10px 8px;
  border-bottom: 1px solid var(--vmhb-line);
}

.vmhb-handballnet-widget tr:hover td {
  background: rgba(var(--vmhb-accent-rgb), 0.05) !important;
}

/* Links im Widget */
.vmhb-handballnet-widget a {
  color: var(--vmhb-accent) !important;
  text-decoration: none;
}

.vmhb-handballnet-widget a:hover {
  color: var(--vmhb-accent) !important;
  text-decoration: underline;
}

/* Spiel-Status (Gewonnen/Verloren) */
.vmhb-handballnet-widget .hbw-win {
  color: #10b981 !important; /* Grün */
}

.vmhb-handballnet-widget .hbw-loss {
  color: #ef4444 !important; /* Rot */
}

.vmhb-handballnet-widget .hbw-draw {
  color: var(--vmhb-sub) !important; /* Grau */
}

/* Datum/Zeit-Spalten */
.vmhb-handballnet-widget .hbw-date,
.vmhb-handballnet-widget .hbw-time {
  color: var(--vmhb-sub) !important;
  font-size: 0.9rem;
}

/* Loading-Spinner ausblenden wenn Widget geladen */
.vmhb-handballnet-widget:has(.hbw-table) .vmhb-handballnet-loading,
.vmhb-handballnet-widget:has(table) .vmhb-handballnet-loading {
  display: none;
}

/* Responsive: Tabelle scrollbar auf Mobile */
@media (max-width: 739px) {
  .vmhb-handballnet-widget {
    padding: 1rem;
    overflow-x: auto;
  }
  
  .vmhb-handballnet-widget table {
    min-width: 500px; /* Verhindert zu schmale Tabelle */
  }
}


/* BERICHTE/NEWS: Cards wie Preview */
.vmhb-team-posts{
  display:grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 740px){
  .vmhb-team-posts{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px){
  .vmhb-team-posts{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.vmhb-post-card{
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .25s ease, background .25s ease;
}
.vmhb-post-card:hover{
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
}
.vmhb-post-media{
  width:100%;
  height: 140px;
  background: linear-gradient(135deg, #374151, #1f2937);
}
.vmhb-post-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.vmhb-post-body{ padding: 16px; }
.vmhb-post-title{
  margin: 0 0 8px;
  font-size: 1.0rem;
  font-weight: 650;
  line-height: 1.25;
}
.vmhb-post-title a{ color: var(--vmhb-ink); text-decoration: none; }
.vmhb-post-meta{ font-size: .85rem; color: var(--vmhb-sub); }

.vmhb-post-more{
  margin-top: 14px;
  display:block;
  padding: 12px;
  text-align:center;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--vmhb-ink);
  text-decoration:none;
}
.vmhb-post-more:hover{ background: rgba(255,255,255,0.05); }

/* TABELLEN: ruhiges Grundlayout */
.vmhb-rich table{ width:100%; border-collapse: collapse; }
.vmhb-rich thead th{
  padding: 12px 8px;
  text-align:left;
  font-size: .8rem;
  color: var(--vmhb-sub);
  font-weight: 550;
  border-bottom: 1px solid var(--vmhb-line);
}
.vmhb-rich tbody td{
  padding: 14px 8px;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* 9) MEDIA META (Preview-Style): Vereinslogo als "Stempel" + Liga als Bar unten */
.vmhb-media{ position: relative; }

/* Container über dem Bild (nur Positionierung) */
.vmhb-media-meta{
  position: absolute;
  inset: 0;
  pointer-events: none; /* Click-through (Link bleibt klickbar) */
}

/* Logo-Stempel oben rechts, leicht gedreht, farbiger Shadow aus Vereinsfarben */
.vmhb-media-meta__stamp{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  transform: rotate(-8deg);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 10px 22px rgba(var(--vmhb-c1-rgb, 0,0,0), 0.45),
    0 22px 58px rgba(var(--vmhb-c2-rgb, 0,0,0), 0.32),
    0 44px 110px rgba(var(--vmhb-c3-rgb, 0,0,0), 0.24);
}
.vmhb-media-meta__stamp::after{
  /* leichter "Stempelrand" */
  content:"";
  position:absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,0.22);
  opacity: .9;
}
.vmhb-media-meta__logo{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}

/* Liga-Bar unten über komplette Bildbreite (Glass + dark overlay) */
.vmhb-media-meta__ligaBar{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.58) 55%, rgba(0,0,0,0.66) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.vmhb-media-meta__ligaText{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* In der Detailansicht: altes Badge unter dem Bild ausblenden (Meta sitzt auf dem Bild) */
.vmhb-team-single .vmhb-badge{ display:none; }

/* 10) Mannschaft-Detail: Trainingszeiten OHNE Stripe und OHNE Shadow */
.vmhb-team-single .vmhb-tz::before{ display:none !important; } /* Stripe ausblenden */
.vmhb-team-single .vmhb-tz::after{ display:none !important; }
.vmhb-team-single .vmhb-tz {
  padding: 18px;
  box-shadow: none !important; /* Kein Shadow */
}

/* 11) Mannschaft-Detail: "Kontakt"-Karten (Trainer) mit 3-Farben-Linie */
.vmhb-team-single .vmhb-vcard{ 
  position: relative; 
  overflow: hidden;
  box-shadow: none !important; /* Kein Shadow */
}

.vmhb-team-single .vmhb-vcard::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width: 8px;
  background: linear-gradient(180deg,
    rgba(var(--vmhb-c1-rgb, 0,0,0), 1) 0%,
    rgba(var(--vmhb-c1-rgb, 0,0,0), 1) 33%,
    rgba(var(--vmhb-c2-rgb, 0,0,0), 1) 33%,
    rgba(var(--vmhb-c2-rgb, 0,0,0), 1) 66%,
    rgba(var(--vmhb-c3-rgb, 0,0,0), 1) 66%,
    rgba(var(--vmhb-c3-rgb, 0,0,0), 1) 100%
  );
  box-shadow: none; /* Kein Glow am Stripe */
}

/* Buttons/Content leicht einrücken wegen Stripe */
.vmhb-team-single .vmhb-vcard__name,
.vmhb-team-single .vmhb-vcard__roles,
.vmhb-team-single .vmhb-vcard__actions{ padding-left: 20px; }


/* Trainingszeiten: kein Gloss/Shimmer (clean & ruhig) */
.vmhb-training-card .vmhb-card-gloss,
.vmhb-training-card .vmhb-card-reflection,
.vmhb-tz .vmhb-card-gloss,
.vmhb-tz .vmhb-card-reflection {
  display: none !important;
}



/* ============================================================
   VMHB Dark-only hardening (ensure components stay dark even if theme body is not)
   ============================================================ */
.vmhb-dark-mode {
  --vmhb-bg: #0d1117;
  --vmhb-card-bg: rgba(20, 26, 35, 0.5);
  --vmhb-card-border: rgba(255, 255, 255, 0.06);
  --vmhb-ink: rgba(255, 255, 255, 0.92);
  --vmhb-sub: rgba(255, 255, 255, 0.6);
  --vmhb-muted: rgba(255, 255, 255, 0.45);
  --vmhb-line: rgba(255, 255, 255, 0.05);
  --vmhb-pill: rgba(255, 255, 255, 0.05);
  --vmhb-accent: #fbbf24;
  --vmhb-accent-rgb: 251, 191, 36;
  --vmhb-shadow: 0 12px 45px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Override any body-based light-mode fallbacks inside dark wrapper */
.vmhb-dark-mode .vmhb-home-tz__card::after {
  opacity: 0.15;
  filter: blur(2px);
}
.vmhb-dark-mode .vmhb-slider-dot {
  background: rgba(255, 255, 255, 0.15);
}
.vmhb-dark-mode .vmhb-slider-dot.is-active,
.vmhb-dark-mode .vmhb-slider-dot.active {
  background: linear-gradient(135deg, var(--c2, var(--vmhb-accent)) 0%, var(--c1, var(--vmhb-accent)) 100%);
  box-shadow: 0 0 10px rgba(var(--vmhb-accent-rgb), 0.3);
}


/* ============================================================
   HANDBALL.NET WIDGET STYLING
   ============================================================ */

/* Container (Dark Mode Default) */
.vmhb-handballnet-widget {
  background: var(--ast-global-color-4, #212A37);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Light Mode Override */
body:not(.astra-dark-mode-enable) .vmhb-handballnet-widget,
body:not([data-theme="dark"]) .vmhb-handballnet-widget,
.vmhb-light-mode .vmhb-handballnet-widget {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Loading State */
.vmhb-handballnet-loading {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--ast-global-color-3, #666);
}

/* Spinner Animation (bereits im Shortcode inline) */
@keyframes vmhb-spin {
  to { transform: rotate(360deg); }
}

/* Hover-Effekt (optional) */
.vmhb-handballnet-widget:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

body:not(.astra-dark-mode-enable) .vmhb-handballnet-widget:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 768px) {
  .vmhb-handballnet-widget {
    padding: 1rem;
    border-radius: 8px;
  }
  
  .vmhb-handballnet-loading {
    min-height: 200px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .vmhb-handballnet-widget {
    padding: 0.75rem;
    border-radius: 6px;
  }
}

/* Widget-Inhalt (falls handball.net iframe hat) */
.vmhb-handballnet-widget iframe {
  width: 100%;
  border: none;
  min-height: 400px;
}


/* ============================================================
   Posts Slider (Startseite)
   ============================================================ */

.vmhb-posts-slider{
  margin: 0 0 2.5rem 0;
}

.vmhb-posts-slider__track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 20px;
  padding: 22px 18px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.vmhb-posts-slider__track::-webkit-scrollbar{ height: 10px; }
.vmhb-posts-slider__track::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
}

.vmhb-post-card{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--vmhb-shadow);
  scroll-snap-align: start;
  min-height: 320px;
  background: rgba(0,0,0,0.25);
}

.vmhb-post-card__link{
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.vmhb-post-card__image{
  position: absolute;
  inset: 0;
  background-image: var(--vmhb-post-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 450ms cubic-bezier(0.4,0,0.2,1);
}

.vmhb-post-card__link:hover .vmhb-post-card__image{
  transform: scale(1.06);
}

.vmhb-post-card::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.25) 55%,
    rgba(0,0,0,0.65) 100%
  );
  pointer-events:none;
}

.vmhb-post-card__glass{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,12,18,0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.vmhb-post-card__meta{
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.vmhb-post-card__title{
  font-size: 18px;
  line-height: 1.2;
  font-family: 'TeleNeoMedium', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 8px 22px rgba(0,0,0,0.55);
}

/* Desktop: eher Grid statt Slider (optional) */
@media (min-width: 900px){
  .vmhb-posts-slider__track{
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
    scroll-snap-type: none;
    padding: 22px 0 0;
  }
  .vmhb-post-card{ min-height: 360px; }
}


/* === Landing Hero (Mockup-Style) === */
.vmhb-landing-hero{width:100%;margin:0 0 28px 0;}
.vmhb-landing-hero__inner{display:grid;grid-template-columns:2.2fr 1fr;gap:18px;align-items:stretch;}
.vmhb-landing-hero__media{position:relative;min-height:420px;border-radius:12px;background-size:cover;background-position:center;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.18);}
.vmhb-landing-hero__media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,0) 100%);}
.vmhb-landing-hero__mediaOverlay{position:absolute;left:26px;bottom:22px;z-index:2;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.55);max-width:72%;}
.vmhb-landing-hero__title{margin:0;font-size:42px;line-height:1.05;font-weight:800;}
.vmhb-landing-hero__subtitle{margin:8px 0 0 0;font-size:18px;opacity:.95;font-weight:600;}

.vmhb-landing-hero__side{display:flex;flex-direction:column;gap:14px;}
.vmhb-landing-hero__card{background:rgba(255,255,255,.78);backdrop-filter:blur(10px);border-radius:12px;padding:14px;box-shadow:0 10px 24px rgba(0,0,0,.12);border:1px solid rgba(0,0,0,.06);}
.vmhb-landing-hero__cardRow{display:flex;gap:12px;align-items:center;}
.vmhb-landing-hero__logo{width:64px;height:64px;object-fit:contain;border-radius:10px;background:#fff;padding:6px;box-shadow:0 6px 14px rgba(0,0,0,.12);}
.vmhb-landing-hero__clubName{font-weight:800;font-size:18px;line-height:1.1;margin-bottom:2px;}
.vmhb-landing-hero__clubMeta{font-size:12px;opacity:.85;font-weight:700;}
.vmhb-landing-hero__clubMeta2{font-size:12px;opacity:.9;margin-top:2px;}
.vmhb-landing-hero__btn{display:flex;align-items:center;justify-content:center;margin-top:12px;height:42px;border-radius:10px;text-decoration:none;font-weight:800;color:#fff;background:#E20074;box-shadow:0 10px 18px rgba(226,0,116,.25);}
.vmhb-landing-hero__btn:hover{filter:brightness(.95);color:#fff;text-decoration:none;}
.vmhb-landing-hero__btnArrow{margin-left:10px;font-size:18px;line-height:1;}

.vmhb-landing-hero__below{text-align:center;padding:18px 10px 6px;}
.vmhb-landing-hero__belowTitle{margin:0 0 6px 0;font-size:28px;font-weight:900;}
.vmhb-landing-hero__belowText{margin:0 auto;max-width:900px;font-size:14px;opacity:.9;font-weight:600;}
.vmhb-landing-hero__chevron{margin-top:10px;font-size:22px;opacity:.55;}

@media (max-width: 980px){
  .vmhb-landing-hero__inner{grid-template-columns:1fr;}
  .vmhb-landing-hero__media{min-height:360px;}
  .vmhb-landing-hero__mediaOverlay{max-width:86%;left:18px;bottom:18px;}
  .vmhb-landing-hero__title{font-size:34px;}
}
@media (max-width: 520px){
  .vmhb-landing-hero__media{min-height:300px;border-radius:10px;}
  .vmhb-landing-hero__title{font-size:28px;}
  .vmhb-landing-hero__subtitle{font-size:14px;}
  .vmhb-landing-hero__card{padding:12px;}
  .vmhb-landing-hero__logo{width:56px;height:56px;}
}


/* === Landing Hero: Cards overlay on image === */
.vmhb-landing-hero--overlayCards .vmhb-landing-hero__media{
  min-height: var(--vmhb-hero-h, 72vh);
  border-radius:14px;
}
.vmhb-landing-hero--overlayCards .vmhb-landing-hero__media::after{
  background:linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,.35) 100%);
}
.vmhb-landing-hero__cardsOverlay{
  position:absolute;
  top:18px;
  right:18px;
  z-index:3;
  width:min(420px, 92%);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.vmhb-landing-hero__card--glass{
  background:rgba(20,24,30,.35);
  backdrop-filter: blur(14px);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
}
.vmhb-landing-hero__card--glass .vmhb-landing-hero__logo{
  background:rgba(255,255,255,.92);
}
.vmhb-landing-hero__card--glass .vmhb-landing-hero__clubMeta,
.vmhb-landing-hero__card--glass .vmhb-landing-hero__clubMeta2{
  opacity:.9;
}
.vmhb-landing-hero--overlayCards .vmhb-landing-hero__btn{
  background:linear-gradient(90deg, #E20074 0%, #C10064 100%);
}
@media (max-width: 980px){
  .vmhb-landing-hero__cardsOverlay{
    position:relative;
    top:auto; right:auto;
    width:100%;
    margin-top:14px;
    padding:0 6px 10px;
  }
  .vmhb-landing-hero--overlayCards .vmhb-landing-hero__media{
    min-height: auto;
    padding-bottom: 14px;
  }
  .vmhb-landing-hero--overlayCards .vmhb-landing-hero__media::after{
    background:linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.55) 100%);
  }
}


/* === Landing Hero: theme-colored buttons + mobile cards below image === */
.vmhb-landing-hero{ --vmhb-accent: var(--wp--preset--color--primary, var(--ast-global-color-0, #E20074)); }
.vmhb-landing-hero__stack{ position:relative; }

.vmhb-landing-hero--overlayCards .vmhb-landing-hero__media{
  min-height: var(--vmhb-hero-h, 72vh);
  border-radius:14px;
}
.vmhb-landing-hero--overlayCards .vmhb-landing-hero__media::after{
  background:linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,.35) 100%);
}

/* desktop: cards float on image */
.vmhb-landing-hero--overlayCards .vmhb-landing-hero__cardsOverlay{
  position:absolute;
  top:18px;
  right:18px;
  z-index:3;
  width:min(420px, 92%);
  display:flex;
  flex-direction:column;
  gap:14px;
  pointer-events:auto;
}

/* buttons follow theme accent */
.vmhb-landing-hero__btn{
  background: var(--vmhb-accent) !important;
  box-shadow:0 10px 18px rgba(0,0,0,.18);
}
.vmhb-landing-hero__btn:hover{ filter: brightness(.95); }

/* mobile/tablet: cards become normal flow UNDER image */
@media (max-width: 980px){
  .vmhb-landing-hero--overlayCards .vmhb-landing-hero__cardsOverlay{
    position:relative;
    top:auto; right:auto;
    width:100%;
    margin-top:14px;
    padding:0 2px 0;
  }
  .vmhb-landing-hero--overlayCards .vmhb-landing-hero__card--glass{
    background:rgba(20,24,30,.75);
  }
  .vmhb-landing-hero--overlayCards .vmhb-landing-hero__media::after{
    background:linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,.55) 100%);
  }
}


/* === Hero slide-in latest posts === */
.vmhb-hero-posts{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:4;
  pointer-events:none;
}
.vmhb-hero-posts__inner{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.vmhb-hero-post{
  pointer-events:auto;
  display:flex;
  gap:10px;
  align-items:stretch;
  text-decoration:none;
  border-radius:12px;
  overflow:hidden;
  background:rgba(20,24,30,.55);
  backdrop-filter: blur(14px);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  box-shadow:0 12px 26px rgba(0,0,0,.22);
  min-height:88px;
}
.vmhb-hero-post:hover{ filter:brightness(1.02); text-decoration:none; color:#fff; }
.vmhb-hero-post__img{
  width:110px;
  background-size:cover;
  background-position:center;
  flex:0 0 110px;
}
.vmhb-hero-post__img--empty{
  background:rgba(255,255,255,.12);
}
.vmhb-hero-post__content{
  padding:10px 12px 10px 0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
}
.vmhb-hero-post__title{
  font-weight:900;
  font-size:14px;
  line-height:1.15;
}
.vmhb-hero-post__excerpt{
  font-size:12px;
  opacity:.9;
  line-height:1.25;
}

.vmhb-hero-posts--hidden{
  transform: translateY(18px);
  opacity:0;
}
.vmhb-hero-posts--shown{
  transform: translateY(0);
  opacity:1;
  transition: transform 520ms ease, opacity 520ms ease;
}

/* responsive: stack on small */
@media (max-width: 980px){
  .vmhb-hero-posts{ position:relative; left:auto; right:auto; bottom:auto; margin-top:14px; }
  .vmhb-hero-posts__inner{ grid-template-columns: 1fr; }
  .vmhb-hero-post__img{ width:96px; flex-basis:96px; }
}


/* === Posts Hero rotation (replace hero image with latest post featured images) === */
.vmhb-landing-hero--postsHero .vmhb-landing-hero__media{
  position:relative;
  min-height: var(--vmhb-hero-h, 72vh);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.vmhb-landing-hero__mediaBg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  transform: scale(1.02);
}
.vmhb-landing-hero__mediaBg--next{
  opacity:0;
  transition: opacity 520ms ease;
}
.vmhb-landing-hero__mediaBg--fadein{
  opacity:1;
}
.vmhb-landing-hero--postsHero .vmhb-landing-hero__media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.35) 100%);
  z-index:1;
}
.vmhb-landing-hero__mediaLink{
  position:absolute; inset:0;
  z-index:2;
  text-decoration:none;
  background:transparent;
  pointer-events:none; /* wird per JS aktiviert wenn URL gesetzt */
}
.vmhb-landing-hero__mediaLink.is-active{ pointer-events:auto; }

.vmhb-landing-hero--postsHero .vmhb-landing-hero__mediaOverlay{
  position:absolute;
  left:26px;
  bottom:22px;
  z-index:3;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.55);
  max-width:72%;
}
.vmhb-landing-hero__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
  background:rgba(20,24,30,.55);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  margin-bottom:10px;
}

/* mobile adjustments */
@media (max-width: 980px){
  .vmhb-landing-hero--postsHero .vmhb-landing-hero__mediaOverlay{
    left:18px; bottom:18px;
    max-width:86%;
  }
  .vmhb-landing-hero--postsHero .vmhb-landing-hero__media::after{
    background:linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.20) 55%, rgba(0,0,0,.55) 100%);
  }
}


/* === Hero title chip (white text on red background) === */
.vmhb-landing-hero__titleChip{
  display:inline-block;
  background:#c40000;
  color:#fff;
  padding:8px 12px;
  border-radius:10px;
  box-shadow:0 10px 18px rgba(0,0,0,.22);
}
.vmhb-landing-hero__title{ margin:0; }

/* === Effects === */
.vmhb-landing-hero--postsHero.vmhb-effect-fade .vmhb-landing-hero__mediaBg--next{
  opacity:0;
  transition: opacity 520ms ease;
}
.vmhb-landing-hero--postsHero.vmhb-effect-fade .vmhb-landing-hero__mediaBg--next.vmhb-is-in{ opacity:1; }

.vmhb-landing-hero--postsHero.vmhb-effect-slide .vmhb-landing-hero__mediaBg--next{
  opacity:0;
  transform: translateX(18px) scale(1.02);
  transition: opacity 520ms ease, transform 520ms ease;
}
.vmhb-landing-hero--postsHero.vmhb-effect-slide .vmhb-landing-hero__mediaBg--next.vmhb-is-in{
  opacity:1;
  transform: translateX(0) scale(1.02);
}

.vmhb-landing-hero--postsHero.vmhb-effect-morph .vmhb-landing-hero__mediaBg--next{
  opacity:0;
  transform: scale(1.08);
  filter: blur(10px);
  transition: opacity 620ms ease, transform 620ms ease, filter 620ms ease;
}
.vmhb-landing-hero--postsHero.vmhb-effect-morph .vmhb-landing-hero__mediaBg--next.vmhb-is-in{
  opacity:1;
  transform: scale(1.02);
  filter: blur(0);
}


/* === Improved hero transitions (in+out) === */
.vmhb-landing-hero__mediaBg--current.vmhb-out{
  opacity:0;
  transition: opacity 520ms ease;
}
.vmhb-landing-hero--postsHero.vmhb-effect-slide .vmhb-landing-hero__mediaBg--current.vmhb-out{
  opacity:0;
  transform: translateX(-60px) scale(1.02);
  transition: opacity 620ms ease, transform 620ms ease;
}
.vmhb-landing-hero--postsHero.vmhb-effect-morph .vmhb-landing-hero__mediaBg--current.vmhb-out{
  opacity:0;
  transform: scale(0.98);
  filter: blur(6px);
  transition: opacity 720ms ease, transform 720ms ease, filter 720ms ease;
}

/* Make slide/morph clearly visible */
.vmhb-landing-hero--postsHero.vmhb-effect-slide .vmhb-landing-hero__mediaBg--next{
  opacity:0;
  transform: translateX(60px) scale(1.02);
  transition: opacity 620ms ease, transform 620ms ease;
}
.vmhb-landing-hero--postsHero.vmhb-effect-slide .vmhb-landing-hero__mediaBg--next.vmhb-is-in{
  opacity:1;
  transform: translateX(0) scale(1.02);
}

.vmhb-landing-hero--postsHero.vmhb-effect-morph .vmhb-landing-hero__mediaBg--next{
  opacity:0;
  transform: scale(1.16);
  filter: blur(18px);
  transition: opacity 720ms ease, transform 720ms ease, filter 720ms ease;
}
.vmhb-landing-hero--postsHero.vmhb-effect-morph .vmhb-landing-hero__mediaBg--next.vmhb-is-in{
  opacity:1;
  transform: scale(1.02);
  filter: blur(0);
}

/* Title word-by-word animation */
.vmhb-landing-hero__titleChip{
  overflow:hidden;
}
.vmhb-landing-hero__titleChip .vmhb-word{
  display:inline-block;
  opacity:0;
  transform: translateY(10px);
  animation: vmhbWordIn 520ms ease forwards;
}
@keyframes vmhbWordIn{
  to{ opacity:1; transform: translateY(0); }
}
