/* =========================================
   VATERHAUS – SINGLE EVENT (Termine)
   Ausgelagert aus legacy.css (B1).
   Selektoren & Werte 1:1, nur Literale auf Tokens.
   ========================================= */

/* Gesamter Inhaltsbereich */
body.single-event .post-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Zweispaltiges Layout */
body.single-event .vsel-content {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.5fr);
  gap: 65px;
  align-items: start;
  margin: 0;
}

/* Plugin-Floats und Inline-Breiten überschreiben */
body.single-event .vsel-content > .vsel-meta,
body.single-event .vsel-content > .vsel-info {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Linke Infokarte */
body.single-event .vsel-meta {
  background: #faf8f3;
  border: 1px solid rgba(185, 135, 62, 0.22);
  border-radius: 14px;
  padding: 34px !important;
  box-shadow: 0 12px 35px rgba(24, 50, 39, 0.04);
}

/* Überschrift über den Eventdaten */
body.single-event .vsel-meta::before {
  content: "AUF EINEN BLICK";
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #b9873e;
  margin-bottom: 25px;
}

/* Einzelne Metadaten */
body.single-event .vsel-meta-date,
body.single-event .vsel-meta-time,
body.single-event .vsel-meta-location {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #b9873e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.5;
  margin: 0 0 24px !important;
  padding: 0 0 22px;
  border-bottom: 1px solid #e8e1d6;
}

/* Werte: Datum, Uhrzeit, Ort */
body.single-event .vsel-meta-date span,
body.single-event .vsel-meta-time span,
body.single-event .vsel-meta-location span {
  display: block;
  color: var(--vh-color-forest);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

/* Letzter Eintrag ohne Trennlinie */
body.single-event .vsel-meta-location {
  border-bottom: none;
  margin-bottom: 0 !important;
  padding-bottom: 0;
}

/* Rechte Beschreibung */
body.single-event .vsel-info {
  padding-top: 5px !important;
}

/* Kleine Einleitung */
body.single-event .vsel-info::before {
  content: "DU BIST HERZLICH EINGELADEN";
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #b9873e;
  margin-bottom: 22px;
}

/* Beschreibung */
body.single-event .vsel-text {
  color: #344b41;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.9;
}

body.single-event .vsel-text p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 20px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 850px) {
  body.single-event .vsel-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  body.single-event .vsel-meta {
    padding: 26px !important;
  }

  body.single-event .vsel-text {
    font-size: 16px;
    line-height: 1.8;
  }
}

/* ========================================
   SINGLE EVENT – FEINSCHLIFF
   ======================================== */

/* Infokarte mit korrekten Innenabständen */
body.single-event .vsel-content .vsel-meta {
  box-sizing: border-box !important;
  padding: 32px 36px !important;
  border-radius: 14px !important;
  overflow: hidden;
}

/* Überschrift innerhalb der Infokarte */
body.single-event .vsel-meta::before {
  margin: 0 0 30px !important;
  padding: 0 !important;
  line-height: 1.4;
}

/* Metadaten sauber einrücken */
body.single-event .vsel-meta-date,
body.single-event .vsel-meta-time,
body.single-event .vsel-meta-location {
  box-sizing: border-box !important;
  margin: 0 0 22px !important;
  padding: 0 0 22px !important;
  border-bottom: 1px solid #e8e1d6 !important;
  line-height: 1.5 !important;
}

/* Letzter Eintrag */
body.single-event .vsel-meta-location {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Werte */
body.single-event .vsel-meta-date span,
body.single-event .vsel-meta-time span,
body.single-event .vsel-meta-location span {
  margin-top: 6px;
  font-size: 17px !important;
  font-weight: 500 !important;
  color: var(--vh-color-forest) !important;
}

/* Doppelte Einleitung entfernen */
body.single-event .vsel-info::before {
  display: none !important;
}

/* Beschreibung dezenter */
body.single-event .vsel-text,
body.single-event .vsel-text p {
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  color: #40544b !important;
}

/* Vertikaler Abstand zur Überschrift */
body.single-event .vsel-content {
  margin-top: 10px !important;
}

/* Mobile */
@media (max-width: 767px) {
  body.single-event .vsel-content .vsel-meta {
    padding: 26px 24px !important;
  }

  body.single-event .vsel-text,
  body.single-event .vsel-text p {
    font-size: 16px !important;
  }
}

/* ==========================================
   VATERHAUS – SINGLE EVENT DETAIL
   ========================================== */

body.single-event {
  --event-green: var(--vh-color-forest);
  --event-gold: #bd8e42;
  --event-line: rgba(189, 142, 66, 0.55);
}

/* Hauptlayout */
body.single-event .vsel-content {
  display: grid !important;
  grid-template-columns: 32% minmax(0, 1fr);
  column-gap: 65px;
  align-items: start;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* Plugin-Spalten zurücksetzen */
body.single-event .vsel-content > .vsel-meta,
body.single-event .vsel-content > .vsel-info {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
}

/* ==========================================
   LINKE SEITE – DATUM
   ========================================== */

body.single-event .vsel-meta {
  background: transparent !important;
  border: none !important;
  border-right: 1px solid var(--event-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 45px 0 0 !important;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alte Infokarten-Überschrift entfernen */
body.single-event .vsel-meta::before {
  content: none !important;
  display: none !important;
}

/* Datum */
body.single-event .vsel-meta-date {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  color: var(--event-green) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 85px !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
}

/* Vorhandenes Datumslabel verstecken */
body.single-event .vsel-meta-date > strong {
  display: none !important;
}

/* Datumwert */
body.single-event .vsel-meta-date span {
  display: block !important;
  color: var(--event-green) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 85px !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

/* Uhrzeit und Ort werden rechts platziert */
body.single-event .vsel-meta-time,
body.single-event .vsel-meta-location {
  display: none !important;
}

/* ==========================================
   RECHTE SEITE – INFOS + BESCHREIBUNG
   ========================================== */

body.single-event .vsel-info {
  padding: 0 !important;
  background: transparent !important;
}

/* Keine doppelte Einleitung */
body.single-event .vsel-info::before {
  content: none !important;
  display: none !important;
}

/* Beschreibung */
body.single-event .vsel-text,
body.single-event .vsel-text p {
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: #40554c !important;
  margin-top: 0 !important;
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 767px) {
  body.single-event .vsel-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body.single-event .vsel-meta {
    border-right: none !important;
    border-bottom: 1px solid var(--event-line) !important;
    padding: 0 0 25px !important;
    min-height: auto;
  }

  body.single-event .vsel-meta-date,
  body.single-event .vsel-meta-date span {
    font-size: 65px !important;
  }

  body.single-event .vsel-text,
  body.single-event .vsel-text p {
    font-size: 16px !important;
  }
}

/* VS Event Recurrence – Single Event Design */

/* Weißer Hintergrund für den Eventbereich */
body.single-event .vh-event-single,
body.single-event .vh-event-layout,
body.single-event .vsel-content {
    background: #ffffff !important;
}

/* Gesamten Eventbereich auf Weiß setzen */
body.single-event .fusion-content-tb,
body.single-event #main {
    background-color: #ffffff !important;
}

/* Standard-Schriftfarbe */
body.single-event .vh-event-single,
body.single-event .vh-event-layout,
body.single-event .vh-event-meta,
body.single-event .vh-event-info {
    color: var(--vh-color-forest) !important;
}

/* Überschriften und Datumsanzeige */
body.single-event .vh-event-single h1,
body.single-event .vh-event-single h2,
body.single-event .vh-event-single h3,
body.single-event .vh-event-layout h1,
body.single-event .vh-event-layout h2,
body.single-event .vh-event-layout h3 {
    color: var(--vh-color-forest) !important;
}

/* Beschreibung */
body.single-event .vh-event-info p,
body.single-event .vh-event-info .vsel-text {
    color: #40564d !important;
}

/* Goldene Akzente beibehalten */
body.single-event .vh-event-single .vh-event-eyebrow,
body.single-event .vh-event-single .vh-event-month-accent {
    color: var(--event-gold) !important;
}

/* Zurück-Button */
body.single-event .vh-event-single a {
    color: var(--vh-color-forest);
}

body.single-event .vh-event-single a:hover {
    color: var(--event-gold);
}

.vh-heart-icon {
    display: block !important;
    width: fit-content !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: -80px;
}
.vh-heart-icon img {
    width: 600px;
}

/* ==========================================
   TERMINE – LISTENANSICHT (/termine/)
   Ziel-Design: qa_events_final.png – 2-spaltiges Karten-Grid,
   Datum-Box links, Serif-Titel, Zeit/Ort, Pfeil im Kreis rechts.
   Nur auf der Termine-Seite (page-id-3751).
   ========================================== */

/* Raster: 2 Spalten */
body.page-id-3751 #vsel.vsel-shortcode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Karte */
body.page-id-3751 #vsel .vsel-content {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(196, 154, 85, 0.28);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  box-sizing: border-box;
}

/* Plugin-Inline-Breiten & Floats neutralisieren */
body.page-id-3751 #vsel .vsel-meta,
body.page-id-3751 #vsel .vsel-info {
  float: none !important;
  width: auto !important;
}

/* Meta als Karten-Inhalt mit fester Datum-Box links */
body.page-id-3751 #vsel .vsel-meta {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-column-gap: 28px;
  min-height: 175px;
  margin: 0;
  padding: 0 56px 0 0;
  box-sizing: border-box;
}

/* Beschreibung im Listen-Element ausblenden (wie Referenz) */
body.page-id-3751 #vsel .vsel-info {
  display: none !important;
}

/* Datum-Box links */
body.page-id-3751 #vsel .vsel-meta-date {
  grid-column: 1;
  grid-row: 1 / -1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  margin: 0;
  padding: 18px 10px;
  /* Vertikaler Verlauf (deutlich sichtbar): heller oben, abgedunkeltes Oliv unten */
  background:
    linear-gradient(
      180deg,
      #ccd2ca 0%,
      #9aa39b 50%,
      #6d7a70 100%
    );
  font-size: 0;
  text-align: center;
}

/* Datum-Link & „Datum:“-Label deaktivieren (Vor-JS-Fallback) */
body.page-id-3751 #vsel .vsel-meta-date a {
  display: block;
  text-decoration: none;
  color: #fff;
}

/* Datum: Tag groß (Serif) + Monat klein (von startseite-events.js injiziert) */
body.page-id-3751 #vsel .vsel-meta-date .event-day {
  display: block;
  color: #fff;
  font-family: var(--vh-font-display);
  font-size: 52px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -1px;
}

body.page-id-3751 #vsel .vsel-meta-date .event-month {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-family: var(--vh-font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Titel */
body.page-id-3751 #vsel .vsel-meta-title {
  grid-column: 2;
  grid-row: 2;
  align-self: end;

  margin: 0 0 12px;
  color: var(--vh-color-forest) !important;
  font-family: var(--vh-font-display) !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
}

body.page-id-3751 #vsel .vsel-meta-title a {
  color: inherit !important;
  text-decoration: none !important;
}

/* Zeit + Ort */
body.page-id-3751 #vsel .vsel-meta-time,
body.page-id-3751 #vsel .vsel-meta-location {
  grid-column: 2;
  color: #68756e;
  font-family: var(--vh-font-ui);
  font-size: 13px;
  line-height: 1.5;
}

body.page-id-3751 #vsel .vsel-meta-time {
  grid-row: 3;
  margin: 0 0 7px;
}

body.page-id-3751 #vsel .vsel-meta-location {
  grid-row: 4;
  align-self: start;
  margin: 0;
}

body.page-id-3751 #vsel .vsel-meta-time span,
body.page-id-3751 #vsel .vsel-meta-location span {
  color: inherit;
}

/* Dekorativer Pfeil im Kreis (rechts) */
body.page-id-3751 #vsel .vsel-content::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1.5px solid var(--vh-color-gold-pale);
  border-radius: 50%;
  background: transparent;
  color: var(--vh-color-gold-pale);

  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;

  pointer-events: none;
}

/* --- Klickbare Karte: Hand-Cursor + Hover-Bewegung --- */
body.page-id-3751 #vsel .vsel-content.event-card-clickable {
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

body.page-id-3751 #vsel .vsel-content.event-card-clickable:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(30, 55, 43, 0.18);
  border-color: rgba(196, 154, 85, 0.6);
}

body.page-id-3751 #vsel .vsel-content.event-card-clickable:focus-visible {
  outline: 2px solid var(--vh-color-gold-pale);
  outline-offset: 3px;
}

/* Pfeil-Kreis bei Hover füllen (wie Startseite) */
body.page-id-3751 #vsel .vsel-content.event-card-clickable:hover::after {
  background: var(--vh-color-gold-pale);
  color: #fff;
}

/* Responsive */
/* Listen-Grid: erst unter 767px 1-spaltig; im Tablet-Bereich (768–1024)
   2 Spalten, damit die Karten auf dem Tablet nicht unnötig in die Breite
   gezogen werden (gestreckte, symmetriebrechende Einzelspalten). */
@media (max-width: 767px) {
  body.page-id-3751 #vsel.vsel-shortcode {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Tablet (768–1024): Karten-Innenteile kompakter für die engere 2-Spalten-Zelle.
   Datumsbox schmaler, Titel + Meta etwas runterskaliert, Pfeilkreis näher. */
@media (min-width: 768px) and (max-width: 1024px) {
  body.page-id-3751 #vsel .vsel-meta {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-column-gap: 18px;
    padding-right: 54px;
  }

  body.page-id-3751 #vsel .vsel-meta-date .event-day {
    font-size: 42px;
    letter-spacing: 0;
  }

  body.page-id-3751 #vsel .vsel-meta-date .event-month {
    font-size: 12px;
    letter-spacing: 2px;
  }

  body.page-id-3751 #vsel .vsel-meta-title {
    font-size: 21px !important;
  }

  body.page-id-3751 #vsel .vsel-meta-time,
  body.page-id-3751 #vsel .vsel-meta-location {
    font-size: 12px;
  }

  body.page-id-3751 #vsel .vsel-content::after {
    right: 14px;
  }
}

@media (max-width: 600px) {
  body.page-id-3751 #vsel .vsel-meta {
    grid-template-columns: 95px minmax(0, 1fr);
    min-height: 140px;
    grid-column-gap: 14px;
    padding-right: 16px;
  }

  body.page-id-3751 #vsel .vsel-meta-date .event-day {
    font-size: 40px;
  }

  body.page-id-3751 #vsel .vsel-meta-title {
    font-size: 22px !important;
  }

  body.page-id-3751 #vsel .vsel-content::after {
    display: none;
  }
}
