/* ==========================================================
   post-content.css
   Gemeinsame Styles für Beitragsinhalte.
   Wird sowohl im Editor (editor.php) als auch in der
   Beitragsansicht (beitrag.php) eingebunden.

   Selektoren nutzen .post-content als Container-Klasse.
   Im Editor muss dem contenteditable-div zusätzlich die
   Klasse "post-content" gegeben werden.
   ========================================================== */

:root {
    --primary: #2d5a3d;
    --primary-light: #3a7550;
    --primary-dark: #1e3d2a;
    --accent: #d8ead9;
    --accent-warm: #f5f0eb;
    --foreground: #3c3c3c;
    --muted: #6b6b6b;
    --border: #e0dcd6;
    --background: #fafaf8;
    --surface: #ffffff;
    --danger: #c0392b;
    --danger-light: #fee;
    --warning: #e67e22;
    --success: #27ae60;
    --info: #2980b9;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-nav: 'Montserrat', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 0.5rem;
}


/* ========== ÜBERSCHRIFTEN ========== */
.post-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem !important;
    font-weight: 400;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

h2 * {
    font-size: inherit !important;
}


.post-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    margin: 1.25rem 0 0.75rem 0;
    color: var(--foreground);
}

/* ========== TEXT ========== */
.post-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

.post-content li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #8b8b8b;
    font-style: italic;
}

/* ========== LINKS ========== */
.post-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* ========== MEDIEN ========== */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* ========== PDF-LINK ========== */
.post-content .pdf-embed {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--accent-warm);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-nav);
    font-size: 0.85rem;
    margin: 0.75rem 0;
    transition: all 0.2s;
}

.post-content .pdf-embed:hover {
    background: var(--accent);
    border-color: var(--primary);
    color: var(--primary-dark, #1e3d2a);
    text-decoration: none;
}

.post-content .pdf-embed svg {
    flex-shrink: 0;
}



/* ========== TRENNLINIEN ========== */
.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.post-content hr + hr {
    display: none;
}

.post-content hr:has(+ hr) {
    border-top-width: 1.6px;
    /* margin-bottom: 0; */
}

.post-content br {
    display: block;
    content: '';
    margin-top: 0.5rem;
}

/* ========== ROSES BOXES ========== */
.roses-box-garden {
    background-color: #fdfaf7;
    border: 1px solid #d8ead9;
    padding: 18px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    color: #6b5e5e;
    line-height: 1.6;
}

.roses-box-garden strong {
    color: #a47d7d;
}

.roses-box-diy {
    background-color: #f9f3f1;
    border: 1px solid #e6c8b1;
    padding: 18px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    color: #6b5e5e;
    line-height: 1.6;
}

.roses-box-diy strong,
.roses-box-diy em {
    color: #b6784d;
}

.roses-box-words {
    background-color: #f8f9f8;
    border-left: 4px solid #d8ead9;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    color: #5b5b5b;
    font-style: italic;
    line-height: 1.6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content .pdf-embed {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}
