/* --- LBS Anpassungen für Stockholm Theme --- */

:root {
    --bg: #f8f8f7;
    --code-bg: #f0f0ef;
    --entry: #999;
}

/* --- Desktop Layout --- */
@media screen and (min-width: 48.01em) {
    .header .sitename h1 a {
        letter-spacing: 2px;       /* Mehr Abstand zwischen den Buchstaben */
        font-weight: 500;
        padding-left: 0px;
        border-bottom: none;       /* Entfernt Unterstreichung am Desktop */
    }
}

/* Meta-Daten (Neu in LBS Version) */
.entry-meta {
    color: var(--entry);
    font-style: italic;
}

/* Blockquote: Fettung entfernt */
.content blockquote {
    font-weight: normal;
}

.content .wikipages ul li,
.content .wikitags ul li,
.content .wikilinks ul li {
    /* Verhindert, dass ein einzelner Punkt auf zwei Spalten aufgeteilt wird */
    break-inside: avoid-column; 
    display: inline-block; /* Zusätzliche Absicherung für ältere Browser */
    width: 100%;           /* Sorgt dafür, dass der Punkt die Spaltenbreite nutzt */
    margin-bottom: 0.2em;  /* Kleiner Abstand zwischen den Punkten */
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
}

/* --- Bildunterschriften Automatik --- */
/* (Wendet Styling auf den Text an, wenn ein Bild in einem Paragraph steht) */
.content p:has(img) {
    font-style: italic;
    font-size: 0.9em;
    color: var(--entry);
    text-align: center;
    line-height: 1.3;
    margin-top: 1.5em; 
    margin-bottom: 1.5em;
}

/* Verhindert, dass das Bild selbst kursiv wird (falls Browser das vererben) */
.content p:has(img) img {
    font-style: normal;
}

/* --- Footer: Komplettes Re-Design --- */
.footer {
    margin: 4em 0 2em 0; /* Mehr Abstand nach oben zum Inhalt */
    font-size: 0.85em;   /* Etwas besser lesbar */
    text-align: right;
    line-height: 1.6;    /* Mehr Zeilenabstand für Luftigkeit */
    color: #666;         /* Ein mittleres Grau für den normalen Text (Copyright) */
}

.footer .siteinfo a {
    color: var(--entry);
}

.footer .siteinfo a:hover {
    color: var(--entry);
    text-decoration: underline;
}

/* --- Mobile Menü-Optimierung --- */

@media screen and (max-width: 48em) {

    /* Erzwingt absolute Bündigkeit nach oben */
    html, body, .container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .header {
        background-color: var(--bg);
        padding: 2em 10px 1.5em 10px;
        margin-top: 0 !important;
        margin-bottom: 1.5em;
        margin-left: -20px; 
        margin-right: -20px;
    }
    
    .header .sitename {
        float: none;
        width: 100%;
        text-align: center;
        padding-bottom: 0.5em;
        margin-bottom: 0.8em;
    }

    .header .sitename h1 a {
        letter-spacing: 1px;
        font-weight: 500;
        font-size: 0.9em;
        display: inline-block;
        border-bottom: none;
        text-decoration: none; /* Entfernt die weiße Linie */
        color: #111;           /* Dunkle Schrift auf grauem Grund */
    }

    .navigation {
        float: none;
        display: block;
        width: 100%;
        text-align: center;
    }

    .navigation ul {
        margin: 0;
        padding: 0;
        display: block;
    }

    .navigation li {
        display: inline-block;
    }

    .navigation a {
        display: inline-block;
        padding: 0.4em 0.3em; /* Etwas Puffer für Klickbarkeit */
        font-size: 0.85em; 
        border-bottom: none;
        text-decoration: none; /* Entfernt die weiße Linie */
        color: #111;           /* Dunkle Schrift auf grauem Grund */
        white-space: nowrap;
    }
}