:root {
    --pico-primary: #5a7a52;
    --pico-primary-hover: #4a6743;
    --pico-primary-focus: rgba(90, 122, 82, 0.25);
    --pico-primary-inverse: #fff;
}

header {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    margin-bottom: 2rem;
}

footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pico-muted-border-color);
    text-align: center;
    color: var(--pico-muted-color);
}

nav a {
    text-decoration: none;
}

/* ── Dropdown: nur so breit wie der Inhalt, linksbündig unter "Produkte" ── */
nav details.dropdown {
    position: relative;
    display: inline-block;
}

nav details.dropdown > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.4rem 0.75rem;
}

nav details.dropdown > summary::marker,
nav details.dropdown > summary::-webkit-details-marker {
    display: none;
}

nav details.dropdown > summary::after {
    content: " ▾";
    font-size: 0.75em;
    opacity: 0.6;
}

nav details.dropdown > ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    min-width: 200px;
    background: var(--pico-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    flex-direction: column;
}

nav details.dropdown > ul li {
    padding: 0;
}

nav details.dropdown > ul li a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: var(--pico-color);
}

nav details.dropdown > ul li a:hover {
    background: var(--pico-primary-focus);
    color: var(--pico-primary);
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .container { padding-left: 1rem; padding-right: 1rem; }

    /* Startseite: Logo groß */
    div[style*="padding: 3rem"] { padding: 1.5rem 0.5rem !important; }
    div[style*="padding: 3rem"] img { max-width: 100% !important; }

    /* Social Buttons umbrechen */
    div[style*="padding: 3rem"] a {
        display: inline-flex !important;
        margin-left: 0 !important;
        margin-top: 0.75rem !important;
    }

    /* Nav-Logo auf Unterseiten */
    nav img { height: 90px !important; }

    /* Burger-Dropdown volle Breite */
    #burger-menu {
        left: 1rem !important;
        right: 1rem !important;
        transform: none !important;
        min-width: unset !important;
    }

    /* Formulare */
    form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Tabellen & lange Texte */
    table { font-size: 0.85rem; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.2rem; }
}
