/* Veranstaltungen Container */
.cVeranstaltungen {
  max-width: 1200px;
  margin: 0 0;
  padding: 0px;
}

/* Haupttabelle */
.cVerTabelle {
  background: #fff;
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 30px;
}

/* Kategorie-Header */
.cVerTabelleKategorie {
  border-bottom: 1px solid #e5e7eb;
}

.cVerTabelleKategorie:last-child {
  border-bottom: none;
}

.cVerKategorieTitle {
  background: #031e4a;
  padding: 15px 20px;
  margin: 0;
}

.cVerKategorieTitle h3 {
  color: white;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Veranstaltungs-Items */
.cVerItem {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.cVerItem:last-child {
  border-bottom: none;
}

/* Hauptinfo Container */
.cVerItemMainInfo {
  display: flex;
  align-items: flex-start;
  padding: 10px 10px 10px 4px;
  gap: 20px;
  transition: all 0.3s ease;
}

.cVerItemMainInfo:hover {
  background-color: #f2f2f2;
  transform: translateY(0px);
}

/* Spalte 1 - Veranstaltungsnummer */
.cSpalte1 {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 80px;
  font-weight: 600;
  color: #031e4a;
  font-size: 0.875rem;
  /*background: #f1f5f9;*/
  border: 1px solid #f2f2f2;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
}

/* Spalte 2 - Hauptinhalt */
.cSpalte2 {
  flex: 1;
  min-width: 0;
}

/* Titel und Info Logo Container */
.cVerTitelAndInfoLogo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.cVerTitelAndInfoLogo:hover .cVerTitel {
  color: #031e4a;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Mail Icon für Abruf-Veranstaltungen */
.cMailIconAbruf {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.cMailIconAbruf:hover {
  text-decoration: none;
}

.cMailIconAbruf::after {
  content: "✉️";
  font-size: 20px;
}

.cMailIconAbruf:hover::after {
  color: #059669;
}

/* Veranstaltungstitel */
.cVerTitel {
  font-size: 1.1rem;
  font-weight: normal;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.4;
  margin: 0;
  flex: 1;
  margin-right: 15px;
}

/* Icon Container - Grundkonfiguration */
@media (min-width: 1080px) {
  .cIconVeranstaltungen {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
  }

  .cVerTitelAndInfoLogo:hover .cIconVeranstaltungen {
    background: transparent;
  }

  /* Akkordeon-Icons: CSS-generierter Pfeil */
  .cVerTitelAndInfoLogo .cIconVeranstaltungen::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.4);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease;
  }

  /* Rotation des Pfeils beim aktiven Zustand */
  .cVerTitelAndInfoLogo .cIconVeranstaltungen.rotated::after {
    transform: rotate(90deg);
  }

  .cVerTitelAndInfoLogo .cIconVeranstaltungen span {
    display: none; /* Verstecke Icon-Font für Akkordeon */
  }
}

/* Shopping-Cart-Icons: Zeige das Icon-Font span */
.cSelectIcon .cIconVeranstaltungen {
  background: transparent;
  width: auto;
  height: auto;
  display: flex;
}

.cSelectIcon .cIconVeranstaltungen::after {
  display: none; /* Verstecke CSS-Pfeil für Shopping-Cart */
}

.cSelectIcon .cIconVeranstaltungen span {
  color: white;
  font-size: 12px;
  display: block;
  transition: none;
}

/* Extra Info Liste - Akkordeon Content */
.cVerExtraInfoList {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /*background: #f8fafc;*/
  padding: 0px 20px;
  margin: 0px -20px;
}

.cVerExtraInfoList.active {
  max-height: 2000px;
  padding: 15px 20px;
}

/* Extra Info Container */
.cVerExtraInfoUndSelectIcon {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cVerExtraInfoUndSelectIcon:last-child {
  margin-bottom: 0;
}

/* Extra Info Details */
.cVerExtraInfo {
  flex: 1;
}

.cVerExtraInfo h5 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 400;
  color: #031e4a;
}

/* Extra Info Item */
.cExtraInfoItem {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Datum und Zeit */
.cDateAndTime {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

/* Ort und Straße */
.cLocationAndStreet {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Select Icon / Link */
.cSelectIcon {
  flex-shrink: 0;
  margin-left: 10px;
}

.cSelectIcon a {
  display: block;
  width: 32px;
  height: 32px;
  background: #10b981;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cSelectIcon a:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cSelectIcon .cIconVeranstaltungen {
  background: transparent;
  width: auto;
  height: auto;
  display: flex; /* Überschreibt das display: none für Shopping-Cart-Icons */
}

.cSelectIcon .cIconVeranstaltungen span {
  color: white;
  font-size: 12px;
  display: block; /* Stelle sicher, dass das span sichtbar ist */
}

/* Responsive Design */
@media (max-width: 768px) {
  .cVeranstaltungen {
    padding: 0px;
  }

  .cVerItemMainInfo {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0px;
  }

  .cSpalte1 {
    width: auto;
    align-self: flex-start;
  }

  .cVerTitel {
    font-size: 1rem;
    margin-right: 10px;
  }

  .cVerExtraInfoUndSelectIcon {
    flex-direction: column;
    gap: 15px;
  }

  .cSelectIcon {
    margin-left: 0;
    align-self: flex-end;
  }

  .cKategorieTitle {
    padding: 15px 20px;
  }

  .cKategorieTitle h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .cVeranstaltungen {
    padding: 0px;
  }

  .cVerItemMainInfo {
    padding: 12px 15px;
  }

  .cVerExtraInfoList.active {
    padding: 15px 20px;
  }

  .cVerExtraInfoUndSelectIcon {
    padding: 12px;
  }
}

/* Loading State */
.cVerItem.loading .cVerTitelAndInfoLogo {
  pointer-events: none;
  opacity: 0.6;
}

/* Smooth Animations */
* {
  box-sizing: border-box;
}

.cVerExtraInfoList {
  transform-origin: top;
}

/* Focus States für Accessibility */
.cVerTitelAndInfoLogo:focus {
  outline: none;
}

.cSelectIcon a:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}
