
*,*::before,*::after { box-sizing: border-box; }
:root {
  /* Original Team-Andro brand */
  --navy:        #001D3E;       /* page bg, header */
  --navy-2:      #002A5C;       /* sidebar */
  --navy-3:      #003a7a;       /* hover bg in nav */
  --navy-4:      #0a4180;       /* active item */
  --navy-line:   #0d2e57;       /* dark borders */
  --paper:       #f4f1ea;       /* list-pane bg (warm off-white) */
  --paper-2:     #ebe5d8;       /* hover on paper */
  --paper-line:  #d6cfbf;       /* paper borders */
  --white:       #ffffff;       /* detail-pane bg */
  --ink:         #161514;       /* main text */
  --ink-2:       #4a4641;       /* secondary text */
  --ink-3:       #7a746a;       /* muted text */
  --rule:        #e0d9c8;       /* dividers on paper */
  --rule-white:  #e9e4d6;       /* dividers in white */

  --red:         #cc0000;       /* TA red accent */
  --red-dark:    #B20A15;       /* hover red */
  --red-bg:      rgba(204,0,0,0.08);
  --gold:        #c9a227;       /* yellow CTAs */
  --gold-soft:   #f6d854;
  --green:       #2c8b3a;       /* full coverage */
  --amber:       #d68c1a;       /* partial coverage */
}

html, body { margin:0; height:100%; overflow:hidden; background: var(--navy); color: var(--ink);
  font: 12.5px/1.55 Verdana, Geneva, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.serif { font-family: 'Georgia', 'Cambria', serif; }
.mono  { font-family: 'Consolas', 'Menlo', 'Liberation Mono', monospace; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
::selection { background: var(--gold-soft); color: var(--ink); }

/* ============================================================
   3-PANE WORKSPACE (desktop default — mobile overrides at end of file)
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: 244px 380px 1fr;
  height: 100vh;
  max-width: 1840px;
  margin: 0 auto;
  background: var(--navy);
}

/* Mobile top-bar (hidden on desktop) */
.mobile-bar {
  display: none;
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, #002a5c 0%, #001d3e 100%);
  color: #fff;
  padding: 10px 14px;
  align-items: center; gap: 12px;
  border-bottom: 2px solid var(--red);
}
.mobile-bar .ham {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  width: 40px; height: 40px; border-radius: 4px;
  display: grid; place-items: center; padding: 0;
}
.mobile-bar .ham svg { width: 20px; height: 20px; }
.mobile-bar .brand-mob {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
}
.mobile-bar .brand-mob .mark {
  width: 30px; height: 30px;
  background: radial-gradient(circle at 30% 25%, #e8edf4 0%, #b9c2d2 30%, #6f7d92 70%, #2a3447 100%);
  border-radius: 4px;
  display: grid; place-items: center;
  font-family: 'Georgia', serif; font-weight: 700; font-style: italic;
  font-size: 13px; color: var(--navy);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3);
}
.mobile-bar .brand-mob .name {
  font-family: 'Georgia', serif; font-weight: 700;
  font-size: 14.5px; color: #fff;
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobile-bar .brand-mob .name span { color: var(--red); }
.mobile-bar .brand-mob .name em { color: #c9a227; font-style: normal; }
.mobile-bar .search-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  width: 40px; height: 40px; border-radius: 4px;
  display: grid; place-items: center; color: #fff; padding: 0;
}
.mobile-bar .search-btn svg { width: 17px; height: 17px; }

/* Mobile tabs (hidden on desktop) */
.mobile-tabs {
  display: none;
  position: sticky; top: 60px; z-index: 25;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  padding: 0;
}
.mobile-tabs > a {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 11.5px; font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
}
.mobile-tabs > a.active {
  color: var(--red);
  border-bottom-color: var(--red);
  background: #fff;
}

/* Drawer overlay */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }

/* (Mobile responsive overrides moved to bottom of CSS to ensure they win.) */

/* ============================================================
   SIDEBAR (left, navy)
   ============================================================ */
aside.sidebar {
  background: var(--navy-2);
  border-right: 1px solid var(--navy-line);
  display: flex; flex-direction: column;
  color: #d4ddec;
  overflow: hidden;
}

.brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--navy-line);
  background: linear-gradient(180deg, #002a5c 0%, #001d3e 100%);
  display: flex; align-items: center; gap: 11px;
  position: relative;
}
.brand::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 30%, var(--gold) 50%, var(--red) 70%, transparent 100%);
  opacity: 0.7;
}
.brand-mark {
  width: 38px; height: 38px;
  background: radial-gradient(circle at 30% 25%, #e8edf4 0%, #b9c2d2 30%, #6f7d92 70%, #2a3447 100%);
  border-radius: 4px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: 'Georgia', serif; font-weight: 700; font-style: italic;
  font-size: 17px; color: var(--navy);
  letter-spacing: -0.02em;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.brand-name {
  flex: 1; line-height: 1.1;
  display: flex; flex-direction: column;
}
.brand-name .top {
  font-family: 'Georgia', serif; font-weight: 700;
  font-size: 14.5px; letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.brand-name .top span { color: var(--red); }
.brand-name .top em { color: #c9a227; font-style: normal; }
.brand-name .sub {
  font-size: 9.5px; color: #8aa1c0; margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.sidebar-nav {
  flex: 1; overflow-y: auto;
  padding: 10px 0 30px;
  scrollbar-width: thin;
  scrollbar-color: #1a3868 transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #1a3868; border-radius: 3px; }

.nav-group { margin: 0 0 14px; }
.nav-group h4 {
  margin: 0 0 4px;
  padding: 10px 16px 4px;
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: #6a85ab;
  font-weight: 700;
}

.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 16px;
  color: #c8d2e4;
  font-size: 12px;
  border-left: 2px solid transparent;
  transition: all .12s;
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: var(--navy-3); color: #fff; border-left-color: var(--gold); }
.nav-item.active {
  background: var(--navy-4); color: #fff;
  border-left-color: var(--red);
  font-weight: 700;
}
.nav-item .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .ct {
  font-size: 10.5px; color: #8aa1c0;
  background: rgba(255,255,255,0.04);
  padding: 1px 6px; border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.nav-item.active .ct { background: rgba(255,255,255,0.12); color: #e6ebf3; }
.nav-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff6464;
  flex-shrink: 0;
}

.sub-nav { padding-left: 20px; }
.sub-nav .nav-item { font-size: 11.5px; color: #a8b6cd; padding: 3px 16px 3px 24px; }

.sidebar-foot {
  border-top: 1px solid var(--navy-line);
  padding: 12px 16px;
  font-size: 10.5px; color: #6a85ab;
  display: flex; justify-content: space-between; align-items: center;
}
.sidebar-foot a { color: #c8d2e4; }
.sidebar-foot a:hover { color: var(--gold); }

/* ============================================================
   LIST PANE (middle, paper)
   ============================================================ */
.listpane {
  background: var(--paper);
  border-right: 1px solid var(--paper-line);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.listpane-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--paper-line);
  background: linear-gradient(180deg, #f9f6ee 0%, #f4f1ea 100%);
  position: relative;
}
.listpane-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
  opacity: 0.4;
}

.listpane-title {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 8px;
}
.listpane-title h2 {
  margin: 0; font-family: 'Georgia', serif; font-size: 18px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em;
}
.listpane-title .ct {
  font-size: 10.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.search-box {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: 4px; padding: 7px 10px;
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within {
  border-color: var(--red); box-shadow: 0 0 0 2px rgba(204,0,0,0.1);
}
.search-box svg { width: 13px; height: 13px; color: var(--ink-3); flex-shrink: 0; }
.search-box input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 12px; color: var(--ink);
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box .kbd {
  font-family: 'Consolas', monospace;
  font-size: 9.5px; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--paper-line);
  padding: 1px 5px; border-radius: 3px;
}

.filter-chips {
  display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px;
}
.filter-chips a {
  font-size: 10.5px; padding: 3px 9px;
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--paper-line);
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: all .12s;
}
.filter-chips a:hover { background: #fff; color: var(--navy); border-color: var(--ink-3); }
.filter-chips a.on {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.filter-chips a.on .ct { color: var(--gold-soft); }
.filter-chips a .ct { font-weight: 400; opacity: 0.7; margin-left: 4px; }

.listpane-items {
  flex: 1; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-line) transparent;
}
.listpane-items::-webkit-scrollbar { width: 8px; }
.listpane-items::-webkit-scrollbar-thumb { background: var(--paper-line); border-radius: 4px; }

.list-item {
  display: block; padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer; transition: background .1s;
  position: relative;
}
.list-item:hover { background: var(--paper-2); }
.list-item.active { background: #fff; }
.list-item.active::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red);
}

.list-item .meta-line {
  display: flex; gap: 6px; align-items: center;
  font-size: 10px; color: var(--ink-3); margin-bottom: 4px;
  font-family: 'Consolas', monospace;
}
.list-item .kind {
  background: var(--navy); color: #fff;
  padding: 1px 5px; border-radius: 2px;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 700;
}
.list-item .kind.article { background: var(--red); }
.list-item .stat { margin-left: auto; }

.list-item h3 {
  margin: 0 0 4px;
  font-family: 'Georgia', serif; font-weight: 700; font-size: 13.5px;
  line-height: 1.3; color: var(--navy);
  letter-spacing: -0.005em;
}
.list-item:hover h3 { color: var(--red); }
.list-item .ex {
  font-size: 11.5px; color: var(--ink-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}
.list-item .foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; color: var(--ink-3);
  font-family: 'Consolas', monospace;
}
.list-item .foot .author b { color: var(--ink); font-weight: 700; }

.cov {
  display: inline-flex; gap: 4px; align-items: center;
}
.cov .bar {
  width: 32px; height: 4px;
  background: var(--paper-line);
  border-radius: 2px; overflow: hidden;
}
.cov .bar > span {
  display: block; height: 100%; background: var(--green);
}
.cov.partial .bar > span { background: var(--amber); }
.cov.poor .bar > span { background: var(--red); }

.listpane-foot {
  border-top: 1px solid var(--paper-line);
  background: #f9f6ee;
  padding: 8px 16px;
  text-align: center;
  font-size: 10.5px; color: var(--ink-3);
  font-family: 'Consolas', monospace;
}
.listpane-foot a { color: var(--navy); border-bottom: 1px dotted var(--ink-3); }
.listpane-foot a:hover { color: var(--red); border-bottom-color: var(--red); }

/* ============================================================
   DETAIL PANE (right, white)
   ============================================================ */
main.detail {
  background: var(--white);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.detail-head {
  padding: 18px 28px 14px;
  border-bottom: 1px solid var(--rule-white);
  background: #fff;
  display: flex; gap: 18px; align-items: flex-start;
}
.detail-head .info { flex: 1; min-width: 0; }
.breadcrumb {
  font-family: 'Consolas', monospace; font-size: 10.5px;
  color: var(--ink-3); margin-bottom: 7px;
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--red); border-bottom: 1px dotted var(--red); }
.breadcrumb .sep { margin: 0 5px; opacity: 0.5; }

.detail-head h1 {
  margin: 0 0 9px;
  font-family: 'Georgia', serif; font-weight: 700;
  font-size: 24px; line-height: 1.18; color: var(--navy);
  letter-spacing: -0.01em;
}
.detail-head .badges {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: 'Consolas', monospace; font-size: 11px;
}
.detail-head .badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--paper); padding: 3px 9px; border-radius: 3px;
  color: var(--ink-2);
  border: 1px solid var(--paper-line);
}
.detail-head .badge b { color: var(--ink); font-weight: 700; }
.detail-head .badge.green b { color: var(--green); }
.detail-head .badge.amber b { color: var(--amber); }
.detail-head .badge.red b { color: var(--red); }

.detail-actions {
  display: flex; gap: 6px; align-self: flex-start;
}
.detail-actions a, .detail-actions button {
  background: var(--paper); border: 1px solid var(--paper-line);
  padding: 6px 11px; border-radius: 3px; font-size: 11px;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Consolas', monospace; font-weight: 700;
}
.detail-actions a:hover, .detail-actions button:hover {
  border-color: var(--navy); color: var(--navy);
}
.detail-actions .primary {
  background: var(--red); border-color: var(--red); color: #fff;
}
.detail-actions .primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.detail-body {
  flex: 1; overflow-y: auto;
  padding: 22px 28px 60px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-white) transparent;
}
.detail-body::-webkit-scrollbar { width: 8px; }
.detail-body::-webkit-scrollbar-thumb { background: var(--rule-white); border-radius: 4px; }

/* "Verfasst" toolbar above posts */
.thread-toolbar {
  display: flex; gap: 12px; align-items: center;
  font-family: 'Consolas', monospace; font-size: 11px;
  color: var(--ink-3); margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule-white);
}
.thread-toolbar b { color: var(--ink); font-weight: 700; }
.thread-toolbar select {
  font: inherit; padding: 3px 6px; border: 1px solid var(--paper-line);
  background: var(--paper); border-radius: 3px;
}

/* Post block (forum thread style) */
.post {
  display: grid; grid-template-columns: 100px 1fr; gap: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--rule-white);
  background: linear-gradient(180deg, #fcfaf3 0%, #fff 100%);
}
.post .author-col {
  background: var(--paper);
  padding: 12px;
  border-right: 1px solid var(--rule);
  text-align: center;
}
.post .avatar {
  width: 56px; height: 56px; margin: 0 auto 6px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: 4px;
  display: grid; place-items: center;
  font-family: 'Georgia', serif; font-weight: 700; font-size: 22px;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}
.post .name {
  display: block; font-weight: 700; font-size: 11.5px;
  color: var(--navy); word-break: break-word;
  margin-bottom: 2px;
}
.post .role {
  font-size: 9.5px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post .body-col { padding: 12px 16px 14px 0; }
.post .post-meta {
  font-family: 'Consolas', monospace; font-size: 10.5px;
  color: var(--ink-3); margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 1px dotted var(--rule);
}
.post .body {
  font-family: 'Verdana', sans-serif;
  font-size: 12.5px; line-height: 1.65; color: var(--ink);
  word-wrap: break-word; overflow-wrap: break-word;
}
.post .body p { margin: 0 0 0.8em; }
.post .body p:last-child { margin-bottom: 0; }
.post .body img { max-width: 100%; height: auto; border: 1px solid var(--rule); margin: 6px 0; }
.post .body blockquote {
  background: var(--paper); border-left: 3px solid var(--red);
  padding: 8px 12px; margin: 8px 0; font-size: 12px; color: var(--ink-2);
}
.post .body a { color: var(--red); text-decoration: underline; }
.post .body a:hover { color: var(--red-dark); }

/* Article body */
.article-body {
  font-family: 'Verdana', sans-serif;
  font-size: 13.5px; line-height: 1.7; color: var(--ink);
  max-width: 740px;
}
.article-body h2 {
  font-family: 'Georgia', serif; font-weight: 700;
  font-size: 22px; line-height: 1.2; color: var(--navy);
  margin: 28px 0 12px;
  padding-bottom: 6px; border-bottom: 2px solid var(--red);
}
.article-body h3 {
  font-family: 'Georgia', serif; font-weight: 700;
  font-size: 17px; color: var(--navy); margin: 22px 0 10px;
}
.article-body h4 {
  font-family: 'Verdana', sans-serif; font-weight: 700;
  font-size: 13.5px; color: var(--ink); margin: 18px 0 8px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.article-body p { margin: 0 0 1em; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 8px 0 14px; }
.article-body li { margin: 4px 0; }
.article-body a { color: var(--red); }
.article-body a:hover { color: var(--red-dark); text-decoration: underline; }
.article-body blockquote {
  background: var(--paper); border-left: 4px solid var(--gold);
  padding: 12px 16px; margin: 14px 0; font-style: italic; color: var(--ink-2);
}
.article-body img { max-width: 100%; height: auto; border: 1px solid var(--rule); margin: 10px 0; }

/* Page markers in threads */
.page-marker {
  background: var(--paper); border: 1px dashed var(--paper-line);
  padding: 6px 14px; text-align: center;
  font-family: 'Consolas', monospace; font-size: 10.5px; color: var(--ink-3);
  margin: 10px 0;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.page-marker.gap {
  background: rgba(214,140,26,0.08); border-color: var(--amber); color: var(--amber);
}

/* ============================================================
   WELCOME (index.html only)
   ============================================================ */
.welcome {
  padding: 36px 28px 80px;
  flex: 1; overflow-y: auto;
}
.welcome-hero {
  border: 1px solid var(--rule-white);
  border-top: 4px solid var(--red);
  background: linear-gradient(180deg, #fcfaf3 0%, #fff 100%);
  padding: 32px 36px;
  margin-bottom: 28px;
}
.welcome-hero .super {
  font-family: 'Consolas', monospace; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--red); margin-bottom: 8px;
}
.welcome-hero h1 {
  font-family: 'Georgia', serif; font-weight: 700;
  font-size: 34px; line-height: 1.1;
  color: var(--navy); margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.welcome-hero h1 em { color: var(--red); font-style: italic; }
.welcome-hero p {
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
  margin: 0 0 12px; max-width: 64ch;
}
.welcome-hero p b { color: var(--ink); font-weight: 700; }

.welcome-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 18px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.welcome-stats .stat {
  background: #fff; padding: 14px 18px;
}
.welcome-stats .stat .num {
  font-family: 'Georgia', serif; font-weight: 700;
  font-size: 28px; color: var(--navy); line-height: 1;
}
.welcome-stats .stat .lbl {
  font-size: 10.5px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 4px;
}

.welcome-section { margin-bottom: 32px; }
.welcome-section h2 {
  font-family: 'Georgia', serif; font-weight: 700;
  font-size: 18px; color: var(--navy);
  margin: 0 0 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--navy);
  display: flex; justify-content: space-between; align-items: baseline;
}
.welcome-section h2 .more {
  font-family: 'Consolas', monospace; font-size: 11px;
  color: var(--red); font-weight: 400;
}
.welcome-section h2 .more:hover { text-decoration: underline; }

.welcome-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.welcome-card {
  border: 1px solid var(--rule-white);
  background: #fcfaf3;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .12s, transform .12s;
  display: block;
}
.welcome-card:hover {
  border-color: var(--red); transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.1);
}
.welcome-card .top-row {
  display: flex; gap: 6px; align-items: center;
  font-family: 'Consolas', monospace; font-size: 10px;
  color: var(--ink-3); margin-bottom: 6px;
}
.welcome-card .kind-pill {
  padding: 1px 5px; border-radius: 2px;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 700; color: #fff;
}
.welcome-card .kind-pill.thread { background: var(--navy); }
.welcome-card .kind-pill.article { background: var(--red); }
.welcome-card h3 {
  font-family: 'Georgia', serif; font-weight: 700;
  font-size: 15px; line-height: 1.25; color: var(--navy);
  margin: 0 0 6px;
}
.welcome-card .ex {
  font-size: 11.5px; line-height: 1.5; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Foren im Überblick === */
.forum-overview {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.forum-overview__card {
  display: flex; flex-direction: column;
  background: #fcfaf3; border: 1px solid var(--rule-white);
  padding: 14px 16px;
  transition: border-color .12s;
}
.forum-overview__card:hover { border-color: var(--paper-line); }
.forum-overview__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule-white);
  text-decoration: none; color: inherit;
  transition: color .12s;
}
.forum-overview__head:hover .forum-overview__name { color: var(--red); }
.forum-overview__more {
  display: block; text-align: right;
  font-family: 'Consolas', monospace; font-size: 11px;
  color: var(--red); margin-top: 8px;
  padding-top: 8px; border-top: 1px dashed var(--rule-white);
  text-decoration: none;
}
.forum-overview__more:hover { text-decoration: underline; }
.forum-overview__dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.forum-overview__name {
  font-family: 'Georgia', serif; font-weight: 700; font-size: 14px;
  color: var(--navy); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.forum-overview__num {
  font-family: 'Consolas', monospace; font-size: 11px;
  color: var(--ink-3);
  background: var(--paper); padding: 2px 7px; border-radius: 3px;
}
.forum-overview__list { display: flex; flex-direction: column; gap: 4px; }
.forum-overview__thread {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px; color: var(--ink-2);
  text-decoration: none;
  padding: 3px 0;
  white-space: nowrap; overflow: hidden;
}
.forum-overview__thread:hover .forum-overview__title { color: var(--red); text-decoration: underline; }
.forum-overview__count {
  font-family: 'Consolas', monospace; font-size: 10.5px;
  color: var(--ink-3);
  flex-shrink: 0; min-width: 60px;
}
.forum-overview__title {
  overflow: hidden; text-overflow: ellipsis;
}

/* === Year Timeline === */
.year-timeline {
  display: flex; gap: 6px; align-items: stretch;
  background: #fcfaf3; border: 1px solid var(--rule-white);
  padding: 18px 18px 12px; min-height: 130px;
}
.year-bar {
  flex: 1; display: flex; flex-direction: column-reverse;
  align-items: center; justify-content: flex-start;
  text-decoration: none; color: var(--ink-2);
  position: relative;
  min-width: 0;
}
.year-bar__bar {
  width: 100%; max-width: 32px;
  background: linear-gradient(180deg, var(--red) 0%, #8a1010 100%);
  border-radius: 2px 2px 0 0;
  transition: opacity .15s;
  min-height: 4px;
  margin: 0 auto;
}
.year-bar:hover .year-bar__bar { opacity: 0.75; }
.year-bar__lbl {
  font-family: 'Consolas', monospace; font-size: 10.5px;
  color: var(--ink-3); margin-top: 4px;
}
.year-bar__num {
  font-size: 9.5px; color: var(--ink-3);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff;
  padding: 1px 5px; border-radius: 2px;
  opacity: 0; pointer-events: none;
  font-family: 'Consolas', monospace;
  white-space: nowrap;
}
.year-bar:hover .year-bar__num { opacity: 1; }

/* === Top Authors === */
.author-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.author-card {
  display: flex; gap: 10px; align-items: center;
  background: #fcfaf3; border: 1px solid var(--rule-white);
  padding: 10px 12px;
  text-decoration: none; color: inherit;
  transition: border-color .12s;
}
.author-card:hover { border-color: var(--red); }
.author-card__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Georgia', serif; font-weight: 700; font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.author-card__info { display: flex; flex-direction: column; min-width: 0; }
.author-card__name {
  font-family: 'Georgia', serif; font-weight: 700; font-size: 13px;
  color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.author-card__num {
  font-family: 'Consolas', monospace; font-size: 10.5px;
  color: var(--ink-3);
}

/* footer disclaimer (compact, in welcome only) */
.footer-note {
  margin-top: 40px; padding-top: 18px;
  border-top: 1px solid var(--rule-white);
  font-size: 10.5px; line-height: 1.6; color: var(--ink-3);
  font-family: 'Consolas', monospace;
}
.footer-note p { margin: 0 0 0.6em; }
.footer-note b { color: var(--ink-2); }
.footer-note a { color: var(--red); }

/* ============================================================
   RESPONSIVE OVERRIDES (always last so they actually override)
   ============================================================ */
@media (max-width: 1100px) {
  .app { grid-template-columns: 320px 1fr; }
  aside.sidebar { display: none; }
}

@media (max-width: 720px) {
  body { overflow: auto; }
  .app {
    display: block;
    height: auto;
    min-height: 100vh;
  }
  .mobile-bar { display: flex; }
  .mobile-tabs { display: flex; }

  /* Sidebar becomes off-canvas drawer */
  aside.sidebar {
    display: flex;
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    height: 100vh;
  }
  aside.sidebar.open { transform: translateX(0); }

  /* Pane visibility (default: detail visible, list hidden, toggle via tabs) */
  .listpane, main.detail {
    height: auto; overflow: visible;
    width: 100%;
    display: none;
  }
  body[data-page="index"] main.detail { display: flex; }
  body[data-page="index"].show-list main.detail { display: none; }
  body[data-page="index"].show-list .listpane { display: flex; }

  body[data-page="detail"] main.detail { display: flex; }
  body[data-page="detail"].show-list main.detail { display: none; }
  body[data-page="detail"].show-list .listpane { display: flex; }

  /* listpane header sticky below mobile bar+tabs (~110px) */
  .listpane-head { position: sticky; top: 110px; z-index: 5; }
  .detail-head {
    position: sticky; top: 110px; z-index: 5;
    background: #fff;
  }

  /* Welcome */
  .welcome { padding: 20px 16px 80px; }
  .welcome-hero { padding: 22px 18px; }
  .welcome-hero h1 { font-size: 26px; }
  .welcome-stats { grid-template-columns: 1fr 1fr; }
  .welcome-stats .stat { padding: 12px 14px; }
  .welcome-stats .stat .num { font-size: 22px; }
  .welcome-grid { grid-template-columns: 1fr; gap: 10px; }
  .welcome-card { padding: 12px 14px; }
  .welcome-section h2 { font-size: 16px; }
  .forum-overview { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: repeat(2, 1fr); }
  .year-timeline { padding: 16px 8px 10px; gap: 3px; min-height: 100px; }
  .year-bar__lbl { font-size: 9px; }
  .year-bar__bar { max-width: 18px; }

  /* Detail head */
  .detail-head { padding: 14px 16px 12px; flex-wrap: wrap; gap: 10px; }
  .detail-head h1 { font-size: 19px; }
  .detail-head .badges { font-size: 10.5px; }
  .detail-head .badges .badge { padding: 2px 7px; }
  .detail-actions { width: 100%; justify-content: flex-end; }
  .detail-body { padding: 16px 16px 60px; }

  /* Posts: stack avatar above body */
  .post { grid-template-columns: 1fr; }
  .post .author-col {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 8px 12px;
    text-align: left;
    display: flex; align-items: center; gap: 12px;
  }
  .post .avatar { width: 36px; height: 36px; margin: 0; font-size: 14px; }
  .post .name { display: inline; margin: 0; font-size: 12.5px; }
  .post .body-col { padding: 12px 14px 14px; }

  .article-body { font-size: 13px; }
  .article-body h2 { font-size: 19px; margin: 22px 0 10px; }
  .article-body h3 { font-size: 16px; }

  .search-box .kbd { display: none; }
  aside.sidebar .sidebar-nav { padding-bottom: 20px; }
}
