* {
  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 */
}
/* Thumbnail klein halten */
/* .urlaub-thumb {
    width: 140px;
    cursor: pointer;
} */

@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: 100px; /* Abstand von oben */
  left: 70%; /* Abstand von links */
  width: 300px; /* Größe anpassen nach Bedarf */
  height: auto;
  z-index: 1; /* 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: 250px; /* Abstand von oben */
  left: 60%; /* Abstand von links */
  width: 250px; /* Größe anpassen nach Bedarf */
  height: auto;
  z-index: 1; /* 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: 250px; /* kleiner machen */
    /* Animation trotzdem auch auf Smartphone */
    animation: slideInFade 1s ease-out forwards;
  }
  .blitznews2 {
    top: 20px; /* weniger Abstand nach oben */
    left: 200px; /* 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/bier2.png);
}
#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/bier2.png);
  }

  .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;
  color: #000;
}

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

@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;
}

/*-------------------------
          News     
---------------------------*/
.frame {
  max-height: 100vh;
}
/* 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;
}

#news {
  position: relative;
  margin: 0;
  padding: 4rem 2rem 6rem 2rem;

  background-image: url("../images/kork_bg.png");
  background-size: cover;

  box-sizing: border-box;
}

/* ===== Rahmen bleibt wie bei dir ===== */
/* (unverändert übernehmen!) */

/* Titel */
#news > h1 {
  color: aliceblue;
  text-align: center;
  font-size: 2rem;
  margin: 3rem 0 2rem 0;
}

/* =========================
   NEUES STABILES GRID
========================= */

.news-grid {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;

  align-items: start;
}

/* =========================
   NOTE DESIGN (stabil)
========================= */

.note {
  background-image: linear-gradient(135deg, #f6f6f6 43%, #e4e9e9 66%);

  padding: 20px 15px;
  border-radius: 0 0 50px 10px;

  box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    filter 0.45s ease;

  color: #000;

  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 230px;
}

/* Pin */
.note::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);

  width: 20px;
  height: 20px;

  border-radius: 50%;
  background: #ccc;
  box-shadow: 1px 3px 3px #666;
}

/* Schatten */
.note::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -1px;

  width: 100%;
  height: 120px;

  background: 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;
}

/* Text */
.note h1 {
  font-size: 1.2rem;
  text-align: center;
}

.note p {
  text-align: center;
  margin: 1rem 0;
}

.note a {
  text-align: center;
  color: darkred;
  font-weight: bold;
  text-decoration: none;
}

.note a:hover {
  color: darkgreen;
}

/* =========================
   OPTIONAL: leichte Rotation
   (stabil, kein nth-child Chaos!)
========================= */

.note:nth-child(odd) {
  transform: rotate(1deg);
}

.note:nth-child(even) {
  transform: rotate(-1deg);
}

.note:hover {
  transform: translateY(-6px) scale(1.02) rotate(0deg);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);

  z-index: 2;
}
/* =========================
   TABLET
========================= */

@media (max-width: 900px) {
  #news {
    padding: 3rem 1rem 5rem 1rem;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .note {
    min-height: 200px;
    padding: 16px 12px;
  }

  .note h1 {
    font-size: 1.05rem;
  }

  .note p {
    font-size: 0.95rem;
  }

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

/* =========================
   SMARTPHONE
========================= */

@media (max-width: 600px) {
  #news {
    padding: 2.5rem 0.8rem 4rem 0.8rem;
  }

  #news > h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .note {
    min-height: 190px;
    width: 190px;
    padding: 14px 10px;
    margin: auto;
  }

  .note h1 {
    font-size: 1rem;
  }

  .note p {
    font-size: 0.9rem;
    margin: 0.7rem 0;
  }

  .note a {
    font-size: 0.9rem;
  }
  .placeholder {
    display: none;
  }

  /* Rahmen etwas schmaler */
  .frame-left,
  .frame-right {
    width: 20px;
  }

  .frame-top,
  .frame-bottom {
    height: 20px;
  }
}
/*-------------------------
          Impressum
---------------------------*/

#impressumSection.hidden {
  display: none;
}

#impressumSection {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  min-height: 100vh;
  z-index: 10;
  /* 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;
  }
}
