/* ==========================================================================
   Frontend Design - Klassisch Hell (Light Mode)
   Modern, strukturiert, leserlich, ohne Glasmorphismus oder Blur-Effekte
   ========================================================================== */

:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #e11d48;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SVG Vector Icons System */
.svg-icon {
    display: inline-block;
    vertical-align: -0.16em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.svg-icon.fill-current {
    fill: currentColor;
    stroke: none;
}

.svg-icon-gold {
    color: #eab308;
}

.svg-spin {
    animation: svg-icon-spin 1.2s linear infinite;
}

@keyframes svg-icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header & Navigation */
.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-icon {
    font-size: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 4px;
    position: relative;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px 3px 0 0;
}

.header-search {
    flex: 1;
    max-width: 320px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface-alt);
    font-size: 13px;
    color: var(--text-main);
    transition: background 0.2s, border-color 0.2s;
}

.search-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 13px;
    pointer-events: none;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 35px 0;
}

/* Sektionen & Titel */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-line {
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
    display: inline-block;
}

/* Filterleiste & Sortierung */
.filter-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
}

.filter-select {
    padding: 7px 12px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.genre-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.genre-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.15s;
}

.genre-tag:hover,
.genre-tag.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Klassisches Medien-Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.media-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.media-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #e2e8f0;
    overflow: hidden;
}

.media-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-badge-score {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.85);
    color: #facc15;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 3px;
}

.media-badge-type {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(37, 99, 235, 0.9);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.media-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.media-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Detailseiten */
.detail-hero {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    box-shadow: var(--shadow-sm);
}

.detail-poster-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 2 / 3;
    background: #e2e8f0;
}

.detail-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-content h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.2;
}

.detail-tagline {
    font-size: 15px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.detail-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-overview h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.detail-overview p {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

/* Video Player Container & Hoster Switcher */
.player-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.hoster-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hoster-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-surface-alt);
    color: var(--text-main);
    border: 1px solid var(--border-dark);
    cursor: pointer;
    transition: all 0.15s;
}

.hoster-btn:hover {
    background: #e2e8f0;
}

.hoster-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.hoster-favicon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
    display: inline-block;
}

.hoster-btn .badge-quality {
    font-size: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 5px;
    border-radius: 3px;
}

.player-embed-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.player-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.player-auth-wall {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--text-main);
    padding: 30px;
    text-align: center;
}

/* Staffeln & Episoden Liste (Serien) */
.season-accordion {
    margin-top: 30px;
}

.season-tabs-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.season-tabs-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.season-tabs-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.season-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-surface-alt);
    color: var(--text-main);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.season-tab-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.season-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.season-tab-count {
    font-size: 11px;
    opacity: 0.8;
}

.season-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.2s ease;
}

.season-title {
    padding: 15px 20px;
    background: var(--bg-surface-alt);
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px;
}

.episode-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}

.episode-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.episode-still-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
}

.episode-still {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.episode-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.episode-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.episode-desc {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.watch-toggle-btn {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-dark);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    transition: all 0.15s;
}

.watch-toggle-btn.watched {
    background: var(--success-bg);
    color: var(--success);
    border-color: #86efac;
}

/* Modal Player (Trailer & Reports) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius);
    width: 90%;
    max-width: 800px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-dialog-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.modal-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin: 35px 0;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 6px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
}

.pagination-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-item.active .pagination-link {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.pagination-item.disabled .pagination-link {
    background: var(--bg-surface-alt);
    color: var(--text-light);
    pointer-events: none;
    border-color: var(--border-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s;
}

.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary { background: var(--bg-surface-alt); color: var(--text-main); border-color: var(--border-dark); }
.btn-secondary:hover { background: #e2e8f0; }

.btn-accent { background: var(--accent); color: #ffffff; }
.btn-accent:hover { background: #be123c; }

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    font-size: 14px;
}

.alert-success { background: var(--success-bg); color: #14532d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }

/* Footer */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: auto;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Series Status & Network Badges */
.series-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-badge-returning { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-badge-ended     { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.status-badge-canceled  { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.status-badge-production{ background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.status-badge-planned   { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.status-badge-pilot     { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.status-badge-default   { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

.meta-link-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    margin-right: 4px;
    transition: all 0.15s;
}

.meta-link-badge:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Detail Keywords & Topics */
.detail-keywords-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.detail-keywords-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.detail-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.keyword-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.keyword-pill:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Favicon Presets Grid */
.favicon-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
    max-height: 290px;
    overflow-y: auto;
    padding: 8px;
    background: var(--bg-surface-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.favicon-preset-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    user-select: none;
}

.favicon-preset-item:hover {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.favicon-preset-item.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.favicon-preset-item .favicon-radio {
    display: none;
}

.favicon-preview-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-alt);
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.favicon-preset-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.favicon-preset-meta {
    flex: 1;
    min-width: 0;
}

.favicon-preset-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.favicon-preset-desc {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ==========================================================================
   News & RSS Feed Styles
   ========================================================================== */

.news-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-pills-wrap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.category-pill:hover {
    background: var(--bg-surface-alt, #f1f5f9);
    border-color: var(--primary);
    color: var(--primary);
}

.category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.category-count {
    font-size: 11px;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 6px;
    border-radius: 10px;
}

.category-pill.active .category-count {
    background: rgba(255, 255, 255, 0.25);
}

/* News Hero Card */
.news-hero-card {
    position: relative;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 380px;
    background: #0f172a;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.news-hero-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    min-height: 380px;
    text-decoration: none;
    color: #ffffff;
    padding: 35px 30px;
    position: relative;
}

.news-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-hero-card:hover .news-hero-image {
    transform: scale(1.03);
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.6) 40%, rgba(15,23,42,0.95) 100%);
    pointer-events: none;
}

.news-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.news-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.news-badge-cat {
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-badge-source {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.news-hero-date {
    font-size: 12px;
    color: #cbd5e1;
}

.news-hero-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.news-hero-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-hero-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.news-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    display: block;
    overflow: hidden;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #1e293b;
}

.news-badge-cat-sm {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.news-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-card-source {
    font-weight: 700;
    color: var(--primary);
}

.meta-dot {
    color: var(--border-color);
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

.news-card-title a:hover {
    color: var(--primary);
}

.news-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.news-read-more-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-read-more-link:hover {
    text-decoration: underline;
}

/* News Detailansicht */
.news-detail-container {
    max-width: 880px;
    margin: 0 auto;
}

.news-article-wrap {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    padding: 35px 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.news-article-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-article-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-color);
    margin: 0 0 18px 0;
}

.news-article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-muted);
}

.news-article-featured-image-wrap {
    width: 100%;
    max-height: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 25px;
    background: #0f172a;
}

.news-article-featured-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.news-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.news-article-body p {
    margin: 0 0 18px 0;
}

.news-article-body h2, .news-article-body h3, .news-article-body h4 {
    color: var(--text-color);
    font-weight: 800;
    margin: 25px 0 12px 0;
}

.news-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 15px 0;
}

.news-article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
    font-style: italic;
    color: #475569;
}

.news-article-body ul, .news-article-body ol {
    margin: 0 0 18px 25px;
}

.news-article-body li {
    margin-bottom: 6px;
}

.news-article-body a[href*="google.com/preferences"],
.news-article-body a[href*="news.google.com"],
.news-article-body a[href*="amzn.to"],
.news-article-body a[href*="amazon.de/gp/product"],
.news-article-body a[href*="amazon.de/dp/"],
.news-article-body a[href*="awin1"],
.news-article-body a[href*="tradedoubler"],
.news-article-body a[href*="tradetracker"],
.news-article-body a[href*="belboon"],
.news-article-body a[href*="filmstarts://"],
.news-article-body a[href*="moviepilot://"],
.news-article-body a[href*="open/news"],
.news-article-body .affiliate,
.news-article-body .deal-box,
.news-article-body .shopping-box,
.news-article-body .buy-box,
.news-article-body .editorial-deal,
.news-article-body .cms-see-also,
.news-article-body .see-also,
.news-article-body .also-interesting,
.news-article-body .read-also,
.news-article-body .author-bio,
.news-article-body .author-box,
.news-article-body .author-card,
.news-article-body .author-info,
.news-article-body .author-signature,
.news-article-body .author-profile,
.news-article-body .author-wrapper,
.news-article-body .main-author,
.news-article-body .article-signature,
.news-article-body .signature,
.news-article-body .media-info-entity,
.news-article-body .entity-card,
.news-article-body .cms-item-wrapper,
.news-article-body .cta-link-wrapper,
.news-article-body .button-action-holder,
.news-article-body .teaser-card,
.news-article-body .news-follow-google,
.news-article-body .follow-google,
.news-article-body .google-news,
.news-article-body img[src*="google-logo"],
.news-article-body img[src*="google_news"],
.news-article-body img[src*="google.svg"] {
    display: none !important;
}

.news-article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.news-tag-pill {
    font-size: 12px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s ease;
}

.news-tag-pill:hover {
    background: rgba(37, 99, 235, 0.18);
}

.news-source-callout {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner { height: auto; padding: 15px 0; flex-wrap: wrap; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 5px; }
    .header-search { order: 2; width: 100%; max-width: 100%; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-poster-wrap { max-width: 200px; margin: 0 auto; }
    .favicon-presets-grid { grid-template-columns: 1fr; }
    .news-hero-title { font-size: 20px; }
    .news-hero-card { min-height: 320px; }
    .news-hero-link { padding: 20px 16px; min-height: 320px; }
    .news-article-wrap { padding: 20px 16px; }
    .news-article-title { font-size: 22px; }
    .news-search-box { width: 100%; }
    .news-search-box form div { width: 100% !important; }
}
