/* titillium-web-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/titillium-web-v19-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* titillium-web-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Titillium Web';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/titillium-web-v19-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* titillium-web-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/titillium-web-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* titillium-web-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Titillium Web';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/titillium-web-v19-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* titillium-web-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/titillium-web-v19-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* titillium-web-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Titillium Web';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/titillium-web-v19-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* titillium-web-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/titillium-web-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* titillium-web-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Titillium Web';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/titillium-web-v19-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* titillium-web-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/titillium-web-v19-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

img,input[type="image"],video,embed,iframe,marquee,object,table{aspect-ratio:attr(width) / attr(height);}
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strike, strong, tt, var,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
}

a, abbr, acronym, address, applet, b, big, blockquote, body, center, cite, code, dd, del, dfn, div, dl, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, html, i, iframe, img, ins, kbd, label, legend, li, object, ol, p, pre, q, s, samp, small, span, strike, strong, sub, sup, tt, u, ul, var {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    vertical-align: baseline;
    background: transparent;
}

ol, ul {
    list-style: none;
    margin: 0;
}

table {
    border-collapse: separate;
    border-spacing: 0;
}
* {margin:0;padding:0;} 

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
*:before,
*:after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  font-size:100%;
  font-family: 'Titillium Web', sans-serif;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
  }

body {
  font-size: 100%;
  color:#153964;
  background-color: #fff;
  font-weight:300;
  -webkit-font-smoothing: antialiased;
    
}

figure.image--rounded {
    margin-bottom:30px;
}

figure.image--rounded img {
    border-bottom-right-radius: 16px;
    border-top-left-radius:16px;
}

figure.image img {
    width:100%;
    height:auto;
}

/* =========================================================
   Header und Navigation
   ========================================================= */

:root {
    --nav-width: 1200px;
    --nav-height: 78px;
    --nav-text: #173744;
    --nav-text-light: #46606c;
    --nav-hover: #006889;
    --nav-accent: #d4db00;
    --nav-marker: #c7d5dc;
    --nav-border: #dce3e6;
    --nav-submenu: #fff;
    --nav-mobile-submenu: #f4f7f8;
    --nav-shadow: 0 12px 30px rgb(23 55 68 / 14%);
    --nav-speed: 180ms ease;
}

/* Farbkonzepte: Diese Werte können projektspezifisch angepasst werden. */
.page-color-blue {
    --page-color: #7ea6ba;
}

.page-color-light-blue {
    --page-color: #9fc7dc;
}

.page-color-green {
    --page-color: #9bb77f;
}

.page-color-lime {
    --page-color: #c4d52f;
}

.page-color-yellow {
    --page-color: #ffdc00;
}

.page-color-beige {
    --page-color: #c9b79c;
}

/* =========================================================
   Headlines
   ========================================================= */
.colorbar {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    color: #c9dc8e;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.colorbar::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-right: 24px;
    flex: 0 0 auto;

    background: rgb(137, 196, 223);

    /* Oben links und unten rechts */
    border-radius: 2px 0 2px 0;

    /* Zweites und drittes Quadrat */
    box-shadow:
        12px 0 0 rgb(160, 191, 52),
        24px 0 0 rgb(248, 219, 0);
}

h1.headline-colorbar,
.subpage-stage h1,
.content.subpage h1 {
    font-weight:700;
    font-size:2.75rem;
    line-height:3.2rem;
}
h1.headline-colorbar:after {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    margin-top: 24px;
    margin-right: 50px;
    margin-bottom:30px;
    border-radius: 3px 0 3px 0;
    background: #8ac9e3;
    box-shadow: 25px 0 #99c52d, 50px 0 #ffdc00;
}

h2 {
    font-size:1.5625rem;
    font-weight: 700;
    line-height:2rem;
    margin:15px 0;
}

.elevator.subpage .subpage-stage h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 20px;
}
/* =========================================================
   Text
   ========================================================= */

#maincontent a:not(.breadcrumb__link,.cb-education-filter__option,.cb-box__main-link,.cb-box__button,.mg-news-latest-card__title-link,.mg-news-teaser-card__title-link,.mg-news-teaser-card__more,.mg-news-detail__back-button,.mg-news-detail__back-top-link,.mg-news-latest-card__more,.partner-school-card__link,.cooperation-partner__link,.education-profile-card__link,.action-box__button.action-box__button--yellow,.action-box__button.action-box__button--white,.action-box__button.action-box__button--outline,.resource-link-box.resource-link-box--light,.resource-link-box--dark,.navigation-card,.cb-quicklinks__link,.button,.download,.cb-icon-cards__card,.avh-news__headline-link,.cb-education-path__button) {
    color: rgb(10, 101, 130);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

#maincontent .cb-contact-cards__content a,
h3.event-list-item__title a {
    text-decoration: none !important;
}

#maincontent a.button {
    width: 100%;
    background: rgb(20, 50, 61);
    color: rgb(255, 255, 255);
    font-weight: 700;
    padding: 11px 14px;
    border-radius: 9px 0px;
    text-decoration: none;
    display: inline-block;
    width: auto;
}

#maincontent a.download {
    width: 100%;
    background: rgb(20, 50, 61);
    color: rgb(248, 219, 0);
    font-weight: 800;
    padding: 11px 25px 11px 55px;
    border-radius: 9px 0px;
    text-decoration: none;
    display: inline-block;
    width: auto;
    position: relative;
}

#maincontent a.download:before {
    content:"";
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23f8db00' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M12 12v6M9.5 15.5 12 18l2.5-2.5'/%3E%3C/svg%3E");
	background-position:center;
	background-repeat: no-repeat;
	background-size: 24px;
	position: absolute;
	width: 24px;
    height: 24px;
    margin-left: 0px;
    top: calc(50% - 12px);
    left: 24px;
}

#maincontent a.yellow-btn {
    width: 100%;
    background: rgb(248, 219, 0);
    color: rgb(20, 50, 61) !important;
    font-weight: 800;
    padding: 11px 25px;
    border-radius: 9px 0px;
    text-decoration: none !important;
    display: inline-block;
    width: auto;
    position: relative;
    font-weight:800;
}

a.frame-btn {
    width: 100%;
    background-color: transparent;
    color: rgb(20, 50, 61) !important;
    font-weight: 800;
    padding: 11px 25px;
    border-radius: 9px 0px;
    text-decoration: none !important;
    display: inline-block;
    width: auto;
    position: relative;
    font-weight:800;
    border:1.5px solid rgb(212, 221, 224);
    text-decoration: none !important;
}

bold, strong {
    font-weight:700;
}

p {
    line-height:1.75rem;
    margin-bottom: 30px;
    font-size:1.03rem;
}

p.text-end {
    text-align:right;
}

p.bigfont {
    font-size: 110px;
    font-weight: 800;
    line-height: 110px;
}

p.mediumfont {
    font-size: 1.25rem;
    line-height:2rem;
    font-weight: 600;
}

p.smallfont {
    font-size: 0.825rem;
    line-height:1.5rem;
}

.elevator.subpage p.mediumfont {
    font-weight: 400;
}

.elevator.subpage[class*="page-color-"] p.mediumfont{
    color: rgb(42, 72, 83);
    font-size:19px;
    line-height: 1.55;
}

span.lightbluefont {
    color:rgb(137, 196, 223);
}

/*Listen*/
ul.list-square-dark,
ul.list-square-light,
ul.list-yellow,
#maincontent .frame-type-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.list-square-dark li,
ul.list-square-light li,
#maincontent ul.list-yellow li ,
#maincontent .frame-type-text ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 24px;
  line-height: 1.5;
  color: #526b78;
}
/* Dunkle quadratische Aufzählungszeichen */
ul.list-square-dark li::before,
#maincontent .frame-type-text ul li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 4px;
  width: 4px;
  height: 4px;
  background-color: #365867;
}

/* Helle quadratische Aufzählungszeichen */
ul.list-square-light li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 4px;
  width: 4px;
  height: 4px;
  background-color: #91a8b3;
}

/* Gelbe, leicht abgerundete Aufzählungszeichen */
#maincontent ul.list-yellow li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 8px;
  height: 5px;
  border-radius: 8px 2px 8px 2px;
  background-color: #f1d66d;
  transform: rotate(-40deg);
}

/* =========================================================
   Table
   ========================================================= */
figure.table table {
    width: 100%;
    table-layout: auto;
    font-size:14.5px;
    color: rgb(122, 141, 149);
}
figure.table table p {
    margin-bottom:0px;
}

figure.table table strong,
figure.table table bold {
    color: rgb(20, 50, 61);
    font-weight: 600;
}

figure.table table tr {
    border-bottom: 1px solid rgb(230, 236, 238);
}

figure.table table td {
    padding:8px 0;
}

.frame-default > figure.table {
    border: 1px solid rgb(228, 233, 235);
    border-radius: 14px 0;
    padding:0;
}

.frame-default > figure.table table td {
    padding:10px 20px;
}

.frame-default > figure.table table tr:last-child {
    border-bottom:0;
}
/* =========================================================
   Video
   ========================================================= */
figure.video {
    width:100%;
    margin-bottom:50px;
}
.video-embed video {
    border-radius:20px 0 20px;
    width:100%;
    height:auto;
}
.video {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0 0 16px 0;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-embed-item {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gelber Kreis */
.video-embed::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: calc(50% - 28px);
    left: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffd500;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Play-Dreieck */
.video-embed::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: calc(50% - 28px);
    left: calc(50% + 3px);
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #14313d;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Text über dem Video */
.video-caption {
    position: absolute;
    z-index: 2;
    top: calc(50% + 20px);
    left: 50%;
    width: calc(100% - 40px);
    text-align: center;
    color: #fff;
    line-height: 1.6;
    transform: translateX(-50%);
    pointer-events: none;
    font-size:0.91rem;
}
.video-caption:first-line {
    font-weight:700;
    font-size:1.1rem;
}
.video-embed::before,
.video-embed::after,
.video-caption {
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

/* Während der Wiedergabe alles ausblenden */
.video.is-playing .video-embed::before,
.video.is-playing .video-embed::after,
.video.is-playing .video-caption {
    opacity: 0;
    visibility: hidden;
}

/* Beschreibung nach dem ersten Start dauerhaft ausblenden */
.video.has-played .video-caption {
    opacity: 0;
    visibility: hidden;
}
/* =========================================================
   Spacer
   ========================================================= */
.spacer {
  padding: 75px 0;
  background-size: cover;
}
.spacer.darkblue {
    background-color:#14323d;
    color:#fff;
}

.spacer.lightblue {
    background-color:rgba(223, 234, 239,1);
}

.spacer.lightgray  {
    background: rgb(244, 247, 248);
    border-top: 1px solid rgb(233, 238, 240);
}

.spacer.nopad {
    padding:0;
}

.split-hero > .col-md-6:first-child {
    padding-left: max(12px, calc((100vw - 1200px) / 2 + 12px));
    padding-right: 24px;
}

.content.subpage section:nth-child(2).spacer {
    padding: 30px 0 75px;
}

.subpage-stage.spacer {
    padding: 30px 0;
    color:#000;
}

.elevator.subpage.page-color-yellow {
    background: rgb(251, 244, 217);
    border-bottom: 1px solid rgb(224, 231, 227);
}

.elevator.subpage.page-color-light-blue {
    background: rgb(233, 238, 243);
    border-bottom: 1px solid rgb(224, 231, 227);
}

.elevator.subpage.page-color-blue {
    background: rgb(226, 233, 238);
    border-bottom: 1px solid rgb(224, 231, 227);
}

.elevator.subpage.page-color-lime {
    background: rgb(240, 242, 223);
    border-bottom: 1px solid rgb(224, 231, 227);
}

.elevator.subpage.page-color-green {
    background: rgb(233, 238, 226);
    border-bottom: 1px solid rgb(224, 231, 227);
}

.elevator.subpage.page-color-beige {
    background: rgb(239, 231, 221);
    border-bottom: 1px solid rgb(224, 231, 227);
}

/* =========================================================
   Columns
   ========================================================= */
.container-fluid div[class^="col-md"] {
    padding-left:0;
    padding-right:0;
}
@media (min-width: 991px) {
    .row.hcentered {
        display:flex;
        align-items: center;
    }
}
@media (max-width: 991px) {
    .row.hcentered {
        padding:50px 0px;
    }
    
    p.bigfont {
        font-size: 5rem;
        font-weight: 800;
        line-height: 5rem;
    }
}

.container-fluid .row.indent {
    max-width:1200px;
    margin:0 auto;
}

/* =========================================================
   Navigation
   ========================================================= */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* Header */

.site-header {
    position: fixed;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--nav-border);
    width:100%;
}

.site-header__inner {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 150px;
    align-items: center;
    width: calc(100% - 40px);
    max-width: var(--nav-width);
    min-height: var(--nav-height);
    margin-inline: auto;
}


/* Logo */

.site-header__brand {
    display: flex;
    align-items: center;
}

.site-header__logo {
    display: block;
    line-height: 0;
}

.site-header__logo-image {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
}


/* Hauptnavigation Desktop */

.site-navigation {
    min-width: 0;
}

.site-navigation__mobile-header {
    display: none;
}

.main-navigation {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.main-navigation ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-navigation__list {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.main-navigation__item {
    position: relative;
}

.main-navigation__item-inner {
    display: flex;
    align-items: stretch;
}

.main-navigation__link {
    display: flex;
    align-items: center;
    color: var(--nav-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.main-navigation__link--level-1 {
    min-height: var(--nav-height);
    padding: 0 10px;
    white-space: nowrap;
}

.main-navigation__link:hover,
.main-navigation__link:focus-visible,
.main-navigation__item.is-active
    > .main-navigation__item-inner
    > .main-navigation__link,
.main-navigation__item.is-current
    > .main-navigation__item-inner
    > .main-navigation__link {
    color: var(--nav-hover);
}


/* Pfeile */

.main-navigation__submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-height: var(--nav-height);
    padding: 0;
    margin-left: -8px;
    color: var(--nav-hover);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.main-navigation__submenu-toggle svg {
    width: 11px;
    height: 11px;
    transition: transform var(--nav-speed);
}

.main-navigation__item.is-submenu-open
    > .main-navigation__item-inner
    > .main-navigation__submenu-toggle
    svg {
    transform: rotate(180deg);
}


/* Dropdowns */

.main-navigation__submenu-wrapper {
    visibility: hidden;
    position: absolute;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity var(--nav-speed),
        visibility var(--nav-speed),
        transform var(--nav-speed);
}

.main-navigation__submenu {
    background: var(--nav-submenu);
    border: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
}


/* Ebene 2 */

.main-navigation__submenu-wrapper--level-2 {
    top: calc(100% - 8px);
    left: 0;
    width: 305px;
    padding-top: 8px;
    transform: translateY(8px);
}

.main-navigation__submenu--level-2 {
    padding: 8px 0;
    border-radius: 14px 0 14px 0px;
}

.main-navigation__item--level-2,
.main-navigation__item--level-2 > .main-navigation__item-inner {
    width: 100%;
}

.main-navigation__link--level-2 {
    position: relative;
    flex: 1;
    min-height: 42px;
    padding: 10px 38px;
    color: var(--nav-text-light);
    white-space: normal;
    font-weight:400;
}

.main-navigation__link--level-2::before,
.main-navigation__link--level-3::before {
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--nav-marker);
    border-radius: 1px;
    content: "";
    transform: translateY(-50%);
}

/* Seitenfarbe nur verwenden, wenn der Menülink selbst eine Farbklasse hat */
.main-navigation__link--level-2[class*="page-color-"]::before,
.main-navigation__link--level-3[class*="page-color-"]::before {
    background: var(--page-color);
}

/* Seitenfarbe nur verwenden, wenn der Menülink selbst eine Farbklasse hat */
.main-navigation__link--level-2[class*="page-color-"]::before,
.main-navigation__link--level-3[class*="page-color-"]::before {
    background: var(--page-color);
}

.main-navigation__link--level-2::before {
    left: 21px;
}

.main-navigation__item--level-2
    > .main-navigation__item-inner
    > .main-navigation__submenu-toggle {
    width: 36px;
    min-height: 42px;
    margin: 0;
    color: #7895a1;
}




/* Ebene 3 */

.main-navigation__submenu-wrapper--level-3 {
    top: -8px;
    left: calc(100% - 1px);
    width: 290px;
    padding-left: 8px;
    transform: translateX(8px);
}

.main-navigation__submenu--level-3 {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--nav-border);
    border-radius: 0 14px 14px 0px;
    box-shadow: var(--nav-shadow);
}

.main-navigation__submenu-heading {
    padding: 0 12px;
}

.main-navigation__submenu-heading-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 12px 10px;
    color: var(--nav-hover);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid var(--nav-border);
}

.main-navigation__submenu-heading-link:hover,
.main-navigation__submenu-heading-link:focus-visible {
    color: var(--nav-text);
}

.main-navigation__submenu-heading-link svg {
    flex: 0 0 auto;
}

.main-navigation__submenu-list--level-3 {
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.main-navigation__item--level-3 {
    width: 100%;
}

.main-navigation__link--level-3 {
    position: relative;
    min-height: 42px;
    padding: 10px 22px 10px 38px;
    color: var(--nav-text-light);
    font-size: 15px;
    font-weight: 400;
    white-space: normal;
}

.main-navigation__link--level-3::before {
    position: absolute;
    top: 50%;
    left: 22px;
    width: 6px;
    height: 6px;
    border-radius: 1px;
    content: "";
    transform: translateY(-50%);
}

.main-navigation__link--level-3:hover,
.main-navigation__link--level-3:focus-visible {
    color: var(--nav-hover);
    background: #f5f8f9;
}

.main-navigation__submenu-heading-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 18px 12px;

    text-decoration: none;

    border-bottom: 1px solid var(--nav-border);
}

.main-navigation__submenu-heading-text {
    flex: 1;

    color: var(--nav-text);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;

    letter-spacing: .05em;
    text-transform: uppercase;
}

.main-navigation__submenu-heading-link svg {
    flex: 0 0 auto;

    color: var(--nav-hover);
}

@media (min-width: 1101px) {
    .main-navigation__item:hover
        > .main-navigation__submenu-wrapper,
    .main-navigation__item:focus-within
        > .main-navigation__submenu-wrapper,
    .main-navigation__item.is-submenu-open
        > .main-navigation__submenu-wrapper {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translate(0);
    }
}


/* =====================================================
   Quicklinks
   ===================================================== */

.quicklinks {
    position: relative;
    justify-self: end;
}


/* =====================================================
   Kopf / Auslöser
   ===================================================== */

.quicklinks__header {
    display: flex;
    height: 44px;
    overflow: hidden;
    border-radius: 10px 0 10px 0;
}

/*
 * Der komplette Quicklinks-Kopf ist jetzt ein Button.
 * Er enthält sowohl den Text als auch den Pfeil.
 */
.quicklinks__root-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    height: 44px;
    padding: 0 13px 0 17px;

    appearance: none;
    color: #fff;
    background: var(--nav-text);
    border: 0;
    border-radius: 0;

    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    text-decoration: none;

    cursor: pointer;
    touch-action: manipulation;
}

/*
 * Falls ein Quicklinks-Eintrag keine Unterpunkte besitzt,
 * wird statt eines Buttons ein span ausgegeben.
 */
span.quicklinks__root-link {
    cursor: default;
}

/*
 * Die Beschriftung darf nicht unnötig umbrechen.
 */
.quicklinks__root-text {
    display: block;
    white-space: nowrap;
}


/* =====================================================
   Pfeil
   ===================================================== */

.quicklinks__toggle svg {
    display: block;
    flex: 0 0 auto;
    transition: transform var(--nav-speed);
}

.quicklinks.is-open .quicklinks__toggle svg {
    transform: rotate(180deg);
}


/* =====================================================
   Fokusdarstellung
   ===================================================== */

.quicklinks__toggle:focus {
    outline: none;
}

.quicklinks__toggle:focus-visible {
    outline: 3px solid var(--nav-accent);
    outline-offset: -3px;
}


/* =====================================================
   Aufklappmenü
   ===================================================== */

.quicklinks__menu {
    visibility: hidden;
    position: absolute;
    z-index: 120;
    top: calc(100% + 8px);
    right: 0;

    width: 240px;
    max-width: calc(100vw - 32px);

    padding: 8px 0;
    margin: 0;

    opacity: 0;
    background: #fff;
    border: 1px solid var(--nav-border);
    border-radius: 14px 0 14px 0;
    box-shadow: var(--nav-shadow);
    list-style: none;

    pointer-events: none;
    transform: translateY(8px);

    transition:
        opacity var(--nav-speed),
        visibility var(--nav-speed),
        transform var(--nav-speed);
}

/*
 * Die Sichtbarkeit wird ausschließlich über JavaScript
 * und die Klasse .is-open gesteuert.
 *
 * Kein :focus-within verwenden. Ansonsten könnte das Menü
 * auf Touch-Geräten sichtbar bleiben, solange der Button
 * noch den Fokus besitzt.
 */
.quicklinks.is-open .quicklinks__menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


/* =====================================================
   Einträge
   ===================================================== */

.quicklinks__item {
    padding: 0;
    margin: 0;
}

.quicklinks__link {
    display: flex;
    position: relative;
    align-items: center;

    min-height: 42px;
    padding: 10px 40px 10px 21px;

    color: var(--nav-text-light);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.quicklinks__link:hover,
.quicklinks__link:focus-visible {
    color: var(--nav-hover);
    background: #f5f8f9;
}

.quicklinks__link:focus {
    outline: none;
}

.quicklinks__link:focus-visible {
    outline: 2px solid var(--nav-hover);
    outline-offset: -2px;
}


/* =====================================================
   Aktiver Quicklink
   ===================================================== */

.quicklinks__item.is-active > .quicklinks__link,
.quicklinks__item.is-current > .quicklinks__link {
    color: var(--nav-hover);
    background: #f5f8f9;
}


/* =====================================================
   Symbol für externe Links
   ===================================================== */

.quicklinks__link--external::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 21px;

    width: 14px;
    height: 14px;

    background-color: var(--nav-hover);

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h10M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / contain no-repeat;

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h10M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / contain no-repeat;

    transform: translateY(-50%) rotate(-45deg);
}


/* =====================================================
   Mobil / Touch
   ===================================================== */

@media (max-width: 1100px) {
    .quicklinks__root-link {
        min-height: 44px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .quicklinks__menu {
        width: min(240px, calc(100vw - 32px));
    }

    /*
     * Etwas größere Touch-Ziele für die Menüeinträge.
     */
    .quicklinks__link {
        min-height: 46px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}


/* =====================================================
   Reduzierte Bewegung
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    .quicklinks__menu,
    .quicklinks__toggle svg {
        transition: none;
    }
}


/* Fokus */

.main-navigation__link:focus-visible,
.main-navigation__submenu-toggle:focus-visible,
.quicklinks__root-link:focus-visible,
.quicklinks__toggle:focus-visible,
.quicklinks__link:focus-visible,
.nav-toggle:focus-visible,
.site-navigation__close:focus-visible {
    outline: 3px solid var(--nav-accent);
    outline-offset: 2px;
}


/* Burger */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--nav-text);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nav-toggle__icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
}

.nav-toggle__icon span {
    width: 100%;
    height: 3px;
    background: currentColor;
}


/* Backdrop */

.navigation-backdrop {
    visibility: hidden;
    position: fixed;
    z-index: 998;
    inset: 0;
    opacity: 0;
    background: rgb(10 30 39 / 48%);
    border: 0;
    pointer-events: none;
}


/* =========================================================
   Mobil
   ========================================================= */

@media (max-width: 1100px) {
    body.is-navigation-open {
        overflow: hidden;
    }

    .site-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
        width: calc(100% - 20px);
        min-height: 78px;
    }

    .site-header__logo-image {
        width: 135px;
    }

    /* Reihenfolge: Logo – Quicklinks – Burger */

    .site-header__brand {
        grid-column: 1;
    }

    .quicklinks {
        grid-column: 2;
    }

    .nav-toggle {
        display: flex;
        grid-column: 3;
    }

    .quicklinks__header {
        height: 42px;
    }

    .quicklinks__root-link {
        padding-left: 13px;
        font-size: 13px;
    }

    .quicklinks__menu {
        position: fixed;
        top: 69px;
        right: 20px;
        width: 240px;
    }

    /* Offcanvas */

    .site-navigation {
        visibility: hidden;
        position: fixed;
        z-index: 999;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(90vw, 430px);
        padding: 0 24px 32px;
        overflow-y: auto;
        opacity: 0;
        background: #fff;
        box-shadow: -16px 0 40px rgb(23 55 68 / 20%);
        pointer-events: none;
        transform: translateX(100%);
        transition:
            opacity 220ms ease,
            visibility 220ms ease,
            transform 220ms ease;
    }

    .site-header.is-navigation-open .site-navigation {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .site-header.is-navigation-open .navigation-backdrop {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .site-navigation__mobile-header {
        display: flex;
        position: sticky;
        z-index: 5;
        top: 0;
        align-items: center;
        justify-content: space-between;
        min-height: 80px;
        background: #fff;
        border-bottom: 1px solid var(--nav-border);
    }

    .site-navigation__mobile-logo img {
        display: block;
        width: 120px;
        height: auto;
    }

    .site-navigation__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: var(--nav-text);
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .main-navigation__list {
        display: block;
    }

    .main-navigation__item,
    .main-navigation__item-inner {
        width: 100%;
    }

    .main-navigation__item-inner {
        border-bottom: 1px solid var(--nav-border);
    }

    .main-navigation__link {
        flex: 1;
    }

    .main-navigation__link--level-1 {
        min-height: 56px;
        padding: 12px 4px;
        white-space: normal;
    }

    .main-navigation__submenu-toggle {
        width: 48px;
        min-height: 48px;
        margin: 0;
    }

    .main-navigation__submenu-wrapper {
        display: none;
        visibility: visible;
        position: static;
        width: 100%;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .main-navigation__item.is-submenu-open
        > .main-navigation__submenu-wrapper {
        display: block;
    }

    .main-navigation__submenu {
        padding: 0;
        background: var(--nav-mobile-submenu);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .main-navigation__submenu--level-3 {
        background: #eaf0f2;
    }

    .main-navigation__link--level-2 {
        min-height: 48px;
        padding: 10px 44px 10px 32px;
    }

    .main-navigation__link--level-2::before {
        left: 17px;
    }

    .main-navigation__link--level-3 {
        min-height: 46px;
        padding: 10px 20px 10px 42px;
    }

    .main-navigation__link--level-3::before {
        left: 28px;
    }

    .main-navigation__item--level-2
        > .main-navigation__item-inner
        > .main-navigation__submenu-toggle {
        width: 48px;
        min-height: 48px;
    }

    .main-navigation__item--level-2
        > .main-navigation__item-inner
        > .main-navigation__submenu-toggle
        svg {
        transform: rotate(0);
    }
}

@media (max-width: 480px) {
    .site-header__logo-image {
        width: 115px;
    }

    .quicklinks__root-link {
        padding-left: 11px;
        font-size: 12px;
    }

    .site-header__inner {
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
/* ==========================================================
   Main
   ========================================================== */
#maincontent {
    padding-top: 78px;
    position: relative;
}
@media (min-width: 991px) {
    .col-md-4.is-sticky {
      position: sticky;
    }

    @supports (position: sticky) {
      .is-sticky {
        position: sticky;
        top: 110px; 
      }
    }
}

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

footer.darkblue {
    padding-bottom: 0;
    color: #9aadb4;
    overflow: hidden;
}

footer p, footer li, footer span.copyright {
    font-size: 0.91rem;
    line-height: 1.5rem;
}

/* Oberen Footerbereich vom unteren Bereich absetzen */
footer.darkblue > .container {
    padding-bottom: 40px;
}

/* TYPO3-Standardabstände entfernen */
footer.darkblue .frame {
    margin-top: 0;
    margin-bottom: 0;
}
@media (min-width: 991px) {
    footer .frame-type-container_4_columns div[class^="col-md"] {
        width:23.333%
    }
    footer .frame-type-container_4_columns div[class^="col-md"]:first-child {
        width:30%;
    }
}
@media (max-width: 991px) {
    footer .frame-type-container_4_columns div[class^="col-md"] .frame-default {
        margin-bottom:30px;
    }
}

/* ==========================================================
   Logo
   ========================================================== */

footer.darkblue .ce-gallery {
    display: inline-block;
    padding: 10px 12px;
    margin-bottom: 20px;
    border-radius: 12px 0 12px 0;
    background: #fff;
}

footer.darkblue .ce-gallery figure,
footer.darkblue .ce-gallery .ce-row,
footer.darkblue .ce-gallery .ce-column {
    padding: 0;
    margin: 0;
}

footer.darkblue .ce-gallery img {
    display: block;
    width: 118px;
    height: auto;
}

/* ==========================================================
   Texte
   ========================================================== */

footer.darkblue p {
    color: #9aadb4;
    line-height: 1.7;
}

footer.darkblue .ce-bodytext p {
    margin: 0 0 20px;
}

footer.darkblue .ce-bodytext p:last-of-type {
    margin-bottom: 0;
}

/* Überschriften der Linkspalten */
footer.darkblue .frame-type-text > p:first-child {
    margin: 4px 0 18px;
}

footer.darkblue .frame-type-text > p:first-child strong {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ==========================================================
   Linklisten
   ========================================================== */

footer.darkblue ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

footer.darkblue .frame-type-text li {
    margin-bottom: 12px;
}

footer.darkblue .frame-type-text li:last-child {
    margin-bottom: 0;
}

footer.darkblue a {
    color: #9aadb4;
    text-decoration: none;
    transition: color 150ms ease;
}

footer.darkblue a span {
    color: inherit;
}

footer.darkblue a:hover {
    color: #fff;
}

footer.darkblue a:focus-visible {
    color: #fff;
    outline: 3px solid #ffdc00;
    outline-offset: 3px;
}

/* ==========================================================
   Farbquadrate unter der Adresse
   ========================================================== */

footer.darkblue .frame-type-textmedia .ce-bodytext::after {
    content: "";
    display: block;
    width: 13px;
    height: 13px;
    margin-top: 24px;
    margin-right: 50px;
    border-radius: 3px 0 3px 0;
    background: #8ac9e3;
    box-shadow:
        20px 0 #99c52d,
        40px 0 #ffdc00;
}

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

footer.darkblue .footer-bottom {
    width: 100%;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer.darkblue .footer-bottom .row {
    align-items: center;
}

footer.darkblue .copyright {
    color: #9aadb4;
}

footer.darkblue .footer-bottom .right {
    display: flex;
    justify-content: flex-end;
}

footer.darkblue .meta {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: flex-end;
}

footer.darkblue .meta li {
    margin: 0;
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 767.98px) {
    footer.darkblue > .container {
        padding-bottom: 36px;
    }

    footer.darkblue .frame-type-container_4_columns > .row {
        row-gap: 36px;
    }

    footer.darkblue .footer-bottom {
        padding: 24px 0;
    }

    footer.darkblue .footer-bottom .row {
        row-gap: 16px;
    }

    footer.darkblue .footer-bottom .right {
        justify-content: flex-start;
    }

    footer.darkblue .meta {
        gap: 12px 22px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
/* ==========================================================
   breadcrumb
   ========================================================== */
.breadcrumb-navigation {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top:35px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb__item {
    display: inline-flex;
    align-items: center;
    color: #263746;
}

/* Trennpunkt rein visuell – wird nicht vorgelesen */
.breadcrumb__item:not(:last-child)::after {
    content: "·";
    margin-inline: 0.25rem;
    color: #263746;
    font-weight: 400;
}

.breadcrumb__link {
    color: #00658a;
    font-weight: 600;
    text-decoration: none;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

.breadcrumb__link:hover {
    color: #004b68;
    text-decoration: underline;
}

.breadcrumb__link:focus-visible {
    color: #004b68;
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

.breadcrumb__current {
    color: #263746;
    font-weight: 400;
}

/* ==================================================
   News – Teaser-Grid
   Präfix: mg-news-teaser-
   ================================================== */

.mg-news-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}


/* Karte
   ================================================== */

.mg-news-teaser-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background-color: #fff;
    border: 1px solid #dce4e8;
    border-radius:20px 0 20px;
}


/* Bild
   ================================================== */

.mg-news-teaser-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 2.55 / 1;
    overflow: hidden;
    background-color: #edf1f3;
}

.mg-news-teaser-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.mg-news-teaser-card__image,
.mg-news-teaser-card__media img,
.mg-news-teaser-card__media video,
.mg-news-teaser-card__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mg-news-teaser-card__image {
    transition: transform 300ms ease;
}

.mg-news-teaser-card:hover .mg-news-teaser-card__image {
    transform: scale(1.025);
}


/* Inhalt
   ================================================== */

.mg-news-teaser-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-height: 15.5rem;
    padding: 2rem 2rem 1.75rem;
}


/* Kategorie und Datum
   ================================================== */

.mg-news-teaser-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;

    margin: 0 0 1.2rem;

    color: #879ca7;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.mg-news-teaser-card__category,
.mg-news-teaser-card__date {
    color: inherit;
}

.mg-news-teaser-card__separator {
    opacity: 0.75;
}


/* Überschrift
   ================================================== */

.mg-news-teaser-card__title {
    margin: 0;

    color: #15333d;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.mg-news-teaser-card__title-link {
    color: inherit;
    text-decoration: none;
}

.mg-news-teaser-card__title-link:hover,
.mg-news-teaser-card__title-link:focus-visible {
    color: #006e86;
    text-decoration: none;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}


/* Weiterlesen
   ================================================== */

.mg-news-teaser-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    margin-top: auto;
    padding-top: 1rem;

    color: #006e86;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.mg-news-teaser-card__more-icon {
    display: inline-block;
    font-size: 1.4em;
    line-height: 1;
    transition: transform 180ms ease;
}

.mg-news-teaser-card__more:hover,
.mg-news-teaser-card__more:focus-visible {
    color: #004e61;
    text-decoration: none;
    text-underline-offset: 0.15em;
}

.mg-news-teaser-card__more:hover .mg-news-teaser-card__more-icon,
.mg-news-teaser-card__more:focus-visible .mg-news-teaser-card__more-icon {
    transform: translateX(0.25rem);
}


/* Tastaturfokus
   ================================================== */

.mg-news-teaser-card__media-link:focus-visible,
.mg-news-teaser-card__title-link:focus-visible,
.mg-news-teaser-card__more:focus-visible {
    outline: 3px solid #006e86;
    outline-offset: 3px;
}


/* Tablet
   ================================================== */

@media (max-width: 74.999rem) {
    .mg-news-teaser-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Smartphone
   ================================================== */

@media (max-width: 47.999rem) {
    .mg-news-teaser-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mg-news-teaser-card {
        border-radius: 1.4rem;
    }

    .mg-news-teaser-card__content {
        min-height: 12.5rem;
        padding: 1.5rem;
    }

    .mg-news-teaser-card__meta {
        font-size: 0.95rem;
    }

    .mg-news-teaser-card__more {
        padding-top: 1.5rem;
    }
}


/* Reduzierte Animationen
   ================================================== */

@media (prefers-reduced-motion: reduce) {
    .mg-news-teaser-card__image,
    .mg-news-teaser-card__more-icon {
        transition: none;
    }
}

/* ==================================================
   News – einzelner hervorgehobener Beitrag
   Präfix: mg-news-latest-
   ================================================== */

.mg-news-latest {
    width: 100%;
    margin:30px 0;
}


/* Karte
   ================================================== */

.mg-news-latest-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    width: 100%;
    min-height: auto;
    overflow: hidden;

    background-color: #fff;
    border: 1px solid #dce4e8;
    border-radius: 20px 0 20px;
}


/* Bildbereich
   ================================================== */

.mg-news-latest-card__media {
    position: relative;
    min-width: 0;
    min-height: auto;
    overflow: hidden;
    background-color: #edf1f3;
}

.mg-news-latest-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.mg-news-latest-card__image,
.mg-news-latest-card__media img,
.mg-news-latest-card__media video,
.mg-news-latest-card__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mg-news-latest-card__image {
    transition: transform 300ms ease;
}

.mg-news-latest-card:hover .mg-news-latest-card__image {
    transform: scale(1.025);
}


/* Textbereich
   ================================================== */

.mg-news-latest-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    padding:80px 50px;
}


/* Kategorie und Datum
   ================================================== */

.mg-news-latest-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;

    margin: 0 0 1.75rem;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.mg-news-latest-card__category {
    display: inline-flex;
    align-items: center;

    min-height: 2.4rem;
    padding: 0.45rem 0.9rem;

    color: #8a6b00;
    background-color: #fff0b8;
    border-radius: 7px 0 7px;
}

.mg-news-latest-card__date {
    color: #879ca7;
}


/* Überschrift
   ================================================== */

.mg-news-latest-card__title {
    max-width: 42rem;
    margin: 0;

    color: #15333d;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.18;
}

.mg-news-latest-card__title-link {
    color: inherit;
    text-decoration: none;
}

.mg-news-latest-card__title-link:hover,
.mg-news-latest-card__title-link:focus-visible {
    color: #006e86;
    text-decoration: none;
    text-decoration-thickness: 0.07em;
    text-underline-offset: 0.14em;
}


/* Teasertext
   ================================================== */

.mg-news-latest-card__teaser {
    max-width: 45rem;
    margin-top: 1.5rem;

    color: #536d78;
    font-size: clamp(1.1rem, 1.3vw, 1.35rem);
    font-weight: 400;
    line-height: 1.55;
}

.mg-news-latest-card__teaser > *:first-child {
    margin-top: 0;
}

.mg-news-latest-card__teaser > *:last-child {
    margin-bottom: 0;
}


/* Weiterlesen
   ================================================== */

.mg-news-latest-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    margin-top: 2rem;

    color: #006e86;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.mg-news-latest-card__more-icon {
    display: inline-block;
    font-size: 1.4em;
    line-height: 1;
    transition: transform 180ms ease;
}

.mg-news-latest-card__more:hover,
.mg-news-latest-card__more:focus-visible {
    color: #004e61;
    text-decoration: none;
    text-underline-offset: 0.15em;
}

.mg-news-latest-card__more:hover .mg-news-latest-card__more-icon,
.mg-news-latest-card__more:focus-visible .mg-news-latest-card__more-icon {
    transform: translateX(0.25rem);
}


/* Tastaturfokus
   ================================================== */

.mg-news-latest-card__media-link:focus-visible,
.mg-news-latest-card__title-link:focus-visible,
.mg-news-latest-card__more:focus-visible {
    outline: 3px solid #006e86;
    outline-offset: 3px;
}


/* Tablet
   ================================================== */

@media (max-width: 64rem) {
    .mg-news-latest-card {
        grid-template-columns: 1fr 1fr;
        min-height: 30rem;
    }

    .mg-news-latest-card__media {
        min-height: 30rem;
    }

    .mg-news-latest-card__content {
        padding: 2.5rem;
    }
}


/* Smartphone und kleine Tablets
   ================================================== */

@media (max-width: 48rem) {
    .mg-news-latest-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 1.4rem;
    }

    .mg-news-latest-card__media {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .mg-news-latest-card__content {
        padding: 1.75rem;
    }

    .mg-news-latest-card__meta {
        margin-bottom: 1.25rem;
    }

    .mg-news-latest-card__teaser {
        margin-top: 1.25rem;
    }

    .mg-news-latest-card__more {
        margin-top: 1.5rem;
    }
}


/* Sehr kleine Smartphones
   ================================================== */

@media (max-width: 30rem) {
    .mg-news-latest-card__content {
        padding: 1.35rem;
    }

    .mg-news-latest-card__meta {
        gap: 0.7rem;
        font-size: 0.95rem;
    }
}


/* Reduzierte Animationen
   ================================================== */

@media (prefers-reduced-motion: reduce) {
    .mg-news-latest-card__image,
    .mg-news-latest-card__more-icon {
        transition: none;
    }
}

/* ==================================================
   News – Detailansicht
   Präfix: mg-news-detail-
   ================================================== */

.mg-news-detail {
    width: min(100%, 90rem);
    margin-inline: auto;
    padding: 1.5rem 1.5rem 4rem;

    color: #294955;
}


/* Zurück-Link oben
   ================================================== */

.mg-news-detail__back-top {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.mg-news-detail__back-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    color: #006e86;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.mg-news-detail__back-top-icon {
    font-size: 1.3em;
    line-height: 1;
    transition: transform 180ms ease;
}

/* Vorheriger/nächster Beitrag
   ================================================== */

.mg-news-detail__pager {
    margin-bottom: 2rem;
}

.mg-news-detail__pager-list {
    display: flex;
    justify-content: space-between;
    gap: 2rem;

    margin: 0;
    padding: 0;
    list-style: none;
}

.mg-news-detail__pager-item {
    max-width: 45%;
}

.mg-news-detail__pager-item--next {
    margin-left: auto;
    text-align: right;
}

.mg-news-detail__pager-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    color: #006e86;
    font-weight: 600;
    text-decoration: none;
}

.mg-news-detail__pager-link:hover,
.mg-news-detail__pager-link:focus-visible {
    color: #004e61;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}


/* Kategorie und Datum
   ================================================== */

.mg-news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;

    margin-bottom: 1.75rem;

    color: #879ca7;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.mg-news-detail__categories {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.mg-news-detail__category,
.mg-news-detail__date {
    color: inherit;
}

.mg-news-detail__category-separator,
.mg-news-detail__meta-separator {
    opacity: 0.75;
}


/* Überschrift
   ================================================== */

.mg-news-detail__header {
    margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.mg-news-detail__title {
    max-width: 60rem;
    margin: 0;

    color: #15333d;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}


/* Von n:renderMedia ausgegebenes Titelmedium
   ================================================== */

.mg-news-detail__rendered {
    width: 100%;
}

/*
 * n:renderMedia kann das Vorschaubild direkt oder innerhalb
 * von .news-img-wrap ausgeben. Beide Varianten werden erfasst.
 */

.mg-news-detail__rendered > .news-img-wrap:first-child {
    width: 100%;
    margin: 0 0 1.75rem;
    overflow: hidden;

    background-color: #edf1f3;
    border-radius: 1.5rem 0 1.5rem 0;
}

.mg-news-detail__rendered > .news-img-wrap:first-child .outer {
    width: 100%;
    margin: 0;
}

.mg-news-detail__rendered > .news-img-wrap:first-child img,
.mg-news-detail__rendered > .news-img-wrap:first-child video,
.mg-news-detail__rendered > .news-img-wrap:first-child iframe,
.mg-news-detail__rendered > .mg-news-detail__media-image:first-child {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.mg-news-detail__rendered > .mg-news-detail__media-image:first-child {
    margin-bottom: 1.75rem;
    overflow: hidden;
    border-radius: 1.5rem 0 1.5rem 0;
}

.mg-news-detail__media-video,
.mg-news-detail__media-audio {
    width: 100%;
}


/* Teaser und Artikeltext
   ================================================== */

.mg-news-detail__teaser,
.mg-news-detail__body,
.mg-news-detail__content-elements {
    color: #294955;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.75;
}

.mg-news-detail__teaser {
    margin-bottom: 1.75rem;
    font-weight: 500;
}

.mg-news-detail__body p,
.mg-news-detail__teaser p,
.mg-news-detail__content-elements p {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
}

.mg-news-detail__body > *:first-child,
.mg-news-detail__teaser > *:first-child,
.mg-news-detail__content-elements > *:first-child {
    margin-top: 0;
}

.mg-news-detail__body > *:last-child,
.mg-news-detail__teaser > *:last-child,
.mg-news-detail__content-elements > *:last-child {
    margin-bottom: 0;
}

.mg-news-detail__body h2,
.mg-news-detail__content-elements h2 {
    margin: 2.5rem 0 1rem;

    color: #15333d;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    line-height: 1.2;
}

.mg-news-detail__body h3,
.mg-news-detail__content-elements h3 {
    margin: 2rem 0 0.75rem;

    color: #15333d;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.25;
}

.mg-news-detail__body ul,
.mg-news-detail__body ol,
.mg-news-detail__teaser ul,
.mg-news-detail__teaser ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.mg-news-detail__body a,
.mg-news-detail__teaser a,
.mg-news-detail__content-elements a {
    color: #006e86;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

.mg-news-detail__body img,
.mg-news-detail__content-elements img {
    max-width: 100%;
    height: auto;
}


/* Inhaltselemente
   ================================================== */

.mg-news-detail__content-elements {
    margin-block: 2rem;
}


/* Zusätzliche Medien
   ================================================== */

.mg-news-detail__media-container {
    margin-block: 2.5rem;
}

.mg-news-detail__media-container .news-img-wrap {
    display: grid;
    gap: 1.5rem;
}

.mg-news-detail__media-container .outer {
    overflow: hidden;
    border-radius: 20px 0 20px;
}

.mg-news-detail__media-container img,
.mg-news-detail__media-container video,
.mg-news-detail__media-container iframe {
    display: block;
    max-width: 100%;
    height: auto;
    width:100%;
}


/* Footer, Tags und Autor
   ================================================== */

.mg-news-detail__footer {
    margin-top: 2.5rem;
}

.mg-news-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mg-news-detail__tag {
    padding: 0.4rem 0.75rem;

    color: #536d78;
    background-color: #edf2f4;
    border-radius: 0.4rem;

    font-size: 0.9rem;
    font-weight: 600;
}

.mg-news-detail__author {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;

    margin-top: 1.25rem;

    color: #647e89;
    font-size: 1rem;
}


/* Zurück-Button unten
   ================================================== */

.mg-news-detail__back-bottom {
    margin-top: 3rem;
}

.mg-news-detail__back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    min-height:auto;
    padding:15px 30px;

    color: #fff;
    background-color: #15333d;
    border-radius: 10px 0 10px;

    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.mg-news-detail__back-button:hover,
.mg-news-detail__back-button:focus-visible {
    color: #fff;
    background-color: #006e86;
    text-decoration: none;
    transform: translateY(-0.1rem);
}


/* Shariff
   ================================================== */

.mg-news-detail__sharing {
    margin-top: 2.5rem;
}


/* Verwandte Inhalte
   ================================================== */

.mg-news-detail__related {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #dce4e8;
}

.mg-news-detail__related-title {
    margin: 0 0 1.25rem;

    color: #15333d;
    font-size: 1.75rem;
    line-height: 1.2;
}

.mg-news-detail__related-list {
    display: grid;
    gap: 1rem;

    margin: 0;
    padding: 0;
    list-style: none;
}

.mg-news-detail__related-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
}

.mg-news-detail__related-date,
.mg-news-detail__related-file-size {
    color: #879ca7;
    font-size: 0.95rem;
}

.mg-news-detail__related-link {
    color: #006e86;
    font-weight: 700;
    text-decoration: none;
}

.mg-news-detail__related-link:hover,
.mg-news-detail__related-link:focus-visible {
    color: #004e61;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.mg-news-detail__related-description {
    flex-basis: 100%;
    color: #536d78;
}


/* Fokus
   ================================================== */

.mg-news-detail__back-top-link:focus-visible,
.mg-news-detail__pager-link:focus-visible,
.mg-news-detail__back-button:focus-visible,
.mg-news-detail__related-link:focus-visible {
    outline: 3px solid #006e86;
    outline-offset: 3px;
}


/* Tablet
   ================================================== */

@media (max-width: 64rem) {
    .mg-news-detail__title {
        max-width: 50rem;
    }
}


/* Smartphone
   ================================================== */

@media (max-width: 48rem) {
    .mg-news-detail {
        padding: 1.25rem 1rem 3rem;
    }

    .mg-news-detail__back-top {
        margin-bottom: 2.5rem;
    }

    .mg-news-detail__pager-list {
        flex-direction: column;
        gap: 1rem;
    }

    .mg-news-detail__pager-item {
        max-width: 100%;
    }

    .mg-news-detail__pager-item--next {
        margin-left: 0;
        text-align: left;
    }

    .mg-news-detail__meta {
        margin-bottom: 1.25rem;
    }

    .mg-news-detail__header {
        margin-bottom: 2rem;
    }

    .mg-news-detail__rendered > .news-img-wrap:first-child img,
    .mg-news-detail__rendered > .news-img-wrap:first-child video,
    .mg-news-detail__rendered > .news-img-wrap:first-child iframe,
    .mg-news-detail__rendered > .mg-news-detail__media-image:first-child {
        aspect-ratio: 4 / 3;
    }

    .mg-news-detail__rendered > .news-img-wrap:first-child,
    .mg-news-detail__rendered > .mg-news-detail__media-image:first-child {
        border-radius: 1.25rem 0 1.25rem 0;
    }

    .mg-news-detail__teaser,
    .mg-news-detail__body,
    .mg-news-detail__content-elements {
        font-size: 1.1rem;
        line-height: 1.65;
    }

    .mg-news-detail__back-button {
        width: 100%;
        justify-content: center;
    }
}


/* Reduzierte Animationen
   ================================================== */

@media (prefers-reduced-motion: reduce) {
    .mg-news-detail__back-top-icon,
    .mg-news-detail__back-button {
        transition: none;
    }
}

/*termine*/
/* ==========================================================
   Termin-News: Grundeinstellungen
   ========================================================== */

.event-list-item {
    --event-color-dark: #153640;
    --event-color-accent: #ffd900;
    --event-color-category: #08708f;
    --event-color-muted: #8ba0ad;
    --event-badge-size: 6rem;

    display: grid;
    grid-template-columns: var(--event-badge-size) minmax(0, 1fr);
    column-gap: 1.2rem;
    align-items: center;

    position: relative;

    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
}

.event-list-item + .event-list-item {
    margin-top: 1.4rem;
}


/* ==========================================================
   Datumsbadge
   ========================================================== */

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    width: var(--event-badge-size);
    height: var(--event-badge-size);
    padding: 0.5rem 0.3rem;

    overflow: hidden;

    color: #fff;
    background-color: var(--event-color-dark);
    border-radius: 0.8rem 0 0.8rem 0;

    line-height: 1;
    text-align: center;
}


/* ==========================================================
   Wochentag oder Wochentagszeitraum
   Beispiele: SO / MI–DO
   ========================================================== */

.event-date__weekday {
    color: #fff;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;

    text-transform: uppercase;
    white-space: nowrap;
}

.event-date__weekday-separator {
    margin-inline: 0.04em;
}


/* ==========================================================
   Tag oder Datumszeitraum
   Beispiele: 29. / 26.–27.
   ========================================================== */

.event-date__day {
    margin-top: 0.4rem;

    color: #fff;

    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;

    white-space: nowrap;
}

.event-date__separator {
    margin-inline: 0.03em;
}


/* ==========================================================
   Monat
   ========================================================== */

.event-date__month {
    margin-top: 0.45rem;

    color: var(--event-color-accent);

    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;

    text-transform: uppercase;
    white-space: nowrap;
}


/* ==========================================================
   Kein Datum: Punkt und OFFEN
   ========================================================== */

.event-date__empty-marker {
    height: 1.1rem;

    color: #fff;

    font-size: 1.5rem;
    font-weight: 800;
    line-height: 0.5;
}

.event-date__empty-label {
    margin-top: 0.55rem;

    color: var(--event-color-accent);

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;

    text-transform: uppercase;
}


/* ==========================================================
   Textinhalt
   ========================================================== */

.event-list-item__content {
    min-width: 0;
}


/* Kategorie */

.event-list-item__category {
    margin: 0 0 0.4rem;

    color: var(--event-color-category);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;

    text-transform: uppercase;
}


/* Überschrift */

.event-list-item__title {
    margin: 0;

    color: var(--event-color-dark);

    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
}

.event-list-item__title a {
    color: inherit;
    text-decoration: none;
}

.event-list-item__title a:hover {
    color: var(--event-color-category);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

.event-list-item__title a:focus-visible {
    color: var(--event-color-category);

    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;

    outline: 2px solid currentColor;
    outline-offset: 0.2rem;
}


/* ==========================================================
   Teaser beziehungsweise Zusatzinformation
   ========================================================== */

.event-list-item__teaser {
    margin-top: 0.35rem;

    color: var(--event-color-muted);

    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.3;
}

.event-list-item__teaser:empty {
    display: none;
}

.event-list-item__teaser > div,
.event-list-item__teaser p {
    margin: 0;
}

.event-list-item__teaser a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}


/* ==========================================================
   Veröffentlichungsdatum

   Bleibt für strukturierte Daten im HTML, wird aber nicht
   sichtbar dargestellt.
   ========================================================== */

.event-list-item__published-date {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;

    border: 0;
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 900px) {
    .event-list-item {
        --event-badge-size: 5.5rem;

        column-gap: 1rem;
    }

    .event-list-item + .event-list-item {
        margin-top: 1.25rem;
    }

    .event-date {
        padding: 0.5rem 0.3rem;
        border-radius: 0.75rem 0 0.75rem 0;
    }

    .event-date__day {
        font-size: 1.1rem;
    }

    .event-date__month {
        margin-top: 0.5rem;
        font-size: 0.75rem;
    }

    .event-date__year {
        margin-top: 0.4rem;
        font-size: 0.65rem;
    }

    .event-date__empty-marker {
        font-size: 1.35rem;
    }

    .event-date__empty-label {
        margin-top: 0.5rem;
        font-size: 0.75rem;
    }

    .event-list-item__category {
        font-size: 0.7rem;
    }

    .event-list-item__title {
        font-size: 1.1rem;
    }

    .event-list-item__teaser {
        font-size: 0.8rem;
    }
}


/* ==========================================================
   Smartphone
   ========================================================== */

@media (max-width: 600px) {
    .event-list-item {
        --event-badge-size: 5rem;

        grid-template-columns: var(--event-badge-size) minmax(0, 1fr);
        column-gap: 0.8rem;
        align-items: start;
    }

    .event-list-item + .event-list-item {
        margin-top: 1rem;
    }

    .event-date {
        padding: 0.4rem 0.25rem;
        border-radius: 0.65rem 0 0.65rem 0;
    }

    .event-date__day {
        font-size: 1rem;
    }

    .event-date__month {
        margin-top: 0.45rem;
        font-size: 0.7rem;
    }

    .event-date__year {
        margin-top: 0.35rem;
        font-size: 0.6rem;
    }

    .event-date__empty-marker {
        height: 0.95rem;
        font-size: 1.2rem;
    }

    .event-date__empty-label {
        margin-top: 0.4rem;
        font-size: 0.7rem;
    }

    .event-list-item__category {
        margin-bottom: 0.3rem;
        font-size: 0.65rem;
    }

    .event-list-item__title {
        font-size: 1rem;
        line-height: 1.25;
    }

    .event-list-item__teaser {
        margin-top: 0.3rem;
        font-size: 0.75rem;
    }
}


/* ==========================================================
   Sehr kleine Smartphones
   ========================================================== */

@media (max-width: 380px) {
    .event-list-item {
        --event-badge-size: 4.5rem;

        column-gap: 0.65rem;
    }

    .event-date__day {
        font-size: 0.9rem;
    }

    .event-date__month {
        font-size: 0.65rem;
    }

    .event-date__year {
        font-size: 0.55rem;
    }

    .event-date__empty-label {
        font-size: 0.65rem;
    }

    .event-list-item__title {
        font-size: 0.9rem;
    }
}

.event-date__empty-marker {
    height: 1.1rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 0.5;
}

.event-date__empty-label {
    margin-top: 0.55rem;
    color: var(--event-color-accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

/* ==========================================================
   Kategorienfilter
   ========================================================== */

.event-category-filter {
    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;
    margin: 30px 0 36px;
    padding: 0;
}

.event-category-filter__label {
    flex: 0 0 auto;

    margin: 0;
    padding: 0;

    color: #2a4853;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.event-category-filter__buttons {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;
}

/* ==========================================================
   Filterbuttons
   ========================================================== */

.event-category-filter button.event-category-filter__button {
    appearance: none;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 1;

    width: auto;
    min-width: 0;
    max-width: none;

    height: 40px;
    min-height: 40px;
    max-height: 40px;

    margin: 0;
    padding: 0 18px;

    border: 2px solid #d6dee1;
    border-radius: 20px;

    background-color: #fff;
    background-image: none;
    box-shadow: none;

    color: #2a4853;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;

    cursor: pointer;
    pointer-events: auto;

    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease;
}

/* Falls das Theme den Buttontext in ein span setzt */
.event-category-filter button.event-category-filter__button > span,
.event-category-filter button.event-category-filter__button .sc-interp {
    display: inline;
    width: auto;
    height: auto;

    margin: 0;
    padding: 0;

    color: inherit;
    font: inherit;
    line-height: inherit;
    pointer-events: none;
}

/* Hover */
.event-category-filter button.event-category-filter__button:hover {
    border-color: #173642;
    background-color: #fff;
    color: #173642;
}

/* Aktiver Button */
.event-category-filter button.event-category-filter__button.is-active,
.event-category-filter button.event-category-filter__button.is-active:hover {
    border-color: #173642;
    background-color: #173642;
    color: #fff;
}

/* Tastaturfokus */
.event-category-filter button.event-category-filter__button:focus {
    outline: none;
}

.event-category-filter button.event-category-filter__button:focus-visible {
    outline: 2px solid #0875e1;
    outline-offset: 2px;
}

/* ==========================================================
   Gefilterte Termine ausblenden

   !important ist hier entscheidend, falls .event-list-item
   an anderer Stelle display:flex !important verwendet.
   ========================================================== */

.news-list-view--termine-liste .event-list-item[hidden],
.news-list-view--termine-liste [data-event-item][hidden] {
    display: none !important;
}

/* ==========================================================
   Mobile Darstellung
   ========================================================== */

@media (max-width: 700px) {
    .event-category-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;

        margin: 24px 0 30px;
    }

    .event-category-filter__buttons {
        gap: 7px;
    }

    .event-category-filter button.event-category-filter__button {
        height: 36px;
        min-height: 36px;
        max-height: 36px;

        padding: 0 14px;
        border-radius: 18px;

        font-size: 14px;
    }
}

.site-info-box__text table {
    margin-bottom:18px;
}

.frame-type-textmedia .ce-left .ce-gallery, .frame-type-textmedia .ce-column {
    float: none;
}

.school-appointments {
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #dce4e8;
    border-radius: 18px 0 18px 0;
    background-color: #fff;
    box-sizing: border-box;
}

.school-appointments .school-appointment {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 17px;
    align-items: center;

    min-height: 94px;
    margin: 0;
    padding: 9px 18px;

    border: 0;
    background: transparent;
    box-sizing: border-box;
}

.school-appointments .school-appointment + .school-appointment {
    border-top: 1px solid #e8edef;
}

/* Datumsbox: exakt 52 px breit */
.school-appointments .school-appointment__date {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 54px;
    min-width: 52px;
    margin: 0;
    padding: 0;

    border-radius: 13px 0 13px 0;
    background-color: #f2f7f9;
    text-align: center;
    box-sizing: border-box;
}

.school-appointments .school-appointment__day,
.school-appointments .school-appointment__empty-marker {
    margin: 0;
    color: #17333d;
    font-size: 19px;
    font-weight: 800;
    line-height: 19px;
    white-space: nowrap;
}

.school-appointments .school-appointment__separator {
    display: inline;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.school-appointments .school-appointment__month,
.school-appointments .school-appointment__empty-label {
    margin: 4px 0 0;
    color: #006b8d;
    font-size: 9px;
    font-weight: 700;
    line-height: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.school-appointments .school-appointment__content {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.school-appointments .school-appointment__category {
    margin: 0 0 4px;
    padding: 0;
    color: #006b8d;
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.school-appointments .school-appointment__headline {
    margin: 0;
    padding: 0;
    color: #17333d;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

.school-appointments .school-appointment__time {
    margin: 4px 0 0;
    padding: 0;
    color: #8da0ad;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.school-appointments .school-appointment__time time {
    color: inherit;
    font: inherit;
}

@media (max-width: 480px) {
    .school-appointments {
        max-width: 100%;
    }

    .school-appointments .school-appointment {
        column-gap: 14px;
        padding-right: 14px;
        padding-left: 14px;
    }
}

.avh-news {
    --avh-news-text: #17333d;
    --avh-news-muted: #738a98;
    --avh-news-border: #dce4e8;
    --avh-news-background: #fff;

    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    width: 100%;
    min-height: 128px;
    margin: 0 0 14px;
    padding: 0;

    overflow: hidden;
    border: 1px solid var(--avh-news-border);
    border-radius: 17px 0 17px 0;
    background: var(--avh-news-background);
    box-sizing: border-box;
}

/* Bildbereich: immer genau 128 × 128 px */
.avh-news__media {
    position: relative;
    width: 128px;
    height: 128px;
    min-width: 128px;
    overflow: hidden;
    background: #eef2f4;
}

.avh-news__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

/*
 * Unabhängig vom ursprünglichen Seitenverhältnis:
 * Der Bildbereich wird vollständig ausgefüllt und mittig beschnitten.
 */
.avh-news__image,
.avh-news__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

/* Falls ein Video als Vorschauelement verwendet wird */
.avh-news__media video,
.avh-news__media iframe,
.avh-news__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.avh-news__media video {
    object-fit: cover;
    object-position: center;
}

.avh-news__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 15px 17px;
    box-sizing: border-box;
}

.avh-news__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 7px;
    margin: 0 0 9px;
    color: var(--avh-news-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
}

.avh-news__category,
.avh-news__date {
    color: inherit;
    font: inherit;
}

.avh-news__meta-separator {
    color: #a6b4bc;
}

.avh-news__headline {
    margin: 0 0 5px;
    padding: 0;
    font-size: 18.5px;
    font-weight: 700;
    line-height: 1.25;
}

.avh-news__headline-link {
    color: var(--avh-news-text);
    text-decoration: none;
}

.avh-news__headline-link:hover,
.avh-news__headline-link:focus-visible {
    color: #006b8d;
    text-decoration: none;
}

.avh-news__headline-link:focus-visible {
    outline: 2px solid #006b8d;
    outline-offset: 3px;
}

.avh-news__teaser {
    margin: 0;
    color: #607985;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}

/* Durch f:format.html() erzeugte Absatzabstände neutralisieren */
.avh-news__teaser p {
    margin: 0;
    padding: 0;
    font-size:0.875rem;
    line-height:1.3rem;
}

.avh-news--topnews {
    background-color: #f8fbfc;
}

@media (max-width: 600px) {
    .avh-news {
        grid-template-columns: 100px minmax(0, 1fr);
        min-height: 118px;
    }

    .avh-news__media {
        width: 100px;
        min-width: 100px;
        height: 100%;
        min-height: 118px;
    }

    .avh-news__content {
        padding: 12px 14px;
    }

    .avh-news__headline {
        font-size: 17px;
    }

    .avh-news__teaser {
        line-height: 1.4;
    }
}

.newswidget h2 {
    width:50%;
    float:left;
}

#maincontent .newswidget .frame-type-text a {
    text-decoration: none;
    padding: 20px 0 0;
    float:right;
}

.automatic-arrow {
  display: inline-flex;
  width: 1em;
  height: 1em;
  margin-inline: 0.15em;
  vertical-align: -0.2rem;
}

.automatic-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
}

.automatic-arrow--right svg {
  transform: rotate(0deg);
}

.automatic-arrow--down svg {
  transform: rotate(90deg);
}

.automatic-arrow--left svg {
  transform: rotate(180deg);
}

.automatic-arrow--up svg {
  transform: rotate(-90deg);
}

.automatic-arrow--up-right svg {
  transform: rotate(-45deg);
}

.frame-indent-right {
    max-width:780px;
    margin: 0 auto;
}

#maincontent .frame-indent-right a {
    text-decoration:none !important;
    color:rgb(10, 101, 130);
    font-size:0.9rem;
}

.frame-type-image figcaption.image-caption,
.frame-type-textpic figcaption.image-caption {
    font-size: 13px;
    color: rgb(122, 141, 149);
    margin-top: 8px;
    line-height: 1.4;
    border-left: 3px solid rgb(160, 191, 52);
    padding-left: 10px;
}

@media (max-width: 767px) {
h1,h2,h3 {
      -webkit-hyphens: auto;
      -moz-hyphens: auto;
      -ms-hyphens: auto;
      hyphens: auto;
  /* Chrome, Edge, Firefox */
  hyphenate-limit-chars: 16 4 4;

  /* Safari-Fallback: mindestens 9 Zeichen vor und nach der Trennung */
  -webkit-hyphenate-limit-before: 10;
  -webkit-hyphenate-limit-after: 10;
    }
    .ce-right .ce-gallery {
    float: none;
}
    
    .ce-intext.ce-right .ce-gallery {
    margin-left: 0px;
}
}

td.textopacity {
    opacity:50%;
}

.sk-video-container {
    border-radius: 20px 0 20px;
    margin-bottom: 50px;
}

.sk-video-playbutton {
    background:none !important;
}

.sk-video-playbutton::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    left: calc(50% - 3px);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffd500;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sk-video-playbutton::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #14313d;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.om-cookie-panel__tab,
.om-cookie-panel .cookie-panel__description,
h3#om-cookie-panel__title,
.cookie-panel__link {
    text-align: center;
}
.om-cookie-panel .cookie-panel__links {
    justify-content: center;
}
.om-cookie-panel h3 {
    padding:0;
}
