/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; color: var(--text-primary); background: var(--bg-secondary); line-height: 1.6; }

/* HERO SECTION - VOLLBREITE ohne Sidebar */
.hero {
    position: relative;
    min-height: 60vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102,126,234,0.9), rgba(118,75,162,0.9)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1920') center/cover;
    padding: 3rem;
}

.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.2); }
.hero-content { position: relative; z-index: 2; max-width: 1000px; text-align: center; }
.hero-title { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 1.5rem; text-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.hero-subtitle { font-size: 1.3rem; color: rgba(255,255,255,0.95); line-height: 1.7; }

/* LAYOUT MIT SIDEBAR - zwischen Hero und Footer */
.layout-with-sidebar {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* SIDEBAR - Fixed innerhalb des Layouts */
.sidebar {
    position: sticky;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    padding: 2rem 0;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.sidebar ul { list-style: none; padding: 0.5rem; }
.sidebar li { margin-bottom: 0.5rem; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.sidebar-link:hover {
    background: #e8eaf6;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: var(--primary-dark);
    font-weight: 600;
    border-left-color: var(--primary-color);
}

.link-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 0.375rem;
}

/* CONTENT - nimmt restlichen Platz */
.content {
    flex: 1;
    background: var(--bg-secondary);
}

/* SECTIONS */
.section { padding: 4rem 3rem; background: #fff; }
.section.hidden { display: none; }
.section:nth-child(even) { background: #fafbfc; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 3.8rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 1.5rem; }
.section-divider { width: 120px; height: 5px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); margin: 0 auto; border-radius: 3px; }

/* VIDEO */
.video-container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* SUBSECTIONS */
.subsection {
    max-width: 1300px;
    margin: 0 auto 5rem;
    padding: 3rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.subsection-title { font-size: 2.5rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 2.5rem; text-align: center; }
.subsection-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.subsection-reverse .subsection-content { grid-template-columns: 1.2fr 1fr; }

.subsection-image { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.subsection-image img { width: 100%; height: 100%; object-fit: cover; min-height: 350px; transition: transform 0.5s; }
.subsection-image:hover img { transform: scale(1.08); }

.large-text { font-size: 1.35rem; line-height: 1.9; color: #2d3748; margin-bottom: 1.8rem; }

/* TEXT LIST */
.text-list-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }

.text-list-item {
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 2.5rem;
    transition: all 0.3s;
}

.text-list-item:hover { box-shadow: 0 12px 35px rgba(0,0,0,0.12); transform: translateY(-5px); }

.text-list-icon {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 20px;
    flex-shrink: 0;
}

.text-list-content { flex: 1; }
.text-list-title { font-size: 2.2rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 1.2rem; }
.text-list-description { font-size: 1.3rem; line-height: 1.8; color: #4a5568; margin-bottom: 1.5rem; }

.requirement-list { list-style: none; padding: 0; }
.requirement-list li { font-size: 1.2rem; line-height: 1.9; color: #2d3748; margin-bottom: 1rem; padding-left: 2rem; position: relative; }
.requirement-list li::before { content: "✓"; position: absolute; left: 0; color: var(--secondary-color); font-weight: bold; font-size: 1.4rem; }

/* MODAL CARDS */
.modal-cards-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }

.modal-card {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.4s;
}

.modal-card:hover { transform: translateY(-12px); box-shadow: 0 15px 45px rgba(0,0,0,0.15); border-color: var(--primary-color); }

.modal-card-icon { font-size: 4.5rem; margin-bottom: 1.5rem; }
.modal-card-title { font-size: 2rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 1rem; }
.modal-card-description { font-size: 1.2rem; color: #4a5568; margin-bottom: 2rem; }

.modal-card-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.7);
}

.modal.active { display: flex; align-items: center; justify-content: center; padding: 2rem; }

.modal-content {
    background: #fff;
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    color: #fff;
    float: right;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 24px 0 16px;
    transition: all 0.3s;
}

.modal-close:hover { background: var(--primary-dark); transform: rotate(90deg); }

.modal-title { font-size: 3rem; font-weight: 800; color: var(--primary-dark); padding: 2.5rem 3rem 1rem; border-bottom: 4px solid var(--primary-color); }
.modal-body { padding: 3rem; }
.modal-image { width: 100%; height: 350px; object-fit: cover; border-radius: 16px; margin-bottom: 2.5rem; }
.modal-text { font-size: 1.3rem; line-height: 1.9; color: #2d3748; margin-bottom: 2rem; }
.modal-list { list-style: none; padding: 0; }
.modal-list li { font-size: 1.25rem; line-height: 2; color: #2d3748; margin-bottom: 1rem; padding-left: 2.5rem; position: relative; }
.modal-list li::before { content: "▸"; position: absolute; left: 0; color: var(--primary-color); font-size: 1.5rem; }

/* VERTICAL TEXT BLOCKS */
.vertical-text-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }

.vertical-text-block {
    background: #fff;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    gap: 3rem;
    border-left: 6px solid var(--primary-color);
    transition: all 0.4s;
}

.vertical-text-block:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.12); transform: translateX(8px); }

.vertical-text-icon {
    font-size: 4.5rem;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 24px;
    flex-shrink: 0;
}

.vertical-text-content { flex: 1; }
.vertical-text-title { font-size: 2.5rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 1.5rem; }
.vertical-text-description { font-size: 1.3rem; line-height: 1.9; color: #4a5568; margin-bottom: 2rem; }

.vertical-list { list-style: none; padding: 0; }
.vertical-list li { font-size: 1.25rem; line-height: 1.9; color: #2d3748; margin-bottom: 1.2rem; padding-left: 2.5rem; position: relative; }
.vertical-list li::before { content: "●"; position: absolute; left: 0; color: var(--secondary-color); font-size: 1.3rem; }

/* CTA */
.cta-container { text-align: center; margin-top: 3.5rem; }
.cta-button {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}



/* MOBILE MENU TOGGLE */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1200;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* SCROLL TO TOP */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--primary-dark); transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .subsection-content { grid-template-columns: 1fr; }
    .subsection-reverse .subsection-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .layout-with-sidebar {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1100;
        transition: transform 0.3s;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        width: 100%;
    }
    
    .hero { min-height: 50vh; padding: 2rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .section { padding: 3rem 1.5rem; }
    .section-title { font-size: 2.5rem; }
    
    .text-list-item { flex-direction: column; padding: 2rem; }
    .text-list-icon { width: 80px; height: 80px; font-size: 3rem; }
    
    .modal-cards-grid { grid-template-columns: 1fr; }
    
    .vertical-text-block { flex-direction: column; padding: 2rem; }
    
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}