/* ============================================ */
/* STYLES.CSS                                  */
/* Zusammengeführt aus customer.css +           */
/* uebernahme.css (Duplikate entfernt)          */
/* ============================================ */
/* Basis-Styling mit CSS-Variablen.             */
/* Alle Variablen koennen im CP ueberschrieben  */
/* werden unter:                                */
/*   Globals > Stylesheet des Kunden            */
/* ============================================ */

:root {

  /* ---- Farben ---- */
  --color-accent: rgba(145, 29, 125, 1);
  --color-accent-light: rgba(145, 29, 125, 0.9);
  --color-accent-dark: rgba(95, 30, 110, 0.9);
  --color-brand: #009ddf;
  --color-brand-dark: #43b3e2;
  --color-brand-accent: #009ddf;
  --color-link: #009ddf;
  --color-body-bg: #f1f5f9;
  --color-menu-bg: #e0f2ff;
  --color-body-text: #1e293b;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-grey-100: #e7eced;
  --color-bg-slate-100: #f1f5f9;
  --color-menu-hover: rgba(0,0,0,0.05);
  --color-rasteroverlay: rgba(0,0,0,0.12);
  --size-rasteroverlay: 4px;
  --max-width: 1200px;

  /* ---- Schriften ---- */
  --font-base: 'Overpass', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-base);

  /* ---- Schriftgroessen ---- */
  --font-size-base: 17px;
  --font-size-h1: 1.5rem;
  --font-size-h1-md: 1.5rem;
  --font-size-h1-lg: 1.75rem;
  --font-size-h1-xl: 2.5rem;
  --font-size-h2: 1.25rem;
  --font-size-h2-md: 1.25rem;
  --font-size-h2-lg: 1.5rem;
  --font-size-h2-xl: 1.75rem;
  --font-size-h3: 1.2rem;
  --font-size-body: 1rem;
  --font-weight-h1: 500;
  --font-weight-h2: 500;
  --font-weight-h3: 500;
  --line-height-body: 1.5;

  /* ---- Abgerundete Ecken ---- */
  --radius-sm: 0.25rem;
  --radius-base: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ---- Schatten ---- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-base: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);

  /* ---- Navigation ---- */
  --nav-bg: rgba(255,255,255,0.95);
  --nav-text: #374151;
  --nav-text-hover: #111827;
  --nav-text-active: #111827;
  --nav-shadow: 0 4px 6px rgba(0,0,0,0.07);

  /* ---- Formular ---- */
  --form-bg: #f0f0f0;
  --form-border: #e0e0e0;
  --form-text: #000000;
  --form-button-color: #ffffff;
  --form-button-bg: var(--form-text);
  --form-button-bg-hover: var(--form-text);
  --form-button-color-hover: #ffffff;
  --form-button-border: #e0e0e0;
  --form-button-border-hover: #e0e0e0;
  --form-button-radius: var(--radius-base);
  --form-field-bg: #ffffff;
  --form-field-border: #e0e0e0;
  --form-field-text: #000000;
  --form-label-color: #000000;
  --form-label-weight: bold;
  --form-label-size: 1rem;
  --form-label-mb: 0.5rem;
  --form-label-mt: 0;
  --form-label-display: block;

  /* ---- Such-Hervorhebung ---- */
  --search-highlight-bg: #fef08a;
  --search-highlight-weight: 700;
}

/* ============================================ */
/* Webfonts                                     */
/* ============================================ */

/* overpass-300 - latin */
@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/font/overpass/overpass-v11-latin-300.woff2') format('woff2'),
         url('/font/overpass/overpass-v11-latin-300.woff') format('woff');
}

/* overpass-regular - latin */
@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/font/overpass/overpass-v11-latin-regular.woff2') format('woff2'),
         url('/font/overpass/overpass-v11-latin-regular.woff') format('woff');
}

/* overpass-500 - latin */
@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/font/overpass/overpass-v11-latin-500.woff2') format('woff2'),
         url('/font/overpass/overpass-v11-latin-500.woff') format('woff');
}

/* overpass-600 - latin */
@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/font/overpass/overpass-v11-latin-600.woff2') format('woff2'),
         url('/font/overpass/overpass-v11-latin-600.woff') format('woff');
}

/* overpass-700 - latin */
@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/font/overpass/overpass-v11-latin-700.woff2') format('woff2'),
         url('/font/overpass/overpass-v11-latin-700.woff') format('woff');
}

/* ============================================ */
/* Hilfklassen                                  */
/* ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================ */
/* Basis-Styles                                 */
/* ============================================ */

html {
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-base);
  hyphens: auto;
}

body a {
  color: var(--color-link);
  text-decoration: none;
}

body a:hover {
  text-decoration: underline;
}

.blue-box{
  padding: 1.75rem;
  background-color: var(--color-slate-100)
}

/* Dunkle Hintergruende: .text-white setzt weisse Schrift fuer Lesbarkeit */
.text-white .bard-content,
.text-white .bard-content p,
.text-white .bard-content a,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5 {
  color: white !important;
}

body .no-auto-hyphens {
  hyphens: manual;
}

/* ============================================ */
/* Typografie                                   */
/* ============================================ */

body h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-h1);
}

body h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h2);
}

body h3,
body h4,
body h5 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-h3);
}

.bard-content p {
  line-height: var(--line-height-body);
}

body .bard-content h3 + p,
body .bard-content h4 + p,
body .bard-content h5 + p {
  margin-top: -0.75rem;
}

@media (min-width: 768px) {
  body h1,
  body h2 {
    font-size: var(--font-size-h1-md);
  }
  body h1 + h2 {
    font-size: var(--font-size-h2-md);
    line-height: 1;
  }
  body h1:not(:last-child) {
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  body h1,
  body h2 {
    font-size: var(--font-size-h1-lg);
  }
  body h1 + h2 {
    font-size: var(--font-size-h2-lg);
  }
}

@media (min-width: 1280px) {
  body h1,
  body h2 {
    font-size: var(--font-size-h1-xl);
  }

  body h1 + h2 {
    font-size: var(--font-size-h2-xl);
  }
}

/* ============================================ */
/* Bard Content                                 */
/* ============================================ */

.bard-content ol:not(.list-none) {
  list-style: decimal;
  margin-left: 1.5rem;
}

.bard-content ul:not(.list-none) {
  list-style: disc;
  margin-left: 1.5rem;
}

/* ============================================ */
/* Download-Links                               */
/* ============================================ */

a[href*="/assets/dateien/"]::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.3em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ============================================ */
/* Navigation                                   */
/* ============================================ */

.main-navigation {
  background-color: var(--nav-bg);
  box-shadow: var(--nav-shadow);
}

/* ============================================ */
/* Slider                                       */
/* ============================================ */

.slide .prose {
  border-radius: var(--radius-base);
  padding: 2rem;
  width: 100%;
}

.slide .prose a {
  color: white;
  background-color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-base);
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
  cursor: pointer;
}

.slide .prose a:hover {
  opacity: 0.8;
}

.slide .text-shadow-md {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide h1,
.slide h2,
.slide h3 {
  color: white;
}

.slide .slidebox {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: self-start;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.slide.vp_pos_center .slidebox {
  justify-content: center;
}
.slide.vp_pos_top .slidebox {
  justify-content: start;
}
.slide.vp_pos_bottom .slidebox {
  justify-content: end;
}

.slide.hp_pos_center .slidebox {
  align-items: center;
}
.slide.hp_pos_left .slidebox {
  align-items: start;
}
.slide.hp_pos_right .slidebox {
  align-items: end;
}

.slide-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, transparent 100%);
  pointer-events: none;
}

.sliderheadline{
  color: white;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  text-transform: uppercase;
}

/* ============================================ */
/* Newsliste                                    */
/* ============================================ */

.news-liste{
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.news-title-link{
  color: black;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.news-liste a:hover,
.news-liste a:hover .news-teaser-text,
.news-liste a:hover .news-title-link{
  color: var(--color-brand);
  text-decoration: none;
}

.news-teaser-text{
  color: black;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.news-liste-item{
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.news-liste-item:last-child{
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ============================================ */
/* Akkordeon                                    */
/* ============================================ */

.accordion-header {
  background-image: linear-gradient(to left, var(--color-accent-light), var(--color-accent-dark));
  color: white;
  border-radius: var(--radius-base);
}

details.accordion-item summary {
  list-style: none;
}

details.accordion-item summary::-webkit-details-marker {
  display: none;
}

details.accordion-item summary .accordion-icon {
  transition: transform 0.3s ease-in-out !important;
  display: inline-block !important;
  user-select: none;
}

details.accordion-item[open] summary .accordion-icon {
  transform: rotate(180deg) !important;
}

/* ============================================ */
/* Formular                                     */
/* ============================================ */

.form-container {
  padding: 1rem;
  border-radius: 0;
  background-color: #009ddf14;
  border: 0;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0 !important;
  color: var(--form-field-text);
  background-color: var(--form-field-bg);
  border: 1px solid var(--form-field-border);
}

.form-container label {
  color: var(--form-label-color);
  margin-bottom: var(--form-label-mb);
  margin-top: var(--form-label-mt);
  display: var(--form-label-display);
  font-weight: var(--form-label-weight);
  font-size: var(--form-label-size);
}

.form-container button {
  margin-top: 20px;
  padding: 9px 10px 4px 10px;
  border-radius: 0;
  border: none;
  background-color: var(--color-brand);
  color: white;
  cursor: pointer;
  &:hover{
    background-color: var(--color-brand-dark);
  }
}


/* ============================================ */
/* Teaserbox (Bild mit Text)                    */
/* ============================================ */

.grid-element.teaserbox {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.grid-element.teaserbox > .bard-content {
  padding-bottom: 30px;
  flex: 1;
  display: flex !important;
  flex-direction: column;
  gap: 1.5rem;
}

.grid-element.teaserbox > .bard-content > *:last-child {
  margin-top: auto;
}

.grid-element.kenburns > .bard-content > *:first-child {
  overflow: hidden;
}

.grid-element.kenburns > .bard-content img {
  transition: transform 0.6s ease;
}

.grid-element.kenburns:hover > .bard-content img {
  transform: scale(1.06);
}

.grid-element.teaserbox > .bard-content > *:first-child .rounded-lg {
  border-radius: 0;
}

.grid-element.teaserbox > .bard-content > *:first-child .shadow-md {
  box-shadow: none;
}

.grid-element.teaserbox > .bard-content > * {
  padding-left: 30px;
  padding-right: 30px;
}

.grid-element.teaserbox > .bard-content > *:first-child {
  padding-left: 0;
  padding-right: 0;
}

.teaserbox{
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

/* ============================================ */
/* Contactbox                                   */
/* ============================================ */

.contactbox {
  padding: 0.5rem;
  outline: 2px solid white;
  border-radius: var(--radius-base);
}

/* ============================================ */
/* Layout (Mehrspalter, Slider-Positionen)       */
/* ============================================ */

.two-columns,
.three-columns {
  container-type: inline-size;
}

@container (min-width: 500px) {
  .two-columns .bard-content, .three-columns .bard-content {
    display: block;
    column-count: 2;
    column-gap: calc(var(--spacing) * 6);
  }
  .two-columns .bard-content p, .three-columns .bard-content p {
    margin-bottom: calc(var(--spacing) * 6);
  }
}

@container (min-width: 700px) {
  .three-columns .bard-content {
    column-count: 3;
  }
}

.columns-disabled .bard-content {
  column-count: 1 !important;
}

@media (min-width: 768px) {
  .flow-row .grid-flow-row {
    grid-auto-flow: column;
  }

  .slide.vp_pos_center .slidebox {
    justify-content: center;
  }
  .slide.vp_pos_top .slidebox {
    justify-content: start;
  }
  .slide.hp_pos_left .slidebox {
    align-items: start;
  }
  .slide.hp_pos_right .slidebox {
    align-items: end;
  }

  .teaserbox{
      padding-top: 0;
  }
}

/* ============================================ */
/* Such-Hervorhebung                            */
/* ============================================ */

.search-highlight {
  background-color: var(--search-highlight-bg);
  font-weight: var(--search-highlight-weight);
  padding: 0.1em 0.2em;
  border-radius: 0.2em;
}

/* ============================================
   Galerie: Bildergalerie
   ============================================ */

.gallery {
  container-type: inline-size;
  container-name: gallery;
}

.gallery-item{
  max-width: 100%;
  aspect-ratio: 3 / 2;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figcaption{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1rem;
  font-size: 0.8rem;
}

@container gallery (min-width: 720px) {
  .grid-element:not(.foerderer-galerie) .gallery .gallery-item{
      max-width: calc((100% - (var(--spacing) * 6))  / 2);
  }
}

@container gallery (min-width: 1024px) {
  .grid-element:not(.foerderer-galerie) .gallery .gallery-item{
      max-width: calc((100% - (var(--spacing) * 6) * 2)  / 3);
  }
}

@container gallery (min-width: 1280px) {
  .grid-element:not(.foerderer-galerie) .gallery .gallery-item{
      max-width: calc((100% - (var(--spacing) * 6) * 3)  / 4);
  }
  .vorstand-galerie .gallery .gallery-item{
      max-width: calc((100% - (var(--spacing) * 6) * 2)  / 3);
  }
}

/* ============================================
   Popup-Galerie: Vorschaubild mit Galerie-Badge
   ============================================ */

.popup-gallery-trigger {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  max-width: 100%;
}

.popup-gallery-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-base);
  font-size: 0.8rem;
  font-weight: 500;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

.popup-gallery-trigger:hover .popup-gallery-badge {
  background-color: rgba(0, 0, 0, 0.85);
}

.popup-gallery-badge svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ============================================ */
/* Blockzitat                                   */
/* ============================================ */

.quote p:not(:first-child){
  border-left: 2px solid grey;
  padding-left: 1rem;
  margin-left: 1rem;
  font-style: italic;
}

.quote p:not(:first-child) strong{
  font-style: normal;
}

/* ============================================ */
/* Reihen-Links                                 */
/* ============================================ */

.menu-links{
  width: 100%;
}

.menu-links svg{
  margin-top: 2px;
}
.menu-links a{
  text-decoration: none;
}

/* ============================================ */
/* Live-Preview Breakpoint-Indikator            */
/* ============================================ */

.lp-breakpoint-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  pointer-events: none;
}
.lp-bp {
  display: none;
  padding: 0.25rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0 0 0.375rem 0.375rem;
}
.lp-bp-xs { display: inline-block; }
@media (min-width: 640px) {
  .lp-bp-xs { display: none; }
  .lp-bp-sm { display: inline-block; }
}
@media (min-width: 768px) {
  .lp-bp-sm { display: none; }
  .lp-bp-md { display: inline-block; }
  .sliderheadline, .termin-titel h1 {
    font-size: 2rem;
  }
}
@media (min-width: 1024px) {
  .lp-bp-md { display: none; }
  .lp-bp-lg { display: inline-block; }
  .sliderheadline, .termin-titel h1 {
    font-size: 3rem;
  }
}
@media (min-width: 1280px) {
  .lp-bp-lg { display: none; }
  .lp-bp-xl { display: inline-block; }
  .width-maxed {
    max-width: calc(var(--max-width) + 200px);
    margin: 0 auto;
  }
}
@media (min-width: 1536px) {
  .lp-bp-xl { display: none; }
  .lp-bp-2xl { display: inline-block; }
}

/* ============================================ */
/* Container max-width                          */
/* ============================================ */

@media(min-width: 40rem) {
  .container {
    max-width: var(--max-width);
  }
}

@media(min-width: 48rem) {
  .container {
    max-width: var(--max-width);
  }
}

@media(min-width: 64rem) {
  .container {
    max-width: var(--max-width);
  }
}

@media(min-width: 80rem) {
  .container {
    max-width: var(--max-width);
  }
}

@media(min-width: 96rem) {
  .container {
    max-width: calc(var(--max-width) + 200px);
  }
}

@media (max-width: calc(40rem - 1px)) {
  .container {
      max-width: var(--max-width);
  }
}

/* ============================================ */
/* 404-Fehlerseite                              */
/* ============================================ */

.notice-404-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.notice-404-box {
  background-color: #fff;
  border: 1px solid var(--color-brand);
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
  max-width: 28rem;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.notice-404-box h2,
.notice-404-box h3 {
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #1e293b;
}

.notice-404-box p {
  margin: 0 0 1.5rem;
  color: #475569;
  line-height: 1.5;
}

.notice-404-btn {
  display: inline-block;
  padding: 0.5rem 2.5rem;
  background-color: var(--color-brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s;
}

.notice-404-btn:hover {
  background-color: var(--color-brand);
}

/* ============================================ */
/* Hero Crossfade Slideshow                     */
/* ============================================ */

.ue-home-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  background: radial-gradient(circle, rgb(76 76 76) 0%, rgb(224 224 224) 100%);
  height: 300px;
  pointer-events: none;
}

.ue-home-hero::before {
  content: '';
  position: absolute;
  display: none;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to right,
      var(--color-rasteroverlay) 0px,
      var(--color-rasteroverlay) 1px,
      transparent 1px,
      transparent var(--size-rasteroverlay)
    ),
    repeating-linear-gradient(
      to bottom,
      var(--color-rasteroverlay) 0px,
      var(--color-rasteroverlay) 1px,
      transparent 1px,
      transparent var(--size-rasteroverlay)
    );
  z-index: 1;
  pointer-events: none;
}

.ue-home-hero::after {
  content: '';
  position: absolute;
  display: none;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, #fff);
  z-index: 2;
  pointer-events: none;
}

.ue-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.ue-hero-slide--active {
  opacity: 1;
}

/* ============================================ */
/* Nächste Veranstaltungen (Bard-Set)           */
/* ============================================ */

.naechste-termine__heading {
  font-family: var(--font-base);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.naechste-termine__list {
  display: flex;
  flex-direction: column;
}

.naechste-termine__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-grey-200, #e5e7eb);
  text-decoration: none;
  color: inherit;
}

.naechste-termine__item:first-child {
  border-top: 1px solid var(--color-grey-200, #e5e7eb);
}

.naechste-termine__item:hover {
  color: var(--color-brand);
}

.naechste-termine__date {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.naechste-termine__time {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--font-base);
  font-size: 0.85rem;
  color: var(--color-grey-600, #4b5563);
  white-space: nowrap;
}

.naechste-termine__title {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: 400;
}

.naechste-termine__alle {
  margin-top: 0.75rem;
}

.naechste-termine__alle a {
  color: var(--color-brand);
  text-decoration: none;
}

.naechste-termine__alle a:hover {
  text-decoration: underline;
}

/* ---- Termin-Liste: Link "Alle Veranstaltungen" ---- */

.termin-liste__alle {
  margin-top: 1.5rem;
}

.termin-liste__alle a {
  color: var(--color-brand);
  text-decoration: none;
}

.termin-liste__alle a:hover {
  text-decoration: underline;
}

/* ---- BITV Focus-Styles (Tastatur-Navigation) ---- */

.ue-menu-content a:focus-visible,
.ue-menu-content button:focus-visible,
.ue-menu-panel-close:focus-visible,
.ue-menu-toggle:focus-visible {
  outline: 2px solid var(--color-brand, #2563eb);
  outline-offset: -2px;
  border-radius: 2px;
}

/* ============================================ */
/* Header (Überblend-Konzept)                   */
/* ============================================ */

.ue-header {
    width: 100%;
    position: relative;
    top: 0;
    z-index: 50;
}

.ue-header--open {
    z-index: 10000;
}

.ue-header-inner {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    padding: 1.2rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.ue-footer-inner {
    max-width: 1200px;
}

@media (max-width: 3536px) {
    .ue-header-inner {
        max-width: 1200px;
    }
}
@media (max-width: 1200px) {
    .ue-header-inner {
        max-width: calc(100% - 2rem);
    }
}
@media(min-width: 96rem) {
    .ue-footer-inner, .ue-header-inner {
        max-width: calc(var(--max-width) + 200px);
    }
}

/* Logo */
.ue-logo {
    display: block;
    width: 276px;
    flex-shrink: 0;
    margin-bottom: 6px;
}

.ue-logo img {
    width: 100%;
    height: auto;
}

.ue-logo .ue-logo__default {
    display: block;
}

.ue-logo .ue-logo__overlay {
    display: none;
}

.ue-header--open .ue-logo .ue-logo__default {
    display: block;
}

.ue-header--open .ue-logo .ue-logo__overlay {
    display: none;
}

/* Top-Navigation */
.ue-header-inner > nav{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.ue-topnavi {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
}

.ue-topnavi li {
    display: inline-block;
    margin-right: 32px;
    vertical-align: top;
    transition: border-color 0.3s ease;
}

.ue-topnavi li a:hover{
    text-decoration: underline;
}

.ue-topnavi li:last-child {
    margin-right: 0;
}

.ue-topnavi li.ue-toggle-item {
    border-bottom: none;
    margin-left: 175px;
}

.ue-topnavi li a {
    text-decoration: none;
    color: var(--color-brand-accent);
    font-family: var(--font-base);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5rem;
    padding-left: 0;
    padding-right: 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.ue-topnavi li:hover {
    background-color: transparent;
}

.ue-header--open .ue-topnavi li {
    border-bottom-color: transparent;
}

.ue-header--open .ue-topnavi li a {
    color: var(--color-brand-accent);
}

/* Toggle-Button (Menü / Schließen) */
.ue-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: none !important;
}

.ue-toggle-icon {
    width: 28px;
    height: 28px;
    color: var(--color-brand-accent);
    transition: color 0.3s ease;
}

.ue-menu-toggle .ue-toggletext {
    display: block;
    color: var(--color-brand-accent);
    padding-top: 4px;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5rem;
    transition: color 0.3s ease;
}

/* ============================================ */
/* Overlay-Backdrop (Blur + Abdunklung)         */
/* ============================================ */

.ue-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.ue-menu-overlay[x-cloak] {
    display: none !important;
}

/* ============================================ */
/* Menü-Panel (Slide-in von rechts)             */
/* ============================================ */

.ue-menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    z-index: 11;
    overflow-y: auto;
    background-color: var(--color-menu-bg);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    font-family: var(--font-base);
}

.ue-menu-content[x-cloak] {
    display: none !important;
}

.ue-menu-content a {
    text-decoration: none;
}

.ue-menu-content a:hover {
    text-decoration: none;
}

/* Panel-Header (X + Menü-Überschrift) */

.ue-menu-panel-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.ue-menu-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #333;
    flex-shrink: 0;
}

.ue-menu-panel-close:hover {
    color: #000;
}

.ue-menu-panel-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-base);
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    padding-right: 24px;
}

.ue-menu-content-inner {
    padding: 0;
}

/* Main navigation im Panel */

.ue-menu-main {
    margin: 0;
    list-style: none;
    padding: 0;
}

.ue-menu-main > li {
    padding: 0;
    border-bottom: 1px solid var(--color-menu-hover);
}

.ue-menu-main > li > a,
.ue-menu-main > li > .ue-menu-item-header > a,
.ue-menu-main > li > .ue-menu-item-header > span {
    color: #333;
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: 400;
    text-decoration: none;
    display: block;
    padding: 0.875rem 1.5rem;
}

.ue-menu-main > li > a:hover,
.ue-menu-main > li > .ue-menu-item-header > a:hover,
.ue-menu-main > li > .ue-menu-item-header > span:hover {
    background-color: var(--color-menu-hover);
}

/* Aktive Seite */

.ue-menu-main > li.active > a,
.ue-menu-main > li.active > .ue-menu-item-header {
    color: #333;
    background-color: var(--color-menu-hover);
}

.ue-menu-main .ue-level-2 li.active > a,
.ue-menu-main .ue-level-2 li.active > div > .ue-menu-item-header {
    color: #333;
    background-color: var(--color-menu-hover);
}

.ue-menu-main .ue-level-3 li.active > a {
    color: #333;
    background-color: var(--color-menu-hover);
}

/* Menu item header with toggle */

.ue-menu-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.875rem 1.5rem;
    width: 100%;
    background: none;
    border: none;
    font: inherit;
    text-align: left;
    color: #333;
}

.ue-menu-item-header:hover {
    background-color: var(--color-menu-hover);
}

.ue-menu-item-header > span {
    padding: 0 !important;
}

.ue-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #999;
    transition: transform 0.25s ease;
}

.ue-chevron-open {
    transform: rotate(90deg);
}

/* Level 2 submenu items */

.ue-menu-main .ue-level-2 {
    list-style: none;
    padding: 0.25rem 0;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid var(--color-menu-hover);
}

.ue-menu-main .ue-level-2 li a,
.ue-menu-main .ue-level-2 li span,
.ue-menu-main .ue-level-2 li .ue-menu-item-header a,
.ue-menu-main .ue-level-2 li .ue-menu-item-header span {
    color: #333;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 400;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 2.5rem;
    margin: 0;
}

/* Level 3 submenu */
.ue-menu-main .ue-level-3 {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.5);
}

.ue-menu-main .ue-level-3 li a {
    font-size: 0.9rem;
    padding: 0.4rem 1.5rem 0.4rem 3.5rem;
}

.ue-menu-main .ue-level-2 li a:hover,
.ue-menu-main .ue-level-2 li .ue-menu-item-header:hover,
.ue-menu-main .ue-level-3 li a:hover {
    background-color: var(--color-menu-hover);
}

/* Info links (nach den Haupteinträgen) */

.ue-menu-info-separator {
    margin-top: 0;
}

.ue-menu-main > li.ue-menu-info-link {
    padding: 0;
}

.ue-menu-main > li.ue-menu-info-link > a:hover {
    background-color: var(--color-menu-hover);
    opacity: 1;
}

/* ============================================ */
/* Sibling Navigation (subMenu)                 */
/* ============================================ */

.ue-submenu-inner {
    margin-left: 0;
    margin-right: 0;
}

.ue-submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.ue-submenu ul li a {
    color: var(--color-brand-accent);
    font-family: var(--font-base);
    font-size: 24px;
    font-weight: 300;
    text-decoration: none;
    padding-bottom: 0;
    margin-right: 30px;
    display: inline-block;
    margin-top:4px;
}
.ue-submenu ul li a:hover {
  text-decoration: underline;
}

.ue-submenu ul li.active a {
    color: #000;
}

@media (max-width: 780px) {
    .ue-submenu {
        display: none;
    }
}

/* ============================================ */
/* Footer                                       */
/* ============================================ */

.ue-footer {
    width: 100%;
    margin: 0 auto 0 auto;
    padding-bottom: 7px;
    position: relative;
    display: block;
    overflow: hidden;
    background-color: var(--color-brand);
    color: #fff;
}

.ue-footer a {
    color: #fff;
    text-decoration: none;
}

.ue-footer a:hover {
    text-decoration: underline;
}

.ue-footer-inner {
    margin: 0 auto;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ue-footer-inner p {
    line-height: 2.5;
    color: #fff;
    font-family: var(--font-base);
    font-size: 18px;
    font-weight: 300;
    font-style: normal;
    letter-spacing: normal;
    margin: 0;
}

.ue-footer-social {
    display: flex;
    gap: 0;
    margin-top: 10px;
}

.ue-footer-social a {
    margin-right: 17px;
    display: inline-block;
}

.ue-footer-social a svg {
    width: 50px;
    height: 50px;
    display: block;
}

/* ============================================ */
/* Responsive                                   */
/* ============================================ */

@media (max-width: 1210px) {
    .ue-topnavi li.ue-toggle-item {
        margin-left: 40px;
    }

    .ue-topnavi li.ue-nav-link {
        display: none;
    }
}

@media (max-width: 1000px) {
    .ue-logo {
        width: 173px;
        height: 43px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .ue-topnavi {
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .ue-topnavi li.ue-toggle-item {
        margin-left: 0;
    }

    .ue-menu-toggle .ue-toggletext {
        font-size: 1rem;
    }

    .ue-toggle-icon {
        width: 22px;
        height: 22px;
    }

    .ue-menu-main > li {
        padding: 0;
    }

    .ue-menu-main {
        padding-bottom: 100px;
        margin-bottom: 100px;
    }
}

@media (max-width: 950px) {
    .ue-footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .ue-footer-inner p {
        font-weight: 300;
    }
}

@media (max-width: 800px) {
    .ue-menu-main {
        margin-left: 0;
    }
}

@media (max-width: 780px) {
    .ue-footer {
        margin-top: 0;
    }

    .ue-footer-inner {
        margin-top: 30px;
        grid-template-columns: 1fr;
    }
}

/* Body lock when menu is open */
html.ue-menu-open,
html.ue-menu-open body {
    overflow: hidden;
    height: 100vh;
}

/* ============================================ */
/* HOME PAGE                                    */
/* ============================================ */

@media (min-width: 768px) {
    .ue-home-hero {
        padding: 60px 0;
        height: 600px;
    }

    .ue-menu-content {
        width: 420px;
        max-width: 85vw;
    }
}

.ue-home-teasers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .ue-home-teasers {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 20px;
        margin-top: -180px;
    }

    .ue-home-teasers--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ue-home-teasers--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ue-home-teasers--5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ue-home-teaser-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1;
    text-decoration: none;
    color: #fff;
}

.ue-home-teasers--2 .ue-home-teaser-card,
.ue-home-teasers--4 .ue-home-teaser-card {
    aspect-ratio: 4 / 3;
}

.ue-home-teaser-card:hover {
    text-decoration: none;
    color: #fff;
}

.ue-home-teaser-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ue-home-teaser-card:hover .ue-home-teaser-img {
    transform: scale(1.05);
}

.ue-home-teaser-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
}

.ue-home-teaser-traeger {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    margin-bottom: -117%;
    pointer-events: none;
}

.ue-home-teaser-overlay-inner {
    position: relative;
    z-index: 1;
    padding: 20px;
}
.has-traeger .ue-home-teaser-overlay-inner {
    padding-right: 70px;
}

.ue-home-teasers--2 .has-traeger .ue-home-teaser-overlay-inner,
.ue-home-teasers--4 .has-traeger .ue-home-teaser-overlay-inner {
    padding-right: 95px;
}

.ue-home-teaser-overlay h3 {
    font-family: var(--font-base);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 6px 0;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.ue-home-teaser-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.ue-home-teaser-text p {
    margin: 0;
}

/* --- Sektion B: Termine + Newsletter --- */
.ue-home-midsection .ue-home-midsection-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

@media (min-width: 768px) {
    .ue-home-midsection .ue-home-midsection-inner {
        padding: 50px 20px;
    }
}

.ue-home-midsection-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .ue-home-midsection-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .ue-home-teaser-card {
        box-shadow: 0px -5px 15px 0px rgba(0,0,0,0.5);
    }
}

/* Termine */
.ue-home-termine h2 {
    margin: 0 0 25px 0;
}

.ue-home-termine-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ue-home-termin-item {
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #333;
    padding: 20px 0;
    border-bottom: 1px solid #d8d8d8;
    transition: color 0.2s;
    flex-wrap: wrap;
    flex-direction: column;
}

@media (max-width: 767px) {
  .ue-home-termin-item{
    align-items: flex-start;
  }
}

.ue-home-termin-item:hover .ue-home-termin-titel{
    text-decoration: underline;
}

.ue-home-termin-item:hover {
    text-decoration: none;
    color: var(--color-brand);
}

.ue-home-termin-datum {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    width: 280px;
    color: inherit;
}

.ue-home-termin-info {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-end;
    height: stretch;
}

@media (min-width: 768px) {
    .ue-home-termin-item {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    .ue-home-termin-info {
        flex-direction: column;
        gap:0;
    }
    .ue-home-termin-datum {
        font-size: 72px;
    }
}

.ue-home-termin-titel {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    color: inherit;
    margin-bottom: 4px;
}

.ue-home-termin-meta {
    font-family: var(--font-base);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 2px;
    color: var(--color-grey-600, #4b5563);
}

.ue-home-termine-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--color-brand);
    text-decoration: none;
}

.ue-home-termine-link:hover {
    text-decoration: underline;
}

/* Newsletter */
.ue-home-newsletter h2 {
    font-family: var(--font-base);
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0 0 15px 0;
    color: #333;
}

.ue-home-newsletter p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 15px 0;
}

.ue-home-newsletter a {
    color: var(--color-brand);
    text-decoration: none;
}

.ue-home-newsletter a:hover {
    text-decoration: underline;
}

.ue-home-newsletter-form {
    margin: 20px 0;
}

.ue-home-newsletter-input-row {
    display: flex;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
}

.ue-home-newsletter-input-row input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    font-family: var(--font-base);
    font-size: 0.9rem;
    color: #333;
    background: #fff;
}

.ue-home-newsletter-input-row input[type="email"]::placeholder {
    color: #999;
}

.ue-home-newsletter-input-row button {
    padding: 10px 20px;
    border: none;
    background: var(--color-brand);
    color: #fff;
    font-family: var(--font-base);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ue-home-newsletter-input-row button:hover {
    background: var(--color-brand-accent);
}

.ue-home-newsletter-abmeldung {
    font-size: 0.8rem;
    color: #888;
}

/* --- Sektion C: Content-Teaser (unten) --- */
.ue-home-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 40px;
}

@media (min-width: 768px) {
    .ue-home-bottom {
        padding: 0 20px 50px;
    }
}

.ue-home-bottom .container-section {
    background: transparent !important;
}

.ue-home-bottom .container-section > div {
    padding-top: 0;
    padding-bottom: 0;
}

.ue-home-bottom .grid-element {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.ue-home-bottom .grid-element:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.ue-home-bottom .grid-element:not(.teaserbox) .bard-content {
    padding: 20px;
}

.ue-home-bottom .grid-element:not(.teaserbox) .bard-content figure {
    margin: -20px -20px 15px -20px;
}

.ue-home-bottom .grid-element .bard-content figure img {
    width: 100%;
    display: block;
    border-radius: 0;
}

/* ============================================ */
/* Förderer-Galerie (Logo-Grid)                 */
/* ============================================ */

.foerderer-galerie .gallery .flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: stretch;
    justify-items: stretch;
}

@media (min-width: 576px) {
    .foerderer-galerie .gallery .flex {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 992px) {
    .foerderer-galerie .gallery .flex {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.foerderer-galerie .gallery-item {
    aspect-ratio: 3 / 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: none;
    overflow: hidden;
    pointer-events: none;
}

.foerderer-galerie .gallery-item figcaption {
    display: none !important;
}

.foerderer-galerie .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: default;
    transform: none !important;
}

.foerderer-galerie a {
    text-decoration: none;
    display: block;
    pointer-events: auto;
}

.foerderer-galerie a .gallery-item {
    pointer-events: auto;
}

.foerderer-galerie a .gallery-item img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.foerderer-galerie a:hover .gallery-item img {
    opacity: 0.75;
}

/* ============================================ */
/* Termine im Menü                              */
/* ============================================ */

.menu-item--termin {
    border-top: 1px solid var(--color-grey-300, #d1d5db);
}

.menu-item--termin:last-child {
    border-bottom: 1px solid var(--color-grey-300, #d1d5db);
}

.menu-link--termin {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.menu-link--termin:hover {
    color: var(--color-brand);
    text-decoration: none;
}

.menu-link--termin:hover .menu-link__title{
    text-decoration: underline;
}

.menu-link__date-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    min-width: 3.5rem;
}

.menu-link__short-date {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-grey-900, #111827);
    width: 80px;
}

.menu-link--termin:hover .menu-link__short-date {
    color: var(--color-brand);
    text-decoration: none;
}

.menu-link__time {
    font-size: 0.7rem;
    color: var(--color-grey-500, #6b7280);
    line-height: 1.3;
}

.menu-link__title {
    padding-top: 0.25rem;
    line-height: 1.4;
}

.menu-item--termin.is-active .menu-link--termin {
    color: var(--color-brand, #b5243e);
}

.menu-item--termin.is-active .menu-link__short-date {
    color: var(--color-brand, #b5243e);
}

/* ============================================ */
/* Veranstaltungstitel                          */
/* ============================================ */

.termin-titel h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 400;
}

.termin-titel__datum {
    font-weight: 700;
}

.termin-titel__meta {
    margin-top: 0.25rem;
    font-size: 1rem;
    color: var(--color-grey-600, #4b5563);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.termin-titel__meta span,
.termin-titel__meta svg {
    display: block;
}

.termin-titel__meta svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================ */
/* Ticket-Box                                   */
/* ============================================ */

.ticket-box {
    padding: 1.75rem;
    z-index: 30;
}

.ticket-box.pullup-xs {
    margin-top: -300px;
}
@media (min-width: 640px) {
    .ticket-box.pullup-sm { margin-top: -300px; }
    .ticket-box:not(.pullup-sm) { margin-top: 0; }
}
@media (min-width: 768px) {
    .ticket-box.pullup-md { margin-top: -300px; }
    .ticket-box:not(.pullup-md) { margin-top: 0; }
}
@media (min-width: 1024px) {
    .ticket-box.pullup-lg { margin-top: -300px; }
    .ticket-box:not(.pullup-lg) { margin-top: 0; }
}
@media (min-width: 1280px) {
    .ticket-box.pullup-xl { margin-top: -300px; }
    .ticket-box:not(.pullup-xl) { margin-top: 0; }
}
@media (min-width: 1536px) {
    .ticket-box.pullup-2xl { margin-top: -300px; }
    .ticket-box:not(.pullup-2xl) { margin-top: 0; }
}

.ticket-box__heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-brand, #009fe3);
    margin: 0 0 1.25rem 0;
}

.ticket-box__meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.ticket-box__meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-base);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-body-text, #1e293b);
    line-height: 1.3;
}

.ticket-box__meta-item svg {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    color: var(--color-brand, #009fe3);
    stroke: currentColor;
}

.ticket-box__meta-item span {
    display: block;
}

.ticket-box__content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-grey-700, #374151);
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.ticket-box__content p {
    margin-bottom: 0.5rem;
}

.ticket-box__content a {
    color: var(--color-brand, #009fe3);
    text-decoration: none;
}

.ticket-box__content a:hover {
    text-decoration: underline;
}

.ticket-box__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-brand, #009fe3);
    color: #fff;
    padding: 0.6rem 1.75rem 0.5rem 1.75rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-family: var(--font-base);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
@media (min-width: 768px) {
  .mobilticketlink{
    display: none;
  }
}


.ticket-box__button:hover {
    background-color: var(--color-brand-dark, #0082b8);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ============================================ */
/* Termin-Footer Teasers                        */
/* ============================================ */

.termin-footer-teasers__grid {
    margin: 0 auto;
    padding: 3rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.termin-footer-teaser {
    display: block;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-body-text);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.termin-footer-teaser:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.termin-footer-teaser__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: white;
}

.termin-footer-teaser__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.termin-footer-teaser__body {
    padding: 1.5rem;
}

.termin-footer-teaser__title {
    font-family: var(--font-base);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--color-body-text);
}

.termin-footer-teaser__link {
    color: var(--color-brand);
    font-family: var(--font-base);
    font-size: 0.95rem;
    font-weight: 400;
    padding-bottom: 1px;
}

.termin-footer-teaser:hover .termin-footer-teaser__link {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .termin-footer-teasers__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* Termin-Liste                                 */
/* ============================================ */

.termin-liste__month-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 0;
    color: var(--color-body-text);
}

.termin-liste__month-heading:first-child {
    margin-top: 0;
}

.termin-liste-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem 2rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--color-border, #e2e8f0);
    align-items: start;
}

.termin-liste-item__meta {
    display: flex;
    flex-direction: column;
}

.termin-liste-item__weekday {
    font-family: var(--font-base);
    font-size: 0.85rem;
    color: var(--color-body-text);
}

.termin-liste-item__date {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-body-text);
}

.termin-liste-item__time,
.termin-liste-item__location {
    font-family: var(--font-base);
    font-size: 0.85rem;
    color: var(--color-body-text);
    line-height: 1.5;
}

.termin-liste-item__tickets {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1.1rem 0.35rem 1.1rem;
    background-color: var(--color-brand);
    color: #fff !important;
    font-family: var(--font-base);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 1.5rem;
    text-decoration: none !important;
    width: fit-content;
    transition: opacity 0.2s ease;
}

.termin-liste-item__tickets:hover {
    opacity: 0.85;
}

.termin-liste-item__body {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.termin-liste-item__image {
    flex-shrink: 0;
    width: 40%;
}

.termin-liste-item__image a {
    display: block;
}

.termin-liste-item__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.termin-liste-item__content {
    flex: 1;
    min-width: 0;
}

.termin-liste-item__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-body-text);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.termin-liste-item__title a {
    color: inherit;
    text-decoration: none;
}

.termin-liste-item__title a:hover {
    color: var(--color-brand);
}

.termin-liste-item__text {
    font-family: var(--font-base);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-body-text);
}

.termin-liste-item__text p {
    margin: 0 0 0.75em;
}

.termin-liste-item__text a {
    color: var(--color-brand);
}

.form-field label:has(input[type=radio]),.form-field label:has(input[type=checkbox]) {
  align-items: start;
}
#mitgliedsantrag-form-datenschutz-field-einverstanden-option{
  margin-top: 3px;
}


/* Responsive: Tablet */
@media (max-width: 1023px) {
    .termin-liste-item__image {
        width: 200px;
    }

    .termin-liste-item__title {
        font-size: 1.2rem;
    }
}

/* Responsive: Mobil */
@media (max-width: 767px) {
    .termin-liste-item {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 1.25rem 0;
        position: relative;
    }

    .termin-liste-item__meta {
        display: block;
        margin-bottom: 0.75rem;
    }

    .termin-liste-item__date {
        font-size: 2.5rem;
    }

    .termin-liste-item__time {
        display: inline;
    }

    .termin-liste-item__location {
        display: inline;
    }

    .termin-liste-item__time + .termin-liste-item__location::before {
        content: ", ";
    }

    .termin-liste-item__tickets {
        position: absolute;
        top: 1.25rem;
        right: 0;
        margin-top: 0;
        font-size: 0.95rem;
        padding: 0.5rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .termin-liste-item__body {
        flex-direction: column;
        gap: 1rem;
    }

    .termin-liste-item__image {
        width: 100%;
        max-width: none;
    }

    .termin-liste-item__title {
        font-size: 1.3rem;
    }

    .termin-liste__month-heading {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
}
