*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f5f5f5;
}

a {
    color: inherit;
    text-decoration: none;
    color: #7fc700;
}

    a:hover,
    a:focus {
        text-decoration: underline;
    }

.header-image img {
    display: block;
    height: 250px;
    object-fit: cover;
    width: 100%;
}

h1, h2, h3, h4, h5 {
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

.site-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    background: #ffffff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    border-radius: 10px 10px 0 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem;
}

.site-logo {
    flex: 0 0 auto;
}

.top-navigation {
    flex: 1;
    text-align: right;
}

    .main-navigation ul,
    .top-navigation ul {
        list-style: none;
        display: flex;
        gap: 1.5rem;
    }

    .main-navigation li,
    .top-navigation li {
        position: relative;
    }

    .main-navigation a,
    .top-navigation a {
        font-weight: 500;
    }

.header-image {
    width: 100%;
    overflow: hidden;
}

.content-section {
    padding: 3rem 1.5rem;
}

.content-grid {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.content-main {
    flex: 2;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 0;
    margin: 0 0 0 3rem;
    box-sizing: border-box;
}

.green {
    background-color: #7fc700;
    color: #ffffff;
}

.light-green {
    background-color: #d5e9be;
}

.white {
    background-color: #ffffff;
}

.green a {
    color: #ffffff;
}

.page-title {
    padding: 1.5rem 1.5rem;
    background: #7fc700;
    color: white;
}

    .page-title h1 {
        margin: 0 0 0 33%;
        font-size: 1.5rem;
        font-weight: normal;
        padding-left: 4.4rem;
    }

.site-footer {
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
    color: #333;
    border-radius: 0 0 10px 10px;
}

    .site-footer .custom {
        display: flex;
        gap: 2rem;
        justify-content: end;
    }

.separator {
    height: 5rem;
    border-radius: 0 0 10px 10px;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.moduletable {
    margin-bottom: 2rem;
}

    .moduletable h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

.content-green > li {
    list-style: none;
    color: #fff;
    margin: 0 0 20px;
    padding: 0;
}

    .content-green > li > a {
        display: block;
        padding: 10px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        border: 1px solid #fff;
        transition: all 0.3s ease;
    }

        .content-green > li > a:hover {
            color: #004e9e;
            border: 1px solid #004e9e;
            text-decoration: none;
        }

.footer-links {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
}

    .footer-links ul {
        list-style: none;
        display: flex;
        gap: 1rem;
        margin: 0 0 1rem 0;
    }

@media (max-width: 1024px) {
    .content-grid {
        gap: 2rem;
    }
}

@media (max-width: 1299px) {

    .site-wrapper {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        overflow-x: hidden;
    }

    .header-inner {
        padding: 1rem;
        gap: 1.5rem;
    }

    .content-grid {
        gap: 2rem;
    }

    .sidebar {
        margin-left: 2rem;
    }

    .page-title h1 {
        margin-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-grid {
        flex-direction: column;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
        padding: 1rem;
        background: #fafafa;
        border-top: 1px solid #ddd;
    }

    .main-navigation ul,
    .top-navigation ul {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {

    html {
        font-size: 15px;
    }

    .content-section {
        padding: 2rem 1rem;
    }
}


/*vanilla css und js responsive menu - Igitt!!!*/
.main-navigation {
    position: relative;
}

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

    .main-navigation > ul {
        display: flex;
        justify-content: flex-end;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .main-navigation .nav-item {
        position: relative;
    }

    .main-navigation a {
        display: inline-flex;
        align-items: center;
        padding: 1rem 0;
        font-weight: 500;
        color: #222;
        text-decoration: none;
    }

        .main-navigation a:hover,
        .main-navigation .active > a {
            color: #2f7d32;
        }

    .main-navigation .mod-menu__sub {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background: rgba(255, 255, 255, 0.5);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        border-radius: 6px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
    }

@media (min-width: 1300px) {
    .main-navigation .deeper:hover > .mod-menu__sub {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.main-navigation .mod-menu__sub a {
    display: block;
    padding: 0.6rem 1.25rem;
    white-space: nowrap;
}

    .main-navigation .mod-menu__sub a:hover {
        background: rgba(47, 125, 50, 0.08);
    }

.visually-hidden {
    display: none;
}

.mod-menu__toggle-sub {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    margin-left: 0.4rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

@media (max-width: 1299px) {

    .menu-toggle {
        display: block;
    }

    .main-navigation > ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
    }

    .main-navigation.is-open > ul {
        display: flex;
    }

    .main-navigation .nav-item {
        border-bottom: 1px solid #eee;
    }

    .main-navigation a {
        width: 100%;
        padding: 0.75rem 0;
        justify-content: space-between;
    }

    .mod-menu__toggle-sub {
        display: inline-flex;
        align-items: center;
    }

    .mod-menu__sub {
        position: static;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-5px);
        transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    }

        .mod-menu__sub[aria-hidden="false"] {
            max-height: 2000px;
            opacity: 1;
            transform: translateY(0);
        }

    .mod-menu__toggle-sub[aria-expanded="true"] .icon-chevron-down {
        transform: rotate(180deg);
    }

    .icon-chevron-down {
        transition: transform 0.25s ease;
    }

    .main-navigation .mod-menu__sub {
        position: relative;
        opacity: 1;
        overflow: auto;
        max-height: unset;
        padding: 0;
        margin: -20px 0 0 0;
        box-shadow: none;
        pointer-events: all;
        border-radius: 0;
    }

    .mod-menu__toggle-sub {
        display: none;
    }
}