  /* Farbschema: dunkel für alle Besucher, Akzent Goethe-Blau */
  :root {
    color-scheme: dark;
    --goethe-blue: #00618f;       /* Linien über den Kästen / unter dem Kopf */
    --bg: #121619;
    --bg-alt: #1a1f23;
    --text: #e6e8e9;
    --muted: #a2a8ab;
    --border: #2a3136;
    --accent: #8fb1c8;            /* "AG Greiner", Links, Buttons */
    --accent-soft: #252b30;       /* Foto-Platzhalter */
    --on-accent: #08141b;
    --hero-bg: #0d2a3d;
    --footer-bg: #0a1c28;
  }

  /* Sprachumschaltung */
  html[data-lang="en"] .de, html[data-lang="de"] .en { display: none !important; }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 76px; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 17px/1.65 "Barlow", "Helvetica Neue", Arial, sans-serif;
  }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  h1, h2, h3 { font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; }
  h2 { font-size: 2.1rem; margin: 0 0 .4em; }
  h3 { font-size: 1.3rem; margin: 0 0 .5em; }
  img { max-width: 100%; }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
  section { padding: 72px 0; }
  section.alt { background: var(--bg-alt); }
  .eyebrow {
    font-family: "Barlow Semi Condensed", sans-serif;
    text-transform: uppercase; letter-spacing: .14em;
    font-size: .82rem; font-weight: 600; color: var(--accent); margin: 0 0 .4em;
  }
  .lead { color: var(--muted); max-width: 70ch; }

  /* ---------- Kopfzeile ---------- */
  header.site { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 3px solid var(--goethe-blue); }
  header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
  .brand { display: flex; flex-direction: column; line-height: 1.1; color: var(--text); }
  .brand:hover { text-decoration: none; }
  .brand b { font-family: "Barlow Semi Condensed", sans-serif; font-size: 1.4rem; font-weight: 600; color: var(--accent); }
  .brand small { font-size: .75rem; color: var(--muted); }
  .head-right { display: flex; align-items: center; gap: 22px; }
  nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
  nav a { color: var(--text); font-weight: 500; font-size: .98rem; }
  nav a:hover, nav a.active { color: var(--accent); text-decoration: none; }
  .lang-switch {
    border: 1px solid var(--border); background: none; color: var(--text); border-radius: 4px;
    font: 600 .82rem "Barlow", sans-serif; padding: 5px 9px; cursor: pointer; letter-spacing: .05em;
  }
  .lang-switch:hover { border-color: var(--accent); color: var(--accent); }
  .nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 4px; color: var(--text); padding: 5px 10px; font: inherit; cursor: pointer; }
  @media (max-width: 900px) {
    .nav-toggle { display: block; }
    nav ul { display: none; position: absolute; top: 71px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); }
    nav ul.open { display: flex; }
    nav li a { display: block; padding: 12px 16px; }
  }

  /* ---------- Hero ---------- */
  .hero { background: var(--hero-bg); color: #fff; padding: 84px 0 76px; }
  .hero .eyebrow { color: rgba(255,255,255,.75); }
  .hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 .3em; }
  .hero p.hero-sub { font-size: 1.4rem; font-weight: 500; color: #fff; margin: 0 0 .5em; }
  .hero p { font-size: 1.18rem; color: rgba(255,255,255,.88); max-width: 62ch; margin: 0 0 1.8em; }
  .btn {
    display: inline-block; padding: 10px 22px; border-radius: 3px; font-weight: 600;
    background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent);
  }
  .btn:hover { text-decoration: none; filter: brightness(1.1); }
  .btn.ghost { background: transparent; color: var(--accent); }
  .hero .btn { background: #fff; color: var(--hero-bg); border-color: #fff; }
  .hero .btn.ghost { background: transparent; color: #fff; }
  .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

  /* ---------- Leitung ---------- */
  .pi { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }
  .pi img { width: 100%; border-radius: 4px; }
  .pi .role, #head .role { color: var(--muted); margin: 0 0 1em; }
  dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 1em 0; }
  dl.facts dt { font-weight: 600; }
  dl.facts dd { margin: 0; }
  @media (max-width: 640px) { .pi { grid-template-columns: 1fr; } .pi img { max-width: 230px; } dl.facts { grid-template-columns: 1fr; gap: 0 } dl.facts dd { margin-bottom: 8px; } }

  /* ---------- Forschung ---------- */
  .research-text { max-width: 76ch; margin-top: 1.5em; }
  .research-text p { margin: 0 0 1.1em; }
  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
  .card { background: var(--bg); border-top: 4px solid var(--goethe-blue); border-radius: 2px; padding: 24px; }
  .card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }

  /* ---------- Team ---------- */
  .team-group { margin-top: 40px; }
  .team-group h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
  .people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; margin-top: 18px; }
  .person { font-size: .95rem; }
  .photo {
    position: relative; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden;
    background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 10px;
  }
  .photo span { font-family: "Barlow Semi Condensed", sans-serif; font-size: 2.4rem; font-weight: 600; color: var(--muted); }
  .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .contact-card {
    align-self: start; background: var(--bg-alt); border-top: 4px solid var(--goethe-blue);
    border-radius: 2px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
  }
  .contact-line { color: var(--muted); font-size: .9rem; }
  .person .room { display: block; color: var(--muted); font-size: .88rem; }
  .person strong { display: block; font-size: 1.05rem; line-height: 1.3; }
  .person .pos { display: block; color: var(--muted); }
  .person a { font-size: .88rem; overflow-wrap: anywhere; }
  .person a[href^="tel:"], .person .nw { white-space: nowrap; }

  /* ---------- Lehre ---------- */
  .courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 12px; }
  .course { display: flex; flex-direction: column; align-items: flex-start; background: var(--bg); border-top: 4px solid var(--goethe-blue); border-radius: 2px; padding: 24px 28px; }
  section:not(.alt) .course { background: var(--bg-alt); }
  .course-term { margin: 0 0 .8em; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
  .course h3 { font-size: 1.35rem; margin: 0 0 1em; flex: 1; }
  .course-meta { margin: 0 0 1.2em; color: var(--muted); }

  /* ---------- Ehemalige ---------- */
  ul.alumni { list-style: none; margin: 24px 0 0; padding: 0; columns: 3 200px; column-gap: 32px; }
  ul.alumni li { padding: 7px 0; border-bottom: 1px solid var(--border); break-inside: avoid; }

  /* ---------- Abschlussarbeiten ---------- */
  .theses-group { margin-top: 20px; border-top: 1px solid var(--border); }
  .theses-group summary {
    cursor: pointer; list-style: none; padding: 16px 0; display: flex; align-items: center; gap: 10px;
    font-family: "Barlow Semi Condensed", "Barlow", Arial, sans-serif; font-size: 1.3rem; font-weight: 600;
  }
  .theses-group summary::-webkit-details-marker { display: none; }
  .theses-group summary::before { content: "▸"; color: var(--accent); transition: transform .15s; display: inline-block; }
  .theses-group[open] summary::before { transform: rotate(90deg); }
  .theses-group .count { font-size: .85rem; font-weight: 500; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 9px; }
  table.theses { margin-top: 0; margin-bottom: 12px; }
  table.theses td:nth-child(2) { white-space: nowrap; }
  @media (max-width: 640px) { table.theses td:nth-child(2) { white-space: normal; font-weight: 600; } }

  /* ---------- Tabellen ---------- */
  .empty { border: 1px dashed var(--border); border-radius: 4px; padding: 28px; color: var(--muted); text-align: center; margin-top: 24px; }
  table.list { width: 100%; border-collapse: collapse; margin-top: 16px; }
  table.list th, table.list td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
  table.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  table.list td:first-child { white-space: nowrap; font-weight: 600; color: var(--accent); }
  table.list em { color: var(--muted); }
  @media (max-width: 640px) {
    table.list, table.list tbody, table.list tr, table.list td { display: block; }
    table.list thead { display: none; }
    table.list tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
    table.list td { border: 0; padding: 2px 0; }
  }

  /* ---------- Fotos (Über-Seite) ---------- */
  figure.travel { margin: 20px 0 0; max-width: 540px; }
  figure.travel img { width: 100%; border-radius: 4px; display: block; }
  figure.travel figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }
  .back { display: inline-block; margin-bottom: 1.2em; font-weight: 600; }

  /* ---------- Fußzeile ---------- */
  footer { background: var(--footer-bg); color: rgba(255,255,255,.82); padding: 44px 0; font-size: .95rem; }
  footer a { color: #fff; }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
  footer address { font-style: normal; }
