:root {
    --color-primary: #00664c;
    --color-bg: #f7f3ed;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
    background-color: var(--color-bg);
    margin: 0;
    overflow-x: hidden;
}

.header-container {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-left-group { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }

/* Mobile Optimierung für den Header */
@media (max-width: 768px) {
    .nav-links { 
        display: none; /* Versteckt die Text-Links auf dem Smartphone */
    }
    .header-container { 
        padding: 0 1.5rem; 
    }
}

.detail-section {
    min-height: 85vh; display: flex; align-items: center; position: relative;
    background-size: cover; background-position: center; background-attachment: scroll;
    margin: 2rem; border-radius: 50px; overflow: hidden; background-color: #cbd5c9;
    background-repeat: no-repeat;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .detail-section {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
}

@media (min-width: 1025px) {
    .detail-section { background-attachment: fixed; }
}

@supports (-webkit-touch-callout: none) {
    .detail-section {
        background-attachment: scroll !important;
        background-size: cover !important;
    }
}

@media (max-width: 767px) {
    .detail-section { 
        background-attachment: scroll; 
        margin: 1rem; 
        border-radius: 30px; 
        min-height: 60vh; 
    }
    .content-overlay { margin: 1.5rem !important; padding: 2.5rem !important; max-width: 85% !important; }
}

.content-overlay {
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
    padding: 3.5rem; border-radius: 40px; max-width: 550px; margin-left: 5%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.category-card {
    background: white; padding: 2.5rem; border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02); display: flex; flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05); height: 100%; min-height: 400px; 
}

.category-card h2 { min-height: 3.5rem; }
.category-card nav { display: flex; flex-direction: column; flex-grow: 1; justify-content: flex-start; }

@media (max-width: 768px) {
    .category-card { padding: 2rem; border-radius: 30px; height: auto; min-height: auto; }
    .category-card h2 { min-height: auto; }
    .icon-box { width: 50px; height: 50px; margin-bottom: 1rem; }
}

.icon-box { width: 60px; height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.topic-link { display: flex; justify-content: space-between; padding: 1.1rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-weight: 600; transition: all 0.3s; color: #1a1a1a; }
.topic-link:hover { color: var(--color-primary); padding-left: 8px; }

.btn-main { background: var(--color-primary); color: white; padding: 1rem 2rem; border-radius: 18px; font-weight: 700; display: inline-block; cursor: pointer; transition: opacity 0.2s; border: none; }

#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-primary); color: white; padding: 1.5rem;
    z-index: 1000; display: none; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
#cookie-banner.show { display: block; }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

#modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); 
    z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; 
}
#modal-content { 
    background: white; max-width: 750px; width: 100%; max-height: 85vh; 
    overflow-y: auto; border-radius: 40px; padding: 3.5rem; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Hilfsklasse für Screenreader */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
