/* s3nf-v2 – eigenes Theme für s3nf-net.com (2026-11-04)
   Marke der drei Seiten: dunkel, Mulish, Akzent Blau, blauer Block-Cursor. Alle Farben nur hier. */

@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0f13;
  --card: #17191f;
  --card-hover: #1c1f26;
  --code: #12151b;
  --text: #eef1f5;
  --text-2: #c9d0d9;
  --muted: #8f99a6;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #3fb4ff;
  --accent-soft: rgba(63, 180, 255, 0.14);
  --on-accent: #101216;
  --radius: 12px;
  --max: 72rem;
  --read: 44rem;
  --font: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --ghost-accent-color: #3fb4ff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text-2);
  font: 400 1.0625rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
.site-main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; letter-spacing: -0.02em; }
[id] { scroll-margin-top: 6rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
/* Alle Seiten beginnen an derselben linken Kante wie das Logo; Lesetexte bleiben schmal (linksbündig) */
.wrap-read { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.wrap-read > * { max-width: var(--read); }
.wrap-read > .archive, .wrap-read > .taglist { max-width: 56rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Cursor – gemeinsames Zeichen */
.cursor { display: inline-block; width: 0.42em; height: 0.82em; margin-left: 0.06em; background: var(--accent); border-radius: 0.06em; vertical-align: -0.06em; }
@media (prefers-reduced-motion: no-preference) { .cursor { animation: blink 1.6s ease-in-out infinite; } }
@keyframes blink { 0%, 40% { opacity: 1; } 55%, 85% { opacity: 0; } 100% { opacity: 1; } }

/* Kopf */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(13, 15, 19, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand { color: var(--text); font-weight: 850; font-size: 1.4rem; letter-spacing: -0.04em; text-decoration: none; white-space: nowrap; }
.head-nav { flex: 1; }
.head-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.head-nav a { color: var(--muted); font-weight: 650; font-size: 0.98rem; text-decoration: none; }
.head-nav a:hover, .head-nav .nav-current a { color: var(--text); }
.head-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--card); }
.burger { display: none; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Bausteine */
.kicker { display: inline-block; color: var(--accent); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; margin: 0 0 0.6rem; }
.kicker a { color: inherit; text-decoration: none; }
.meta { color: var(--muted); font-size: 0.9rem; }
.meta a { color: inherit; }
.button { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 800; padding: 0.8rem 1.4rem; border-radius: 10px; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 0.9rem; font-weight: 650; text-decoration: none; background: var(--card); }
.chip span { color: var(--muted); font-size: 0.8rem; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip-all { background: none; color: var(--accent); }

/* Startseite */
.hero { padding: 4.5rem 1.5rem 2rem; }
.hero-title { font-weight: 850; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -0.045em; margin: 0 0 1.4rem; }
.hero-lead { max-width: 40rem; color: var(--text-2); font-size: 1.2rem; line-height: 1.6; margin: 0 0 1.8rem; }
.block { padding-top: 3rem; padding-bottom: 1rem; }
.block-tight { padding-top: 0.5rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.block-title { font-size: 1.05rem; font-weight: 800; color: var(--accent); letter-spacing: 0; margin: 0 0 1.2rem; }
.block-head .block-title { margin: 0; }
.block-more { color: var(--muted); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.block-more:hover { color: var(--text); }

.lead-post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.18s, background 0.18s; }
.lead-post:hover { border-color: rgba(63, 180, 255, 0.4); background: var(--card-hover); }
.lead-link { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; color: inherit; text-decoration: none; }
.lead-img { position: relative; min-width: 0; min-height: 21rem; overflow: hidden; background: #11141a; }
.lead-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-body { padding: 2rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.lead-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 850; letter-spacing: -0.03em; margin: 0 0 0.8rem; }
.lead-excerpt { margin: 0 0 1rem; color: var(--text-2); }
.more { margin-top: 1rem; color: var(--accent); font-weight: 800; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.18s, transform 0.18s, background 0.18s; }
.card:hover { border-color: rgba(63, 180, 255, 0.4); background: var(--card-hover); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #11141a; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.12rem; font-weight: 800; margin: 0 0 0.5rem; }
.card-excerpt { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; font-size: 0.85rem; }

/* Beitrag */
.post-head { padding-top: 3.5rem; padding-bottom: 1.5rem; }
.post-title { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 1rem; }
.post-lead { font-size: 1.2rem; color: var(--text-2); margin: 0 0 1rem; }
.post-img { margin: 0.5rem auto 2.5rem; }
.post-img img { width: 100%; border-radius: var(--radius); display: block; }
.post-img figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 0.6rem; }
.post-img figcaption a { color: inherit; }
.post-layout { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; position: relative; }
.post-body { max-width: var(--read); margin: 0; font-size: 1.1rem; line-height: 1.75; }
.post-body > * { margin: 0 0 1.4em; }
.post-body h2 { font-size: 1.65rem; font-weight: 850; margin: 2.2em 0 0.7em; }
.post-body h3 { font-size: 1.3rem; font-weight: 800; margin: 1.8em 0 0.6em; }
.post-body h4 { font-size: 1.1rem; font-weight: 800; margin: 1.6em 0 0.5em; }
.post-body strong { color: var(--text); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin: 0.35em 0; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote { margin-left: 0; padding: 0.4em 0 0.4em 1.2em; border-left: 3px solid var(--accent); color: var(--text); font-size: 1.15rem; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body figure img { border-radius: 10px; }
.post-body figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 0.6em; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: 0.55em 0.8em; border-bottom: 1px solid var(--line); }
.post-body th { color: var(--text); }
.post-body :not(pre) > code { background: #2b2f37; color: #f2f4f8; border-radius: 4px; padding: 0.12em 0.4em; font-size: 0.9em; font-family: var(--mono); }
.post-body pre { position: relative; background: var(--code) !important; border: 1px solid var(--line); border-radius: 10px; padding: 1.1em 1.2em !important; overflow-x: auto; font-size: 0.9rem; line-height: 1.6; }
.post-body pre code { font-family: var(--mono); background: none; }
.copy-btn { position: absolute; top: 0.5rem; right: 0.5rem; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 700 0.75rem/1 var(--font); padding: 0.4rem 0.6rem; border-radius: 6px; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.post-body pre:hover .copy-btn, .copy-btn:focus { opacity: 1; }
.end { margin-top: 2.5rem !important; line-height: 1; }
.end .cursor { width: 0.55em; height: 1.1em; }

/* Inhaltsverzeichnis (nur breite Bildschirme, ab 3 Überschriften) */
.toc { display: none; }
@media (min-width: 1240px) {
  .toc:not([hidden]) { display: block; position: absolute; top: 0; right: 1.5rem; bottom: 0; width: calc(100% - var(--read) - 7rem); max-width: 16rem; }
  .toc-inner { position: sticky; top: 6rem; }
}
.toc-title { color: var(--muted); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 0.28rem 0 0.28rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 0.88rem; line-height: 1.35; text-decoration: none; }
.toc li.sub a { padding-left: 1.7rem; font-size: 0.84rem; }
.toc li a:hover { color: var(--text); }
.toc li a.active { color: var(--text); border-left-color: var(--accent); }

.post-foot { padding-top: 1rem; padding-bottom: 1rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.share-label { color: var(--muted); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.share a, .share-copy { color: var(--text-2); font: 700 0.95rem var(--font); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.share a:hover, .share-copy:hover { color: var(--accent); }
.post-foot .chips { margin-bottom: 1.6rem; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex: none; }
.author-name { color: var(--text); font-weight: 800; margin: 0 0 0.2rem; }
.author-bio { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.95rem; }
.author-links { margin: 0; font-weight: 700; font-size: 0.92rem; }
.author-links a { text-decoration: none; }

/* Archiv, Themen, Autor */
.page-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 850; letter-spacing: -0.035em; margin: 0 0 1rem; }
.archive { list-style: none; margin: 2rem 0 0; padding: 0; }
.archive .year { color: var(--accent); font-weight: 850; font-size: 1.05rem; margin: 2.2rem 0 0.6rem; }
.archive .year:first-child { margin-top: 0; }
.row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.row-date { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.row-title { color: var(--text); font-weight: 700; text-decoration: none; }
.row-title:hover { color: var(--accent); }
.row-tag { color: var(--muted); font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.row-tag:hover { color: var(--text); }
.taglist { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.taglist li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.taglist li:hover { border-color: rgba(63, 180, 255, 0.4); }
.taglist a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.2rem; text-decoration: none; }
.taglist-name { color: var(--text); font-weight: 800; }
.taglist-count { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.taglist p { margin: -0.6rem 1.2rem 1rem; color: var(--muted); font-size: 0.9rem; }
.author-head { display: flex; gap: 1.8rem; align-items: center; }
.author-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex: none; }

/* Twitch */
.hero-twitch .kicker { display: inline-flex; align-items: center; gap: 0.5rem; }
.live-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 2.2rem 0 1rem; padding: 0; max-width: 52rem; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.facts b { display: block; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; }
.facts span { color: var(--text); font-weight: 700; }
.note { color: var(--muted); font-size: 0.88rem; max-width: 40rem; margin: 0 0 1rem; }
.twitch-more { padding-bottom: 1rem; }
.twitch-more .post-body { margin: 0; max-width: 40rem; }
.twitch-more .post-body h2 { margin-top: 1.5rem; font-size: 1.3rem; }

/* Seitenzahlen */
.pagination { display: flex; justify-content: space-between; align-items: center; margin: 2.5rem 0 1rem; color: var(--muted); font-size: 0.92rem; }
.pagination a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* Fuß */
.site-foot { margin-top: 4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem 1.5rem; padding-top: 1.75rem; padding-bottom: 2.5rem; }
.foot-left { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.foot-left ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.family { display: flex; gap: 1.25rem; }
.family a { font-weight: 650; }
.family a.on { color: var(--text); }
.family .cursor { width: 0.38em; height: 0.85em; vertical-align: -0.1em; }

/* Status-Widget: eigene Abstände des Widgets im neuen Layout aufheben */
.block .s3nf-home-status { max-width: none; margin: 0; padding: 0; }
.block .s3nf-home-status .s3nf-status { margin: 0; }

/* Ghost-Karten (Pflicht für Bild-Breiten im Editor) */
.kg-width-wide { position: relative; width: min(var(--max), 92vw); max-width: none; left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; max-width: none; left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0 !important; }
.kg-card { margin-bottom: 1.6em; }
.kg-bookmark-card a.kg-bookmark-container { color: var(--text-2); background: var(--card); border-color: var(--line); }
.kg-callout-card { border-radius: 10px; }

/* Schmale Bildschirme */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-link { grid-template-columns: 1fr; }
  .lead-img { min-height: 0; aspect-ratio: 16 / 10; }
  .lead-img img { position: static; }
  .lead-body { padding: 1.5rem 1.5rem 1.7rem; }
}
@media (max-width: 760px) {
  .burger { display: inline-flex; }
  .head-inner { flex-wrap: wrap; gap: 0 1rem; }
  .head-nav { order: 3; flex-basis: 100%; display: none; padding: 0.5rem 0 1rem; }
  .head-nav.open { display: block; }
  .head-nav ul { flex-direction: column; gap: 0.2rem; }
  .head-nav a { display: block; padding: 0.55rem 0; font-size: 1.05rem; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .row { grid-template-columns: 1fr; gap: 0.15rem; }
  .taglist, .facts { grid-template-columns: 1fr; }
  .author-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .wrap, .wrap-read, .post-layout { padding-left: 1.1rem; padding-right: 1.1rem; }
  .post-body { font-size: 1.05rem; }
}

/* Tag-Netzwerk (aus dem alten Theme übernommen, Wunsch Nutzer 2026-11-04) */
.tag-graph { padding-top: 0.5rem; }
.s3nf-tagcloud { display: none; }
.s3nf-graph-wrap { margin: 0 0 1rem; }
.s3nf-graph { display: block; width: 100%; height: 540px; border-radius: var(--radius); background: radial-gradient(circle at 50% 42%, #151a22, #0d1015); border: 1px solid var(--line); cursor: grab; touch-action: none; }
.s3nf-graph:active { cursor: grabbing; }
.s3nf-graph-hint { margin: 0.7rem 0 0; text-align: center; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 760px) { .s3nf-graph { height: 420px; } }
