/* CSS Reset & Variables */
:root {
    --primary-color: #2bc4e2;
    --primary-dark: #1ea3bd;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --footer-bg: #222222;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Header */
.site-header {
    background-color: var(--white);
    text-align: center;
    padding-top: 20px;
}

.logo-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.flag-accent {
    width: 150px;
    height: 40px;
    background: linear-gradient(to bottom, #000000 33.3%, #dd0000 33.3%, #dd0000 66.6%, #ffce00 66.6%);
    border-radius: 4px;
    margin-bottom: 10px;
}

.flag-small {
    width: 40px;
    height: 25px;
    background: linear-gradient(to bottom, #000000 33.3%, #dd0000 33.3%, #dd0000 66.6%, #ffce00 66.6%);
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

.logo-container h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.main-nav {
    background-color: var(--primary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-links a:hover {
    opacity: 0.8;
}

.search-icon {
    cursor: pointer;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 2px;
    width: 100%;
    max-width: 100%;
}

.hero-item {
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.5s ease;
}

.hero-item:hover img {
    transform: scale(1.05);
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    color: var(--white);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    width: 100%;
}

.tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-right: 5px;
}

.hero-overlay h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero-overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.hero-overlay .meta {
    font-size: 12px;
    color: #ddd;
}

/* Selected Stories */
.selected-stories {
    margin-top: 40px;
    margin-bottom: 40px;
}

.section-title {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.section-title h2 {
    font-size: 20px;
    display: inline-block;
    border-bottom: 2px solid var(--text-main);
    margin-bottom: -12px;
    padding-bottom: 10px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.story-card {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.story-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: var(--white);
}

.story-info h4 {
    font-size: 14px;
    line-height: 1.3;
    margin-top: 5px;
}

/* Welcome Section */
.welcome-section {
    margin: 60px auto;
}

.welcome-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: normal;
}

.welcome-section p {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 16px;
}

/* Latest Posts & Sidebar */
.latest-posts-section {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.main-content {
    flex: 2;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-img-wrapper {
    position: relative;
    height: 250px;
    margin-bottom: 15px;
}

.post-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-tags {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.post-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.post-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.post-content .meta {
    font-size: 12px;
    color: #999;
}

.sidebar {
    flex: 1;
    margin-top: 50px;
}

.search-widget label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-right: none;
    outline: none;
}

.search-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-form button:hover {
    background-color: var(--primary-dark);
}

/* Pre-Footer */
.pre-footer-banner {
    background-color: var(--bg-light);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.trust-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.trust-box h3 {
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding-top: 50px;
}

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

.footer-col h4 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: normal;
}

.footer-col p.disclaimer {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.8;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-col ul a:hover {
    color: var(--white);
}

.footer-bottom {
    background-color: #111111;
    padding: 20px 0;
    font-size: 12px;
    color: #777;
}

/* Cookie Modal (Right Side) */
.cookie-modal {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 320px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s ease-in-out;
    border: 1px solid #eee;
}

.cookie-modal.show {
    transform: translateY(0);
}

.cookie-modal h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.cookie-modal p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cookie-buttons button {
    padding: 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s;
}

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

.btn-outline:hover {
    background: var(--bg-light);
}

.btn-primary {
    grid-column: span 2;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .hero-main {
        grid-column: 1 / -1;
        height: 400px;
    }
    .latest-posts-section {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .story-grid {
        grid-template-columns: 1fr 1fr;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* In a real app, implement hamburger menu */
    }
    .cookie-modal {
        right: 10px;
        left: 10px;
        bottom: 10px;
        width: auto;
    }
}
/* Inner page styles */
/* --- NOUVEAU: STYLES FÜR DIE INTERNE SEITE --- */

/* Container & Layout */
.article-page {
    padding: 60px 0;
}

.single-article {
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--white);
}

/* Header & Title */
.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-header h1 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 15px;
}

.article-meta {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-meta span {
    font-weight: 600;
}

/* Responsive Bilder im Artikel */
.article-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-content img.inline-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 30px 0 10px;
}

.img-caption {
    text-align: center;
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
}

/* Typografie: h2-h6, p, span */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2 {
    font-size: 32px;
    color: var(--primary-dark);
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}

.article-content h3 {
    font-size: 26px;
    margin: 40px 0 15px;
    color: var(--text-main);
}

.article-content h4 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.article-content h5 {
    font-size: 18px;
    margin: 25px 0 10px;
    text-transform: uppercase;
}

.article-content h6 {
    font-size: 16px;
    margin: 20px 0 10px;
    color: var(--text-light);
}

.article-content span.highlight {
    background-color: rgba(43, 196, 226, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: var(--primary-dark);
}

/* Listen: ul, ol */
.article-content ul,
.article-content ol {
    margin: 0 0 30px 20px;
    padding-left: 20px;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 12px;
}

.article-content ul {
    list-style-type: square;
}

.article-content ul li::marker {
    color: var(--primary-color);
}

.article-content ol {
    list-style-type: decimal;
}

/* Oglawlenie / Inhaltsverzeichnis (TOC) */
.toc {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    border-radius: 0 8px 8px 0;
    margin: 0 0 40px 0;
}

.toc h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: none;
    color: var(--text-main);
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc ul li {
    margin-bottom: 10px;
}

.toc ul li a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc ul li a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* Tabellen (Table) */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 16px;
    background-color: var(--white);
}

.article-content th,
.article-content td {
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-content th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content tr:nth-child(even) {
    background-color: var(--bg-light);
}

.article-content tr:hover {
    background-color: rgba(43, 196, 226, 0.05);
}

/* Formulare allgemein (Buttons) */
.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

.btn-submit:active {
    transform: translateY(2px);
}

/* Kommentar-Formular */
.article-comments {
    max-width: 850px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.article-comments h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.article-comments p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.comment-form .btn-submit {
    align-self: flex-start;
}

/* Kontaktformular */
.contact-section {
    max-width: 850px;
    margin: 60px auto;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h3 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.contact-header p {
    color: var(--text-light);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .full-width {
    grid-column: 1 / -1;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Verlinkung / Related Articles */
.related-articles {
    max-width: 1200px;
    margin: 80px auto 40px;
}

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

.related-card {
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.related-card h4 {
    font-size: 18px;
    line-height: 1.4;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.related-card a:hover h4 {
    color: var(--primary-color);
}

/* Responsive Anpassungen für interne Seite */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 32px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .toc {
        padding: 15px;
    }
    
    .article-content table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}