:root {
  --accent: #ffd501; /* FBB Gelb */
  --text: #000;
  --muted: #444;
  --bg: #fff;
  --card: #fff;
  --border: #e7e7e7;
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 8px 20px rgba(0,0,0,0.06);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: #000; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-logo img {
  display: block;
  border-radius: 10px;
}
.topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #000;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.topbar-btn:hover { text-decoration: none; filter: brightness(0.98); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 50px;
}

.page-header h1 {
  margin: 10px 0 4px;
  font-size: 28px;
  letter-spacing: 0.2px;
}
.kicker {
  display: inline-block;
  background: var(--accent);
  border: 1px solid #000;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.page-header p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 76px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  background: #fff;
}
.sidebar-title {
  font-weight: 800;
  margin: 2px 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.filter-group + .filter-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn,
.year-btn,
.topic-btn {
  appearance: none;
  border: 1px solid #000;
  background: var(--accent);
  color: #000;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.year-btn.is-active,
.topic-btn.is-active {
  background: #000;
  color: var(--accent);
}

.select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
}



.content {
  min-width: 0;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

input[type="search"] {
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  min-width: 280px;
}

button {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}
button:hover { border-color: #cfcfcf; }
button:disabled { opacity: .5; cursor: not-allowed; }

.meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 14px;
}

.list {
  display: grid;
  gap: 12px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}

.card:hover { transform: translateY(-1px); transition: transform 120ms ease; }

.card .top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.card h2 a { color: #000; }

.card .date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.card .teaser {
  margin: 10px 0 0;
  color: #111;
  font-size: 14px;
}

.badge {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.card-logo {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

.pager {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pager button {
  border: 1px solid #000;
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

.pager button:disabled {
  border-color: var(--border);
  background: #f6f6f6;
  color: #777;
}

.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 700;
}

.footer-note {
  color: var(--muted);
  font-size: 13px;
}

/* legal pages */
.legal-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 50px;
}
.legal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  background: #fff;
}
.legal h1 { margin-top: 0; }
.legal h2, .legal h3, .legal h4, .legal h5 { margin: 18px 0 10px; }
.legal p { margin: 0 0 14px; }
.legal a { text-decoration: underline; }

/* screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* responsive */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  input[type="search"] { min-width: 220px; width: 100%; }
  .toolbar { align-items: stretch; }
}

/* Article pages (existing generated post pages) */
.article {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 70px;
}
.article a.back {
  display: inline-block;
  margin-bottom: 16px;
}
.article h1 {
  margin: 0 0 6px;
  font-size: 28px;
}
.article .article-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.article .content {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 16px;
}
.article .content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.article .content p {
  margin: 0 0 14px;
}
.article .content h2, .article .content h3 {
  margin: 18px 0 10px;
}

/* Legal pages */
.legal-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 70px;
}
.legal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.legal h1 { margin: 0 0 10px; font-size: 26px; }
.legal h2, .legal h3, .legal h4, .legal h5 { margin: 18px 0 10px; }
.legal p { margin: 0 0 12px; }
.legal a { text-decoration: underline; }
