/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --clay:      #c97d5a;
  --clay-dark: #a85e3c;
  --cream:     #faf6f1;
  --sand:      #f0e6d8;
  --rust:      #8b3a1e;
  --ink:       #1a1410;
  --muted:     #6b5c50;
  --card-bg:   #f5e8da;
  --white:     #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  --nav-h: 130px;
  --max-w: 1180px;
  --gap:   clamp(1.5rem, 4vw, 3rem);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.75;
  font-weight: 300;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100% - 2 * var(--gap));
  margin-inline: auto;
}

/* ══════════════════════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1.5px solid var(--sand);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  overflow: hidden;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
}

/* Nav links */
nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.nav-link {
  display: inline-block;
  padding: .45rem 1.25rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
}
.nav-link:hover {
  background: var(--clay-dark);
  transform: translateY(-1px);
}
.nav-link.active {
  background: var(--rust);
}

/* ══════════════════════════════════════════════════════════════
   HERO / MAIN SECTION
══════════════════════════════════════════════════════════════ */
main {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--gap);
  align-items: start;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-body p {
  text-align: justify;
  margin-bottom: 1rem;
  color: var(--ink);
}
.hero-body p:last-child { margin-bottom: 0; }

.brand-name {
  font-weight: 700;
  color: var(--rust);
}

/* Right column – partner card */
.partner-card {
  background: var(--card-bg);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.partner-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  align-self: flex-start;
}

/* Partner logo – original format, no circle/border */
.partner-logo-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.partner-logo-icon {
  max-height: 56px;
  width: auto;
  display: flex;
  align-items: center;
}
.partner-logo-icon img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}
.partner-logo-text {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}

/* ══════════════════════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════════════════════ */
hr.section-rule {
  border: none;
  border-top: 1.5px solid var(--sand);
  margin-block: 0;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  padding-block: 1.25rem;
}
.footer-inner {
  display: flex;
  gap: 1.5rem;
}
.footer-link {
  font-size: .8rem;
  color: var(--muted);
  transition: color .2s;
}
.footer-link:hover { color: var(--clay-dark); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 780px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .partner-card {
    position: static;
  }
  nav {
    gap: .35rem;
  }
  .nav-link {
    padding: .35rem .9rem;
    font-size: .8rem;
  }
}

@media (max-width: 520px) {
  .logo-sub { display: none; }
}

/* ── Subtle fade-in on load ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-title  { animation: fadeUp .6s ease both; }
.hero-body   { animation: fadeUp .6s .12s ease both; }
.partner-card{ animation: fadeUp .6s .2s ease both; }

/* ══════════════════════════════════════════════════════════════
   FORSCHUNGSVORHABEN – PAGE HEADER
══════════════════════════════════════════════════════════════ */
.page-header {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1.5px solid var(--sand);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 680px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: fadeUp .6s ease both;
}
.page-intro {
  font-size: clamp(.95rem, 1.05vw, 1.05rem);
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  animation: fadeUp .6s .1s ease both;
}

/* ══════════════════════════════════════════════════════════════
   FORSCHUNGSVORHABEN – PROJECTS GRID
══════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
  gap: 1.75rem;
  animation: fadeUp .6s .2s ease both;
}

.project-card {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid var(--sand);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: box-shadow .25s, transform .25s;
}
.project-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.project-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card__accent {
  height: 5px;
  background: linear-gradient(90deg, var(--clay), var(--rust));
  flex-shrink: 0;
}
.project-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  flex: 1;
}
.project-card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clay-dark);
  background: var(--card-bg);
  padding: .25rem .7rem;
  border-radius: 999px;
  align-self: flex-start;
}
.project-card__tag--done {
  color: var(--muted);
  background: var(--sand);
}
.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.project-card__text {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
  flex: 1;
  text-align: left;
  max-width: 65ch;
}
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--sand);
  margin-top: auto;
}
.project-card__meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--muted);
}
.project-card__meta-item svg {
  flex-shrink: 0;
  color: var(--clay);
}
@media (max-width: 520px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   TEAM – LIST & CARDS
══════════════════════════════════════════════════════════════ */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.team-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: box-shadow .25s, transform .25s;
}
.team-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

/* Photo column */
.team-card__photo-wrap {
  position: relative;
  background: var(--sand);
  min-height: 320px;
  overflow: hidden;
}
.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Content column */
.team-card__body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-left: 4px solid var(--clay);
}

.team-card__top {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.team-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.team-card__role {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--clay-dark);
}

/* Definition list */
.team-card__data {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border-radius: .6rem;
}
.team-card__data-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: .5rem;
  font-size: .88rem;
  line-height: 1.5;
}
.team-card__data-row dt {
  color: var(--muted);
  font-weight: 600;
}
.team-card__data-row dd {
  color: var(--ink);
}
.team-card__data-row dd a {
  color: var(--clay-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.team-card__data-row dd a:hover {
  color: var(--rust);
}

/* Bio text */
.team-card__bio {
  font-size: .93rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
  font-style: italic;
}

/* Responsive */
@media (max-width: 680px) {
  .team-card {
    grid-template-columns: 1fr;
  }
  .team-card__photo-wrap {
    min-height: 260px;
  }
  .team-card__body {
    border-left: none;
    border-top: 4px solid var(--clay);
  }
  .team-card__data-row {
    grid-template-columns: 1fr;
    gap: .1rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   PUBLIKATIONEN – LIST & CARDS
══════════════════════════════════════════════════════════════ */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pub-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: box-shadow .25s, transform .25s;
}
.pub-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

/* Left icon strip */
.pub-card__icon {
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem .75rem;
  border-right: 1.5px solid var(--sand);
}
.pub-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--clay);
  flex-shrink: 0;
}

/* Content */
.pub-card__body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.pub-card__year {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clay-dark);
}

.pub-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.pub-card__authors {
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
}

.pub-card__abstract {
  font-size: .93rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
  padding-top: .25rem;
}

/* Footer row */
.pub-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: .85rem;
  margin-top: .25rem;
  border-top: 1px solid var(--sand);
}

.pub-card__type {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--sand);
  padding: .25rem .75rem;
  border-radius: 999px;
}

.pub-card__download {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.3rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.pub-card__download svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.pub-card__download:hover {
  background: var(--clay-dark);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .pub-card {
    grid-template-columns: 1fr;
  }
  .pub-card__icon {
    border-right: none;
    border-bottom: 1.5px solid var(--sand);
    padding: 1rem;
    flex-direction: row;
    justify-content: flex-start;
    gap: .5rem;
  }
  .pub-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════════════════════
   KONTAKT – LAYOUT
══════════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-left {
  display: block;
}

.contact-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--sand);
}

/* ── Support cards ─────────────────────────────────────────── */
.support-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: .85rem;
  padding: 1.25rem 1.4rem;
  transition: box-shadow .2s, transform .2s;
}
.support-card:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.support-card__icon {
  width: 44px;
  height: 44px;
  background: var(--card-bg);
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--clay);
}

.support-card__text h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .35rem;
  line-height: 1.3;
}
.support-card__text p {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}

/* ── Contact form ──────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: 1rem;
  padding: 2rem 2.25rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}

.form-required {
  color: var(--clay);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--sand);
  border-radius: .55rem;
  padding: .65rem .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b5c50' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(201,125,90,.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

/* Checkbox row */
.form-group--checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
}
.form-group--checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: .2rem;
  accent-color: var(--clay);
  cursor: pointer;
}
.form-group--checkbox label {
  font-size: .82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}
.form-group--checkbox label a {
  color: var(--clay-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Submit button */
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  align-self: flex-start;
  margin-top: .25rem;
}
.form-submit svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.form-submit:hover {
  background: var(--clay-dark);
  transform: translateY(-1px);
}
.form-submit:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .contact-form-wrap {
    position: static;
  }
}
@media (max-width: 520px) {
  .contact-form-wrap {
    padding: 1.5rem 1.25rem;
  }
  .support-card {
    grid-template-columns: 1fr;
  }
}

/* ── Logo Fix: Größe begrenzen, kein Overflow ──────────────── */
.logo-icon {
  height: calc(var(--nav-h) - 20px);
  width: auto;
  overflow: hidden;
}

.logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════════════════════════ */
.hero-banner {
  position: relative;
  width: 100%;
  height: clamp(220px, 35vw, 480px);
  overflow: hidden;
}

.hero-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 20, 16, 0.15) 0%,
    rgba(250, 246, 241, 0.6) 85%,
    var(--cream) 100%
  );
}
.hero-banner__source {
  font-size: .72rem;
  color: var(--muted);
  text-align: right;
  padding: .3rem var(--gap);
  opacity: .7;
}
/* ══════════════════════════════════════════════════════════════
   FORSCHUNGSNOTIZEN – INSIGHTS
══════════════════════════════════════════════════════════════ */

.insight-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}

.insight-controls select {
  font-family: var(--font-body);
  font-size: .85rem;
  padding: .45rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--sand);
  background: var(--cream);
  cursor: pointer;
}

/* GRID */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.75rem;
}

/* CARD */
.insight-card {
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
}

/* Kopf */
.insight-card__head {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  border-left: 6px solid transparent;
}

/* Status-Farbkodierung */
.status-hypothese  .insight-card__head { border-color: var(--clay-dark); }
.status-vorlaeufig .insight-card__head { border-color: var(--clay); }
.status-bestaetigt .insight-card__head { border-color: #6f8f7a; }

.insight-tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--card-bg);
  padding: .25rem .7rem;
  border-radius: 999px;
  align-self: flex-start;
}

.insight-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
}

.insight-meta {
  font-size: .75rem;
  color: var(--muted);
}

/* AUFKLAPPBARER BEREICH */
.insight-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  border-top: 1px solid var(--sand);
}

.insight-body__inner {
  padding: 1.5rem;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--muted);
  text-align: justify;
}

.insight-card.open .insight-body {
  max-height: 800px;
}