* {
  /*box-sizing: border-box;*/
}

body {
  position: relative;
  font: 300 18px/26px 'europa', sans-serif;
  color: #222;
  background: #f7f7f7;
  /*background: hsla(190, 10%, 50%, 1);*/
  margin: 0;
  padding: 24px 0 0;
}

input,
button {
  font: 18px/24px 'europa', sans-serif;
}

/* yellow */
.primary {
  color: hsla(40, 100%, 75%, 1);
}

/* washed blue */
.secondary {
  color: hsla(190, 10%, 50%, 1);
  /*color: hsla(190, 40%, 40%, 1);*/
}

[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 32px 0;
}

p {
  max-width: 42em;
  margin: 24px 0;
}

.nowrap {
  white-space: nowrap;
}

.quote {
  position: relative;
  margin-top: 24px;
  margin-bottom: 16px;
}

.quote::after {
  display: block;
  position: absolute;
  content: '»';
  color: hsla(40, 100%, 80%, 1);
  font-size: 54px;
  top: -8px;
  left: -12px;
  z-index: 1;
}

blockquote {
  max-width: 42em;
  font-style: italic;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

blockquote > p:last-of-type {
  margin-bottom: 0;
}

blockquote + p {
  margin-top: 0;
}

a,
.udl,
.kirbytext a {
  text-decoration: none;
  color: hsla(40, 10%, 10%, 1);
  z-index: 10;
  position: relative;
}

.style-dunkel a,
.style-dunkel .udl,
.style-dunkel .kirbytext a {
  color: #eee;
}

.udl::after {
  content: '';
  display: block;
  height: 8px;
  position: absolute;
  right: -2px;
  bottom: 0;
  left: -2px;
  background: hsla(40, 100%, 90%, 1);
  z-index: -1;
}

h1 .udl::after,
h1 .kirbytext a::after {
  bottom: 2px;
}

.udl:hover::after,
.kirbytext a:hover::after,
a:hover .udl::after {
  background: hsla(40, 100%, 75%, 1);
}

.udl.active::after,
.udl.active:hover::after,
.active > .udl::after,
.active > .udl:hover::after {
  background: hsla(190, 15%, 80%, 1);
}

.style-dunkel .udl::after,
.style-dunkel .kirbytext a::after {
  background: hsla(190, 10%, 20%, 0.4);
}

.style-dunkel .udl:hover::after,
.style-dunkel .kirbytext a:hover::after {
  background: hsla(190, 10%, 10%, 0.6);
}

.box.style-hell .udl::after,
.box.style-hell .kirbytext a::after {
  background: hsla(190, 10%, 90%, 1);
}

/*
Activate once there's better browser support for text-decoration styling.
a,
.udl,
.kirbytext a {
  text-decoration: underline solid hsla(40, 100%, 90%, 1);
  text-underline-offset: -8px;
  text-decoration-thickness: 8px;
  text-decoration-skip-ink: none;
}

h1 .udl,
h1 .kirbytext a {
  bottom: 2px;
}

.udl:hover,
.kirbytext a:hover,
a:hover .udl {
  text-decoration: underline solid hsla(40, 100%, 75%, 1);
  text-underline-offset: -8px;
  text-decoration-thickness: 8px;
  text-decoration-skip-ink: none;
}

.udl.active,
.udl.active:hover,
.active > .udl,
.active > .udl:hover,
.active > * > .udl,
.active > * > .udl:hover {
  text-decoration-color: hsla(190, 15%, 80%, 1);
}

.style-dunkel .udl,
.style-dunkel .kirbytext a {
  text-decoration-color: hsla(190, 10%, 20%, 0.4);
}

.style-dunkel .udl:hover,
.style-dunkel .kirbytext a:hover {
  text-decoration-color: hsla(190, 10%, 10%, 0.6);
}

.box.style-hell .udl,
.box.style-hell .kirbytext a {
  text-decoration-color: hsla(190, 10%, 90%, 1);
}
*/

/* Firefox fix for multiline padded text */
.kirbytext a,
.box.style-hell .kirbytext a {
  background: linear-gradient(
    to bottom,
    transparent 65%,
    hsla(40, 100%, 90%, 1) 65%
  );
}

.kirbytext a:hover,
.box.style-hell .kirbytext a:hover {
  background: linear-gradient(
    to bottom,
    transparent 65%,
    hsla(40, 100%, 75%, 1) 65%
  );
}

.style-dunkel .kirbytext a {
  background: linear-gradient(
    to bottom,
    transparent 65%,
    hsla(190, 10%, 20%, 0.4) 65%
  );
}

.style-dunkel .kirbytext a:hover {
  background: linear-gradient(
    to bottom,
    transparent 65%,
    hsla(190, 10%, 10%, 0.6) 65%
  );
}

.kirbytext *:first-child,
.kirbytext .columns-tag > * > *:first-child {
  margin-top: 0;
}

.kirbytext .columns-tag > * {
  margin-top: unset;
}

.kirbytext *:last-child {
  margin-bottom: 0;
}

.kirbytext h3 {
  margin-bottom: 0;
  line-height: 1.5em;
}

.kirbytext h3 + p {
  margin-top: 0;
}

.editions {
  margin-top: 32px;
}
.book-content {
  font-family: 'adobe-garamond-pro';
}

.promotion {
  font-family: 'adobe-garamond-pro';
  font-size: 24px;
  line-height: 1.5em;
  margin: 60px 0 8px;
  font-weight: 500;
  font-style: italic;
}

.books-list {
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

.books-list a {
  padding: 4px 8px;
  /*margin-bottom: 1px;*/
}

.books-list a .title {
  font-weight: 400;
}

.books-list a:hover {
  background: #fff;
  box-shadow: 0 1px 8px 0 hsla(40, 0%, 10%, 0.1);
}

hr {
  text-align: left;
  width: 32px;
  height: 4px;
  background: hsla(190, 10%, 50%, 1);
  border: 0;
  margin: 48px 0 0;
  padding: 0;
}

hr + h2 {
  margin-top: 32px;
}

h1 {
  font-size: 32px;
  line-height: 36px;
  margin: 48px 0 32px;
}

h1.no-margin-bottom {
  margin-bottom: 12px;
}

button,
.btn {
  display: inline-block;
  background: hsla(190, 15%, 80%, 1);
  color: #222;
  border: 2px solid hsla(190, 10%, 70%, 1);
  padding: 8px 16px;
  font-size: 18px;
  cursor: pointer;
  font-weight: 400;
}

button.link,
button.link:hover {
  font-weight: 300;
  display: inline;
  text-align: left;
  background: initial;
  padding: initial;
  border: initial;
}

button:hover,
.btn:hover {
  background: hsla(190, 20%, 90%, 1);
}

button:focus {
  outline: none;
  border-color: hsla(190, 10%, 50%, 1);
}

button.primary,
.btn.primary {
  border-color: hsla(40, 100%, 75%, 1);
  background: hsla(40, 100%, 90%, 1);
  color: #222;
}

.box {
  position: relative;
  padding: 32px 0;
  margin: 0 0;
  box-shadow: 0 0 16px 0 hsla(40, 0%, 20%, 0.4);
  background: #f7f7f7;
  z-index: 21;
}

.box:last-child {
  margin-bottom: -49px;
}

.box.style-default {
  z-index: 20;
}

.box.large-padding {
  padding: 64px 0;
}

.box .wrapper > *:first-child,
.block-tag-portrait .content p:first-of-type {
  margin-top: 0;
}

.box .wrapper > *:last-child,
.block-tag-portrait .content > p:last-child {
  margin-bottom: 0;
}

.block-tag-portrait img {
  width: 160px;
}

.box.style-hell {
  background: hsla(40, 100%, 90%, 1);
  border-color: hsla(40, 100%, 75%, 1);
}

.box.style-dunkel {
  font-weight: 300;
  background: hsla(190, 40%, 40%, 1);
  color: #eee;
  border-color: hsla(190, 40%, 30%, 1);
}

.box.style-dunkel strong {
  font-weight: 400;
}

.box.style-dunkel input,
.box.style-dunkel input:focus {
  border-color: #fff;
}

.box.style-dunkel .btn,
.box.style-dunkel button {
  border-color: hsla(190, 10%, 90%, 1);
}

.box.style-dunkel hr {
  background: #eee;
}

.box.style-dunkel a {
  color: #eee;
}

.box.style-dunkel .secondary {
  color: hsla(190, 10%, 80%, 1);
}

nav.main {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  height: 56px;
  background: #fff;
  box-shadow: 0 0 16px 0 hsla(40, 0%, 20%, 0.4);
}

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

ul.menu {
  list-style: none;
  height: 56px;
  line-height: 24px;
  white-space: nowrap;
}

ul.menu > li {
  padding: 16px 0;
  height: 24px;
  margin-right: 32px;
}

#md-nav li {
  height: auto;
  padding: 4px 0;
  overflow-y: hidden;
  margin-right: 0;
}

#md-nav > li {
  /* padding: 8px 0; */
  border-top: 1px solid hsla(190, 15%, 80%, 1);
}

#md-nav .menu-close {
  border: none;
}

#md-nav li > ul {
  list-style: none;
}

#md-nav li ul ul {
  padding-left: 0;
}

#md-nav .header {
  font-weight: 400;
}

#md-nav .has-children ul {
  transition: height 0.1s linear;
}

#md-nav .has-children .fa-chevron-down {
  transition: transform 0.1s linear;
}

#md-nav .has-children.is-open .fa-chevron-down {
  transform: rotate(180deg);
}

#md-nav .toggleable {
  font-weight: 300;
}

nav ul:last-of-type li {
  margin-right: 0;
}

nav ul li.logo,
ul.menu li.logo {
  padding: 8px 0 0;
}

nav ul li.logo img,
ul.menu li.logo img {
  height: 40px;
}

nav.filters ul,
nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body > ul.menu {
  position: fixed;
  overflow-y: auto;
  top: 0;
  bottom: 0;
  height: auto;
  left: -100vw;
  padding: 56px 16px 0;
  margin: 0;
  z-index: 40;
  background: #fff;
  min-width: 300px;
  max-width: 80vw;
  box-shadow: 0 0 16px 0 hsla(40, 0%, 20%, 0.4);
  transition: left 0.15s;
}

ul.menu.visible {
  left: 0;
}

ul.menu .menu-close {
  position: absolute;
  top: 8px;
}

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

.authors .letter,
.filters .header {
  font-weight: bold;
  margin-top: 24px;
}

.author {
  display: block;
  margin-bottom: 32px;
}

.filters .header ul {
  font-weight: 300;
}

.filters li:first-child .header,
.authors .letter:first-child {
  margin-top: 0;
}

li .toggleable {
  display: none;
}

li .toggleable.toggled {
  display: inherit;
}

figure {
  margin: 0;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin: 0 0;
  height: 80vh;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero > div {
  position: relative;
  width: 100%;
  padding: 32px 0;
}

.hero > img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero .wrapper {
  position: relative;
}

.hero .kirbytext {
  position: relative;
  z-index: 25;
  color: #fff;
}

.hero .herotext strong {
  font-size: 48px;
  line-height: 1.5em;
}

.hero .herotext {
  font-size: 32px;
  line-height: 1.5em;
}

.hero .source {
  font-size: 14px;
  position: absolute;
  color: #fff;
  z-index: 25;
  right: 0;
  bottom: 0;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: bottom right;
}

/*.hero > div::after {
  content: '';
  position: absolute;
  top: -64px;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to bottom,
    hsla(190, 0%, 0%, 0),
    hsla(0, 0%, 0%, 0.8)
  );
  z-index: 24;
}*/

.cover {
  display: block;
  position: relative;
  padding: 0;
  background: hsla(40, 0%, 100%, 1);
  background: hsla(190, 15%, 80%, 1);
  box-shadow: 0 2px 4px 0 hsla(40, 0%, 20%, 0.6);
  text-align: center;
  vertical-align: bottom;
}

a:hover .cover {
  box-shadow: 0 2px 8px 0 hsla(40, 0%, 10%, 0.6);
}

.cover img {
  width: 100%;
  height: auto;
}

.wrapper {
  margin: 0px 16px;
}

@media only screen and (min-width: 768px) {
  .wrapper {
    margin: 0px 32px;
  }
}

@media only screen and (min-width: 992px) {
  .wrapper {
    margin-right: auto;
    margin-left: auto;
    width: 80%;
    padding: 0;
  }
}

.sidebar.no-title {
  padding-top: 116px;
}

body > main {
  padding: 32px 0 48px;
  position: relative;
  background: #f7f7f7;
  z-index: 20;
}

body > main:first-of-type {
  /*min-height: 100vh;*/
}

.cover,
.portrait {
  flex-shrink: 0;
  overflow: hidden;
}

.book {
  display: block;
  margin-bottom: 32px;
}

.book .cover,
.author .portrait {
  margin-bottom: 8px;
}

.book .title,
.book .secondary,
.author .title,
.author .secondary {
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.title.two-lines {
  line-height: 22px;
  max-height: 44px;
  white-space: inherit;
  text-overflow: ellipsis;
  text-align: left;
  position: relative;
  hyphens: auto;
}

.award-container {
  position: relative;
}

.award {
  font-size: 14px;
  line-height: 1.5em;
  top: 82px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 160px;
  height: 160px;
  padding: 20px;
  background: hsla(360, 90%, 45%, 1);
  color: white;
  border-radius: 999999px;
  transform: rotate(4deg);
  overflow: hidden;
  z-index: 10;
}

@media only screen and (max-width: 767.98px) {
  .award {
    width: 120px;
    height: 120px;
    font-size: 12px;
    top: unset;
    bottom: 32px;
  }
}

.award p {
  text-align: center;
}

@media only screen and (min-width: 768px) {
  .award {
    top: 64px;
    right: 0;
  }
}

.has-award h1 {
  padding-right: 160px;
}

@media only screen and (min-width: 992px) {
  .award {
    font-size: 16px;
  }
}

.cols.start {
  align-items: flex-start;
}

.infos .cover,
.infos .portrait,
.infos .left {
  flex-shrink: 0;
}

@media only screen and (min-width: 3) {
  .infos .cover,
  .infos .portrait,
  .infos .left {
    width: 320px;
    flex-shrink: 0;
  }
}

.news .cover {
  width: 270px;
}

.infos.narrow-cover .cover {
  width: 160px;
}

.cover.clone {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999998;
  transform-origin: top left;
  transition: all 0.5s;
}

.infos .book-content {
  background: #fff;
  padding: 26px 32px 26px;
  border: 4px solid hsla(190, 15%, 80%, 1);
}

.sharing-buttons {
  line-height: 38px;
}

.sharing-buttons > .share-label {
  display: none;
}

.programmvorschau .cover {
  width: 100%;
  margin-right: 32px;
}

.programmvorschau h2 {
  margin-top: 0;
}

body.currency-eur .no-currency,
body.currency-chf .no-currency,
body.currency-eur .currency-chf,
body.currency-chf .currency-eur {
  display: none;
}

.table-container {
  overflow-x: auto;
}

#cart .article .title {
  flex: 2;
}

.change-edition-dialog {
  display: none;
  position: fixed;
  z-index: 5000;
  top: 80px;
  right: 24px;
  left: 24px;
  padding: 32px 24px;
  background: #fff;
  box-shadow: 0 0 0 999999px hsla(190, 10%, 50%, 0.4);
}

.change-edition-dialog.visible {
  display: block;
}

.change-edition-dialog h3 {
  margin: 0 0 24px;
}

#cart table {
  width: 100%;
}

#cart table th:last-child,
#cart table td:last-child {
  padding-right: 0;
}

#cart table td {
  padding-top: 8px;
  padding-bottom: 12px;
}

#cart table .text {
  min-width: 200px;
}

#cart table td.has-input {
  padding-top: 0;
  padding-bottom: 8px;
}

#cart table td.width-auto {
  width: auto;
}

#lenos {
  box-sizing: content-box;
  display: block;
  z-index: 1000;
  position: fixed;
  width: 32px;
  bottom: 0;
  left: 0;
  padding: 32px 16px;
  background: hsla(40, 100%, 75%, 1);
}

#lenos img {
  width: 100%;
  display: block;
}

.last-element-before-footer {
  margin-bottom: -48px;
}

footer {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  background: hsla(190, 10%, 50%, 1);
  color: #eee;
  padding: 32px 0;
}

footer .newsletter-icon:before,
footer .facebook-icon:before,
footer .instagram-icon:before {
  display: inline-block;
  content: '';
  width: 18px;
  height: 18px;
  margin-top: 2px;
  margin-right: 4px;
  margin-bottom: -2px;
  background-size: 22px 22px;
}

footer .newsletter-icon:before {
  background: url('/content/newsletter-icon.svg');
  background-size: 18px 18px;
}

footer .facebook-icon:before {
  background: url('/content/facebook-icon.svg');
  background-size: 18px 18px;
}

footer .instagram-icon:before {
  background: url('/content/instagram-icon.png');
  background-size: 18px 18px;
}

@media only screen and (max-width: 991.98px) {
  footer .col-md-4 {
    margin: 12px 0;
  }
}

table th,
table td {
  text-align: left;
  padding: 0 16px 4px 0;
  vertical-align: top;
}

table .number {
  white-space: nowrap;
  width: 1px;
  text-align: right;
}

table .has-input {
  width: 80px;
  min-width: 80px;
}

table .has-input input[type='text'] {
  width: 100% !important;
}

table .date {
  white-space: nowrap;
  font-weight: 400;
}

input[type='text'],
input[type='email'],
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font: 300 18px/26px 'europa', sans-serif;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  border: 2px solid hsla(190, 15%, 80%, 1);
  display: block;
  padding: 8px 12px;
  background: #fff;
  outline: none;
}

textarea {
  height: auto;
}

input[type='text'].did-focus:not(:valid),
input[type='email'].did-focus:not(:valid),
select.did-focus:not(:valid),
textarea.did-focus:not(:valid),
.did-submit input[type='text']:not(:valid),
.did-submit input[type='email']:not(:valid),
.did-submit select:not(:valid),
.did-submit textarea:not(:valid) {
  border-color: hsla(360, 90%, 45%, 1);
}

input[type='text']:focus,
input[type='email']:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: hsla(190, 15%, 40%, 1) !important;
}

#cart .form-group input[type='text'],
#cart .form-group input[type='email'],
#cart .form-group select {
  width: 50%;
}

.row input[type='text'],
.row input[type='email'],
.row select,
.row button.block {
  width: 100%;
}

#cart table select {
  width: 100%;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: inline-block;
  margin-bottom: 4px;
}

nav .search {
  display: flex;
  align-items: flex-start;
}

body > .menu .search {
  /* padding-top: 16px; */
}

nav .search .input-container {
  position: relative;
  top: -10px;
  width: 0;
  margin-right: 0;
  overflow: hidden;
  transition: width 0.1s, margin 0.1s;
}

nav .search .input-container input {
  box-sizing: border-box;
}

nav .search.active .input-container {
  width: 240px;
  margin-right: 16px;
}

ul .lenos-babel {
  height: 14px;
  margin-top: -4px;
}

.wiggle {
  animation: wiggle 0.5s;
}

@keyframes wiggle {
  0% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(-1deg);
  }
  20% {
    transform: rotate(1deg);
  }
  30% {
    transform: rotate(-1deg);
  }
  40% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(-2deg);
  }
  60% {
    transform: rotate(2deg);
  }
  70% {
    transform: rotate(-1deg);
  }
  80% {
    transform: rotate(1deg);
  }
  90% {
    transform: rotate(-1deg);
  }
  100% {
    transform: rotate(0);
  }
}

.flipbook-visible {
  overflow: hidden;
}

#flipbook-container {
  position: absolute;
  top: -999999px;
  right: 0;
  left: 0;
  background: #333;
  padding: 16px;
  z-index: 999999;
  overflow: auto;
}

.flipbook-visible #flipbook-container {
  top: 0;
  bottom: 0;
}

#flipbook-container .close {
  display: none;
  width: 32px;
  height: 32px;
  position: fixed;
  padding: 0;
  background: hsla(40, 100%, 75%, 1);
  text-align: center;
  line-height: 28px;
  border-radius: 999999px;
  font-size: 24px;
  top: 32px;
  left: 32px;
  text-decoration: none;
  z-index: 20;
}

.flipbook-visible #flipbook-container .close {
  display: block;
}

#flipbook {
  margin: 0 auto;
}

.flipbook-cover {
  width: 100%;
  height: 100%;
}

@media only print {
  body,
  body > main {
    background: #fff;
  }

  nav,
  .no-print {
    display: none;
  }

  .cover {
    width: 320px;
  }
}

.sticker-container {
  position: relative;
}

.sticker img {
  max-width: 100%;
}

.newsletter-sticker {
  color: #eee;
  font-size: 20px;
  line-height: 1.4em;
  background: linear-gradient(
    to bottom right,
    hsla(190, 40%, 40%, 1) 0,
    hsla(190, 40%, 30%, 1) 100%
  );
  padding: 20px;
  left: 50vw;
  margin-left: -100px;
  width: 200px;
  height: 200px;
  border-radius: 999999px;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  transform: rotate(-6deg);
  box-shadow: 0 2px 4px 0 hsla(40, 0%, 20%, 0.6);
  text-decoration: none;
}

@media only screen and (max-width: 991.98px) {
  .newsletter-sticker {
    transform: rotate(-6deg) scale(0.8, 0.8);
    transform-origin: top right;
  }
}

.sticker-container > .newsletter-sticker {
  margin-left: 0;
  left: initial;
  top: 5vh;
  right: 5vw;
}

.sticker-container > .sticker {
  position: absolute;
}

.newsletter-sticker:hover {
  color: #eee;
  box-shadow: 0 2px 8px 0 hsla(40, 0%, 10%, 0.6);
}

/* spam protection field */
input[name='question'] {
  display: none;
}

@media only screen and (max-width: 767.98px) {
  .w-sm-50 {
    width: 50%;
  }
}
