@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-900.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --hspf-grau: #7d7369;
  --hspf-gelb: #ebcd23;
  --hspf-gelb-deep: #b5872a;
  --tud-blue: #00478f;
  --tud-blue-deep: #00325f;
  --paper: #FAFAF8;
  --paper-alt: #F5F3EF;
  --ink: #1c1c1a;
  --line: rgba(0, 0, 0, .08);
  --radius: 6px;
  --max-w: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(16px, .55vw + 13px, 21px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 .5em 0;
}

p {
  margin: 0 0 1em 0;
}

a {
  color: var(--tud-blue);
  text-decoration: none;
}

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

input,
textarea,
button {
  font: inherit;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 96px);
  width: 100%;
}

.eyebrow,
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tud-blue);
}

.eyebrow-white {
  color: #fff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: clamp(22px, 5vw, 96px);
  padding-right: clamp(22px, 5vw, 96px);
}

.brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.brandmark .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 22px;
  border-radius: 50%;
  background: var(--tud-blue);
  box-shadow: 22px 0 0 var(--hspf-gelb);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--tud-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--tud-blue-deep);
}

.btn-primary.small {
  padding: 13px 24px;
  font-size: 1rem;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(0, 0, 0, .4);
  background: #fff;
}

.coop-bar {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.coop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 96px);
}

.coop-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coop-logo {
  height: 138px;
  width: auto;
  max-width: 660px;
  object-fit: contain;
}

.coop-x {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hspf-grau);
}

.coop-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.institution-block {
  max-width: 980px;
  margin: 0 auto;
}

.institution-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 4vw, 72px);
  min-height: 200px;
  padding: clamp(12px, 2vw, 24px) 0;
  background: linear-gradient(180deg, rgba(0, 71, 143, 0.04), rgba(235, 205, 35, 0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.institution-logo {
  height: clamp(140px, 13vw, 240px);
  width: auto;
  max-width: 620px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.04));
}

.hero {
  padding: clamp(56px, 7vw, 110px) 0 clamp(44px, 5vw, 76px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .lede {
  font-size: clamp(1.05rem, 1.1vw, 1.25rem);
  color: var(--hspf-grau);
  max-width: 64ch;
  margin: 0 auto clamp(28px, 2.6vw, 40px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.hero-meta {
  margin-top: 36px;
  font-size: .92rem;
  color: var(--hspf-grau);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

section {
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid var(--line);
}

section.soft {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  max-width: 1080px;
  margin: 0 auto;
}

.info-grid h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tud-blue);
}

.info-grid p {
  font-size: 1.08rem;
  color: var(--hspf-grau);
  margin: 0;
}

.team-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.team-header h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
}

.team-feature,
.team-grid {
  display: grid;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}

.team-feature {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 32px;
}

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

.person-card {
  text-align: center;
}

.person-card .avatar {
  width: clamp(126px, 12vw, 166px);
  height: clamp(126px, 12vw, 166px);
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 800;
  color: var(--tud-blue);
}

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

.placeholder-avatar {
  background: linear-gradient(135deg, #e8e4de, #f7f3ee);
  border: 1px dashed rgba(0, 0, 0, .15);
}

.person-name,
.person-email {
  display: block;
  text-align: center;
}

.person-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.person-email {
  font-size: .9rem;
  color: var(--hspf-grau);
}

.benefit-box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--hspf-gelb);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 44px);
  max-width: 900px;
  margin: 0 auto;
}

.benefit-box h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.benefit-box p {
  font-size: 1.08rem;
  color: var(--hspf-grau);
  margin: 0;
}

.cta-band {
  background: var(--tud-blue-deep);
  color: #fff;
  padding: clamp(64px, 8vw, 110px) 0;
  border-top: none;
}

.participation-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.participation-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 12px;
}

.participation-copy p {
  color: rgba(255, 255, 255, .82);
  max-width: 52ch;
  font-size: 1.05rem;
}

.participation-form {
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 24px;
}

.participation-form label {
  display: grid;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
}

.participation-form input,
.participation-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
}

.participation-form input::placeholder,
.participation-form textarea::placeholder {
  color: rgba(255, 255, 255, .55);
}

.participation-form button {
  margin-top: 12px;
  width: max-content;
  border: none;
  cursor: pointer;
}

.cta-gold {
  background: var(--hspf-gelb);
  color: var(--ink);
}

footer {
  padding: 56px 0;
  font-size: .98rem;
  color: var(--hspf-grau);
  text-align: center;
  border-top: 1px solid var(--line);
}

footer a {
  color: var(--hspf-grau);
  text-decoration: underline;
}

footer .footer-links {
  margin-top: 10px;
}

footer .footer-links a {
  margin: 0 12px;
}

/* Legal page */
.legal-page main {
  padding: clamp(52px, 6.5vw, 96px) 0 clamp(56px, 7vw, 104px);
}

.legal-page .content-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}

.legal-page .lede {
  color: var(--hspf-grau);
  font-size: 1.05rem;
  margin: 0 0 1.6em 0;
}

.legal-page h2 {
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tud-blue);
  margin: 2.1em 0 .6em 0;
}

.legal-page .info-box {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--hspf-gelb);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 1.1em 0;
  color: var(--ink);
}

.legal-page .info-box.placeholder {
  border-left-color: var(--hspf-gelb-deep);
  color: var(--hspf-grau);
}

.legal-page .inline-note {
  margin-top: 2.2em;
  font-size: .9rem;
  color: var(--hspf-grau);
}

.legal-page .back-link {
  font-weight: 700;
  color: var(--hspf-grau);
}

@media (max-width:900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participation-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width:700px) {
  .team-feature {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .legal-page .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 14px;
  }

  .brandmark {
    font-size: 1rem;
  }

  .legal-page .content-card {
    padding: 22px 18px;
  }
}

@media (max-width:560px) {
  .coop-inner {
    justify-content: center;
    text-align: center;
  }

  .coop-text {
    text-align: center;
  }

  .coop-logo {
    height: 108px;
    max-width: 450px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}