:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --muted: #eef3f1;
  --text: #17201c;
  --subtle: #53625d;
  --line: #dce4e0;
  --accent: #007f73;
  --accent-dark: #00584f;
  --ink: #111816;
  --shadow: 0 20px 45px rgba(23, 32, 28, 0.08);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--subtle);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px clamp(18px, 4vw, 40px);
}

.section.muted {
  max-width: none;
  background: var(--muted);
}

.section.muted > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
  min-height: calc(100vh - 76px);
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero-copy {
  max-width: 650px;
}

.hero-image {
  width: 90%;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  justify-self: end;
  transform: translateX(10%);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.affiliation-university {
  color: var(--accent);
}

.affiliation-link,
.affiliation-link:hover {
  color: inherit;
  text-decoration: none;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.12;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 5.8vw, 4.9rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.lead {
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.48;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 32px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  color: var(--subtle);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.person {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 198px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: box-shadow 180ms ease;
}

.person:hover,
.person:focus {
  z-index: 10;
  width: calc(200% + 18px);
  grid-template-columns: 240px minmax(0, 1fr);
  box-shadow: var(--shadow);
  outline: none;
}

.person:nth-child(even):hover,
.person:nth-child(even):focus {
  left: calc(-100% - 18px);
}

.person-photo,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
}

.person-photo {
  background: var(--surface);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-photo .weiss-portrait {
  transform: scale(1.28);
}

.person-photo .portrait-zoom-out {
  width: auto;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  transform: none;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  background: #d7e7e2;
  color: var(--accent-dark);
  font-weight: 800;
}

.person p {
  margin-bottom: 0;
}

.person-info > p:not(.role) {
  display: none;
  color: var(--text);
  text-align: justify;
}

.person:hover .person-info > p:not(.role),
.person:focus .person-info > p:not(.role) {
  display: block;
}

.role {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.team-opening {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 198px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.team-opening:hover,
.team-opening:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateY(-2px);
}

.team-opening-mark {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: #d7e7e2;
  color: var(--accent-dark);
  font-size: 3.25rem;
  font-weight: 300;
  line-height: 1;
}

.team-opening h3 {
  margin-bottom: 8px;
}

.publication-list {
  display: grid;
  gap: 18px;
  padding-left: 22px;
}

.publication-list li {
  padding-left: 8px;
}

.publication-list a {
  display: inline-block;
  margin-left: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  height: 260px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #101614;
  cursor: zoom-in;
}

.gallery-item::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  content: "\00a9  R. Praschberger";
  font-size: 0.72rem;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.position-list {
  display: grid;
  gap: 24px;
}

.position {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.position:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: start;
}

address {
  font-style: normal;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 60px 20px 24px;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  position: relative;
  display: inline-flex;
  max-width: min(1180px, 96vw);
  max-height: 84vh;
  margin: 0;
}

.lightbox-image img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-image figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.2;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .hero,
  .two-column,
  .team-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    width: 100%;
    transform: none;
  }

  .person,
  .person:hover,
  .person:focus {
    left: auto;
    width: 100%;
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .person:nth-child(even):hover,
  .person:nth-child(even):focus {
    left: auto;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 10vw, 3.7rem);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .brand small {
    display: none;
  }

  .person,
  .person:hover,
  .person:focus,
  .team-opening {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 220px;
  }

  .site-footer {
    flex-direction: column;
  }
}
