/* === Allgemeines Layout === */
body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* === HEADER === */
.berlinzer-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

/* Logo mittig, aber Button sichtbar rechts */
.logo-container {
  flex: 1;
  text-align: center;
}

.logo {
  height: 55px;
  max-width: 160px;
  object-fit: contain;
}

.menu-button {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1100;
  transition: 0.2s;
}

.menu-button:hover {
  transform: translateY(-50%) scale(1.1);
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  top: 0;
  right: -352px;
  width: 300px;
  height: 100vh;
  background: #111;
  color: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.6);
  padding: 1.2rem 1.2rem;
  transition: right 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  right: 0;
}

.sidebar #close-sidebar {
  align-self: flex-start;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  
  transition: transform 0.2s;
}

.sidebar #close-sidebar:hover {
  transform: scale(1.2);
}

.sidebar-nav {
  flex: 1;
  padding-top:16px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav ul li {
  margin: 1.2rem 0;
}

.sidebar-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sidebar-nav a:hover {
  color: #deb100;
}

/* === "Essen bestellen" Button === */
.order-link {
  display: inline-block;
  background: #deb100;
  color: #000;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.order-link:hover {
  background: #fff;
  color: #000;
}

/* === MAIN CONTENT === */
.main-content {
  padding-top: 81x;
  text-align: center;
}

/* === FOOTER === */
.berlinzer-footer {
  background: #000;
  border-top: 1px solid #222;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .logo {
    height: 45px;
  }

  .menu-button {
    font-size: 1.6rem;
    right: 15px;
  }

  .sidebar {
    width: 250px;
  }

  .sidebar-nav a {
    font-size: 1rem;
  }

  .order-link {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .berlinzer-header {
    padding: 0 15px;
  }

  .logo {
    height: 40px;
    max-width: 120px;
  }

  .menu-button {
    font-size: 1.4rem;
    right: 12px;
  }

  .sidebar {
    width: 220px;
    padding: 1rem 1.5rem;
  }

  .sidebar-nav a {
    font-size: 0.95rem;
  }
}
/* === HERO SECTION === */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Wenn Bild vorhanden */
.hero-section.has-image .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wenn KEIN Bild vorhanden */
.hero-section.no-image {
  background: linear-gradient(135deg, #444, #666);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section.no-image .hero-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ccc;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Overlay + Text */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.hero-text {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 500;
  max-width: 800px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  animation: fadeIn 1s ease-in-out;
}

/* Fade-in Effekt */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsives Verhalten */
@media (max-width: 768px) {
  .hero-text {
    font-size: 1.3rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-text {
    font-size: 1.1rem;
  }

  .hero-section.no-image .hero-fallback {
    font-size: 1.5rem;
  }

  .berlinzer-header{
    padding: 0;
  }
}

/* === FRONT PAGE CONTENT === */
.frontpage-content {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 1.5rem;
  line-height: 1.7;
  text-align: left;
}

.frontpage-content h1,
.frontpage-content h2 {
  color: #deb100;
}

/* === WordPress Columns: Bild vertikal mittig === */
.wp-block-column.is-layout-flow {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Bilder innerhalb dieser Spalte */
.wp-block-column.is-layout-flow img {
  align-self: center; /* zentriert horizontal */
  height: auto;
  max-width: 100%;
  object-fit: contain; /* Bild bleibt proportional */
}

/* Wenn du Text und Bild gemischt hast, dass der Text nicht verzogen wird */
.wp-block-column.is-layout-flow > *:not(img) {
  width: 100%;
}

/* === WordPress Separator (Trennlinie) === */
.wp-block-separator.has-alpha-channel-opacity {
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #deb100, transparent);
  border: none;
  border-radius: 2px;
  margin: 3rem auto;
  opacity: 0.85;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Sanfter Glow-Effekt bei Hover */
.wp-block-separator.has-alpha-channel-opacity:hover {
  opacity: 1;
  transform: scaleX(1.05);
}

/* Optional: leicht leuchtender Schein */
.wp-block-separator.has-alpha-channel-opacity::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #deb100 0%, transparent 70%);
  filter: blur(6px);
  opacity: 0.3;
  z-index: -1;
}

/* === Responsive Anpassung === */
@media (max-width: 768px) {
  .wp-block-separator.has-alpha-channel-opacity {
    width: 90%;
    margin: 2rem auto;
  }
}


/* === Sidebar Overlay mit Blur === */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* unsichtbar im Normalzustand */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  transition: backdrop-filter 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  z-index: 1500; /* unter der Sidebar, über dem Inhalt */
  pointer-events: none;
}

.sidebar.active ~ .sidebar-overlay {
  background: rgba(0, 0, 0, 0.5); /* halbtransparentes Schwarz */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  pointer-events: all; /* Klicks erlauben, um Schließen zu ermöglichen */
}

/* === PAGE LAYOUT === */
.page-content-container {
  max-width: 1000px;
  margin: 100px auto 50px;
  padding: 0 1.5rem;
  line-height: 1.8;
  color: #ddd;
}

.page-title {
  color: #deb100;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.page-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1rem 0;
}

.page-content p {
  margin-bottom: 1rem;
}

/* === MENÜSEITE === */
.menu-page {
  display: flex;
  justify-content: center;
  padding: 120px 1rem 60px;
  background: #000;
}

.menu-container {
  width: 100%;
  max-width: 900px;
  background: #111;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

/* Abschnittsüberschriften */
.menu-container h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid #333;
  padding-bottom: 0.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-container h2::before {
  content: "🥙";
  font-size: 1.2rem;
}

/* Menü-Elemente */
.menu-container p {
  color: #ccc;
  margin: 0.2rem 0 1rem 0;
  font-size: 1rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #222;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item strong {
  color: #fff;
  font-size: 1.05rem;
}

.menu-item em {
  color: #aaa;
  font-style: italic;
}

.menu-item .price {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}

/* Allergene */
.menu-allergens {
  font-size: 0.85rem;
  color: #888;
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-container {
    padding: 1.5rem;
  }
  .menu-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-item .price {
    align-self: flex-end;
    margin-top: 0.3rem;
  }
}

/*Location*/

.locations-section {
  margin-top: 4rem;
  padding: 3rem 1rem;
  background: #000;
  text-align: left;
}

.locations-section h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.location-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.2);
}

.location-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.location-info {
  padding: 1rem 1.2rem;
  text-align: center;
}

.location-info h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.location-btn {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.location-btn:hover {
  background: #fff;
}
