/* Korfball DE V8.4.73: Terminarchiv und Termindetail.
   Eigenstaendige Styles ohne Eingriffe in Spielplan/Tabellen/News. */

/* Einheitliche, kompakte Karten im Archiv, in Kategorien und in der Suche. */
.termin-archive__grid { align-items: start; row-gap: 1.25rem; }
.termin-archive__grid > .termin-card { min-width: 0; }
@media (min-width: 992px) {
  .col-2.width50.termin-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.2rem, 2vw, 2rem);
  }
}
.termin-card {
  display: block;
  height: auto;
  align-self: start;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7e5e1;
  border-radius: 9px;
  box-shadow: 0 4px 18px rgba(0,0,0,.07);
}
.termin-card__link {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  color: #1a1a1a;
  text-decoration: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.termin-card__link:hover { color: #1a1a1a; }
.termin-card:hover {
  border-color: #d5cac8;
  box-shadow: 0 10px 26px rgba(0,0,0,.1);
}
.termin-card__link:focus-visible {
  outline: 3px solid #c11720;
  outline-offset: -3px;
  border-radius: 8px;
}
.termin-card__banner {
  display: flex;
  width: 100%;
  aspect-ratio: 2000 / 760;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f4f4f3;
}
.termin-card__banner img,
.termin-card:hover .termin-card__banner img,
.termin-card:focus-within .termin-card__banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none !important;
  transition: none !important;
}
/* Ohne Beitragsbild kompakt und bewusst ohne Ersatzgrafik. */
.termin-card--without-banner { border-top: 3px solid #ae1316; }
.termin-card--without-banner .termin-card__content { padding: clamp(1.05rem, 2vw, 1.5rem); }

.termin-card__content {
  display: flex;
  flex: 0 1 auto;
  height: auto;
  flex-direction: column;
  gap: .5rem;
  min-height: 0;
  padding: clamp(1.05rem, 2vw, 1.5rem);
  background: #fff;
}
.termin-card__date {
  display: block;
  margin: 0;
  padding: 0;
  color: #ae1316;
  font-size: .84rem;
  line-height: 1.4;
  font-weight: 700;
}
.termin-card__title {
  margin: 0;
  padding: 0 !important;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1.06rem, 1.25vw, 1.33rem);
  line-height: 1.3;
  font-weight: 700;
  color: #1b1b1b;
  overflow-wrap: anywhere;
}
.termin-card__title::after { display: none !important; }
.termin-card__location {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: #686868;
  font-size: .9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.termin-card__more {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  margin-top: .35rem;
  padding-top: .25rem;
  color: #a61519;
  font-size: .9rem;
  line-height: 1.3;
  font-weight: 700;
}
.termin-card__more span { font-size: 1.12rem; }
.termin-card__link:hover .termin-card__more,
.termin-card__link:focus-visible .termin-card__more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Einzelseite. Die News- und anderen Post-Templates bleiben unangetastet. */
.termin-single { padding: clamp(1.4rem, 3.5vw, 3.5rem) 0 4rem; }
.termin-single__container { max-width: 1450px; }
.termin-single__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: clamp(1.2rem, 2.8vw, 2rem);
  color: #777;
  font-size: .88rem;
  line-height: 1.4;
}
.termin-single__breadcrumb a { color: #a61519; font-weight: 700; }
.termin-single__breadcrumb a:hover { text-decoration: underline; }
.termin-single__breadcrumb a:focus-visible,
.termin-single__all-link:focus-visible,
.termin-single__other-list a:focus-visible {
  outline: 3px solid #b4191e;
  outline-offset: 3px;
  border-radius: 2px;
}
.termin-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
}
.termin-single__main,
.termin-single__article,
.termin-single__body { min-width: 0; }
.termin-single__hero {
  display: block;
  aspect-ratio: 2000 / 760;
  overflow: hidden;
  margin: 0 0 clamp(1.6rem, 3vw, 2.1rem);
  background: #f4f3f1;
  border-radius: 8px;
}
.termin-single__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.termin-single__eyebrow {
  margin: 0 0 .5rem;
  padding: 0;
  color: #a61519;
  font-size: .78rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.termin-single__body h1 {
  margin: 0 0 clamp(1.2rem, 2.5vw, 1.8rem);
  padding: 0;
  color: #1a1a1a;
  font-size: clamp(1.95rem, 3.1vw, 3.1rem);
  line-height: 1.24;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.termin-single__body h1::after { display: none !important; }
.termin-single__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1rem 1.5rem;
  margin: 0 0 clamp(1.6rem, 3vw, 2.2rem);
  padding: clamp(1rem, 2vw, 1.4rem);
  background: #f7f6f3;
  border-left: 4px solid #ffc104;
  border-radius: 0 7px 7px 0;
}
.termin-single__fact { min-width: 0; }
.termin-single__fact dt {
  margin: 0 0 .25rem;
  padding: 0;
  color: #666;
  font-size: .79rem;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.termin-single__fact dd {
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  font-size: .94rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.termin-single__fact time { font: inherit; color: inherit; }
.termin-single__prose { color: #363636; font-size: 1rem; line-height: 1.8; }
.termin-single__prose p { margin: 0 0 1.1rem; padding: 0; }
.termin-single__prose p:last-child { margin-bottom: 0; }
.termin-single__prose > p:first-child { font-size: 1.08rem; }
.termin-single__prose a:not(.btn):not(.btn2):not(.btn3):not(.btn4) {
  color: #a61519;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.termin-single__prose img { display: block; max-width: 100%; height: auto; }
.termin-single__legacy-content { margin-top: 1.2rem; }
.termin-single__sidebar { min-width: 0; }
.termin-single__aside-box {
  padding: clamp(1.15rem, 2vw, 1.65rem);
  background: #f7f6f3;
  border-top: 4px solid #111;
  border-radius: 7px;
}
.termin-single__aside-box h2 {
  margin: 0 0 .7rem;
  padding: 0;
  color: #222;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.2;
}
.termin-single__aside-box h2::after { display: none !important; }
.termin-single__aside-box > p {
  margin: 0;
  padding: .4rem 0 1rem;
  color: #666;
  font-size: .92rem;
}
.termin-single__other-list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.termin-single__other-list li {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #e1dfda;
}
.termin-single__other-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .5rem;
  min-height: 66px;
  padding: .9rem .15rem;
  color: #242424;
  text-decoration: none;
}
.termin-single__other-list a:hover strong,
.termin-single__other-list a:focus-visible strong { color: #ae1316; }
.termin-single__other-list time {
  grid-column: 1;
  display: block;
  margin-bottom: .18rem;
  color: #ae1316;
  font-size: .76rem;
  line-height: 1.3;
  font-weight: 700;
}
.termin-single__other-list strong {
  grid-column: 1;
  display: block;
  color: #222;
  font-size: .92rem;
  line-height: 1.38;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.termin-single__other-arrow { grid-column: 2; grid-row: 1 / span 2; color: #ae1316; }
.termin-single__all-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.1rem;
  color: #a61519;
  font-size: .92rem;
  font-weight: 700;
}
.termin-single__all-link:hover { text-decoration: underline; }
.termin-single__modules { margin-top: clamp(1.8rem, 3vw, 3rem); }
.termin-single__modules > section { max-width: 100%; }
.termin-single__modules a:focus-visible { outline: 2px solid #ae1316; outline-offset: 3px; }

@media (min-width: 1040px) {
  .termin-single__layout { grid-template-columns: minmax(0, 1fr) minmax(245px, 315px); }
  .termin-single__sidebar { position: sticky; top: 6.5rem; align-self: start; }
}
@media (max-width: 639px) {
  .termin-archive__grid { gap: 1rem; }
  .termin-card__content { min-height: 0; padding: 1rem; }
  .termin-card__title { font-size: 1.05rem; }
  .termin-single { padding-top: 1.35rem; }
  .termin-single__hero { margin-bottom: 1.4rem; border-radius: 5px; }
  .termin-single__body h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .termin-single__facts { grid-template-columns: 1fr; }
  .termin-single__aside-box { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .termin-card__link { transition: none; }
}


/* V8.4.73: True-to-brand event artwork, only for dates without real artwork.
   Retains the 2000:760 frame and avoids the former fake flag/panel. */
.termin-card--without-banner { border-top: 1px solid #e7e5e1; }
.termin-archive__grid { align-items: stretch; }
.termin-archive__grid > .termin-card {
  align-self: stretch;
  height: 100%;
}
.termin-card__link { height: 100%; }
.termin-card__content { flex: 1 1 auto; }
.termin-card__more { margin-top: auto; }

.termin-card__banner--placeholder,
.korfball-current__date-banner--placeholder {
  position: relative;
  isolation: isolate;
  background: #f6f5f2;
}
.termin-card .termin-card__banner--placeholder img,
.termin-card:hover .termin-card__banner--placeholder img,
.termin-card:focus-within .termin-card__banner--placeholder img,
.korfball-current__date-banner--placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}
.termin-card__banner--placeholder::after,
.korfball-current__date-banner--placeholder::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 34%, rgba(255,255,255,.08) 100%);
}
.termin-card__placeholder-copy,
.korfball-current__date-placeholder-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: clamp(1rem, 2.5vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: .18rem;
  transform: translateY(-50%);
  max-width: 75%;
  padding: .12rem 0 .12rem .85rem;
  border-left: 3px solid #ae1316;
  color: #181818;
  text-align: left;
  pointer-events: none;
}
.termin-card__placeholder-copy small,
.korfball-current__date-placeholder-copy small {
  display: block;
  color: #515151;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(.6rem, 1.2vw, .75rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.termin-card__placeholder-copy strong,
.korfball-current__date-placeholder-copy strong {
  display: block;
  color: #171717;
  font-family: "Kalam", cursive;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.12;
  font-weight: 700;
}
/* Smaller version in the homepage's three-column "Korfball kompakt" grid. */
.korfball-current__date-placeholder-copy {
  left: .8rem;
  padding-left: .65rem;
}
.korfball-current__date-placeholder-copy small { font-size: .58rem; }
.korfball-current__date-placeholder-copy strong { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
@media (max-width: 639px) {
  .termin-card__placeholder-copy { left: 1rem; }
  .termin-card__placeholder-copy small { font-size: .6rem; }
  .termin-card__placeholder-copy strong { font-size: 1.55rem; }
}


/* V8.4.74 — Korfball kompakt: Terminbanner bewusst als kleine Vorschaubilder.
   Andere Karten (Live, Top Scorer) und das Terminarchiv bleiben unveraendert. */
.korfball-current__card--termine .korfball-current__dates {
  display: grid;
  gap: 0;
}
.korfball-current__card--termine .korfball-current__date-item {
  display: block;
  margin: 0;
  padding: .68rem 0;
  border: 0;
  border-bottom: 1px solid #e9e7e4;
}
.korfball-current__card--termine .korfball-current__date-item:first-child { padding-top: 0; }
.korfball-current__card--termine .korfball-current__date-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.korfball-current__card--termine .korfball-current__date-link {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
  min-width: 0;
  padding: .25rem;
  margin: -.25rem;
  border-radius: 7px;
  color: #222;
  text-decoration: none;
}
.korfball-current__card--termine .korfball-current__date-link:focus-visible {
  outline: 3px solid #ae1316;
  outline-offset: 3px;
}
.korfball-current__card--termine .korfball-current__date-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2000 / 760;
  overflow: hidden;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 5px;
  background: #f5f4f1;
}
.korfball-current__card--termine .korfball-current__date-banner img,
.korfball-current__card--termine .korfball-current__date-banner--placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  transition: none !important;
}
.korfball-current__card--termine .korfball-current__date-banner--placeholder img {
  object-fit: cover;
  object-position: right 65%;
}
.korfball-current__card--termine .korfball-current__date-banner--placeholder::after {
  background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.42));
}
.korfball-current__card--termine .korfball-current__date-placeholder-copy {
  left: .5rem;
  max-width: calc(100% - 1rem);
  padding: 0 0 0 .4rem;
  border-left-width: 2px;
}
.korfball-current__card--termine .korfball-current__date-placeholder-copy small { display: none; }
.korfball-current__card--termine .korfball-current__date-placeholder-copy strong {
  font-size: .93rem;
  line-height: 1.15;
}
.korfball-current__card--termine .korfball-current__date-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .23rem;
  min-width: 0;
}
.korfball-current__card--termine .korfball-current__date-body time {
  display: block;
  color: #a91519;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
}
.korfball-current__card--termine .korfball-current__date-copy {
  display: block;
  min-width: 0;
}
.korfball-current__card--termine .korfball-current__date-copy strong {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.32;
}
.korfball-current__card--termine .korfball-current__date-copy small {
  display: -webkit-box;
  margin-top: .15rem;
  color: #707070;
  font-size: .76rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
}
.korfball-current__card--termine .korfball-current__date-link:hover .korfball-current__date-copy strong,
.korfball-current__card--termine .korfball-current__date-link:focus-visible .korfball-current__date-copy strong {
  color: #a91519;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Die vorhandenen ACF-Inhaltsmodule werden innerhalb der Termin-Hauptspalte
   ausgegeben. Auch die Option 100 % bezieht sich nur auf diese Hauptspalte. */
.termin-single__main--with-modules .termin-single__facts { margin-bottom: 1.1rem; }
.termin-single__main .termin-single__modules {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: clamp(1rem, 2vw, 1.6rem) 0 0;
  box-sizing: border-box;
}
.termin-single__main .termin-single__modules > section { max-width: 100%; box-sizing: border-box; }
.termin-single__main .termin-single__modules :is(.container-fluid, .container-max, .container-max2, .container-max3, .container-xl) {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.termin-single__main .termin-single__modules .container-fluid { width: 100%; }
.termin-single__main .termin-single__modules :is(img, iframe, video, table) { max-width: 100%; }
.termin-single__main .termin-single__modules :is(img, video) { height: auto; }
@media (max-width: 470px) {
  .korfball-current__card--termine .korfball-current__date-link {
    grid-template-columns: minmax(0, 92px) minmax(0, 1fr);
    gap: .65rem;
  }
  .korfball-current__card--termine .korfball-current__date-copy strong { font-size: .85rem; }
  .korfball-current__card--termine .korfball-current__date-placeholder-copy strong { font-size: .8rem; }
}


/* V8.4.75 – Handy: das Terminbanner steht oberhalb von Datum/Titel/Ort.
   Desktop/Tablet behalten die kompakten horizontalen Terminzeilen. */
@media (max-width: 767px) {
  .korfball-current__card--termine .korfball-current__date-item {
    padding: .85rem 0;
  }
  .korfball-current__card--termine .korfball-current__date-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .62rem;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  .korfball-current__card--termine .korfball-current__date-banner {
    display: block;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 2000 / 760;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
  }
  .korfball-current__card--termine .korfball-current__date-body {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: start;
    gap: .6rem;
    width: 100%;
    min-width: 0;
  }
  .korfball-current__card--termine .korfball-current__date-body time {
    margin-top: .08rem;
    white-space: nowrap;
  }
  .korfball-current__card--termine .korfball-current__date-copy strong {
    font-size: .95rem;
  }
  .korfball-current__card--termine .korfball-current__date-placeholder-copy {
    left: .9rem;
    padding-left: .7rem;
    border-left-width: 3px;
  }
  .korfball-current__card--termine .korfball-current__date-placeholder-copy small {
    display: block;
    font-size: .6rem;
  }
  .korfball-current__card--termine .korfball-current__date-placeholder-copy strong {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
}
