/* ============================================
   DVhub.de Theme - Apple-inspired Design
   ============================================ */

/* --- Local Font --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f7;
    --color-bg-dark: #0f1a2e;
    --color-text: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-text-light: #f5f5f7;
    /* Logo-Farben */
    --color-accent: #0088e8;
    --color-accent-hover: #00a0ff;
    --color-cyan: #00bfff;
    --color-green: #30d158;
    --color-green-light: #b8e62e;
    --color-orange: #ff9f0a;
    --color-border: #d2d2d7;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1120px;
    --nav-height: 64px;
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

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

/* --- Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: var(--nav-height);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    padding: calc(var(--nav-height) + 4rem) 2rem 5rem;
    text-align: center;
    background: linear-gradient(160deg, #0a0f1a 0%, #0f1a2e 35%, #0d2847 70%, #0a2a4a 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f5f7;
}

.hero-logo {
    max-width: 320px;
    width: 60%;
    height: auto;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-green), var(--color-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    min-width: 140px;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: #fff;
}

.hero .btn-secondary {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- Stats Bar --- */
.stats-bar {
    background: linear-gradient(90deg, #0a0f1a, #0f1a2e, #0a0f1a);
    padding: 3rem 2rem;
    border-top: 2px solid;
    border-image: linear-gradient(90deg, var(--color-accent), var(--color-green), var(--color-orange)) 1;
}

.stats-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.stat-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-cyan);
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* --- Sections --- */
.section {
    padding: 6rem 2rem;
}

.section-light {
    background: var(--color-bg);
}

.section-dark {
    background: linear-gradient(160deg, #0a0f1a, #0f1a2e 60%, #0d2240);
    color: var(--color-text-light);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--color-bg-alt);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 136, 232, 0.1);
    border-color: rgba(0, 136, 232, 0.2);
    color: inherit;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    flex: 1;
    margin-bottom: 1rem;
}

.card-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-accent);
}

/* --- Feature Split --- */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-cyan);
    margin-bottom: 1rem;
}

.feature-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.feature-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 700;
}

/* --- Code Block --- */
.code-block {
    background: #2d2d2f;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.code-header {
    background: #3a3a3c;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-title {
    margin-left: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.code-block pre {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e5e5e7;
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

.comparison-table .highlight-col {
    background: rgba(0, 191, 255, 0.04);
    font-weight: 500;
    color: var(--color-cyan);
}

.comparison-table th.highlight-col {
    color: var(--color-accent);
}

/* --- CTA Section --- */
.section-cta {
    background: linear-gradient(135deg, #0a0f1a, #0f1a2e, #0d2847);
    color: #fff;
    padding: 6rem 2rem;
}

.section-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.text-center {
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Post/Page Content --- */
.post-header, .page-header {
    padding: calc(var(--nav-height) + 4rem) 2rem 3rem;
    text-align: center;
    background: var(--color-bg-alt);
}

.post-header-content, .page-header-content {
    max-width: 720px;
    margin: 0 auto;
}

.post-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.post-title, .page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.post-excerpt, .page-excerpt {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.post-meta {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.post-feature-image {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-feature-image img {
    border-radius: 16px;
    width: 100%;
}

/* --- Post Content Styling --- */
.post-content, .page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.post-content h2, .page-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.post-content h3, .page-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.post-content p, .page-content p {
    margin-bottom: 1.25rem;
}

.post-content ul, .post-content ol,
.page-content ul, .page-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-content li, .page-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote, .page-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--color-text-secondary);
    font-style: italic;
}

.post-content table, .page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.post-content th, .page-content th {
    background: var(--color-bg-alt);
    font-weight: 600;
    text-align: left;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid var(--color-border);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-content td, .page-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.post-content tr:hover td, .page-content tr:hover td {
    background: rgba(0, 113, 227, 0.02);
}

.post-content code, .page-content code {
    background: var(--color-bg-alt);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.post-content pre, .page-content pre {
    background: var(--color-bg-dark);
    color: #e5e5e7;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code, .page-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* --- Info Boxes (via HTML cards in Ghost) --- */
.info-box {
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid;
}

.info-box.blue {
    background: rgba(0, 113, 227, 0.06);
    border-color: var(--color-accent);
}

.info-box.green {
    background: rgba(48, 209, 88, 0.06);
    border-color: var(--color-green);
}

.info-box.orange {
    background: rgba(255, 159, 10, 0.06);
    border-color: var(--color-orange);
}

.info-box h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* --- Source References --- */
.source-list {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.source-list h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.source-list ul {
    list-style: none;
    padding: 0;
}

.source-list li {
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.source-list a {
    color: var(--color-accent);
    word-break: break-all;
}

/* --- Post Feed (blog listing) --- */
.post-feed {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + 3rem) 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-bg-alt);
    transition: all var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* --- Footer --- */
.site-footer {
    background: #080d16;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    text-decoration: none;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .post-content, .page-content {
        padding: 2rem 1.5rem 4rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

/* --- Selection --- */
::selection {
    background: rgba(0, 113, 227, 0.2);
}

/* --- News Components --- */
.nachrichten-header {
    padding: calc(var(--nav-height) + 4rem) 2rem 3rem;
    text-align: center;
    background: var(--color-bg-alt);
}

.nachrichten-feed {
    padding: 3rem 2rem 6rem;
}

.nachrichten-feed .section-container {
    max-width: 900px;
}

.nachrichten-feed .news-card {
    padding: 1.5rem 2rem;
}

.news-ticker-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.news-card {
    background: var(--color-bg-alt);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.news-card:hover {
    border-color: rgba(0, 136, 232, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.news-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.news-source-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.news-source-regulierung { background: rgba(37, 99, 235, 0.1); color: #3b82f6; }
.news-source-energiewirtschaft { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.news-source-solar { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.news-source-erneuerbare { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.news-source-allgemein { background: rgba(107, 114, 128, 0.1); color: #6b7280; }

.news-date {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.news-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.375rem;
}

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

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

.external-icon {
    font-size: 0.75em;
    opacity: 0.4;
    margin-left: 0.25rem;
}

.news-card-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.news-card-source-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
}

/* News card with image */
.news-card-has-image {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    align-items: start;
}

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

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.news-card-body {
    min-width: 0;
}

.news-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.375rem;
}

.news-card-domain {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    opacity: 0.6;
}

.news-card-domain::before {
    content: "·";
    margin-right: 0.375rem;
}

@media (max-width: 768px) {
    .news-card-has-image {
        grid-template-columns: 100px 1fr;
    }

    .news-card-image {
        aspect-ratio: 1;
    }
}

@media (max-width: 480px) {
    .news-card-has-image {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        aspect-ratio: 16/9;
    }
}

/* Pagination (Ghost built-in) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.pagination a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--color-bg-alt);
}

.page-number {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Responsive news */
@media (max-width: 768px) {
    .nachrichten-header {
        padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
    }

    .nachrichten-feed {
        padding: 2rem 1.5rem 4rem;
    }

    .news-card {
        padding: 1rem 1.25rem;
    }
}

/* --- Ghost-specific overrides --- */
.gh-content .kg-card {
    margin: 2rem 0;
}

.gh-content .kg-image-card img {
    border-radius: 12px;
}

.kg-width-wide {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hide Ghost Portal/Subscribe Button --- */
.gh-portal-triggerbtn-container,
.gh-portal-triggerbtn-iframe,
[data-ghost-search],
.gh-subscribe-form,
#ghost-portal-root {
    display: none !important;
}
