:root {
  --fi-color-text: #1f2937;
  --fi-color-text-strong: #111827;
  --fi-color-background: #ffffff;
  --fi-color-surface: #ffffff;
  --fi-color-border: #d7dce6;
  --fi-color-link: #384887;
  --fi-color-primary: #384887;
  --fi-color-focus: #5da7ff;
  --fi-color-primary-rgb: 56, 72, 135;
  --fi-color-primary-shadow-rgb: 15, 35, 65;
  --fi-color-border-soft: rgba(31, 41, 55, 0.12);
  --fi-color-placeholder: rgba(31, 41, 55, 0.58);
  --fi-shadow-base: 0 2px 10px rgba(0, 0, 0, 0.15);
  --fi-shadow-light: 0 20px 40px rgba(0, 0, 0, 0.08);
  --fi-shadow-top: 0 -4px 9px rgba(0, 0, 0, 0.07);
  --fi-shadow-bottom: 0 12px 24px -10px rgba(0, 0, 0, 0.2);
  --fi-shadow-floating: 0 4px 12px rgba(0, 0, 0, 0.18);
  --fi-shadow-elevated: 0 4px 18px rgba(var(--fi-color-primary-shadow-rgb), 0.15);
  --fi-shadow-elevated-focus: 0 0 0 2px rgba(var(--fi-color-primary-rgb), 0.28), 0 10px 24px rgba(var(--fi-color-primary-shadow-rgb), 0.18);
  --fi-shadow-elevated-open: 0 8px 22px rgba(var(--fi-color-primary-shadow-rgb), 0.18);
  --fi-shadow-dropdown: 0 18px 36px rgba(var(--fi-color-primary-shadow-rgb), 0.18);
  --fi-shadow-modal: 0 24px 36px rgba(var(--fi-color-primary-shadow-rgb), 0.18);
  --fi-shadow-ring: 0 0 0 3px rgba(var(--fi-color-primary-rgb), 0.25);
  --fi-shadow-ring-thin: 0 0 0 2px rgba(var(--fi-color-primary-rgb), 0.25);
  --fi-shadow-cluster: 0 0 0 2px #ffffff;
  --fi-shadow-offcanvas: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
  --fi-shadow-toolbar: 0 8px 24px rgba(0, 0, 0, 0.12);
  --fi-shadow-chip: 0 1px 3px rgba(0, 0, 0, 0.2);
  --fi-shadow-card: 0 6px 12px rgba(0, 0, 0, 0.15);
  --fi-shadow-info-card: 0 10px 20px rgba(0, 0, 0, 0.08);
  --fi-shadow-badge: 0 4px 15px rgba(0, 0, 0, 0.12);
  --ci-dunkelblau: var(--fi-color-primary);
  --ci-dunkelblau-light: #5662a2;
  --ci-dunkelblau-dark: #2c356f;
  --ci-hellblau: var(--fi-color-focus);
  --ci-petrol: #6bb6c7;
  --ci-backsteinrot: #ef8361;
  --ci-schilfgruen: #bcc7b3;
  --ci-sonnengelb: #f4d853;
  --ci-sand: #797271;
  --ci-warmesgrau: #f7f2f2;
  --ci-warmesgrau-light: #fdf9f3;
}

.fi-filter-block--presets {
  border-bottom: 1px solid var(--fi-color-border-soft);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.fi-filter-block--presets:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

.fi-preset-buttons {
  gap: 0.5rem;
}

.fi-preset-button {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fi-preset-button.is-primary {
  box-shadow: var(--fi-shadow-chip);
}

.fi-preset-actions {
  gap: 0.75rem;
}

.fi-preset-actions .fi-preset-map {
  margin-left: 0;
}

body.theme-high-contrast {
  --fi-color-text: #000000;
  --fi-color-text-strong: #000000;
  --fi-color-background: #ffffff;
  --fi-color-surface: #ffffff;
  --fi-color-border: #000000;
  --fi-color-link: #000000;
  --fi-color-primary: #000000;
  --fi-color-focus: #000000;
  --fi-color-primary-rgb: 0, 0, 0;
  --fi-color-primary-shadow-rgb: 0, 0, 0;
  --fi-color-border-soft: rgba(0, 0, 0, 0.6);
  --fi-color-placeholder: rgba(0, 0, 0, 0.8);
  --bulma-primary: #000000;
  --bulma-link: #000000;
  --bulma-text: #000000;
  --fi-shadow-base: none;
  --fi-shadow-light: none;
  --fi-shadow-top: none;
  --fi-shadow-bottom: none;
  --fi-shadow-floating: none;
  --fi-shadow-elevated: none;
  --fi-shadow-elevated-focus: none;
  --fi-shadow-elevated-open: none;
  --fi-shadow-dropdown: none;
  --fi-shadow-modal: none;
  --fi-shadow-ring: none;
  --fi-shadow-ring-thin: none;
  --fi-shadow-cluster: 0 0 0 2px #000000;
  --fi-shadow-offcanvas: none;
  --fi-shadow-toolbar: none;
  --fi-shadow-chip: none;
  --ci-dunkelblau: var(--fi-color-primary);
  --ci-dunkelblau-light: var(--fi-color-primary);
  --ci-dunkelblau-dark: var(--fi-color-primary);
  --ci-hellblau: var(--fi-color-focus);
  --ci-petrol: var(--fi-color-primary);
  --ci-backsteinrot: var(--fi-color-primary);
  --ci-schilfgruen: var(--fi-color-primary);
  --ci-sonnengelb: var(--fi-color-primary);
  --ci-sand: var(--fi-color-primary);
  --ci-warmesgrau: #ffffff;
  --ci-warmesgrau-light: #ffffff;
}

body.theme-high-contrast,
body.theme-high-contrast .site-header,
body.theme-high-contrast .site-footer,
body.theme-high-contrast .section,
body.theme-high-contrast .hero,
body.theme-high-contrast .hero-image-section,
body.theme-high-contrast .container,
body.theme-high-contrast .main-navigation,
body.theme-high-contrast .topbar,
body.theme-high-contrast .mega-menu,
body.theme-high-contrast .box,
body.theme-high-contrast .content,
body.theme-high-contrast .columns,
body.theme-high-contrast .column,
body.theme-high-contrast .has-background-white,
body.theme-high-contrast .has-background-warmesgrau,
body.theme-high-contrast .has-background-warmesgrau-light,
body.theme-high-contrast .has-background-light,
body.theme-high-contrast .has-background-light-grey,
body.theme-high-contrast [class*="has-background-"] {
  background-color: #ffffff !important;
  color: #000000 !important;
  background-image: none !important;
}

body.theme-high-contrast #hero-slideshow,
body.theme-high-contrast .image-gradient-30-height,
body.theme-high-contrast .image-gradient-70-height,
body.theme-high-contrast .hero-controls {
  display: none !important;
}

body.theme-high-contrast .hero-marker-container {
  position: static;
  padding: 2rem 0 0;
}

body.theme-high-contrast .hero-marker {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
}

body.theme-high-contrast .button,
body.theme-high-contrast button,
body.theme-high-contrast input[type="submit"],
body.theme-high-contrast input[type="button"],
body.theme-high-contrast input[type="reset"],
body.theme-high-contrast .tag,
body.theme-high-contrast .chip,
body.theme-high-contrast .category-filter__root,
body.theme-high-contrast .category-filter__chip,
body.theme-high-contrast .block-card,
body.theme-high-contrast .fixed-slide,
body.theme-high-contrast .card,
body.theme-high-contrast .card-header,
body.theme-high-contrast .card-content,
body.theme-high-contrast .card-footer,
body.theme-high-contrast .info-card,
body.theme-high-contrast .circle-expand,
body.theme-high-contrast .slider-controls .slider-nav {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

body.theme-high-contrast .card,
body.theme-high-contrast .card *,
body.theme-high-contrast .block-card,
body.theme-high-contrast .block-card *,
body.theme-high-contrast .fixed-slide,
body.theme-high-contrast .fixed-slide *,
body.theme-high-contrast .button,
body.theme-high-contrast .button *,
body.theme-high-contrast button,
body.theme-high-contrast button *,
body.theme-high-contrast .chip,
body.theme-high-contrast .chip *,
body.theme-high-contrast .category-filter__root,
body.theme-high-contrast .category-filter__root *,
body.theme-high-contrast .category-filter__chip,
body.theme-high-contrast .category-filter__chip * {
  color: #ffffff !important;
}

body.theme-high-contrast .card [class*="has-background-"],
body.theme-high-contrast .block-card [class*="has-background-"],
body.theme-high-contrast .fixed-slide [class*="has-background-"],
body.theme-high-contrast .square_box {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
}

body.theme-high-contrast .button:hover,
body.theme-high-contrast .button:focus-visible,
body.theme-high-contrast button:hover,
body.theme-high-contrast button:focus-visible {
  background-color: #ffffff !important;
  color: #000000 !important;
}

body.theme-high-contrast .button:hover *,
body.theme-high-contrast .button:focus-visible *,
body.theme-high-contrast button:hover *,
body.theme-high-contrast button:focus-visible * {
  color: #000000 !important;
}

body.theme-high-contrast .category-filter__root,
body.theme-high-contrast .category-filter__chip {
  border-radius: 0.5rem;
}

body.theme-high-contrast .category-filter__root img,
body.theme-high-contrast .category-filter__chip img {
  filter: brightness(0) invert(1);
}

body.theme-high-contrast .block-card img,
body.theme-high-contrast .fixed-slide img {
  filter: grayscale(1) contrast(1.1);
}

body.theme-high-contrast input,
body.theme-high-contrast select,
body.theme-high-contrast textarea,
body.theme-high-contrast .input,
body.theme-high-contrast .textarea,
body.theme-high-contrast .select select {
  border: 2px solid #000000 !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: none !important;
}

body.theme-high-contrast .input::placeholder,
body.theme-high-contrast .textarea::placeholder {
  color: rgba(0, 0, 0, 0.7) !important;
}

body.theme-high-contrast :focus-visible {
  outline: 3px solid #000000 !important;
  outline-offset: 3px;
  box-shadow: none !important;
}

body.theme-high-contrast [class*="gradient"],
body.theme-high-contrast .image-gradient-30-height,
body.theme-high-contrast .hero-image-section::before,
body.theme-high-contrast .hero-image-section::after {
  background-image: none !important;
}

body.theme-high-contrast .fi-events-feature__media::before {
  background: linear-gradient(180deg, rgba(14, 21, 44, 0.7) 0%, rgba(14, 21, 44, 0.95) 90%) !important;
}

html {
  font-size: 17px; /*z. B. für bessere Lesbarkeit*/
  font-weight: 500 !important; /* Basisgewicht*/
}

/* WICHTIG: Kein transform/filter/overflow an Vorfahren */
html, body { overflow-x: hidden; }

a {
  color: var(--fi-color-link);
  transition: color 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease, opacity 0.3s ease;
}

a:hover,
a:focus {
  color: var(--fi-color-link);
}

a.is-light-on-hover:hover {
  opacity: 0.8;
}

.has-shadow {
  box-shadow: var(--fi-shadow-base);
}

.no-shadow {
box-shadow: none !important;
}

.has-shadow-light {
  box-shadow: var(--fi-shadow-light);
}


.has-top-shadow-light {
  box-shadow: var(--fi-shadow-top);
}

.has-bottom-shadow-light {
  box-shadow: var(--fi-shadow-bottom);
}

.negative-top-margin{
    margin-top: -5.5rem;
  }

.ratio-7-5 {
  position: relative;
  width: 100%;
  padding-top: 140%;

  > * {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
  }
}

 .is-fullvw {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

.no-border {
  border: none !important;
}

.image.is-150x150 {
  width: 150px;
  height: 150px;
}

.is-cover-img {
  width: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block !important;

}

.artikel-hero__figure {
  position: relative;
  width: 100%;
}

.artikel-hero__figure .image-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@media screen and (min-width: 1024px) {
  .artikel-hero__figure {
    aspect-ratio: 2 / 0.8;
    overflow: hidden;
  }

  .artikel-hero__figure > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.d-inline-block {
  display: inline-block;
}

.is-lineheight-small {
  line-height: 1.2 !important;
}

.has-letter-spacing-wide {
  letter-spacing: 0.07em;
}

.has-photo-tone-adjust-bg {
  position: relative;
}

.tags {
gap: .3rem !important;
}

.has-photo-tone-adjust-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.fi-events-feature {
  padding: 3rem 0;
}

.fi-events-feature__inner {
  display: flex;
  flex-direction: column;
}

.fi-events-feature__heading {
  color: var(--fi-color-primary);
}

.fi-events-feature__slider {
  margin-bottom: 1.5rem;
}

.fi-events-feature__track {
  display: flex;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
}

.fi-events-feature__slide {
  position: relative;
  overflow: hidden;
  box-shadow: var(--fi-shadow-light);
  display: flex;
  height: 100%;
}

.fi-events-feature__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 360px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.fi-events-feature__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 21, 44, 0.25) 0%, rgba(14, 21, 44, 0.9) 90%);
  pointer-events: none;
}

.fi-events-feature__media--empty {
  background: linear-gradient(135deg, rgba(56, 72, 135, 0.65), rgba(56, 72, 135, 0.4));
}

.fi-events-feature__media--compact {
  min-height: 320px;
}

.fi-events-feature__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fi-events-feature__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}


.fi-events-feature__bottom {
  display: flex;
  flex-direction: column;
}

.fi-events-feature__meta {

}

.fi-events-feature__action {
  display: flex;
  justify-content: flex-end;
}


.fi-events-feature__title-line {
  margin: 0;
  line-height: 1.25;
}


.fi-events-feature__empty {
  text-align: center;
}

.fi-events-feature__cta {
  display: flex;
  justify-content: center;
}

.fi-events-feature__cta .button,
.fi-events-feature__action .button {
  transition: opacity 0.2s ease;
  background-color: var(--bulma-primary);
  border-color: var(--bulma-primary);
  color: #ffffff;
}

.fi-events-feature__cta .button:hover,
.fi-events-feature__cta .button:focus-visible,
.fi-events-feature__action .button:hover,
.fi-events-feature__action .button:focus-visible {
  opacity: 0.85;
  background-color: var(--bulma-primary);
  border-color: var(--bulma-primary);
  color: #ffffff;
}

@media (max-width: 1024px) {
  .fi-events-feature__track {
  }

  .fi-events-feature__overlay {
  }
}

.fi-event-card-grid .fi-events-calendar__card {
  background: transparent;
}

.fi-events-calendar__media {
  min-height: 320px;
}

section[data-filter-module="veranstaltungskalender"] .fi-events-calendar__media {
  min-height: 360px;
}

.fi-events-calendar__card .fi-events-feature__tag-list {
  margin-bottom: 1rem;
}

.fi-events-calendar__card .fi-events-feature__bottom {
  gap: 0.75rem;
}

.fi-events-calendar__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fi-events-calendar__info-row {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.fi-events-calendar__info-row .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.35em;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0;
}

@media (max-width: 768px) {
  .fi-events-calendar__media {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .fi-events-feature__media {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .fi-events-feature__media {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .fi-events-feature {
    padding: 2.5rem 0;
  }

  .fi-events-feature__overlay {
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 1.25rem;
  }
}


body {
  color: var(--fi-color-text);
  background-color: var(--fi-color-background);
}
