: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 LAYOUT */
.header {
    position: relative;
    padding: 20px 0 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #30363d;
}

/* LOGO LINKS OBEN */
.header-left {
    position: absolute;
    left: 0;
    top: 20px;
}

.logo {
    height: 60px;
    width: auto;
    margin-left: 20px;
}

/* TITEL ZENTRIERT */
.header-center {
    text-align: center;
}

/* TITEL */
.header-center h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

/* LINKS UNTER DEM TITEL, LINKS AUSGERICHTET */
.header-links {
    margin-top: 6px;
    display: inline-flex;
    gap: 15px;
    justify-content: flex-start;
}

.header-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.header-links a:hover {
    text-decoration: underline;
}


/* ------------------------------------
   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;
}

.back-link {
    display: inline-block;
    margin: 10px 0 20px 0;
    color: var(--accent);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding-left: 20px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Formular-Container */
form {
    background: #161b22;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #30363d;
    max-width: 600px;
}

/* Labels */
form label {
    font-weight: 600;
    color: #c9d1d9;
}

/* Inputs */
form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 15px;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Button */
form button {
    margin-top: 10px;
    padding: 10px 18px;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

form button:hover {
    opacity: 0.85;
}

/* ------------------------------------
   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;
    }
}
