:root {
  --red: #d00;
  --ink: #111;
  --muted: #666;
  --line: #e3e3e3;
  --bg: #f2f2f2;
  --card: #fff;
  --head: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --body: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--head); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Kopf ---------- */
.masthead { background: var(--red); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.mast-inner { display: flex; align-items: center; gap: 18px; height: 58px; }
.logo { display: inline-flex; align-items: stretch; font-weight: 900; letter-spacing: -.5px; font-size: 26px; line-height: 1; }
.logo span { background: #fff; color: var(--red); padding: 6px 7px 4px; }
.logo b { background: #000; color: #fff; padding: 6px 7px 4px; font-weight: 900; }
.mast-date { font-size: 13px; opacity: .9; flex: 1; }
.search input { border: 0; border-radius: 3px; padding: 8px 10px; width: 220px; font-size: 14px; }
.mast-link { font-size: 20px; opacity: .9; padding: 4px; }
.mast-link:hover { opacity: 1; }
.catnav { background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); }
.catnav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav a { white-space: nowrap; padding: 11px 10px 9px; font-size: 14px; font-weight: 700; border-bottom: 3px solid transparent; }
.catnav a:hover { color: var(--c, var(--red)); }
.catnav a.on { border-bottom-color: var(--c, var(--red)); color: var(--c, var(--red)); }
.catnav a.subtle { color: var(--muted); margin-left: auto; font-weight: 400; }

main.wrap { padding-top: 18px; padding-bottom: 30px; }

/* ---------- Bausteine ---------- */
.kicker { color: var(--c, var(--red)); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.meta .pub { font-weight: 700; color: #333; }
.meta .dups { background: #eee; border-radius: 8px; padding: 0 6px; }
.meta .readmark { color: #2e7d32; }
.thumb { background: #ddd; aspect-ratio: 16/10; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.ph { background: linear-gradient(135deg, var(--c), #111); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; }
.thumb.ph span { font-weight: 900; font-size: 20px; text-transform: uppercase; opacity: .9; }
.thumb.ph small { opacity: .7; font-size: 12px; }

.card { background: var(--card); display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.card-body { padding: 10px 12px 12px; }
.card h3 { margin: 0; font-size: 19px; line-height: 1.15; font-weight: 800; letter-spacing: -.2px; }
.card p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.4; color: #333; }
.card.is-read h3 { color: #555; }
.card-s { flex-direction: row; gap: 10px; padding: 8px; border-bottom: 1px solid var(--line); }
.card-s .thumb { width: 120px; flex: none; aspect-ratio: 4/3; }
.card-s .thumb.ph span { font-size: 12px; }
.card-s .thumb.ph small { display: none; }
.card-s .card-body { padding: 0; }
.card-s h3 { font-size: 15.5px; }
.card-s .kicker { font-size: 11px; }
.card-l h3 { font-size: 26px; }
.card-l p { font-size: 15.5px; }

.sec-title { border-bottom: 3px solid var(--c, var(--red)); margin: 26px 0 12px; display: flex; align-items: flex-end; gap: 10px; }
.sec-title span, .sec-title a { background: var(--c, var(--red)); color: #fff; font-weight: 900; text-transform: uppercase; padding: 6px 12px 4px; font-size: 16px; }
.sec-title .hot { font-style: normal; font-size: 12px; color: var(--c); margin-bottom: 4px; }

/* ---------- Startseite ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.hero-main { background: #000; color: #fff; position: relative; display: block; overflow: hidden; }
.hero-main .thumb { aspect-ratio: 16/9; }
.hero-main .thumb img { transition: transform .4s; }
.hero-main:hover .thumb img { transform: scale(1.02); }
.hero-text { padding: 14px 18px 18px; }
.hero-text h1 { font-size: 40px; line-height: 1.04; margin: 0; font-weight: 900; letter-spacing: -.8px; }
.hero-text p { font-size: 17px; line-height: 1.4; margin: 10px 0 0; color: #eee; }
.hero-text .meta { color: #aaa; }
.hero-text .meta .pub { color: #fff; }
.hero-text .kicker { color: #ff4d4d; }
.hero-side { background: var(--card); padding: 0 8px 8px; }
.hero-side .sec-title { margin-top: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.catsec .catgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.catlist { background: var(--card); }
.catlist .card-s:last-child { border-bottom: 0; }

.covers { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.cover { width: 120px; flex: none; font-size: 12px; }
.cover img { width: 120px; height: 165px; object-fit: cover; object-position: top; box-shadow: 0 2px 6px rgba(0,0,0,.25); background: #fff; }
.cover b { display: block; margin-top: 6px; line-height: 1.2; }
.cover small { color: var(--muted); }

.notice { background: #fff8e1; border-left: 4px solid #f9a825; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.empty { background: #fff; padding: 40px; text-align: center; }
.empty code { background: #eee; padding: 2px 6px; }

/* ---------- Artikel ---------- */
.article { background: #fff; max-width: 820px; margin: 0 auto; padding: 24px 40px 30px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { text-decoration: underline; }
.article h1 { font-size: 40px; line-height: 1.05; margin: 2px 0 12px; font-weight: 900; letter-spacing: -.6px; }
.article .lead { font-size: 19px; font-weight: 700; line-height: 1.4; margin: 0 0 14px; }
.art-meta { font-size: 13px; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.art-meta a { color: var(--red); font-weight: 700; }
.art-img { margin: 0 0 18px; }
.art-img img { width: 100%; }
.art-body p { font-family: var(--body); font-size: 19px; line-height: 1.6; margin: 0 0 1em; color: #222; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.tags a { background: #f0f0f0; padding: 4px 10px; border-radius: 14px; font-size: 13px; }
.tags a:hover { background: #e0e0e0; }
.tags.big a { font-size: 15px; }
.others { font-size: 14px; color: var(--muted); margin: 10px 0; }
.others a { color: var(--ink); font-weight: 700; }
.vote { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vote span { font-weight: 700; margin-right: 6px; }
.vote button, button.mini, button.danger, .bigsearch button { border: 1px solid #ccc; background: #fff; border-radius: 20px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.vote button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Listen ---------- */
.list-head { border-bottom: 4px solid var(--c, var(--red)); margin-bottom: 4px; padding-bottom: 8px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.list-head h1 { margin: 0; font-size: 34px; font-weight: 900; color: var(--c, var(--ink)); }
.switch { display: flex; gap: 6px; font-size: 14px; align-items: center; }
.switch a { padding: 4px 10px; border-radius: 14px; background: #fff; }
.switch a.on { background: var(--c, var(--red)); color: #fff; }
.switch span { color: var(--muted); }
.bigsearch { display: flex; gap: 8px; width: 100%; }
.bigsearch input { flex: 1; font-size: 18px; padding: 10px; border: 1px solid #ccc; }

.statbar { display: flex; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.statbar div { background: #fff; padding: 10px 14px; font-size: 18px; min-width: 180px; }
.statbar b { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; }
table.issues { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.issues th, .issues td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.issues th { background: #fafafa; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.issues td a { font-weight: 700; }
.issues small { color: var(--muted); }
.st { padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #eee; }
.st-fertig { background: #e8f5e9; color: #1b5e20; }
.st-fehler { background: #ffebee; color: #b71c1c; }
.st-läuft { background: #fff8e1; color: #8d6e00; }
.err { color: #b71c1c; }

/* ---------- Profil ---------- */
.intro { max-width: 760px; line-height: 1.5; }
.profgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: #fff; padding: 20px; margin: 14px 0; }
.profgrid h2 { margin-top: 0; }
.bar { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.track { background: #eee; height: 12px; }
.fill { background: var(--c); height: 100%; }
.fill.neg { background: repeating-linear-gradient(45deg, #999, #999 4px, #bbb 4px, #bbb 8px); }
button.danger { color: #b71c1c; border-color: #b71c1c; }

/* ---------- Login ---------- */
.login-body { background: var(--red); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login { background: #fff; padding: 30px; width: min(360px, 92vw); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.logo.big { font-size: 34px; align-self: center; margin-bottom: 8px; }
.login label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.login input { padding: 10px; font-size: 16px; border: 1px solid #ccc; }
.login button { background: var(--red); color: #fff; border: 0; padding: 12px; font-size: 16px; font-weight: 800; cursor: pointer; }
.login .err { background: #ffebee; padding: 8px; font-size: 14px; }

.foot { font-size: 12px; color: var(--muted); padding-top: 10px; padding-bottom: 30px; }
.foot a { text-decoration: underline; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .hero, .catsec .catgrid, .profgrid { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .hero-text h1 { font-size: 30px; }
  .mast-date { display: none; }
  .search { flex: 1; }
  .search input { width: 100%; }
}
@media (max-width: 600px) {
  .grid3 { grid-template-columns: 1fr; }
  .article { padding: 16px; }
  .article h1 { font-size: 30px; }
  .art-body p { font-size: 18px; }
  .logo { font-size: 20px; }
  .card-l h3 { font-size: 22px; }
}
.grid3.tight { margin-top: 0; }

/* ---------- World Wide Me ---------- */
.logo span { letter-spacing: -.8px; }
.mast-date i { font-style: italic; font-weight: 700; opacity: 1; font-size: 13px; }
.mast-date { line-height: 1.25; }
.tagline { text-align: center; font-style: italic; font-weight: 700; color: #555; margin-top: -10px; }
.catnav a.subtle2 { color: var(--muted); font-weight: 400; }

/* ---------- Quellen ---------- */
.srcgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.srcbox { background: #fff; padding: 14px 16px; margin-top: 16px; }
.srcbox h2 { margin: 0 0 10px; font-size: 20px; }
.srcbox h2 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.srcbox table.issues { font-size: 13px; }
tr.off td { opacity: .5; }
td.actions { white-space: nowrap; }
td.actions form { display: inline; }
button.mini { padding: 4px 9px; font-size: 13px; border: 1px solid #ccc; background: #fff; border-radius: 14px; cursor: pointer; }
button.mini:hover { background: #f3f3f3; }
.addsrc { display: flex; gap: 8px; margin-top: 10px; }
.addsrc input { flex: 1; padding: 8px; border: 1px solid #ccc; font-size: 14px; }
.addsrc button { background: var(--red); color: #fff; border: 0; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.dialogs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.dlg { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 10px; font-size: 14px; }
.dlg > div { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dlg form { display: inline; }
.dlg.used { background: #f7fbf7; }
b.ok { color: #1b5e20; }
.pageimg { background: #fff; padding: 10px; margin-top: 12px; }
.pageimg img { margin: 0 auto; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
@media (max-width: 900px) { .srcgrid { grid-template-columns: 1fr; } }

/* ---------- Themen / Unterkanäle ---------- */
.srcbox h2 + form.refresh { float: right; margin-top: -38px; }
.dialogs { align-items: start; }
.dlgwrap { border: 1px solid var(--line); }
.dlgwrap .dlg { border: 0; }
.dlgwrap.forum { grid-column: 1 / -1; }
.dlg .hint { color: var(--muted); white-space: nowrap; }
details.topics { border-top: 1px dashed var(--line); padding: 4px 10px 8px 22px; }
details.topics summary { cursor: pointer; font-size: 13px; color: var(--red); font-weight: 700; padding: 4px 0; }
.dlg.sub { padding: 4px 0; border-bottom: 1px solid #f2f2f2; }
.dlg.sub:last-child { border-bottom: 0; }
