
:root {
  --c-bg: #14141a;
  --c-surface: #1d1f29;
  --c-surface-alt: #2b2c36;
  --c-border: #464750;
  --c-text: #f1f2f6;
  --c-text-secondary: #919194;
  --c-text-muted: #787e90;
  --c-accent: #f3cf3e;
  --c-accent-alt: #c7aa33;
  --c-on-accent: #0f172a;
  --c-on-surface: #f1f2f6;
  --c-on-bg: #f1f2f6;
  --c-danger: #e74c3c;
  --c-success: #4db84d;
  --c-warn: #e9a23e;

  --font-body: Inter, system-ui, -apple-system, sans-serif;
  --font-heading: Inter, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-size-base: 15px;
  --font-weight-heading: 700;

  --card-radius: 4px;
  --button-radius: 3px;
  --card-border: 1px solid #373a48;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.35);
  --avatar-radius: 50%;

  --pad-y: 12px;
  --pad-x: 18px;

  --content-max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.55;
  font-size: var(--font-size-base);
}
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.p-pageWrapper { max-width: var(--content-max); margin: 0 auto; padding: 0 16px; }

/* ─── Header / Nav ─── */
.p-header { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 12px 0; }
.p-header-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; max-width: var(--content-max); margin: 0 auto; padding: 0 16px; }
.p-header-logo strong { font-size: 22px; font-family: var(--font-heading); color: var(--c-accent); font-weight: var(--font-weight-heading); }
.p-header-logo-tagline { color: var(--c-text-muted); font-size: 13px; margin-left: 8px; }
.p-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.p-nav-list a { font-weight: 500; color: var(--c-text); }
.p-header-search { margin-left: auto; }
.p-header-search input { padding: 6px 10px; border: 1px solid var(--c-border); border-radius: var(--button-radius); background: var(--c-bg); color: var(--c-text); }
.p-header-account .button { display: inline-block; padding: 6px 12px; border: 1px solid var(--c-border); border-radius: var(--button-radius); background: var(--c-surface); color: var(--c-text); margin-left: 6px; }
.p-header-account .button--primary { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); }

/* ─── Breadcrumbs ─── */
.p-breadcrumbs { list-style: none; padding: 8px 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--c-text-muted); }
.p-breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--c-border); }

/* ─── Body grid ─── */
.p-body-main { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 16px 0 32px; }
@media (max-width: 900px) { .p-body-main { grid-template-columns: 1fr; } }

/* ─── Title ─── */
.p-title { padding: var(--pad-y) var(--pad-x); background: var(--c-surface); border: var(--card-border); border-radius: var(--card-radius); }
.p-title-value { margin: 0; font-family: var(--font-heading); font-size: 24px; line-height: 1.3; font-weight: var(--font-weight-heading); color: var(--c-text); }

/* ─── Block / card ─── */
.block { background: var(--c-surface); border: var(--card-border); margin-top: 16px; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--card-shadow); }
.block-header { padding: 10px 16px; background: var(--c-surface-alt); border-bottom: 1px solid var(--c-border); font-weight: 600; font-family: var(--font-heading); }
.block-body { padding: var(--pad-y) var(--pad-x); }

/* ─── Forum index (node-list) ─── */
.node-list { list-style: none; padding: 0; margin: 0; }
.node--forum { padding: 12px 16px; border-bottom: 1px solid var(--c-border); }
.node-title a { font-weight: 600; font-size: 16px; color: var(--c-accent); }
.node-description { color: var(--c-text-muted); font-size: 13px; margin-top: 4px; }
.node-meta { display: flex; gap: 16px; font-size: 12px; color: var(--c-text-muted); margin-top: 6px; }

/* ─── Thread listing ─── */
.structItem { display: grid; grid-template-columns: 1fr 100px 160px; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--c-border); align-items: center; }
.structItem-title a { font-weight: 600; color: var(--c-accent); }
.structItem-minor { color: var(--c-text-muted); font-size: 12px; margin-top: 4px; }
.structItem-parts { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.structItem-parts li::after { content: "·"; margin-left: 8px; color: var(--c-border); }
.structItem-parts li:last-child::after { content: ""; }

/* ─── Post block ─── */
.message { background: var(--c-surface); border: var(--card-border); margin-top: 12px; border-radius: var(--card-radius); overflow: hidden; }
.message--op { border-color: var(--c-accent); }
.message-inner { display: grid; grid-template-columns: 200px 1fr; }
@media (max-width: 720px) { .message-inner { grid-template-columns: 1fr; } }
.message-cell--user { background: var(--c-surface-alt); padding: 16px; border-right: 1px solid var(--c-border); }
.message-cell--main { padding: var(--pad-y) var(--pad-x); }
.message-name a { font-weight: 600; font-size: 15px; color: var(--c-accent); }
.userTitle { color: var(--c-text-muted); font-size: 12px; margin: 2px 0 8px; font-weight: normal; }
.message-userExtras dl { display: flex; gap: 6px; font-size: 12px; color: var(--c-text-muted); margin: 2px 0; }
.message-userExtras dt { font-weight: 600; }
.message-userExtras dd { margin: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--c-accent); color: var(--c-on-accent); border-radius: var(--avatar-radius); }
.avatar img { display: block; width: 100%; height: 100%; border-radius: var(--avatar-radius); object-fit: cover; }
.avatar--m { width: 48px; height: 48px; font-weight: 700; font-size: 22px; }
.avatar--xxl { width: 96px; height: 96px; font-weight: 700; font-size: 40px; }
.avatar-initial { line-height: 1; }
.message-attribution { color: var(--c-text-muted); font-size: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--c-border); display: flex; justify-content: space-between; }
.message-attribution-main, .message-attribution-opposite { list-style: none; padding: 0; margin: 0; }
.message-permalink time { color: var(--c-text-muted); }
.bbWrapper { line-height: 1.65; }
.bbWrapper p { margin: 0 0 1em; }
.bbWrapper table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; }
.bbWrapper th, .bbWrapper td { border: 1px solid var(--c-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.bbWrapper th { background: var(--c-surface-alt); font-weight: 600; }
.bbWrapper a { color: var(--c-accent); }

/* ─── CTAs ─── */
.forum-reply-cta { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-border); }
.forum-cta-inline { display: inline-block; padding: 8px 14px; background: var(--c-success); color: #fff; border-radius: var(--button-radius); font-weight: 600; }
.forum-cta-inline:hover { filter: brightness(0.92); text-decoration: none; }

.actionBar { display: flex; gap: 12px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--c-border); font-size: 12px; color: var(--c-text-muted); justify-content: space-between; }
.actionBar-action { color: var(--c-text-muted); }

/* ─── Sidebar ─── */
.block--sidebar { background: var(--c-surface); }
.sidebar-operators { list-style: none; padding: 0; margin: 0; }
.sidebar-operator { padding: 10px; border-bottom: 1px solid var(--c-border); }
.sidebar-operator-link { display: flex; gap: 10px; align-items: center; }
.sidebar-operator-rank { font-weight: 700; color: var(--c-accent); width: 24px; }
.sidebar-operator-name { font-weight: 600; color: var(--c-text); }
.sidebar-operator-badge { display: block; font-size: 11px; color: var(--c-text-muted); }
.sidebar-operator-bonus { display: block; font-size: 12px; }
.sidebar-disclosure { font-size: 11px; color: var(--c-text-muted); margin: 8px 12px; }

.block--rg { background: var(--c-surface-alt); }
.rg-age { font-weight: 700; margin-top: 8px; color: var(--c-text); }

/* ─── Footer ─── */
.p-footer { background: var(--c-surface); border-top: 1px solid var(--c-border); padding: 24px 0; margin-top: 32px; font-size: 13px; color: var(--c-text-muted); }
.p-footer-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 16px; }
.p-footer-rg { background: var(--c-surface-alt); padding: 12px 16px; border-radius: var(--card-radius); color: var(--c-text); margin-bottom: 12px; }
.p-footer-affiliate { padding: 8px 0; font-size: 12px; }
.p-footer-links { padding: 8px 0; }
.p-footer-links a { color: var(--c-text-muted); }
.p-footer-copy { padding: 8px 0; font-size: 12px; }

/* ─── Member profile ─── */
.memberHeader { display: flex; gap: 24px; padding: 24px; background: var(--c-surface); border: var(--card-border); border-radius: var(--card-radius); }
.memberHeader-stats { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 24px; flex-wrap: wrap; }
.memberHeader-stats dl { display: flex; gap: 6px; font-size: 13px; }
.memberHeader-stats dt { color: var(--c-text-muted); font-weight: normal; }
.memberHeader-stats dd { margin: 0; font-weight: 600; }
.memberRecentItems { list-style: none; padding: 0; margin: 0; }
.memberRecentItem { padding: 8px 0; border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; }
.memberRecentItem-date { color: var(--c-text-muted); font-size: 12px; }

/* ─── About / author page ─── */
.about-page { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 32px; background: var(--c-surface); border: var(--card-border); border-radius: var(--card-radius); }
@media (max-width: 720px) { .about-page { grid-template-columns: 1fr; } }
.about-headshot img { width: 100%; height: auto; aspect-ratio: 1/1; border-radius: var(--avatar-radius); object-fit: cover; }
.about-headshot-fallback { width: 100%; aspect-ratio: 1/1; border-radius: var(--avatar-radius); background: var(--c-accent); color: var(--c-on-accent); display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 700; font-family: var(--font-heading); }
.about-name { font-family: var(--font-heading); font-size: 32px; font-weight: var(--font-weight-heading); margin: 0 0 4px; color: var(--c-text); }
.about-role { color: var(--c-text-secondary); font-size: 16px; margin-bottom: 16px; }
.about-credentials { list-style: none; padding: 0; margin: 16px 0; }
.about-credentials li { padding: 6px 0; padding-left: 20px; position: relative; color: var(--c-text-secondary); font-size: 14px; }
.about-credentials li::before { content: "✓"; position: absolute; left: 0; color: var(--c-success); font-weight: 700; }
.about-bio { font-size: 16px; line-height: 1.7; }
.about-bio p { margin: 0 0 1em; }
.about-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.about-tag { display: inline-block; padding: 4px 10px; background: var(--c-surface-alt); border: 1px solid var(--c-border); border-radius: 999px; font-size: 12px; color: var(--c-text-secondary); }

.tagItem { display: inline-block; padding: 2px 8px; background: var(--c-surface-alt); border-radius: 12px; font-size: 11px; margin-right: 4px; color: var(--c-text-secondary); }

/* ─── Hero background (top-of-page matchday photo, fades into surface) ─── */
body {
  background-color: var(--c-bg);
  background-image:
    linear-gradient(180deg, rgba(20,20,26,0.12) 0%, rgba(20,20,26,0.32) 28%, rgba(20,20,26,0.72) 62%, var(--c-bg) 92%, var(--c-bg) 100%),
    url("/assets/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: 100% 780px, 100% 780px;
  background-position: top center, top center;
  background-attachment: scroll, scroll;
}
@media (max-width: 720px) {
  body { background-size: 100% 480px, cover; }
}

/* Header sits over the hero with subtle dark veil */
.p-header { background: rgba(20,20,26,0.62); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.p-header-logo strong { color: var(--c-accent); text-shadow: 0 2px 12px rgba(0,0,0,0.55); }
.p-header-logo-tagline { color: rgba(255,255,255,0.78); }
.p-nav-list a { color: rgba(255,255,255,0.86); }
.p-nav-list a:hover { color: var(--c-accent-alt); }
.p-header-search input { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.18); color: #f1f2f6; }
.p-header-account .button { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #f1f2f6; }
.p-header-account .button--primary { background: var(--c-accent); border-color: var(--c-accent); color: #ffffff; }

/* Page wrapper — small inset so the hero shows around content cards on top */
.p-pageWrapper { padding-top: 4px; }

/* First card on every page gets a brighter title with gold accent */
.p-title { background: var(--c-surface); border-left: 3px solid var(--c-accent-alt); }
.p-title-value { color: var(--c-text); }
.p-title-pageDesc { color: var(--c-text-secondary); margin: 4px 0 0; font-size: 14px; }

/* Pinned thread row — gold-tinted left border + soft highlight */
.structItem.structItem--pinned { background: linear-gradient(90deg, rgba(243,207,62,0.10) 0%, transparent 50%); border-left: 3px solid var(--c-accent-alt); }
.structItem.structItem--pinned .structItem-title a::before { content: "📌 "; }

/* Sidebar widgets — dark surface with gold heading */
.block--sidebar .block-header h3 { color: var(--c-accent-alt); }
.sidebar-operators { list-style: none; padding: 0; margin: 0; }
.sidebar-operator { border-bottom: 1px solid var(--c-border); }
.sidebar-operator:last-child { border-bottom: none; }
.sidebar-operator-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--c-text); }
.sidebar-operator-link:hover { background: var(--c-surface-alt); text-decoration: none; }
.sidebar-operator-rank { font-weight: 700; color: var(--c-accent-alt); font-family: var(--font-heading); width: 18px; }
.sidebar-operator-name { font-weight: 600; flex: 1; }
.sidebar-operator-badge { font-size: 11px; padding: 2px 8px; background: rgba(220,61,74,0.18); color: var(--c-accent); border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.sidebar-disclosure { padding: 8px 12px; color: var(--c-text-muted); font-size: 11px; border-top: 1px solid var(--c-border); margin: 0; }
.block--rg .block-body { color: var(--c-text-secondary); font-size: 13px; padding: 12px; }
.block--rg a { color: var(--c-accent-alt); }
.rg-age { color: var(--c-text-muted); font-size: 12px; margin-top: 4px; }

/* Footer — DFB-flag colored thin top accent */
.p-footer { background: var(--c-surface); border-top: 3px solid var(--c-accent); padding: 22px 16px 28px; margin-top: 32px; }
.p-footer-inner { max-width: var(--content-max); margin: 0 auto; color: var(--c-text-secondary); }
.p-footer-rg { font-size: 13px; margin-bottom: 6px; }
.p-footer-rg strong { color: var(--c-accent-alt); }
.p-footer-affiliate { font-size: 12px; color: var(--c-text-muted); margin-bottom: 10px; }
.p-footer-links { font-size: 12px; }
.p-footer-links a { color: var(--c-text-secondary); margin-right: 6px; }
.p-footer-copy { font-size: 11px; color: var(--c-text-muted); margin-top: 10px; }

/* Avatar fallback (initial) — gold ring on dark */
.avatar { background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-alt) 100%); color: #14141a; box-shadow: 0 0 0 1px rgba(0,0,0,0.4); }
.avatar img { box-shadow: 0 0 0 1px var(--c-border); }

/* Node card — category page child blocks */
.node--forum:hover { background: rgba(255,255,255,0.025); }

/* Message body — comfortable contrast on dark */
.message-body, .bbWrapper { color: var(--c-text); }
.bbWrapper table th { background: var(--c-surface-alt); color: var(--c-text-secondary); }
.bbWrapper a { color: var(--c-accent-alt); }
.bbWrapper a:hover { color: var(--c-accent); }

/* ─── Aktuelle Diskussionen / latest activity block ─────────── */
.block--latest .block-header h2 { margin: 0; font-size: 16px; color: var(--c-accent-alt); font-family: var(--font-heading); }
.latest-thread-list { list-style: none; margin: 0; padding: 0; }
.latest-thread { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--c-border); align-items: center; transition: background 0.12s ease; }
.latest-thread:hover { background: rgba(255,255,255,0.02); }
.latest-thread:last-child { border-bottom: none; }
.latest-thread--pinned { background: linear-gradient(90deg, rgba(243,207,62,0.08) 0%, transparent 60%); border-left: 3px solid var(--c-accent-alt); padding-left: 13px; }
.latest-thread--pinned .latest-thread-title::before { content: "📌 "; }
.latest-thread-title { display: block; font-weight: 600; color: var(--c-text); font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.latest-thread-title:hover { color: var(--c-accent); text-decoration: none; }
.latest-thread-meta { font-size: 12px; color: var(--c-text-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.latest-thread-meta a { color: var(--c-text-secondary); }
.latest-thread-meta a:hover { color: var(--c-accent-alt); text-decoration: none; }
.latest-thread-forum { font-weight: 600; }
.latest-thread-sep { color: var(--c-border); }
.latest-thread-replier { color: var(--c-text-muted); }
.latest-thread-stats { display: flex; gap: 10px; font-size: 12px; color: var(--c-text-muted); white-space: nowrap; text-align: right; }
.latest-stat { display: inline-block; }
.latest-stat--views { color: var(--c-text-muted); opacity: 0.8; }
@media (max-width: 720px) {
  .latest-thread { grid-template-columns: 1fr; }
  .latest-thread-stats { justify-content: flex-start; }
}
