/* Layout & Farben angelehnt an Showcase 2021 / http://zbm.hs-mainz.de/ */
:root {
  --ratio: 1.25;
  --ms-0: clamp(1rem, 2vw, 1.25rem);
  --ms--1: calc(var(--ms-0) / var(--ratio));
  --ms-1: calc(var(--ms-0) * var(--ratio));
  --ms-2: calc(var(--ms-1) * var(--ratio));
  --ms-3: calc(var(--ms-2) * var(--ratio));
  --ms-4: calc(var(--ms-3) * var(--ratio));
  --ms-5: calc(var(--ms-4) * var(--ratio));
  --padding: 1rem;
  --black: rgb(10, 10, 10);
  --body-color: rgb(10, 10, 10);
  --body-color-shade: rgb(24, 24, 24);
  --body-background: rgb(255, 255, 255);
  --body-background-shade: #f0f0f0;
  --header-border: var(--black);
  --font-sans: "GT Haptik", Helvetica, Arial, sans-serif;
  --font-serif: "SimpleStd", Georgia, "Times New Roman", serif;
  --max-text: 52rem;
  --max-media: 76rem;
}

@media (min-width: 900px) {
  :root {
    --padding: 5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--ms-0);
  line-height: var(--ratio);
  color: var(--body-color);
  background: var(--body-background);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--body-background);
  background: var(--body-color);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.wrap {
  width: 100%;
  max-width: 100%;
  padding-inline: var(--padding);
  margin-inline: auto;
}

/* ——— Header (ZBM: schwarze Linie, viel Weißraum) ——— */
.site-header {
  border-bottom: 1px solid var(--header-border);
  background: var(--body-background);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-block: 0.8rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  min-width: 0;
}

.header-hs-logo {
  flex-shrink: 0;
  display: block;
  line-height: 0;
  text-decoration: none;
  color: var(--body-color);
}

.header-hs-logo__icon {
  display: block;
  height: 1.75rem;
  width: auto;
}

.header-hs-logo__icon path {
  fill: currentColor;
}

@media (min-width: 900px) {
  .header-hs-logo__icon {
    height: 2.125rem;
  }
}

.logo-block {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  text-decoration: none;
  color: var(--body-color);
}

.logo-primary {
  font-weight: 600;
  font-size: var(--ms-0);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.logo-secondary,
.nav,
.nav a,
.header-search-btn,
.header-search-btn__label {
  font-size: var(--ms-0);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.logo-secondary {
  color: var(--body-color-shade);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.nav a {
  text-decoration: none;
  color: var(--body-color-shade);
}

.nav a:hover {
  color: var(--body-color);
  text-decoration: underline;
}

/* ——— Hero (Startseite: Vollbild) ——— */
.hero.hero--immersive {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: 0;
  margin: 0;
  border-bottom: 1px solid var(--header-border);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: rgb(12, 12, 12);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgb(18, 18, 18);
}

.hero-media-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  z-index: 0;
}

.hero-media .hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-media .hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 0.22) 0%,
    rgb(0 0 0 / 0.12) 32%,
    rgb(0 0 0 / 0.38) 58%,
    rgb(0 0 0 / 0.72) 82%,
    rgb(0 0 0 / 0.88) 100%
  );
}

.hero-immersive-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: end;
  padding-top: clamp(5.5rem, 14vh, 9rem);
  padding-bottom: clamp(2.5rem, 8vh, 4.5rem);
}

.page-home .hero--immersive:not(.hero--has-media) .hero-scrim {
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 0.08) 0%,
    rgb(0 0 0 / 0.35) 100%
  );
}

@media (min-width: 900px) {
  .hero-immersive-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    gap: 2rem 3rem;
    align-items: end;
  }

  .page-home .hero-immersive-inner {
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: end;
    min-height: min(78vh, 44rem);
    min-height: min(78dvh, 44rem);
    padding-top: clamp(6rem, 16vh, 10rem);
    row-gap: clamp(1.25rem, 3vh, 2rem);
    column-gap: 3rem;
  }

  .page-home .hero-immersive-copy {
    display: contents;
  }

  .page-home .hero-immersive-intro {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.65rem, 1.75vh, 0.9rem);
    min-width: 0;
  }

  .page-home .hero-immersive-foot {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.65rem, 1.75vh, 0.9rem);
    min-width: 0;
  }

  .page-home .hero-featured-aside {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: stretch;
    justify-content: flex-end;
  }
}

.hero-immersive-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.65rem, 1.75vh, 0.9rem);
  min-width: 0;
}

.page-home .hero-immersive-intro,
.page-home .hero-immersive-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.65rem, 1.75vh, 0.9rem);
  min-width: 0;
}

.hero-featured-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: right;
  color: rgba(255, 255, 255, 0.92);
  align-self: stretch;
  min-width: 0;
  padding-inline-end: max(0.25rem, env(safe-area-inset-right, 0px));
}

.hero-featured-hit {
  display: block;
  text-align: right;
  color: inherit;
  text-decoration: none;
  margin: 0 0 0 auto;
  max-width: 22rem;
  padding: 0;
  border: 0;
  outline: none;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.page-home .hero-immersive-foot .hero-lead,
.page-home .hero-featured-hit {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.hero-featured-hit:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.hero-featured-hit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.hero-featured-hit .hero-featured-label,
.hero-featured-hit .hero-featured-title {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.hero-featured-hit .hero-featured-label {
  margin: 0 0 0.28rem;
  opacity: 0.75;
}

.hero-featured-hit .hero-featured-title {
  margin: 0;
}

.hero-featured-hit .hero-featured-title[hidden] {
  display: none;
  margin: 0;
}

.hero-fallback-link {
  font-size: var(--ms-0);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.hero-fallback-link:hover {
  color: rgb(255, 255, 255);
}

.hero-ctas--fallback {
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
}

.hero-quote {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.5);
  font-family: var(--font-serif);
  font-size: var(--ms-1);
  font-style: normal;
  line-height: var(--ratio);
  max-width: var(--max-text);
  color: rgba(255, 255, 255, 0.88);
}

.hero-quote p {
  margin: 0;
}

.hero--immersive h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  color: rgb(255, 255, 255);
}

.hero-headline-line1 {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 8.5vw, 5.25rem);
  font-weight: 500;
  line-height: 1;
  margin: 0;
  padding: 0;
  letter-spacing: -0.02em;
  text-transform: none;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.hero-headline-line1--solo {
  margin: 0;
}

.hero-headline-line2 {
  display: block;
  font-size: clamp(1.35rem, 3.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.92;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 0.15rem;
}

.hero--immersive .hero-lead {
  max-width: 38rem;
  width: 100%;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.hero--immersive .hero-lead p {
  margin: 0;
  line-height: inherit;
  letter-spacing: inherit;
}

.hero--immersive .hero-lead.prose strong {
  color: rgb(255, 255, 255);
}

.hero--immersive .hero-lead.prose a {
  color: rgb(210, 220, 255);
}

.hero--immersive .hero-lead.prose a:hover {
  color: rgb(235, 240, 255);
}

.hero-eyebrow {
  font-size: var(--ms--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
}

.hero--immersive .hero-ctas .btn {
  border-bottom: none;
  padding: 0.62rem 1.2rem;
}

@media (max-width: 899px) {
  .hero-featured-aside {
    text-align: left;
    grid-column: 1 / -1;
    padding-inline-end: 0;
    align-self: auto;
  }

  .hero-featured-hit {
    text-align: left;
    margin-left: 0;
    max-width: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--ms--1);
  padding: 0.55rem 0;
  border: none;
  border-bottom: 2px solid var(--black);
  background: transparent;
  color: var(--body-color);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  color: var(--body-color-shade);
  border-bottom-color: var(--body-color-shade);
  text-decoration: none;
}

.btn-primary {
  border-bottom-width: 3px;
  font-weight: 600;
}

.btn-ghost {
  border-bottom-color: transparent;
}

.btn-ghost:hover {
  border-bottom-color: var(--black);
}

/* ——— Sektionen ——— */
section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

section:nth-of-type(even) {
  background: var(--body-background-shade);
}

.section-title {
  font-weight: 600;
  font-size: var(--ms-2);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.section-intro {
  margin: -0.25rem 0 2rem;
  max-width: var(--max-text);
  color: var(--body-color-shade);
  font-size: var(--ms-0);
}

.prose {
  max-width: var(--max-text);
  color: var(--body-color-shade);
  font-weight: 400;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--body-color);
  font-weight: 600;
}

.prose img {
  margin: 1rem 0;
  border: 1px solid var(--header-border);
}

/* ——— Projektkarten (Startseite / Studierende) ——— */
.project-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--header-border);
}

.project-grid.project-grid--featured {
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 17.5rem), 1fr)
  );
}

.project-card {
  border-right: 1px solid var(--header-border);
  border-bottom: 1px solid var(--header-border);
  margin-right: -1px;
  margin-bottom: -1px;
  background: var(--body-background);
}

.project-card-hit {
  display: block;
  color: inherit;
  height: 100%;
}

.project-card-hit:hover {
  background: var(--body-background-shade);
}

.project-card-hit:hover .project-card-body h3 {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.project-card-hit:focus-visible {
  outline: 3px solid var(--body-color);
  outline-offset: -3px;
}

.project-card-media {
  aspect-ratio: 16 / 10;
  background: var(--body-background-shade);
  overflow: hidden;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-media--placeholder {
  min-height: 10rem;
  background: repeating-linear-gradient(
    -12deg,
    var(--body-background-shade),
    var(--body-background-shade) 12px,
    #e4e4e4 12px,
    #e4e4e4 24px
  );
}

.project-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.project-card-tag {
  display: block;
  font-size: var(--ms--1);
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.project-card-body h3 {
  font-weight: 600;
  font-size: var(--ms-1);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.project-card-body p {
  margin: 0;
  font-size: var(--ms--1);
  font-weight: 400;
  color: var(--body-color-shade);
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--ms--1);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.project-card--missing {
  padding: 1.5rem;
  background: #fff8f0;
}

.project-card--hidden {
  display: none;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.load-more-btn {
  font-size: var(--ms-0);
  font-weight: 600;
  padding: 0.5rem 0;
}

/* ——— Kontakt ——— */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* ——— Footer (angelehnt an zbm.hs-mainz.de) ——— */
.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--header-border);
  font-size: var(--ms--1);
  color: var(--body-color-shade);
}

.site-footer--hs {
  background: var(--body-background-shade);
  color: var(--body-color);
  padding-block: clamp(2rem, 5vw, 3rem);
}

.site-footer__inner {
  display: block;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
  text-decoration: none;
  color: inherit;
}

.site-footer__logo:hover {
  text-decoration: none;
  opacity: 0.88;
}

.site-footer__logo-mark {
  display: block;
  height: 2rem;
  width: auto;
  flex-shrink: 0;
}

.site-footer__logo-mark path {
  fill: currentColor;
}

.site-footer__logo-text {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-footer__widgets {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .site-footer__widgets {
    grid-template-columns: minmax(12rem, 1fr) minmax(10rem, auto);
    gap: 3rem 4rem;
    justify-content: start;
  }
}

.site-footer__widget-title {
  margin: 0 0 1em;
  font-size: var(--ms--2);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
}

.site-footer__widget-body p {
  margin: 0 0 0.5em;
}

.site-footer__widget-body p strong {
  display: block;
  margin-top: 1.25em;
  font-weight: 600;
}

.site-footer__widget-body p:first-child strong {
  margin-top: 0;
}

.site-footer__widget-body a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer__social-link {
  display: block;
  line-height: 0;
  color: inherit;
  text-decoration: none;
}

.site-footer__social-link:hover {
  opacity: 0.75;
  text-decoration: none;
}

.site-footer__social-link svg {
  width: 1.6rem;
  height: 1.6rem;
}

.site-footer__social-link path {
  fill: currentColor;
}

.site-footer__social-link--facebook svg {
  transform: scale(1.05);
}

.site-footer__nav {
  margin-bottom: 1em;
}

.site-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 900px) {
  .site-footer__nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
  }
}

.site-footer__nav a {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: inherit;
}

.site-footer__nav a::after {
  content: " ↗";
  font-size: 0.85em;
  text-decoration: none;
}

.site-footer__copyright {
  margin: 0 0 1rem;
  font-size: var(--ms--2);
  color: var(--body-color-shade);
}

.site-footer__edit {
  margin: 0;
}

.edit-hint {
  font-weight: 500;
  font-size: var(--ms--1);
}

.edit-hint a {
  color: var(--body-color-shade);
}

.edit-hint a:hover {
  color: var(--body-color);
}

.theme-dark .site-footer--hs {
  background: rgb(18, 18, 18);
  border-top-color: rgb(42, 42, 42);
}

/* ——— Studierende ——— */
.students-kicker {
  margin: 0 0 1.25rem;
}

.page-students .students-hero {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.students-grid {
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 15rem), 1fr)
  );
}

.page-students .student-card .project-card-hit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-students .student-card .student-card-media--round {
  aspect-ratio: 1;
  width: clamp(7.5rem, 58vw, 11.25rem);
  max-width: calc(100% - 2.5rem);
  margin: 1.35rem auto 0.75rem;
  border-radius: 50%;
  border: 1px solid var(--header-border);
  background: var(--body-background-shade);
  overflow: hidden;
  flex-shrink: 0;
}

.page-students .student-card .student-card-media--round img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.page-students .student-card .project-card-media--placeholder.student-card-media--round {
  min-height: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    -12deg,
    var(--body-background-shade),
    var(--body-background-shade) 10px,
    rgb(28, 28, 28) 10px,
    rgb(28, 28, 28) 20px
  );
}

.page-students .student-card .project-card-body {
  width: 100%;
  text-align: center;
  padding-top: 0.15rem;
}

.theme-dark .page-students .student-card .student-card-media--round {
  border-color: rgb(42, 42, 42);
}

.section-title--sub {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: var(--ms-1);
}

.student-main {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.student-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
  max-width: var(--max-text);
}

.student-photo-wrap {
  margin: 0;
  flex: 0 0 auto;
  border: 1px solid var(--header-border);
  border-radius: 50%;
  overflow: hidden;
  width: min(12rem, 40vw);
  aspect-ratio: 1;
  background: var(--body-background-shade);
}

.student-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-name {
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, var(--ms-3));
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.student-meta {
  margin: 0 0 0.35rem;
  font-size: var(--ms--1);
  font-weight: 600;
  color: var(--body-color-shade);
}

.student-bio {
  margin: 0;
  font-size: var(--ms-0);
  color: var(--body-color-shade);
  line-height: var(--ratio);
  max-width: var(--max-text);
}

/* ——— Projekt-Detail ——— */
.page-project .project-main {
  padding-block: 0;
}

.page-project .project-article {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.page-project .project-article > .project-meta {
  max-width: var(--max-text);
}

.page-project .project-article > .project-body {
  max-width: none;
  width: 100%;
}

.page-project .project-hero.hero--immersive {
  min-height: min(100vh, 56rem);
  min-height: min(100dvh, 56rem);
}

.page-project .project-hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.page-project .project-hero .project-kicker {
  margin: 0;
}

.page-project .project-hero .back-link {
  color: rgb(255 255 255 / 0.78);
}

.page-project .project-hero .back-link:hover {
  color: #fff;
}

.page-project .project-hero .project-title {
  font-weight: 500;
  font-size: clamp(1.75rem, 4.5vw, var(--ms-5));
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  color: #fff;
  max-width: 18ch;
}

.page-project .project-hero-meta {
  margin: 0;
  font-size: var(--ms--1);
  font-weight: 400;
  line-height: 1.4;
  color: rgb(255 255 255 / 0.72);
}

.page-project .project-hero-meta a {
  color: inherit;
  text-decoration: none;
}

.page-project .project-hero-meta a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.page-project .project-hero-meta-sep {
  opacity: 0.55;
}

.page-project .project-hero .project-excerpt {
  margin: 0;
  font-size: var(--ms-0);
  line-height: var(--ratio);
  color: rgb(255 255 255 / 0.88);
  max-width: var(--max-text);
}

.page-project .project-hero .project-actions {
  margin: 0;
}

.page-project .project-hero--text-only {
  min-height: 0;
  background: var(--body-background);
  border-bottom: 1px solid var(--header-border);
}

.page-project .project-hero--text-only .hero-scrim {
  display: none;
}

.page-project .project-hero--text-only .hero-immersive-inner {
  padding-top: clamp(4.5rem, 10vh, 6rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.page-project .project-hero--text-only .project-title {
  color: var(--body-color);
  max-width: none;
}

.page-project .project-hero--text-only .project-excerpt {
  color: var(--body-color-shade);
}

.page-project .project-hero--text-only .project-hero-meta {
  color: var(--body-color-shade);
}

.page-project .project-hero--text-only .project-hero-meta a {
  color: var(--body-color);
}

.page-project .project-hero--text-only .back-link {
  color: var(--body-color-shade);
}

.page-project .project-hero--text-only .back-link:hover {
  color: var(--body-color);
}

.project-kicker {
  margin: 0 0 1.25rem;
}

.back-link {
  font-weight: 500;
  font-size: var(--ms--1);
  color: var(--body-color-shade);
  text-decoration: none;
}

.back-link:hover {
  color: var(--body-color);
  text-decoration: underline;
}

.project-title {
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, var(--ms-4));
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.project-excerpt {
  font-size: var(--ms-1);
  color: var(--body-color-shade);
  margin: 0 0 1.5rem;
}

.project-meta {
  margin: 0 0 1.25rem;
  font-size: var(--ms--1);
  color: var(--body-color-shade);
}

.project-meta dl {
  margin: 0;
}

.project-meta dl > div {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) 1fr;
  gap: 0.25rem 1rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--header-border);
}

.project-meta dl > div:first-of-type {
  border-top: none;
  padding-top: 0;
}

.project-meta dt {
  margin: 0;
  font-weight: 600;
  color: var(--body-color-shade);
}

.project-meta dd {
  margin: 0;
  color: var(--body-color);
}

.page-project .project-body > p,
.page-project .project-body > ul,
.page-project .project-body > ol,
.page-project .project-body > h2,
.page-project .project-body > h3,
.page-project .project-body > blockquote,
.page-project .project-body > pre,
.page-project .project-body > .embed--video,
.page-project .project-body > iframe {
  max-width: var(--max-text);
}

.page-project .project-body .embed--video {
  position: relative;
  width: 100%;
  margin: clamp(1.25rem, 3vw, 2rem) 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--header-border);
  background: var(--body-background-shade);
  box-sizing: border-box;
}

.page-project .project-body .embed--video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  border: 0 !important;
}

.page-project .project-body > iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: clamp(1.25rem, 3vw, 2rem) 0;
  border: 1px solid var(--header-border) !important;
  box-sizing: border-box;
}

.page-project .project-body > figure,
.page-project .project-body > .wp-block-gallery {
  max-width: var(--max-media);
  margin: clamp(2rem, 5vw, 3rem) 0;
}

.page-project .project-body > figure.project-body-figure--text,
.page-project .project-body > .wp-block-gallery:has(> figure:only-child),
.page-project .project-body > .wp-block-gallery:has(> .wp-block-image:only-child) {
  max-width: var(--max-text);
}

.page-project .project-media-band:has(.project-media-grid--single) {
  max-width: var(--max-text);
}

.page-project .project-body .wp-block-image.aligncenter,
.page-project .project-body .aligncenter {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left;
}

.page-project .project-body .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.page-project .project-body .wp-block-gallery:has(> .wp-block-image:only-child),
.page-project .project-body .wp-block-gallery:has(> figure.wp-block-image:only-child) {
  grid-template-columns: 1fr;
}

.page-project .project-body .wp-block-gallery .wp-block-image,
.page-project .project-body .wp-block-gallery > figure {
  margin: 0;
}

.page-project .project-body figure.wp-block-image,
.page-project .project-body .wp-block-gallery figure {
  margin: 0;
  border: 1px solid var(--header-border);
  background: var(--body-background-shade);
  overflow: hidden;
}

.page-project .project-body img,
.page-project .project-body .wp-block-image img,
.page-project .project-body .wp-block-gallery img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0;
  border: 0;
  vertical-align: middle;
}

.page-project .project-body .aligncenter,
.page-project .project-body .alignwide {
  max-width: 100%;
}

/* Medien nach dem Text: breites Raster (per JS zu .project-media-band) */
.page-project .project-media-band {
  max-width: var(--max-media);
  margin: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.page-project .project-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin: 0;
}

.page-project .project-media-grid--single {
  grid-template-columns: 1fr;
}

.page-project .project-media-item {
  margin: 0;
  border: 1px solid var(--header-border);
  background: var(--body-background-shade);
  overflow: hidden;
}

.page-project .project-media-grid--single .project-media-item img {
  max-height: min(78vh, 42rem);
  object-fit: contain;
  object-position: center;
  background: var(--body-background-shade);
}

.page-project .project-media-item img {
  width: 100%;
  height: auto;
  display: block;
}

.project-actions {
  margin-bottom: 2rem;
}

.page-project .project-body {
  width: 100%;
  box-sizing: border-box;
}

.theme-dark .page-project .project-body figure.wp-block-image,
.theme-dark .page-project .project-body .wp-block-gallery figure,
.theme-dark .page-project .project-media-item {
  border-color: rgb(42, 42, 42);
}

.page-project .project-students {
  max-width: var(--max-text);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--header-border);
}

.page-project .project-students__title {
  margin: 0 0 0.75rem;
  font-size: var(--ms--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: var(--body-color-shade);
}

.page-project .project-students__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}

.page-project .project-students__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 7.5rem;
  color: var(--body-color);
  text-decoration: none;
  text-align: center;
}

.page-project .project-students__link:hover .project-students__name {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.page-project .project-students__link:focus-visible {
  outline: 3px solid var(--body-color);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.page-project .project-students__avatar {
  flex-shrink: 0;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  border: 1px solid var(--header-border);
  background: var(--body-background-shade);
  overflow: hidden;
}

.page-project .project-students__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.page-project .project-students__avatar--placeholder {
  background: repeating-linear-gradient(
    -12deg,
    var(--body-background-shade),
    var(--body-background-shade) 8px,
    rgb(28, 28, 28) 8px,
    rgb(28, 28, 28) 16px
  );
}

.page-project .project-students__name {
  font-size: var(--ms--1);
  font-weight: 500;
  line-height: 1.25;
  color: var(--body-color);
}

.theme-dark .page-project .project-students__avatar {
  border-color: rgb(42, 42, 42);
}

.page-project .project-hero-media.project-lightbox-trigger,
.page-project .project-lightbox-trigger {
  cursor: zoom-in;
}

.page-project .project-lightbox-trigger:focus-visible {
  outline: 3px solid var(--body-color);
  outline-offset: 3px;
}

body.project-lightbox-open {
  overflow: hidden;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.94);
}

.project-lightbox[hidden] {
  display: none !important;
}

.project-lightbox__stage {
  position: relative;
  width: min(100%, 96vw);
  height: min(100%, 96vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4rem;
  box-sizing: border-box;
}

.project-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(96vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.project-lightbox__counter {
  margin: 1rem 0 0;
  font-size: var(--ms--1);
  color: rgb(255 255 255 / 0.72);
  text-align: center;
}

.project-lightbox__close,
.project-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0.75rem;
  line-height: 0;
}

.project-lightbox__close {
  top: 0.5rem;
  right: 0.5rem;
}

.project-lightbox__close svg,
.project-lightbox__nav svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.project-lightbox__close path,
.project-lightbox__nav path {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
}

.project-lightbox__nav--prev {
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.project-lightbox__nav--next {
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.project-lightbox__close:hover,
.project-lightbox__nav:hover {
  opacity: 0.75;
}

.project-lightbox__close:focus-visible,
.project-lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .project-lightbox__stage {
    padding: 3rem 2.75rem;
  }

  .project-lightbox__nav--prev {
    left: 0;
  }

  .project-lightbox__nav--next {
    right: 0;
  }
}

.project-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.project-card-chip {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--header-border);
  opacity: 0.85;
}

/* ——— Dunkles Theme, Hero-Slideshow, Filter, Header-Spotlights ——— */
.theme-dark {
  --body-color: rgb(245, 245, 245);
  --body-color-shade: rgb(176, 176, 176);
  --body-background: rgb(8, 8, 8);
  --body-background-shade: rgb(18, 18, 18);
  --header-border: rgb(42, 42, 42);
  --black: rgb(245, 245, 245);
}

.theme-dark ::selection {
  color: rgb(8, 8, 8);
  background: rgb(230, 230, 230);
}

.theme-dark section:nth-of-type(even) {
  background: rgb(12, 12, 12);
}

.theme-dark .project-card--missing {
  background: rgb(28, 22, 18);
}

.theme-dark .prose a {
  color: rgb(200, 210, 255);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.theme-dark .prose a:hover {
  color: rgb(230, 235, 255);
}

.theme-dark .nav a {
  color: var(--body-color-shade);
}

.theme-dark .nav a:hover {
  color: var(--body-color);
}

.page-home .site-header.site-header--home,
.page-project.page-project--immersive .site-header.site-header--home {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 8, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-home .site-header--home .header-hs-logo,
.page-home .site-header--home .logo-block,
.page-project.page-project--immersive .site-header--home .header-hs-logo,
.page-project.page-project--immersive .site-header--home .logo-block {
  color: rgb(255, 255, 255);
}

.page-home .site-header--home .logo-secondary,
.page-project.page-project--immersive .site-header--home .logo-secondary {
  color: rgba(255, 255, 255, 0.65);
}

.page-home .site-header--home .nav a,
.page-project.page-project--immersive .site-header--home .nav a {
  color: rgba(255, 255, 255, 0.82);
}

.page-home .site-header--home .nav a:hover,
.page-project.page-project--immersive .site-header--home .nav a:hover {
  color: rgb(255, 255, 255);
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.25rem;
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  color: var(--body-color-shade);
  cursor: pointer;
}

.header-search-btn:hover {
  color: var(--body-color);
}

.header-search-btn__icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.header-search-btn__icon circle,
.header-search-btn__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 8px;
}

.page-home .site-header--home .header-search-btn,
.page-project.page-project--immersive .site-header--home .header-search-btn {
  color: rgba(255, 255, 255, 0.82);
}

.page-home .site-header--home .header-search-btn:hover,
.page-project.page-project--immersive .site-header--home .header-search-btn:hover {
  color: rgb(255, 255, 255);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4.5rem, 12vh, 6rem) var(--padding) 2rem;
}

.search-overlay[hidden] {
  display: none !important;
}

.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  border: 0;
  cursor: pointer;
}

.search-overlay__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  background: var(--body-background);
  color: var(--body-color);
  border: 1px solid var(--header-border);
  padding: 1.25rem 1.35rem 1rem;
}

.search-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-overlay__title {
  margin: 0;
  font-size: var(--ms-1);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.search-overlay__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.search-overlay__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.search-overlay__close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 8px;
}

.search-overlay__field {
  display: block;
  margin-bottom: 0.75rem;
}

.search-overlay__input {
  width: 100%;
  font: inherit;
  font-size: var(--ms-1);
  letter-spacing: -0.02em;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--body-color-shade);
  padding: 0.35rem 0 0.5rem;
  outline: none;
}

.search-overlay__input:focus {
  border-bottom-color: var(--body-color);
}

.search-overlay__hint {
  margin: 0 0 0.75rem;
  font-size: var(--ms--1);
  color: var(--body-color-shade);
}

.search-overlay__results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(50vh, 22rem);
  overflow: auto;
}

.search-overlay__result a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--header-border);
  text-decoration: none;
  color: inherit;
}

.search-overlay__result a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.search-overlay__result-type {
  display: block;
  font-size: var(--ms--2);
  letter-spacing: 0.06em;
  color: var(--body-color-shade);
  margin-bottom: 0.15rem;
}

.search-overlay__result-title {
  display: block;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.search-overlay__result-excerpt {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--ms--1);
  color: var(--body-color-shade);
  line-height: 1.4;
}

body.search-open {
  overflow: hidden;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: var(--ms--1);
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--header-border);
  background: var(--body-background);
  color: var(--body-color-shade);
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  color: var(--body-color);
  border-color: var(--body-color-shade);
}

.filter-btn--active {
  background: var(--body-background-shade);
  color: var(--body-color);
  border-color: var(--body-color-shade);
}

.theme-dark .project-card-media {
  background: rgb(14, 14, 14);
}

.theme-dark .project-card-media--placeholder {
  background: repeating-linear-gradient(
    -12deg,
    rgb(14, 14, 14),
    rgb(14, 14, 14) 12px,
    rgb(28, 28, 28) 12px,
    rgb(28, 28, 28) 24px
  );
}

.theme-dark .project-card-hit:hover {
  background: rgb(16, 16, 16);
}

.project-card-media img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.project-card-hit:hover .project-card-media img {
  transform: translateY(-6px) scale(1.04);
  filter: brightness(1.1);
}

.theme-dark .project-hero-media {
  border-color: var(--header-border);
  background: rgb(14, 14, 14);
}
