/* =======================================================
   BLOG.CSS
   -------------------------------------------------------
   - Grundlayout
   - Seitenstruktur
   - Blogposts
   - Typografie
   - Interaktive Links
   ======================================================= */


/* =======================================================
   GLOBAL / GRUNDLAYOUT
   ======================================================= */

html,
body {
    overflow-x: hidden;
}


/* =======================================================
   BODY – HAUPT-LAYOUTCONTAINER
   ======================================================= */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;

    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}


/* =======================================================
   MAIN – HAUPTINHALT
   ======================================================= */

main {
    flex: 1 0 auto;
    overflow-y: auto;
}


/* =======================================================
   BLOG ARTIKEL
   ======================================================= */

.post {
    background: var(--post-bg);
    max-width: 800px;

    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;

    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
}


/* =======================================================
   ARTIKEL-TITEL
   ======================================================= */

.post h2 {
    font-weight: 600;
    margin-top: -5px;
    margin-bottom: 5px;
}


/* =======================================================
   DATUM / METAINFOS
   ======================================================= */

.post .date {
    margin-bottom: 10px;
}


/* =======================================================
   HAUPTTEXT
   ======================================================= */

.post .text {
    line-height: 1.6;
    margin-bottom: 15px;
}


/* =======================================================
   LINKS & INTERAKTION
   ======================================================= */

.post h2 a,
.post .date a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.post h2 a:visited,
.post .date a:visited {
    color: inherit;
}


.post h2 a:hover {
    opacity: 0.75;
    transform: translateX(2px);
}


.post .date a:hover {
    opacity: 0.6;
}


.post h2 a:active,
.post .date a:active {
    opacity: 0.5;
    transform: translateX(1px);
}
