/* EDIREG – Projektseite. Farben aus dem EDIREG-Logo. */
:root {
  --ink: #16181d;
  --muted: #5b6270;
  --line: #e3e6ea;
  --bg: #ffffff;
  --soft: #f5f8fa;
  --blue: #3dbff0;
  --teal: #2a9cb4;
  --teal-dark: #1d7a8f;
  --yellow: #e6e03c;
  --max: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--teal-dark); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand img { height: 64px; width: auto; display: block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 6px;
}
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }

/* ---------- Inhalt ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 48px 24px 72px; }

.stripe { height: 6px; background: linear-gradient(90deg, var(--blue) 0 33%, var(--teal) 33% 66%, var(--yellow) 66% 100%); }

h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.15;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 48px 0 16px;
  padding-top: 8px;
}
h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--blue);
  margin-bottom: 14px;
}
p { margin: 0 0 1em; }

.lead { font-size: 20px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 32px 0;
}
.fact {
  background: var(--soft);
  border-left: 4px solid var(--teal);
  padding: 12px 16px;
}
.fact .k { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fact .v { font-weight: 700; }

figure { margin: 32px 0; }
figure img { max-width: 100%; height: auto; display: block; border: 1px solid var(--line); }
figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

.funding { margin-top: 40px; }
.funding .label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.funding .logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.funding img { height: 110px; width: auto; }

/* ---------- Publikationen ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.toc a {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 15px;
  color: var(--ink);
}
.toc a:hover { border-color: var(--teal); }

.search {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 10px 14px;
  border: 1px solid #c9ced6;
  border-radius: 8px;
  margin-bottom: 8px;
}
.search:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.count { font-size: 15px; color: var(--muted); margin-bottom: 8px; min-height: 1.4em; }

ol.pubs, ul.pubs { padding-left: 0; list-style: none; margin: 0; }
.pubs li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.pubs li.hidden { display: none; }
.pubs a { word-break: break-word; }

/* ---------- Team ---------- */
.people { list-style: none; padding: 0; margin: 0; }
.people li { padding: 6px 0; font-size: 19px; }

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  font-size: 15px;
  color: var(--muted);
}
.site-footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand img { height: 40px; }
  .nav a { padding: 4px 8px; font-size: 15px; }
  main { padding-top: 32px; }
  .funding img { height: 80px; }
}

@media print {
  .site-header, .site-footer, .search, .toc, .count { display: none; }
  main { padding: 0; }
}
