:root {
    --max-width: 1200px;
    --gutter: 20px; /* maximaler Rand links und rechts */
    --header-height: 100px;
    --bg: #f5f6f6; /* Seitenhintergrund */
    --primary: #445050; /* Grund-/Textfarbe, angelehnt an Logo */
    --secondary: #806959; /* warme Akzentfarbe, z.B. Menü */
    --accent: #60bfbf; /* frische Akzentfarbe für Überschriften/Buttons */
    --footer-bg: #806959; /* Fußzeile */
    --text: #445050; /* Grundtextfarbe */
    --muted: #f0f2f2; /* ruhige Flächenfarbe */
    --border: #dde2e2; /* feine Rahmenfarbe */
    --font-size-text: 20px; /* Standard-Fließtext */
    --font-size-lg: 20px; /* Unterüberschriften */
    --font-size-xl: 26px; /* Hauptüberschriften */
    --font-size-xxl: 34px;
}

.hero-callout {
    font-size: var(--font-size-text);
}

.trennlinie {
    border:0; 
    border-top:1px solid #eee; 
    margin:30px 0;   
}



html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif; /* an moderne Sans-Serif-Schriften angelehnt */
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1 {
    font-size: var(--font-size-xl); /* gleiche Größe wie das Menü */
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent); /* Akzentfarbe für Überschriften */
    margin-bottom: 1rem;
    font-weight: bold;
}

p {
    font-size: var(--font-size-text);
}

/* Page frame: sorgt für sichtbaren Rand bei Vergrößerung/Verkleinerung */
.page-frame {
    box-sizing: border-box;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(var(--header-height) - 5px); /* Abstand unterhalb des fixen Headers */
}

.container {
    width: 100%;
    max-width: var(--max-width);
    background: white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    padding: 20px;
    border-radius: 8px;
}
/* Header */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: calc(var(--max-width)); /* exakt gleiche Breite wie Container */
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2000;
    border-radius: 0;
    box-sizing: border-box;
}

header img {
    height: calc(var(--header-height) * 0.9);
}

header nav {
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: var(--font-size-lg);
    text-transform: uppercase;
    font-weight: bold;
    color: var(--secondary);
}
header nav a {
    text-decoration: none;
    color: var(--secondary);
}
header nav a:hover {
    color: var(--accent);
}
/* Main */
.nav-toggle {
    display: none;
}
.nav-toggle-label {
    display: none;
}
main {
    padding-top: 10px;
    min-height: 60vh;
}
footer {
    width: 100%;
    background: var(--footer-bg);
    padding: 30px 24px 20px 24px;
    margin-top: 60px;
    color: #f5f6f6;
    font-size: var(--font-size-lg);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 20px;
}

.footer-col strong {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.footer-legal {
    text-align: left;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-legal a {
    color: #f5f6f6;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: left;
    font-size: 12px;
    color: #d7e3e3;
}

/* Mobile Ansicht */
@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-legal,
    .footer-bottom {
        text-align: left;
    }
}

@media (max-width: 400px) {
    .footer-bottom {
        text-align: left;
    }
}

/* Abschnittsanker: sorgt dafür, dass Überschriften nicht hinter dem Header verschwinden */
section {
    scroll-margin-top: calc(var(--header-height) + 20px);
    padding:5px 0;
}

/* Buttons & Links */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: var(--font-size-text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary {
    background: #cca78f;
    color: #ffffff;
    border: 2px solid #cca78f;
    font-weight: bold; /* Text fett */
    padding: 10px 14px; /* schmalere Breite */
}
.btn-primary:hover {
    background: #cca78f !important;
    color: #ffffff !important;
    border-color: #cca78f !important;
}
.btn-primary2 {
    background: var(--accent);
    color: #ffffff;
    border: 2px solid var(--accent);
    font-weight: bold; /* Text fett */
    padding: 10px 14px; /* schmalere Breite */
}
main a {
    color: var(--accent);
}
main a:hover {
    text-decoration: underline;
}
/* Responsive Anpassungen */

.mitglied-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* zwei gleich breite Spalten */
    gap: 30px; /* Abstand zwischen den Boxen */
    width: 100%; /* ganze Breite nutzen */
    padding: 0 20px; /* Abstand zum Rand links und rechts */
    box-sizing: border-box;
    align-items: stretch; /* gleiche Höhe */
}

/* 2-Spalten-Layout für Mitgliedschaft → 1 Spalte unter 700px */
@media (max-width: 700px) {
    .mitglied-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }
}

/* Responsive Anpassungen */

/* HERO OVERLAY RESPONSIVE */
@media (max-width: 900px) {
    .hero-overlay {
        width: 60%;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        padding: 20px;
    }
    .overlay-text {
        font-size: 14px !important;
        padding: 15px !important;
    }
}

/* Unter 600px wird das Overlay komplett ausgeblendet */
@media (max-width: 600px) {
    .hero-overlay {
        display: none;
    }
    .hero-mobile {
        display: block;
    }
    .overlay-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
        padding: 10px !important;
    }
}

/* Responsive Anpassungen */
@media (max-width: 700px) {
    :root {
        --gutter: 12px;
    }
    header {
        padding: 8px 16px;
    }
    header img {
        height: 56px;
    }
    .nav-toggle-label {
        margin-left: auto;
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--secondary);
    }
    header nav {
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 10px;
        padding: 10px 24px 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        display: none;
    }
    header nav a {
        padding: 4px 0;
    }
    .nav-toggle:checked + .nav-toggle-label + nav {
        display: flex;
    }
}
