/* =========================================================
   Robotik und KI am Umwelt-Campus Birkenfeld
   Private Landingpage von Prof. Dr.-Ing. Matthias Vette-Steinkamp

   Kein Build-Schritt, keine externen Requests.
   Gestaltung nach dem Corporate Design der Birkenfeld Institutes of
   Technology: schwarze Wortmarke, viel Weiß, fünf Akzentfarben.
   Schriften: Hanken Grotesk und Space Grotesk, selbst gehostet
   (siehe schriften.css und werkzeuge/schriften-holen.py).
   ========================================================= */

:root {
  color-scheme: light;

  /* --- die fünf BIT-Akzentfarben --- */
  --bit-teal:     #009C9C;
  --bit-peach:    #E0883C;
  --bit-lavender: #9A5BE0;
  --bit-green:    #5BA838;
  --bit-magenta:  #9C306C;

  /* --- Flächen und Text --- */
  --paper:      #FAFAF8;
  --paper-2:    #F1F2F4;
  --card:       #FFFFFF;
  --text:       #15171A;
  --muted:      #666D77;
  --line:       #E7E8EA;
  --line-2:     #CFD2D6;

  /* --- Rollen im Text: Robotik, KI, Campus --- */
  --bot:        var(--bit-teal);
  --bot-soft:   #E0F2F2;
  --ki:         var(--bit-lavender);
  --ki-soft:    #F2E9FC;
  --spark:      #99461D;
  --spark-soft: #FBEDE2;
  --focus:      var(--bit-teal);
  --on-dark:    #FFFFFF;

  --dark:       #15171A;
  --dark-2:     #1B1E22;
  --dark-akzent:#5BD8C4;

  --ff-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --ff-body:    "Hanken Grotesk", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  --ff-mono:    "Space Grotesk", "Segoe UI", system-ui, sans-serif;

  --maxw: 76rem;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,23,26,.04), 0 8px 24px rgba(20,23,26,.06);

  --s--1: clamp(.8rem, .78rem + .12vw, .875rem);
  --s-0:  clamp(1rem, .97rem + .18vw, 1.08rem);
  --s-1:  clamp(1.13rem, 1.06rem + .34vw, 1.3rem);
  --s-2:  clamp(1.38rem, 1.2rem + .8vw, 1.9rem);
  --s-3:  clamp(1.75rem, 1.4rem + 1.6vw, 2.7rem);
  --s-4:  clamp(2.3rem, 1.6rem + 3.2vw, 4.4rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper:      #121417;
    --paper-2:    #191C20;
    --card:       #1B1E22;
    --text:       #ECEEF1;
    --muted:      #8B929C;
    --line:       #2E3238;
    --line-2:     #3E444C;
    --bot:        #5BD8C4;
    --bot-soft:   #1C3535;
    --ki:         #C4A6F0;
    --ki-soft:    #2F2941;
    --spark:      #F0B189;
    --spark-soft: #3A2C23;
    --focus:      #5BD8C4;
    --shadow:     0 1px 2px rgba(0,0,0,.45), 0 14px 34px -20px rgba(0,0,0,.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: var(--s-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 600; line-height: 1.13; letter-spacing: -.012em; margin: 0 0 .5em; }
h1 { font-size: var(--s-4); }
h2 { font-size: var(--s-3); }
h3 { font-size: var(--s-1); font-family: var(--ff-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
p, li { max-width: 68ch; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--bot); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  max-width: var(--maxw); margin-inline: auto; padding: .5rem var(--gutter);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__logo { height: 1.7rem; width: auto; display: block; }
.brand__logo--dunkel { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dunkel { display: block; }
}
.brand__txt { display: grid; line-height: 1.2; }
.brand__txt b { font-size: .97rem; font-weight: 600; letter-spacing: -.01em; }
.brand__txt span { font-size: .68rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-size: var(--s--1); font-weight: 500;
  padding: .45rem .7rem; border-radius: 999px; color: var(--muted);
}
.nav a:hover { color: var(--text); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--paper-2); }
.nav .btn { color: #fff; }
.nav-toggle {
  display: none; align-items: center; gap: .55rem;
  font: inherit; font-size: var(--s--1); font-weight: 600; cursor: pointer;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 999px; padding: .45rem .9rem;
}
.nav-toggle:hover { border-color: var(--text); }
.nav-toggle__striche { display: grid; gap: 3px; width: 17px; }
.nav-toggle__striche span {
  height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__striche span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__striche span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__striche span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Unter dieser Breite passt die Navigation nicht mehr in eine Zeile:
   ab hier das Klappmenü. */
@media (max-width: 85rem) {
  .nav-toggle { display: inline-flex; }
  .nav[data-collapsible="true"] {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: .1rem; margin-top: .45rem; padding: .45rem 0 .8rem;
    border-top: 1px solid var(--line);
  }
  .nav[data-collapsible="true"][data-open="true"] { display: flex; }
  .nav[data-collapsible="true"] a { padding: .7rem .8rem; font-size: var(--s-0); }
  .nav[data-collapsible="true"] .btn { justify-content: center; margin-top: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__striche span { transition: none; }
}

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-size: var(--s--1); font-weight: 600; text-decoration: none; cursor: pointer;
  padding: .7rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--text);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--text); }
.btn--primary { background: var(--bot); border-color: var(--bot); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--bot) 82%, #000); border-color: transparent; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); color: var(--on-dark); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--lg { font-size: var(--s-0); padding: .88rem 1.5rem; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btnrow { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Bausteine ---------- */
.eyebrow {
  font-family: var(--ff-mono); font-size: var(--s--1); letter-spacing: .12em;
  text-transform: uppercase; color: var(--bot); margin: 0 0 .9rem;
}
.lead { font-size: var(--s-1); color: var(--muted); max-width: 56ch; }
.antwort {
  font-family: var(--ff-display); font-size: var(--s-3); font-weight: 600;
  line-height: 1.15; letter-spacing: -.02em; margin: .6rem 0 0; max-width: 24ch;
  color: var(--muted);
}
.antwort b { color: var(--bot); }
section { padding-block: clamp(3rem, 7vw, 6rem); }
.sec-head { max-width: 48rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.tint { background: var(--paper-2); }

.grid { display: grid; gap: 1rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35rem; }
.card h4 { font-size: var(--s-0); line-height: 1.25; margin-bottom: .45rem; }
.card--link {
  display: block; text-decoration: none; color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card--link:hover { transform: translateY(-2px); border-color: var(--bot); }
.card--link h3::after { content: "\00a0→"; color: var(--bot); }
.card--alle { background: var(--bot-soft); border-color: transparent; }
.card--foto { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--foto img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.card--foto > div { padding: 1.2rem 1.3rem 1.4rem; }
.card--foto > div > :last-child { margin-bottom: 0; }
.card--frei img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.card__sg {
  margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line);
  font-size: var(--s--1); font-weight: 600; color: var(--text) !important;
}
.card__sg a { text-decoration: none; }
.card__sg a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__zahl {
  font-family: var(--ff-mono); font-size: var(--s--1); color: var(--bot) !important;
  margin: 0 0 .5rem;
}
.card > p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: var(--s--1); }

.tag {
  display: inline-block; font-family: var(--ff-mono); font-size: .71rem; letter-spacing: .03em;
  padding: .18rem .58rem; border-radius: 999px; background: var(--paper-2);
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.tag--bot   { background: var(--bot-soft);   border-color: transparent; color: var(--bot); }
.tag--ki    { background: var(--ki-soft);    border-color: transparent; color: var(--ki); }
.tag--spark { background: var(--spark-soft); border-color: transparent; color: var(--spark); }
.taglist { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .85rem 0 0; list-style: none; }
.taglist li { max-width: none; }

.ext::after { content: " ↗"; font-size: .8em; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, #223038 0%, var(--dark-2) 45%, var(--dark) 100%);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(85% 75% at 50% 35%, #000 40%, transparent 100%);
}
.hero__in { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 62rem) { .hero__in { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { color: #fff; margin-bottom: .35em; text-wrap: balance; }
.hero .eyebrow { color: var(--dark-akzent); }
.hero p { color: rgba(236,238,241,.82); font-size: var(--s-1); max-width: 46ch; }
.hero .btnrow { margin-top: 1.8rem; }
.hero__note { font-size: var(--s--1); color: rgba(236,238,241,.55); margin-top: 1.6rem; max-width: 42ch; }
.hero__claim {
  font-family: var(--ff-display); font-size: var(--s-2); font-weight: 600;
  color: rgba(236,238,241,.7) !important; line-height: 1.25; margin: 1.6rem 0 0;
  border-left: 3px solid var(--dark-akzent); padding-left: 1rem;
}
.hero__claim b { color: #fff; font-weight: 600; }
/* Hero-Foto mit langsam wandernder Scanlinie */
.hero__shot {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(91,216,196,.35);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
.hero__shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to bottom,
      transparent 0%, rgba(53,216,156,.18) 45%, rgba(53,216,156,.9) 50%,
      rgba(53,216,156,.18) 55%, transparent 100%);
  background-size: 100% 20%; background-repeat: no-repeat;
  animation: scan 7s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { background-position: 0 -15%; } 50% { background-position: 0 115%; } }
.hero__shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .95rem .75rem;
  font-size: var(--s--1); color: rgba(255,255,255,.9);
  background: linear-gradient(transparent, rgba(6,12,10,.85));
}

.strip {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  font-family: var(--ff-mono); font-size: var(--s--1); color: rgba(236,238,241,.6);
}
.strip b { color: var(--dark-akzent); font-weight: 500; }
.strip__kopf {
  margin: clamp(2.5rem, 6vw, 4rem) 0 -1.2rem; font-family: var(--ff-mono);
  font-size: var(--s--1); color: rgba(236,238,241,.45); text-transform: none;
}
.strip__kopf + .strip { margin-top: 1.9rem; }

/* ---------- Gründe ---------- */
.reasons { counter-reset: r; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 46rem) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reason { background: var(--card); padding: 1.6rem; }
.reason::before {
  counter-increment: r; content: counter(r, decimal-leading-zero);
  font-family: var(--ff-mono); font-size: var(--s--1); color: var(--bot); display: block; margin-bottom: .8rem;
}
.reason h3 { margin-bottom: .3rem; }
.reason p { color: var(--muted); font-size: var(--s--1); margin: 0; }

/* ---------- Robotik-Zoo ---------- */
.zoo { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
@media (min-width: 58rem) { .zoo { grid-template-columns: repeat(3, 1fr); } }
.zoo__item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem;
  background: var(--card); display: grid; gap: .45rem; align-content: start;
}
.zoo__item svg { color: var(--bot); }
.zoo__item b { font-size: var(--s-0); }
.zoo__item span { font-size: var(--s--1); color: var(--muted); }

/* ---------- Fragenlisten ---------- */
.fragen { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
@media (min-width: 52rem) { .fragen { grid-template-columns: repeat(2, 1fr); } }
.fragen--schmal { grid-template-columns: 1fr !important; }
.fragen li {
  max-width: none; position: relative; padding-left: 1.7rem;
  font-size: var(--s-0); color: var(--text);
}
.fragen li::before {
  content: "?"; position: absolute; left: 0; top: .05em;
  font-family: var(--ff-mono); font-weight: 500; color: var(--bot);
}

/* ---------- Merksätze ---------- */
.merksatz {
  font-family: var(--ff-display); font-size: var(--s-2); font-weight: 600;
  line-height: 1.25; letter-spacing: -.012em; max-width: 34ch;
  margin: 1.8rem 0 0;
}
.zitat {
  margin: 1.8rem 0 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--bot);
  max-width: 44ch;
}
.zitat p {
  font-family: var(--ff-display); font-size: var(--s-1); line-height: 1.4;
  letter-spacing: -.008em; margin: 0;
}
.zitat footer {
  margin-top: .8rem; font-size: var(--s--1); color: var(--muted);
  font-family: var(--ff-mono);
}
.merkkasten {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--bot);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.5rem;
  align-self: start;
}
.merkkasten p { color: var(--muted); font-size: var(--s-0); }
.merkkasten__stark {
  font-family: var(--ff-display); font-size: var(--s-2); font-weight: 600;
  line-height: 1.25; color: var(--text) !important; margin-bottom: 0;
}
.quelle {
  border-left: 2px solid var(--line-2); padding: .2rem 0 .2rem 1.2rem;
  margin: 1.5rem 0; color: var(--muted); font-size: var(--s--1);
}
.quelle p:last-child { margin-bottom: 0; }

.kette { display: grid; gap: .3rem; margin-top: 1.5rem; }
.kette span {
  font-family: var(--ff-mono); font-size: var(--s--1); color: var(--bot);
  border-left: 3px solid var(--bot); padding-left: .8rem;
}

.bausteine { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.bausteine li {
  max-width: none; font-weight: 600; font-size: var(--s-0);
  border: 1px solid var(--line-2); border-radius: 999px; padding: .5rem 1.1rem;
  background: var(--card);
}

/* ---------- Auf einen Blick ---------- */
.fakten {
  display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem;
  margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line);
  font-size: var(--s--1);
}
.fakten dt { color: var(--muted); font-family: var(--ff-mono); font-size: .75rem; padding-top: .1rem; }
.fakten dd { margin: 0; font-weight: 500; }

/* ---------- Kontakt ---------- */
.kontakt {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow);
}
@media (min-width: 52rem) { .kontakt { grid-template-columns: 1.2fr .8fr; } }
.kontakt__person {
  display: grid; gap: .2rem; font-size: var(--s--1); color: var(--muted);
  border-left: 3px solid var(--bot); padding-left: 1.1rem;
}
.kontakt__person b { font-size: var(--s-0); color: var(--text); }

/* ---------- Brotkrumen ---------- */
.krumen { padding-top: 1.1rem; font-size: var(--s--1); color: var(--muted); }
.krumen .wrap { display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; }
.krumen a { text-decoration: none; }
.krumen a:hover { text-decoration: underline; text-underline-offset: 3px; }
.krumen [aria-current] { color: var(--text); font-weight: 500; }

/* ---------- Faktenliste (Kurz und klar) ---------- */
.fakt { display: grid; gap: .3rem; margin: 0; }
.fakt dt {
  font-family: var(--ff-display); font-size: var(--s-1); font-weight: 600;
  line-height: 1.3; margin-top: 1.2rem;
}
.fakt dt:first-child { margin-top: 0; }
.fakt dd { margin: 0; max-width: 68ch; color: var(--muted); }
.fakt dd b { color: var(--text); }

/* ---------- Warum verschiedene Roboter ---------- */
.warum-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
@media (min-width: 52rem) { .warum-liste { grid-template-columns: repeat(2, 1fr); } }
.warum-liste li {
  max-width: none; display: grid; gap: .15rem;
  padding-left: 1.1rem; border-left: 3px solid var(--bot);
}
.warum-liste b { font-size: var(--s-1); font-family: var(--ff-display); font-weight: 600; line-height: 1.25; }
.warum-liste span { font-size: var(--s--1); color: var(--muted); }
details.technikfans { margin-top: 2.5rem; border-top: 1px solid var(--line); }
details.technikfans > div { padding-top: .5rem; }

/* ---------- Disziplinen ---------- */
.disziplinen { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
@media (min-width: 46rem) { .disziplinen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .disziplinen { grid-template-columns: repeat(4, 1fr); } }
.disziplinen li {
  max-width: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: .1rem;
}
.disziplinen b { font-size: var(--s-0); }
.disziplinen span { font-size: var(--s--1); color: var(--bot); font-family: var(--ff-mono); }

/* ---------- Entwicklungsweg (Für Schulen) ---------- */
.entwicklung {
  list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 1.5rem; padding: 0;
  display: grid; gap: .8rem; counter-reset: stufe;
}
@media (min-width: 46rem) { .entwicklung { grid-template-columns: repeat(5, 1fr); gap: .5rem; } }
.entwicklung li {
  max-width: none; position: relative; display: grid; gap: .25rem; align-content: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1rem;
}
.entwicklung li svg { color: var(--bot); }
.entwicklung b { font-size: var(--s--1); }
.entwicklung span { font-size: .78rem; color: var(--muted); line-height: 1.4; }
/* Pfeil zwischen den Stufen */
.entwicklung li::after {
  content: "→"; position: absolute; color: var(--bot); font-weight: 600;
  right: -.62rem; top: 50%; transform: translateY(-50%);
  background: var(--paper-2); padding: 0 .1rem; line-height: 1;
}
.entwicklung li:last-child::after { content: none; }
@media (max-width: 45.99rem) {
  .entwicklung li::after {
    right: auto; left: 50%; top: auto; bottom: -.72rem; transform: translateX(-50%) rotate(90deg);
  }
}

.tagesablauf {
  font-family: var(--ff-mono); font-size: var(--s--1); color: var(--bot) !important;
  line-height: 1.6; margin-bottom: 0;
}

/* ---------- Laborliste ---------- */
.labore { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.labore li {
  max-width: none; display: grid; gap: .1rem;
  padding-left: 1.1rem; border-left: 2px solid var(--bot);
}
.labore b { font-size: var(--s-0); }
.labore span { font-size: var(--s--1); color: var(--muted); }

/* ---------- Wege (Studienangebot) ---------- */
.wege { display: grid; gap: .7rem; }
@media (min-width: 52rem) { .wege { grid-template-columns: repeat(2, 1fr); } }
.weg {
  display: grid; gap: .25rem; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  transition: transform .15s ease, border-color .15s ease;
}
.weg:hover { transform: translateY(-2px); border-color: var(--bot); }
.weg b { font-size: var(--s-0); }
.weg span { font-size: var(--s--1); color: var(--bot); }
.weg span::before { content: "→ "; }

/* ---------- Lebenszyklus ---------- */
.cycle { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.cycle li {
  max-width: none; display: flex; align-items: center; gap: .5rem;
  font-size: var(--s--1); font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; background: var(--card);
}
.cycle li::after { content: "→"; color: var(--bot); margin-left: .35rem; }
.cycle li:last-child::after { content: "↺"; }
.cycle li[data-hot="true"] { border-color: var(--bot); background: var(--bot-soft); color: var(--bot); }

/* ---------- Bildkacheln ---------- */
.shots { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.shot img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.shot video { width: 100%; height: auto; display: block; background: #000; }
.shot figcaption { padding: .7rem .9rem; font-size: var(--s--1); color: var(--muted); }
.shot--frei img {
  aspect-ratio: auto; object-fit: contain; background: #fff;
  max-height: 30rem; height: auto;
}

/* ---------- Zeitstrahl ---------- */
.path { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.path li {
  max-width: none; position: relative; padding: 0 0 1.8rem 2.2rem;
  border-left: 2px solid var(--line);
}
.path li:last-child { border-left-color: transparent; padding-bottom: 0; }
.path li::before {
  content: ""; position: absolute; left: -.5rem; top: .35rem;
  width: .85rem; height: .85rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--bot);
}
.path b { display: block; font-size: var(--s-0); }
.path span { color: var(--muted); font-size: var(--s--1); }

/* ---------- Aufklapper ---------- */
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; padding: 1.05rem 0; font-weight: 600; font-size: var(--s-0);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--ff-mono); color: var(--bot); font-size: 1.3em; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding-bottom: 1.1rem; }
details.faq p:last-child { margin-bottom: 0; }

/* ---------- CTA-Band ---------- */
.band {
  background: linear-gradient(105deg, var(--dark) 0%, #243036 100%);
  color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.8rem, 5vw, 3.2rem);
}
.band h2 { color: #fff; }
.band p { color: rgba(236,238,241,.78); }

/* ---------- Konfigurator ---------- */
.kf { display: grid; gap: 2rem; }
@media (min-width: 66rem) { .kf { grid-template-columns: 22rem 1fr; align-items: start; } }
.kf__panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow);
}
@media (min-width: 66rem) { .kf__panel { position: sticky; top: 5rem; } }
.kf__panel fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.kf__panel legend { padding: 0; font-size: var(--s--1); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; padding: .42rem .85rem;
  font-size: var(--s--1); font-weight: 500; background: var(--paper); transition: all .14s ease;
}
.chip span:hover { border-color: var(--text); }
.chip input:checked + span { background: var(--bot); border-color: var(--bot); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.kf__count { font-family: var(--ff-mono); font-size: var(--s--1); color: var(--muted); margin: 0 0 1rem; }
.kf__results { display: grid; gap: .9rem; }

.hit {
  display: grid; gap: .6rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow);
}
.hit__top { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.hit h3 { margin: 0; font-size: var(--s-1); }
.hit h3 a { text-decoration: none; }
.hit h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hit__score { font-family: var(--ff-mono); font-size: var(--s--1); color: var(--bot); white-space: nowrap; }
.hit__bar { height: 4px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.hit__bar i { display: block; height: 100%; background: var(--bot); border-radius: 999px; }
.hit p { margin: 0; font-size: var(--s--1); color: var(--muted); }
.hit__why {
  color: var(--text); font-size: var(--s-0); line-height: 1.5;
  border-left: 3px solid var(--bot); padding-left: .85rem;
}
.hit__why b { font-weight: 600; color: var(--bot); }
.hit__trifft { font-family: var(--ff-mono); font-size: .75rem; color: var(--muted); }
.hit--star { border-color: var(--bot); }

.note {
  border-left: 3px solid var(--spark); background: var(--spark-soft);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem;
}
.note p:last-child { margin-bottom: 0; }
.note h3 { margin-bottom: .3rem; }

.js-only { display: none; }
.has-js .js-only { display: revert; }
.has-js .no-js-only { display: none; }

/* ---------- Tabelle aller Studiengänge ---------- */
.list { border-top: 1px solid var(--line); }
.list__row {
  display: grid; gap: .2rem 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto; align-items: baseline;
}
.list__row a { font-weight: 600; text-decoration: none; }
.list__row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.list__meta { font-family: var(--ff-mono); font-size: var(--s--1); color: var(--muted); }
.list__kurz { margin: .15rem 0 0; font-size: var(--s--1); color: var(--muted); }
.list__passt { margin: .3rem 0 0; font-size: var(--s--1); }
.list__passt b { color: var(--bot); font-weight: 600; }

/* ---------- Fußzeile ---------- */
.foot { background: var(--dark); color: rgba(236,238,241,.72); padding-block: clamp(2.5rem, 6vw, 4rem); margin-top: 0; }
.foot a { color: rgba(236,238,241,.86); }
.foot h3 { color: #fff; font-size: var(--s-0); margin-bottom: .6rem; }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: var(--s--1); }
.foot__legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--s--1); color: rgba(236,238,241,.55);
}
.foot__legal p { max-width: 80ch; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: var(--s-2); margin-top: 2.2rem; }
.legal h3 { margin-top: 1.4rem; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: .2rem 1.5rem; margin: 0 0 1.2rem; }
@media (min-width: 40rem) { .legal dl { grid-template-columns: 12rem 1fr; } }
.legal dt { font-weight: 600; font-size: var(--s--1); color: var(--muted); }
.legal dd { margin: 0 0 .7rem; }
.placeholder {
  background: var(--spark-soft); color: var(--spark); font-family: var(--ff-mono);
  font-size: .9em; padding: .05em .4em; border-radius: 4px;
}

/* lange Modulnamen in Tags dürfen umbrechen */
.taglist li { min-width: 0; max-width: 100%; }
.taglist .tag { white-space: normal; }
