@font-face {
  font-family: "Inter";
  src: url("/theme/lisa/inter.ttf")
       format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/theme/lisa/inter-italic.ttf")
       format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-heading: "Inter", Helvetica, Tahoma, sans-serif;
  --font-body: "Inter", Helvetica, Tahoma, sans-serif;
}

#homepage-banner {
  min-height: revert;
}

#homepage-banner-heading {
  font-size: 2.3rem;
}

.welcome-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.welcome-text {
  flex: 1 1 55%;
}

.welcome-image {
  flex: 1 1 45%;
  max-width: 190px;
  margin: 10px;
}

.welcome-image svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .welcome-content {
    flex-direction: column;
  }

  .welcome-image {
    display: none;
  }
}

.page-content table th,
.page-content table td {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  min-width: 6em;
}
.page-content table th:empty {
  min-width: 0;
}
.page-content table th,
.page-content table td strong {
  hyphens: manual;
}
.page-content table td > img:only-child {
  display: block;
  margin: 0 auto;
  max-width: none;
}
.page-content table td:has(> img:only-child) {
  min-width: 0;
  width: 1%;
}
.page-content table {
  table-layout: auto;
}

@font-face {
  font-family: "Inter";
  src: url("/theme/lisa/inter.ttf")
       format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/theme/lisa/inter-italic.ttf")
       format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-heading: "Inter", Helvetica, Tahoma, sans-serif;
  --font-body: "Inter", Helvetica, Tahoma, sans-serif;
}

#homepage-banner {
  min-height: revert;
}

#homepage-banner-heading {
  font-size: 2.3rem;
}

.welcome-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.welcome-text {
  flex: 1 1 55%;
}

.welcome-image {
  flex: 1 1 45%;
  max-width: 190px;
  margin: 10px;
}

.welcome-image svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .welcome-content {
    flex-direction: column;
  }

  .welcome-image {
    display: none;
  }
}

.page-content table th,
.page-content table td {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  min-width: 6em;
}
.page-content table th:empty {
  min-width: 0;
}
.page-content table th,
.page-content table td strong {
  hyphens: manual;
}
.page-content table td > img:only-child {
  display: block;
  margin: 0 auto;
  max-width: none;
}
.page-content table td:has(> img:only-child) {
  min-width: 0;
  width: 1%;
}
.page-content table {
  table-layout: auto;
}

/* Alle Dropdowns im Seiteninhalt */
.page-content details {
  margin: 1.2em 0;
  border: 1px solid rgba(128, 128, 128, .35);
  border-radius: 8px;
  background: rgba(128, 128, 128, .07);
  overflow: hidden;
}
.page-content details > summary {
  display: flex;
  align-items: center;
  gap: .75em;
  padding: .75em 1em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.page-content details > summary::-webkit-details-marker { display: none; }
.page-content details > summary:hover { background: rgba(128, 128, 128, .12); }
.page-content details > summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
/* Pfeil rechts, dreht sich beim Öffnen */
.page-content details > summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: .55em;
  height: .55em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.page-content details[open] > summary::after { transform: rotate(-135deg); }
.page-content details[open] > summary {
  border-bottom: 1px solid rgba(128, 128, 128, .3);
}

/* Nur Video-Dropdowns: Play-Symbol vor dem Aufklappen.
   Der BookStack-Editor verpackt das <video> beim Speichern in ein <p>. Beide Formen gelten, sonst
   verschwindet der Button, sobald jemand die Seite im Editor speichert. */
.page-content details:has(> video, > p > video) > summary::before {
  content: "";
  flex: none;
  width: 1.9em;
  height: 1.9em;
  background-color: var(--color-primary);
  -webkit-mask: var(--video-icon) center / contain no-repeat;
          mask: var(--video-icon) center / contain no-repeat;
  --video-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zM10 8v8l6-4z'/%3E%3C/svg%3E");
}

/* Video füllt die Box bündig und läuft auf schmalen Schirmen mit */
.page-content details > p:has(> video) { margin: 0; }
.page-content details > video,
.page-content details > p > video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
