/* =========================================================
   Ruhiges Grunddesign – einheitlicher Hintergrund
   ========================================================= */

:root{
  /* Farben */
  --bg: #0f1115;
  --surface: #161a22;
  --text: #e6e8ee;
  --muted: #9aa2b2;
  --border: #2a3140;

  /* Akzente */
  --accent: #6f8cff;        /* Technik / Links */
  --accent-human: #7a2e2e;  /* Bordeaux-Rot */

  /* Layout */
  --maxw: 920px;
  --radius: 12px;
  --space: 24px;
}

/* Heller Modus (optional) */
@media (prefers-color-scheme: light){
  :root{
    --bg: #f4f5f8;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #5b6475;
    --border: #e2e6ef;

    --accent: #2f5cff;
    --accent-human: #8b2f2f;
  }
}

/* =========================================================
   Reset & Basis
   ========================================================= */

*{
  box-sizing: border-box;
}

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

/* =========================================================
   Layout
   ========================================================= */

header,
main,
footer{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space);
}

header{
  padding-top: 20px;
  padding-bottom: 18px;
}

/* Feiner Trennstrich unter dem Menü */
header::after{
  content: "";
  display: block;
  margin-top: 14px;
  height: 1px;
  background-color: var(--accent-human);
  opacity: 0.85;
}

main{
  padding-top: 28px;
  padding-bottom: 48px;
}

footer{
  padding-top: 24px;
  padding-bottom: 36px;
  color: var(--muted);
}

/* Feiner Trennstrich über dem Footer */
footer::before{
  content: "";
  display: block;
  margin-bottom: 14px;
  height: 1px;
  background-color: var(--accent-human);
  opacity: 0.85;
}

/* =========================================================
   Typografie
   ========================================================= */

h1{
  font-size: 2rem;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

h2{
  font-size: 1.1rem;
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}

p{
  margin: 0 0 14px;
}

ul,
ol{
  margin: 8px 0 0 22px;
}

li{
  margin: 6px 0;
}

/* =========================================================
   Starker Trennstrich (Startseite unter H1)
   ========================================================= */

.divider-strong{
  width: 100%;
  height: 8px;              /* dicker als vorher */
  background-color: var(--accent-human);
  border-radius: 4px;
  margin: 14px 0 22px;
}

/* =========================================================
   Links
   ========================================================= */

a{
  color: var(--accent);
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

/* =========================================================
   Navigation
   ========================================================= */

nav{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

nav a{
  color: var(--muted);
  padding: 4px 0;
}

nav a:hover{
  color: var(--text);
  text-decoration: none;
}

nav a[aria-current="page"]{
  color: var(--text);
  font-weight: 600;
}

/* Betriebssystem: Mensch – Bordeaux */
nav a[href="/osmensch/"]{
  color: var(--accent-human);
}
nav a[href="/osmensch/"]:hover{
  color: #9a3b3b;
}
nav a[href="/osmensch/"][aria-current="page"]{
  color: #9a3b3b;
  font-weight: 600;
}

/* =========================================================
   Inhaltsflächen
   ========================================================= */

section{
  margin-top: 24px;
  padding: 20px 22px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* =========================================================
   About Hero (Portrait links, "Über mich" rechts)
   ========================================================= */

.about-hero{
  display: flex;
  align-items: center;
  gap: 22px;
}

.about-hero__img{
  width: 220px;
  height: auto;
  display: block;

  /* Wichtig: niemals verzerren */
  object-fit: contain;

  border-radius: 14px;
  border: 1px solid var(--border);
  background-color: var(--surface);
}

.about-hero__text h1{
  margin-top: 0;
}

/* Mobil: untereinander */
@media (max-width: 700px){
  .about-hero{
    flex-direction: column;
    align-items: flex-start;
  }
  .about-hero__img{
    width: 180px;
    height: auto;
  }
}

/* =========================================================
   Footer
   ========================================================= */

footer a{
  color: var(--muted);
}

footer a:hover{
  color: var(--text);
  text-decoration: none;
}


/* =========================================================
   Subnavigation (nur im Bereich Betriebssystem: Mensch)
   ========================================================= */

.subnav{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 18px;
}

.subnav a{
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 2px 0;
}

.subnav a:hover{
  color: var(--text);
  text-decoration: none;
}

.subnav a[aria-current="page"]{
  color: var(--text);
  font-weight: 600;
}


/* Hilfsklasse */
.muted{ color: var(--muted); }


/* Download-Link im Hauptmenü: etwas mehr Abstand + fett */
.nav-download{
  margin-left: 18px;
  font-weight: 700;
}
.nav-download:hover{ text-decoration: none; }

/* Downloads-Link im Hauptmenü: rechtsbündig + fett */
.navbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-downloads{
  margin-left: auto;
  font-weight: 700;
}

/* --- File-based posts (TXT -> Beiträge) --- */
.post-card{
  padding: 18px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  margin: 18px 0;
}
.post-title{
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.post-meta{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .95rem;
}
.post-body p{ margin: 0 0 10px; }
