/* andre.fm / alpar.de/andre — statisches Blog-Archiv
   Schlankes Stylesheet nach dem omreport-Muster (gleiche Farbwelt, kein JS). */

:root {
  --navy: #001d3d;
  --navy-soft: #0a2e57;
  --link: #0066cc;
  --link-hover: #096095;
  --accent: #ff4b33;
  --text: #1f2933;
  --text-muted: #555c66;
  --meta: #8892a0;
  --surface: #f5f8fc;
  --surface-alt: #ebeef3;
  --border: #d8dde5;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 29, 61, 0.08);
  --radius: 8px;
  --max-width: 1100px;
  --narrow-width: 760px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--surface);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: var(--narrow-width); }
.muted { color: var(--text-muted); font-weight: 400; }

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white); border-bottom: 4px solid var(--accent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; flex-wrap: wrap; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--white); text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: var(--white); font-weight: 900; font-size: 1rem;
}
.site-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: var(--white); font-weight: 600; font-size: 0.95rem; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); border-bottom-color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Hero + Intro */
.hero { background: var(--navy-soft); color: var(--white); padding: 48px 0 52px; text-align: center; }
.hero h1 { color: var(--white); margin: 0 0 8px; font-size: clamp(2rem, 5vw, 2.8rem); }
.hero .tagline { margin: 0 auto; max-width: 720px; font-size: 1.1rem; color: rgba(255,255,255,0.85); }
.intro { padding: 36px 0 0; }
.intro p { font-size: 1.15rem; color: var(--text-muted); margin: 0 0 0.6em; }

/* Listen */
.archive { padding: 36px 0 72px; }
.section-title { margin-bottom: 20px; }
.year { margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--border); color: var(--navy); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  display: grid; grid-template-columns: 6.2em 1fr; gap: 4px 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.post-list time { color: var(--meta); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.post-list .post-title { font-weight: 600; font-size: 1.02rem; }
.post-list .post-meta { grid-column: 2; font-size: 0.85rem; color: var(--meta); display: flex; gap: 10px; flex-wrap: wrap; }
.cat { color: var(--text-muted); background: var(--surface-alt); padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; }
.cat:hover { text-decoration: none; background: var(--border); }
.cc { color: var(--meta); }
.cat-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.cat-list li { padding: 6px 0; border-bottom: 1px solid var(--border); break-inside: avoid; font-size: 1.05rem; }
@media (max-width: 560px) {
  .post-list li { grid-template-columns: 1fr; }
  .post-list .post-meta { grid-column: 1; }
  .cat-list { columns: 1; }
}

/* Einzelseite */
.post-page { padding: 32px 0 72px; }
.breadcrumb { font-size: 0.9rem; color: var(--meta); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-header { margin-bottom: 24px; }
.post-header .post-meta { color: var(--meta); font-size: 0.92rem; margin: 0 0 8px; }
.entry-body { font-size: 1.05rem; }
.entry-body p, .entry-body ul, .entry-body ol, .entry-body blockquote, .entry-body figure, .entry-body table { margin: 0 0 1.2em; }
.entry-body h2, .entry-body h3 { margin-top: 1.6em; }
.entry-body img { border-radius: 4px; }
.entry-body figure { margin-left: 0; margin-right: 0; }
.entry-body figure.alignright, .entry-body img.alignright { float: right; margin: 4px 0 12px 18px; max-width: 45%; }
.entry-body figure.alignleft, .entry-body img.alignleft { float: left; margin: 4px 18px 12px 0; max-width: 45%; }
.entry-body figure.aligncenter, .entry-body img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-body figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.entry-body blockquote { border-left: 4px solid var(--border); margin-left: 0; padding: 4px 18px; color: var(--text-muted); }
.entry-body pre { background: var(--navy); color: #e6edf3; padding: 12px 14px; border-radius: var(--radius); overflow-x: auto; font-family: var(--font-mono); font-size: 0.85rem; }
.entry-body code { font-family: var(--font-mono); font-size: 0.9em; }
.entry-body table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.entry-body td, .entry-body th { border: 1px solid var(--border); padding: 6px 8px; vertical-align: top; }
.entry-body iframe { max-width: 100%; }
.video-embed { margin: 1.5em 0; padding: 0; }
.video-frame { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-gone { color: var(--text-muted); font-size: 0.95rem; }
.entry-body::after { content: ""; display: table; clear: both; }
.tags { margin: 24px 0 0; font-size: 0.9rem; }
.tag { display: inline-block; background: var(--surface-alt); padding: 1px 8px; border-radius: 999px; margin: 0 4px 4px 0; font-size: 0.82rem; }

/* Kommentar-Archiv */
.comments { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--border); }
.comments-note { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { padding: 14px 16px; margin: 0 0 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.comment.reply { margin-left: 28px; }
.comment.by-author { border-left: 4px solid var(--accent); }
.comment-head { margin: 0 0 6px; font-size: 0.92rem; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.comment-head strong { color: var(--navy); }
.badge { background: var(--accent); color: var(--white); font-size: 0.7rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.comment-url { font-family: var(--font-mono); font-size: 0.78rem; color: var(--meta); word-break: break-all; }
.comment-head time { margin-left: auto; color: var(--meta); font-size: 0.85rem; }
.comment-body { font-size: 0.97rem; }
.comment-body p { margin: 0 0 0.7em; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-body blockquote { border-left: 3px solid var(--border); margin: 0.5em 0; padding: 2px 12px; color: var(--text-muted); }
@media (max-width: 560px) { .comment.reply { margin-left: 12px; } .comment-head time { margin-left: 0; } }

/* Navigation zwischen Beitraegen */
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.92rem; }
.post-nav a { max-width: 48%; }
.nav-next { margin-left: auto; text-align: right; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-alt); padding: 28px 0 32px; font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.site-footer p { margin: 0 0 6px; }
.footer-note { font-size: 0.8rem; color: var(--meta); }
