/* Globale Stile & Variablen */
:root {
  --bs-primary: #ffc800; /* Haupt-Akzentfarbe Gelb */
  --bs-dark: #212529;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Roboto', sans-serif;
  --bs-btn-bg: var(--bs-primary);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Höhe der Navbar */
}

body {
  background-color: #000;
  color: #fff;
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

.page-section {
  padding: 6rem 0;
}

.section-heading {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #fff;
}

.section-subheading {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 4rem;
  color: #eeeeee;
}

/* Helle Sektionen anpassen */
.bg-light {
  background-color: #111 !important;
}

.bg-light .section-heading {
  color: #fff;
}

.bg-light .text-muted {
  color: #a0a0a0 !important;
}

/* Navigation */
.navbar-nav {
  background-color: rgba(0, 0, 0, 0.6);
}

#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: transparent;
  transition: background-color 0.3s ease-in-out;
  position: absolute;
}

#mainNav .navbar-brand {
  color: var(--bs-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5em;
}

/* Fancy navigation visuals */
.fancy-nav {
  position: relative;
}

#mainNav .navbar-brand .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bs-primary);
  box-shadow: 0 0 12px rgba(255, 200, 0, 0.8);
}

/* Enlarge header logo image if present */
.navbar-brand img {
  height: 54px; /* slightly larger */
  width: auto;
}

#mainNav .nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  padding: 0.75rem 0.75rem;
  transition: color 0.2s ease;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--bs-primary),
    transparent
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 250ms ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
  transform: scaleX(1);
}

/* Active underline bar that moves under active item */
#mainNav .active-underline {
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 60px; /* will be updated via JS */
  background: linear-gradient(
    90deg,
    transparent,
    var(--bs-primary),
    transparent
  );
  opacity: 0;
  transition: left 250ms ease, width 250ms ease, opacity 200ms ease;
}

/* Navbar-Stil beim Scrollen */
#mainNav.navbar-scrolled {
  background-color: rgba(33, 37, 41, 0.7);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* CTA button inside nav */
.nav-cta {
  box-shadow: 0 8px 16px rgba(255, 200, 0, 0.2);
}

/* Hero Sektion */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: kenburns 12s ease-in-out infinite;
}

.hero-slide.active {
  opacity: 1;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(0, -1.5%, 0);
  }
  100% {
    transform: scale(1.12) translate3d(0, 0, 0);
  }
}

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease;
}

.hero-dots .dot.active {
  background: var(--bs-primary);
  transform: scale(1.3);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-heading);
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Speisekarte */
.menu-category {
  color: var(--bs-primary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--bs-primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

#speisekarte .list-group-item {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Galerie */
#galerie .img-fluid {
  border: 5px solid #333;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

#galerie .img-fluid:hover {
  transform: scale(1.05);
  border-color: var(--bs-primary);
}

/* Kontakt */
#kontakt a {
  color: var(--bs-primary);
  text-decoration: none;
}
#kontakt a:hover {
  text-decoration: underline;
}
.text-primary {
  color: var(--bs-primary) !important;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.9rem;
  background-color: var(--bs-dark);
}

.footer .link-light:hover {
  color: var(--bs-primary) !important;
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: var(--bs-dark);
}
.btn-primary:hover {
  background-color: #ffe066; /* Etwas helleres Gelb */
  border-color: #ffe066;
  color: var(--bs-dark);
}

.btn-primary:focus,
.btn-primary:active,
.btn:first-child:active,
.btn:active,
:not(.btn-check) + .btn:active {
  background-color: #ffd633; /* Noch helleres Gelb */
  border-color: #ffd633;
  color: var(--bs-dark);
  box-shadow: 0 0 0 0.25rem rgba(255, 200, 0, 0.5);
}

.btn-social {
  height: 2.5rem;
  width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 100%;
}

/* Modal Anpassungen */
.modal-content {
  background-color: #343a40;
  color: #fff;
}

.modal-header {
  border-bottom: 1px solid #454d55;
}

.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Scroll to Top Button */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: var(--bs-primary);
  color: var(--bs-dark);
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#scrollToTopBtn:hover {
  background-color: #ffe066; /* Etwas helleres Gelb */
}
