/* Eulenlicht Blog – Teil derselben visuellen Familie wie ACC-Cockpit und
   Homepage (Farbwerte aus Projects/Agent-Control-Center/agent_control_center/
   gui/theme.py). Stärker auf längere Lesetexte/Artikel ausgelegt als die
   Homepage. Reines, buildfreies CSS - kein Framework.
   Logo/Header/Navigation sind seit dieser Überarbeitung echte statische
   Website-Bestandteile (hugosite/layouts/*.html + hugosite/static/medien/
   logo.png, Hugo-natives static-Verzeichnis) - siehe Abschlussbericht. */

:root {
    --el-bg: #0B0B0B;
    --el-bg-elevated: #171717;
    --el-gold: #D4AF37;
    --el-text: #F2EEDD;
    --el-text-secondary: #B8A66A;
    --el-border: #3A3320;
    --el-hover: #332A12;

    --content-width: 680px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0 1.5rem;
    background: var(--el-bg);
    color: var(--el-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--el-gold);
    transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
    color: var(--el-text);
}

/* Statischer Header: Logo + Branding (+ Navigation auf Artikelseiten) */
.site-header {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 3rem) 0 1.5rem;
    text-align: center;
}

.site-logo {
    display: block;
    max-width: 72px;
    height: auto;
    margin: 0 auto 1rem;
    border-radius: 4px;
}

.site-header h1 {
    margin: 0 0 0.25rem;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    font-size: 1.85rem;
    color: var(--el-gold);
}

.site-header h1 a {
    color: var(--el-gold);
    text-decoration: none;
}

.site-header h1 a:hover,
.site-header h1 a:focus-visible {
    color: var(--el-text);
}

.site-description {
    margin: 0.25rem 0 0;
    color: var(--el-text-secondary);
}

/* Navigation: dezenter duenner Rahmen statt Unterstreichung/Bullets. */
.site-nav {
    margin-top: 1rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.site-nav li {
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: inline-block;
    text-decoration: none;
    color: var(--el-text-secondary);
    padding: 0.35rem 1rem;
    border: 1px solid var(--el-border);
    border-radius: 4px;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--el-gold);
    border-color: var(--el-gold);
    background-color: var(--el-hover);
}

/* Artikelliste (Startseite) */
ul.artikelliste {
    list-style: none;
    max-width: var(--content-width);
    margin: 0 auto 2rem;
    padding: 0;
}

/* Nur direkte Listeneintraege: ohne ">" griffen diese Regeln (hoehere
   Spezifitaet) auch auf die verschachtelten Tag-Chips (.tags li/.tags a). */
ul.artikelliste > li {
    padding: 0.85rem 0;
    border-top: 1px solid var(--el-border);
    margin: 0;
}

ul.artikelliste > li:first-child {
    border-top: none;
}

ul.artikelliste > li > a {
    text-decoration: none;
    font-size: 1.05rem;
}

/* Datum in eigener Zeile unter dem Titel statt direkt daneben. */
ul.artikelliste time {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.85rem;
}

ul.artikelliste .summary {
    margin: 0.35rem 0 0;
    color: var(--el-text);
    font-size: 0.95rem;
}

/* Tags: dezente Links im gleichen Rahmenstil wie die Navigation, nur
   kleiner - weder Bullets noch Unterstreichung. */
.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    padding: 0;
}

.tags li {
    margin: 0;
    padding: 0;
}

.tags a {
    display: inline-block;
    text-decoration: none;
    color: var(--el-text-secondary);
    font-size: 0.8rem;
    padding: 0.15rem 0.6rem;
    border: 1px solid var(--el-border);
    border-radius: 4px;
}

.tags a:hover,
.tags a:focus-visible {
    color: var(--el-gold);
    border-color: var(--el-gold);
    background-color: var(--el-hover);
}

/* Einzelner Artikel: eigener, dezent gerahmter Inhaltsbereich */
article {
    max-width: var(--content-width);
    margin: 0 auto 3rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--el-border);
    border-radius: 6px;
    background: var(--el-bg-elevated);
}

article h1 {
    text-align: left;
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    color: var(--el-gold);
}

article img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

time {
    color: var(--el-text-secondary);
    font-size: 0.9em;
}

/* Code- und Promptbloecke: im Blog ueberwiegend Prompts (Fliesstext), daher
   Umbruch statt Scrollen; overflow-x bleibt als Absicherung, falls ein
   einzelnes Zeichenfolgen-Stueck trotzdem nicht passt. Ohne diese Regel
   liefen lange Zeilen aus dem Artikel heraus und verkleinerten auf dem
   Handy die gesamte Seite. */
article pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow-x: auto;
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    background: var(--el-bg);
    border: 1px solid var(--el-border);
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
}

article table {
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

article th,
article td {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--el-border);
    text-align: left;
    vertical-align: top;
}

article th {
    color: var(--el-gold);
    font-weight: normal;
}

/* Footer: zentrale Rechtstexte (Impressum/Datenschutz/Nutzungsbedingungen)
   liegen ausschliesslich auf eulenlicht.eu, keine lokale Kopie im Blog -
   absolute Links, dezent gehalten, gleiche Farbfamilie wie die Homepage
   (siehe dortiges "Footer"-Regelwerk in Website/style.css). */
.site-footer {
    max-width: var(--content-width);
    margin: 2rem auto 0;
    padding: 1.25rem 0 2rem;
    border-top: 1px solid var(--el-border);
}

.site-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.site-footer nav a {
    color: var(--el-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
    color: var(--el-gold);
}

@media (max-width: 480px) {
    body {
        padding: 0 1rem;
    }

    article {
        padding: 1.25rem 1.25rem;
    }
}
