/* Grundfarben und Typografie */

:root {
  --color-background: #FEF9EB;
  --color-green: #0C4B0E;
  --color-green-header: #205422;
  --color-green-light: #789575;
  --color-paper: #FFFDF6;
  --color-line: #cdd5c3;
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-green);
  font-family: Menlo, monospace;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: var(--color-green);
}

a:hover {
  background-color: var(--color-green-header);
  color: var(--color-background);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}


.person-contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2rem;
  margin-top: 0.15rem;
}

.person-details > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .person-contact {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}


/* Inhaltstabellen im Stil der historischen EWS-Vorlesungsseite.
   markdown_tables.rb kennzeichnet Markdown-Tabellen, jj-le bindet die Klassen direkt ein. */

.site-main .markdown-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1rem;
}

.site-main .markdown-table-scroll:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

.site-main table.markdown-table {
  width: max-content;
  border-collapse: collapse;
  font-family: inherit;
  font-size: 70%;
  overflow-wrap: normal;
}

.site-main table.markdown-table > tbody {
  background-color: #EFF3EF;
}

.site-main table.markdown-table > thead > tr > th {
  font-weight: 300;
}

.site-main table.markdown-table > thead,
.site-main table.markdown-table > tfoot,
.site-main table.markdown-table > tbody > tr:has(> th[scope="rowgroup"]) {
  background-color: #D2DDD3;
}

.site-main table.markdown-table > :is(thead, tbody, tfoot) > tr > :is(th, td) {
  padding: 5px 10px;
  vertical-align: top;
  /* Kramdown erzeugt bei ausgerichteten Markdown-Spalten Inline-Stile. */
  text-align: left !important;
}


/* Kontaktseite */

.contact-page .contact-address {
  margin-inline-start: 1.5rem;
  overflow-wrap: anywhere;
}

.contact-page .contact-location-label {
  margin-top: 2rem;
}


/* Startseite: gemeinsame Größe, unterschiedliche Schriftstärke */

.home-page > h2,
.home-page .home-person-name {
  font-size: 1.1rem;
}

.home-page > h2 {
  font-weight: bold;
  /* Bisheriger H2-Abstand: 0.83em bei 21px Schriftgröße. */
  margin-block: 17.43px;
}

.home-page .home-person-name {
  font-weight: normal;
}

/* Only member groups: research keeps its original markers and spacing. */
.home-page > h2:not(.home-research-heading) {
  margin-bottom: 0.25rem;
}

.home-page > h2:not(.home-research-heading) + ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 3ch;
}

.home-page > .home-research-heading {
  margin-top: 2rem;
}


/* Personenübersicht */

.people-page .person-activities {
  font-weight: normal;
}

.people-page > h2 {
  font-size: 1.5em;
  font-weight: bold;
}

.people-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.people-list > li {
  padding: 0.25rem 0 0.4rem;
  border-bottom: 1px solid #d0d0d0;
  margin-bottom: 0.5rem;
  width: 90%;
}

.people-page .people-list > li:last-child {
  border-bottom: 0;
}

.people-list > li > strong {
  display: block;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 0.45rem;
  margin-bottom: 0.25rem;
  width: 100%;
}

.people-list > li::marker {
  font-size: 0.75em;
}


/* Grundlayout der Website */

.site-layout {
  display: grid;
  --sidebar-width: 230px;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  min-height: 360px;
  overflow: hidden;
  align-items: stretch;
}

.site-header {
  grid-column: 1 / -1;
  grid-row: 1;

  position: sticky;
  top: 0;
  z-index: 100;

  background-color: var(--color-green-header);
  color: var(--color-background);

  --seal-size: 120px;
  display: grid;
  grid-template-columns: var(--seal-size) minmax(0, 1fr);
  align-items: center;
  gap: 35px;
  padding: 10px 2rem 10px 25px;
}

.site-sidebar {
  grid-column: 1;
  grid-row: 2 / 4;
  padding: 10px 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.site-main {
  grid-column: 2;
  grid-row: 3;
  padding: 1.5rem 2rem;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scroll-padding-block: 1rem;
  overflow-wrap: anywhere;
}


.site-sidebar .text-navigation {
  border-top: 1px solid var(--color-line);
  padding-top: 1.5rem;
}


/* Kopfbereich */

.header-content {
  align-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.institution-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
}

.site-header a,
.site-header a:visited {
  color: var(--color-background);
}

.site-header a:hover {
  color: var(--color-green);
  background-color: var(--color-background);
}

.header-titles {
  margin-top: 0.25rem;
  line-height: 1.4;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.header-titles > div:first-child {
  font-size: 1.1rem;
}

.header-group-title {
  font-size: 1.4rem;
  margin-top: 0.3rem;
}

.university-seal {
  width: var(--seal-size);
  height: var(--seal-size);
  object-fit: contain;
}

.language-switch {
  white-space: nowrap;
}

.language-switch img {
  width: 24px;
  height: 12px;
  object-fit: contain;
  opacity: 0.5;
}


.language-switch a,
.language-switch a:hover {
  text-decoration: none;
}

.language-switch a:hover {
  background: transparent;
}

.language-switch a:hover img,
.language-switch .language-active img {
  opacity: 1;
}


/* Navigation in der linken Spalte */

.text-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}


.text-navigation a,
.text-navigation a:visited,
.text-navigation .navigation-active {
  display: inline-block;
  padding: 0;
  line-height: 1.1;
  color: var(--color-green);
  opacity: 0.65;
  text-decoration: none;
}

.text-navigation a:hover,
.text-navigation a:focus-visible {
  opacity: 1;
  color: var(--color-background);
  background-color: var(--color-green-header);
}

.text-navigation .navigation-active {
  font-weight: bold;
}

/* Symbolnavigation */

.icon-navigation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 18px;

  width: 100%;
  box-sizing: border-box;
}

.icon-navigation a {
  display: inline-block;
  line-height: 1;
  opacity: 0.5;
}


.icon-navigation a.icon-active,
.icon-navigation a:hover,
.icon-navigation a:focus-visible {
  opacity: 1;
}

.icon-navigation a:hover {
  color: var(--color-green);
  background-color: transparent;
}


/* Fußbereich */

.site-footer {
  grid-column: 1 / -1;
  grid-row: 4;

  background-color: var(--color-green-header);
  color: var(--color-background);

  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  overflow: hidden;
}


.footer-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1rem;
  line-height: 1.3;
  --footer-line-gap: 0.125rem;
}

.footer-disclosure { min-width: 0; }
.footer-disclosure > summary { display: none; }

@media (width > 900px) {
  .footer-disclosure::details-content { display: contents; content-visibility: visible; }
}

.footer-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-credits {
  margin-top: var(--footer-line-gap);
  font-size: 90%;
  line-height: 1lh;
}


.site-footer a,
.site-footer a:visited {
  color: var(--color-background);
}

.site-footer a:hover {
  color: var(--color-green);
  background-color: var(--color-background);
}

.footer-license {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-license img {
  display: block;
}

/* Die beiden Kopfmenüs öffnen über dem Inhalt. */

.institution-dropdown {
  display: none;
}

/* Keep the same measuring width when the title is tucked away. */
.header-event-title > span {
  display: inline-block;
  inline-size: max-content;
  white-space: nowrap;
}

.site-header:not(.event-title-fits) .header-event-title {
  height: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
}

.event-title-fits .header-title-dropdown { display: none; }
.header-title-dropdown { font-size: 1.4rem; }

.site-header summary {
  box-sizing: border-box;
  min-height: 32px;
  padding-block: 0.35rem;
  cursor: pointer;
}

.institution-dropdown {
  align-self: flex-end;
  font-size: 0.75rem;
}

.institution-dropdown nav,
.header-title-content {
  position: fixed;
  z-index: 1;
  box-sizing: border-box;
  max-height: min(50vh, 22rem);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--color-green-header);
  border: 1px solid var(--color-green-light);
  box-shadow: 0 3px 10px #0003;
  padding: 0.75rem;
}

.institution-dropdown nav {
  right: 1rem;
  width: min(20rem, calc(100% - 2rem));
  display: grid;
  gap: 0.25rem;
}

.institution-dropdown a {
  display: block;
  min-height: 32px;
  align-content: center;
}

.institution-dropdown[open] nav {
  z-index: 2;
}

.header-title-content {
  inset-inline: 1rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

@media (max-width: 1120px), (max-height: 420px) {
  .site-header {
    --seal-size: 96px;
    gap: 1rem;
    padding: 8px 1rem;
  }

  .institution-links { display: none; }
  .institution-dropdown { display: block; }
}

.archive-years {
  margin-top: 2rem;
  border-top: 1px solid var(--color-line);
  padding-top: 1rem;
}

.sidebar-section-title {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.archive-years ul {
  list-style: none;
  margin: 0;
  padding: 0;
}


.archive-years li {
  display: block;
  padding: 0.1rem 0;
  font-size: 0.85rem;
  opacity: 1.0;
}


.archive-years a {
  text-decoration: none;
}

.archive-nav-line {
  opacity: 1.0;
}

.archive-years .archive-month-list {
  margin: 0.25rem 0 0.4rem 1rem;
  padding: 0;
  list-style: none;
}

.archive-nav-line a,
.archive-nav-line a:visited,
.archive-nav-line .archive-nav-active,
.archive-nav-line .archive-separator,
.archive-nav-line .archive-count {
  color: var(--color-green);
  opacity: 0.65;
  text-decoration: none;
}

.archive-nav-line a:hover,
.archive-nav-line a:focus-visible {
  opacity: 1;
  /* background: transparent;*/
  /* font-weight: bold;*/
  color: var(--color-background);
  background-color: var(--color-green-header);
}


.archive-nav-active {
  font-weight: bold;
}


/* Shared main-content hierarchy: A stays at the breadcrumb's 0.4rem gap.
   B = 1.25rem; C = 0.75rem. No sidebar or post-summary selectors. */
.site-main {
  --overview-group-gap: 1.25rem;
  --overview-entry-gap: 0.75rem;
}

.site-main > .archive-breadcrumb:has(+ .archive-year-heading) {
  margin-bottom: var(--overview-group-gap);
}

.site-main > .archive-year-heading {
  margin: 0;
}

.site-main > .archive-year-heading + .archive-year-heading {
  margin-top: var(--overview-entry-gap);
}

.archive-year-heading a {
  color: var(--color-green);
  text-decoration: none;
    opacity: 0.5;
}

.archive-year-heading a:hover {
  background: transparent;
  text-decoration: underline;
  opacity: 1;
}

.archive-entry {
  margin-bottom: 2rem;
}

.archive-entry h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.archive-date {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0 0 0.75rem;
}

.archive-excerpt {
  margin-bottom: 1rem;
}

/* Kompakte Nachrichtenblöcke auf Kategorien-Jahresseiten */

.category-summary {
  margin-bottom: 0.6rem;
  padding: 0.4rem 0.75rem;
  background-color: var(--color-paper);
}

.category-summary-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.category-summary h2 {
  margin: 0;
  font-size: 0.95rem;
}

.category-summary h2 a {
  text-decoration: none;
}

.category-summary-more {
  margin-left: auto;
  font-size: 0.65rem;
  white-space: nowrap;
}

.category-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-style: italic;
}

.category-summary-meta .fa {
  opacity: 0.45;
}

.archive-breadcrumb {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  white-space: nowrap;
}

.archive-breadcrumb a {
  color: var(--color-green);
  text-decoration: none;
  opacity: 0.5;
}

.archive-breadcrumb a:hover {
  color: var(--color-green);
  background: transparent;
  opacity: 1;
}

.archive-breadcrumb a,
.archive-breadcrumb a:hover,
.archive-breadcrumb a:focus-visible {
  text-decoration: none;
}

.category-list {
  margin-top: 2rem;
  border-top: 1px solid var(--color-line);
  padding-top: 1rem;
}

.category-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li {
  padding: 0.1rem 0;
  font-size: 0.85rem;
}

.category-list .category-year-list {
  margin: 0.25rem 0 0.4rem 1rem;
  padding: 0;
  list-style: none;
}


.archive-breadcrumb {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  column-gap: 0.6rem;
  row-gap: 0.4rem;
  align-items: baseline;
  white-space: normal;
}

.archive-breadcrumb > i,
.archive-breadcrumb > a {
  grid-column: 1;
  justify-self: center;
}

.archive-breadcrumb > span {
  grid-column: 2;
  min-width: 0;
}

.archive-breadcrumb .breadcrumb-parent {
  font-size: 1.1rem;
}

.archive-breadcrumb .breadcrumb-current {
  font-size: 1.5rem;
}

.archive-breadcrumb > a,
.archive-breadcrumb > a:hover,
.archive-breadcrumb > a:focus-visible {
  text-decoration: none;
}

.archive-breadcrumb > a {
  opacity: 0.5;
}



.archive-breadcrumb > a:hover,
.archive-breadcrumb > a:focus-visible {
  opacity: 1;
  background: transparent;
  color: var(--color-green);
}

/* Einzelne Nachrichten */

/* Zusatzabstand zur Metadatenzeile; Überschrift-/Absatzränder bleiben erhalten. */
.news-post {
  padding-top: 20px;
}

/* Metadaten und Sprachwahl im Seitenkopf */

/* Post metadata occupies only the content column; sidebar spans this row.
   Its presence/height must never change the sidebar's start below the brand. */
.header-language-row {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  position: relative;
  margin: 0;
  padding: 0.5rem 20px;
  background: var(--color-background);

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;

  white-space: nowrap;
  z-index: 10;
}


.news-post-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.7rem;
  font-style: italic;
  color: var(--color-green);
}

.news-post-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.news-post-meta .fa {
  opacity: 0.5;
}

.header-language-row .news-post-meta a,
.header-language-row .news-post-meta a:visited {
  color: var(--color-green);
  background: transparent;
  text-decoration: none;
}

.header-language-row .news-post-meta a:hover,
.header-language-row .news-post-meta a:focus-visible {
  color: var(--color-green);
  background: transparent;
  text-decoration: underline;
}

/* Globale Sprachwahl */

/* Globale Sprachwahl */

.global-language-menu {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

.global-language-toggle {
  appearance: none;
  display: block;
  list-style: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0.5;
}

.global-language-toggle::-webkit-details-marker {
  display: none;
}

.global-language-toggle:hover,
.global-language-toggle:focus-visible,
.global-language-menu[open] .global-language-toggle {
  opacity: 1;
  background: transparent;
  color: inherit;
}

.global-language-options {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 200;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;

  width: max-content;
  min-width: 130px;
  padding: 0.5rem;
  box-sizing: border-box;

  background: var(--color-background);
  color: var(--color-green);
  border: 1px solid var(--color-green);
}

.site-sidebar .text-navigation,
.site-sidebar .archive-years,
.site-sidebar .category-list {
  width: 154px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Spracheinträge – gleicher Stil wie die Textnavigation */

.icon-navigation .global-language-options a,
.icon-navigation .global-language-options a:visited,
.icon-navigation .global-language-options .global-language-active {
  display: inline-block;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.1;
  color: var(--color-green);
  opacity: 0.65;
  text-decoration: none;
}

/* Alternative Sprachen beim Hover */

.icon-navigation .global-language-options a:hover,
.icon-navigation .global-language-options a:focus-visible {
  opacity: 1;
  color: var(--color-background);
  background-color: var(--color-green-header);
}

/* Aktuelle Sprache */

.icon-navigation .global-language-options .global-language-active {
  font-weight: bold;
  opacity: 1;
}


/* Abschlussarbeitenübersicht */

.theses-overview .theses-completed {
  scroll-margin-top: 160px;
}

.theses-overview .theses-completed > h2 {
  margin-top: 0;
}

.theses-overview .theses-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.theses-overview .thesis-entry {
  margin-bottom: 1.5rem;
}

.theses-overview .thesis-entry::marker {
  font-size: 0.75em;
}

.theses-overview .thesis-heading {
  margin-bottom: 0.25rem;
}

.theses-overview .thesis-read-more {
  font-size: 0.75em;
}

.theses-overview .thesis-people,
.people-page .thesis-people {
  margin: 0.15rem 0;
  font-size: 0.85em;
  color: #555;
  opacity: 0.75;
}


/* Einzeldarstellung von Abschlussarbeiten: vorhandene Schrift und Farben */

.news-post .thesis-metadata,
.news-post .thesis-person-details,
.news-post .thesis-content {
  margin: 0 0 1.5rem;
}

.news-post .thesis-metadata dt:not(:first-child),
.news-post .thesis-person-details > div + div,
.news-post .thesis-content > div + div {
  margin-top: 1.5rem;
}

.news-post .thesis-work-link {
  margin: 0 0 1.5rem 40px;
}


.news-post .thesis-metadata dt,
.news-post .thesis-person-details dt,
.news-post .thesis-content dt {
  font-weight: bold;
}


/* Lehrübersicht nach Veranstaltungssemester */

/* Gemeinsame Trennlinien: erster Abschnitt gliedert zugleich den Seitentitel. */
.teaching-overview > section,
.people-page > h2,
.theses-overview > .theses-completed {
  border-top: 1px solid var(--color-line);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.teaching-overview > section {
  scroll-margin-top: 1rem;
}

.teaching-overview > section > h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.teaching-overview-entry {
  margin-bottom: 1rem;
}

.teaching-overview-info {
  color: #777;
  font-size: 0.85em;
}

.teaching-overview-more {
  font-size: 0.85em;
}

/* Teaching-Detailseiten */

.news-post .teaching-kind,
.news-post .thesis-kind,
.paper-details .paper-kind,
.visitor-details .visitor-kind,
.talk-details .talk-kind {
  color: var(--color-meta, #777);
  font-size: 0.85em;
  margin: 0 0 0.5em;
}

.news-post .teaching-title {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
  border: 0;
  padding: 0;
  margin: 0;
}

.news-post .teaching-title-lsf {
  font-size: 0.7em;
  font-weight: normal;
  opacity: 0.75;
}

.news-post .teaching-metadata,
.news-post .teaching-external-notice,
.news-post .teaching-content-notice,
.news-post .thesis-content-notice {
  margin: 0 0 1.5rem;
}

.news-post .teaching-title + .teaching-metadata {
  margin-top: 1.5rem;
}

.news-post .teaching-metadata dt {
  font-weight: bold;
}

.news-post .teaching-metadata dt:not(:first-child) {
  margin-top: 1.5rem;
}

.news-post .teaching-contact-notice {
  font-size: 0.8em;
  margin: 0;
}

/* Chronologische Nachrichtennavigation unter dem linken Hauptmenü */

.post-navigation {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.post-navigation::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: 0;
  width: 154px;
  max-width: 100%;
  border-top: 1px solid var(--color-line);
}

.post-navigation a {
  color: var(--color-green);
  text-decoration: none;
}

.post-navigation .post-navigation-disabled {
  color: var(--color-green);
  opacity: 0.3;
}

.post-navigation a:hover,
.post-navigation a:focus-visible {
  background: transparent;
  color: var(--color-green);
  opacity: 0.2;
}


/* Independent viewport rows; icons never participate in the scrolling menus. */
.site-sidebar { position: relative; z-index: 1; }
.site-sidebar:has([open] > [data-positioned]) { z-index: 101; }

.sidebar-controls {
  --icon-reference-count: 5;
  --icon-compact-target: 24px;
  --icon-compact-gap: 3px;
  --icon-reference-width: calc(
    var(--icon-reference-count) * var(--icon-compact-target) +
    (var(--icon-reference-count) - 1) * var(--icon-compact-gap)
  );
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.sidebar-top { display: contents; }

.sidebar-icons {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 3px;
}

.sidebar-panel > summary {
  display: none;
  box-sizing: border-box;
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25rem 0.2rem;
  border-top: 1px solid var(--color-line);
  white-space: nowrap;
}
.sidebar-medium, .sidebar-short { display: none; }
.sidebar-panel::details-content { display: contents; content-visibility: visible; }
.sidebar-panel:not([open]) > .sidebar-panel-content { display: block; }
.sidebar-panel-content { min-width: 0; }
.sidebar-icons {
  /* Leave room around the original icon row in the normal layout. */
  --icon-normal-space: 36px;
}

.sidebar-icons[data-icon-layout="dropdown"] { position: static; }
.sidebar-icons[data-icon-layout="dropdown"] > summary {
  display: list-item;
  border-top: 0;
  min-height: var(--icon-compact-target);
  padding-block: 0;
}

/* Keep the teaching index's existing trigger height. */
.course-site:not(.standalone-seminar) .sidebar-icons[data-icon-layout="dropdown"]:not(:has(.global-language-menu)) > summary {
  min-height: 32px;
}

.sidebar-icons[data-icon-layout="dropdown"]::details-content { display: block; content-visibility: revert; }
.sidebar-icons[data-icon-layout="dropdown"]:not([open]) > .sidebar-panel-content { display: none; }
.sidebar-icons[data-icon-layout="dropdown"] > .sidebar-panel-content {
  position: fixed;
  inset: 4px auto auto var(--sidebar-width);
  width: min(22rem, calc(100vw - var(--sidebar-width) - 4px));
  max-height: calc(100dvh - 8px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--color-background);
  border: 1px solid var(--color-line);
  box-shadow: 0 3px 10px #0002;
  padding: 0.75rem;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.sidebar-icons[data-icon-layout="compact"] .icon-navigation {
  font-size: 14px;
  gap: var(--icon-compact-gap);
  margin: 0;
}

.sidebar-icons[data-icon-layout="dropdown"] .icon-navigation { flex-wrap: wrap; margin: 0; }

.sidebar-icons[data-icon-layout="compact"] :is(.icon-navigation > a, .global-language-toggle) {
  min-width: var(--icon-compact-target);
  min-height: var(--icon-compact-target);
  text-align: center;
  align-content: center;
}

.sidebar-icons[data-icon-layout="compact"] :is(.icon-navigation > a, .global-language-toggle):focus-visible {
  outline-offset: -2px;
}

.sidebar-icons[data-icon-layout="dropdown"] :is(.icon-navigation > a, .global-language-toggle) {
  min-width: 32px;
  min-height: 32px;
  text-align: center;
  align-content: center;
  opacity: 1;
}

.sidebar-icons[data-icon-layout="dropdown"] :is(.global-language-menu, .global-language-options) {
  position: static;
}

.sidebar-icons[data-icon-layout="dropdown"] .global-language-options {
  width: auto;
  max-width: 100%;
  margin-top: 0.25rem;
}

.sidebar-icons[data-icon-layout="compact"] .global-language-options { position: fixed; }

.sidebar-active-section > summary { font-weight: bold; }
.sidebar-section-title { font-size: 0.6rem; font-weight: normal; }
/* Separate bottom region: the flexible middle alone absorbs navigation length.
   Very long translations may scroll here rather than squeeze out the menu. */
.sidebar-latest {
  flex: 0 1 auto;
  max-height: 55%;
  overflow: auto;
  border-top: 1px solid var(--color-line);
  margin-top: 1rem;
  padding: 0.6rem 3px 0;
}
.sidebar-latest > summary { font-size: 0.6rem; }
.sidebar-message { margin-bottom: 1rem; }
.sidebar-message h3 { min-width: 0; font-size: 0.55rem; font-weight: normal; margin: 0 0 0.25rem; }
.sidebar-message h3 a {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: underline;
}
.sidebar-message-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; font-size: 0.55rem; color: #777; }
.sidebar-message-meta .fa { opacity: 1; }
.sidebar-archive-hint { font-size: 0.55rem; margin: 0.75rem 0 0; }
.sidebar-modified {
  font-size: 0.54rem;
  margin: 0.6rem 0 0;
  border-top: 1px solid var(--color-line);
  padding-top: 0.6rem;
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  letter-spacing: -0.05em;
}
.sidebar-modified .post-author .fa { display: none; }
.sidebar-modified .post-author { white-space: nowrap; font-weight: bold; }
.sidebar-message, .sidebar-modified { overflow-wrap: anywhere; }
/* Same visible tone as contextual links: their green at 65% over the page.
   Resolve it as a color, leaving nested links/icons at full opacity. */
.sidebar-section-title,
.sidebar-latest > summary,
.sidebar-message h3 a,
.sidebar-archive-hint,
.sidebar-archive-hint a,
.sidebar-modified,
.sidebar-modified a {
  color: color-mix(in srgb, var(--color-green) 65%, var(--color-background));
}
.sidebar-message-meta a { color: #777; }
.sidebar-message h3 a:hover,
.sidebar-message-meta a:hover,
.sidebar-archive-hint a:hover,
.sidebar-modified a:hover { color: var(--color-background); }
.sidebar-archive-hint a, .sidebar-archive-icons { white-space: nowrap; }
.site-footer { box-sizing: border-box; }

/* In schmalen oder niedrigen Fenstern teilen alle Seiten dieselben Flyouts. */
@media (max-width: 900px), (max-height: 720px) {
  .site-layout { --sidebar-width: 220px; }
  .site-sidebar { padding: 5px; }
  .sidebar-controls { padding: 3px; }
  .sidebar-top {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
  }
  .sidebar-scroll { overflow: visible; padding: 0; }
  .sidebar-panel { border: 0; margin: 0; padding: 0; }
  .sidebar-latest {
    flex: 0 0 auto;
    max-height: none;
    margin-top: auto;
    overflow: visible;
  }
  .sidebar-panel:not(.sidebar-icons) > summary { display: list-item; }
  .sidebar-panel:not(.sidebar-icons)::details-content { display: block; content-visibility: revert; }
  .sidebar-panel:not(.sidebar-icons):not([open]) > .sidebar-panel-content { display: none; }
  .sidebar-panel:not(.sidebar-icons) > .sidebar-panel-content {
    position: fixed;
    inset: 4px auto auto var(--sidebar-width);
    width: min(22rem, calc(100vw - var(--sidebar-width) - 4px));
    max-height: calc(100dvh - 8px);
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--color-background);
    border: 1px solid var(--color-line);
    box-shadow: 0 3px 10px #0002;
    padding: 0.75rem;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  .sidebar-panel :is(.text-navigation, .category-list, .archive-years) {
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .post-navigation {
    gap: 4px;
    margin-top: 0;
    border-top: 1px solid var(--color-line);
  }

  .post-navigation::before { display: none; }
  .post-navigation > :is(a, span) {
    display: grid;
    flex: 1 1 44px;
    min-width: 0;
    max-width: 44px;
    min-height: 44px;
    place-items: center;
  }
  .sidebar-panel .sidebar-section-title { margin-top: 0; }

  .sidebar-panel:not(.sidebar-icons[data-icon-layout="compact"]) .sidebar-panel-content a {
    min-height: 32px;
    align-content: center;
  }

  .sidebar-panel-content .archive-nav-line a { display: inline-grid; }
  .sidebar-panel .sidebar-message h3 a { white-space: normal; }
}

@media (width > 900px) and (max-height: 720px) {
  .sidebar-top {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .sidebar-scroll { overflow: auto; }
  .sidebar-icons .icon-navigation { margin-bottom: 0; }
}

@media (max-width: 900px) {
  .sidebar-icons .icon-navigation { margin-bottom: 0; }

  .site-main { padding: 1rem 0.75rem; }
  .site-header { --seal-size: 76px; }
  .header-titles { font-size: 0.72rem; }
  .header-titles > div:first-child { font-size: 0.8rem; }
  .header-group-title { font-size: 0.95rem; }
  .header-title-dropdown { font-size: 0.95rem; }

  .header-language-row { padding: 0.5rem 8px; flex-wrap: wrap; gap: 0.3rem; }
  .news-post-meta { gap: 0.25rem 0.5rem; }

  .site-footer { padding-inline: 8px; }
  .footer-content { gap: 0.65rem; }
  .footer-disclosure > summary {
    display: list-item;
    padding-block-end: calc(1lh + var(--footer-line-gap));
    cursor: pointer;
    white-space: nowrap;
  }
  .footer-disclosure > .footer-text {
    position: fixed;
    z-index: 102;
    inset: auto 4px 44px 4px;
    max-height: calc(100dvh - 8px);
    box-sizing: border-box;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--color-green-header);
    border: 1px solid var(--color-green-light);
    box-shadow: 0 3px 10px #0003;
    padding: 0.75rem;
  }
}

@media (600px <= width <= 900px) {
  .site-layout { grid-template-columns: max-content minmax(0, 1fr); }

  /* Reserve the same compact row, including on seminars with four icons. */
  .sidebar-icons { min-inline-size: var(--icon-reference-width); }

  /* Long section labels can wrap within the existing 44px menu row. */
  .sidebar-active-section > summary {
    max-inline-size: var(--icon-reference-width);
    white-space: normal;
    overflow-wrap: anywhere;
    padding-block: 0;
  }

  .sidebar-theses > summary:has(.sidebar-medium) > .sidebar-full { display: none; }
  .sidebar-theses .sidebar-medium { display: inline; }

  /* The menu script positions fixed panels at the measured sidebar edge. */
  :is(.sidebar-panel:not(.sidebar-icons), .sidebar-icons[data-icon-layout="dropdown"]) > .sidebar-panel-content {
    inset-inline-start: 4px;
    width: min(22rem, calc(100vw - 8px));
  }
}

@media (width < 600px) {
  .site-layout { --sidebar-width: 96px; }
  .sidebar-icons {
    /* Use the same total horizontal inset as the full-size sidebar. */
    --icon-end-inset: calc(3rem - 16px);
    padding-inline-end: var(--icon-end-inset);
  }
  .sidebar-icons > summary { margin-inline-end: calc(-1 * var(--icon-end-inset)); }
  .post-navigation .fa { font-size: 1.5em; }
  .sidebar-full { display: none; }
  .sidebar-short { display: inline; }
}

@media (max-width: 450px), (max-height: 420px) {
  .site-header {
    --seal-size: 54px;
    gap: 0.625rem;
    padding: 5px 0.625rem;
  }

  .header-titles {
    margin-top: 0;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .header-titles > div:first-child { font-size: inherit; }
  .header-group-title { font-size: 0.85rem; margin-top: 0.2rem; }
  .site-header summary { min-height: 28px; padding-block: 0.25rem; }
}

@media (max-width: 450px) {
  .site-header { column-gap: 0.625rem; row-gap: 0; padding-block: 3px; }
  .header-content, .header-titles { display: contents; }
  .university-seal { grid-area: 1 / 1 / 4 / 2; }
  .institution-dropdown { grid-area: 1 / 2; justify-self: end; }
  .header-titles > div:first-child { grid-area: 2 / 2; }
  .header-titles > div:nth-child(2) { grid-area: 3 / 2; }
  .header-group-title { grid-area: 4 / 1 / 5 / -1; }
  .header-title-dropdown { grid-area: 4 / 1 / 5 / -1; }
  .header-titles > :is(div, details) {
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .header-titles > div:nth-child(-n+2) { font-size: 0.7rem; }
}

@media (max-height: 420px) {
  .site-layout { min-height: 0; }
  .header-language-row { max-height: 64px; overflow: auto; box-sizing: border-box; }
  .site-footer { padding-block: 0.45rem; }
}

/* Paper-only bibliography; author affiliations wrap with their own name. */
.paper-details dl {
  margin: 0 0 1.5rem;
}

.paper-details dt {
  font-weight: bold;
}

.paper-details dt:not(:first-child) {
  margin-top: 1.25rem;
}

.paper-details dd {
  margin: 0.25rem 0 0;
}

.paper-details .paper-author {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.paper-details .paper-content,
.paper-details .paper-content-notice {
  margin: 0 0 1.5rem;
}

/* Publication overview only; global lists and existing overview spacing stay intact. */
.paper-overview > section {
  margin-top: 2rem;
}

.paper-overview > section > h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.paper-overview > section > ul {
  list-style: disc;
  margin: 0;
  padding-inline-start: 2rem;
}

.paper-overview .paper-overview-entry {
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}

.paper-overview .paper-overview-citation {
  color: #777;
  font-size: 0.85em;
}

.paper-overview .paper-overview-more {
  font-size: 0.85em;
}

/* Same line as Teaching/Thesis, drawn inside the existing inter-group gap. */
.paper-overview > section + section {
  position: relative;
}

.paper-overview > section + section::before {
  content: "";
  position: absolute;
  top: -1rem;
  inset-inline: 0;
  border-top: 1px solid var(--color-line);
}

/* First section separates the page title, as in Teaching/Thesis. */
.paper-overview > h1 + section {
  border-top: 1px solid var(--color-line);
  padding-top: 1.5rem;
}

/* Talk details use the normal body typography, with only the title emphasized. */
.talk-details {
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.talk-details .talk-title {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
}
.talk-details .talk-metadata a,
.talk-details .talk-metadata a:visited {
  color: inherit;
}
/* Half a body line separates the three metadata groups. */
.talk-details .talk-event,
.talk-details .talk-resources {
  margin-top: 0.75em;
}
.talk-details .talk-metadata a:hover {
  color: var(--color-background);
}
.talk-details .talk-resources .fa {
  font-size: 0.85em;
  opacity: 0.7;
}
.talk-details .talk-abstract,
.talk-details .talk-content-notice {
  margin-top: 1rem;
}

/* Conference sessions: body-sized titles and unframed invited contributions. */
.event-session .session-label {
  font-size: 0.85em;
  color: var(--color-meta, #777);
  margin-bottom: 0.5em;
}
.event-session .session-title,
.event-session .event-speakers > h2,
.event-session .session-speaker > h3 {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
  border: 0;
  padding: 0;
  margin: 0;
}
.event-session .session-conference,
.event-session .event-speakers {
  margin-top: 1.5em;
}
.event-session .event-speakers > h2 { font-weight: 400; }
/* Reuse the title/organizer line height; retain the final gap before the body. */
.event-session .session-speaker { margin: 0 0 1.2em; padding: 0; border: 0; line-height: inherit; }
/* Match the heading-to-first-speaker gap between contribution groups. */
.event-session .event-speakers > h2,
.event-session .session-speaker:not(:last-child) { margin-bottom: 1em; }
.event-session .session-speaker > h3 { margin-bottom: 0; }
.event-session a,
.event-session a:visited { color: inherit; }
.event-session a:hover { color: var(--color-background); }
.event-session .talk-resources { margin-top: 0; }
.event-session .talk-resources .fa { font-size: 0.85em; opacity: 0.7; }
.event-details:has(.event-session) > .event-content,
.event-details:has(.event-session) > .event-content-notice { margin-top: 1rem; }

/* Short courses follow Session typography; organizers close the metadata. */
.event-shortcourse .shortcourse-label {
  font-size: 0.85em;
  color: var(--color-meta, #777);
  margin-bottom: 0.5em;
}
.event-shortcourse .shortcourse-title {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
  border: 0;
  padding: 0;
  margin: 0;
}
.event-shortcourse .shortcourse-event,
.event-shortcourse .event-sponsors,
.event-shortcourse .event-organizers { margin-top: 1.5em; }
.event-shortcourse a,
.event-shortcourse a:visited { color: inherit; }
.event-shortcourse a:hover { color: var(--color-background); }
.event-details:has(.event-shortcourse) > .event-content,
.event-details:has(.event-shortcourse) > .event-content-notice { margin-top: 1rem; }

/* Workshop reuses Session typography and spacing, with one ordered-in-source list. */
.event-details .workshop-image { display: block; width: 100%; max-width: 100%; height: auto; margin: 0.75em 0; border: 0; padding: 0; }
.event-workshop .event-content,
.event-workshop .event-content-notice,
.event-details .event-sponsors { margin-top: 1.5em; }
.event-details .event-sponsors > h2 {
  font-size: inherit; font-weight: 400; line-height: inherit;
  color: inherit; margin: 0 0 0.5em; padding: 0; border: 0;
}
.event-workshop .workshop-contributions { margin: 0; padding: 0; list-style: none; border: 0; }
.event-workshop .workshop-contributions > li { list-style: none; }
.event-workshop .event-content h2 { border: 0; }
.event-session .talk-abstract-link { text-decoration: none; }
.event-session .talk-abstract-link span { text-decoration: underline; }

/* Free course content precedes the ordered course contribution blocks. */
.event-shortcourse .event-content,
.event-shortcourse .event-content-notice { margin-top: 1.5em; }
