/**
 ** Document
 **/

/* Bild/Text element floating text */

/* Image spacing utilities */
.wm-u-spacing-image {
  margin-top: var(--spacing-image-margin-top, 0);
  margin-right: var(--spacing-image-margin-right, 0);
  margin-bottom: var(--spacing-image-margin-bottom, var(--wm-spacing-s));
  margin-left: var(--spacing-image-margin-left, 0);
}

.wm-u-spacing-image.wm-u-auto {
  --spacing-image-margin-top: var(--wm-spacing-xxs);
  --spacing-image-margin-right: var(--wm-spacing-xs);
  --spacing-image-margin-bottom: var(--wm-spacing-xxs);
}

/* Base float utilities */
/* Common floats for auto-width */
:is(.wm-u-fl--m, .wm-u-fl--s).wm-u-auto {
  float: left !important;
}

:is(.wm-u-fr--m, .wm-u-fr--s).wm-u-auto {
  float: right !important;
}

/* Float utilities for small screens */
.wm-u-fl--s {
  float: left !important;
  --spacing-image-margin-right: var(--wm-spacing-s);
  --spacing-image-margin-bottom: var(--wm-spacing-s);
}

.wm-u-fr--s {
  float: right !important;
  --spacing-image-margin-left: var(--wm-spacing-s);
  --spacing-image-margin-bottom: var(--wm-spacing-s);
}

/* Width utilities */
.wm-u-w10, .wm-u-w25, .wm-u-w33, .wm-u-w50 {
  width: 100%;
}

/* Small screen float + width combinations */
/* Left floats */
.wm-u-fl--s:is(.wm-u-w10, .wm-u-w25, .wm-u-w33, .wm-u-w50, .wm-u-auto) {
  float: left !important;
}

.wm-u-fl--s.wm-u-w10 {
  min-width: 2rem;
  max-width: 10%;
  width: 10%;
}

.wm-u-fl--s.wm-u-w25 {
  min-width: 6rem;
  max-width: 25%;
  width: 25%;
}

.wm-u-fl--s.wm-u-w33 {
  min-width: 10rem;
  max-width: 33%;
  width: 33%;
}

.wm-u-fl--s.wm-u-w50 {
  min-width: 10rem;
  max-width: 50%;
  width: 50%;
}

.wm-u-fl--s.wm-u-auto {
  width: auto;
}

/* Right floats */
.wm-u-fr--s:is(.wm-u-w10, .wm-u-w25, .wm-u-w33, .wm-u-w50, .wm-u-auto) {
  float: right !important;
}

.wm-u-fr--s.wm-u-w10 {
  min-width: 2rem;
  max-width: 10%;
  width: 10%;
}

.wm-u-fr--s.wm-u-w25 {
  min-width: 6rem;
  max-width: 25%;
  width: 25%;
}

.wm-u-fr--s.wm-u-w33 {
  min-width: 10rem;
  max-width: 33%;
  width: 33%;
}

.wm-u-fr--s.wm-u-w50 {
  min-width: 10rem;
  max-width: 50%;
  width: 50%;
}

.wm-u-fr--s.wm-u-auto {
  width: auto;
}

/* Medium screen float + width combinations */
@media(min-width: 768px) {
  /* Float base classes */
  .wm-u-fl--m {
    float: left !important;
    --spacing-image-margin-bottom: var(--wm-spacing-s);
    --spacing-image-margin-right: var(--wm-spacing-s);
  }

  .wm-u-fr--m {
    float: right !important;
    --spacing-image-margin-bottom: var(--wm-spacing-s);
    --spacing-image-margin-left: var(--wm-spacing-s);
  }

  /* Left floats */
  .wm-u-fl--m:is(.wm-u-w10, .wm-u-w25, .wm-u-w33, .wm-u-w50, .wm-u-auto) {
    float: left !important;
  }

  .wm-u-fl--m.wm-u-w10 {
    min-width: 2rem;
    max-width: 10%;
    width: 10%;
  }

  .wm-u-fl--m.wm-u-w25 {
    min-width: 6rem;
    max-width: 25%;
    width: 25%;
  }

  .wm-u-fl--m.wm-u-w33 {
    min-width: 8rem;
    max-width: 33%;
    width: 33%;
  }

  .wm-u-fl--m.wm-u-w50 {
    min-width: 10rem;
    max-width: 50%;
    width: 50%;
  }

  .wm-u-fl--m.wm-u-auto {
    width: auto;
  }

  /* Align text with floated images  */
  .wm-u-fl--m.wm-u-spacing-image + p {
    margin-block-start: -0.35em;
  }

  /* Right floats */
  .wm-u-fr--m:is(.wm-u-w10, .wm-u-w25, .wm-u-w33, .wm-u-w50, .wm-u-auto) {
    float: right !important;
  }

  .wm-u-fr--m.wm-u-w10 {
    min-width: 2rem;
    max-width: 10%;
    width: 10%;
  }

  .wm-u-fr--m.wm-u-w25 {
    min-width: 6rem;
    max-width: 25%;
    width: 25%;
  }

  .wm-u-fr--m.wm-u-w33 {
    min-width: 8rem;
    max-width: 33%;
    width: 33%;
  }

  .wm-u-fr--m.wm-u-w50 {
    min-width: 10rem;
    max-width: 50%;
    width: 50%;
  }

  .wm-u-fr--m.wm-u-auto {
    width: auto;
  }
}

/* Clear Elements that come after Bild/Text Element */
/* Image Text Container with Modern Clearfix */

/* Flow root containment */
.wm-image-text {
  display: flow-root;
}

.wm-image-text {
  display: flow-root;
}

.wm-image-text :is(ul, ol, dl) {
  list-style-position: inside; /* Ensure list markers are inside the padding area */
}

/* Maintain existing clear for following elements */
.wm-image-text + * {
  clear: both;
}

/* Fix headings margin - headings within wm-image-text not first child! */
.wm-image-text :is(h1, h2, h3, h4, h5, h6, wm-anchor, .wm-e-h1, .wm-e-h3):not(:where(:first-child)) {
  margin-block-start: 0;
}

/* FOOTER custom styles  */
/* wm-list {
  hyphens: auto;
  -webkit-hyphens: auto;
} */

/* wm-footnote styles */
.wm-footnote {
  display:inline-block;
  font-size:0.7em;
  padding:0 .3em;
  text-align:center;
  vertical-align:top;
}

.vie-lst-horizontal {
    padding: 0;
    padding-inline-start: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--wm-spacing-xxs);
    list-style: none;
    align-items: baseline;
}
.vie-lst-horizontal a {
  word-break: normal;
}

.vie-lst-horizontal>li+li {
  border-left: 2px solid var(--wm-color-nebelgrau);
  padding-left: var(--wm-spacing-xs);
}

/* Modifier to remove borders */
.vie-lst-horizontal.no-border {
  row-gap: var(--wm-spacing-xxs);
  column-gap: var(--wm-spacing-s);
}

.vie-lst-horizontal.no-border>li+li {
  border-left: none;
  padding-left: 0;
}