* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --secondary: #0066cc;
    --light-bg: #f5f5f5;
    --border: #e0e0e0;
    --text-dark: #333;
    --text-light: #666;
    --accent: #ff5722;
    --success: #2e7d32;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--primary);
    color: white;
    padding: 30px 0;
    border-bottom: 3px solid var(--secondary);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary);
}

.tagline {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    sticky-top: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 0;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding-bottom: 5px;
    position: relative;
}

.nav-btn:hover {
    color: var(--text-dark);
}

.nav-btn.active {
    color: var(--secondary);
    border-bottom: 3px solid var(--secondary);
}

/* Featured Section */
.featured {
    padding: 40px 0;
    background: var(--light-bg);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.featured-main {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-content {
    padding: 25px;
}

.featured-content h2 {
    font-size: 28px;
    margin: 15px 0;
    line-height: 1.3;
    color: var(--text-dark);
}

.featured-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-side-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-side-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-side-item h3 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.featured-side-item .time {
    font-size: 12px;
    color: var(--text-light);
}

/* News Grid */
.news-section {
    padding: 40px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    background: var(--secondary);
    color: white;
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
}

.category-tag.politik { background: #1976d2; }
.category-tag.wirtschaft { background: #d32f2f; }
.category-tag.tech { background: #7b1fa2; }
.category-tag.sport { background: #f57c00; }
.category-tag.gesellschaft { background: #388e3c; }

.news-card h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.news-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.time {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    font-size: 14px;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 10px;
    border-bottom: 1px solid var(--border);
}

.modal-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    background: var(--secondary);
    color: white;
    border-radius: 4px;
}

.modal-time {
    font-size: 13px;
    color: var(--text-light);
}

.modal-title {
    font-size: 32px;
    line-height: 1.2;
    padding: 20px 30px;
    color: var(--text-dark);
}

.modal-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-body {
    padding: 30px;
}

.modal-text-short {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

.modal-text-full {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.modal-text-full p {
    margin-bottom: 15px;
}

.modal-toggle-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-toggle-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.modal-toggle-btn.reading {
    background: #999;
}

.modal-meta {
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    background: var(--light-bg);
}

.modal-author {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.modal-source {
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-side {
        flex-direction: row;
        gap: 10px;
    }

    .featured-side-item {
        flex: 1;
    }

    .featured-main {
        grid-row: auto;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .logo {
        font-size: 24px;
    }

    .featured-content h2 {
        font-size: 22px;
    }

    .nav-content {
        gap: 10px;
    }

    .nav-btn {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured-side {
        flex-direction: column;
    }

    .featured-image {
        height: 250px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-text-short {
        font-size: 16px;
    }

    .modal-content {
        width: 95%;
    }
}
