:root {
  --navy: #0d1d31;
  --navy-2: #14284a;
  --gold: #d9b767;
  --gold-2: #e3c775;
  --paper: #f3efe8;
  --card: #ffffff;
  --text: #1b2430;
  --muted: #5b6470;
  --border: rgba(20, 40, 74, 0.18);
  --shadow: 0 12px 28px rgba(9, 17, 31, 0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #edf1f5 0%, #f5f1ea 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 80px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.main-nav {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 8px 10px; border-radius: 6px; font-size: 0.95rem;
}
.main-nav a.active, .main-nav a:hover { background: rgba(255,255,255,0.08); }
.menu-toggle { display: none; }
.hero {
  background: linear-gradient(120deg, rgba(18,39,67,0.97), rgba(18,39,67,0.88)), url('../bilder/richterschaft.webp') center/cover no-repeat;
  color: #fff;
  padding: 72px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 26px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(227, 199, 117, 0.2);
  color: var(--gold-2); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 18px 0 16px; line-height: 1.08; }
.lead { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.9); max-width: 660px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.primary-btn, .secondary-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 8px; border: 2px solid var(--gold);
  font-weight: 700; }
.primary-btn { background: var(--gold-2); color: var(--navy-2); }
.secondary-btn { background: transparent; color: #fff; }
.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; padding: 24px; backdrop-filter: blur(2px);
}
.hero-card h3 { margin-top: 0; font-size: 1.1rem; }
.page-section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; }
.section-head h2 { margin: 0; color: var(--navy-2); font-size: clamp(1.8rem, 3vw, 2.5rem); }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--card); border: 2px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.card-image { width: 100%; height: 180px; object-fit: cover; background: #dfe5ee; }
.portrait-image { aspect-ratio: 4 / 5; height: auto; object-position: center 30%; }
.card-body { padding: 18px; }
.card h3, .card h4 { margin: 0 0 10px; color: var(--navy-2); }
.meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.small-note { color: var(--muted); font-size: 0.92rem; }
.tag {
  display: inline-block; background: rgba(217,183,103,0.12); border: 1px solid rgba(217,183,103,0.45); color: var(--navy-2); padding: 5px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; margin-bottom: 10px;
}
.status-pill {
  display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; border: 1px solid transparent;
}
.status-anstehend { background: rgba(15, 118, 79, 0.12); color: #0d5f41; border-color: rgba(15, 118, 79, 0.2); }
.status-abgeschlossen { background: rgba(70, 85, 107, 0.08); color: #40516d; border-color: rgba(70, 85, 107, 0.18); }
.status-verschoben { background: rgba(188, 133, 0, 0.12); color: #7e5c00; border-color: rgba(188, 133, 0, 0.2); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.list-item { background: var(--card); border: 2px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.timeline { position: relative; padding-left: 16px; display: grid; gap: 18px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.timeline-item {
  position: relative; background: var(--card); border: 2px solid var(--border); border-radius: 12px; padding: 18px 18px 18px 26px; margin-left: 16px; box-shadow: var(--shadow);
}
.timeline-item::before {
  content: ''; position: absolute; left: -23px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--navy-2);
}
.timeline-item.current { border-color: rgba(217,183,103,0.6); }
.empty-state {
  background: var(--card); border: 2px dashed var(--border); border-radius: 12px; padding: 24px; color: var(--muted); text-align: center;
}
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-input, .filter-select {
  width: 100%; max-width: 280px; padding: 10px 12px; border: 1px solid #c8d1dc; border-radius: 8px; background: #fff; font-size: 1rem;
}
.footer { background: var(--navy); color: #fff; padding: 26px 0; border-top: 4px solid var(--gold); margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.footer-brand img { width: 44px; height: 44px; }
@media (max-width: 720px) {
  .header-inner { position: relative; }
  .menu-toggle { display: inline-flex; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; }
  .main-nav {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; background: var(--navy); padding: 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .filters { flex-direction: column; }
}
