@font-face {
  font-family: "Agency FB";
  src: url("/fonts/agencyfb_reg.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Agency FB";
  src: url("/fonts/agencyfb_bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

body {
  background-color: #ffebcd;
  font-family: "Agency FB", sans-serif;
  margin: 0;
  min-height: 100%;
}

p {
  font-weight: normal;
}

strong,
b {
  font-weight: bold;
}

h1 {
  display: inline-block;
  font-size: 4em;
}

.navigation-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  padding: 0;
  z-index: 19;
  text-align: center;
  background-color: rgb(255, 235, 205);
  width: 100%;
}

.navi-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.navi-flex {
  display: flex;
  flex-direction: row;
  align-content: space-between;
  font-size: 1.5em;
  font-weight: 630;
  width: 50vw;
}

.navi-menu-entry {
  width: 10px;
  flex-grow: 1;
  opacity: 0;
  padding: 10px 0;
  transition: background-color 0.3s ease;
  animation-name: showup;
  animation-delay: 3.5s;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  position: relative;
  border-radius: 8px;
}
/* Unterstrich-Animation für alle Bildschirmgrößen */
.navi-menu-entry::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #000;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navi-menu-entry:hover::after {
  width: 30%;
}

.navi-menu-entry:hover {
  background-color: white;
  cursor: pointer;
}

.logo-wrapper {
  margin: auto;
  display: flex;
  height: 100vh;
  animation-name: moveup;
  animation-delay: 3s;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  max-height: 100vh;
}

.header-container {
  margin: auto;
  width: 100%;
  text-align: center;
}

.header-sides-container {
  display: inline-block;
  margin: auto;
  overflow: hidden;
}

.header-common {
  font-family: "shoppingScriptFont";
  overflow: hidden;
  letter-spacing: 0.15em;
  font-weight: normal;
}

.header-center {
  text-align: center;
  animation-name: showup;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  align-self: center;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.header-right {
  text-align: left;
  opacity: 1;
  float: right;
}

.header-left {
  text-align: right;
  opacity: 1;
  float: left;
}

.body-center {
  margin: auto;
  margin-top: 10vh;
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  height: 100vh;
}

.two-thirds-width {
  width: 55%;
  margin: auto;
  text-align: center;
  font-size: 1.2rem;
  background-color: white;
  border-radius: 16px;
  padding: 5.5rem 4.5rem;
  box-sizing: border-box;
}

/* Eigen-Margins der ersten/letzten Kind-Elemente (z. B. h4 „Brunch | Mittag |
   Dinner") neutralisieren, damit das Karten-Padding den Abstand oben/unten
   symmetrisch bestimmt. */
.two-thirds-width > :first-child {
  margin-top: 0;
}

.two-thirds-width > :last-child {
  margin-bottom: 0;
}

/* Reservieren: gleiche Box-Größe wie ÜBER UNS, Text zentriert. */
#reservation-main .two-thirds-width {
  width: 80%;
  max-width: 920px;
}

/* ÜBER UNS & RESERVIEREN: Inhalt vertikal mittig, Kasten nicht bis zum Rand.
   (Menü-/Events-Panels sind ausgenommen, da sie scrollbare Karten zeigen.) */
#about-us-main,
#reservation-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Genügend Abstand oben, damit Inhalt nicht hinter der (fixen) Navigation liegt. */
body.menu-open #about-us-main,
body.menu-open #reservation-main,
body.menu-open .impressum-wrapper,
body.menu-open .agb-wrapper {
  padding-top: 16vh;
}

/* Menu Styles */
.menu-description {
  text-align: center;
  font-size: 1em;
}

.menu-spacer {
  height: 5rem;
}

.menu-img {
  height: 70vh;
  max-width: 100%;
}

/* Menü-Karten (manifest-getrieben, gestapelt, mehrseitig) */
.menu-cards {
  max-width: 820px;
  margin: 0 auto;
  padding: 15vh 0 4rem;
}

.menu-card {
  margin-bottom: 3rem;
}

.menu-card:last-child {
  margin-bottom: 0;
}

.menu-card-title {
  font-size: 2.2em;
  font-weight: bold;
  margin: 0 0 1rem;
}

.menu-page-img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto 1rem;
}

.menu-page-img:last-child {
  margin-bottom: 0;
}

/* Beim Öffnen eines Menüpunkts: Logo zusammenquetschen (nicht verschwinden),
   damit oben Platz entsteht und das Panel den ganzen Bildschirm nutzt
   (Desktop & Mobile). Gleiche weiche Animation wie die Panels. */
.logo-wrapper {
  transition: height 800ms ease;
}

/* Nach der Intro-Animation: Animation lösen, damit die Höhe per Transition
   animierbar wird (Animationen blockieren sonst Transitions auf derselben
   Property). Ruhehöhe = Endwert der Intro (20vh) -> nahtloser Übergang. */
.logo-wrapper.intro-done {
  animation: none;
  height: 20vh;
}

.header-center {
  transition: height 800ms ease;
}

body.menu-open .logo-wrapper {
  height: 9vh !important;
  min-height: 0;
  overflow: hidden; /* schneidet den Whitespace ober-/unterhalb weg */
}

/* Logo NICHT verkleinern: Bild bleibt groß, die Box clippt nur den Rand,
   sodass der Schriftzug lesbar bleibt und nur Whitespace verschwindet. */
body.menu-open .header-center {
  height: 22vh;
  object-fit: contain;
  object-position: center;
}

/* Panels nutzen geöffnet die volle Höhe (überschreibt die 75vh-Mobile-Regel). */
body.menu-open .about-us-wrapper,
body.menu-open .impressum-wrapper,
body.menu-open .agb-wrapper {
  height: 100vh;
  height: 100dvh;
}

/* Öffnungszeiten auf der Startseite — NUR auf Mobil (füllt dort den Leerraum
   zwischen Galerie und Footer). Auf Desktop ausgeblendet (unerwünscht). */
.home-hours {
  display: none;
}

.home-hours h4 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

@media screen and (max-width: 768px) {
  .home-hours {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.5;
    /* Kompakter und näher an die Galerie gerückt. Die Legal-Links folgen jetzt
       im normalen Fluss darunter (nicht mehr fixed), darum kein großes
       Bottom-Padding mehr nötig. */
    margin: 0.75rem auto 0;
    padding: 0 1rem;
    /* Erst nach der Intro einblenden, wie die übrigen Elemente. */
    opacity: 0;
    animation-name: showup;
    animation-delay: 3.5s;
    animation-duration: 2s;
    animation-fill-mode: forwards;
  }

  .home-hours h4 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }
}

/* About Us Styles */
/* Desktop: Bild und Text nebeneinander. Hochformat-Foto links, Text rechts. */
.about-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  text-align: left;
  width: 80%;
  max-width: 920px;
}

.about-chef-img {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  /* Auf Texthöhe gedeckelt: Hochformat (2:3) -> ~266px breit. Kompakter, passt
     besser ins Framing neben dem Text. */
  max-height: 400px;
  max-width: 300px;
  border-radius: 12px;
  display: block;
}

.about-text {
  flex: 1 1 auto;
  font-size: 1.15rem;
  line-height: 1.55;
}

.mt-5rem {
  margin-top: 5rem;
}

.about-us-wrapper,
.impressum-wrapper,
.agb-wrapper {
  position: fixed;
  left: 0;
  top: 100vh;
  width: 100vw;
  height: 100vh;
  visibility: hidden;
  transition: all 800ms;
  background-color: #ffebcd;
  text-align: center;
  overflow-y: auto; /* Ermöglicht Scrollen */
  padding: 1rem; /* Verhindert, dass Text zu nahe an den Rändern ist */
  box-sizing: border-box; /* Padding wird in der Höhe berücksichtigt */
}

/* Globaler Schließen-Button: auf Dokument-Ebene (NICHT in einem Panel), damit
   sein z-index nicht im eigenen Stacking-Context des Panels gefangen ist und
   so unter die fixe Navigation rutscht. Liegt über allem; nur bei offenem
   Panel sichtbar & klickbar (Desktop & Mobile). */
.close-global {
  display: none;
  font-size: 45px;
  font-weight: 600;
  position: fixed;
  top: 0.5rem;
  right: 1.5rem;
  z-index: 2147483647; /* über Navigation (19) und Floating-Button */
  line-height: 1;
  width: 3rem;
  height: 3rem;
  text-align: center;
  color: #000;
  user-select: none;
}

body.menu-open .close-global {
  display: block;
}

.close-global:hover {
  cursor: pointer;
}

/* Legal Styles */
/* Im normalen Content-Flow (NICHT fixed) — sonst schweben die Links über der
   Galerie (Desktop) bzw. über den Öffnungszeiten (Mobil). So sitzen sie am
   Seitenende; der User scrollt bei Bedarf und findet sie dort. padding-bottom
   hält sie über dem fixen Reservieren-Button frei. */
.legal-container {
  margin: 2rem auto;
  position: static;
  display: flex;
  text-align: center;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 4rem;
  opacity: 0;
  animation-name: showup;
  animation-delay: 3.5s;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

.legal-button {
  flex-grow: 0;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.legal-button:hover {
  background-color: #fff;
  transform: translateY(-2px);
  cursor: pointer;
}

/* Slideshow Styles */
.slideshow-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-inner {
  max-width: 1000px;
  position: relative;
  margin-top: 27vh;
  opacity: 0;
  animation-name: showup;
  animation-delay: 3s;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  width: 100%;
}

.slider-img {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.mySlides {
  display: none;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

/* Animations */
@keyframes showup {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes moveup {
  from {
    height: 100vh;
  }
  to {
    height: 20vh;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  .navi-flex {
    width: 90%;
    font-size: 1rem;
  }

  .container-inner {
    width: 89%;
  }

  .slider-img {
    height: 300px;
  }

  .two-thirds-width {
    width: 85%;
    /* Mobil bewusst kompakter als Desktop. */
    padding: 2.5rem 1.5rem;
  }

  .about-us-wrapper,
  .impressum-wrapper,
  .agb-wrapper {
    height: 75vh;
    padding-bottom: 50px;
  }

  .agb-wrapper,
  .about-us-wrapper {
    font-size: 0.8rem;
  }

  .agb-wrapper {
    overflow-y: auto;
    max-height: 75vh;
  }

  /* Legal-Links NICHT mehr fixed über dem Reservieren-Button (das überlappte
     auf manchen Gerätehöhen, z.B. S24+, die Öffnungszeiten). Stattdessen im
     normalen Content-Flow am Seitenende — der User scrollt bei Bedarf und
     findet sie dort. padding-bottom hält sie über dem 46px hohen fixen
     Reservieren-Button frei. */
  .legal-container {
    position: static;
    margin: 1.75rem auto 0;
    padding-bottom: 70px;
    flex-wrap: wrap;
  }

  .navi-menu-entry:active,
  .legal-button:active {
    background-color: rgba(255, 235, 205, 0.5);
    transform: scale(0.98);
  }

  /* ÜBER UNS auf Mobil: gestapelt, Bild oben mit gedeckelter Höhe (Hochformat
     soll den Text nicht wegdrücken), Text darunter zentriert. */
  .about-box {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    width: 90%;
  }

  .about-chef-img {
    width: auto;
    max-width: 56%;
    max-height: 34vh;
    margin: 0 auto;
  }

  .about-text {
    font-size: 0.95rem;
  }
}

/* Floating Reservation Button */
.tf-floating-button {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  width: 280px;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 8px;
  /* Animation: erst nach GIF sichtbar */
  opacity: 0;
  animation-name: showup;
  animation-delay: 3.5s;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  transition: all 0.3s ease;
}

.tf-floating-button:hover {
  transform: translateY(-2px);
  background-color: #ffebcd;
}

.tf-widget-link {
  text-decoration: none;
  color: #000;
  font-family: "Agency FB", sans-serif;
  font-size: 1.5em;
  font-weight: bold;
  width: 100%;
  text-align: center;
}

.tf-widget-link:hover {
  background: none !important;
}

/* Mobile: Full width, sticky am unteren Rand */
@media screen and (max-width: 768px) {
  .tf-floating-button {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}
