/* ==========================================================================
   Translational Neurosurgery Laboratory - Broggini / Czabanka
   Klinik fuer Neurochirurgie, Universitaetsklinikum Frankfurt
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0B0F14;
  --paper:      #FBFAF7;
  --paper-2:    #F2F0EA;
  --paper-line: #E2DED4;

  --text:       #16202B;
  --text-mute:  #5C6875;
  --text-faint: #8B95A1;

  --accent:      #1F5FE0;
  --accent-deep: #123C93;
  --accent-warm: #E4572E;
  --accent-teal: #14A3A3;

  --bg:        var(--paper);
  --bg-alt:    var(--paper-2);
  --surface:   #FFFFFF;
  --line:      var(--paper-line);
  --fg:        var(--text);
  --fg-mute:   var(--text-mute);
  --fg-faint:  var(--text-faint);
  --shadow:    0 1px 2px rgba(11,15,20,.04), 0 8px 24px -12px rgba(11,15,20,.18);
  --shadow-lg: 0 2px 4px rgba(11,15,20,.05), 0 24px 60px -24px rgba(11,15,20,.30);

  --font-display: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="dark"] {
  --bg:      #0B0F14;
  --bg-alt:  #0F151D;
  --surface: #141C26;
  --line:    #24303E;
  --fg:      #EAEEF3;
  --fg-mute: #9CA9B8;
  --fg-faint:#6D7A89;
  --accent:      #6D9BFF;
  --accent-deep: #A9C4FF;
  --accent-warm: #FF8A5F;
  --accent-teal: #35C9C9;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 30px 70px -28px rgba(0,0,0,.85);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* `clip` contains stray horizontal overflow without turning the element into
     a scroll container the way `hidden` does — `hidden` on <body> makes the body
     the scroller and desynchronises position:fixed painting during scroll. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background .4s var(--ease), color .4s var(--ease);
}
/* `height: auto` is required: the width/height attributes on <img> are
   presentational hints for the CSS width/height properties, so without this an
   attribute like height="960" fixes the rendered height and stretches the image.
   Rules below that set an explicit height (.rcard-media img, .gitem img) still win. */
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--ink);
  color: #EAEEF3;
  --fg: #EAEEF3; --fg-mute: #9CA9B8; --fg-faint: #6D7A89;
  --line: #24303E; --surface: #141C26;
  --accent: #6D9BFF; --accent-warm: #FF8A5F; --accent-teal: #35C9C9;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; flex: none;
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--fg-mute); max-width: 62ch; }
.section-head { max-width: 68ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem var(--pad);
  transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding-block: .6rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.nav-logo img { height: 34px; width: auto; filter: invert(1); transition: height .35s var(--ease), filter .4s var(--ease); }
.nav.is-stuck .nav-logo img { height: 28px; }
html:not([data-theme="dark"]) .nav.is-stuck .nav-logo img { filter: none; }
.nav-links { display: flex; gap: .35rem; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: .45rem .8rem; border-radius: 8px; color: #A9B6C6;
  transition: color .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.nav.is-stuck .nav-links a { color: var(--fg-mute); }
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.nav.is-stuck .nav-links a:hover, .nav.is-stuck .nav-links a.is-active { color: var(--fg); }
.nav:not(.is-stuck) .nav-links a:hover, .nav:not(.is-stuck) .nav-links a.is-active { color: #fff; background: rgba(255,255,255,.1); }
.theme-toggle {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: transparent;
  cursor: pointer; color: #A9B6C6;
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
}
.nav.is-stuck .theme-toggle { border-color: var(--line); color: var(--fg-mute); }
.theme-toggle:hover { color: var(--fg); border-color: var(--fg-faint); transform: rotate(18deg); }
.nav:not(.is-stuck) .theme-toggle:hover { color: #fff; border-color: rgba(255,255,255,.6); }
.theme-toggle svg { width: 17px; height: 17px; }
html[data-theme="dark"] .icon-sun, html:not([data-theme="dark"]) .icon-moon { display: none; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-toggle {
    display: grid; place-items: center; width: 38px; height: 38px; flex: none;
    background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; cursor: pointer;
    color: #EAEEF3;
  }
  .nav.is-stuck .nav-toggle { border-color: var(--line); color: var(--fg); }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 5.4rem var(--pad) 2rem;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-102%); transition: transform .45s var(--ease-out);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a,
  .nav:not(.is-stuck) .nav-links a { padding: .85rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--fg-mute); background: none; }
  .nav-links a:last-child { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 8rem 4rem;
  background: var(--ink); color: #EAEEF3;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90ch 60ch at 78% 18%, rgba(31,95,224,.30), transparent 62%),
    radial-gradient(70ch 50ch at 18% 88%, rgba(20,163,163,.20), transparent 60%),
    radial-gradient(50ch 40ch at 92% 92%, rgba(228,87,46,.16), transparent 60%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2.5%, 0) scale(1.09); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 120% 85% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 120% 85% at 50% 40%, #000 30%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: #9CB6EE; border: 1px solid rgba(156,182,238,.3); border-radius: 999px;
  padding: .4rem .95rem; margin-bottom: 1.6rem; background: rgba(31,95,224,.10);
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #35C9C9; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(53,201,201,.55); } 70% { box-shadow: 0 0 0 11px rgba(53,201,201,0); } 100% { box-shadow: 0 0 0 0 rgba(53,201,201,0); } }

.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent {
  background: linear-gradient(100deg, #6D9BFF 0%, #35C9C9 46%, #FF8A5F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: #A9B6C6; max-width: 54ch; margin-bottom: 2rem; }
.hero-affil { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .87rem; color: #8494A6; margin-bottom: 2.2rem; }
.hero-affil span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-affil svg { width: 14px; height: 14px; opacity: .75; flex: none; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.5rem; border-radius: 999px; text-decoration: none;
  font-size: .93rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease-out), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: #fff; color: #0B0F14; box-shadow: 0 10px 30px -12px rgba(255,255,255,.5); }
.btn-primary:hover { box-shadow: 0 16px 38px -12px rgba(255,255,255,.6); }
.btn-ghost { border-color: rgba(255,255,255,.26); color: #EAEEF3; }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); }
.btn-solid { background: var(--accent); color: #fff; box-shadow: 0 12px 30px -14px var(--accent); }
.btn-line { border-color: var(--line); color: var(--fg); }
.btn-line:hover { border-color: var(--fg-faint); background: color-mix(in srgb, var(--fg) 5%, transparent); }

/* Hero figure */
.hero-figure { position: relative; }
.hero-figure-inner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 90px -30px rgba(31,95,224,.4);
  background: #10141a;
}
.hero-figure-inner img { width: 100%; }
.hero-figure-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 1.3rem .95rem;
  background: linear-gradient(transparent, rgba(8,11,15,.95));
  font-size: .78rem; color: #A9B6C6; line-height: 1.5;
}
.hero-figure-cap strong { color: #EAEEF3; font-weight: 600; }
.hero-badge {
  position: absolute; top: -14px; right: -14px; z-index: 3;
  background: #E4572E; color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .85rem; border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(228,87,46,.85);
  transform: rotate(4deg);
}
@media (max-width: 940px) { .hero-badge { right: 6px; } }

/* Hero stats */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: clamp(3rem, 6vw, 4.5rem);
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: rgba(11,15,20,.55); padding: 1.5rem 1.3rem; backdrop-filter: blur(6px); }
.stat-num { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; color: #fff; line-height: 1; letter-spacing: -.03em; }
.stat-num sup { font-size: .45em; color: #35C9C9; top: -.9em; }
.stat-lab { font-size: .76rem; color: #8494A6; margin-top: .5rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3;
  display: grid; place-items: center; gap: .5rem; color: #6D7A89; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
}
.scroll-hint span { width: 1px; height: 34px; background: linear-gradient(#6D7A89, transparent); animation: slide 2.2s ease-in-out infinite; }
@keyframes slide { 0%,100% { opacity: .25; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@media (max-height: 760px) { .scroll-hint { display: none; } }

/* ---------- Split / Mission ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 68%; transition: transform 1.1s var(--ease-out); }
.split-media:hover img { transform: scale(1.045); }

.pillars { display: grid; gap: 1.6rem; margin-top: 2.2rem; }
.pillar { display: grid; grid-template-columns: 40px 1fr; gap: 1.1rem; align-items: start; }
.pillar-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); flex: none;
}
.pillar-ico svg { width: 19px; height: 19px; }
.pillar h4 { font-family: var(--font-body); font-size: .98rem; font-weight: 650; margin: 0 0 .25em; letter-spacing: 0; }
.pillar p { font-size: .93rem; color: var(--fg-mute); margin: 0; }

/* ---------- Research cards ---------- */
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 720px) { .research-grid { grid-template-columns: 1fr; } }
.rcard {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s var(--ease);
  display: flex; flex-direction: column;
}
.rcard:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.rcard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.rcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.rcard:hover .rcard-media img { transform: scale(1.07); }
.rcard-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, color-mix(in srgb, var(--accent-deep) 60%, transparent));
  opacity: .5; transition: opacity .5s var(--ease);
}
.rcard:hover .rcard-media::after { opacity: .22; }
.rcard-n {
  position: absolute; top: .9rem; left: 1rem; z-index: 2;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  color: #fff; background: rgba(11,15,20,.55); backdrop-filter: blur(6px);
  padding: .25rem .6rem; border-radius: 6px;
}
.rcard-body { padding: 1.5rem 1.5rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.rcard-body h3 { margin-bottom: .5rem; }
.rcard-body p { font-size: .93rem; color: var(--fg-mute); margin-bottom: 1.1rem; }
.rcard-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.tag {
  font-size: .72rem; font-weight: 500; padding: .28rem .68rem; border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg-mute);
  border: 1px solid var(--line);
}

/* ---------- Featured / Neuron ---------- */
.feature-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.cover-wrap { position: relative; perspective: 1400px; }
.cover {
  border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.85);
  transform: rotateY(-11deg) rotateX(3deg); transform-style: preserve-3d;
  transition: transform .9s var(--ease-out), box-shadow .9s var(--ease-out);
  border: 1px solid rgba(255,255,255,.12);
}
.cover:hover { transform: rotateY(-3deg) rotateX(1deg) translateY(-6px); box-shadow: 0 55px 100px -30px rgba(0,0,0,.9); }
.cover img { width: 100%; }
.cover-tag {
  margin-top: 1.2rem; text-align: center; font-size: .78rem; color: var(--fg-faint);
  font-family: var(--font-mono); letter-spacing: .05em;
}
.quote {
  border-left: 3px solid var(--accent-warm); padding: .3rem 0 .3rem 1.5rem;
  margin: 1.8rem 0; font-family: var(--font-display); font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-style: italic; line-height: 1.5; color: var(--fg);
}
.quote cite { display: block; margin-top: .8rem; font-family: var(--font-body); font-size: .82rem; font-style: normal; color: var(--fg-faint); }
.feat-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip {
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  padding: .32rem .8rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ---------- Team ---------- */
.pi-card {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  margin-bottom: 3.5rem;
}
@media (max-width: 820px) { .pi-card { grid-template-columns: 1fr; } }
.pi-photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.pi-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.pi-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-teal), var(--accent-warm));
}
.pi-name { margin-bottom: .15em; }
.pi-role { font-size: .92rem; color: var(--accent); font-weight: 600; margin-bottom: 1.2rem; }
.pi-card p { font-size: .96rem; color: var(--fg-mute); }
.pi-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.pi-links a {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 500; text-decoration: none;
  padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg-mute); transition: all .28s var(--ease);
}
.pi-links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.pi-links svg { width: 14px; height: 14px; }

.timeline { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.5rem; display: grid; gap: .1rem; }
.tl-row { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); font-size: .9rem; }
.tl-row:last-child { border-bottom: 0; }
.tl-yr { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); padding-top: .12em; }
.tl-txt { color: var(--fg-mute); }
.tl-txt b { color: var(--fg); font-weight: 600; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 1.5rem; }
.member-photo {
  position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem;
  background: var(--bg-alt); box-shadow: var(--shadow);
}
.member-photo img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  filter: grayscale(1) contrast(1.02); transition: filter .6s var(--ease), transform .8s var(--ease-out);
}
.member:hover .member-photo img { filter: grayscale(0) contrast(1); transform: scale(1.04); }
.member h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 650; margin: 0 0 .15em; letter-spacing: 0; }
.member p { font-size: .85rem; color: var(--fg-mute); margin: 0; }
.member-join {
  display: grid; place-content: center; text-align: center; gap: .6rem;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  aspect-ratio: 2 / 3; padding: 1.5rem; text-decoration: none;
  color: var(--fg-mute); transition: all .35s var(--ease);
}
.member-join:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.member-join .plus { font-size: 1.9rem; font-family: var(--font-display); line-height: 1; }
.member-join span { font-size: .86rem; font-weight: 600; }

/* ---------- Publications ---------- */
.pub-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 2rem; }
.filter {
  font-size: .84rem; font-weight: 500; padding: .48rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--fg-mute);
  cursor: pointer; transition: all .28s var(--ease); white-space: nowrap;
}
.filter:hover { color: var(--fg); border-color: var(--fg-faint); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter .n { opacity: .55; margin-left: .35rem; font-size: .78em; font-family: var(--font-mono); }
.pub-count { margin-left: auto; font-size: .82rem; color: var(--fg-faint); font-family: var(--font-mono); }
@media (max-width: 700px) { .pub-count { margin-left: 0; width: 100%; } }

.pub-list { border-top: 1px solid var(--line); }
.pub {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 1.3rem; align-items: baseline;
  padding: 1.25rem .6rem; border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), padding-left .3s var(--ease);
  animation: pubIn .5s var(--ease-out) both;
}
@keyframes pubIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pub:hover { background: color-mix(in srgb, var(--fg) 3.5%, transparent); padding-left: 1.1rem; }
.pub[hidden] { display: none; }
@media (max-width: 760px) { .pub { grid-template-columns: 50px 1fr; gap: .8rem; } .pub-links { grid-column: 2; } }
.pub-yr { font-family: var(--font-mono); font-size: .84rem; color: var(--fg-faint); }
.pub-title { font-size: .99rem; font-weight: 550; line-height: 1.45; margin: 0 0 .35rem; }
.pub-authors { font-size: .84rem; color: var(--fg-mute); line-height: 1.5; margin: 0 0 .4rem; }
.pub-authors b { color: var(--fg); font-weight: 650; }
.pub-jrnl { font-size: .8rem; color: var(--fg-faint); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pub-jrnl em { font-style: italic; color: var(--fg-mute); font-weight: 500; }
.pub-star { color: var(--accent-warm); font-size: .72rem; letter-spacing: .04em; font-weight: 650; text-transform: uppercase; }
.pub-links { display: flex; gap: .4rem; padding-top: .1rem; }
.pub-links a {
  font-size: .74rem; font-weight: 600; text-decoration: none; letter-spacing: .03em;
  padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 7px;
  color: var(--fg-faint); transition: all .25s var(--ease); white-space: nowrap;
}
.pub-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.gitem {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: zoom-in; background: var(--bg-alt); border: 0; padding: 0; display: block;
}
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.gitem:hover img { transform: scale(1.06); }
.gitem::after {
  content: attr(data-cap); position: absolute; inset: auto 0 0 0;
  padding: 2.6rem .9rem .8rem; font-size: .78rem; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(8,11,15,.9));
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.gitem:hover::after, .gitem:focus-visible::after { opacity: 1; transform: none; }
.g-lg { grid-column: span 7; aspect-ratio: 16/10; }
.g-sm { grid-column: span 5; aspect-ratio: 16/10; }
.g-md { grid-column: span 4; aspect-ratio: 4/3; }
.g-tall { grid-column: span 4; aspect-ratio: 3/4; }
.g-pt { grid-column: span 3; aspect-ratio: 3/4; }
@media (max-width: 780px) {
  .g-lg, .g-sm { grid-column: span 12; }
  .g-md, .g-pt { grid-column: span 6; }
  .g-tall { grid-column: span 12; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  place-items: center; padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6,9,13,.94); backdrop-filter: blur(10px);
}
.lightbox.is-open { display: grid; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--radius); box-shadow: 0 40px 100px -30px #000; animation: zoomIn .45s var(--ease-out); }
@keyframes zoomIn { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox figcaption { color: #A9B6C6; font-size: .86rem; text-align: center; margin-top: 1rem; }
.lightbox-close {
  position: absolute; top: 1.4rem; right: 1.6rem; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
  color: #fff; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; line-height: 1;
  transition: background .28s var(--ease), transform .28s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,.16); transform: rotate(90deg); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-rows { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.crow {
  display: grid; grid-template-columns: 116px 1fr; gap: 1.2rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.crow dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); font-weight: 600; padding-top: .28em; }
.crow dd { margin: 0; font-size: .96rem; }
.crow dd a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.crow dd a:hover { border-bottom-color: currentColor; }
.contact-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #8494A6; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; padding-bottom: 2.5rem; border-bottom: 1px solid #24303E; }
.footer-logo img { height: 40px; filter: invert(1); margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; max-width: 40ch; margin: 0; }
.footer-nav { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); gap: .5rem 3rem; }
@media (max-width: 640px) { .footer-nav { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr 1fr; } }
.footer-nav a { font-size: .88rem; text-decoration: none; color: #8494A6; transition: color .25s var(--ease); }
.footer-nav a:hover { color: #EAEEF3; }
.footer-bot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.8rem; font-size: .78rem; color: #5D6B7C; }
.footer-bot a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-bot a:hover { color: #A9B6C6; border-bottom-color: currentColor; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   Multi-page additions — sub-page hero, team roster, gallery categories
   ========================================================================== */

/* ---------- Compact hero for sub-pages ---------- */
.page-hero {
  position: relative; background: var(--ink); color: #EAEEF3;
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70ch 44ch at 82% 8%, rgba(31,95,224,.30), transparent 62%),
    radial-gradient(52ch 36ch at 10% 96%, rgba(20,163,163,.18), transparent 62%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 120% 100% at 50% 35%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 35%, #000 25%, transparent 80%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: #9CB6EE; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.page-hero p { color: #A9B6C6; font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 60ch; margin: 0; }

/* Breadcrumb */
.crumb { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: #6D7A89; margin: 0 0 2.2rem; }
.crumb a { color: #9CB6EE; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- Team roster ---------- */
.roster-head {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin: clamp(3rem, 6vw, 4.5rem) 0 2rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.roster-head h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.roster-head .count {
  font-family: var(--font-mono); font-size: .78rem; color: var(--fg-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem;
}
.roster-head p { margin: 0 0 0 auto; font-size: .88rem; color: var(--fg-mute); max-width: 44ch; }
@media (max-width: 720px) { .roster-head p { margin-left: 0; } }

/* Monogram avatar for members without a portrait */
.member-photo.is-mono {
  display: grid; place-items: center; aspect-ratio: 2 / 3;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 70%);
  border: 1px solid var(--line);
}
.member-photo.is-mono span {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 600;
  color: var(--accent); letter-spacing: .02em;
}
.member-photo.is-mono small {
  position: absolute; inset: auto 0 .9rem 0; text-align: center;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint);
}

/* Alumni cards are quieter than current members */
.team-grid.is-alumni .member-photo img { filter: grayscale(1) contrast(.98) brightness(1.04); opacity: .82; }
.team-grid.is-alumni .member:hover .member-photo img { opacity: 1; }
.member .years { font-size: .78rem; color: var(--fg-faint); margin-top: .15rem; }

/* ---------- Gallery categories ---------- */
.cat {
  display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap;
  margin: clamp(3rem, 6vw, 4.5rem) 0 1.6rem;
}
.cat:first-of-type { margin-top: 0; }
.cat h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.cat span { font-size: .84rem; color: var(--fg-mute); }
.cat::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 2rem; }

/* Activity cards */
.act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.act {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.act:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.act-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.act-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.act:hover .act-media img { transform: scale(1.06); }
.act-body { padding: 1.1rem 1.3rem 1.4rem; }
.act-body h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 650; margin: 0 0 .2em; letter-spacing: 0; }
.act-body p { font-size: .86rem; color: var(--fg-mute); margin: 0; }
.act-when { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); letter-spacing: .04em; }

/* ---------- Home: section teaser link ---------- */
.more {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.8rem;
  font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--accent);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.more:hover { border-bottom-color: currentColor; gap: .8rem; }
.more svg { width: 15px; height: 15px; }
.section-foot { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; justify-content: center; }

/* ==========================================================================
   LIGHT THEME — hero + nav
   The hero used to be dark in both themes, which made the theme toggle look
   broken: clicking it changed nothing above the fold. These rules give the
   hero a genuine light treatment so the switch is visible immediately.
   ========================================================================== */

html:not([data-theme="dark"]) .hero,
html:not([data-theme="dark"]) .page-hero {
  background: var(--paper);
  color: var(--text);
}

/* Softer, lighter colour wash */
html:not([data-theme="dark"]) .hero::before {
  background:
    radial-gradient(90ch 60ch at 78% 18%, rgba(31,95,224,.13), transparent 62%),
    radial-gradient(70ch 50ch at 18% 88%, rgba(20,163,163,.10), transparent 60%),
    radial-gradient(50ch 40ch at 92% 92%, rgba(228,87,46,.09), transparent 60%);
}
html:not([data-theme="dark"]) .page-hero::before {
  background:
    radial-gradient(70ch 44ch at 82% 8%, rgba(31,95,224,.13), transparent 62%),
    radial-gradient(52ch 36ch at 10% 96%, rgba(20,163,163,.09), transparent 62%);
}
/* Grid lines become dark-on-light instead of light-on-dark */
html:not([data-theme="dark"]) .hero::after,
html:not([data-theme="dark"]) .page-hero::after {
  background-image: linear-gradient(rgba(22,32,43,.055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(22,32,43,.055) 1px, transparent 1px);
}

html:not([data-theme="dark"]) .hero h1,
html:not([data-theme="dark"]) .page-hero h1 { color: var(--text); }
html:not([data-theme="dark"]) .hero-sub,
html:not([data-theme="dark"]) .page-hero p { color: var(--text-mute); }
html:not([data-theme="dark"]) .hero-affil { color: var(--text-faint); }
html:not([data-theme="dark"]) .page-hero .eyebrow { color: var(--accent); }
html:not([data-theme="dark"]) .crumb { color: var(--text-faint); }
html:not([data-theme="dark"]) .crumb a { color: var(--accent); }

html:not([data-theme="dark"]) .hero-eyebrow {
  color: var(--accent-deep);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* Buttons: the white-on-dark pair has to invert */
html:not([data-theme="dark"]) .hero .btn-primary,
html:not([data-theme="dark"]) .page-hero .btn-primary {
  background: var(--text); color: var(--paper);
  box-shadow: 0 10px 30px -12px rgba(22,32,43,.45);
}
html:not([data-theme="dark"]) .hero .btn-ghost,
html:not([data-theme="dark"]) .page-hero .btn-ghost {
  border-color: var(--line); color: var(--text);
}
html:not([data-theme="dark"]) .hero .btn-ghost:hover,
html:not([data-theme="dark"]) .page-hero .btn-ghost:hover {
  border-color: var(--text-faint); background: color-mix(in srgb, var(--text) 5%, transparent);
}

/* Stats strip */
html:not([data-theme="dark"]) .hero-stats {
  background: var(--line); border-color: var(--line);
}
html:not([data-theme="dark"]) .stat { background: color-mix(in srgb, var(--surface) 88%, transparent); }
html:not([data-theme="dark"]) .stat-num { color: var(--text); }
html:not([data-theme="dark"]) .stat-num sup { color: var(--accent-teal); }
html:not([data-theme="dark"]) .stat-lab { color: var(--text-faint); }

html:not([data-theme="dark"]) .scroll-hint { color: var(--text-faint); }
html:not([data-theme="dark"]) .scroll-hint span { background: linear-gradient(var(--text-faint), transparent); }

/* Nav sitting on a light hero */
html:not([data-theme="dark"]) .nav-logo img { filter: none; }
html:not([data-theme="dark"]) .nav-links a { color: var(--text-mute); }
html:not([data-theme="dark"]) .nav:not(.is-stuck) .nav-links a:hover,
html:not([data-theme="dark"]) .nav:not(.is-stuck) .nav-links a.is-active {
  color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent);
}
html:not([data-theme="dark"]) .theme-toggle,
html:not([data-theme="dark"]) .nav-toggle {
  border-color: var(--line); color: var(--text-mute);
}
html:not([data-theme="dark"]) .nav:not(.is-stuck) .theme-toggle:hover {
  color: var(--text); border-color: var(--text-faint);
}

/* Icon direction: show the destination, not the current state.
   Light theme -> moon (click for dark).  Dark theme -> sun (click for light). */
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun  { display: block; }
html:not([data-theme="dark"]) .icon-sun  { display: none; }
html:not([data-theme="dark"]) .icon-moon { display: block; }

/* The hero title gradient is tuned for a dark ground; on paper the warm end
   washes out, so deepen all three stops in the light theme. */
html:not([data-theme="dark"]) .hero h1 .accent {
  background: linear-gradient(100deg, #1B4FC4 0%, #0E8C8C 46%, #C2431E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Location map
   Loaded on click rather than on page load: embedding Google Maps directly
   contacts Google and sets cookies before the visitor has agreed to anything,
   which a German university site should not do unprompted.
   ========================================================================== */
.map {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.map-embed { display: block; width: 100%; height: 340px; border: 0; }
.map-consent {
  display: grid; place-items: center; gap: .9rem;
  padding: clamp(1.8rem, 4vw, 2.6rem) 1.4rem; text-align: center;
}
.map-consent .pin {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.map-consent .pin svg { width: 20px; height: 20px; }
.map-consent h4 {
  font-family: var(--font-body); font-size: .98rem; font-weight: 650;
  margin: 0; letter-spacing: 0;
}
.map-consent p { font-size: .84rem; color: var(--fg-mute); margin: 0; max-width: 40ch; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: .3rem; }
.map-actions .btn { padding: .6rem 1.1rem; font-size: .86rem; }

/* ==========================================================================
   Equipment list (Research page)
   ========================================================================== */
.equip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.equip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem 1.6rem 1.4rem;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s var(--ease);
}
.equip:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.equip-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.equip-ico {
  width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.equip-ico svg { width: 19px; height: 19px; }
.equip-head h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 650; margin: 0; letter-spacing: 0; }
.equip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.equip li {
  font-size: .89rem; color: var(--fg-mute); line-height: 1.5;
  padding-left: 1rem; position: relative;
}
.equip li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .5;
}
.equip li b { color: var(--fg); font-weight: 600; }
.equip li span { color: var(--fg-faint); }

/* ==========================================================================
   Legal pages (Impressum)
   ========================================================================== */
.legal { max-width: 68ch; }
.legal h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  margin: clamp(2.4rem, 5vw, 3.4rem) 0 .9rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-family: var(--font-body); font-size: 1rem; font-weight: 650;
  letter-spacing: 0; margin: 1.8rem 0 .4rem;
}
.legal p { color: var(--fg-mute); font-size: .97rem; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal address { font-style: normal; color: var(--fg); line-height: 1.75; }
.legal ul { color: var(--fg-mute); font-size: .95rem; padding-left: 1.1rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: .35rem; }
.legal .note {
  border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem; color: var(--fg-mute); margin: 1.2rem 0;
}
.legal .note strong { color: var(--fg); }
.legal .updated { font-family: var(--font-mono); font-size: .78rem; color: var(--fg-faint); margin-top: 2.5rem; }

/* Two-by-two variant for four-card groups (New students page) */
@media (min-width: 760px) {
  .equip-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

/* Training cards (New students page) */
.train-who { font-size: .86rem; color: var(--fg-mute); margin: -.4rem 0 1rem; line-height: 1.5; }
.equip li a b { color: var(--accent); }
.equip li a:hover b { text-decoration: underline; }
