@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans/PlusJakartaSans[wght].woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans/PlusJakartaSans-Italic[wght].woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --beige: #f9e0cd;
  --white: #ffffff;
  --gray: #e3e4e7;
  --black: #111111;
  --taupe: #635e59;
  --taupe-dark: #4b4743;
  --purple: #8c52ff;
  --line: rgba(0, 0, 0, 0.88);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --wrap: min(980px, calc(100% - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

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

button,
a {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--black);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.hero {
  background: var(--beige);
  padding: 28px 0 8px;
  overflow: hidden;
}

.wordmark {
  margin: 0 0 16px;
}

.wordmark img {
  width: auto;
  max-width: min(260px, 70%);
  max-height: 72px;
  height: auto;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(22px, 3vw, 33px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--line);
}

.hero .section-title {
  border-bottom-color: var(--black);
}

.intro {
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 700;
  max-width: 58rem;
  margin: 18px 0 20px;
}

.reader-notice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px 20px 32px;
  border-bottom: 1.5px solid var(--black);
  background: linear-gradient(var(--white), var(--white)) no-repeat;
  background-size: 100% calc(100% - 16px);
}

.reader-notice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.reader-notice-row p {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.reader-notice-row .text-btn {
  flex: 0 0 16.5em;
  width: 16.5em;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.reader-shell {
  position: relative;
  margin-top: 8px;
}

.reader-frame {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lang-tabs {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  position: relative;
  z-index: 3;
  pointer-events: none;
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  align-self: end;
}

.lang-tab {
  appearance: none;
  border: 0;
  margin: 0;
  background: rgba(99, 94, 89, 0.16);
  color: var(--black);
  font: 700 12px/1 var(--font);
  letter-spacing: 0.06em;
  width: 52px;
  min-width: 52px;
  flex: 0 0 52px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-sizing: border-box;
}

.lang-tab-label {
  position: relative;
  z-index: 1;
}

.lang-heart {
  display: none;
  position: absolute;
  left: 50%;
  top: 1px;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -70%);
  fill: var(--purple);
  z-index: 2;
  pointer-events: none;
}

.lang-tab.is-locked .lang-heart {
  display: block;
}

.lang-tab:disabled {
  opacity: 0.38;
  cursor: default;
}

.lang-tab.is-unavailable {
  background: rgba(47, 42, 38, 0.46);
  color: rgba(255, 255, 255, 0.82);
}

.lang-tab.is-unavailable .lang-tab-label {
  opacity: 0.78;
}

.lang-tab.is-active,
.lang-tab.is-current,
.lang-tab.is-translated {
  background: var(--white);
}

.book-chrome {
  display: contents;
}

.reader-tools {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  pointer-events: auto;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  z-index: 3;
}

.icon-btn {
  appearance: none;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: var(--white);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 0;
  margin: 0;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.icon-btn img {
  width: 16px;
  height: 16px;
  filter: none;
  display: block;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: #f3f0ec;
  outline: none;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--taupe);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  z-index: 8;
  justify-self: center;
  box-shadow: 0 6px 18px rgba(47, 42, 38, 0.22);
  transition: background 0.2s ease, opacity 0.2s ease;
  touch-action: manipulation;
}

.nav-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-collapse {
  display: none;
}

.reader-shell.is-expanded .icon-expand {
  display: none;
}

.reader-shell.is-expanded .icon-collapse {
  display: block;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  outline: none;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background: var(--taupe-dark);
  outline: none;
}

.reader-stage {
  position: relative;
  display: grid;
  grid-template-columns: 40px max-content 40px;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  row-gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.nav-prev {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  align-self: center;
}

.nav-next {
  grid-column: 3;
  grid-row: 2;
  justify-self: center;
  align-self: center;
}

.reader-spread {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: visible;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
}

.book-stack {
  display: contents;
}

.reader-spread:has(.book-host.is-cover:not(.is-flipping)),
.reader-spread:has(.book-host.is-back-cover:not(.is-flipping)) {
  width: var(--page-w);
  max-width: 100%;
}

.book-host {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  line-height: 0;
  font-size: 0;
  align-self: center;
  touch-action: pan-y;
  box-shadow:
    0 18px 44px rgba(47, 42, 38, 0.28),
    0 4px 12px rgba(47, 42, 38, 0.14);
}

.book-host .stf__parent,
.book-host .stf__wrapper,
.book-host .stf__block,
.book-host .book {
  margin: 0 auto;
  padding: 0;
}

.book-host .stf__parent {
  position: relative;
}

.book-host.is-cover .stf__parent,
.book-host.is-back-cover .stf__parent {
  box-shadow: none;
}

.book-host.is-cover:not(.is-flipping),
.book-host.is-back-cover:not(.is-flipping) {
  overflow: visible;
  width: var(--page-w);
}

.book-host.is-cover:not(.is-flipping) .stf__parent,
.book-host.is-cover:not(.is-flipping) .book {
  clip-path: inset(0 0 0 50%);
  transform: translateX(calc(-1 * var(--page-w)));
}

.book-host.is-back-cover:not(.is-flipping) .stf__parent,
.book-host.is-back-cover:not(.is-flipping) .book {
  clip-path: inset(0 50% 0 0);
}

.book-host.is-spread,
.book-host.is-flipping {
  overflow: hidden;
}

.book-host.is-spread .stf__parent::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 36px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(47, 42, 38, 0.04) 38%,
    rgba(47, 42, 38, 0.12) 49%,
    rgba(20, 16, 14, 0.18) 50%,
    rgba(47, 42, 38, 0.12) 51%,
    rgba(47, 42, 38, 0.04) 62%,
    transparent 100%
  );
}

.book-host .stf__parent,
.book-host .stf__wrapper {
  overflow: hidden;
}

.book-host .stf__item {
  background: #fff;
  overflow: hidden;
}

.book-page {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: hidden;
}

.book-page.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 14, 0.42);
  pointer-events: none;
  z-index: 4;
}

.page-link {
  position: absolute;
  z-index: 8;
  box-sizing: border-box;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 2px;
  background: transparent;
  touch-action: manipulation;
}

.page-link:hover,
.page-link:focus-visible {
  background: rgba(140, 82, 255, 0.12);
  outline: 2px solid rgba(140, 82, 255, 0.55);
  outline-offset: 1px;
}

.book-page img,
.book-host .stf__item img {
  max-width: none;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.page-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 30px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  pointer-events: auto;
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
}

.page-jump input {
  width: 4.4em;
  appearance: textfield;
  -moz-appearance: textfield;
  border: 1.5px solid var(--black);
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-weight: 800;
  text-align: center;
  padding: 5px 6px;
  border-radius: 4px;
}

.page-jump input::-webkit-outer-spin-button,
.page-jump input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.page-jump input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.page-jump-sep,
#page-total {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-download {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  background: rgba(47, 42, 38, 0.42);
  pointer-events: auto;
}

.page-download-icon {
  appearance: none;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(47, 42, 38, 0.22);
}

.page-download-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

.page-download-icon:hover,
.page-download-icon:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

.reader-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-weight: 600;
  background: transparent;
  color: var(--taupe);
  z-index: 5;
}

.reader-status[hidden] {
  display: none !important;
}

.reader-shell.is-booting .nav-btn,
.reader-shell.is-booting .book-chrome,
.reader-shell.is-booting .lang-tabs,
.reader-shell.is-booting .reader-tools,
.reader-shell.is-booting .page-jump {
  visibility: hidden;
  pointer-events: none;
}

.reader-shell.is-booting .reader-spread,
.reader-shell.is-booting .book-host,
.reader-shell.is-booting .reader-status {
  min-height: min(70vh, 560px);
}

.nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
  box-shadow: none;
}

.reader-shell.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 16px 20px 20px;
  background: var(--beige);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.reader-shell.is-expanded .reader-frame {
  flex: 1;
  min-height: 0;
}

.reader-shell.is-expanded .reader-stage {
  flex: 1 1 auto;
  min-height: 0;
}

.reader-shell.is-expanded .reader-spread,
.reader-shell.is-expanded .book-host {
  height: 100%;
  min-height: 0;
}

body.is-reader-expanded,
body.is-reader-fullscreen {
  overflow: hidden;
}

iframe.is-reader-fullscreen,
.reader-embed.is-reader-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  z-index: 99999 !important;
  background: var(--beige) !important;
}

.embed-section {
  background: var(--white);
  padding: 40px 0 72px;
}

.embed-section p {
  font-size: 15px;
  max-width: 52rem;
  margin: 0 0 22px;
}

.embed-panel-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.embed-panel {
  flex: 1 1 280px;
  min-width: 0;
}

.embed-panel summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 0;
  user-select: none;
}

.embed-panel summary::-webkit-details-marker,
.embed-panel summary::marker {
  display: none;
  content: "";
}

.embed-panel summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.embed-panel[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.embed-panel summary:hover,
.embed-panel summary:focus-visible {
  outline: none;
  color: var(--taupe-dark);
}

.embed-panel summary:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}

.embed-code {
  margin: 8px 0 0;
  padding: 16px 18px;
  background: var(--gray);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.embed-code code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: inherit;
}

.print-section {
  background: var(--white);
  padding: 56px 0;
}

.print-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
  margin-top: 28px;
}

.print-figure {
  margin: 0;
  background: #ececec;
}

.print-figure img {
  width: 100%;
  object-fit: contain;
  background: #ececec;
}

.print-copy {
  font-size: 15px;
}

.print-copy a {
  color: inherit;
  font-weight: 700;
}

.mail-template {
  margin: 18px 0;
  padding: 0;
  border: 0;
  font-style: italic;
  font-size: 13px;
  line-height: 1.45;
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-btn {
  appearance: none;
  border: 1.5px solid var(--black);
  background: transparent;
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

.text-btn:focus-visible {
  background: var(--black);
  color: var(--white);
}

@media (hover: hover) and (pointer: fine) {
  .text-btn:hover {
    background: var(--black);
    color: var(--white);
  }
}

.impressum {
  background: var(--gray);
  padding: 56px 0 72px;
  font-size: 16px;
}

.impressum .section-title {
  margin-bottom: 22px;
}

.cite {
  max-width: 52rem;
}

.imprint-label {
  font-weight: 700;
  margin: 22px 0 6px;
}

.impressum ul {
  margin: 0;
  padding: 0 0 0 18px;
}

.impressum li {
  margin: 2px 0;
}

.cc-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.license-mark {
  height: 28px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  :root {
    --wrap: min(980px, calc(100% - 32px));
  }

  .print-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-bottom: 8px;
  }

  .hero .wrap {
    width: 100%;
  }

  .hero .wordmark,
  .hero .intro,
  .hero .reader-notice,
  .hero .download-list {
    padding-inline: 16px;
  }

  .lang-tab {
    height: 28px;
  }

  .reader-stage {
    position: relative;
    grid-template-columns: 40px max-content 40px;
    column-gap: 6px;
    width: 100%;
    justify-content: center;
    justify-items: center;
  }

  .nav-btn {
    width: 38px;
    height: 38px;
  }

  .lang-tabs {
    justify-self: start;
  }

  .reader-tools {
    display: contents;
  }

  #fullscreen-btn,
  #reader-download-btn {
    position: static;
    grid-column: 2;
    grid-row: 3;
    left: auto;
    right: auto;
    bottom: auto;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    border-radius: 0 0 8px 8px;
    z-index: 4;
    margin: 0;
    align-self: start;
  }

  #fullscreen-btn {
    justify-self: start;
  }

  #reader-download-btn {
    justify-self: end;
  }

  .page-jump {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
    align-self: start;
    margin: 20px 0 0;
    min-height: 28px;
  }

  body.embed .reader-shell,
  body.embed.is-framed .reader-shell {
    padding: 16px 8px 48px;
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .reader-shell.is-expanded {
    padding: 12px 8px 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .icon-btn,
  .nav-btn,
  .text-btn,
  .embed-panel summary::after {
    transition: none;
  }
}

.reader-embed-wrap {
  margin-top: 0;
}

.reader-embed {
  width: 100%;
  border: 0;
  display: block;
  min-height: 640px;
  background: transparent;
  overflow: hidden;
}

.download-list {
  display: flex;
  flex-direction: column;
  margin: 28px 0 40px;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1.5px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.download-link:last-child {
  border-bottom: 1.5px solid var(--line);
}

.download-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--taupe);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.download-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.download-link:hover .download-icon,
.download-link:focus-visible .download-icon {
  background: var(--taupe-dark);
}

.download-link:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}

html.embed,
body.embed {
  background: var(--beige);
  min-height: 100%;
}

html.embed.is-framed,
html.embed.is-framed body.embed {
  background: transparent;
  overflow-x: hidden;
  overflow-y: hidden;
  min-height: 0;
  height: auto;
}

@media (min-width: 861px) {
  body.embed .reader-shell {
    margin: 0;
    padding: 28px 24px 56px;
  }

  body.embed.is-framed .reader-shell {
    width: min(980px, 100%);
    margin-inline: auto;
    padding: 28px 24px 56px;
  }
}
