* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  height: 100vh;
  scroll-padding-top: 100px;
  /* overflow-y: hidden; */
}

@media screen and (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  section {
    /* min-height: 100vh; */
    width: 100%;
    padding: 10px;
    scroll-margin-top: 60px;
    box-sizing: border-box;
  }
}

/*---------------------------
___________Theke_____________
-----------------------------*/
header {
  width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.header-container {
  position: relative;
  background: #f2f2f2;
  padding: 0em;
}

#header-top {
  margin-top: auto;
  position: relative; /* wichtig, damit die absolute Positionierung des Kindes funktioniert */
  display: flex;
  flex-direction: row;
  aspect-ratio: 1580/415;
  height: auto;
  background: url(../images/theke.jpg) no-repeat center center;
  background-size: cover;
  width: 100%;
  height: 60vh;
  overflow: hidden; /* verhindert, dass das Bild überläuft */
}
@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateY(-50px); /* Start: leicht nach oben verschoben */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* Endposition */
  }
}

/* Neues Bild positionieren */
.blitznews {
  position: absolute;
  top: 250px; /* Abstand von oben */
  left:60%; /* Abstand von links */
  width: 350px; /* Größe anpassen nach Bedarf */
  height: auto;
  z-index: 10; /* sorgt dafür, dass es über dem Hintergrundbild sichtbar ist */
   /* Animation hinzufügen */
   animation: slideInFade 1s ease-out forwards; /* 1s Dauer, schöner "ease-out" Effekt */
}
.blitznews2 {
  position: absolute;
  top: 90px; /* Abstand von oben */
  left:80%; /* Abstand von links */
  width: 350px; /* Größe anpassen nach Bedarf */
  height: auto;
  z-index: 10; /* sorgt dafür, dass es über dem Hintergrundbild sichtbar ist */
   /* Animation hinzufügen */
   animation: slideInFade 1s ease-out forwards; /* 1s Dauer, schöner "ease-out" Effekt */
}

/* Responsive Anpassungen */
@media (max-width: 480px) {
  #header-top {
    margin-top: 60px;
    background-image: url(../images/theke2_th.jpg);
    background-position: 5% 0px;
  }
  .blitznews {
    top: 300px; /* weniger Abstand nach oben */
    left: 25px; /* weiter nach links */
    width: 200px; /* kleiner machen */
    /* Animation trotzdem auch auf Smartphone */
    animation: slideInFade 1s ease-out forwards;
  }
  .blitznews2 {
    top: 20px; /* weniger Abstand nach oben */
    left: 230px; /* weiter nach links */
    width: 200px; /* kleiner machen */
    /* Animation trotzdem auch auf Smartphone */
    animation: slideInFade 1s ease-out forwards;
  }
}

/* Media Query  (600x800) */
@media only screen and (min-width: 600px) and (max-width: 600px) and (min-height: 800px) and (max-height: 800px) {
  #header-top {
    background-position: 45% 0px;
  }
}

/* Media Query für  (768x1024) */
@media only screen and (min-width: 768px) and (max-width: 768px) and (min-height: 1024px) and (max-height: 1024px) {
  #header-top {
    background-position: 45% 0px;
  }
}

/*---------------------------
___________Welcome_____________
-----------------------------*/

#welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0vw;
  height: 40vh;
  background-image: url(../images/beer1.jpg);
}
#welcome > img {
  width: 20vw;
  margin: 0rem;
}

@media only screen and (max-width: 768px) {
  #welcome {
    flex-direction: column;
    align-items: center;
    height: 40vh;
  }

  .img {
    width: 100px;
    margin-bottom: 200px;
  }
}

@media (max-width: 480px) {
  #welcome {
    flex-direction: column;
    align-items: center;
    height: 40vh;
  }

  .img {
    width: 150px !important;
    margin-bottom: 200px;
  }
}

@media only screen and (max-width: 768px) {
  #welcome {
    flex-direction: column;
    background-image: url(../images/beer2.jpg);
  }

  .img {
    width: 42vw;
  }
}



/*-------------------------------
           section Gude       
---------------------------------*/

#gude {
  margin-top: 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  background-image: url(../images/kneipe_bg.png);
  background-size: contain;
}

#gude > h1 {
  font-size: 2em;
  text-align: center;
  margin-top: 2rem;
}

#gude > p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2em;
  text-align: center;
  margin-top: 4rem;
  width: 70%;
}

@media only screen and (max-width: 767px) {
  #gude {
    min-height: 100vh;
    background-image: url(../images/kneipe_res.png);
    background-size: cover;
  }
}

/*---------------------------------
            section Karte          
---------------------------------- */

.section-title {
  text-align: center;
  font-size: 2em;
  color: wheat;
  margin: 20px 0;
}

#karten {
  min-height: 100vh;
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-image: url("../images/bg-chart.png");
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding-top: 140px;
}

@media (max-width: 800px) {
  .cards-container {
    flex-direction: column;
    padding-top: 60px;
  }
}

.card {
  margin: 30px;
  cursor: pointer;
  position: relative;
  width: 200px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 20px black;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.1);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: bottom 0.8s;
}

.card:hover .overlay {
  bottom: 0;
}

.overlay h2 {
  margin: 0;
  font-size: 1.5rem;
}

.overlay p {
  margin: 8px 0 0;
  font-size: 1rem;
}

/*----------Modal Styles------------*/
.modal {
  display: none;
  position: fixed;
  z-index: 1002;
  top: 50px;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-height: calc(100vh - 100px);
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.modal.visible {
  display: block;
}

.modal__header {
  width: 100%;
  height: 70px;
  padding: 16px;
  background-image: url(../images/bg_wood.jpg);
  background-color: #5cb85c;
  color: goldenrod;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.modal__header a {
  position: absolute;
  top: 0;
  right: 0;
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 0 20px;
  font-size: 28px;
  line-height: 70px;
  cursor: pointer;
}

.modal__header a:hover,
.modal__header a:focus {
  color: #000;
  text-decoration: none;
}

.modal-content { 
  position: absolute;
  top: 70px;
  bottom: 70px;
  width: 100%;
  background-size: contain;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-body {
  min-height: 100%;
  padding: 16px;
  background-image: url(../images/modal_bg.png);
}
.modal-body > h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  text-align: left;
  margin-top: 1rem;
  margin-left: 1rem;
  margin-bottom: 1rem;
}
.modal-body > h3 {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: underline;
  margin: 2rem;
}
.modal-body2 {
  min-height: 100%;
  padding: 16px;
  background-color: wheat;
  background-image: url(../images/biergarten.png);
}
.modal-body2 > h3 {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: underline;
  margin: 2rem;
}
.modal-body3 {
  min-height: 100%;
  padding: 16px;
  background-color: wheat;
  background-image: url(../images/herbst.png);
}
.modal-body3 > h3 {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: underline;
  margin: 2rem;
}
.modal-footer {
  width: 100%;
  height: 70px;
  padding: 16px;
  background-image: url(../images/bg_wood.jpg);
  background-color: #5cb85c;
  color: goldenrod;
  text-align: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.grid-container {
  display: grid;
  grid-template-columns: 7fr 1fr 2fr;
  gap: 1em;
}

.grid-container > div:nth-of-type(3n + 1) {
  font-weight: bold;
  margin-left: 1rem;
}

.grid-container > div:nth-of-type(3n + 2) {
  text-align: right;
}

.grid-container > div:nth-of-type(3n + 3) {
  font-weight: bold;
  text-align: right;
  margin-right: 1rem;
}

.grid-container2 {
  display: grid;
  grid-template-columns: 8fr 2fr;
  gap: 1em;
}

.grid-container2 > div:nth-of-type(2n + 1) {
  font-weight: bold;
  margin-left: 1rem;
}
.grid-container2 > div:nth-child(8) {
  margin-bottom: 4rem;
}

.grid-container2 > div:nth-of-type(2n + 2) {
  font-weight: bold;
  text-align: right;
  margin-right: 1rem;
}

.grid-container3 {
  display: grid;
  grid-template-columns: 8fr 2fr;
  gap: 1em;
}

.grid-container3 > div:nth-of-type(2n + 1) {
  font-weight: bold;
  margin-left: 1rem;
}
.grid-container3 > div:nth-child(6) {
  margin-bottom: 4rem;
}

.grid-container3 > div:nth-of-type(2n + 2) {
  font-weight: bold;
  text-align: right;
  margin-right: 1rem;
}

@media (max-width: 800px) {
  .modal {
    width: 90%;
    max-width: 350px;
    background-image: url(../images/modal_bg.png);
  }

  .grid-container {
    grid-template-columns: 7fr 2fr 1fr;
  }

  .grid-container > div:nth-of-type(3n + 1) {
    margin-left: 1rem;
  }

  .grid-container > div:nth-of-type(3n + 2) {
    text-align: right;
  }

  .grid-container > div:nth-of-type(3n + 3) {
    margin-right: 1rem;
  }

  .grid-container2 {
    grid-template-columns: 7fr 3fr;
  }

  .grid-container2 > div:nth-of-type(2n + 1) {
    margin-left: 1rem;
  }

  .grid-container2 > div:nth-of-type(2n + 2) {
    text-align: right;
  }
  .grid-container3 {
    grid-template-columns: 7fr 3fr;
  }

  .grid-container3 > div:nth-of-type(2n + 1) {
    margin-left: 1rem;
  }

  .grid-container3 > div:nth-of-type(2n + 2) {
    text-align: right;
  }

  .modal-body {
    background-image: url(../images/modal_bg_th.png);
  }
  .modal-body3 {
    background-color: wheat;
  }
}

/*-------------------------
          News     
---------------------------*/

#news {
  position: relative;
  margin: 0;
  padding-bottom: 20px;
  min-height: calc(100vh - 60px);
  background-image: url(../images/kork_bg.png);
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

/* Rahmen oben */
.frame-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-image: url("../images/news/leiste_l.png");
  background-repeat: repeat-x;
  background-size: cover;
}

/* Rahmen unten */
.frame-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-image: url("../images/news/leiste_l.png");
  background-repeat: repeat-x;
  background-size: cover;
}

/* Rahmen links */
.frame-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background-image: url("../images/news/leiste_h.png");
  background-repeat: repeat-y;
  background-size: cover;
}

/* Rahmen rechts */
.frame-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background-image: url("../images/news/leiste_h.png");
  background-repeat: repeat-y;
  background-size: cover;
}

/* Überschrift */
#news > h1 {
  color: aliceblue;
  font-size: 2em;
  text-align: center;
  margin-top: 5rem;
  z-index: 1;
}
/* Container für die Notizen unter der Überschrift */
.flex-container {
  width: 100%;
  max-width: 90%;
  margin: 20px auto;
  padding: 20px 10px 20px 30px;

  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: baseline;

  gap: 20px;
  z-index: 1;
}

.note {
  background-image: linear-gradient(135deg, #f6f6f6 43%, #e4e9e9 66%);
  display: inline-block;
  padding: 20px 15px;
  width: 220px;
  height: 230px;
  margin: 10px;
  list-style: none;
  border: 1px solid #ddd;
  box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.4);
  color: #000;
  border-bottom-right-radius: 50px 10px;
  position: relative;
  transition: all 0.3s ease;
}

.note::before {
  content: "";
  border-radius: 50%;
  width: 22px;
  height: 20px;
  position: absolute;
  top: 6px;
  left: calc(50% - 11px);
  background-image: radial-gradient(
    at 30% 30%,
    rgba(255, 255, 255, 0.6) 5%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(0, 0, 0, 0.3) 80%,
    rgba(0, 0, 0, 0.5) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 1px 3px 3px #666;
}

.note::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -1px;
  width: 200px;
  height: 140px;
  background-image: linear-gradient(
    173deg,
    rgba(0, 0, 0, 0) 92%,
    rgba(0, 0, 0, 0.6) 100%
  );
  transform: rotate(3deg);
  filter: blur(2px);
  z-index: -1;
}

.note h1 {
  font-family: "DPDorkDiary", sans-serif;
  text-align: center;
  line-height: 1em;
  font-weight: bold;
  font-size: 1.4em;
  margin: 0.5em 0 0;
}

.note p {
  font-size: 1.1em;
  text-align: center;
  margin: 1em 0;
}

.note a {
  color: darkred;
  text-decoration: none;
  font-weight: bolder;
  font-size: 1.5em;
  text-align: center;
  display: block;
}

.note a:hover {
  color: darkgreen;
}

/* Rotationen für bestimmte Notizen */
.note:nth-child(3n) {
  transform: rotate(5deg);
}
.note:nth-child(3n-1) {
  transform: rotate(-4deg);
}

/* Überschreibt Rotationen bei Hover */
.note:hover {
  transform: scale(1.1) rotate(0deg);
  z-index: 2;
}

.note:nth-child(1)::before {
  background-color: lightcoral;
}
.note:nth-child(2)::before {
  background-color: mediumspringgreen;
}
.note:nth-child(3)::before {
  background-color: greenyellow;
}
.note:nth-child(4)::before {
  background-color: lightskyblue;
}
.note:nth-child(5)::before {
  background-color: aquamarine;
}
.note:nth-child(6)::before {
  background-color: steelblue;
}
.note:nth-child(7)::before {
  background-color: indianred;
}
.note:nth-child(8)::before {
  background-color: orange;
}

.note.placeholder {
  background: transparent;
  border: none;
  box-shadow: none;
  visibility: hidden;
  width: 200px;
  height: 220px;
  margin: 10px;
  pointer-events: none;
  align-self: stretch;
}

@media screen and (max-width: 768px) {
  #news > h1 {
    font-size: 1.5em;
    margin-top: 5rem;
    margin-bottom: 2rem;
  }

  .flex-container {
    max-width: 95%;
    padding: 10px;
  }

  .note {
    width: 180px;
    height: 200px;
    padding: 15px 10px;
    margin: 10px 10px;
  }

  .note::before {
    width: 18px;
    height: 16px;
    top: 4px;
  }

  .note::after {
    width: 180px;
    height: 200px;
    bottom: -2px;
    filter: blur(1.5px);
  }

  .note h1 {
    font-size: 1.2em;
  }

  .note {
    width: 190px;
    height: 200px;
    padding: 15px 10px;
  }
}

/*--------------------------------
..............Lightbox............
----------------------------------*/
/* Standardmäßig versteckt */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Lightbox-Inhalt */
.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 80%;
  max-height: 80%;
}

/* Schließen-Button */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

/* Bild */
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}


/*-------------------------------
           section Galerie       
---------------------------------*/

#galerie {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url(../images/brick_bg.jpg);
  padding: 2rem 0;
}

#galerie > h1 {
  font-size: 1.5em;
  font-weight: bold;
  color: black;
  background-color: rgba(136, 136, 136, 0.5);
  padding: 0.5rem 1rem;
  text-align: center;
}

#galerie > p {
  font-size: 1.1em;
  font-weight: bold;
  color: black;
  background-color: rgba(136, 136, 136, 0.5);
  padding: 0.5rem 1rem;
  text-align: center;
}

/*----Impressum -----*/

#impressumSection.hidden {
  display: none;
}

#impressumSection {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  min-height: 100vh;
  /* background-color: rgb(53, 52, 52); */
  background-image: url(../images/impr-bg.png);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

#impressumSection .content {
  width: 70%;
  max-height: 70vh;
  overflow-y: auto;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}

#impressumSection .content p {
  font-size: 1em;
}

/*---------------------------
----------Footer-------------
---------------------------*/

footer {
  color: wheat;
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  font-family: "Arial, sans-serif";
  background-color: rgb(74, 71, 71);
  text-align: center;
}

footer > section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem;
  text-align: center;
  flex-basis: 100%;
}

footer > section > h4 {
  font-size: 2rem;
  border-width: 1px 0;
  border-style: solid;
  width: 100%;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
}

footer > section.contact > address {
  line-height: 2rem;
  font-size: 1.1rem;
  font-style: normal;
}

footer > section.contact > address > a {
  font-family: "Arial, sans-serif";
  text-decoration: none;
  color: wheat;
  line-height: 2rem;
  font-size: 1.1rem;
  font-style: normal;
}

footer > section.social > div {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

footer > section.social > div > a > img {
  width: 40px;
  height: 40px;
}

footer > section.hours > div > p {
  width: 100%;
  font-size: 1rem;
  margin: 0.3rem 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

footer > section:last-of-type {
  width: 100%;
}

footer > section.additional-info {
  width: 100%;
  order: 4;
}

footer > section.additional-info > p:first-of-type {
  font-size: 1.6em;
  font-weight: bolder;
  color: goldenrod;
  border-bottom: 1px solid wheat;
  width: 100%;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
}

footer > section.additional-info > p:last-of-type {
  font-size: 1.6em;
}

footer > section:last-of-type {
  flex-basis: 100%;
}
@media (max-width: 480px) {
  section {
    width: 100%;
    padding: 10px;
    scroll-margin-top: 60px;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  footer > section {
    flex-basis: 45%;
  }

  footer > section:last-of-type {
    flex-basis: 100%;
  }
}

@media (min-width: 1024px) {
  footer {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  footer > section {
    flex-basis: auto;
    margin: 1rem;
  }

  footer > section.social > div {
    gap: 2rem;
  }

  footer > section.additional-info {
    width: 100%;
    order: 4;
  }
}
