/* variables */

:root {
  --primary: 240, 240, 240;
  --secondary: 34, 19, 17;
  --tertiary: 28, 119, 172;

  --primary-text-color: 0, 0, 0;
  --secondary-text-color: 255, 255, 255;
  --tertiary-text-color: 255, 255, 255;

  /* --font-normal: 'Roboto Slab'; */
  --font-main: "Montserrat";
  /* --font-normal: 'Montserrat Alternates'; */
  --font-secondary: "Oswald";
}

/* resets */

body,
li,
p,
ul,
a {
  margin: 0;
  padding: 0;
  text-decoration: none;
}

li {
  list-style-type: none;
}

* {
  box-sizing: border-box;
}
/* base styles */

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: var(--main-font);
}

h1 {
  font-size: 2em;
  font-family: var(--main-font);
}

h2 {
  font-size: 1.7em;
  font-family: var(--main-font);
}

h3 {
  font-size: 1.4em;
  font-family: var(--main-font);
}

h4 {
  font-size: 1.2em;
  font-family: var(--main-font);
}

a {
  text-decoration: none;
  color: inherit;
  font-size: 1em;
  font-family: var(--font-main);
}

body {
  font-family: var(--font-normal);
  font-family: var(--font-main);
}

button {
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

section h3,
section h2 {
  font-family: "Amatic SC", cursive;
  border-bottom: 2px solid;
}

/* costumized styles */

.hero {
  z-index: 0;
  height: 100vh;
  background-color: rgb(var(--primary));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 20%;
}

.warning {
  color: #ff6666;
}

.hero > h1,
.hero > h2 {
  z-index: 2;
  color: rgb(var(--tertiary-text-color));
  margin: 0;
  padding: 0;
  font-family: "Clicker Script", cursive;
  border-bottom: none;
}

.hero > h1 {
  animation: 800ms ease-out 0ms 1 slideFromTop;
  animation-fill-mode: both;
}

.hero > h2 {
  animation: 800ms ease-out 600ms 1 slideFromBottom;
  animation-fill-mode: both;
}

.hero-image {
  /* border: 4px solid var(--primary); */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 100vh;
  width: 100%;
  background: linear-gradient(to bottom, rgb(var(--tertiary)), transparent),
    url("assets/hero.jpg") 50% 20% / cover no-repeat border-box;
  clip-path: polygon(0 0%, 100% 0%, 100% 75%, 50% 80%, 0 75%);
}

nav {
  transform: translateX(120vw);
  transition: all 500ms ease-in-out;
  position: fixed;
  font-size: 1.2em;
  z-index: 999;
  min-height: 100vh;
  width: 100vw;
}

.nav-scrollable {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-box-shadow: -1px 0px 4px 1px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: -1px 0px 4px 1px rgba(0, 0, 0, 0.75);
  box-shadow: -1px 0px 4px 1px rgba(0, 0, 0, 0.75);
}

nav ul {
  min-height: 100%;
  width: 80vw;
  display: flex;
  padding-top: 4rem;
  flex-direction: column;
  align-items: center;
  /* background-color: rgba(255, 255, 255, 0.8); */
  background-color: rgba(var(--tertiary), 1);
}

nav ul > li {
  text-transform: uppercase;
  margin: 0.5em;
  border-bottom: 2px solid transparent;
}

nav ul > li:hover {
  border-bottom: 2px solid rgba(var(--tertiary-text-color));
  transition: 1200ms;
}

nav ul > li > a {
  font-family: "Amatic SC", cursive;
  font-size: 1.2em;
  font-weight: bold;
}

.akzent {
  color: rgb(var(--tertiary));
}

.nav-helper {
  position: fixed;
  z-index: 1000;
  top: 30%;
  color: rgb(var(--secondary-text-color));
  font-size: 1.2em;
  animation: 800ms ease-out 300ms 1 slideFromLeft;
  animation-fill-mode: both;
}

.nav-helper ul {
  background-color: rgb(var(--secondary), 0.4);
  transition: 600ms;
  padding: 0.2em 0.4em;
  margin-bottom: 0.2em;
  border-radius: 0 0.4rem 0.4rem 0;
}

.nav-helper ul.closed {
  transform: translateX(-100%);
}

.nav-helper > span {
  margin-left: 0.4em;
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 1);
  animation: 800ms ease-out 1000ms 1 appear;
  animation-fill-mode: both;
  cursor: pointer;
}

.nav-helper li {
  margin: 0.6em 0;
}

.nav-helper li:nth-of-type(1) {
  animation: 800ms ease-out 600ms 1 slideFromLeft;
  animation-fill-mode: both;
}

.nav-helper li:nth-of-type(2) {
  animation: 800ms ease-out 900ms 1 slideFromLeft;
  animation-fill-mode: both;
}

.nav-helper li:nth-of-type(3) {
  animation: 800ms ease-out 1200ms 1 slideFromLeft;
  animation-fill-mode: both;
}

nav.active {
  color: rgb(var(--secondary-text-color));
  transform: translateX(20vw);
}

.burger-button {
  z-index: 1000;
  position: fixed;
  right: 0;
  font-size: 2em;
  color: rgb(var(--secondary-text-color));
  background-color: rgba(var(--secondary), 0.6);
  padding: 0 0.1rem;
  border-radius: 0.2rem;
  margin: 0.2rem 0.4rem;
  box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.75);
  animation: 800ms ease-out 300ms 1 slideFromRight;
  animation-fill-mode: both;
  cursor: pointer;
}

.horizontal-ruler__nav {
  box-shadow: none;
  border: none;
  border-bottom: 2px solid black;
  width: 70%;
}

nav .horizontal-ruler__nav {
  border-color: rgb(var(--secondary-text-color));
}

#geschlossen {
  display: none;
}

#geschlossen.active {
  z-index: 999;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  justify-content: center;
}

#geschlossen h4 {
  background-color: rgba(var(--secondary), 0.6);
  /* color: rgb(var(--secondary-text-color)); */
  color: #ff6666;
  margin: 0;
  padding: 0.5rem 0.8rem;
  font-size: 1em;
  font-family: var(--main-font);
  border-bottom-right-radius: 0.4rem;
  border-bottom-left-radius: 0.4rem;
}

section {
  min-height: 100vh;
}

section:first-of-type {
  background-color: rgb(var(--primary));
}

section:nth-of-type(even) {
  background-color: rgb(var(--primary));
}

.booklike {
  display: flex;
  flex-direction: column;
}

.booklike-block__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2% 5%;
}

.booklike-block__text a {
  margin-top: 0.7em;
  font-size: 0.8em;
  font-weight: bold;
  color: rgb(var(--tertiary));
  border-bottom: 2px solid rgb(var(--tertiary));
  margin-bottom: 1rem;
  cursor: pointer;
}

.booklike-block__text a:hover {
  color: rgba(var(--tertiary), 0.6);
  border-color: rgba(var(--tertiary), 0.6);
  transition: 600ms;
}

.booklike-block__img {
  transition: 600ms;
}

.booklike-block__img.fade-away {
  opacity: 0;
}

/* test */

.booklike > div {
  width: 100%;
}

.booklike-block__img {
  height: 50vh;
}

.booklike-block__text {
  min-height: 50vh;
}

.booklike-block__text p {
  margin: 1rem 0;
}

.booklike-block__text p.restrict {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#ueber_uns .booklike-block__img {
  /* border-left: 4px solid var(--primary); */
  /* border-right: 4px solid var(--primary); */
}

/* #ueber_uns .booklike-block__text { */
/*   display: flex; */
/*   justify-content: flex-start; */
/*   align-items: stretch; */
/*   position: relative; */
/* } */

.icon-pack {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 1rem;
}

.icon-pack i {
  font-size: 2em;
  margin: 0.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-pack i::after {
  font-family: "Amatic SC", cursive;
}

.icon-pack i:hover::before {
  content: "";
}

.icon-pack i:nth-of-type(1):hover::after {
  content: "Hautiere erlaubt";
  position: relative;
  top: -0.2em;
  font-size: 0.6em;
}

.icon-pack i:nth-of-type(2):hover::after {
  content: "Restaurant vorhanden";
  position: relative;
  top: -0.2em;
  font-size: 0.6em;
}

.icon-pack i:nth-of-type(3):hover::after {
  content: "Parkplätze kostenlos";
  position: relative;
  top: -0.2em;
  font-size: 0.6em;
}

.icon-pack i:nth-of-type(4):hover::after {
  content: "Innenbreich rauchfrei";
  position: relative;
  top: -0.2em;
  font-size: 0.6em;
}

#fz_sommer .booklike-block__text {
  /* display: flex; */
  /* flex-direction: column; */
  /* justify-content: flex-start; */
}

#fz_winter .booklike-block__text {
  /* display: flex; */
  /* flex-direction: column; */
  /* justify-content: flex-start; */
  /* align-items: flex-start; */
}

#zimmer {
  position: relative;
  overflow-x: hidden;
  min-height: auto;
}

#zimmer > h3 {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid white;
  margin-bottom: 3rem;
}

#zimmer .cards {
  display: flex;
  width: 300vw;
  height: auto;
  justify-content: stretch;
  transform: translateX(-100vw);
  transition: 600ms;
  margin-bottom: 4rem;
}

#zimmer .cards.left {
  transform: translateX(0);
}

#zimmer .cards.right {
  transform: translateX(-200vw);
}

#zimmer .cards-button {
  position: absolute;
  top: 55%;
  font-size: 1.3em;
  padding: 0.4em;
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid white;
  color: white;
  z-index: 1001;
  transition: 300ms;
}

#zimmer .cards-button.pre {
  left: 0;
  border-top-right-radius: 0.4rem;
  border-bottom-right-radius: 0.4rem;
  padding-right: 0.6em;
  border-left: 1px solid transparent;
}

#zimmer .cards-button.next {
  right: 0;
  border-top-left-radius: 0.4rem;
  border-bottom-left-radius: 0.4rem;
  padding-left: 0.6em;
  border-right: 1px solid transparent;
}

#zimmer .card-container {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#zimmer .card-container .card {
  background-color: white;
  box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.1);
  height: 500px;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

#zimmer .card .card-content {
  padding: 0.4rem 1rem;
  flex-grow: 1;
}

#zimmer .card .card-content li {
  font-size: 0.7em;
  margin-left: 1rem;
}

#zimmer .card .card-content li:first-of-type {
  margin: 1rem 0;
  font-size: 0.8em;
  font-weight: bold;
}

#zimmer .card .card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  background-color: rgba(0, 0, 0, 0.04);
  padding: 0.2rem 0.4rem;
}

#zimmer .card h4 {
  font-size: 1em;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

#zimmer .card-container .card-head {
  height: 50%;
  background: url("assets/zimmer/0.jpg") center / cover no-repeat;
}

#zimmer .card-container.left .card-head {
  background: url("assets/zimmer/1.jpg") center / cover no-repeat;
}

#zimmer .card-container.right .card-head {
  background: url("assets/zimmer/1.jpg") center / cover no-repeat;
}

#speisekarte {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2% 5%;
  margin: 0;
}

.meals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.meal-block {
  width: 100%;
  max-width: 700px;
  padding: 0;
  display: flex;
  flex-direction: column;
  -webkit-box-shadow: 3px 3px 4px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 3px 3px 4px 1px rgba(0, 0, 0, 0.1);
  padding: 2% 3%;
  margin: 1em 0;
  border-radius: 0.2em;
  border: 1px solid rgb(var(--primary));
}

.meal-block > h2 {
  padding: 0;
  margin: 0;
}

.meal-block > div {
  display: flex;
  justify-content: space-between;
}

.meal-block h4 {
  font-size: 1em;
  color: rgb(var(--tertiary));
  margin: 0;
  margin-bottom: 0.5em;
}

.meal-block h4:nth-of-type(2) {
  margin-top: 3em;
}

.meal-block__item-block {
  font-size: 0.8em;
  margin-top: 0.7em;
  display: flex;
  align-items: flex-start;
}

.meal-block__item-block > div {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  margin-right: 0.5em;
}

.meal-block__item-block__name {
  font-weight: bold;
  margin-bottom: 0.4em;
}

.meal-block__item-block__name > p {
  display: inline-block;
}

.meal-block__item-block__name > span {
  font-weight: normal;
  font-size: 0.75em;
  font-style: italic;
}

.meal-block__item-block__ingredients {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.7em;
  align-items: center;
}

.meal-block__item-block .ingredient {
  font-size: 0.6rem;
  display: flex;
  align-items: flex-end;
  font-style: normal;
  align-self: flex-end;
  display: inline-block;
}

.meal-block__item-block__price {
  font-size: 0.8em;
}

#galerie {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

#galerie .galerie-modal {
  top: 0;
  height: 100vh;
  width: 100%;
  position: fixed;
  background: rgb(0, 0, 0, 0.9);
  z-index: 10000;
}

#galerie .galerie-modal .galerie-modal__pic-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#galerie .galerie-modal .galerie-picture__item {
  width: 100%;
  height: calc(100vw / 3 * 2);
  z-index: 1;
  box-shadow: inset 0px 0px 0px 4px rgba(0, 0, 0, 0.5);
}

#galerie .galerie-modal .galerie-picture__item.next {
  z-index: 0;
  transform: scale(0.95) translateY(-70%);
  opacity: 0.5;
}

#galerie .galerie-modal .galerie-picture__item.pre {
  z-index: 0;
  transform: scale(0.95) translateY(70%);
  opacity: 0.5;
}

#galerie .galerie-modal .galerie-picture__item.cur {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#galerie .galerie-modal .galerie-modal__closer {
  cursor: pointer;
  z-index: 10001;
  color: rgb(var(--primary));
  font-size: 2em;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 50%;
  margin: 0.4em 0.4em;
  background-color: black;
}

#galerie .galerie-modal .galerie-modal__next-button,
#galerie .galerie-modal .galerie-modal__pre-button {
  animation-timing-function: ease;
  color: white;
  font-size: 1.4em;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.2em 0.3em;
  cursor: pointer;
}

#galerie .galerie-modal .galerie-modal__next-button:hover,
#galerie .galerie-modal .galerie-modal__pre-button:hover {
  color: rgb(var(--tertiary));
  filter: brightness(1.6);
  transition: 600ms;
}

#galerie .galerie-modal .galerie-modal__next-button {
  border-top-left-radius: 0.2rem;
  border-top-right-radius: 0.2rem;
  margin-bottom: 4px;
}

#galerie .galerie-modal .galerie-modal__pre-button {
  border-bottom-left-radius: 0.2rem;
  border-bottom-right-radius: 0.2rem;
  margin-top: 4px;
}

#galerie .galerie-modal .galerie-modal__closer:hover {
  transition: 600ms;
  color: rgba(var(--primary), 0.6);
}

#galerie > h3 {
  margin: 5%;
  align-self: center;
}

.galerie-thumbnails {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.galerie-thumbnail__item {
  height: calc(50vw / 3 * 2);
  width: 50%;
  cursor: pointer;
}

.galerie-thumbnail__item:hover {
  transition: 1200ms;
  filter: brightness(1.5);
}

.galerie-thumbnail__item:nth-of-type(odd) {
  background: gray;
}

#anfahrt .booklike-block__img {
  background: url("assets/anfahrt.jpg") 0% 50% / cover no-repeat border-box;
}

#kontakt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2% 5%;
}

#kontakt p:first-of-type {
  margin-bottom: 1rem;
}

#kontakt p {
  max-width: 800px;
}

#kontakt h3:nth-of-type(2) {
  margin-top: 3em;
}

#kontakt .adresse {
  width: 100%;
  max-width: 500px;
  padding: 1em;
  border: 4px solid rgba(var(--primary));
}

#kontakt .adresse ul {
  display: flex;
  flex-direction: column;
}

#kontakt .adresse ul li {
  display: flex;
  justify-content: space-between;
}

#kontakt a {
  color: rgba(var(--tertiary));
  font-size: 1.2em;
  margin-top: 2rem;
  padding: 0.2em 0.4em;
  border-radius: 2em;
  border: 2px solid rgba(var(--tertiary));
  margin-bottom: 2em;
}

#kontakt a:hover {
  color: white;
  background-color: rgba(var(--tertiary));
  transition: 1200ms;
}

#map {
  height: 40vh;
  width: 100%;
}

.impressum {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.impressum-text__container {
  margin-bottom: 2em;
}

.impressum-text__container > li {
  margin: 0.4em;
}

.impressum-text__container > li:first-of-type {
  margin-bottom: 1em;
  font-weight: bold;
}

.impressum-text__container > li:last-of-type {
  margin-top: 1em;
}

@keyframes jumpGalerieButtonUp {
  0%,
  100% {
    transform: translateY(-0.6em) scale(1.9);
  }
  50% {
    transform: translateY(-0.8em) scale(2);
  }
}

@keyframes jumpGalerieButtonDown {
  0%,
  100% {
    transform: translateY(0.6em) scale(1.9);
  }
  50% {
    transform: translateY(0.8em) scale(2);
  }
}

@keyframes slideFromBottom {
  0% {
    transform: translateY(4rem);
    opacity: 0;
  }
  50% {
    opacity: 0.4;
    transform: translateY(-0.2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFromTop {
  0% {
    transform: translateY(-4rem);
    opacity: 0;
  }
  50% {
    opacity: 0.4;
    transform: translateY(0.2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFromLeft {
  0% {
    transform: translateX(-4rem);
    opacity: 0;
  }
  50% {
    opacity: 0.4;
    transform: translateX(0.2rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  0% {
    transform: translateX(4rem);
    opacity: 0;
  }
  50% {
    opacity: 0.4;
    transform: translateX(-0.2rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* media querys */

@media all and (orientation: landscape) {
  #galerie .galerie-modal .galerie-modal__pic-container {
    flex-direction: row;
  }

  #galerie .galerie-modal .galerie-picture__item {
    width: calc(90vh / 2 * 3);
    height: 90vh;
    max-height: 1000px;
    max-width: 1500px;
  }

  #galerie .galerie-modal .galerie-picture__item.next,
  #galerie .galerie-modal .galerie-picture__item.pre {
    display: none;
  }
}

@media screen and (min-width: 400px) {
  #galerie {
    align-items: center;
  }

  .galerie-thumbnails {
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
  }

  .galerie-thumbnail__item {
    height: calc(200px / 3 * 2);
    width: 200px;
  }
}

@media screen and (min-width: 620px) {
  body {
    font-size: 20px;
  }
}

@media screen and (min-width: 960px) {
  .meal-block {
    margin: 1em;
  }

  body {
    font-size: 20px;
  }

  nav.active {
    color: rgb(var(--secondary-text-color));
    transform: translateX(70vw);
  }

  nav ul {
    width: 30vw;
  }

  #zimmer .cards {
    justify-content: center;
    width: 100vw;
    transform: translateX(0);
    height: auto;
  }

  #zimmer .cards-button {
    display: none;
  }

  #zimmer .card-container {
    margin-left: 1rem;
    margin-right: 1rem;
    width: 300px;
    z-index: 2;
  }

  #zimmer .card-container.left {
    z-index: 1;
    transform: translateX(2em) scale(0.95);
  }

  #zimmer .card-container.right {
    z-index: 1;
    transform: translateX(-2em) scale(0.95);
  }
}

@media screen and (min-width: 1200px) {
  .booklike {
    flex-direction: row;
  }
  .booklike > div {
    height: 100vh;
    width: 50%;
  }
  .galerie-thumbnails {
    max-width: 1208px;
    border: 4px solid white;
  }
  #fz_sommer.booklike {
    flex-direction: row-reverse;
  }
  body {
    font-size: 22px;
  }
}
