:root
{
    --primary-green: #578a60;
    --secondary-green: #588157;
    --accent-green: #a3b18a;
    --background: #b7c5b7;
    --white: #f8fdf8;
    --card-border: #b7b7a4;
    --nav-bg: #e6f4ea;
    --footer-gradient: #3b6b44;
}

html, body
{
    height: 100%;
    margin: 0;
    padding: 0;
}

body
{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body
{
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--background);
    min-height: 100vh;
}

a {
    color: var(--primary-green);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

a:active {
    color: var(--secondary-green);
}

a:visited {
    color: var(--primary-green);
}

header
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0,0,0,0.4);
}

.header-bar
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo h1 {
    margin: 0;
    font-size: 3em;
    letter-spacing: 2px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--white);
}

.logo h2 {
    margin: 0;
    font-weight: 400;
    font-size: 1em;
    color: #e6f4ea;
}

.site-logo
{
    width: 50px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.logo-text h1
{
    margin: 0;
    font-size: 1.6rem;
}

.logo-text h2
{
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
}

nav
{
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    background-color: transparent !important;
}

nav ul
{
    list-style: none;
    display: flex;
    gap: 0;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

nav li
{
    cursor: pointer;
    padding: 10px 24px;
    border-radius: 0;
    font-weight: 500;
    color: var(--white);
    background: none;
    transition: color 0.2s, text-decoration 0.2s;
    font-size: 1.1em;
    position: relative;
    background-color: transparent !important;
}

nav li:not(:last-child)::after
{
    content: "|";
    color: #a3b18a;
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    pointer-events: none;
}

nav li.active, nav li:hover 
{
    background: none;
    color: var(--accent-green);
    text-decoration: underline;
}

nav li, nav li:focus, nav li:active
{
    background-color: transparent !important;
    outline: none;
}

.hamburger
{
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span
{
    display: block;
    height: 3px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1)
{
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2)
{
    opacity: 0;
}

.hamburger.active span:nth-child(3)
{
    transform: rotate(-45deg) translate(5px, -5px);
}

main
{
    padding: 0px;
    max-width: 100%;
    margin: 0;
    background: none;
    flex: 1 0 auto;
}

section
{
    background: var(--white);
    border-radius: 0px;
    box-shadow: 0 2px 12px rgba(58,90,64,0.07);
    padding: 100px;
    margin-bottom: 32px;
    animation: fadeIn 0.5s;
    width: 100%;
    box-sizing: border-box;
    padding: 0px;
}
        
.card-list
{
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-top: 1em;
}

.card
{
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1em 1.5em;
    box-shadow: 0 2px 8px rgba(58,90,64,0.04);
}

.card img
{
    margin: 0.25em 0em;
    background: var(--accent-green);
    border-radius: 6px;
}

.news-card
{
    display: flex;
    align-items: flex-start;
    gap: 1em;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.news-card:hover
{
    box-shadow: 0 4px 16px rgba(34,139,34,0.15);
    background: #e6f9ee;
    transform: translateY(-2px) scale(1.01);
}

.news-card img
{
    flex-shrink: 0;
    border-radius: 8px;
    max-width: 120px;
    height: auto;
}

.news-card h4
{
    margin: 0 0 0.3em 0;
}

.news-card p
{
    margin: 0;
}

footer p
{
    font-size: 1.1em;
   margin-bottom: 0px;
}

footer
{
    background: var(--footer-gradient);
    color:  var(--white);
    text-align: center;
    padding: 0px 0px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 40px;
    letter-spacing: 1px;
    font-size: 1.1em;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 16px 24px;
    box-sizing: border-box;
}

#tab-impressum
{
    margin-top: 0px;
    font-size: 0.8em;
}

.startBild
{
    position: sticky;
    top: calc(-376px);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;

    height: 400px;
    background-image:
        linear-gradient(90deg,
            rgba(0,0,0,0.2) 0%,
            rgba(0,0,0,0.15) 35%,
            rgba(0,0,0,0.07) 70%,
            rgba(0,0,0,0.02) 100%),
        var(--bg-image);
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;

    color: var(--white);
    padding: 28px 24px;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.5;
}

.startBild--1 { --bg-image: url('../../images/image17.jpg'); }
.startBild--2 { --bg-image: url('../../images/image21.jpg'); }
.startBild--3 { --bg-image: url('../../images/image09.jpg'); }
.startBild--4 { --bg-image: url('../../images/image20.jpg'); }
.startBild--5 { --bg-image: url('../../images/Img4.jpg'); }
.startBild--6 { --bg-image: url('../../images/image12.jpg'); }

.startBild p
{
    margin: 0px;
    position: relative;
}

.startBild p:last-child
{
    margin-top: 0px;
    margin-bottom: 45px;
    position: relative;
}

.content
{
    padding: 40px 100px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-caption
{
    max-width: 1100px;
    margin: 0.75rem auto 1.25rem;
    padding: 0 24px;
    color: var(--primary-green);
    text-align: center;
     font-weight: 600;
    font-size: 1.8rem;
    font-family: 'Times New Roman', serif;
}

.hero-quote
{
    width: 100%;
    text-align: center;
    padding: 18px 16px;
    box-sizing: border-box;
    background: transparent;
}

.hero-quote p
{
    margin: 0;
    color: var(--primary-green);
    font-size: 2rem;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.2px;
}

@media (max-width: 900px)
{
    h1
    {
        font-size: 1.5em;
    }

    .logo h1
    {
        margin: 10px;
        font-size: 1.9em;
        letter-spacing: 2px;
    }

    h2
    {
        font-size: 1em;
    }

    .header-bar
    {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 8px 4vw;
    }

    .logo
    {
        align-items: flex-start;
    }

    nav ul
    {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: rgba(0, 0, 0, 0.9);
        padding: 80px 32px 32px;
        box-sizing: border-box;
        overflow-y: auto;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform: translateX(100%);
        opacity: 0;
        z-index: 1000;
    }

    nav ul.show
    {
        display: flex;
        transform: translateX(0);
        opacity: 1;
    }

    nav li
    {
        padding: 32px 0;
        color: var(--white);
        width: 100%;
        max-width: 350px;
        text-align: left;
        font-size: 1.6em;
        display: block;
        position: relative; 
    }

    .hamburger
    {
        display: flex;
        position: absolute;
        top: 16px;
        right: 24px;
        z-index: 1001;
        margin: 10px;
    }

    nav li:not(:last-child)::after
    {
        content: "";
        display: block;
        height: 1px;
        width: 100%;
        background: #a3b18a;
        margin: 44px 0 0 0;
        left: 0px;
    }

    .startBild
    {
        font-size: 2.5rem;
    }

    footer
    {
        font-size: 0.9em;
        padding: 10px 0;
    }

    .content
    {
        padding: 10px 4dvh;
    }
}

.footer-tab
{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background: none;
    color: inherit;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 0;
    transition: color 0.2s, text-decoration 0.2s;
    display: inline-block;
    line-height: 1;
    color: #fff;
}

.footer-tab:hover,
.footer-tab.active
{
    color: var(--accent-green);
    text-decoration: underline;
    background: none;
}

footer
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    box-sizing: border-box;
}

main > section { display: none; }
main > section.active { display: block; }