/* Aktuelles: kompakte Veranstaltungskarten und Kategorie-Farben. */
.hk-aktuelles .hk-filter.hk-filter-events.is-active .vc_btn3,
.hk-aktuelles .hk-filter.hk-filter-events .vc_btn3:hover,
.hk-aktuelles .hk-filter.hk-filter-events .vc_btn3:focus-visible {
  background: #D4A72C !important;
  border-color: #D4A72C !important;
  color: #123B32 !important;
}

.hk-aktuelles .hk-filter.hk-filter-news.is-active .vc_btn3,
.hk-aktuelles .hk-filter.hk-filter-news .vc_btn3:hover,
.hk-aktuelles .hk-filter.hk-filter-news .vc_btn3:focus-visible {
  background: #186F40 !important;
  border-color: #186F40 !important;
  color: #fff !important;
}

.hk-aktuelles .hk-filter.hk-filter-recaps.is-active .vc_btn3,
.hk-aktuelles .hk-filter.hk-filter-recaps .vc_btn3:hover,
.hk-aktuelles .hk-filter.hk-filter-recaps .vc_btn3:focus-visible {
  background: #123B32 !important;
  border-color: #123B32 !important;
  color: #fff !important;
}

.hk-news-shell .hk-item .hk-type,
.hk-event-calendar-card .hk-big-event-type {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  width: auto !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.hk-news-shell .hk-item.hk-cat-events .hk-type,
.hk-event-calendar-card .hk-big-event-type {
  background: #D4A72C !important;
  color: #123B32 !important;
}

.hk-news-shell .hk-item.hk-cat-news .hk-type {
  background: #186F40 !important;
  color: #fff !important;
}

.hk-news-shell .hk-item.hk-cat-recaps .hk-type {
  background: #123B32 !important;
  color: #fff !important;
}

.hk-news-shell .hk-item.hk-cat-news > .vc_column-inner > .wpb_wrapper {
  border-top-color: #186F40 !important;
}

.hk-news-shell .hk-item.hk-cat-recaps > .vc_column-inner > .wpb_wrapper {
  border-top-color: #123B32 !important;
}

/* Natuerlich gerundeter Kartenkopf – exakt nach dem Prinzip der
   Veranstaltungskarten. Der echte obere Rahmen folgt der Rundung weich. */
#aktuelles.hk-news-shell .hk-news-items > .hk-item.hk-cat-news:not(.hk-cat-events) > .vc_column-inner > .wpb_wrapper,
#aktuelles.hk-news-shell .hk-news-items > .hk-item.hk-cat-recaps:not(.hk-cat-events) > .vc_column-inner > .wpb_wrapper {
  position: relative !important;
  padding: 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: #fff !important;
}

#aktuelles.hk-news-shell .hk-news-items > .hk-item.hk-cat-news:not(.hk-cat-events) > .vc_column-inner > .wpb_wrapper {
  border-top: 5px solid #186F40 !important;
}

#aktuelles.hk-news-shell .hk-news-items > .hk-item.hk-cat-recaps:not(.hk-cat-events) > .vc_column-inner > .wpb_wrapper {
  border-top: 5px solid #123B32 !important;
}

/* Alte angesetzte Eckelemente deaktivieren: Der Rahmen selbst erzeugt
   jetzt den sauberen, durchgehenden Umlauf an beiden oberen Ecken. */
#aktuelles.hk-news-shell .hk-news-items > .hk-item.hk-cat-news:not(.hk-cat-events) > .vc_column-inner > .wpb_wrapper::before,
#aktuelles.hk-news-shell .hk-news-items > .hk-item.hk-cat-news:not(.hk-cat-events) > .vc_column-inner > .wpb_wrapper::after,
#aktuelles.hk-news-shell .hk-news-items > .hk-item.hk-cat-recaps:not(.hk-cat-events) > .vc_column-inner > .wpb_wrapper::before,
#aktuelles.hk-news-shell .hk-news-items > .hk-item.hk-cat-recaps:not(.hk-cat-events) > .vc_column-inner > .wpb_wrapper::after {
  content: none !important;
  display: none !important;
}

.hk-news-shell .hk-item.hk-cat-news .hk-story-copy,
.hk-news-shell .hk-item.hk-cat-recaps .hk-story-copy,
.hk-news-shell .hk-item.hk-cat-news > .vc_column-inner > .wpb_wrapper > .vc_btn3-container,
.hk-news-shell .hk-item.hk-cat-recaps > .vc_column-inner > .wpb_wrapper > .vc_btn3-container {
  background: #fff !important;
}

/* Kategorie als gut sichtbarer Indikator oben links auf dem Bild. */
.hk-news-shell .hk-item.hk-cat-news .hk-story-copy .hk-type,
.hk-news-shell .hk-item.hk-cat-recaps .hk-story-copy .hk-type {
  display: inline-flex !important;
  position: absolute !important;
  z-index: 7 !important;
  top: 16px !important;
  left: 16px !important;
  margin: 0 !important;
  box-shadow: 0 7px 18px rgba(18, 59, 50, .18) !important;
}

.hk-news-shell .hk-item.hk-cat-news .hk-story-copy,
.hk-news-shell .hk-item.hk-cat-recaps .hk-story-copy {
  position: static !important;
}

.hk-news-items > .hk-item.hk-cat-news .hk-card-image img,
.hk-news-items > .hk-item.hk-cat-recaps .hk-card-image img {
  cursor: zoom-in;
  transition: transform .24s ease, filter .24s ease;
}

.hk-news-items > .hk-item.hk-cat-news .hk-card-image:hover img,
.hk-news-items > .hk-item.hk-cat-recaps .hk-card-image:hover img {
  transform: scale(1.015);
}

/* Neuigkeiten und Rueckblicke: bis zwei Eintraege zweispaltig, ab drei
   sichtbaren Eintraegen automatisch drei Karten pro Reihe. */
@media (min-width: 1001px) {
  #aktuelles.hk-news-shell .hk-news-items > .hk-item:not(.hk-cat-events):not(.hk-hidden) {
    width: 100% !important;
  }

  #aktuelles.hk-news-shell .hk-news-items:has(
    > .hk-item:not(.hk-cat-events):not(.hk-hidden)
    ~ .hk-item:not(.hk-cat-events):not(.hk-hidden)
    ~ .hk-item:not(.hk-cat-events):not(.hk-hidden)
  ) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 901px) {
  .hk-event-calendar-card {
    grid-template-columns: 96px 286px minmax(0, 1fr) !important;
    width: calc(100% - 100px) !important;
    max-width: 1040px !important;
    min-height: 0 !important;
    margin: 0 auto 22px !important;
  }

  .hk-event-calendar-card .hk-big-date,
  .hk-event-calendar-card .hk-big-event-media,
  .hk-event-calendar-card .hk-big-event-copy {
    min-height: 310px !important;
    height: auto !important;
  }

  .hk-event-calendar-card .hk-big-date {
    padding: 16px 9px !important;
  }

  .hk-event-calendar-card .hk-big-event-media {
    padding: 14px !important;
  }

  .hk-event-calendar-card .hk-big-event-media img {
    width: 100% !important;
    height: 282px !important;
    min-height: 0 !important;
    max-height: 282px !important;
    object-fit: contain !important;
  }

  .hk-event-calendar-card .hk-big-event-copy {
    padding: 23px 50px 21px 24px !important;
    line-height: 1.45 !important;
  }

  .hk-event-calendar-card .hk-big-event-copy h3 {
    font-size: 27px !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
  }

  .hk-event-calendar-card .hk-big-event-copy p {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
  }

  .hk-event-calendar-card .hk-registration {
    padding: 10px 13px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .hk-event-calendar-card {
    grid-template-columns: 88px 240px minmax(0, 1fr) !important;
    margin-bottom: 20px !important;
  }

  .hk-event-calendar-card .hk-big-event-copy {
    padding: 22px !important;
  }

  .hk-event-calendar-card .hk-big-event-copy h3 {
    font-size: 25px !important;
  }

  .hk-event-calendar-card .hk-big-event-copy p {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
}

/* Veranstaltungsexport: Google direkt, Apple/Outlook über eine universelle ICS-Datei. */
.hk-event-calendar-card .hk-big-event-media {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background: transparent !important;
}

.hk-event-calendar-card .hk-big-event-media img {
  display: block !important;
  width: calc(100% - 24px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  background: transparent !important;
  border-radius: 18px !important;
}

.hk-calendar-save {
  align-self: flex-start;
  margin-top: 12px;
  color: #123B32;
}

/* Auf groesseren Ansichten stehen Anmeldung und Kalender kompakt in einer Zeile.
   Mobil bleibt die bewaehrte, gut antippbare Stapelung erhalten. */
@media (min-width: 681px) {
  .hk-event-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
  }

  .hk-event-actions > .hk-event-register,
  .hk-event-actions > .hk-calendar-save { margin: 0 !important; }
}

.hk-calendar-save summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 10px 17px;
  border: 1px solid rgba(24, 111, 64, .28);
  border-radius: 999px;
  background: #fff;
  color: #186F40;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.hk-calendar-save summary::-webkit-details-marker { display: none; }
.hk-calendar-save summary::before { content: "\1F4C5"; margin-right: 8px; font-size: 15px; line-height: 1; }
.hk-calendar-save summary:hover,
.hk-calendar-save summary:focus-visible,
.hk-calendar-save[open] summary {
  background: #D4A72C;
  color: #123B32;
  border-color: #D4A72C;
  transform: translateY(-1px);
}

.hk-calendar-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
  padding: 10px;
  border-radius: 15px;
  background: #f5f7f5;
  box-shadow: 0 8px 20px rgba(18, 59, 50, .09);
}

.hk-calendar-choices a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #186F40;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 800;
  transition: background-color .2s ease, color .2s ease;
}

.hk-calendar-choices a:hover,
.hk-calendar-choices a:focus-visible { background: #D4A72C; color: #123B32 !important; }

@media (max-width: 680px) {
  .hk-event-actions { display: contents; }
  .hk-calendar-save { width: 100%; }
  .hk-calendar-save summary { width: 100%; }
  .hk-calendar-choices { display: grid; grid-template-columns: 1fr; }
  .hk-calendar-choices a { width: 100%; }
}
