/* LEAFAP Learning Platform - Module/Session Design */

/* Reset und Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.header-text {
    flex: 1;
}

.header-text h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.header-text p {
    color: #666;
    font-size: 1rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: #dee2e6;
    color: #212529;
}

.lang-btn.active {
    background: #007bff;
    color: white;
}

/* Module Navigation - Dominant */
.module-nav {
    background: #2c3e50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    overflow-x: auto;
    padding: 0;
}

.nav-menu li {
    white-space: nowrap;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: #34495e;
    color: #fff;
}

.nav-menu a.active {
    background: #3498db;
    border-bottom-color: #2980b9;
    color: white;
}

/* Session Navigation - Dezent in Grau */
.session-nav {
    background: #95a5a6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.session-menu {
    display: flex;
    list-style: none;
    gap: 0;
    overflow-x: auto;
    padding: 0;
}

.session-menu li {
    white-space: nowrap;
}

.session-menu a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.session-menu a:hover {
    background: #7f8c8d;
    color: #fff;
}

.session-menu a.active {
    background: #34495e;
    border-bottom-color: #2c3e50;
    color: white;
    font-weight: 500;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 250px);
    padding: 2rem 0;
}

/* Area Content */
.area-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #e9ecef;
}

/* Content Blocks */
.content-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Base Content Block Styles */
.content-block {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e9ecef;
}

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

.block-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.material-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.block-header .file-type {
    background: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.block-content {
    padding: 1.5rem;
}

.block-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.block-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
}

/* ==============================================
   STYLE VARIANTS - 5 Different Content Styles
   ============================================== */

/* 1. STANDARD - Default Grey Style (current design) */
.content-block.style-standard {
    background: white;
    border: 2px solid #e9ecef;
}

.content-block.style-standard .block-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.content-block.style-standard .material-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 2. LEARNING OUTCOMES - Soft Blue */
.content-block.style-learning-outcomes {
    background: #f8fcff;
    border: 2px solid #90caf9;
}

.content-block.style-learning-outcomes .block-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border-bottom: 2px solid #90caf9;
}

.content-block.style-learning-outcomes .material-number {
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.content-block.style-learning-outcomes .block-header h3 {
    color: #1565c0;
}

.content-block.style-learning-outcomes .block-content {
    background: #f8fcff;
}

/* 3. DEFINITION/IMPORTANT - Soft Orange/Amber */
.content-block.style-definition {
    background: #fffcf7;
    border: 2px solid #ffb74d;
}

.content-block.style-definition .block-header {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-bottom: 2px solid #ffb74d;
}

.content-block.style-definition .material-number {
    background: linear-gradient(135deg, #ffa726 0%, #f57c00 100%);
    box-shadow: 0 2px 8px rgba(245, 124, 0, 0.3);
}

.content-block.style-definition .block-header h3 {
    color: #e65100;
}

.content-block.style-definition .block-content {
    background: #fffcf7;
}

/* 4. EXAMPLES - Soft Green */
.content-block.style-examples {
    background: #f7fdf9;
    border: 2px solid #81c784;
}

.content-block.style-examples .block-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-bottom: 2px solid #81c784;
}

.content-block.style-examples .material-number {
    background: linear-gradient(135deg, #66bb6a 0%, #388e3c 100%);
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.3);
}

.content-block.style-examples .block-header h3 {
    color: #2e7d32;
}

.content-block.style-examples .block-content {
    background: #f7fdf9;
}

/* 5. ACTIVITIES - Soft Purple/Lavender */
.content-block.style-activities {
    background: #fdf8fd;
    border: 2px solid #ba68c8;
}

.content-block.style-activities .block-header {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-bottom: 2px solid #ba68c8;
}

.content-block.style-activities .material-number {
    background: linear-gradient(135deg, #ab47bc 0%, #7b1fa2 100%);
    box-shadow: 0 2px 8px rgba(123, 31, 162, 0.3);
}

.content-block.style-activities .block-header h3 {
    color: #6a1b9a;
}

.content-block.style-activities .block-content {
    background: #fdf8fd;
}

/* Enhanced hover effects for styled blocks */
.content-block.style-learning-outcomes:hover {
    border-color: #64b5f6;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.2);
}

.content-block.style-definition:hover {
    border-color: #ff9800;
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.2);
}

.content-block.style-examples:hover {
    border-color: #66bb6a;
    box-shadow: 0 8px 25px rgba(56, 142, 60, 0.2);
}

.content-block.style-activities:hover {
    border-color: #ab47bc;
    box-shadow: 0 8px 25px rgba(123, 31, 162, 0.2);
}

/* Download Items */
.file-item .download-link {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.file-item .download-link h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.file-item .file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.download-btn {
    background: #28a745;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
    display: inline-block;
}

.download-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

/* Link-Only Mode */
.link-only-mode {
    text-align: center;
    padding: 3rem 2rem;
}

.link-only-mode .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    transition: all 0.3s;
}

.link-only-mode .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* Error States */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.no-content {
    background: #fff3cd;
    color: #856404;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: left;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.footer-section h4 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #2980b9;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-meta {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-menu {
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .session-menu a {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .block-content {
        padding: 1rem;
    }
    
    .file-item .file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .language-switcher {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .area-content h2 {
        font-size: 1.5rem;
    }
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-block,
.file-item {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
