:root {
    --paper: #f5f5f5;
    --ink: #121212;
    --muted: #505050;
    --green: #007d3c;
    --light-green: #589b79;
    --line: #e8e8e8;
    --gutter: 35px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 15px/1.6 var(--gh-font-body, "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif);
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--gh-font-heading, inherit); font-weight: 500; line-height: 1.35; }
h1, h2 { font-size: 20px; margin: 0 0 0.65em; }
h3 { font-size: 19px; }
p { margin: 0 0 1.35em; }
.sr-only, .skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 8px 15px; background: white; }
.site { width: min(100%, 1080px); margin: 20px auto 0; }
.masthead {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 94px;
    padding: 0 var(--gutter) 6px;
}
.identity { display: block; width: fit-content; }
.masthead p {
    align-self: end;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15px;
    line-height: 1.45;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    color: var(--paper);
    background: var(--green);
}
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav a, .site-nav button, .site-nav summary { color: inherit; }
.primary-menu {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    font-weight: 700;
}
.primary-menu li { position: relative; }
.primary-menu a { display: block; padding: 12px 30px; line-height: 21px; }
.primary-menu a:hover, .primary-menu a:focus-visible { color: var(--ink); background: var(--light-green); text-decoration: none; }
.primary-menu a[aria-current="page"] { color: var(--paper); background: var(--ink); }
.submenu-toggle {
    position: absolute;
    inset: 0 0 auto auto;
    display: grid;
    place-items: center;
    width: 25px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}
.submenu-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    opacity: 0;
}
.submenu-toggle:hover::after, .submenu-toggle:focus-visible::after,
.submenu-toggle[aria-expanded="true"]::after { opacity: 1; }
.submenu-toggle:focus-visible { outline-offset: -3px; }
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 235px;
    background: var(--green);
    box-shadow: 0 3px 6px #0003;
    font-size: 14px;
}
.submenu a { padding: 12px 32px 12px 16px; }
.submenu a:hover, .submenu a:focus-visible { color: var(--paper); background: var(--ink); }
.submenu .submenu { top: 0; left: 100%; width: 270px; }
.header-search {
    display: flex;
    position: relative;
    flex: 0 0 59px;
    align-self: stretch;
    background: var(--ink);
}
.header-search summary {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 45px;
    list-style: none;
}
.header-search summary::-webkit-details-marker { display: none; }
.header-search summary:hover { background: var(--light-green); }
.header-search summary:focus-visible { outline-offset: -4px; }
.search-icon {
    position: relative;
    width: 13px;
    height: 13px;
    border: 2px solid;
    border-radius: 50%;
}
.search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    top: 11px;
    left: -5px;
    background: currentColor;
    transform: rotate(-45deg);
}
.header-search form {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(330px, 100vw);
    padding: 14px;
    background: var(--ink);
}
.search-inputs { display: flex; gap: 8px; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 7px 9px;
    color: var(--ink);
    border: 1px solid #bbb;
    border-radius: 2px;
    background: white;
}
.search-form button, .read-more, .pagination a, .post-navigation a {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--green);
    background: var(--paper);
    font-size: 12px;
    font-weight: 700;
}
.site-nav .search-form button { color: var(--green); }
.mobile-toggle { display: none; }

.featured { position: relative; color: var(--paper); background: var(--ink); }
.featured-slide {
    display: grid;
    grid-template-columns: minmax(0, 350px) minmax(0, 392px);
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 467px;
    padding: 40px 65px 57px;
    font: 16px/1.5 Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.slide-copy { align-self: start; margin-top: 56px; }
.slide-copy h2 { margin: 0 0 23px; font-size: 20px; font-weight: 400; }
.slide-copy p:last-child { margin-bottom: 0; }
.slide-media { display: grid; justify-items: end; gap: 10px; }
.slide-media img { width: 100%; height: 286px; object-fit: contain; }
.slide-media img[alt*="Infomaterialien"] { justify-self: center; }
.featured-link {
    display: inline-block;
    min-width: 140px;
    padding: 10px 14px;
    border-radius: 10px;
    color: white;
    background: var(--green);
    text-align: center;
    font-size: 14px;
}
.slide-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    color: #e0e0e0;
    background: transparent;
}
.slide-arrow::after { content: ""; width: 16px; height: 16px; border: solid currentColor; border-width: 0 2px 2px 0; }
.slide-prev { left: 5px; }
.slide-prev::after { transform: rotate(135deg); }
.slide-next { right: 5px; }
.slide-next::after { transform: rotate(-45deg); }

.columns {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    align-items: start;
    gap: 5%;
    padding: var(--gutter);
}
.primary, .sidebar { min-width: 0; overflow-wrap: anywhere; }
.welcome h1 { margin: 24px 0 28px; font-size: 25px; line-height: 1.5; }
.sidebar { color: var(--muted); font-size: 13px; line-height: 1.5; }
.widget { margin: 0 0 42px; }
.widget:last-child { margin-bottom: 0; }
.widget h2, .widget label { display: block; margin: 0 0 14px; color: #303030; font-size: 15px; font-weight: 700; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: 0 0 6px; }
.tag-cloud a { display: inline; margin-right: 4px; font-size: 11px; }
.tag-cloud a[data-count="2"], .tag-cloud a[data-count="3"] { font-size: 15px; }
.tag-cloud a[data-count="4"], .tag-cloud a[data-count="5"], .tag-cloud a[data-count="6"] { font-size: 20px; }
.tag-cloud a[data-count="7"], .tag-cloud a[data-count="8"], .tag-cloud a[data-count="9"] { font-size: 25px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links a { display: grid; width: 39px; height: 39px; place-items: center; color: white; background: var(--green); font-size: 18px; font-weight: 700; }

.news-item { margin-bottom: 39px; padding-bottom: 39px; border-bottom: 1px solid var(--line); }
.news-item.with-thumbnail { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 28px; }
.thumbnail img { width: 84px; height: 84px; object-fit: cover; border-radius: 3px; }
.news-copy h2, .entry-header h1 { margin: 0; }
.news-copy h2 a, .post-meta a { color: inherit; }
.post-meta { margin: 0 0 18px; font-size: 12px; }
.news-excerpt { margin-bottom: 15px; }
.read-more { display: table; margin-left: auto; box-shadow: 0 1px 0 #0002; }
.pagination, .post-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.post-navigation { margin: 2em 0; }
.post-taxonomy { margin-top: 2em; font-size: 13px; }
.cover { margin: 0 0 18px; }
.cover img { width: 100%; }
figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; }

.gh-content h2 { font-size: 24px; }
.gh-content h2:not(:first-child), .gh-content h3:not(:first-child) { margin-top: 1.2em; }
.gh-content figure { margin: 1.35em 0; }
.gh-content img { height: auto; }
.gh-content iframe, .gh-content video { max-width: 100%; }
.gh-content pre { overflow: auto; padding: 16px; background: white; }
.gh-content table { max-width: 100%; border-collapse: collapse; }
.gh-content th, .gh-content td { padding: 5px; border: 1px solid #ccc; }
.gh-content blockquote { margin: 1.5em 0; padding-left: 16px; border-left: 3px solid var(--green); }
.kg-width-wide, .kg-width-full { width: 100%; }
.kg-gallery-container, .kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-container { flex-direction: column; }
.kg-gallery-image { flex: 1; min-width: 0; }
.kg-gallery-image img { width: 100%; }
.kg-callout-card, .kg-button-card { display: flex; gap: 12px; }
.kg-callout-card, .kg-bookmark-container, .kg-toggle-card { padding: 16px; border: 1px solid var(--line); }
.kg-button-card a.kg-btn { padding: 7px 14px; color: white; background: var(--green); }
.kg-align-center { justify-content: center; }
.kg-bookmark-container { display: flex; }
.kg-bookmark-content { flex: 1; min-width: 0; }
.kg-bookmark-thumbnail { max-width: 30%; }
.kg-bookmark-icon { display: inline; width: 20px; }
.kg-toggle-heading { display: flex; justify-content: space-between; }
.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }

.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.search-results p { margin: 4px 0; }
.search-status { margin: 15px 0; }
.site-footer { padding: 30px var(--gutter) 65px; font-size: 13px; }
.partner-logos {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.partner-logos img { display: inline-block; height: auto; }
.footer-bottom, .footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
.footer-bottom a { border-left: 1px solid #888; padding-left: 8px; }

@media (max-width: 1080px) {
    .site { margin-top: 0; }
}

@media (max-width: 880px) {
    .primary-menu a { padding-inline: 22px; }
    .submenu a { padding-inline: 16px 28px; }
    .submenu .submenu { width: 220px; }
}

@media (max-width: 680px) {
    .masthead {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        justify-items: center;
        align-items: start;
        height: 261px;
        padding-bottom: 26px;
    }
    .masthead p { margin: 0; text-align: center; }
    .site-nav { min-height: 46px; }
    .mobile-toggle {
        display: block;
        flex: 1;
        min-height: 46px;
        padding: 0 0 0 46px;
        border: 0;
        color: inherit;
        background: transparent;
        font-weight: 700;
    }
    .mobile-toggle span { margin-right: 5px; }
    .header-search { flex-basis: 46px; background: inherit; }
    .primary-menu {
        position: absolute;
        inset: 100% 0 auto;
        display: none;
        max-height: 65vh;
        overflow: auto;
        background: var(--green);
        box-shadow: 0 3px 8px #0003;
    }
    .mobile-toggle[aria-expanded="true"] + .primary-menu { display: block; }
    .primary-menu a { padding: 12px 48px 12px 20px; }
    .submenu, .submenu .submenu { position: static; width: auto; margin-left: 20px; box-shadow: none; }
    .submenu-toggle { width: 46px; }
    .submenu-toggle::after { opacity: 1; }
    .featured-slide {
        grid-template-columns: 1fr;
        align-content: start;
        gap: 5px;
        min-height: 670px;
        padding: clamp(70px, 50vw, 195px) 40px 42px;
    }
    .slide-copy { margin: 0; }
    .slide-media { justify-items: center; }
    .slide-media img { width: min(150px, 100%); height: 112px; }
    .slide-arrow { top: auto; bottom: 12px; transform: none; width: 38px; }
    .columns { grid-template-columns: 1fr; gap: 35px; }
    .news-item.with-thumbnail { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
    .thumbnail img { width: 38px; height: 38px; }
}

@media (max-width: 350px) {
    :root { --gutter: 24px; }
    .featured-slide { padding-inline: 24px; }
}
.contact-form {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 1rem;
}
.contact-form p { margin: 0; }
.contact-form label { display: grid; gap: .3rem; min-width: 0; }
.contact-name { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: .5rem .65rem;
    border: 1px solid #767676;
    border-radius: .2rem;
    color: var(--ink);
    background: white;
    font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form button {
    justify-self: start;
    padding: .55rem 1rem;
    border: 0;
    border-radius: .2rem;
    background: var(--green);
    color: white;
    font-weight: 700;
}
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-status:empty { margin-top: -1rem; }
.upcoming-events time { font-weight: 700; }

@media (max-width: 440px) {
    .contact-name { grid-template-columns: 1fr; }
}
