/* Janssen Lab – static RUB-style website
   Colours and typography follow the RUB Markenportal (corporate design 2026):
   RUB Blau + white as primary colours, one complementary set (RUB Hellblau),
   house font RUB Inter. https://markenportal.ruhr-uni-bochum.de/corporate-design/ */

@font-face {
  font-family: "RUB Inter";
  src: url("fonts/RUBInter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RUB Inter";
  src: url("fonts/RUBInter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RUB Inter";
  src: url("fonts/RUBInter-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Verified against markenportal.ruhr-uni-bochum.de/corporate-design/farben/ */
  --rub-blue: #003560;          /* RUB Blau */
  --white: #ffffff;             /* Weiß */
  --rub-lightblue: #66b3fb;     /* RUB Hellblau 100 – large text / graphics only */
  --rub-lightblue-50: #dcebfb;  /* RUB Hellblau 50 – small text allowed */

  --line: rgba(0, 53, 96, 0.2); /* hairlines derived from RUB Blau */
  --font: "RUB Inter", Arial, Helvetica, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --pad: clamp(24px, 3.6vw, 48px);     /* inner padding of graphic blocks */
  --radius: clamp(8px, 1.2vw, 16px);   /* ≈ 1/3 of the inner padding */
  --space: clamp(56px, 8vw, 104px);    /* vertical rhythm between sections */
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--rub-blue);
  background: var(--white);
  overflow-wrap: break-word;
}

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

a { color: var(--rub-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--rub-blue); outline-offset: 3px; border-radius: 2px; }
.on-blue :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--space); }

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.lead { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; max-width: 46em; }
.measure { max-width: 46em; }
.small { font-size: 0.9375rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ header */

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--rub-blue); color: var(--white); padding: 10px 16px; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; outline-color: var(--rub-lightblue); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }

.institution-bar { border-bottom: 1px solid var(--line); }
.institution-bar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
/* RUB-LOGO: Replace the text in .rub-identity with the authorised official
   RUB logo file (markenportal.ruhr-uni-bochum.de/logo/logo-dateien/), e.g.
   <img src="assets/rub-logo.svg" alt="Ruhr-Universität Bochum" width="…" height="40">.
   Do not redraw or modify the logo. */
.rub-identity {
  font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
}
.institution-bar .affiliation { font-size: 0.875rem; margin: 0; text-align: right; }
.institution-bar .affiliation a { text-decoration: none; }
.institution-bar .affiliation a:hover { text-decoration: underline; }

.site-id .container {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 28px;
}
.site-title { display: block; text-decoration: none; padding-bottom: 20px; }
.site-title strong { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.site-title span { display: block; font-size: 1rem; margin-top: 4px; }

.nav-toggle { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 12px 14px 17px; font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--rub-lightblue); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--rub-blue); }

.breadcrumb { font-size: 0.875rem; padding-top: 20px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }

/* ------------------------------------------------------------- page heads */

.page-head { padding-top: clamp(32px, 5vw, 64px); }
.page-head h1 { max-width: 16em; }
.page-head .lead { margin-top: 0.4em; }

/* ------------------------------------------------------------------ blocks */

.block { border-radius: var(--radius); padding: var(--pad); }
.block-blue { background: var(--rub-blue); color: var(--white); }
.block-blue a { color: var(--white); }
.block-light { background: var(--rub-lightblue-50); }
.block-line { border: 2px solid var(--rub-blue); }

/* Hero with two overlapping blocks (RUB layout principle) */
.hero { padding-top: clamp(24px, 4vw, 48px); }
.hero-main { padding-bottom: calc(var(--pad) * 2.2); }
.hero-main h1 { margin-bottom: 0.4em; max-width: 12em; }
.hero-main .lead { font-weight: 600; max-width: 30em; }
.hero-main p { max-width: 42em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-aside {
  position: relative;
  margin: calc(var(--pad) * -1.2) 0 0 auto;
  width: min(100% - var(--pad), 520px);
  margin-right: var(--pad);
}
.hero-aside dl { margin: 0; display: grid; gap: 14px; }
.hero-aside dt { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-aside dd { margin: 0; font-weight: 600; }

/* Buttons */
.button {
  display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--rub-blue); background: var(--rub-blue); color: var(--white);
}
.button:hover { background: var(--white); color: var(--rub-blue); }
.button-outline { background: transparent; color: var(--rub-blue); }
.button-outline:hover { background: var(--rub-lightblue-50); }
.on-blue .button, .block-blue .button { background: var(--white); color: var(--rub-blue); border-color: var(--white); }
.on-blue .button:hover, .block-blue .button:hover { background: var(--rub-lightblue-50); border-color: var(--rub-lightblue-50); }
.on-blue .button-outline, .block-blue .button-outline { background: transparent; color: var(--white); }
.on-blue .button-outline:hover, .block-blue .button-outline:hover { background: var(--white); color: var(--rub-blue); }

.more { font-weight: 600; }
.more::after { content: " →"; }

/* --------------------------------------------- Learn → Apply → Research */

.path { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.path > li { position: relative; border-radius: var(--radius); padding: var(--pad); display: flex; flex-direction: column; }
.path > li:nth-child(1) { border: 2px solid var(--rub-blue); }
.path > li:nth-child(2) { background: var(--rub-lightblue-50); }
.path > li:nth-child(3) { background: var(--rub-blue); color: var(--white); }
.path > li:nth-child(3) a { color: var(--white); }
.path > li + li::before {
  content: "→"; position: absolute; left: -32px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 800; color: var(--rub-blue);
}
.path .step { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.path h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.path .examples { font-weight: 600; margin-top: auto; padding-top: 8px; }
.path .links { margin: 12px 0 0; }

/* ---------------------------------------------------------- theme lists */

.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; margin-top: 40px; }
.themes > * { border-top: 3px solid var(--rub-blue); padding-top: 20px; }
.themes h3 { margin-bottom: 0.25em; }
.themes .subtitle { font-weight: 600; }
.themes p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; margin-top: 32px; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 600; padding-bottom: 12px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--rub-lightblue-50); font-weight: 600; border-bottom: 0; }
thead th:first-child { border-radius: 8px 0 0 8px; }
thead th:last-child { border-radius: 0 8px 8px 0; }
tbody th { font-weight: 600; width: 38%; }

.note { border-left: 4px solid var(--rub-lightblue); padding: 4px 0 4px 18px; margin: 24px 0 0; max-width: 46em; }

/* ------------------------------------------------------------ highlights */

.highlights { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px; }
.highlight { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; }
.highlight .meta { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.highlight h3 { margin-bottom: 0.5em; }
.highlight figure { margin: 8px 0 20px; }
.highlight figure img { max-height: 380px; width: auto; }
.highlight .cite { font-size: 0.9375rem; margin-top: auto; }

/* --------------------------------------------------------------- figures */

figure { margin: 32px 0 0; }
figure img { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
figcaption { font-size: 0.9375rem; margin-top: 12px; max-width: 52em; }
figcaption .credit { display: block; margin-top: 4px; font-size: 0.875rem; }
.figure-narrow img { max-width: min(100%, 420px); }

/* ------------------------------------------------------- research pages */

.theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; border-top: 3px solid var(--rub-blue); padding-top: 28px; margin-top: var(--space); scroll-margin-top: 24px; }
.theme:first-of-type, .theme.skill { margin-top: 48px; }
.theme .subtitle { font-size: 1.2rem; font-weight: 600; }
.theme figure { margin-top: 0; }
.theme-full { grid-column: 1 / -1; }
.related { list-style: none; padding: 0; margin: 0; }
.related li, .pubs li { overflow-wrap: anywhere; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.related li:first-child { padding-top: 0; }

.inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.inline-list li { border: 1px solid var(--rub-blue); border-radius: 999px; padding: 3px 12px; font-size: 0.875rem; font-weight: 600; }

/* ------------------------------------------------------------- two cols */

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

.checklist { list-style: none; padding: 0; }
.checklist li { padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 7px; border-left: 3px solid var(--rub-blue); border-bottom: 3px solid var(--rub-blue); transform: rotate(-45deg); }

.options { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 56px; }
.options li { border-top: 3px solid var(--rub-blue); padding-top: 18px; }
.options h3 { margin-bottom: 0.4em; }

.contact-block address { font-style: normal; }
.contact-block p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- software */

.software { list-style: none; padding: 0; margin: 32px 0 0; }
.software > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 56px; padding: 32px 0; border-top: 1px solid var(--line); }
.software h3 { margin-bottom: 0.25em; }
.software .tagline { font-weight: 600; }
.software .links { list-style: none; padding: 0; margin: 12px 0 0; }
.software .links li { margin: 4px 0; }
.software-strip { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; font-weight: 600; }

/* ----------------------------------------------------------- publications */

.pub-nav { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.pub-year { margin-top: 56px; scroll-margin-top: 24px; }
.pub-year h2 { font-size: 1.75rem; border-bottom: 3px solid var(--rub-blue); padding-bottom: 10px; margin-bottom: 0; }
.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pubs .title { font-weight: 600; }
.pubs .selected { display: inline-block; font-size: 0.8125rem; font-weight: 600; background: var(--rub-lightblue-50); border-radius: 999px; padding: 1px 10px; margin-left: 6px; vertical-align: 2px; }

/* ----------------------------------------------------------------- people */

.person { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 48px; }
/* PORTRAIT: replace .portrait with
   <img class="portrait-img" src="assets/people/jan-janssen.jpg" alt="Portrait of Jan Janssen" width="560" height="700">
   once a photograph with web-publication rights is available. */
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--rub-lightblue-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 800; letter-spacing: -0.04em;
}
.portrait-img { border-radius: var(--radius); }
.person .role { font-size: 1.2rem; font-weight: 600; margin-bottom: 1em; }
.cv { list-style: none; padding: 0; margin: 0; }
.cv li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cv .years { font-weight: 600; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--rub-blue); color: var(--white); margin-top: var(--space); font-size: 0.9375rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h2 { font-size: 1rem; font-weight: 800; letter-spacing: 0; margin-bottom: 12px; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 6px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.35); }
.footer-legal .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 28px; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal p { margin: 0; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .path > li + li::before { content: "↓"; left: 50%; top: -30px; transform: translateX(-50%); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .theme { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .themes, .highlights, .options, .split, .split-even { grid-template-columns: minmax(0, 1fr); }
  .software > li { grid-template-columns: minmax(0, 1fr); }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person .portrait, .person .portrait-img { max-width: 240px; }

  /* Mobile navigation: visible by default; collapsed only when JS is available */
  .site-id .container { display: block; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
    font: inherit; font-weight: 600; color: var(--rub-blue); background: var(--white);
    border: 2px solid var(--rub-blue); border-radius: 8px; padding: 8px 14px; cursor: pointer;
  }
  .js .nav-toggle[aria-expanded="true"] { background: var(--rub-lightblue-50); }
  .js .main-nav ul { display: none; }
  .js .main-nav ul.open { display: flex; }
  .main-nav ul { flex-direction: column; padding-bottom: 12px; }
  .main-nav a { padding: 10px 0 10px 14px; border-bottom: 0; border-left: 3px solid transparent; }
  .main-nav a[aria-current="page"] { border-left-color: var(--rub-blue); }
  .main-nav a:hover { border-left-color: var(--rub-lightblue); }
  .site-title { padding-bottom: 16px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .institution-bar .container { min-height: 56px; }
  .institution-bar .affiliation { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-aside { margin-right: 12px; width: calc(100% - 24px); }
  .cv li { grid-template-columns: 1fr; gap: 2px; }
  tbody th { width: auto; }
  th, td { padding: 12px 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header .main-nav, .nav-toggle, .skip-link, .hero-actions, .breadcrumb { display: none !important; }
  body { font-size: 11pt; }
  .block-blue, .path > li:nth-child(3), .site-footer { background: none !important; color: #000 !important; border: 1px solid #000; }
  .block-blue a, .path > li:nth-child(3) a, .site-footer a { color: #000 !important; }
  .hero-aside { margin: 12px 0 0; width: auto; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .path > li + li::before { display: none; }
  .theme, .highlight, figure { break-inside: avoid; }
}
