:root {
    --bg-color: #1a1816;
    --text-main: #d9d1c0;
    --text-muted: #9a9282;
    --accent-red: #cc3333;
    --accent-amber: #c0762a;
    --border-color: #3b352e;
    --font-serif: 'Libre Baskerville', serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-serif);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    font-size: 18px;
    /* Subtile Noise/Canvas Textur für organisches Gefühl */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

a {
    color: var(--accent-amber);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--accent-red);
    text-shadow: 0 0 8px rgba(204, 51, 51, 0.4);
}

/* Layout */
.site-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

.site-sidebar {
    width: 320px;
    padding: 3rem 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
    border-right: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    /* Organischer ungleichmäßiger Rand als Design-Element */
    border-radius: 2% 98% 3% 97% / 10% 2% 98% 90%;
}

.site-title {
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.site-title a {
    color: var(--text-main);
}

.site-title a:hover {
    color: var(--accent-amber);
    text-shadow: none;
}

.site-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.site-nav {
    flex-grow: 1;
    margin-top: 2rem;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav li {
    margin-bottom: 1rem;
}

.site-nav a {
    font-size: 1.2rem;
    display: block;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover, .nav-current a {
    color: var(--accent-red);
    border-bottom: 1px solid var(--accent-red);
    padding-left: 8px; /* Organischer Shift beim Hover */
}

.site-footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
}

.site-main {
    flex-grow: 1;
    padding: 3rem 4rem;
    max-width: 850px;
}

/* Typography & Content inside posts */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1.5rem;
}

blockquote {
    border-left: 3px solid var(--accent-red);
    margin: 2rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    /* Hand-drawn Box Imperfection */
    border-radius: 2px 15px 15px 2px;
}

figure {
    margin: 2.5rem 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px 3px 6px 2px; /* Unregelmäßige Kanten */
    box-shadow: 4px 4px 0px rgba(0,0,0,0.4);
}

figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    font-style: italic;
}

/* Post Listings */
.post-feed {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.post-card {
    padding-bottom: 3.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
    font-style: italic;
}

.post-card-title {
    margin-top: 0;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.post-card-title a {
    color: var(--text-main);
}

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

.post-card-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 700;
    font-style: italic;
    color: var(--accent-amber);
    border-bottom: 1px solid var(--accent-amber);
    padding-bottom: 2px;
}

.read-more:hover {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}

/* Single Post/Page */
.post-header {
    margin-bottom: 3rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
    /* Unregelmäßige Trennlinie unten */
    border-radius: 0 0 10px 10px / 0 0 3px 2px;
}

.post-title {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    margin-top: 0;
    letter-spacing: -0.02em;
}

.post-meta {
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}

.gh-content {
    font-size: 1.15rem;
}

/* Error Page */
.error-message {
    text-align: center;
    padding: 5rem 0;
}

.error-code {
    font-size: 6rem;
    color: var(--accent-red);
    margin: 0;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 900px) {
    .site-wrapper {
        flex-direction: column;
    }

    .site-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px dashed var(--border-color);
        border-radius: 0;
        padding: 1.5rem 1.25rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 2rem;
    }

    .site-header {
        flex: 1 1 auto;
    }

    .site-nav {
        margin-top: 0;
        display: flex;
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .site-nav ul {
        display: flex;
        flex-direction: row;
        gap: 1.25rem;
        padding: 0;
        margin: 0;
    }

    .site-footer {
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.5rem;
        border-top: 1px dashed var(--border-color);
        font-size: 0.75rem;
    }

    .site-main {
        padding: 2rem 1.25rem;
    }

    .post-title, .post-card-title {
        font-size: 1.75rem;
    }
}
/* ── Sidebar Post List ─────────────────────────────────── */
.sidebar-posts {
    margin-top: 2rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
}

.sidebar-post-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

.sidebar-post-item:last-child {
    border-bottom: none;
}

.sidebar-post-item a {
    text-decoration: none;
    display: block;
}

.sidebar-post-item a:hover .sidebar-post-title {
    color: var(--accent-hover);
}

.sidebar-post-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
    transition: color 0.2s;
}

.sidebar-post-meta {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-style: italic;
    margin: 0 0 0.3rem 0;
}

.sidebar-post-excerpt {
    font-size: 0.78rem;
    color: rgba(217, 209, 192, 0.55);
    margin: 0;
    line-height: 1.4;
}
