:root {
    --primary-color: #1a3a52;
    --secondary-color: #2c5f7d;
    --accent-color: #d4af37;
    --text-dark: #2d2d2d;
    --text-light: #f4f4f4;
    --border-color: #ddd;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #f9f9f9;
}

.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-zone {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.primary-nav a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.primary-nav a:hover,
.primary-nav a.nav-active {
    background: rgba(255,255,255,0.2);
}

.structural-indicators {
    background: rgba(0,0,0,0.2);
    padding: 0.8rem 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 0.9rem;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-structure {
    background: linear-gradient(rgba(26, 58, 82, 0.85), rgba(44, 95, 125, 0.85)), url('images/1.jpg') center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

.hero-overlay h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-overlay p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
}

.structure-block {
    padding: 4rem 2rem;
}

.structure-block:nth-child(even) {
    background: white;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

.section-header i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.section-header h2 {
    font-size: 2.2rem;
}

.layer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.layer-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.layer-card.semi-transparent {
    background: rgba(255,255,255,0.6);
}

.layer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.layer-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.layer-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.layer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.layer-link:hover {
    color: var(--accent-color);
    gap: 1rem;
}

.schichten-diagram {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.schicht-layer {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.schicht-layer.semi-transparent {
    background: rgba(255,255,255,0.7);
}

.layer-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.layer-label i {
    font-size: 2rem;
    color: var(--accent-color);
}

.layer-label h3 {
    color: var(--primary-color);
}

.layer-explanation {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.mechanik-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.mechanik-box.semi-transparent {
    background: rgba(255,255,255,0.6);
}

.mechanik-box:hover {
    transform: scale(1.05);
}

.mechanik-box i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.mechanik-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.infra-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.infra-component {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.infra-component.semi-transparent {
    background: rgba(255,255,255,0.6);
}

.component-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.infra-component h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.zugang-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.zugang-card.semi-transparent {
    background: rgba(255,255,255,0.7);
}

.zugang-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.section-cta:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.test-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.scenario-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.scenario-box.semi-transparent {
    background: rgba(255,255,255,0.6);
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scenario-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.scenario-header h3 {
    color: var(--primary-color);
}

.stress-meter {
    background: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #ff9800, #f44336);
    transition: width 0.5s ease;
}

.stress-label {
    font-weight: 600;
    color: var(--primary-color);
}

.glossar-section {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 2rem;
}

.glossar-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.glossar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.glossar-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

.glossar-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.site-footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 2rem 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-disclaimer {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    padding: 2rem;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cookie-text a {
    color: var(--secondary-color);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn.accept {
    background: var(--accent-color);
    color: var(--primary-color);
}

.cookie-btn.necessary {
    background: var(--secondary-color);
    color: white;
}

.cookie-btn.reject {
    background: #ddd;
    color: var(--text-dark);
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .primary-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .structural-indicators {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-overlay h2 {
        font-size: 2rem;
    }

    .cookie-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .primary-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-overlay h2 {
        font-size: 1.5rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .layer-grid,
    .mechanik-grid,
    .infra-breakdown,
    .zugang-elements,
    .test-scenarios {
        grid-template-columns: 1fr;
    }
}