/*
Theme Name: Piraten Dark Theme (Test)
Author: ABC_i407250234i_Jonas / KI-unterstuetzend
Description: Ein barrierefreies, dunkles Theme für die Piratenpartei SH.
Version: 1.5
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: piraten-dark
*/
:root {
    /* --- Barrierefreie Farbpalette (Dark Mode) --- */
    
    /* Hintergrund: Ein sehr dunkles Grau ist für die Augen angenehmer als reines Schwarz (#000000) */
    --color-bg-dark: #121212; 
    --color-surface: #1e1e1e; /* NEU: Für Karten und Kommentare */
    
    /* Text: Hellgrau blendet weniger als reines Weiß auf dunklem Grund */
    --color-text-main: #e0e0e0; 
    --color-text-muted: #999999; /* NEU: Für Datumsangaben etc. */
    --color-text-headings: #ffffff; 
    
    /* Akzente: Das typische Piraten-Orange */
    --color-primary: #ff8800; 
    --color-primary-hover: #e67a00;
    
    /* Inklusion: Eine sehr auffällige Farbe (z.B. Cyan) für Leute, die mit der Tastatur navigieren */
    --color-focus: #00e5ff; 
}

/* --- Basis-Layout --- */
body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    /* System-Schriftarten: Laden extrem schnell und sind zu 100% DSGVO-konform */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* --- Überschriften --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-headings);
    margin-top: 2rem;
}

/* --- Links & Barrierefreiheit --- */
a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px; /* Macht Links besser lesbar */
}

a:hover {
    color: var(--color-primary-hover);
}

/* A11y (Inklusion): Wer die Maus nicht nutzen kann, braucht einen GANZ klaren Rahmen um den aktiven Link! */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- Layout Container --- */
#main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- Header Layout --- */
.site-header {
    background-color: var(--color-bg-dark);
    border-bottom: 2px solid #2a2a2a; /* Leichte Trennlinie zum Inhalt */
    padding: 1rem 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-branding a {
    text-decoration: none;
}

/* --- Hauptmenü --- */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--color-primary);
}

/* --- Barrierefreiheit: Skip Link verstecken, bis er fokussiert wird --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: #000;
    padding: 8px;
    z-index: 100000;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* --- Dropdown Menüs (Unterpunkte) --- */

/* Damit das Dropdown weiß, wo es andocken soll */
.main-navigation li {
    position: relative;
}

/* Verstecke die Untermenüs standardmäßig */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%; /* Direkt unter dem Hauptpunkt */
    left: 0;
    background-color: var(--color-bg-dark); /* Dunkler Hintergrund */
    border: 1px solid #333; /* Leichter Rahmen zur Abhebung */
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

/* Die Links im Dropdown anpassen */
.main-navigation .sub-menu a {
    font-size: 1rem;
    font-weight: normal;
    padding: 0.5rem 1rem;
    display: block; /* Macht die ganze Zeile klickbar */
}

/* Hover-Effekt im Dropdown */
.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu a:focus {
    background-color: #222;
    color: var(--color-primary);
}

/* --- Barrierefreiheit: Dropdown bei Hover UND Tastatur-Fokus anzeigen --- */
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    display: block;
}

/* --- Grid (Raster für die Karten) --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* --- Die Piraten-Karten (Cards) --- */
.piraten-card {
    background-color: var(--color-surface);
    border: 1px solid #333;
    border-left: 4px solid var(--color-primary); /* Fetter orangener Balken links */
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column; /* Zwingt Bild und Text untereinander! */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden; /* Verhindert, dass Bilder über den Rand ragen */
}

.piraten-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 136, 0, 0.2); /* Sanftes orangenes Leuchten beim Drüberfahren */
}

/* --- Artikelbilder in den Karten --- */
.card-image {
    margin: -1.5rem -1.5rem 1rem -1.5rem; /* Zieht das Bild bis an den Rand der Karte */
    border-bottom: 2px solid var(--color-primary);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Schneidet das Bild automatisch schön zu, ohne es zu verzerren */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: block;
}

/* --- Footer Styling --- */
.site-footer {
    background-color: #0a0a0a; /* Sehr dunkler Abschluss */
    border-top: 3px solid var(--color-primary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

/* --- Mobile Navigation --- */
.menu-toggle {
    display: none; /* Am Desktop unsichtbar */
    background: var(--color-primary);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

@media (max-width: 768px) {
    /* Zeige den Button am Handy */
    .menu-toggle {
        display: block; 
    }
    
    /* Verstecke das Menü standardmäßig */
    .main-navigation ul {
        display: none; 
        flex-direction: column; /* Untereinander statt nebeneinander */
        width: 100%;
        background-color: #1a1a1a;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
    }

    /* Diese Klasse wird per JavaScript hinzugefügt, wenn man auf den Button klickt */
    .main-navigation.toggled ul {
        display: flex;
    }
}

/* --- Einzelner Beitrag (single.php) --- */
.single-post-container {
    max-width: 800px; /* Schmaler für bessere Lesbarkeit */
    margin: 0 auto;
    padding: 2rem;
}

.single-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.single-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.single-meta a {
    color: var(--color-text-main);
}

.single-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Bilder im Beitragstext anpassen */
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- Hauptlayout: Inhalt und Sidebar --- */
.layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    /* 1fr = Hauptteil, 300px = Sidebar */
    grid-template-columns: 1fr 300px; 
    gap: 3rem;
}

/* Sidebar Design (Widgets) */
.widget-area .widget {
    background-color: var(--color-surface);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.25rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Wenn der Bildschirm kleiner wird (Tablet/Handy) -> Sidebar nach unten! */
@media (max-width: 992px) {
    .layout-container {
        grid-template-columns: 1fr; /* Alles untereinander */
        gap: 2rem;
    }
}

/* --- Seitennavigation (Ältere / Neuere Beiträge) --- */
.navigation.pagination,
.navigation.posts-navigation {
    margin-top: 3rem;
    border-top: 2px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links .current {
    padding: 0.5rem 1.2rem;
    background-color: var(--color-surface);
    color: var(--color-text-main);
    border: 1px solid #333;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    background-color: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
}

/* Die aktuelle Seite farblich hervorheben */
.nav-links .current {
    background-color: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
}

/* --- Hero Banner (Startseite) --- */
.hero-banner {
    background-color: #151515; /* Etwas abgesetzt vom restlichen Hintergrund */
    border: 1px solid #333;
    border-top: 4px solid var(--color-primary); /* Markante Piraten-Linie oben */
    border-radius: 8px;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 3.5rem; /* Richtig schön groß! */
    color: var(--color-text-headings);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap; /* Bricht am Handy sauber um */
}

/* --- Universelle Buttons (CTAs) --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-align: center;
}

/* Haupt-Aktion (Auffällig) */
.btn-primary {
    background-color: var(--color-primary);
    color: #000 !important; /* !important erzwingt Schwarz, ignoriert globale Link-Farben */
    border: 2px solid var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-3px); /* Button "hebt" sich beim Drüberfahren */
    box-shadow: 0 4px 10px rgba(255, 136, 0, 0.3);
}

/* Zweit-Aktion (Dezenter) */
.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main) !important;
    border: 2px solid #555;
}

.btn-secondary:hover,
.btn-secondary:focus {
    border-color: var(--color-text-main);
    transform: translateY(-3px);
}

/* --- Titel für den Beitrags-Bereich --- */
.section-title {
    font-size: 2rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* --- Statische Seiten (page.php) & 404 Fehlerseite --- */
.page-container {
    max-width: 800px; /* Etwas schmaler, damit lange Texte (wie das Wahlprogramm) besser lesbar sind */
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- Suchfeld Styling (für die 404-Seite und Widgets) --- */
.search-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-form label {
    width: 100%;
}

.search-field {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    background-color: var(--color-surface);
    color: var(--color-text-main);
    border: 1px solid #555;
    border-radius: 4px;
}

.search-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(255, 136, 0, 0.5);
}

.search-submit {
    padding: 0.8rem 1.5rem;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.search-submit:hover,
.search-submit:focus {
    background-color: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
}

/* --- Breadcrumbs (Brotkrümel-Navigation) --- */
.site-breadcrumbs {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
    font-size: 0.9rem;
    color: #888; /* Dezentes Grau für die Trennzeichen */
}

.site-breadcrumbs a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-breadcrumbs a:hover,
.site-breadcrumbs a:focus {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Die aktuelle Seite markieren wir dezent im Piraten-Orange */
.breadcrumb_last {
    color: var(--color-primary);
    font-weight: bold;
}

/* --- Gutenberg Editor Farben (Corporate Design) --- */

/* 1. Piraten Orange */
.has-piraten-orange-color { color: var(--color-primary); }
.has-piraten-orange-background-color { 
    background-color: var(--color-primary); 
    color: #000; /* WICHTIG FÜR KONTRAST: Schwarze Schrift auf orangem Grund! */
}

/* 2. Hintergrund Dunkel */
.has-bg-dark-color { color: var(--color-bg-dark); }
.has-bg-dark-background-color { 
    background-color: var(--color-bg-dark); 
    color: var(--color-text-main); 
}

/* 3. Karten Grau */
.has-card-gray-color { color: var(--color-surface); }
.has-card-gray-background-color { 
    background-color: var(--color-surface); 
    color: var(--color-text-main); 
}

/* 4. Text Hellgrau */
.has-text-main-color { color: var(--color-text-main); }
.has-text-main-background-color { 
    background-color: var(--color-text-main); 
    color: #000; 
}

/* 5. Weiß */
.has-text-white-color { color: #ffffff; }
.has-text-white-background-color { 
    background-color: #ffffff; 
    color: #000; 
}

/* --- Wahlprogramm Template Layout --- */
.wahlprogramm-layout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr; /* Links 300px für TOC, rechts der Rest */
    gap: 4rem;
}

.wahlprogramm-content {
    max-width: 750px; /* Perfekte Lese-Breite für lange Texte */
    font-size: 1.15rem; /* Etwas größer für bessere Lesbarkeit */
    line-height: 1.8;
}

/* --- Sticky Sidebar (Klebt beim Scrollen) --- */
.sticky-box {
    position: sticky;
    top: 2rem; /* Abstand zum oberen Bildschirmrand beim Scrollen */
    background-color: #1a1a1a;
    border-left: 3px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.print-button {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* --- Akkordeon-Button für das Inhaltsverzeichnis (Wahlprogramm) --- */
.toc-toggle-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.toc-toggle-btn:hover,
.toc-toggle-btn:focus {
    background-color: #333;
    outline: 2px solid var(--color-primary);
}

/* Sorgt dafür, dass Link und Button schön in einer Zeile bleiben */
.simpletoc-list li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* --- WP RSS Aggregator in der Sidebar --- */
.wprss-feed-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wprss-feed-li {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #333;
}

/* Der letzte Eintrag bekommt keine Linie unten */
.wprss-feed-li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Der Titel des Artikels */
.wprss-feed-li a {
    color: var(--color-text-main);
    font-weight: bold;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.wprss-feed-li a:hover,
.wprss-feed-li a:focus {
    color: var(--color-primary);
}

/* Datum und Quelle (falls aktiviert) */
.wprss-feed-meta {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

.wprss-feed-source {
    color: var(--color-primary);
}

/* =========================================================
   HELLER MODUS (Light Theme Override)
   ========================================================= */
body.light-theme {
    --color-bg-dark: #ffffff;      /* Reines Weiß als Hintergrund */
    --color-surface: #f4f4f4;      /* NEU: Helles Grau für Karten */
    --color-text-main: #333333;    /* Dunkelgrau für den Text (nicht pechschwarz, das blendet!) */
    --color-text-headings: #111111; /* Fast Schwarz für Überschriften */
    --color-text-muted: #666666;   /* NEU: Etwas dunkleres Grau für Metadaten */
    --color-primary: #e67a00;      /* Ein minimal dunkleres Orange für den Kontrast auf Weiß */
    --color-primary-hover: #cc6d00;
}

/* Karten, Widgets und Rahmen im hellen Modus anpassen */
body.light-theme .piraten-card,
body.light-theme .widget-area .widget,
body.light-theme .search-field,
body.light-theme .nav-links a,
body.light-theme .comment-list li {
    background-color: var(--color-surface);
    border-color: #ddd;
    color: var(--color-text-main);
}

body.light-theme .hero-banner {
    background-color: #f9f9f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.light-theme .sticky-box {
    background-color: var(--color-surface);
}

/* --- Der Schalter-Button selbst --- */
.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--color-text-main);
    color: var(--color-text-main);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    /* GANZ WICHTIG: Hier darf KEIN "position: absolute;", "top:" oder "right:" mehr stehen! */
}

.theme-toggle-btn:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg-dark);
}

/* --- Footer im Light Mode --- */
body.light-theme .site-footer {
    background-color: var(--color-surface); 
    border-top: 1px solid #ddd;
    color: var(--color-text-main);
}

body.light-theme .site-footer h3 {
    color: var(--color-text-headings);
    border-bottom-color: #ccc; /* Falls die Überschriften eine Linie drunter haben */
}

body.light-theme .site-footer a {
    color: var(--color-text-main);
}

body.light-theme .site-footer a:hover,
body.light-theme .site-footer a:focus {
    color: var(--color-primary);
}

body.light-theme .site-info {
    border-top-color: #ddd;
    color: #666;
}

/* --- Agitator Kalender (iFrame) Dark Mode Trick & Responsive --- */
.page-content iframe[src*="agitatorrr.de"] {
    /* Macht den Rahmen auf dem Handy dynamisch */
    width: 100% !important; 
    max-width: 800px;
    border-radius: 8px;
    
    /* Der Magische Dark-Mode-Filter */
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(85%);
    transition: filter 0.3s ease;
}

/* Wenn auf "Hell" geklickt wird -> Sonnenbrille abnehmen! */
body.light-theme .page-content iframe[src*="agitatorrr.de"] {
    filter: none;
}

/* --- Mehr Orange im Light Mode für Kacheln --- */
body.light-theme .piraten-card {
    background-color: #fff9f2; /* Ein extrem helles, augenschonendes Pastell-Orange */
    border-color: #ffd099;
    border-left: 4px solid var(--color-primary);
}

/* --- Header-Tools (Buttons) und Responsive Breakpoints --- */
@media (max-width: 992px) {
    .wahlprogramm-layout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sticky-box {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .site-breadcrumbs { padding: 0 1rem; font-size: 0.85rem; }
    
    .header-tools {
        top: 0.5rem !important;
        right: 0.5rem !important;
        gap: 5px !important;
    }
    .theme-toggle-btn {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
}

/* --- Clickable Card Trick (Barrierefreiheit) --- */
.card-main-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* Wichtig: Hover-Effekt auf die ganze Karte übertragen */
.piraten-card:hover .card-main-link {
    color: var(--color-primary-hover);
}

/* =========================================================
   KOMMENTARBEREICH (Dark Mode Anpassung)
   ========================================================= */
.kommentar-bereich {
    max-width: 800px; /* Gleiche Breite wie der Text */
    margin: 0 auto;
}

.comment-reply-title { 
    font-size: 1.5rem; 
    color: var(--color-primary); 
    margin-bottom: 1rem; 
}

/* Die Eingabefelder (Name, E-Mail, Text) */
#respond input[type="text"], 
#respond input[type="email"], 
#respond input[type="url"], 
#respond textarea {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border-radius: 6px;
    background-color: var(--color-bg-dark); /* KORRIGIERT */
    color: var(--color-text-main); /* KORRIGIERT */
    border: 1px solid #333; /* KORRIGIERT */
    font-family: inherit;
}

#respond input[type="text"]:focus, 
#respond textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 136, 0, 0.5); /* NEU: Besserer Fokus */
}

/* Der Senden-Button */
#respond input[type="submit"] {
    background-color: var(--color-primary); 
    color: #fff; 
    border: none; 
    padding: 12px 24px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: all 0.3s ease;
}

#respond input[type="submit"]:hover,
#respond input[type="submit"]:focus { 
    filter: brightness(1.1); 
    box-shadow: 0 0 10px var(--color-primary);
}

/* Die Liste der bereits geschriebenen Kommentare */
.comment-list { 
    list-style: none; 
    padding: 0; 
}

.comment-list li { 
    background: var(--color-surface); /* KORRIGIERT (Greift jetzt auf die Variable zu) */
    padding: 1.5rem; 
    border-radius: 8px; 
    margin-bottom: 1.5rem; 
    border: 1px solid #333; 
}

.comment-meta { margin-bottom: 10px; font-size: 0.9em; color: var(--color-text-muted); }
.comment-author img { border-radius: 50%; margin-right: 10px; vertical-align: middle; }

/* =========================================================
   PRINT CSS (Wird NUR beim Ausdrucken geladen!)
   ========================================================= */
@media print {
    /* Setze den Hintergrund auf Weiß und den Text auf Schwarz */
    body, .wahlprogramm-layout-container, .wahlprogramm-content {
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    /* Verstecke alles, was man auf Papier nicht braucht */
    .site-header, 
    .site-footer, 
    .wahlprogramm-sidebar, 
    .print-button,
    .site-breadcrumbs,
    .kommentar-bereich /* NEU: Kommentare druckt man nicht mit */ {
        display: none !important;
    }

    /* Mach den Textbereich für das Papier so breit wie möglich */
    .wahlprogramm-layout-container {
        display: block;
        padding: 0;
        margin: 0;
    }

    .wahlprogramm-content {
        max-width: 100%;
    }

    /* Links sollen im Druck unterstrichen sein, und wir zeigen die URL an, 
       damit Leute auf dem Papier sehen, wohin der Link führt! */
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    .page-content a::after {
        content: " (" attr(href) ") ";
        font-size: 0.85rem;
        color: #555;
    }
}