/* ==========================================================================
   VINTAGE NEWSPAPER & WERTPAPIER DESIGN (Gesamte Farbpalette & Typografie)
   ========================================================================== */

body {
    margin: 0;
    padding: 0;
    /* Das blassere Grün als Papier-Hintergrund für die gesamte Seite */
    background-color: #d2ded5; 
    /* Klassische Zeitungs-Schriftart (Serifen) */
    font-family: 'Times New Roman', Times, Georgia, Garamond, serif;
    color: #233d2f;
    line-height: 1.6;
}

/* --- Header & Footer (Das historische Dunkelgrün) --- */
.main-header {
    background-color: #233d2f; /* Historisches, tiefes Dunkelgrün */
    padding: 30px 20px;
    text-align: center;
    border-bottom: 4px double #d2ded5; /* Klassische Doppel-Linie */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.main-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: normal;
    letter-spacing: 1px;
}

.main-header h1 a {
    color: #edf5f0; /* Helles Creme-Weiß für guten Kontrast */
    text-decoration: none;
}

.main-header .subtitle a {
    color: #b3cbbd;
    text-decoration: none;
    font-size: 1.1em;
}
.main-header .subtitle a:hover {
    color: #edf5f0;
    text-decoration: underline;
}

.main-footer {
    background-color: #233d2f;
    color: #b3cbbd;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 60px;
    border-top: 4px double #d2ded5;
}

/* Links im Footer: Hellgrün, permanent unterstrichen */
.main-footer a {
    color: #a1cca5; /* Ein schönes, gut lesbares Vintage-Hellgrün */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.main-footer a:hover {
    color: #edf5f0; /* Wird beim Drüberfahren strahlender (Creme-Weiß) */
}


/* ==========================================================================
   INHALTS-LAYOUT & BEITRÄGE (Sehr helles Grün, tiefschwarze Schrift)
   ========================================================================== */

.content-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

article {
    /* Sehr, sehr helles Grün (fast weiß) */
    background-color: #f4f8f5; 
    /* Tiefschwarze Schrift für echten Druck-Charakter */
    color: #000000; 
    margin-bottom: 35px;
    padding: 25px;
    border-radius: 2px;
    /* Feiner, historisch anmutender Rahmen */
    border: 1px solid #a8baa1;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    position: relative; /* Wichtig für die absoluten Bearbeitungs-Punkte */
}

/* Titel innerhalb eines Beitrags (falls [h] verwendet wird) */
.post-heading {
    margin-top: 0;
    font-size: 1.6em;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    color: #000000;
}

.date {
    font-size: 0.85em;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

/* Medien-Elemente (Bilder, Videos, Audio) */
article img, article video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #eaefe9;
    border: 1px solid #cbd6c9;
    margin-bottom: 15px;
}

/* --- Zitat-Kasten [q] (Invertierter Zeitungs-Callout) --- */
.post-quote {
    background-color: #233d2f; /* Dunkelgrün wie der Header */
    color: #edf5f0;            /* Helle, creme-weiße Schrift */
    padding: 15px 20px;
    margin: 18px 0;
    font-size: 1em;          /* Etwas kleinere Schrift */
    border-radius: 10px;
    border: 5px solid #a8baa1;
    font-weight: bold;        /* Klassisch für Zitate */
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Falls innerhalb des Zitats Hashtags oder Links vorkommen:
   Damit diese auf dem dunklen Grund lesbar bleiben, nutzen wir das Fußzeilen-Hellgrün */
.post-quote a {
    color: #a1cca5 !important;
    text-decoration: underline;
}
.post-quote a:hover {
    color: #ffffff !important;
}


/* ==========================================================================
   LINKS & HASHTAGS IN DEN BEITRÄGEN (Dunkelgrün wie der Header)
   ========================================================================== */

a.hashtag {
    color: #233d2f; /* Dunkelgrün exakt wie der Header */
    text-decoration: none;
    font-weight: bold;
}
a.hashtag:hover {
    text-decoration: underline;
    color: #15241c; /* Wird beim Hovern noch ein Stück dunkler */
}

.post-content a {
    color: #233d2f; /* Normale Links im Beitrag ebenfalls dunkelgrün */
    text-decoration: underline;
}
.post-content a:hover {
    color: #15241c;
}


/* ==========================================================================
   HASHTAG-FILTER BOX & BUTTON (Dunkelgrün auf Weiß)
   ========================================================================== */

.tag-filter-info {
    text-align: center;
    margin-bottom: 30px;
    background: #e9f0eb; /* Ein dezentes, passendes helles Grün */
    padding: 20px;
    border: 1px dashed #233d2f;
    color: #233d2f;
}

/* "Filter aufheben" als feiner Button styled (Dunkelgrün auf Weiß) */
.filter-remove {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    background-color: #ffffff; /* Weißer Hintergrund */
    color: #233d2f;            /* Dunkelgrüne Schrift */
    border: 2px solid #233d2f; /* Dunkelgrüner Rahmen */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}
/* Invertierungs-Effekt beim Drüberfahren */
.filter-remove:hover {
    background-color: #233d2f; /* Wird dunkelgrün */
    color: #ffffff;            /* Schrift wird weiß */
    text-decoration: none;
}


/* ==========================================================================
   ADMINISTRATIVE ELEMENTE (Bearbeiten-Punkte & Modal)
   ========================================================================== */

/* Minimalistische Punkt-Buttons (Bleiben funktionsfähig) */
.edit-btn, .delete-btn {
    position: absolute;
    top: 25px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s;
}
.edit-btn { right: 40px; background-color: #f1c40f; }
.delete-btn { right: 20px; background-color: #e74c3c; }
.edit-btn:hover, .delete-btn:hover { transform: scale(1.5); }
/* Klickfläche künstlich vergrößern */
.edit-btn::after, .delete-btn::after {
    content: ''; position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px;
}

/* Bearbeiten-Overlay (Modal) */
