:root {
  --header-h: 2rem;
  --space: clamp(0.5rem, 2vw, 2rem);
  --gap: var(--space);

  --font: 'Courier', Courier, monospace;
  --fz: clamp(14px, 1vw, 16px);
  --lh: 1.14;

  --fg: rgb(245, 245, 245);
  --bg: rgb(10, 10, 10);
  --muted: rgba(245, 245, 245, 0.5);

  --border: 1px solid rgba(245, 245, 245, 0.5);
  --ease: cubic-bezier(.19, 1, .22, 1);

  /* Layout */
  --outer-inset: calc(1.5 * var(--space));
  --step: clamp(9rem, 14vw, 17rem);
  --column-gap: clamp(2rem, 3vw, 4rem);
  --text-width: 54rem;

  /* Book list starts where the info text starts */
  --book-inset: calc(var(--outer-inset) + var(--step) + var(--column-gap));
}

/* Reset */

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

html {
  min-height: 100%;
  font-size: var(--fz);
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: auto;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: var(--lh);
  background: var(--bg);
  color: var(--fg);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

a:hover,
button:hover {
  text-decoration: underline;
}

button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
}


.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.5em;
  padding: 1.14rem var(--outer-inset);
}

.site-header__line {
  border-top: var(--border);
  transform: translateY(0.55em);
}

.site-title {
  text-decoration: none;
}

.site-title:hover {
  text-decoration: none;
}

/* Info hero */

.hero-panel {
  width: 100vw;
  height: 80vh;
  height: 80dvh;
  overflow: hidden;
  background: var(--bg);
}

.hero-card__slider,
.hero-card__slide {
  width: 100vw;
  height: 80vh;
  height: 80dvh;
}

.hero-card__slide {
  margin: 0;
}

.hero-card__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Publisher info */

.publisher-info {
  position: relative;
  display: grid;
  grid-template-columns: var(--step) minmax(0, 1fr);
  column-gap: var(--column-gap);
  padding: 1.14rem var(--outer-inset) 0;
  margin-bottom: 16.666vh;
  margin-bottom: 16.666dvh;
}

.publisher-info::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: var(--border);
}


.publisher-info__label {
  grid-column: 1;
  color: var(--muted);
}

.publisher-info__text {
  grid-column: 2;
  min-width: 0;
  max-width: var(--text-width);
}

.publisher-info__text > * {
  margin: 0;
}

.publisher-info__text p {
  padding-bottom: 1.14rem;
}

/* Contact / order links */

.site-info__links {
  display: grid;
  grid-template-columns: var(--step) minmax(0, 1fr);
  column-gap: var(--column-gap);
  padding: 1.14rem var(--outer-inset) 1.14rem;
}

.site-info__links a {
  grid-column: 2;
}

/* Book slider area */

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 50vw);
  width: 100vw;
  padding: 0;
  min-height: 100vh;
  padding-top: calc(2*1.14rem);
  padding-bottom: calc(2*1.14rem);
}

.book-card {
  width: 50vw;
  min-width: 0;
  margin-bottom: var(--space);
  scroll-margin-top: calc(var(--header-h) + var(--space));

}

.book-card__slider {
  position: relative;
  width: 50vw;
  max-height: 80vh;
  overflow: hidden;
  cursor: e-resize;
}

.book-card__slider.is-static {
  cursor: default;
}

.book-card__slider .flickity-viewport {
  width: 100%;
  max-height: 80vh;
}

.book-card__slide {
  width: 50vw;
  max-height: 80vh;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.book-card__slide img {
  display: block;
  width: auto;
  max-width: 50vw;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
   padding-left: calc(2*var(--outer-inset));
  padding-right: calc(2*var(--outer-inset));
}

.book-card__slide--empty {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--bg);
}

/* Flickity reset */

.book-card__slider .flickity-button,
.book-card__slider .flickity-page-dots {
  display: none;
}

.book-card__caption {
  display: none;
}


/* Publication list */

.site-info-books {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--book-inset) - var(--outer-inset)) minmax(0, 1fr);
  column-gap: 0;
  padding: 1.14rem var(--outer-inset) 0;
  min-height: 100vh;

}

.site-info-books::before {
  content: "";
  position: absolute;
  left: var(--outer-inset);
  right: var(--outer-inset);
  top: 0;
  border-top: var(--border);
}

.site-info-books__label {
  grid-column: 1;
  color: var(--muted);
  padding-bottom: .6rem;
}

.site-info-books__sections {
  grid-column: 2;
  min-width: 0;
}

.book-info {
  position: relative;
  display: grid;
  grid-template-columns: var(--step) minmax(0, 1fr) auto;
  column-gap: var(--column-gap);
  padding: 0 0 calc(1.14rem * 2);
}
.book-info + .book-info {
  padding-top: 1.14rem;
}

.book-info + .book-info::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: var(--border);
}

.book-info__title {
  grid-column: 1;
  margin: 0;
  font: inherit;
  min-width: 0;
  color: var(--fg);
}

.book-info__title a {
  display: inline;
  text-decoration: none;
}

.book-info__title a:hover {
  text-decoration: underline;
}

.book-info__content {
  grid-column: 2;
  min-width: 0;
  max-width: var(--text-width);
}

.book-info__subtitle,
.book-info__description,
.book-info__description p,
.book-info__meta,
.book-info__link {
  margin: 0;
  font: inherit;
}

.book-info__subtitle {
  color: var(--muted);
  padding-bottom: 1.14rem;
}

.book-info__description {
  padding-bottom: calc(1.14rem * 1.5);
}

.book-info__description p + p {
  margin-top: 1.14rem;
}

.book-info__meta {
  list-style: none;
  margin: 0;
  padding: 0 0 1.14rem;
  color: var(--muted);
  padding-bottom: 1.14rem;
}

.book-info__meta li {
  margin: 0;
  padding: 0;
}

.book-info__link {
  padding-top: 0;
}

/* Datenschutz / Impressum */

.legal-info {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--book-inset) - var(--outer-inset)) minmax(0, 1fr);
  column-gap: 0;
  padding: 1.14rem var(--outer-inset) 0;
  margin-bottom: 16.666vh;
  margin-bottom: 16.666dvh;
  color: var(--muted);
}

.legal-info::before {
  content: "";
  position: absolute;
  left: var(--outer-inset);
  right: var(--outer-inset);
  top: 0;
  border-top: var(--border);
}

.legal-info__label {
  grid-column: 1;
}

.legal-info__sections {
  grid-column: 2;
  min-width: 0;
}

.legal-info__item {
  display: grid;
  grid-template-columns: var(--step) minmax(0, 1fr);
  column-gap: var(--column-gap);
  padding: 0 0 1.14rem;
}

.legal-info__item:last-child {
  padding-bottom: 0;
}

.legal-info__title {
  grid-column: 1;
  margin: 0;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.legal-info__content {
  grid-column: 2;
  min-width: 0;
  max-width: var(--text-width);
}

.legal-info__content p {
  margin: 0;
}

.legal-info__content p + p {
  margin-top: 1.14rem;
}

.legalcontent p {
  margin: 0;
}

.legal-info__content p + p {
  margin-top: 1.14rem;
}

.legal-info a {
  color: inherit;
}

/* Hero slider */

.hero-panel {
  width: 100vw;
  height: 80vh;
  height: 80dvh;
  overflow: hidden;
  background: var(--bg);
}

.hero-card__slider {
  position: relative;
  width: 100vw;
  height: 80vh;
  height: 80dvh;
  overflow: hidden;
  cursor: e-resize;
  user-select: none;
  touch-action: pan-y;
}

.hero-card__slider.is-static {
  cursor: default;
}

.hero-card__slider .flickity-viewport {
  width: 100%;
  height: 100% !important;
}

.hero-card__slide {
  width: 100vw;
  height: 80vh;
  height: 80dvh;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-card__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.hero-card__slider .flickity-button,
.hero-card__slider .flickity-page-dots {
  display: none;
}

/* Mobile */

@media (max-width: 720px) {
  :root {
    --header-h: 2.6rem;
    --outer-inset: var(--space);
    --book-inset: var(--space);
    --column-gap: 0;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    gap: 0.85em;
  }

  .publisher-info,
  .site-info__links,
  .book-info,
  .legal-info {
    grid-template-columns: 1fr;
  }

  .publisher-info__label,
  .publisher-info__text,
  .site-info__links a,
  .book-info__title,
  .book-info__content,
  .legal-info__label,
  .legal-info__text {
    grid-column: 1;
  }

  .publisher-info__text,
  .book-info__content,
  .legal-info__text {
    padding-top: 0.6rem;
  }

  .publisher-info__text > * + * {
    text-indent: 0;
    margin-top: 1em;
  }

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

  .book-card,
  .book-card__slider,
  .book-card__slide {
    width: 100vw;
  }

  .book-card__slide img {
    max-width: 100vw;
  }

  .legal-info {
    grid-template-columns: 1fr;
  }

  .legal-info__label,
  .legal-info__sections {
    grid-column: 1;
  }

  .legal-info__sections {
    padding-top: 0.6rem;
  }

  .legal-info__item {
    grid-template-columns: 1fr;
  }

  .legal-info__title,
  .legal-info__content {
    grid-column: 1;
  }

  .legal-info__content {
    padding-top: 0.6rem;
  }

  .site-info-books {
    grid-template-columns: 1fr;
    padding-left: var(--outer-inset);
    padding-right: var(--outer-inset);
  }

  .site-info-books__label,
  .site-info-books__sections {
    grid-column: 1;
  }

  .site-info-books__sections {
    padding-top: 0.6rem;
  }

  .book-info {
    grid-template-columns: 1fr;
  }

  .book-info__title,
  .book-info__content {
    grid-column: 1;
  }

  .book-info__content {
    padding-top: 0.6rem;
  }
    .site-info-books, .legal-info {
    min-height: 0;
  }

  .site-info-books__sections {
    padding-top: 0;
  }

  .book-info:first-child {
    padding-top: 0;
  }
}



.js-carousel {
  user-select: none;
  touch-action: pan-y;
}

.js-carousel img {
  user-select: none;
  pointer-events: none;
}

.js-carousel.is-draggable {
  cursor: grab;
}

.js-carousel.is-pointer-down {
  cursor: grabbing;
}

.book-info__meta {
  list-style: none;
  margin: 0;
  padding: 0 0 1.14rem;
  color: var(--muted);
  padding-bottom: 1.14rem;
}

.book-info__meta-label {
  color: var(--muted);
}

.book-info__meta-value {
  color: var(--muted);
}

.book-info__meta a {
  color: var(--muted);
  text-decoration: none;
}

.book-info__meta a:hover {
  color: var(--fg);
  text-decoration: none;
}

/* Page load fade-in */

body {
  opacity: 0;
  animation: pageFadeIn 900ms var(--ease) forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* Hide scrollbars in all browsers */

html,
body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Old Edge / IE */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Edge */
  width: 0;
  height: 0;
}

/* Also hide horizontal Flickity scrollbars if browser shows any */

.flickity-viewport {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.flickity-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}




/* Books page */

.book-sections {
  width: 100vw;
}

.book-section {
  width: 100vw;
}

.book-section__slider {
  width: 100vw;
  height: 66.666vh;
  height: 66.666dvh;
  overflow: hidden;
  cursor: e-resize;
  margin-top: 8.888vh;
  margin-top: 8.888dvh;
  margin-bottom: 8.888vh;
  margin-bottom: 8.888dvh;
}

.book-section__slider .flickity-viewport {
  width: 100%;
  height: 100% !important;
}

.book-section__slide {
  width: 100vw;
  height: 66.666vh;
  height: 66.666dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-section__slide img {
  display: block;
  width: auto;
  max-width: 100vw;
  height: auto;
  max-height: 66.666vh;
  max-height: 66.666dvh;
  object-fit: contain;
  padding-left: var(--outer-inset);
  padding-right: var(--outer-inset);
}

.book-section__slide--empty {
  display: grid;
  place-items: center;
}

.book-section__info {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--book-inset) - var(--outer-inset)) minmax(0, 1fr);
  column-gap: calc(1.14rem*2);
  padding: 1.14rem var(--outer-inset) 0;
  margin-bottom: calc(33.333vh - 8.888rem);
  margin-bottom: calc(33.333vh - 8.888rem);
  padding-bottom: calc(1.14rem*2);

}

.book-section__info::after {
  content: "";
  position: absolute;
  left: var(--outer-inset);
  right: var(--outer-inset);
  bottom: 0;
  border-bottom: var(--border);
}

.book-section__title {
  grid-column: 1;
  margin: 0;
  font: inherit;
}

.book-section__content {
  grid-column: 2;
  max-width: var(--text-width);
}

.book-section__subtitle,
.book-section__description,
.book-section__description p,
.book-section__meta {
  margin: 0;
  font: inherit;
}

.book-section__subtitle,
.book-section__meta {
  color: var(--muted);
}

.book-section__subtitle {
  padding-bottom: 1.14rem;
}

.book-section__description {
  padding-bottom: calc(1.14rem * 1.5);
}

.book-section__description p + p {
  margin-top: 1.14rem;
}

.book-section__meta {
  list-style: none;
  padding: 0;
  margin-bottom: 1.14rem;
}

.book-section__meta li {
  margin: 0;
  padding: 0;
}

.book-section__meta a {
  color: var(--muted);
  text-decoration: none;
}

.book-section__meta a:hover {
  color: var(--fg);
}

/* Shared Flickity */

.js-carousel {
  user-select: none;
  touch-action: pan-y;
}

.js-carousel img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.js-carousel.is-draggable {
  cursor: grab;
}

.js-carousel.is-pointer-down {
  cursor: grabbing;
}

.js-carousel .carousel-cell {
  opacity: 0;
  transition: opacity 700ms var(--ease);
}

.js-carousel .carousel-cell.is-selected,
.js-carousel.is-static .carousel-cell {
  opacity: 1;
}

.js-carousel .flickity-button,
.js-carousel .flickity-page-dots {
  display: none;
}

/* Mobile */

@media (max-width: 720px) {
  .book-section__info {
    grid-template-columns: 1fr;
  }

  .book-section__title,
  .book-section__content {
    grid-column: 1;
  }

  .book-section__content {
    padding-top: 0.6rem;
  }

  .book-section__slide img {
    padding-left: var(--outer-inset);
    padding-right: var(--outer-inset);
  }
}


.book-section__description {
  padding-bottom: 0;
}

.book-section__meta {
  margin: 0;
  margin-top: 2.28rem;
  padding: 0;
  color: var(--muted);
}

.book-section__meta ul,
.book-section__meta ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-section__meta li {
  margin: 0;
  padding: 0;
}

.book-section__meta p {
  margin: 0;
}

.book-section__order {
  margin: 1.14rem 0 0;
  padding: 0;
}

.book-section__order a {
  color: var(--fg);
  text-decoration: none;
}

.book-section__order a:hover {
  text-decoration: underline;
}