/*
 * Gemeinsame Styles aller Seiten: Basis, Kopfzeile mit Navigation und
 * Sprachauswahl, Kopfbereich und Karten der Unterseiten, Fußzeile.
 * Seitenspezifische Styles stehen weiterhin inline in der jeweiligen Seite.
 */

/* Inter (SIL Open Font License, fonts/OFL.txt) selbst gehostet, damit keine
   Anfragen an Google Fonts gehen. Variable Schrift für alle Stärken. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

body.subpage {
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container.narrow {
    max-width: 900px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d6f3d;
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: #2d6f3d;
}

/* Language dropdown */
.lang-switcher-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-dropdown-btn {
    background: transparent;
    border: 2px solid #2d6f3d;
    color: #2d6f3d;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-dropdown-btn:hover {
    background: #2d6f3d;
    color: white;
}

.lang-dropdown-btn .chevron {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.lang-dropdown-btn.open .chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    z-index: 999;
    overflow: hidden;
}

.lang-dropdown-menu.open {
    display: block;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: background 0.15s ease;
}

.lang-dropdown-item:hover {
    background: #f3f4f6;
}

.lang-dropdown-item.active {
    background: #e8f5e9;
    color: #2d6f3d;
    font-weight: 700;
}

/* Kopfbereich der Unterseiten */
.page-hero {
    padding: 120px 0 3rem;
    background: linear-gradient(135deg, #2d6f3d 0%, #1e7145 100%);
    color: white;
    text-align: center;
}

.page-hero .eyebrow {
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    opacity: 0.9;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.page-hero .lead {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.15rem;
    opacity: 0.9;
}

/* Inhalt der Unterseiten */
.page-main {
    padding: 2.5rem 0 3rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #2d6f3d;
    margin: 2rem 0 1rem;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: #2d6f3d;
    margin: 1.5rem 0 0.75rem;
}

.card > h2:first-child,
.card > h3:first-child {
    margin-top: 0;
}

.card p {
    margin-bottom: 1rem;
}

.card ul,
.card ol {
    margin: 1rem 0 1rem 1.5rem;
}

.card li {
    margin-bottom: 0.5rem;
}

.card a {
    color: #2d6f3d;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: #2d6f3d;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-link:hover {
    background: #1e7145;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 111, 61, 0.3);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: #8bc34a;
}

.company-info {
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #8bc34a;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 130px;
    }

    .header {
        padding: 0.5rem 0;
    }

    .header .container {
        padding: 0.5rem 20px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
    }

    .logo {
        gap: 0.4rem;
        flex-shrink: 0;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .logo .brand-name {
        font-size: 1.1rem;
    }

    .nav {
        width: 100%;
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav a {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .lang-dropdown-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.72rem;
    }

    .page-hero {
        padding: 165px 0 2.5rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero .lead {
        font-size: 1.05rem;
    }

    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 140px;
    }

    .container {
        padding: 0 15px;
    }

    .header .container {
        padding: 0.4rem 15px;
    }

    .logo .brand-name {
        font-size: 1rem;
    }

    .logo-img {
        width: 24px;
        height: 24px;
    }

    .nav {
        gap: 0.4rem;
    }

    .nav a {
        font-size: 0.72rem;
        padding: 0.2rem 0.3rem;
    }

    .nav .nav-optional {
        display: none;
    }

    .lang-dropdown-btn {
        padding: 0.15rem 0.3rem;
        font-size: 0.68rem;
    }

    .page-hero {
        padding: 155px 0 2rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .card {
        padding: 1.25rem;
    }
}
