/*
Theme Name: Yahoo News Nachrichten-Theme
Theme URI: https://yahoonews.at
Author: Yahoo News Österreich
Author URI: https://yahoonews.at
Description: Modernes und elegantes Nachrichten-Portal im Yahoo News Stil für WordPress. Achtet auf visuelle Hierarchie, bietet ein klares Design und hervorragende Lesbarkeit. Kompatibel mit WordPress 7.0 und PHP 8.3+. Automatische Kategorieerstellung (Nachrichten, Sport, Wetter, Wirtschaft) mit SEO-Beschreibungen bei der Aktivierung.
Version: 1.6.0
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yahoo-news-theme
Tags: news, magazine, responsive, clean, modern
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: #1f1f1f;
    line-height: 1.5;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
}

.utility-nav {
    background: #f7f7f7;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 36px;
    gap: 16px;
    font-size: 13px;
}

.utility-nav a {
    color: #1f1f1f;
    text-decoration: none;
}

.utility-nav a:hover {
    text-decoration: underline;
}

.utility-nav .divider {
    width: 1px;
    height: 16px;
    background: #ccc;
}

.utility-nav .mail-icon {
    display: flex;
    align-items: center;
    gap: 4px;
}

.utility-nav .sign-in {
    color: #6001d2;
    font-weight: 600;
}

.main-nav {
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6001d2 0%, #7c3aed 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-text a {
    color: #000;
    text-decoration: none;
}

.logo-text .news {
    color: #6001d2;
}

.logo a:hover {
    text-decoration: none;
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 48px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    padding-right: 48px;
    border: 1px solid #e5e5e5;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    background: #fff;
}

.search-box input:focus {
    border-color: #6001d2;
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #6001d2;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-box button:hover {
    background: #5000c2;
}

.search-box button svg {
    width: 18px;
    height: 18px;
}

.search-box button svg path,
.search-box button svg circle,
.search-box button svg line {
    stroke: #fff;
    fill: none;
}

.category-nav {
    background: #fff;
    padding: 0 24px;
    border-bottom: 1px solid #e5e5e5;
}

.category-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    height: 44px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.category-nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

.category-nav li a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 100%;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.category-nav a:hover {
    color: #6001d2;
    border-bottom-color: #6001d2;
    text-decoration: none;
}

.category-nav a.active {
    color: #6001d2;
    border-bottom-color: #6001d2;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 32px;
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 8px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
}

.category-badge {
    display: inline-block;
    background: #6001d2;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
    text-decoration: none;
}

.category-badge:hover {
    background: #5000c2;
    color: #fff;
    text-decoration: none;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #1f1f1f;
}

.hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-title a:hover {
    color: #6001d2;
    text-decoration: none;
}

.hero-excerpt {
    font-size: 16px;
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-source {
    font-size: 13px;
    color: #999;
}

.news-source span {
    font-weight: 600;
    color: #6b6b6b;
}

/* Aktuelle Themen Widget */
.trending-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
}

.trending-header {
    padding: 20px 20px 0;
}

.trending-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f1f1f;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.trending-title svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.trending-title svg path {
    fill: #ff5a00;
}

.trending-categories {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    border-bottom: 1px solid #f0f0f0;
}

.trending-categories::-webkit-scrollbar {
    height: 4px;
}

.trending-categories::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.trending-categories::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.category-tab {
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    color: #1f1f1f;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: inherit;
}

.category-tab:hover {
    background: #f7f7f7;
    border-color: #6001d2;
}

.category-tab.active {
    background: #6001d2;
    border-color: #6001d2;
    color: #fff;
}

.trending-grid {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.trending-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.trending-card:hover {
    background: #f9f9f9;
}

.trending-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.trending-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b6b6b;
}

.source-icon {
    width: 20px;
    height: 20px;
    background: #6001d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.trending-headline {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f1f1f;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-headline a {
    color: inherit;
    text-decoration: none;
}

.trending-headline a:hover {
    color: #6001d2;
    text-decoration: none;
}

.trending-time {
    font-size: 11px;
    color: #999;
}

.trending-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e5e5;
}

.featured-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-card .card-image {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
}

.featured-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.featured-card:hover .card-image img {
    transform: scale(1.03);
}

.featured-card .card-category {
    font-size: 12px;
    color: #6001d2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card .card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.featured-card .card-title a:hover {
    color: #6001d2;
    text-decoration: none;
}

.featured-card .card-source {
    font-size: 12px;
    color: #999;
}

/* News Feed */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .item-image {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
}

.news-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.news-item:hover .item-image img {
    transform: scale(1.03);
}

.news-item .item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.news-item .item-category {
    font-size: 12px;
    color: #6001d2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item .item-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .item-title a {
    color: inherit;
    text-decoration: none;
}

.news-item .item-title a:hover {
    color: #6001d2;
    text-decoration: none;
}

.news-item .item-excerpt {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.news-item .item-meta .source {
    font-weight: 600;
    color: #6b6b6b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 32px 0;
    flex-wrap: wrap;
}

.pagination button,
.pagination a {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    padding: 0 8px;
}

.pagination button:hover,
.pagination a:hover {
    border-color: #6001d2;
    color: #6001d2;
    text-decoration: none;
}

.pagination button.active,
.pagination a.active {
    background: #6001d2;
    border-color: #6001d2;
    color: #fff;
}

.pagination button.next,
.pagination a.next {
    min-width: auto;
    padding: 0 16px;
    border-radius: 20px;
}

/* Footer */
.footer {
    background: #f7f7f7;
    padding: 24px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 13px;
    color: #6b6b6b;
}

.footer-links a {
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #6001d2;
    text-decoration: none;
}

/* Google Profile Footer Button */
.google-profile-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 6px 12px 6px;
    padding: 11px 22px;
    background: #fff;
    color: #1f1f1f !important;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.google-profile-footer-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.google-profile-footer-btn:hover {
    border-color: #4285F4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
    color: #1f1f1f !important;
}

/* Social Links in Footer */
.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #1f1f1f !important;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-social-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-social-btn:hover {
    border-color: #6001d2;
    background: #faf8ff;
    color: #6001d2 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 1, 210, 0.15);
}

/* Footer Tech Links (RSS / Sitemap) */
.footer-tech-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 18px 0;
    padding-top: 16px;
    border-top: 1px solid #ececec;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-tech-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    color: #6b6b6b !important;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.footer-tech-link svg {
    width: 14px;
    height: 14px;
    fill: #f26522;
    flex-shrink: 0;
}

.footer-tech-link:hover {
    border-color: #6001d2;
    color: #6001d2 !important;
    background: #faf8ff;
    transform: translateY(-1px);
}

.footer-tech-link[aria-label="XML Sitemap"] svg {
    fill: #6001d2;
}

.footer-tech-link[aria-label="XML Sitemap"]:hover svg {
    fill: #6001d2;
}

/* Single Page Styles */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 16px;
}

.article-category {
    display: inline-block;
    background: #6001d2;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-decoration: none;
}

.article-category:hover {
    background: #5000c2;
    color: #fff;
    text-decoration: none;
}

.article-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1f1f1f;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6001d2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

.author-name {
    font-weight: 600;
    color: #1f1f1f;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-date svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.article-date svg path,
.article-date svg rect,
.article-date svg line {
    stroke: #999;
    fill: none;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
}

.read-time svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.read-time svg path,
.read-time svg circle,
.read-time svg polyline {
    stroke: #999;
    fill: none;
}

/* Google Quelle hinzufügen - Unter dem Titel */
.google-source {
    margin-bottom: 16px;
}

.google-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0056b3;
    text-decoration: none;
}

.google-source-link:hover {
    text-decoration: underline;
}

.google-source-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.google-source-link svg path {
    fill: currentColor;
}

/* Teilen-Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #1f1f1f;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.share-btn:hover {
    text-decoration: none;
    border-color: #6001d2;
    color: #6001d2;
}

.share-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.share-btn svg path {
    fill: currentColor;
}

.share-btn.share-x:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.share-btn.share-wa:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

/* Article Hero Image */
.article-hero {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.article-caption {
    padding: 12px 16px;
    font-size: 13px;
    color: #6b6b6b;
    background: #f7f7f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.caption-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.caption-photo {
    font-weight: 600;
    color: #999;
}

/* Google Entdecken Widget - Karte unter dem Bild */
.google-discover-widget {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    margin-top: 16px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.google-discover-widget::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4285f4;
    border-radius: 12px 0 0 12px;
}

.google-discover-widget:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.google-logo-container {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-right: 14px;
    flex-shrink: 0;
}

.google-logo {
    width: 24px;
    height: 24px;
}

.widget-content {
    flex: 1;
    transition: color 0.2s ease;
}

.widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    line-height: 1.4;
    margin-bottom: 2px;
}

.widget-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #5f6368;
    line-height: 1.4;
}

.google-discover-widget .follow-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1.5px solid #dadce0;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    color: #1a73e8;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.google-discover-widget .follow-button:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
}

.google-discover-widget .follow-button svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.google-discover-widget .follow-button svg path {
    fill: #1a73e8;
}

/* Article Body */
.article-body {
    font-size: 18px;
    line-height: 1.7;
    color: #1f1f1f;
    max-width: 100%;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body p.lead {
    font-size: 20px;
    font-weight: 500;
    color: #1f1f1f;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #1f1f1f;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: #1f1f1f;
}

.article-body blockquote {
    margin: 32px 0;
    padding: 24px;
    background: #f7f7f7;
    border-left: 4px solid #6001d2;
    font-style: italic;
    color: #6b6b6b;
}

.article-body blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: #1f1f1f;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.article-body ul,
.article-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

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

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.article-body table th,
.article-body table td {
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    text-align: left;
}

.article-body table th {
    background: #f7f7f7;
    font-weight: 600;
    color: #1f1f1f;
}

.article-body table tr:nth-child(even) {
    background: #fafafa;
}

.article-body table tr:hover {
    background: #f0f0f0;
}

/* Up Next Section */
.up-next {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

/* Post Navigation (Previous / Next) */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 10px;
    text-decoration: none;
    color: #1f1f1f;
    transition: all 0.2s ease;
    min-height: 92px;
    justify-content: center;
}

.post-nav-item:hover {
    background: #fff;
    border-color: #6001d2;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(96, 1, 210, 0.08);
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-disabled {
    background: transparent;
    border: 1px dashed #ececec;
    cursor: default;
    pointer-events: none;
}

.post-nav-direction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6001d2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-nav-direction svg {
    width: 14px;
    height: 14px;
}

.post-nav-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-item:hover .post-nav-title {
    color: #6001d2;
}

@media (max-width: 640px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
    .post-nav-next {
        text-align: left;
        align-items: flex-start;
    }
    .post-nav-next .post-nav-direction {
        flex-direction: row;
    }
}

/* In-Article Media Block (auto after 2nd subheading) */
.in-article-media {
    margin: 32px 0;
    padding: 0;
    background: linear-gradient(135deg, #faf8ff 0%, #f3edff 100%);
    border: 1px solid #e7dffb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(96, 1, 210, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.in-article-media:hover {
    box-shadow: 0 8px 20px rgba(96, 1, 210, 0.12);
    transform: translateY(-2px);
}

.in-article-media-label {
    display: inline-block;
    padding: 6px 14px;
    background: #6001d2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom-right-radius: 8px;
}

a.in-article-media-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 20px;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
}

.in-article-media-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 8px;
    background: #ddd;
}

.in-article-media-thumb img,
.in-article-media-thumb .in-article-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.in-article-media:hover .in-article-media-thumb img,
.in-article-media:hover .in-article-media-thumb .in-article-media-img {
    transform: scale(1.05);
}

.in-article-media-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.in-article-media-cat {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    background: rgba(96, 1, 210, 0.1);
    color: #6001d2;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.in-article-media-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.in-article-media:hover .in-article-media-title {
    color: #6001d2;
}

.in-article-media-meta {
    margin: 0;
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.4;
}

.in-article-media-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    background: transparent;
    color: #6001d2;
    text-decoration: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, color 0.2s ease;
    align-self: flex-start;
}

.in-article-media:hover .in-article-media-cta {
    color: #4a01a8;
    transform: translateX(4px);
}

@media (max-width: 640px) {
    a.in-article-media-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .in-article-media-thumb {
        aspect-ratio: 16/9;
    }
}

/* Related Section */
.related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.related-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1f1f1f;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-card .card-image {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
}

.related-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.related-card:hover .card-image img {
    transform: scale(1.03);
}

.related-card .card-category {
    font-size: 12px;
    color: #6001d2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-card .card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f1f1f;
}

.related-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.related-card:hover .card-title a {
    color: #6001d2;
    text-decoration: none;
}

.related-card .card-source {
    font-size: 12px;
    color: #999;
}

/* Google Follow Section */
.google-follow-section {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.google-follow-label {
    font-size: 15px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 16px;
    text-align: center;
}

.google-follow-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.follow-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.follow-btn:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}

.follow-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.follow-btn svg path {
    fill: currentColor;
}

.follow-btn.google-btn {
    background: #4285F4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.follow-btn.twitter-btn {
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.follow-btn.facebook-btn {
    background: #1877F2;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.follow-btn.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
}

.follow-btn.youtube-btn {
    background: #FF0000;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-card {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        aspect-ratio: 16/9;
    }
    
    .search-box {
        margin: 0 24px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 16px;
        gap: 16px;
    }
    
    .article-container {
        padding: 16px 12px;
        max-width: 100%;
    }
    
    .main-content {
        padding: 16px 12px;
    }
    
    .search-box {
        order: 3;
        margin: 0;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .category-nav ul {
        overflow-x: auto;
        gap: 0;
    }
    
    .category-nav li a {
        padding: 0 12px;
        white-space: nowrap;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        grid-template-columns: 120px 1fr;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }
    
    .article-hero {
        margin: 0 -16px 24px;
        border-radius: 0;
    }
    
    .article-caption {
        flex-direction: column;
        gap: 8px;
    }
    
    .up-next-card {
        grid-template-columns: 1fr;
    }
    
    .up-next-image {
        aspect-ratio: 16/9;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .google-discover-widget {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .google-discover-widget .follow-button {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
    
    .google-follow-buttons {
        flex-direction: column;
    }
    
    .google-follow-buttons .follow-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        grid-template-columns: 100px 1fr;
    }
    
    .utility-nav span:not(.mail-icon):not(.sign-in) {
        display: none;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .article-body p.lead {
        font-size: 18px;
    }
    
    .share-btn span {
        display: none;
    }
    
    .share-btn {
        padding: 8px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
/* ============================================
   Endlos-Scroll (Nachrichten-Feed)
   ============================================ */
.yahoo-infinite-feed {
    display: block;
}

/* Visual divider between consecutive articles in feed */
.yahoo-next-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 760px;
    margin: 48px auto 8px;
    padding: 0 20px;
    color: #6001d2;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.yahoo-next-divider::before,
.yahoo-next-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}
.yahoo-next-divider span {
    white-space: nowrap;
}

/* "Next article loading..." indicator */
.yahoo-infinite-status {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 20px 40px;
    text-align: center;
    color: #777;
    font-size: 14px;
    min-height: 1px;
}
.yahoo-infinite-status:not(:empty)::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: -3px;
    border: 2px solid #d9c7f2;
    border-top-color: #6001d2;
    border-radius: 50%;
    animation: yahoo-spin 0.7s linear infinite;
}
@keyframes yahoo-spin {
    to { transform: rotate(360deg); }
}

#yahoo-infinite-sentinel {
    height: 1px;
    width: 100%;
}


/* ============================================
   Google Discover Section (Footer)
   ============================================ */
.google-discover-section {
    padding: 32px 24px;
    border-top: 1px solid #e5e5e5;
}

.google-discover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.google-discover-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.google-discover-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f1f1f;
}

.google-discover-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.google-discover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.google-discover-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-discover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.google-discover-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.google-discover-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.google-discover-card:hover .google-discover-card-image img {
    transform: scale(1.05);
}

.google-discover-card-content {
    padding: 12px;
}

.google-discover-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #6001d2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.google-discover-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #1f1f1f;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.google-discover-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.google-discover-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    color: #1f1f1f !important;
    border: 1px solid #dadce0;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.google-discover-follow-btn:hover {
    background: #f1f3f4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .google-discover-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .google-discover-grid {
        grid-template-columns: 1fr;
    }
    .google-discover-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ============================================
   Google News Page Template
   ============================================ */
.google-news-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.google-news-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 24px;
}

.google-news-page-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.google-news-page-label {
    font-size: 22px;
    font-weight: 500;
    color: #1f1f1f;
}

.google-news-page-search form {
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 8px;
    padding: 8px 14px;
    gap: 8px;
}

.google-news-page-search input {
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    width: 220px;
    font-family: inherit;
    color: #1f1f1f;
}

.google-news-page-search button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Google News Publisher Card */
.google-news-publisher-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 24px;
}

.google-news-publisher-logo {
    flex-shrink: 0;
}

.google-news-publisher-logo .custom-logo-link img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.publisher-logo-fallback {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.google-news-publisher-info {
    flex: 1;
    min-width: 0;
}

.google-news-publisher-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 4px 0;
}

.google-news-publisher-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.google-news-publisher-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a73e8 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
}

.google-news-publisher-link:hover {
    text-decoration: underline !important;
}

.google-news-publisher-follow {
    flex-shrink: 0;
}

.google-news-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #1a73e8;
    color: #fff !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.google-news-follow-btn:hover {
    background: #1558b0;
    text-decoration: none !important;
}

/* Google News Feed */
.google-news-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 16px;
}

.google-news-feed-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
}

.google-news-feed-sort {
    display: flex;
    gap: 4px;
    background: #f1f3f4;
    border-radius: 8px;
    padding: 4px;
}

.google-news-sort-btn {
    padding: 6px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.google-news-sort-btn.active {
    background: #fff;
    color: #1f1f1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-news-sort-btn:hover:not(.active) {
    color: #1f1f1f;
}

/* Google News Articles */
.google-news-articles {
    display: flex;
    flex-direction: column;
}

.google-news-article {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.google-news-article:last-child {
    border-bottom: none;
}

.google-news-article-image {
    width: 160px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.google-news-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.google-news-article-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.google-news-article-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.google-news-source-dot {
    font-size: 10px;
}

.google-news-article-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: #1a0dab;
    margin: 0 0 4px 0;
}

.google-news-article-title a {
    color: #1a0dab;
    text-decoration: none;
}

.google-news-article-title a:hover {
    text-decoration: underline;
}

.google-news-article-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.45;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.google-news-article-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #6001d2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.google-news-empty {
    text-align: center;
    color: #6b7280;
    padding: 48px 0;
    font-size: 15px;
}

/* Google News CTA Section */
.google-news-cta-section {
    margin-top: 32px;
}

.google-news-cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.google-news-cta-logo {
    flex-shrink: 0;
}

.google-news-cta-text {
    flex: 1;
    min-width: 0;
}

.google-news-cta-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 4px 0;
}

.google-news-cta-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.google-news-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #1a73e8;
    color: #fff !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.google-news-cta-btn:hover {
    background: #1558b0;
    text-decoration: none !important;
}

@media (max-width: 640px) {
    .google-news-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .google-news-page-search form {
        width: 100%;
    }
    .google-news-page-search input {
        width: 100%;
    }
    .google-news-publisher-card {
        flex-direction: column;
        text-align: center;
    }
    .google-news-article {
        flex-direction: column;
    }
    .google-news-article-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .google-news-cta-content {
        flex-direction: column;
        text-align: center;
    }
    .google-news-feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
