/* ==========================================================
   benejahnel.de – Stylesheet
   Aufbau aus Entwurf D, Typografie aus Entwurf A, Foto aus Entwurf J
   ========================================================== */

/* ---------- Farben und Maße ---------- */

:root {
  --grund:    #dbe4e7;   /* Hintergrund: Hemdblau */
  --flaeche:  #eef2f3;   /* helle Flächen (Albumband) */
  --text:     #18262c;
  --leise:    #4f6168;   /* Nebentext */
  --akzent:   #5f7f8a;   /* Linien unter Links, Fokus */
  --linie:    #b6c6cc;

  --schrift: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --breite: 72rem;
  --rand: clamp(1.25rem, 5vw, 3rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:   #1c2326;
    --flaeche: #232b2e;
    --text:    #e3e8ea;
    --leise:   #9fb0b7;
    --akzent:  #8fb0bc;
    --linie:   #364246;
  }
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration-color: var(--akzent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

/* Platzhalter: vor dem Livegang ersetzen */
.platzhalter { background: none; color: inherit; outline: 1px dashed var(--akzent); outline-offset: 2px; }

/* ---------- Kopfzeile und Navigation ---------- */

.kopf {
  padding: 1.25rem var(--rand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.kopf .name {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; font-size: 0.95rem; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--akzent); }
.nav .sprache { color: var(--leise); }

/* Handy-Menü: eingebautes Popover, kein JavaScript nötig */
.menue-knopf, .menue-zu {
  display: none;
  font: inherit; font-size: 0.95rem; color: inherit;
  background: none; border: 0; padding: 0.25rem 0; cursor: pointer;
}
@media (min-width: 56.01rem) {
  .nav[popover] {
    display: block; position: static; inset: auto;
    margin: 0; padding: 0; border: 0;
    background: none; color: inherit; overflow: visible;
  }
}
@media (max-width: 56rem) {
  .menue-knopf { display: block; }
  .menue-zu { display: block; position: absolute; top: 1.25rem; right: var(--rand); }
  .nav[popover] {
    inset: 0 0 auto 0; width: 100%; margin: 0;
    border: 0; border-bottom: 1px solid var(--linie);
    background: var(--grund); color: var(--text);
    padding: 4rem var(--rand) 2rem;
  }
  .nav[popover]::backdrop { background: rgb(0 0 0 / 0.3); }
  .nav ul { flex-direction: column; gap: 1rem; font-size: 1.2rem; }
}

/* ---------- Überschriften (Typografie aus Entwurf A) ---------- */

/* kleine graue Bereichsüberschrift */
.label, h2.label {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--leise);
}

/* großer fetter Titel (Album, Seitentitel) */
.titel {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* ---------- Startseite: Bühne ---------- */

.buehne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36%);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 5vw, 4rem) var(--rand) clamp(3rem, 7vw, 6rem);
}
.buehne-text { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.buehne h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 4.2rem);
  letter-spacing: 0.3em;
  line-height: 1.25;
  text-transform: uppercase;
}
.unterzeile { margin: 1rem 0 0; color: var(--leise); }

.zitat { margin: 0; max-width: 36rem; }
.zitat blockquote { margin: 0; }
.zitat p { margin: 0; font-size: clamp(1.3rem, 2.3vw, 1.85rem); font-weight: 300; line-height: 1.38; }
.zitat figcaption { margin-top: 1rem; color: var(--leise); font-size: 0.95rem; }

.titelbild { margin: 0; }
.titelbild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 40%; }
.titelbild figcaption { font-size: 0.8rem; }

/* Nächste Konzerte in der Bühne */
.naechste .termine li { grid-template-columns: 7.5rem minmax(0, 1fr); padding: 0.6rem 0; font-size: 0.92rem; line-height: 1.5; }
.naechste .termine time { font-weight: 600; }
.naechste .mehr { font-size: 0.92rem; }
.naechste .termine .besetzung { grid-column: 2; }
@media (max-width: 40rem) {
  .naechste .termine li { grid-template-columns: 1fr; }
  .naechste .termine .besetzung { grid-column: 1; }
}

/* Pressestimme und Über mich weiter unten */
.zitatband, .ueberband {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--rand);
}
.drei-stimmen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.drei-stimmen .zitat { padding-top: 1.25rem; border-top: 1px solid var(--linie); }
.drei-stimmen .zitat p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; }
@media (max-width: 48rem) { .drei-stimmen { grid-template-columns: 1fr; } }
.ueberband { border-top: 1px solid var(--linie); }
.ueberband p:first-of-type { font-size: 1.25rem; line-height: 1.5; max-width: 42rem; }

/* Albumband */
.albumband {
  background: var(--flaeche);
  padding: clamp(3rem, 7vw, 5.5rem) var(--rand);
}
.album {
  max-width: var(--breite);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.band { margin: 0.4rem 0 1.25rem; color: var(--leise); }
.album p { max-width: 34rem; }

/* Zwei Spalten: Termine und Über mich */
.spalten {
  max-width: var(--breite);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3rem, 7vw, 5.5rem) var(--rand);
}
.spalten .ueber p:first-of-type { font-size: 1.25rem; line-height: 1.5; }

@media (max-width: 48rem) {
  .buehne, .album, .spalten { grid-template-columns: 1fr; }
}

/* ---------- Terminliste ---------- */

.termine { list-style: none; margin: 0; padding: 0; }
.termine li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.15rem 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--linie);
}
.termine time { font-variant-numeric: tabular-nums; font-weight: 700; }
.termine .besetzung { color: var(--leise); }
.spalten .termine li { grid-template-columns: 8.5rem minmax(0, 1fr); }
.spalten .termine .besetzung { grid-column: 2; }
@media (max-width: 40rem) {
  .termine li, .spalten .termine li { grid-template-columns: 1fr; }
  .spalten .termine .besetzung { grid-column: 1; }
}

/* Archiv: aufklappbare Jahre */
.jahr { border-top: 1px solid var(--linie); }
.jahr summary {
  cursor: pointer;
  padding: 0.9rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  list-style-position: outside;
}
.jahr summary span { font-weight: 400; color: var(--leise); font-size: 0.95rem; margin-left: 0.75rem; }
.jahr .termine { margin-bottom: 1.5rem; }
.jahr .termine li { font-size: 0.95rem; padding: 0.55rem 0; }

.mehr { margin-top: 1.5rem; }

/* ---------- Unterseiten ---------- */

.seite {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) var(--rand) clamp(3rem, 7vw, 6rem);
}
.seitenkopf { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.seitenkopf .label { margin-bottom: 0.5rem; }

.unternav { margin: 1.5rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.unternav a { text-decoration: none; color: var(--leise); }
.unternav a:hover { color: var(--text); }
.unternav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--akzent); }

/* Fließtext */
.text { max-width: 42rem; }
.text h2 { margin: 3rem 0 1rem; font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.text h2:first-child { margin-top: 0; }
.text .stimmen li { padding: 1.25rem 0; }
.text .stimmen blockquote { font-size: 1.15rem; }
.text h3 { margin: 2rem 0 0.5rem; font-size: 1.05rem; font-weight: 700; }
.text ul { padding-left: 1.2rem; }
.text li { margin: 0.3rem 0; }
.einleitung { font-size: 1.25rem; line-height: 1.5; }

/* Text mit Bild daneben */
.mit-bild {
  display: grid;
  grid-template-columns: minmax(0, 42rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.mit-bild > figure { margin: 0; position: sticky; top: 2rem; }
.mit-bild > figure img { width: 100%; }
@media (max-width: 52rem) {
  .mit-bild { grid-template-columns: 1fr; }
  .mit-bild > figure { position: static; }
}

figure { margin: 2rem 0; }
figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--leise); }

/* Pressestimmen */
.stimmen { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.stimmen li { padding: 1.75rem 0; border-top: 1px solid var(--linie); }
.stimmen blockquote { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 300; line-height: 1.45; }
.stimmen cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.95rem; color: var(--leise); }

/* Diskographie */
.alben { list-style: none; margin: 0; padding: 0; }
.alben li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 12rem);
  gap: 0.15rem 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--linie);
}
.alben .jahrzahl { color: var(--leise); font-variant-numeric: tabular-nums; }
.alben .verlag { color: var(--leise); }
@media (max-width: 40rem) { .alben li { grid-template-columns: 4rem minmax(0, 1fr); } .alben .verlag { grid-column: 2; } }

.cover-reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.cover-reihe figure { margin: 0; }
.cover-reihe img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cover-reihe figcaption { color: var(--text); font-size: 1rem; }
.cover-reihe figcaption strong { display: block; }

/* Hören und Video */
.medien { list-style: none; margin: 0; padding: 0; }
.medien li { padding: 1rem 0; border-top: 1px solid var(--linie); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 0.5rem 2rem; align-items: center; }
.medien .wer { display: block; color: var(--leise); font-size: 0.95rem; }
.medien audio { width: 100%; }
.medien.video li { grid-template-columns: 1fr; }
.medien video { width: 100%; max-width: 40rem; background: #000; aspect-ratio: 16 / 9; }
@media (max-width: 40rem) { .medien li { grid-template-columns: 1fr; } }

/* Galerie */
.galerie-eintrag { padding: 2rem 0; border-top: 1px solid var(--linie); }
.galerie-eintrag h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.galerie-eintrag p { margin: 0.3rem 0 1rem; color: var(--leise); max-width: 46rem; }
.bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem; }
.bilder img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Formular (Newsletter) */
.formular { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 32rem; margin: 1.5rem 0; }
.formular label { width: 100%; }
.formular input[type="email"] { flex: 1 1 14rem; font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); }
.formular button { font: inherit; padding: 0.6rem 1.2rem; border: 0; background: var(--text); color: var(--grund); cursor: pointer; }

/* Kontakt */
.adressen { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; max-width: 52rem; }
.adressen address { font-style: normal; }
.adressen h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }

/* ---------- Fußzeile ---------- */

.fuss {
  padding: 2rem var(--rand) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: 0.9rem;
  color: var(--leise);
  border-top: 1px solid var(--linie);
}
.fuss .rechts { margin-left: auto; }

/* ==========================================================
   Einheitliche Typografie der Unterseiten
   Nur vier Größen: Seitentitel, Zwischenüberschrift, Fließtext, Kleingedrucktes
   ========================================================== */

.seitenkopf .titel { font-size: clamp(2rem, 4vw, 2.75rem); }

.seite { font-size: 1.0625rem; }
.seite .einleitung { font-size: inherit; line-height: inherit; }

.seite h2,
.text h2,
.disko-gruppe h2, .noten-gruppe h2, .presse-gruppe h2, .galerie-eintrag h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.text h2 { margin-top: 2.5rem; }
.text h2:first-child { margin-top: 0; }
.seite h3, .text h3 { margin: 1.75rem 0 0.4rem; font-size: 1.0625rem; font-weight: 700; }

.seite .label { font-size: 0.9rem; }
.seite .unterzeile, .leise { color: var(--leise); font-size: 0.9rem; }
.text .unterzeile { margin: -0.6rem 0 0.75rem; }
.seite figcaption, .seite cite { font-size: 0.9rem; }

.seite .stimmen li, .text .stimmen li { padding: 1.1rem 0; }
.seite .stimmen blockquote, .text .stimmen blockquote { font-size: 1.0625rem; font-weight: 400; line-height: 1.55; }
.seite .stimmen cite { margin-top: 0.35rem; }

.jahr summary { font-size: 1.15rem; }

/* Abschnitte auf Unterseiten gleichmäßig trennen */
.disko-gruppe, .noten-gruppe, .presse-gruppe { padding: 2rem 0 2.5rem; border-top: 1px solid var(--linie); }
.disko-gruppe:first-child, .noten-gruppe:first-child, .presse-gruppe:first-child { border-top: 0; padding-top: 0; }

/* Cover und Notenhefte */
.cover-reihe { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1.75rem 1.5rem; margin: 0; }
.cover-reihe figcaption { font-size: 0.9rem; color: var(--leise); }
.cover-reihe figcaption strong { color: var(--text); font-size: 1rem; margin-bottom: 0.1rem; }
.hefte { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 2rem 1.75rem; }
.heft { margin: 0; }
.heft img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--flaeche); }
.heft figcaption { font-size: 0.9rem; color: var(--leise); }
.heft figcaption strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 0.2rem; }
.noten-gruppe .text { margin: -0.25rem 0 1.25rem; }

/* Pressefotos */
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1.75rem 1.5rem; }
.foto-raster figure { margin: 0; }
.foto-raster img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--flaeche); }

/* Kontakt */
.adressen { grid-template-columns: 1fr; }

/* Startseite: höchstens vier kommende Konzerte zeigen */
#naechste-liste li:nth-child(n+5) { display: none; }

/* ---------- Galerie: Jahre aufklappbar, Einträge als kompakte Zeilen ---------- */
.galerie .galerie-eintrag {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.75rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--linie);
}
.galerie > .galerie-eintrag:first-child { border-top: 0; padding-top: 0; }
.galerie .jahr[open] { padding-bottom: 1.5rem; }
.galerie-text h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; }
.galerie-text p { margin: 0; color: var(--leise); font-size: 0.9rem; }
.galerie .bilder { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.5rem; }
.galerie .bilder img { background: var(--flaeche); }
.galerie .bilder a { display: block; cursor: zoom-in; }
@media (max-width: 44rem) {
  .galerie .galerie-eintrag { grid-template-columns: 1fr; }
  .galerie .bilder { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff;
}
.lightbox::backdrop { background: rgb(10 14 16 / 0.92); }
.lightbox figure {
  margin: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3.5rem 4rem 2rem;
}
.lightbox img { max-width: 100%; max-height: calc(100% - 3rem); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 0.9rem; color: #c9d2d6; font-size: 0.9rem; text-align: center; max-width: 46rem; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 2.6rem/1 var(--schrift); padding: 0.5rem 0.9rem; opacity: 0.8;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-zurueck { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-zu { right: 0.75rem; top: 0.5rem; font-size: 2.2rem !important; }
.lightbox.einzeln .lb-zurueck, .lightbox.einzeln .lb-weiter { display: none; }
@media (max-width: 44rem) {
  .lightbox figure { padding: 3.5rem 0.75rem 1.5rem; }
  .lb-zurueck, .lb-weiter { top: auto; bottom: 0.5rem; transform: none; }
}

/* ==========================================================
   Startseite ruhiger: außer dem Namen nur drei Größen
   Titel (Album), Fließtext, Kleingedrucktes
   ========================================================== */
.buehne .unterzeile,
.buehne .label, .albumband .label, .zitatband .label { font-size: 0.9rem; }
.naechste .termine li { font-size: 0.9rem; }
.naechste .mehr, .albumband .mehr, .zitatband .mehr { font-size: 1.0625rem; }
.albumband .titel { font-size: 1.6rem; letter-spacing: 0.01em; }
.albumband .band { font-size: 0.9rem; margin: 0.25rem 0 1rem; }
.drei-stimmen .zitat p { font-size: 1.0625rem; font-weight: 400; line-height: 1.55; }
.drei-stimmen .zitat figcaption { font-size: 0.9rem; }

/* Startseite noch ruhiger: eine Schriftstärke für Termine, Albumtitel in Textgröße,
   Name etwas kleiner, Links im Kleingedruckten */
.buehne h1 { font-size: clamp(1.6rem, 3.6vw, 3.2rem); }
.naechste .termine time, .naechste .termine strong { font-weight: 400; }
.naechste .termine li { color: var(--text); }
.albumband .titel { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; line-height: 1.6; }
.albumband .band { margin-top: 0; }
.naechste .mehr, .albumband .mehr, .zitatband .mehr { font-size: 0.9rem; }

/* ---------- Mathematik-Seite ---------- */
.mathe-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.mathe-kopf img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 25%; }
.mathe-kopf .einleitung { max-width: 42rem; margin: 1rem 0 2rem; }
.mathe-adressen { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)) !important; gap: 1.5rem 2.5rem; font-size: 0.95rem; }
.mathe-adressen h2 { font-size: 1rem !important; margin-bottom: 0.3rem !important; }
.mathe-abschnitt { padding: 2.5rem 0; border-top: 1px solid var(--linie); scroll-margin-top: 1rem; }
.mathe-abschnitt > h2 { margin-bottom: 1.25rem; }
.news { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.news li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.2rem 1.5rem; padding: 0.6rem 0; border-top: 1px solid var(--linie); }
.news time { color: var(--leise); font-size: 0.9rem; }
.pubs { list-style: none; margin: 0 0 1rem; padding: 0; max-width: 52rem; }
.pubs li { padding: 0.6rem 0; border-top: 1px solid var(--linie); }
.pubs .titel-pub { display: block; }
.pubs .meta { display: block; color: var(--leise); font-size: 0.9rem; }
@media (max-width: 48rem) {
  .mathe-kopf { grid-template-columns: 1fr; }
  .mathe-kopf img { max-width: 18rem; }
  .news li { grid-template-columns: 1fr; }
}
.pubs { list-style: decimal; padding-left: 2.6rem; }
.pubs li::marker { color: var(--leise); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.preprints { margin: 0.5rem 0 1rem; }
.preprints summary { font-size: 1rem; font-weight: 400; color: var(--leise); }
.buch { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; max-width: 42rem; }
.buch img { width: 100%; height: auto; background: var(--flaeche); }
.buch p { margin: 0; }

/* Mathematik-Seite: Anpassungen */
.mathe-kopf { grid-template-columns: minmax(0, 1fr) minmax(0, 13rem); }
.mathe-kopf img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.pubs { list-style: none; padding-left: 0; }
#publications { margin-top: 2.5rem; padding-top: 3.5rem; }
/* Aufklappbereiche ohne Linie davor; die Trennlinie folgt danach (Oberkante des nächsten Abschnitts) */
.mathe-abschnitt details.jahr { border-top: 0; }
.mathe-abschnitt details.jahr > summary { font-size: 1rem; font-weight: 700; padding: 0.75rem 0 0.5rem; }
.mathe-abschnitt .preprints > summary { font-weight: 400; color: var(--leise); }
.mathe-abschnitt .semester h3 { margin-top: 1.25rem; }

/* Englische Datumsangaben sind länger */
html[lang="en"] .termine li { grid-template-columns: 10.5rem minmax(0, 1fr) minmax(0, 1fr); }
html[lang="en"] .naechste .termine li { grid-template-columns: 9.5rem minmax(0, 1fr); }
@media (max-width: 40rem) {
  html[lang="en"] .termine li, html[lang="en"] .naechste .termine li { grid-template-columns: 1fr; }
}

/* Mathematik-Seite: breitere Textspalte */
.mathe .mathe-abschnitt.text, .mathe .text, .mathe .news, .mathe .pubs { max-width: 58rem; }
