/**
 * CMS Events – Single Event View
 * Layout analog zur Company-Detailseite (Hero + Bridge + People).
 *
 * CSS-Variablen werden via :root{} inline im Template gesetzt.
 *
 * @package CMS_Events
 */

/* ============================================================
   WRAPPER
   ============================================================ */
.ev-single-v2 {
  max-width: var(--max, 1140px);
  margin: 0 auto;
  border-left: 1px solid var(--post-column-border, #e2e0d8);
  border-right: 1px solid var(--post-column-border, #e2e0d8);
  background: #f8fafc;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.ev-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 2rem;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  font-size: .8rem;
}
.ev-breadcrumb a { color: var(--ev-primary, #3b82f6); text-decoration: none; font-weight: 600; }
.ev-breadcrumb a:hover { opacity: .7; }
.ev-breadcrumb__sep { color: #cbd5e1; }
.ev-breadcrumb__cur { color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }

/* ============================================================
   HERO – 250px feste Höhe, Gradient inline gesetzt
   ============================================================ */
.ev-hero-v2 {
  position: relative;
  overflow: hidden;
  height: 250px;
  min-height: 250px;
  max-height: 250px;
  border-bottom: 3px solid var(--ev-primary, #3b82f6);
}

.ev-hero-v2__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .30;
  z-index: 0;
  pointer-events: none;
}

/* Eventbild-Thumbnail: 120×120, rechts oben in Hero, 25px Abstand */
.ev-hero-v2__thumb {
  position: absolute;
  right: 25px;
  top: 25px;
  z-index: 2;
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 3px rgba(255,255,255,.5);
  flex-shrink: 0;
}
.ev-hero-v2__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ev-hero-v2__inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  height: 100%;
  box-sizing: border-box;
  /* Platz für Thumbnail rechts freilassen */
  padding-right: 170px;
  transform: translateY(-25px);
}

/* Datum-Badge */
.ev-hero-v2__datebadge {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--ev-accent, #1d4ed8), var(--ev-primary, #3b82f6));
  color: #fff;
  border-radius: 16px;
  padding: .875rem 1.125rem;
  text-align: center;
  min-width: 64px;
  box-shadow: 0 6px 20px rgba(0,0,0,.14), 0 0 0 4px rgba(255,255,255,.6);
}
.ev-hero-v2__date-day  { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; }
.ev-hero-v2__date-mon  { display: block; font-size: .73rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; margin-top: 3px; }
.ev-hero-v2__date-year { display: block; font-size: .66rem; opacity: .65; margin-top: 1px; }

/* Meta (Titel + Pills) */
.ev-hero-v2__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .6rem; }

.ev-hero-v2__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(26, 44, 126, 0.35);
  padding: .45rem .85rem;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.ev-hero-v2__pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.ev-hero-v2__pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(255,255,255,.75);
  color: #334155;
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(3px);
}
.ev-hero-v2__pill--online  { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.ev-hero-v2__pill--free    { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.ev-hero-v2__pill--speaker { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }

/* Badges oben rechts */
.ev-hero-v2__badges {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  gap: .4rem;
  z-index: 2;
}
.ev-hero-v2__badge {
  padding: .3rem .75rem;
  border-radius: 50px;
  font-size: .73rem;
  font-weight: 700;
  border: 1.5px solid transparent;
}
.ev-hero-v2__badge--featured  { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.ev-hero-v2__badge--cancelled { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

/* ============================================================
   BRIDGE CARDS (überlappen Hero)
   ============================================================ */
.ev-bridge-v2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
  padding: 0 1.5rem 1.5rem;
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

.ev-bridge-v2__about,
.ev-bridge-v2__contact {
  background: #fff;
  border-radius: 5px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  border: 1px solid #e2e8f0;
  min-height: 500px;
  box-sizing: border-box;
}

.ev-bridge-v2__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f1f5f9;
}

.ev-bridge-v2__text {
  font-size: .9rem;
  line-height: 1.75;
  color: #475569;
}
.ev-bridge-v2__text p { margin: 0 0 .75rem; }
.ev-bridge-v2__text p:last-child { margin-bottom: 0; }

/* WYSIWYG */
.ev-wysiwyg-content { line-height: 1.75; color: #334155; font-size: .95rem; }

/* Buchungs-Button */
.ev-bridge-v2__book-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: .85rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--ev-accent, #1d4ed8) 0%, var(--ev-primary, #3b82f6) 100%);
  box-shadow: 0 4px 14px rgba(59,130,246,.35);
  transition: all .2s;
  box-sizing: border-box;
}
.ev-bridge-v2__book-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(59,130,246,.45); }

/* Icon-Reihe */
.ev-bridge-v2__icon-row {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ev-bridge-v2__icon-btn {
  flex: 1;
  text-align: center;
  padding: .5rem .75rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ev-primary, #3b82f6);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  transition: background .15s;
  white-space: nowrap;
}
.ev-bridge-v2__icon-btn:hover { background: #dbeafe; }

/* Trennlinie */
.ev-bridge-v2__divider { border: none; border-top: 1px solid #f1f5f9; margin: .75rem 0 1rem; }

/* Facts-Tabelle */
.ev-bridge-v2__facts { display: flex; flex-direction: column; gap: .25rem; }
.ev-bridge-v2__fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: .375rem 0;
  border-bottom: 1px solid #f8fafc;
}
.ev-bridge-v2__fact:last-child { border-bottom: none; }
.ev-bridge-v2__fact-lbl { font-size: .72rem; font-weight: 700; color: #94a3b8; white-space: nowrap; flex-shrink: 0; }
.ev-bridge-v2__fact-val { font-size: .82rem; font-weight: 500; color: #1e293b; text-align: right; }

/* Tags */
.ev-bridge-v2__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .875rem; }
.ev-bridge-v2__tag {
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--ev-primary, #3b82f6);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

/* ============================================================
   SPEAKER SECTION – volle Breite
   ============================================================ */
.ev-people-v2 {
  padding: 1.5rem 1.5rem 2rem;
}

.ev-sec-v2 {
  background: #fff;
  border-radius: 5px;
  padding: 1.5rem;
  box-shadow: var(--ev-shadow, 0 1px 3px rgba(0,0,0,.04));
  border: 1px solid #e2e8f0;
}

.ev-sec-v2__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.ev-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--ev-primary, #3b82f6);
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .55rem;
  min-width: 22px;
}

/* Speaker-Grid: 3 Spalten */
.ev-speaker-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .ev-speaker-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .ev-speaker-grid-v2 { grid-template-columns: 1fr; } }

/* Speaker Card */
.ev-spk-row {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  padding: 1.1rem 1rem;
  border-radius: 12px;
  background: #e6f0fa;
  border: 1px solid #f1f5f9;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.ev-spk-row:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(0,0,0,.07);
}

.ev-spk-row__top { display: flex; align-items: center; gap: .75rem; }

.ev-spk-row__av {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}
.ev-spk-row__av img { width: 100%; height: 100%; object-fit: cover; }

.ev-spk-row__info { flex: 1; min-width: 0; }
.ev-spk-row__name { font-size: .9rem; font-weight: 700; color: #1e293b; }
.ev-spk-row__name a { color: inherit; text-decoration: none; }
.ev-spk-row__name a:hover { color: var(--ev-primary, #3b82f6); }
.ev-spk-row__sub  { font-size: .77rem; color: #94a3b8; margin-top: 2px; }

.ev-spk-row__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: .45rem .75rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ev-primary, #3b82f6);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  transition: background .15s;
  box-sizing: border-box;
}
.ev-spk-row__btn:hover { background: #dbeafe; }

/* ============================================================
   CLAIM BANNER
   ============================================================ */
.ev-claim-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: .75rem 2rem;
  background: #fffbeb;
  border-top: 2px solid #fde68a;
  font-size: .8rem;
  color: #92400e;
}
.ev-claim-banner__text strong { display: block; font-weight: 700; margin-bottom: .1rem; }
.ev-claim-banner__btn {
  white-space: nowrap;
  padding: .4rem 1rem;
  border-radius: 5px;
  font-size: .76rem;
  font-weight: 700;
  background: #d97706;
  color: #fff;
  text-decoration: none;
  transition: background .15s;
  flex-shrink: 0;
}
.ev-claim-banner__btn:hover { background: #b45309; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .ev-bridge-v2 {
    grid-template-columns: 1fr;
    padding: 0 1rem 1.25rem;
    margin-top: -40px;
  }
  .ev-bridge-v2__about,
  .ev-bridge-v2__contact { min-height: auto; }
  .ev-people-v2 { padding: 1rem 1rem 1.5rem; }
  .ev-hero-v2 { height: auto; min-height: auto; max-height: none; }
  .ev-hero-v2__inner { padding: 1rem 1rem 1.25rem; gap: 1rem; min-height: 200px; padding-right: 1rem; }
  .ev-hero-v2__title { font-size: 1.25rem; }
  .ev-hero-v2__thumb { width: 125px; height: 125px; right: 12px; top: 12px; }
  .ev-breadcrumb { padding: .6rem 1rem; }
  .ev-claim-banner { padding: .75rem 1rem; }
}
