/* UND-banner: cleaned, only needed styles */
.und-banner-header {
  width: 100%;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: auto;
  height: auto;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: clip;
  position: relative;
  z-index: 1;
  background-color: var(--und-banner-bg, #ffad29);
  color: var(--und-banner-text, #111111);
  box-sizing: border-box;
}

.und-banner-inner {
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 1rem 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .und-banner-header {
    width: 100vw;
    max-width: 100vw;
    min-height: min(500px, 56.25vw);
  }

  .und-banner-inner {
    min-height: min(500px, 56.25vw);
    padding: 2rem 1rem 2.75rem;
  }

  .und-banner-button {
    margin-top: 1.6rem;
    margin-bottom: 1rem;
  }
}

.und-banner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.und-banner-logo-img {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.custom-container .und-banner-header .und-banner-logo-img,
.artikel-content .und-banner-header .und-banner-logo-img {
  max-height: none;
  object-fit: contain !important;
}

.und-banner-teaser {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.und-banner-title {
  font-family: "Source Sans Pro", "Source Sans Pro Adjusted", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 0.25rem;
}

.und-banner-date {
  font-family: "Source Sans Pro", "Source Sans Pro Adjusted", sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0.2rem 0;
}

.und-banner-location {
  font-family: "Source Sans Pro", "Source Sans Pro Adjusted", sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0.15rem 0 0.6rem;
}

.und-banner-extra-line {
  font-family: "Source Sans Pro", "Source Sans Pro Adjusted", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.25;
  margin: 0.15rem 0;
}

.btn-programm {
  border-radius: 6px;
  padding: 10px 20px;
  border: 2px solid var(--und-banner-btn-bg, #7f1109);
  background-color: var(--und-banner-btn-bg, #7f1109);
  color: #000;
  text-decoration: none;
  font-family: "Source Sans Pro", "Source Sans Pro Adjusted", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-programm:hover,
.btn-programm:focus {
  background-color: var(--und-banner-btn-bg-hover, #a61f17);
  border-color: var(--und-banner-btn-bg-hover, #a61f17);
  color: #fff !important;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.btn-programm:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 3px;
}

.btn-programm-block {
  margin: 0;
}

.und-banner-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .und-banner-header {
    min-height: auto;
    padding: 0.5rem 0;
  }

  .und-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 100%;
    padding: 0.85rem 0.9rem 1.25rem;
  }

  .und-banner-inner.container {
    max-width: 100%;
  }

  .und-banner-logo {
    flex: 0 0 auto;
    align-self: center;
  }

  .und-banner-logo-img {
    width: 150px;
    max-width: 38vw;
  }

  .und-banner-teaser {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    align-items: center;
    text-align: center;
  }

  .und-banner-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .und-banner-date {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.2;
  }

  .und-banner-location {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 0.35rem;
  }

  .und-banner-extra-line {
    font-size: 0.85rem;
    font-weight: 400;
  }

  .und-banner-button {
    margin-top: 0.6rem;
    margin-bottom: 0;
  }

  .btn-programm {
    padding: 8px 14px;
    font-size: 0.9rem;
    line-height: 1.2;
  }
}

@media (max-width: 576px) {
  .und-banner-inner {
    gap: 0.6rem;
    padding: 0.75rem 0.75rem 1.1rem;
  }

  .und-banner-logo-img {
    width: 130px;
    max-width: 36vw;
  }

  .und-banner-title {
    font-size: 1.15rem;
  }

  .und-banner-date,
  .und-banner-location {
    font-size: 0.8rem;
  }

  .und-banner-extra-line {
    font-size: 0.8rem;
  }

  .und-banner-button {
    margin-top: 0.5rem;
  }

  .btn-programm {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}
