@import url('../fonts/fonts.css');

/* ============================================================
   German University Institute Wilhelm von Humboldt UAC
   Eigenes Stylesheet — enthält keinen fremden Code.
   ============================================================ */

:root {
  --navy: #15233e;
  --navy-deep: #0f1a2e;
  --cream: #f7f5f1;
  --burgundy: #45080c;
  --white: #ffffff;
  --rule: rgba(21, 35, 62, 0.15);
  --rule-light: rgba(255, 255, 255, 0.22);

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wide: 1344px;
  --narrow: 1016px;
  --text: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 .6em;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.365rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.84rem); }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.21rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* ---------- Sprungmarke ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--white); color: var(--navy);
  padding: .8rem 1.2rem; font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid #c9a227; outline-offset: 3px; }

/* ---------- Kopfbereich ---------- */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  max-width: var(--wide); margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-header__logo img { width: clamp(160px, 20vw, 250px); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--white); padding: .5rem; font: inherit;
}
.nav-toggle svg { display: block; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem);
}
.site-nav a {
  color: var(--white); text-decoration: none;
  text-transform: uppercase; font-weight: 600;
  font-size: .95rem; letter-spacing: .09em;
  padding: .35rem 0; display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--white); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--white); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); border-top: 1px solid var(--rule-light);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--rule-light); }
  .site-nav li:last-child a { border-bottom: 0; }
}

/* ---------- Abschnitte ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section--tight { padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.section--navy { background: var(--navy); color: var(--white); }
.section--burgundy { background: var(--burgundy); color: var(--white); }
.section--cream { background: var(--cream); }

.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.section--burgundy h1, .section--burgundy h2, .section--burgundy h3, .section--burgundy h4 { color: var(--white); }

.wrap { max-width: var(--wide); margin: 0 auto; }
.wrap--narrow { max-width: var(--narrow); margin: 0 auto; }
.wrap--text { max-width: var(--text); margin: 0 auto; }

/* Zweispaltig: Überschrift links, Fließtext rechts */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.split > h2, .split > h3 { margin-top: -.15em; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 1rem; } }

.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; letter-spacing: .012em; }

.eyebrow {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .16em; font-size: .8rem; font-weight: 600;
  opacity: .75; margin: 0 0 .9rem;
}

/* ---------- Bühne / Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(360px, 62vh, 620px);
  display: grid; place-items: center;
  padding: clamp(3rem, 9vw, 7rem) var(--gutter);
  text-align: center; color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero--tall { min-height: clamp(460px, 82vh, 820px); }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(21, 35, 62, .72);
}
.hero--burgundy::after { background: rgba(69, 8, 12, .74); }
.hero__inner { max-width: var(--narrow); }
.hero__logo { width: clamp(230px, 34vw, 480px); margin: 0 auto; }
.hero h1 { margin-bottom: .4em; }

.quote {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.18; font-weight: 400; margin: 0 0 1rem;
  text-wrap: balance;
}
.quote__author {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .16em; font-size: .85rem; font-weight: 600; opacity: .85; margin: 0;
}

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--sans); font-weight: 600;
  font-size: .95rem; letter-spacing: .09em; text-transform: uppercase;
  padding: .78rem 1.6rem; border: 2px solid var(--navy);
  background: var(--navy); color: var(--white);
  transition: background .18s ease, color .18s ease;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--navy); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover, .btn--light:focus-visible { background: transparent; color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Bild-/Text-Bänder ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.feature__media { position: relative; min-height: 320px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; }
.feature--flip .feature__media { order: 2; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media { min-height: 240px; }
}

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.card { display: flex; flex-direction: column; background: var(--white); }
.card--plain { background: transparent; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.035); }
.card__body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .45em; }
.card__body > p { flex: 1; }
.card__body .btn, .card__body .link-more { margin-top: 1.1rem; align-self: flex-start; }

.link-more {
  font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  font-size: .85rem; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: .15rem;
}
.link-more:hover { opacity: .7; }

/* ---------- Personen ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.person { background: var(--white); display: flex; flex-direction: column; }
.person__media { aspect-ratio: 3 / 2; overflow: hidden; }
.person__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.person__body { padding: 1.6rem 1.7rem 2rem; }

/* ---------- Lebenslauf ---------- */
.cv { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem clamp(1rem, 3vw, 2.5rem); margin: 0 0 2rem; }
.cv dt { font-weight: 700; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.cv dd { margin: 0 0 .9rem; }
@media (max-width: 620px) {
  .cv { grid-template-columns: 1fr; gap: 0; }
  .cv dt { padding-top: .8rem; }
  .cv dd { margin-bottom: .2rem; }
}

.reflist { list-style: none; margin: 0; padding: 0; }
.reflist li {
  padding: .75rem 0; border-top: 1px solid var(--rule);
  font-size: .97rem; line-height: 1.5;
}
.reflist li:first-child { border-top: 0; }

.bullets { margin: 0 0 1.5rem; padding-left: 1.15rem; }
.bullets li { margin-bottom: .35rem; }

/* ---------- Nachrichten ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.75rem, 3.5vw, 3rem); }
.post-card { display: flex; flex-direction: column; background: var(--white); text-decoration: none; color: inherit; }
.post-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.035); }
.post-card__body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; opacity: .65; margin: 0 0 .6rem; }
.post-card__body h3 { font-size: 1.22rem; margin-bottom: .5em; }
.post-card__body p { font-size: .97rem; flex: 1; }
.post-card__more { margin-top: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }

.article { max-width: var(--text); margin: 0 auto; }
.article__meta { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; margin: 0 0 1.5rem; }
.article__figure { margin: 2.5rem 0; }
.article__figure figcaption { font-size: .88rem; opacity: .7; margin-top: .6rem; }
.article p { font-size: 1.09rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); padding-top: 1.75rem; }
.post-nav a { text-decoration: none; }
.post-nav__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; opacity: .6; display: block; margin-bottom: .35rem; }
.post-nav__title { font-family: var(--serif); font-size: 1.02rem; line-height: 1.35; }
.post-nav > :nth-child(2) { text-align: right; }
.post-nav > :only-child { grid-column: 1 / -1; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav > :nth-child(2) { text-align: left; } }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 1.15rem; max-width: 620px; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--navy);
  padding: .75rem .9rem; border: 1px solid var(--rule);
  background: var(--white); border-radius: 0; width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: .88rem; opacity: .75; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-block { margin-bottom: 2rem; }
.contact-block h3 { margin-bottom: .4em; }
.contact-block a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: clamp(2.75rem, 6vw, 4.5rem) var(--gutter) 2.25rem; }
.site-footer__inner { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.25rem; }
.site-footer h2 { font-size: 1.1rem; margin-bottom: .7em; }
.site-footer p { font-size: .97rem; margin-bottom: .5em; }
.site-footer a { text-decoration: none; border-bottom: 1px solid var(--rule-light); }
.site-footer a:hover { border-bottom-color: var(--white); }
.site-footer__bar {
  max-width: var(--wide); margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--rule-light);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .87rem; opacity: .8;
}
.social { display: flex; gap: 1rem; list-style: none; margin: .9rem 0 0; padding: 0; }
.social a { border: 0; display: inline-flex; }
.social svg { width: 22px; height: 22px; fill: currentColor; opacity: .85; }
.social a:hover svg { opacity: 1; }

/* ---------- Hilfsklassen ---------- */
.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;
}
.stack > * + * { margin-top: clamp(2rem, 4vw, 3.25rem); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
