:root {
  /* wichtige Bielefeld-Farben */
  --rot:          #e30014;  /* c01a */
  --primary:      #e30014;
  --rot-m:        #c40d0e;  /* c01b */
  --rot-d:        #ae0f0a;  /* c01c */
  --dunkelrot:    #ae0f0a;
  --primary-d:    #ae0f0a;
  --dunkelgrau:   #333333;
  --grau:         #888888;
  --mittelgrau:   #bbbbbb;
  --hellgrau:     #d9d9d9;
  --lichtgrau:    #f4f2f0;
  --lichtblau:    #dde5ef;

  --orange:       #f18700;  /* c02a */
  --orange-d:     #df6c02;  /* c02c */
  --gelb:         #ebbd00;  /* c03a */
  --hellgruen:    #a2c617;  /* c04a */
  --grasgruen:    #6eab27;  /* c05a */
  --gruen:        #008332;  /* c06a */
  --gruen-d:      #006e2b;  /* c06c */
  --dunkelgruen:  #00572b;  /* c07a */
  --mintgruen:    #6dbe97;  /* c08a */
  --hellblau:     #1ebcef;  /* c09a */
  --mittelblau:   #0091d6;  /* c10a */
  --dunkelblau:   #003b78;  /* c11a */
  --blau:         #003b78;  /* alias, c11a */
  --blau-d:       #0f265c;  /* c11c */
  --lila:         #6a1362;  /* c12a */
  --lila-m:       #5f125d;  /* c12b */
  --lila-d:       #470f51;  /* c12c */
  --pink:         #ce007f;  /* c13a */
  --pink-m:       #c0027b;  /* c13b */
  --pink-d:       #a7066f;  /* c13c */
  --graublau:     #81a3c3;  /* c14a */
  --graublau-d:   #6388a9;  /* c14c */
  --sand:         #bcaa81;  /* c15a */
  --taubenblau:   #608192;  /* c16a   graublaugruen */
  --graugruen:    #779686;  /* c17a */
  --weinrot:      #902834;  /* c18a */
  --braun:        #6d2f0d;  /* c19a */
  --dunkelbraun:  #65503b;  /* c20a */
  --oliv:         #aab287;  /* c21a */
}

@font-face {
  font-family : 'CeraBielefeld';
  src         : url("../fonts/CeraBielefeldWeb-Regular.woff2?v=1") format("woff2"), url("../fonts/CeraBielefeldWeb-Regular.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family : 'CeraBielefeld';
  src         : url("../fonts/CeraBielefeldWeb-RegularItalic.woff2?v=1") format("woff2"), url("../fonts/CeraBielefeldWeb-RegularItalic.woff") format("woff");
  font-style  : italic;
  font-display: swap;
}

@font-face {
  font-family : 'CeraBielefeld';
  src         : url("../fonts/CeraBielefeldWeb-Light.woff2?v=1") format("woff2"), url("../fonts/CeraBielefeldWeb-Light.woff") format("woff");
  font-weight : 300;
  font-display: swap;
}

@font-face {
  font-family : 'CeraBielefeld';
  src         : url("../fonts/CeraBielefeldWeb-Bold.woff2?v=1") format("woff2"), url("../fonts/CeraBielefeldWeb-Bold.woff") format("woff");
  font-weight : bold;
  font-display: swap;
}

body {
  font-family             : 'CeraBielefeld', Arial, sans-serif;
  -webkit-font-smoothing  : antialiased;
  -moz-osx-font-smoothing : grayscale;
  hyphens: none; /* Grundeinstellung, damit Hyphenator nicht unnoetig aktiv wird */
}

/* Header ggf. um die Höhe der Admin-Toolbar nach unten verschieben */
header {
  top : var(--drupal-displace-offset-top, 0px) !important;
}


@keyframes fade {
  from { opacity: 1.0; }
  50% { opacity: 0.5; }
  to { opacity: 1.0; }
}
@-webkit-keyframes fade {
  from { opacity: 1.0; }
  50% { opacity: 0.5; }
  to { opacity: 1.0; }
}

@supports ((-o-object-fit: cover) or (object-fit: cover)) {
  .gen-img-cover {
    position   : relative;
    width      : 100%;
    min-height : 100px
  }

  .gen-img-cover img {
    width              : 100%;
    height             : 100%;
    -o-object-fit      : cover;
    object-fit         : cover;
    -o-object-position : center;
    object-position    : center
  }
}

@media all and (-ms-high-contrast : none), (-ms-high-contrast : active) {
  .gen-img-cover {
    position   : relative;
    overflow   : hidden;
    width      : 100%;
    min-height : 100px
  }

  .gen-img-cover img {
    position   : absolute;
    top        : -9999px;
    right      : -9999px;
    bottom     : -9999px;
    left       : -9999px;
    margin     : auto;
    min-width  : 100%;
    min-height : 100%
  }
}

@supports not ((-o-object-fit: cover) or (object-fit: cover)) {
  .gen-img-cover {
    position   : relative;
    overflow   : hidden;
    width      : 100%;
    min-height : 100px
  }

  .gen-img-cover img {
    position   : absolute;
    top        : -9999px;
    right      : -9999px;
    bottom     : -9999px;
    left       : -9999px;
    margin     : auto;
    min-width  : 100%;
    min-height : 100%
  }
}


/* Container-Breite und Schrift bei grossen Screens erweitern */
@media (min-width: 1440px) {
  html {
    font-size : 17px;
  }
  .container {
    max-width : 1320px;
  }
}
@media (min-width: 1800px) {
  html {
    font-size : 18px;
  }
  .container {
    max-width : 1640px;
  }
}

/* Debugging Breakpoints */
/*
.breakpoint-xxxl #container-content {
  outline: 2px solid darkgreen;
}
.breakpoint-xxl #container-content {
  outline: 2px solid mediumspringgreen;
}
.breakpoint-extra #container-content {
  outline: 2px solid greenyellow;
}
.breakpoint-large #container-content {
  outline: 2px solid saddlebrown;
}
.breakpoint-medium #container-content {
  outline: 2px solid pink;
}
.breakpoint-small #container-content {
  outline: 2px solid darkmagenta;
}
*/

a,
.ui-widget-content a {
  color : var(--rot);
  text-decoration : inherit;
}

a:hover, a:focus {
  color : var(--dunkelrot);
  text-decoration : none;
}
a:focus {
  outline: 1px dotted black;
  animation: fade 500ms 1;
}
article a:hover, article a:focus {
/*.ui-widget-content a:hover {*/
/*, .ui-widget-content a:focus {*/
  box-shadow: 0 1px var(--dunkelrot);
}

.contrast-mode a {
  color: black;
  box-shadow: 0 1px var(--grau);
}
.contrast-mode a:hover, .contrast-mode a:focus {
  box-shadow: 0 2px black;
}

.transparent {
  background-color : transparent !important
}

.bold {
  font-weight : bold
}

.light {
  font-weight : 300
}

h1, h2, h3 {
  font-weight : bold;
  font-size   : 1.8rem
}
p + h2 {
  margin-top: 1em;
}

/* etwas kleinere Schriften (z.B. in Link-Listen als Grid/Kacheln einstellbar) */
h3.smaller,
h4.smaller {
  font-size: 1.25rem;
}

@media (min-width : 768px) {
  h1, h2, h3 {
    font-size : 2.5rem
  }
}

@media (max-width : 575px) {
  h1, h2, h3 {
    max-width     : 100vw;
    overflow      : hidden;
    text-overflow : ellipsis
  }
}

/* Unterueberschriften in der Groesse anpassen */
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

/* Ueberschriften in Layout Builder Abschnitten */
div.section-title h1,
div.section-title h2,
div.section-title h3 {
  margin-bottom: 1em;
  width: 100%;
}

/* Schriftgrößen (auch für Verwendung im CKEditor */
.text-tiny {
  font-size: 0.65em;
}
.text-small {
  font-size: 0.85em;
}
.text-large {
  font-size: 1.35em;
}
.text-huge {
  font-size: 2em;
}

.breadcrumbs {
  font-size : 0.8rem
}

.post-title {
  font-weight : bold
}

.post-text-intro, .simple-text {
  font-size : 1.15rem
}

@media (min-width : 768px) {
  .post-text-intro, .simple-text {
    font-size : 1.3rem
  }
}

.post-inpage-title, .sidebar-box h3, .teaser-head {
  font-size : 1.5rem
}

.box-item h2 {
  font-size : 1.5rem
}

.meta-subline {
  font-weight    : bold;
  font-size      : .75em;
  text-transform : uppercase;
  letter-spacing : 0.07em
}

.box-item.linkliste li {
  font-size : 1.1rem
}

@media (min-width : 768px) {
  .box-item.linkliste li {
    font-size : 1.25rem
  }
}

@media (min-width : 992px) {
  body.enlarged-text-mode .nav-link-top {
    font-size : 21px !important
  }
}

.nav-brand:hover svg.logo path, .nav-brand:focus svg.logo path {
  fill: var(--dunkelrot);
}
.contrast-mode .nav-brand svg.logo path {
  fill: black;
}
.contrast-mode .nav-brand:hover svg.logo path, .contrast-mode .nav-brand:focus svg.logo path {
  fill: var(--grau);
}

ul.link-list {
  list-style : none;
  padding    : 0
}

ul.link-list a {
  padding-left : 1rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  color        : inherit;
  font-size    : 1rem;
  display      : block;
  position     : relative;
  text-decoration: none;
  width: 100%;
}

ul.list-border li {
  border-bottom: 1px solid rgba(125, 125, 125, 0.5);
}
ul.list-border li:first-child {
  border-top: 1px solid rgba(125, 125, 125, 0.5);
}
ul.list-border li > a {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
article .text-weiss ul.list-border li {
  border-color: rgba(255, 255, 255, 0.6);
}
article .text-weiss ul.list-border li:hover {
  border-bottom-color: white;
}
article .text-weiss ul.list-border a:hover {
  box-shadow: none;
}

/* Einstellungen fuer Pop-Up Dialoge von bootstrap zurueckstellen */
.ui-dialog, .ui-widget {
  font-family: inherit;
}
.ui-widget-content {
  color: inherit;
}
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
  font-family: inherit;
  font-size: inherit;
}

.text-link-icon {
  font-size     : 0.78rem;
  padding-right : 4px;
  padding-left  : 1px
}
.text-link-icon-n {
  font-size: inherit;
}

.text-link-icon.bielefeld-ui-email {
  display           : inline-block;
  font-size         : 0.95rem;
  transform         : translateY(1px)
}

.arrow-link:before,
ul.link-list a:before,
.main-content .block-menu ul li.nav-item a:before,
.search-api-autocomplete-search li a:before {
  position           : absolute;
  transition         : left 0.2s ease;
  top                : 0.75rem;
  left               : 0;
  content: "";  /* kein content, da dieser sonst vorgelesen?! */
  speak: none;
  width: 0;
  height: 0;
  border-top: 0.25rem solid transparent;
  border-bottom: 0.25rem solid transparent;
  border-left: 0.4rem solid var(--rot);
}
ul.list-border a:before {
  top: 1rem;
}
.text-weiss ul.link-list a:before,
.contrast-mode .text-weiss ul.link-list a:before {
  border-left-color: white;
}
.contrast-mode ul.link-list a:before {
  border-left-color: black;
}
.arrow-link:hover:before, ul.link-list a:hover:before,
.arrow-link:focus:before, ul.link-list a:focus:before,
.main-content .block-menu ul li.nav-item a:hover:before,
.main-content .block-menu ul li.nav-item a:focus:before,
.search-api-autocomplete-search .ui-menu-item-wrapper.ui-state-active:before {
  left: 3px;
}

body.path-frontpage {
  overflow-x: hidden;
}

body {
  color               : black;
  overscroll-behavior : none;
  margin              : 0;
  padding             : 0
}


section {
  padding-bottom : 4rem;
  min-width: 100%;
}

.pb-x2 {
  padding-bottom : 8rem
}

.pb-x3 {
  padding-bottom : 12rem
}

.pt-x1 {
  padding-top : 4rem
}

/* Hilfsformate zur Korrektur von margins (z.B. bei masonry) */
.ms--3, .ml--3 { margin-left: -1rem; }
.me--3, .mr--3 { margin-right: -1rem; }
.ms--5, .ml--5 { margin-left: -3rem; }
.me--5, .mr--5 { margin-right: -3rem; }

.border-top-dotted {
  border-top: 1px dotted rgba(0,0,0,0.7);
}

.abs-center {
  position          : absolute;
  top               : 50%;
  left              : 50%;
  transform         : translate(-50%, -50%);
  display           : inline-block
}

.rotate-90 {
  transform: rotate(90deg);
}
.rotate-180 {
  transform: rotate(180deg);
}
.rotate-270 {
  transform: rotate(270deg);
}

/* Breite einer Box auf 80% der Höhe reduzieren (z.B. News-Detailbild) */
.max-width-80vh {
  max-width : 80vh;
  min-width : min(600px, 100%);
  margin: auto;
}


/* Rahmen bei Knoepfen von bootstrap_barrio rueckgaengig machen */
.generic-button,
.btn-primary,
.ui-dialog .btn-primary, .ui-dialog .button {
  display            : inline-block;
  text-align         : center;
  vertical-align     : middle;
  line-height        : 1.5;
  border-radius      : 2rem;
  background-color   : var(--primary);
  background-image   : none;
  border             : 0;
  color              : white;
  padding            : .5rem 1rem;
}
a, a.btn, .btn-primary, .generic-button {
  transition : color 0.3s ease, background-color 0.3s ease, filter 0.3s ease;
}

.webform-submission-form .form-actions .btn-primary {
  padding : .5rem 1rem;
}
.generic-button:hover, .generic-button:focus,
.btn-primary:hover, .btn-primary:focus,
.ui-dialog .btn-primary:hover, .ui-dialog .btn-primary:focus {
  background-color   : var(--primary-d);
  filter: grayscale(20%) brightness(0.9);
  color: white;
}
.generic-button:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled):active:focus {
  background-color: var(--primary-d);
  border: 0;
  filter: grayscale(40%);
  box-shadow: none;
}
.btn-primary.webform-button--reset, button[id^="edit-reset"] {
  background-color: var(--grau);
  margin-left: 1rem;
}
.btn-primary.webform-button--reset:hover, button[id^="edit-reset"]:hover,
.btn-primary.webform-button--reset:focus, button[id^="edit-reset"]:focus {
  background-color: var(--dunkelgrau);
}
.btn-primary.disabled, .btn-primary:disabled {
  background-color: var(--grau);
}
.text-weiss .btn-primary,
.text-weiss .generic-button,
.sidebar-box-red .btn-primary,
.sidebar-box-red .generic-button {
  filter: grayscale(10%);
}
.text-weiss .btn-primary:hover, .text-weiss .btn-primary:focus,
.text-weiss .generic-button:hover, .text-weiss .generic-button:focus,
.sidebar-box-red .btn-primary:hover, .sidebar-box-red .btn-primary:focus,
.sidebar-box-red .generic-button:hover, .sidebar-box-red .generic-button:focus {
  outline: 2px solid white;
  filter: grayscale(20%);

}

.contrast-mode .btn-primary, .contrast-mode .generic-button,
.contrast-mode .ui-dialog .btn-primary, .contrast-mode .ui-dialog .button {
  background-color: black;
  color: white;
}
.contrast-mode .generic-button:hover, .contrast-mode .generic-button:focus,
.contrast-mode .btn-primary:hover, .contrast-mode .ui-dialog .btn-primary:hover,
.contrast-mode .btn-primary:focus, .contrast-mode .ui-dialog .btn-primary:focus {
  background-color: var(--grau);
}
.contrast-mode .btn-primary.webform-button--reset, .contrast-mode button[id^="edit-reset"] {
  background-color: var(--grau);
}
.contrast-mode .btn-primary.webform-button--reset:hover, .contrast-mode button[id^="edit-reset"]:hover,
.contrast-mode .btn-primary.webform-button--reset:focus, .contrast-mode button[id^="edit-reset"]:focus {
  background-color: var(--dunkelgrau);
}

.generic-button.back::before, .generic-button.next::before,
.generic-button.up::before, .generic-button.down::before,
a.back::before, a.next::before, a.up::before, a.down::before {
  display: inline-block;
  line-height: 100%;
  padding-right: 0.2em;
  margin-left: -0.1em;
}
.generic-button.back::before, a.back::before {
  content: "\25C0"; /* triangle left "⯇ ◂ */
}
.generic-button.next::before, a.next::before {
  content: "\25B6"; /* triangle right "⯈ ▸ */
}
.generic-button.up::before, a.up::before {
  content: "\25B2"; /* triangle up "⯅" */
  vertical-align: text-bottom;
}
.generic-button.down::before, a.down::before {
  content: "\25BC"; /* triangle down "⯆" */
}

.generic-button.small {
  min-width: inherit;
  padding: 0.2rem 0.6rem;
}
.generic-button.wide {
  width: 100%;
}

.ellipsis {
  text-overflow : ellipsis;
  max-width     : 95%;
  overflow      : hidden;
  white-space   : nowrap;
  display       : inline-block
}


footer {
  background-color : var(--dunkelgrau);
  padding-top      : 2rem;
  padding-bottom   : 2rem;
}

@media (min-width: 768px) {
  html {
    --footer-height: 450px;
  }

  #container-content {
    margin-bottom: var(--footer-height);
  }

  footer {
    position : fixed;
    bottom   : 0;
    width    : 100%;
    z-index  : -1;
  }
}

.contrast-mode footer {
  background-color : black
}

footer hr {
  border-top : 4px solid var(--grau);
}
footer.text-weiss a {
  text-decoration: none;
}
footer.text-weiss p a:hover, footer.text-weiss p a:focus {
  text-decoration: underline;
}
footer.text-weiss li:hover, footer.text-weiss li:focus-within {
  border-bottom-color : white;
}

.social-icon-table {
  display: flex;
  justify-content: space-between;
}
.social-icon-table a {
  font-size : 2rem;
  padding: 0.5rem;
  display: inline-block;
  line-height: 1rem;
  border: 1px solid var(--grau);
  border-radius: 50%;
}
.social-icon-table a:hover, .social-icon-table a:focus {
  background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1));
  box-shadow: none;
  border-color: black;
}


.logo {
  width          : 60px
}


body.is-scrolled .logo {
  width : 32px
}

body.is-resizing .nav-wrap *, body.is-loading .nav-wrap * {
  transition         : none !important
}



.box-item {
  min-height         : 160px;
  width              : calc(100% - 20px);
  margin-bottom      : 20px;
  display            : block;
  color              : black;
  background-color   : white;
  transition         : color 0.25s ease, background-color 0.25s ease-out;
  position: relative;
}

.box-item .image-wrap {
  position : relative
}

.box-item .image-wrap img, .box-item .image-wrap svg {
  transform          : scale(1);
  transition         : -webkit-transform 1.3s cubic-bezier(0.18, 0.74, 0.36, 0.99);
  transition         : transform 1.3s cubic-bezier(0.18, 0.74, 0.36, 0.99), -webkit-transform 1.3s cubic-bezier(0.18, 0.74, 0.36, 0.99)
}
.box-item .image-wrap .svg-icon {
  text-align: center;
}
.box-item .image-wrap .svg-icon svg {
  max-width: 40%;
  margin: 0.3rem auto;
}

.box-item.image-only {
  background-color : var(--lichtgrau);
  min-height       : 160px;
  color            : white;
  position         : relative;
}

.box-item.image-only .text {
  z-index : 4;
  top     : 0;
  height  : 100%;
  width   : 100%
}

.box-item.linkliste {
  color : black !important
}

.contrast-mode .box-item.linkliste {
  color : black !important
}

.box-item.linkliste ul {
  list-style : none
}

.box-item.linkliste ul li {
  margin : 0.25rem 0
}

.box-item.linkliste a {
  color              : black;
  transition         : color 0.25s ease
}

.box-item.linkliste a:hover, .box-item.linkliste a:focus {
  color              : var(--primary);
  text-decoration    : none;
  transition         : color 0.25s ease
}

.contrast-mode .box-item.linkliste a:hover, .contrast-mode .box-item.linkliste a:focus {
  color : black
}

.contrast-mode .box-item.linkliste a:hover, .contrast-mode .box-item.linkliste a:focus {
  text-decoration : underline
}

.box-item.linkliste:hover, .box-item.linkliste:focus {
  color : black !important
}

.contrast-mode .box-item.linkliste:hover, .contrast-mode .box-item.linkliste:focus {
  color : black !important
}

a.box-item:hover, a.box-item:focus {
  background-color   : var(--primary);
  transition         : color 0.25s ease, background-color 0.25s ease;
  color              : white !important;
  fill: white;
}

.contrast-mode a.box-item:hover, .contrast-mode a.box-item:focus {
  background-color : black
}

a.box-item:hover .image-wrap img, a.box-item:focus .image-wrap img,
a.box-item:hover .image-wrap svg, a.box-item:focus .image-wrap svg {
  transform          : scale(1.1);
  transition         : -webkit-transform 1.3s cubic-bezier(0.18, 0.74, 0.36, 0.99);
  transition         : transform 1.3s cubic-bezier(0.18, 0.74, 0.36, 0.99), -webkit-transform 1.3s cubic-bezier(0.18, 0.74, 0.36, 0.99)
}

a.box-item:hover .image-wrap:after, a.box-item:focus .image-wrap:after {
  opacity : 0.8
}

.box-item:hover .text::before, .box-item:focus .text::before {
  opacity            : 0;
  transition         : opacity 0.5s ease
}

/* bei Grid-Darstellung werden die Abstaende durch BS-Klassen erzeugt */
.grid-item .box-item {
  width: 100%;
  margin-bottom: 15px;
}

.box-item .image-wrap::after {
  content            : "";
  position           : absolute;
  width              : 100%;
  height             : 100%;
  background-color   : var(--primary);
  opacity            : 0;
  transition         : opacity 0.25s ease;
  z-index            : 2;
  top                : 0;
  left               : 0
}

.contrast-mode .gen-after-color::after,
.contrast-mode .box-item .image-wrap::after {
  background-color : black
}


/* Formatierungen fuer Bild als Hintergrund in Box-Item */
.box-item.masonry-view-item .image-wrap img {
  min-width: 100%;
}
.box-item.background-cover .image-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.box-item.background-cover .image-wrap img {
  min-width: 100%;
  height: 100%;
  max-width: inherit;
  width: inherit;
}
.box-item.background-cover .image-wrap .field--name-field-media-image {
  margin: 0;
  height: 100%;
}
.contrast-mode .box-item.image-only .text::before {
  background-color: rgba(0,0,0,0.5);
}

.accordion {
  margin-bottom : 1rem;
}
.accordion-item {
  --bs-accordion-color: ;
  --bs-accordion-bg: transparent;
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-border-width: 0;
  --bs-accordion-border-color: var(--hellgrau);
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-y: 0.2rem;
  /*color: var(--bs-accordion-color);*/
  /*background-color: var(--bs-accordion-bg);*/
  /*border: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);*/
  border-bottom: 1px solid var(--hellgrau);
}

.content article .akkordeon {
  border-bottom: 1px solid var(--hellgrau);
}
.content article .akkordeon .card-header {
  border-bottom: 0;
}
/* Akkordeon-Überschrift (Button) ausblenden (z.B. da das Element über einen anderen Knopf gesteuert wird) */
.akkordeon.akkordeon-hide-header > .card-header {
  display: none;
}

.accordion-item .accordion-header,
.akkordeon .card-header {
  position         : relative;
  border-top       : none;
  border-bottom    : 1px solid var(--hellgrau);
  background-color : transparent;
  border-radius    : 0;
  padding          : 0;
}
.accordion-item .accordion-header {
  border-bottom: 0;
}
.akkordeon .card-header-active {
  padding-bottom: 0;
}

.akkordeon .card-header p:empty {
  display : none
}

.akkordeon .card-header .btn {
  width: 100%;
  text-align: inherit;
  padding  : 0;
}
.akkordeon .card-body {
  padding-left: 0;
  padding-right: 0;
}
.akkordeon .card-header > button > * {
  display: block;
  margin-left: 1em;
  margin-top: 0.4em;
  margin-bottom: 0.4em;
  line-height: 120%;
}

.accordion-item .accordion-button {
  border-top: 1px solid transparent;
  font-weight: bold;
}
.accordion-item .accordion-button:after {
  display: none;
}

.accordion-item .accordion-button:before,
.akkordeon .card-header button .accordion-title:before {
  content: "";  /* kein content, da dieser sonst vorgelesen?! */
  speak: none;
  border-top: 0.25em solid transparent;
  border-bottom: 0.25em solid transparent;
  border-left: 0.5em solid var(--primary);
  display: inline-block;
  margin-right: 0.4em;
  margin-bottom: 0.1em;
  margin-left: -1em;
  transition: all 0.4s ease;
  transform: rotate(90deg);
  position: absolute;
  top: 0.85em;
}
.accordion-item .accordion-button:before {
  border-top-width : 0.35em;
  border-bottom-width : 0.35em;
  border-left-width : 0.8em;
  top: 0.6em;
  margin-left: -1.2em;
}
.accordion-item .accordion-button.collapsed:before,
.akkordeon button.collapsed .accordion-title:before {
  transform: rotate(0deg);
}

.accordion-item .accordion-button:hover,
.accordion-item .accordion-button:focus,
.accordion-item .accordion-button:not(.collapsed),
.akkordeon .card-header button:hover,
.akkordeon .card-header button:focus,
.akkordeon .card-header button:not(.collapsed) {
  color              : var(--primary);
  box-shadow: none;
  border-color: transparent;
  border-top: 1px solid var(--hellgrau);
}
.accordion-item .accordion-button.collapsed:hover:before,
.accordion-item .accordion-button.collapsed:focus:before,
.akkordeon button.collapsed:hover .accordion-title:before,
.akkordeon button.collapsed:focus .accordion-title:before {
  transform: rotate(5deg) translate(3px, 0);
}

.sidebar-box-red .accordion-item,
.sidebar-box-red.akkordeon .accordion-title {
  --primary: white;
}

.sidebar-box.akkordeon .card-body {
  padding-left: 1rem;
  padding-right: 1rem;
}
.sidebar-box-red.akkordeon .accordion-title {
  color : white;
}
.sidebar-box-red.akkordeon .accordion-title:before {
  border-left-color: white;
}

.contrast-mode button .accordion-title:before {
  border-left-color: revert;
}
.contrast-mode .akkordeon button:hover, .contrast-mode .akkordeon button:focus,
.contrast-mode .akkordeon button:not(.collapsed) {
  color : revert;
  text-decoration: underline;
}


.parallax-window {
  height     : 420px;
  max-height : 100vh;
  margin-top : -15px;
  margin-bottom: -15px;
}
.parallax-window.parallax-inactive {
  margin-bottom: inherit;
}

.parallax-window-taller {
  height     : 500px;
  max-height : 70vh
}

@media (min-width : 768px) {
  .parallax-window-taller {
    height     : 62.5vw;
    max-height : 70vh
  }
}

.parallax-mirror {
  z-index : 1 !important
}

.after-parallax {
  margin-top : -15px
}

.section-after-parallax {
  margin-top  : -15px;
  padding-top : 4rem
}


.intro {
  position : relative
}
.intro-text {
  position    : absolute;
  top         : 36%;
  left        : 50%;
  transform   : translate(-50%, -50%);
  font-weight : bold;
  font-size   : calc(max(4rem, min(11vw, 7rem)));
  color       : white;
  text-shadow : 0 0 0.3em rgba(64, 64, 64, 0.5);
}
.contrast-mode .intro-text {
  color : black;
  text-shadow: 0 0 0.5em white;
}

.intro-img {
  height             : calc(80vh - 66px);
  transition         : height 0.2s ease;
  overflow           : hidden
}

@media (min-width : 992px) {
  .intro-img {
    height : calc(80vh - 120px);
  }
}

.intro-img img {
  transform          : scale(1.2);
  transition         : -webkit-transform 0.1s cubic-bezier(0.18, 0.74, 0.36, 0.99);
  transition         : transform 0.1s cubic-bezier(0.18, 0.74, 0.36, 0.99), -webkit-transform 0.1s cubic-bezier(0.18, 0.74, 0.36, 0.99)
}

.intro-img img.visible {
  transform          : scale(1);
  transition         : -webkit-transform 1.3s cubic-bezier(0.18, 0.74, 0.36, 0.99);
  transition         : transform 1.3s cubic-bezier(0.18, 0.74, 0.36, 0.99), -webkit-transform 1.3s cubic-bezier(0.18, 0.74, 0.36, 0.99)
}

.intro .searchbar {
  position      : absolute;
  max-width     : 70%;
  width         : 30rem;
  bottom        : 12%;
  top           : auto;
  left          : 50%;
  transform     : translateX(-50%);
  margin-bottom : 1rem;
  z-index: 1000;
}

.searchbar-overlay {
  background-color: rgba(0,0,0,0.7);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
}
.intro .searchbar-overlay {
  z-index: 900;
}

.searchbar-inner {
  transition         : .3s ease-in-out;
}

.searchbar .form-item-keys {
  width         : 100%;
}
.searchbar .form-actions {
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
}
.searchbar .form-item-keys,
.searchbar .form-actions {
  margin: 0;
  padding: 0;
}
.searchbar .searchbar-text {
  height        : 3rem;
  padding-left  : 1.5rem;
  padding-right : 3rem;
  border-radius: 2rem;
}
.searchbar.autocomplete-open .js-form-type-search-api-autocomplete {
  background-color: white;
  border-radius: 1.6rem 1.6rem 0 0;
  padding-bottom: 5px;
}
.searchbar.autocomplete-open .searchbar-text {
  outline: 0;
  border: 0;
  /*background-color: var(--lichtgrau);*/
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.searchbar.autocomplete-open .searchbar-text:focus {
  border-color: transparent;
  /*box-shadow: none;*/
}
.js input.form-autocomplete.searchbar-text {
  background-image: none;
}

.searchbar .form-submit {
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  font-size: 1px;
  color: transparent;
}
.searchbar .form-submit:after {
  content: "\e917";
  font-family: 'bielefeld-ui', system-ui;
  font-size: 1.3rem;
  position: absolute;
  top: 0.3rem;
  height: 2rem;
  left: 0.6rem;
  color: white;
}


.search-api-autocomplete-search.ui-widget-content {
  box-shadow: 0 5px 5px rgba(0,0,0, 0.25);
  padding: 1rem;
  border-radius: 0 0 2rem 2rem;
  border: 0;
  z-index: 1300;
}

.search-api-autocomplete-search.ui-widget-content {
  /*display: block !important; !* debug *!*/
}

.search-api-autocomplete-search .ui-menu-item-wrapper {
  border-bottom : 1px solid var(--hellgrau);
}
.search-api-autocomplete-search .ui-menu-item:last-child {
  border: 0;
}
.search-api-autocomplete-search .ui-menu-item {
  background-color : inherit;
}
.search-api-autocomplete-search .ui-menu-item:last-of-type .ui-menu-item-wrapper {
  border-bottom-color: transparent;
}
/*.search-api-autocomplete-search .ui-menu-item:hover,*/
.search-api-autocomplete-search .ui-menu-item .ui-menu-item-wrapper.ui-state-active {
  background: none;
  border-color: var(--primary);
}
.search-api-autocomplete-search .ui-menu-item-wrapper {
  padding: 0.3rem 0.2rem;
}
.search-api-autocomplete-search .ui-menu-item:hover,
.search-api-autocomplete-search .ui-menu-item-wrapper.ui-state-active {
  background-color: unset;
}
.search-api-autocomplete-search .ui-menu-item .type-name {
  color: var(--primary);
  display : block;
  font-size: 0.75rem;
  font-weight: bolder;
  line-height: 110%;
}

.search-api-autocomplete-search li a::before {
  top: 0.9rem;
}
.search-api-autocomplete-search .ui-menu-item-wrapper.ui-state-active .search-api-autocomplete-suggestion {
  background-color: unset;
  color: inherit;
}

.search-api-autocomplete-search .ui-menu-item a {
  display      : inherit;
  padding-left : 1em;
}

.contrast-mode .search-api-autocomplete-search .type-name {
  color: inherit;
}
.contrast-mode .search-api-autocomplete-search .ui-state-active {
  border-color : black;
}
.contrast-mode .search-api-autocomplete-search a:before {
  border-left-color : black;
}



.modal {
  background : rgba(0, 0, 0, 0.5)
}

.modal-dialog, .ui-dialog {
  max-width : calc(100vw - 0px);
  width     : 1024px;
  margin    : auto;
  padding   : 0;
  z-index: 1050;
}

@media (min-width : 576px) {
  .modal-dialog, .ui-dialog {
    max-width : calc(100vw - 20px)
  }
}

@media (min-width : 768px) {
  .modal-dialog, .ui-dialog {
    max-width : 94vw
  }
}

.modal-content, .ui-dialog-content {
  padding       : 0 1rem 1rem;
  border        : none;
  border-radius : 0
}

@media (min-width : 768px) {
  .modal-content, .ui-dialog-content {
    padding : 0 2rem 2rem;
  }
}

.modal-header, .ui-dialog-titlebar {
  border            : none;
  display           : -webkit-box;
  display           : -ms-flexbox;
  display           : flex;
  -webkit-box-align : center;
  -ms-flex-align    : center;
  align-items       : center;
  padding           : 1rem 0;
  background-color: inherit;
}

@media (min-width : 768px) {
  .modal-header, .ui-dialog-titlebar {
    padding : 2rem 0
  }
}

.modal-header h2, .ui-dialog-title {
  font-size     : 1.5rem;
  margin-bottom : 0
}

/* angepasster Schliessen-Knopf fuer jQuery-UI-Dialoge (@see global.js) */
.ui-dialog .titlebar-close-btn {
  background-color: inherit;
  border: inherit;
  position: absolute;
  right: 0.5rem;
  font-size: 1.3rem;
  padding: 0.3rem;
  margin: inherit;
  top: inherit;
  width: inherit;
  height: inherit;
}

.ui-dialog .ui-dialog-title {
  float: inherit;
  margin: inherit;
  white-space: inherit;
  width: calc(100% - 5em);
  overflow: inherit;
  text-overflow: inherit;
  line-height: 120%;
}

.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  background-color: rgba(174,15,9,.5);
  border-color: var(--primary-d);
}
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus,
.btn-primary.focus, .btn-primary:focus,
.form-control:focus {
  box-shadow: 0 0 0 .2rem rgba(174,15,9,.5);
  border-color: var(--primary-d);
}

.modal-body {
  padding : 0
}

.modal-body .video-container {
  position       : relative;
  width          : 100%;
  padding-bottom : 56.3%;
  margin-bottom  : 2rem
}

.modal-body .video-container .video {
  position : absolute;
  top      : 0;
  left     : 0;
  width    : 100%;
  height   : 100%
}

.teaser {
  background-repeat : repeat;
  background-size   : 80px;
  color             : white;
  background-image  : url(../img/warning-bg.png);
  padding           : 1.5rem 10px;
  -webkit-animation : moving-bg 8s linear infinite;
  animation         : moving-bg 8s linear infinite
}

.contrast-mode .teaser {
  background-image : url(../img/warning-bg-black.png)
}

@media (min-width : 576px) {
  .teaser {
    padding : 2.5rem 0
  }
}

.teaser-head {
  margin-bottom : 1.5rem
}

.teaser-text {
  margin-bottom : 0.25rem
}

@-webkit-keyframes moving-bg {
  0% {
    background-position : 0
  }
  100% {
    background-position : 80px
  }
}

@keyframes moving-bg {
  0% {
    background-position : 0
  }
  100% {
    background-position : 80px
  }
}

@media screen and (-ms-high-contrast : active), screen and (-ms-high-contrast : none) {
  .subpage {
    overflow-y : hidden
  }
}

.path-frontpage .main-content {
  background-color: white;
}
.main-content.subpage {
  background-color : var(--lichtgrau)
}


.breadcrumbs {
  position    : relative;
  color       : var(--dunkelgrau);
  font-weight : normal;
  padding     : 0.625rem 0;
}

.contrast-mode .breadcrumbs, .contrast-mode .breadcrumbs .active {
  color : black
}

.contrast-mode .breadcrumbs {
  font-weight : bold
}

@media (min-width : 768px) {
  .breadcrumbs {
    padding : 1rem 15px
  }
}

.breadcrumbs a {
  color : var(--dunkelgrau);
}

.contrast-mode .breadcrumbs a {
  color : black
}

.breadcrumbs a:hover, .breadcrumbs a:focus  {
  color           : var(--primary);
  text-decoration : none;
}

.contrast-mode .breadcrumbs a:hover, .contrast-mode .breadcrumbs a:focus {
  color : black
}

.contrast-mode .breadcrumbs a:hover, .contrast-mode .breadcrumbs a:focus {
  text-decoration : underline
}

.subpage-image-bg .breadcrumbs {
  position           : fixed;
  top                : 66px;
  left               : 0;
  width              : 100vw;
  z-index            : 5;
  transition         : all 0.3s cubic-bezier(0.05, 0.5, 0.3, 1);
  padding-bottom     : 3rem;
  background         : linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%)
}

.contrast-mode .subpage-image-bg .breadcrumbs {
  background : black
}

.subpage-image-bg .breadcrumbs, .subpage-image-bg .breadcrumbs a,  .subpage-image-bg .breadcrumb-item.active {
  color : white
}

.subpage-image-bg .breadcrumbs a:hover, .subpage-image-bg .breadcrumbs a:focus {
  color : var(--primary);
}

.contrast-mode .subpage-image-bg .breadcrumbs a:hover,
.contrast-mode .subpage-image-bg .breadcrumbs a:focus {
  color : white
}

@media (min-width : 992px) {
  .subpage-image-bg .breadcrumbs {
    top : 120px
  }

  body.is-scrolled .subpage-image-bg .breadcrumbs {
    top : 66px
  }
}

.post-sidebar {
  margin-bottom : 2rem
}

.sidebar-box {
  color         : black;
  padding       : .75rem 1rem 2rem;
  margin-bottom : 2rem
}
.block-format-farbe {
  padding: 1rem;
}

@media (min-width : 576px) and (max-width : 991px) {
  .sidebar-box {
    padding : 2rem 1.5rem 2rem 2rem
  }
}

.sidebar-box h2 {
  font-size : 1.5rem
}
/* behelfsmaessige Korrektur auf norm. Schriftgroesse, wenn die Main-Region als sidebar-box definiert ist */
@media (min-width : 768px) {
  .layout__region--main .sidebar-box h2 {
    font-size: 2rem;
  }
}

.sidebar-box li a {
  position     : relative;
}

.sidebar-box li a:hover {
}

.sidebar-box-white {
  background-color : white;
}

.sidebar-box-transparent {
  background-color : transparent
}

.sidebar-box-red {
  background-color : var(--primary);
}

.contrast-mode .sidebar-box-red {
  background-color : black
}

.sidebar-box-red, .sidebar-box-red a,
.sidebar-box-red a::before, .sidebar-box-red ul.link-list a::before {
  color : white;
  border-left-color: white;
}
.contrast-mode .sidebar-box-red li a:hover, .contrast-mode .sidebar-box-red li a:focus {
  color: white;
}

ol, ul {
  padding-left: 2em;
}

article ul {
  list-style : none
}

article ul:not(.contextual-links, .page-link, .pagination, .link-list) > li::before {
  content     : "\2022";
  color       : var(--primary);
  font-size   : 1.2rem;
  font-weight : bold;
  display     : inline-block;
  width       : 1rem;
  margin-left : -1rem;
  vertical-align: top;
  line-height: 1.1em;
}
.contrast-mode article ul > li::before {
  color : black
}
.sidebar-box-red ul:not(.contextual-links, .page-link, .pagination, .link-list) > li::before,
.text-weiss ul:not(.contextual-links, .page-link, .pagination, .link-list) > li::before,
.contrast-mode .sidebar-box-red ul > li::before {
  color : white;
}

/* Listenpunkt in zweiter Ebene */
article ul:not(.contextual-links, .page-link, .pagination, .link-list) > li ul > li::before {
  content: "\26AC"; /* offener Kreis */
  font-weight: normal;
}
/* Listenpunkt ab dritter Ebene */
article ul:not(.contextual-links. .page-link, .pagination, .link-list) > li li ul > li::before {
  content: "\2043"; /* dicker Bindestrich */
  font-size: 1.3rem;
  line-height: 1rem;
}

/* Pager-Links (pages in views) */
.pagination {
  flex-wrap: wrap;
}
.page-link {
  color: var(--rot);
  margin-right : 0.5rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
.page-link:hover, .page-link:focus {
  color: inherit;
}
.page-item.active .page-link {
  background-color: var(--lichtgrau);
  border-color: var(--grau);
  color: var(--dunkelgrau);
  line-height: inherit;
}

.post-text-intro {
  margin-bottom : 1.2em;
  font-weight   : normal;
  line-height   : 1.5
}

@media (min-width : 768px) {
  .post-text-intro {
    margin-bottom : 1.5rem
  }
}

.post-inpage-title {
  color         : var(--rot);
  margin-bottom : 1.25rem;
}
* + .post-inpage-title {
  margin-top : 2.5rem;
}

.contrast-mode .post-inpage-title {
  color : black
}

@media (min-width : 768px) {
  p + .post-inpage-title, div + .post-inpage-title {
    margin-top : 3rem
  }
}

.post-title {
  margin-bottom : 1rem
}

@media (min-width : 768px) {
  .post-title {
    margin-bottom : 2rem
  }
}

.post-note {
  padding          : 1rem;
  background-color : var(--lichtgrau);
  border           : none;
  border-left      : 1px solid var(--rot);
  margin           : 1.5rem 0;
}

.contrast-mode .post-note {
  background-color : white
}

.contrast-mode .post-note {
  border : 2px solid black
}

.contrast-mode .post-note {
  border-left : 2px solid black
}

@media (min-width : 768px) {
  .post-note {
    margin : 1.5rem 0 1.5rem
  }
}
