:root {
    --full-width: 910px;
    --compact-width: 700px;
    --menu-button-hover-color: #abf;
}

body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

nav {
    background-color: #ffffff;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007BFF;
}

.mobile-menu {
    display: none;
    position: relative;
    flex-shrink: 0;
}

.mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #ddd;
    border-radius: 0;
    background-color: #f7f7f7;
    color: #333;
    font-weight: normal;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary:hover,
.mobile-menu[open] summary {
    background-color: #eee;
}

.mobile-menu summary:focus-visible {
    outline: 3px solid rgba(0, 123, 255, 0.35);
    outline-offset: 2px;
}

.mobile-menu-panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: min(340px, calc(100vw - 20px));
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.mobile-menu-heading {
    display: block;
    margin: 5px 9px 4px;
    color: #777;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mobile-menu-group + .mobile-menu-group {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e6e6e6;
}

.mobile-menu-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a:focus-visible {
    background-color: #f1f5f9;
    color: #007BFF;
}

.mobile-menu-panel a[aria-current="page"] {
    background-color: #eaf3ff;
    color: #005fbf;
    font-weight: bold;
}

@media screen and (max-width: 985px) {
    nav {
        justify-content: flex-start;
    }

    .nav-links {
        margin-left: auto;
    }

    .mobile-menu {
        display: block;
        margin-left: 14px;
    }

    .nav-links li {
        margin-left: 14px;
    }
}

@media screen and (max-width: 900px) {
    .menuPrio3 {
        display: none;
    }
}

@media screen and (max-width: 820px) {
    .menuPrio2 {
        display: none;
    }
}

@media screen and (max-width: 760px) {
    .menuPrio1 {
        display: none;
    }
}

@media screen and (max-width: 680px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        margin-left: auto;
    }
}

footer a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: color 0.3s;
}

footer a:hover {
    color: #007BFF;
}

header {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    cursor: default;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #222;
    cursor: default;
}

header p {
    font-size: 1.2rem;
    color: #666;
    cursor: default;
}

@media screen and (max-width: 560px) {
    .home-tagline {
        font-size: 0.9rem;
    }
}

header h2 {
    margin: 0;
    font-size: 2.0rem;
    color: #222;
    cursor: default;
}

.hero-image {
    width: 100%;
    height: 400px;
    background-image: url('./img/start_bg.jpg');
    background-size: cover;
    background-position: center;
}

.program-image {
    width: 100%;
    height: 200px;
    background-image: url('./img/program-image.jpg');
    background-size: cover;
    background-position: center;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.container > .comments {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    column-gap: 20px;
    margin-top: 0;
}

.container > .comments > h2 {
    grid-column: 1 / -1;
}

.teaser {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: transform 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.teaser:hover {
    transform: translateY(-2px);
}

.teaser h3 {
    margin-top: 0;
    color: #444;
}

.teaser a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    margin-top: auto;
    padding-top: 15px;
}

.idagTeaser p {
    display: inline;
}

.idagTeaser a {
    display: inline;
}

.teaser:not(.idagTeaser) p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}

.teaser:not(.idagTeaser) a:first-of-type::after {
    content: "";
    position: absolute;
    inset: 0;
}

.teaser:not(.idagTeaser) {
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 5px 40px 45px 40px;
    font-size: 0.9rem;
    color: #999;
}

.logo {
    cursor: default;
}

@media screen and (max-width: 720px) {
    .menuPrio3 {
        display: none;
    }
}

@media screen and (max-width: 640px) {
    .menuPrio2 {
        display: none;
    }
}

@media screen and (max-width: 520px) {
    .menuPrio1 {
        display: none;
    }
}

@media screen and (max-width: 420px) {
    .menuPrio0 {
        display: none;
    }
}

b, strong {
    font-weight: bold;
}

a {
    text-decoration: underline;
    color: #555;
}

a:hover {
    color: #008;
    text-shadow: 0 0 4px #9ef;
    text-decoration: none;
}

div {
    margin: 0;
    padding: 0;
}

#outerWrapper {
    width: var(--full-width);
    overflow: hidden;
    margin: 0 auto;
}

@media screen and (max-width: 985px) {
    #outerWrapper {
        width: calc(100% - 20px);
        max-width: var(--compact-width);
        min-width: 480px;
        padding: 0 10px 0 10px;
    }
}

#breadcrumb {
    width: 100%;
    text-align: left;
    margin: 20px 0 0 0;
    cursor: default;
}

.breadcrumText {
    cursor: default;
}

.breadcrumArrow {
    cursor: default;
}

.breadcrumLink {
    cursor: pointer;
}

#header {
    width: 100%;
    text-align: center;
    margin: 10px 0 40px 0;
}

#menuPanel {
    width: 195px;
    float: left;
    text-align: left;
    margin: 8px 0 0 0;
    padding: 0 5px 0 0;
}

@media screen and (max-width: 985px) {
    #menuPanel {
        display: none;
    }
}

.startHeader {
    font-size: 19px;
}

.startHeaderLink {
    text-decoration: none;
}

.startItemParagraph {
    margin-top: 15px;
}

#contentPanel {
    overflow: hidden;
    text-align: left;
    color: #000;
}

#footer {
    width: 100%;
    text-align: center;
    margin: 24px 0 20px 0;
}

.menulink {
    display: block;
    text-decoration: none;
}

.selected {
    font-weight: bold;
    font-style: italic;
}

#pageHeader {
    margin: 0;
    font-size: 2.5rem;
    color: #222;
    cursor: default;
}

#pageTagLine {
    margin: 0 auto 50px auto;
    width: 70%;
    cursor: default;
}

@media screen and (width < 640px) {
    #pageTagLine {
        font-size: 0.8rem;
    }
}

.startIcon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
}

p {
    margin: 9px 0 9px 0;
    padding: 0;
}

.startItemParagraph {
    margin-top: 15px;
}

h1 {
    margin: 7px 0 7px 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 22px;
    font-weight: bold;
}

h2 {
    margin: 15px 0 5px 0;
    padding: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 19px;
    font-weight: bold;
}

h3 {
    margin: 12px 0 5px 0;
    padding: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

h4 {
    margin: 10px 0 5px 0;
    padding: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
}

.datum {
    font-style: italic;
}

.wp-block-image > img {
    max-width: 100%;
    height: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

.ytdate {
    padding: 2px 3px 2px 0;
}

.ytlink {
    padding: 2px 0 2px 3px;
}

/*** ----------------------------------- ***/

#topMenu {
    background-color: #ddd;
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: var(--full-width);
}

@media screen and (max-width: 985px) {
    #topMenu {
        min-width: var(--compact-width);
    }
}

#topMenuUl {
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#topMenuUl li:first-child {
    border-left: 2px solid #fff;
}

#topMenuUl li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

#topMenuUl li a:hover {
    background-color: var(--menu-button-hover-color:);
}

#topMenuUl {
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#topMenuUl li:first-child {
    border-left: 2px solid #fff;
}

#topMenuUl li {
    border-right: 2px solid #fff;
    background-color: #ccc;
    float: left;
}

#topMenuUl li a {
    display: block;
    color: #000;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

#topMenuUl li a:hover {
    background-color: var(--menu-button-hover-color);
}

#topSubMenu {
    display: flex;
    justify-content: center;
    border-top: solid 2px #fff;
    width: 100%;
    background-color: #ddd;
    min-width: var(--full-width);
}

@media screen and (min-width: 985px) {
    #topSubMenu {
        display: none;
    }
}

@media screen and (max-width: 985px) {
    #topSubMenu {
        min-width: var(--compact-width);
    }
}

#subTopMenuUl {
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#subTopMenuUl li:first-child {
    border-left: 2px solid #fff;
}

#subTopMenuUl li {
    border-right: 2px solid #fff;
    float: left;
}

#subTopMenuUl li a {
    display: block;
    color: #000;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

#subTopMenuUl li a:hover {
    background-color: var(--menu-button-hover-color);
}

/*** ----------------------------------- ***/
.comments {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
}

.comments > h2 {
    margin: 0 0 14px;
    color: #666;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comment {
    margin: 0 0 18px;
    padding-left: 10px;
    border-left: 3px solid #ddd;
}

.comment-meta {
    margin: 0 0 5px;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

.comment-meta a {
    color: #444;
    font-weight: bold;
    text-decoration: none;
}

.comment-meta time {
    display: block;
}

.comment-text {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.comment-meta a:hover {
    color: #007bff;
    text-decoration: underline;
}

/*** ----------------------------------- ***/
