:root {
    --bg: #0d1117;
    --bg2: #161b22;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --radius: 10px;
    --shadow: 0 8px 25px rgba(0,0,0,0.4);
    font-family: system-ui, sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

/* ------------------------------------
   HEADER MIT LOGO LINKS + TITEL ZENTRIERT
------------------------------------ */
.header {
    position: relative;
    padding: 20px;
    background: var(--bg2);
    box-shadow: var(--shadow);
    height: 70px; /* Fixe Höhe für perfekte Zentrierung */
}

.post-card h2,
.post-card h2 a {
    color: var(--text);      /* Weiß */
    text-decoration: none;   /* Keine Unterstreichung */
}

.post-card h2 a:hover {
    text-decoration: underline; /* Optional: beim Hover unterstreichen */
}


/* Logo bleibt links */
.logo {
    height: 80px;
    width: 80px;
    object-fit: contain;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Titel exakt zentriert */
.header h1 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 24px;
    white-space: nowrap;
}

/* Zurück-Link (post.html) bleibt links oben */
.back {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.back-link {
    display: inline-block;
    margin: 20px 20px 0 20px;
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
}

/* ------------------------------------
   CONTENT
------------------------------------ */
.container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.post-card {
    background: var(--bg2);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.post-card h2 {
    margin-top: 0;
}

article img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 15px 0;
}

.img-left {
    float: left;
    margin: 0 15px 10px 0;
    max-width: 50%;
}

.img-right {
    float: right;
    margin: 0 0 10px 15px;
    max-width: 50%;
}

#post::after {
    content: "";
    display: block;
    clear: both;
}

.clear {
    clear: both;
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
}


/* ------------------------------------
   MOBILE OPTIMIERUNG
------------------------------------ */
@media (max-width: 600px) {

    .header {
        padding: 15px;
        height: 60px;
    }

    .logo {
        height: 32px;
        width: 32px;
        left: 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .back {
        font-size: 16px;
        left: 15px;
    }

    .container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .post-card {
        padding: 15px;
        border-radius: 8px;
    }

    .post-card h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    body {
        font-size: 16px;
        line-height: 1.5;
    }

    article img {
        margin: 10px 0;
        border-radius: 8px;
    }

    a, .read-more {
        font-size: 16px;
        padding: 4px 0;
        display: inline-block;
    }
}
