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

:root {
  --primary-color: #000;
  --secondary-color: #fff;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --accent-color: #ff6b35;
  --text-color: #1d1d1d;
  --light-gray: #f5f5f7;
  --medium-gray: #e5e5e7;
  --dark-gray: #6e6e73;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;
}

/* Dark mode overrides - applied when <body> has class "dark" */
body.dark {
  --primary-color: #ff6b35; /* accent stays similar */
  --secondary-color: #454B4E; /* dark background requested (#454B4E) */
  --text-color: #e6e7e8; /* main text */
  --light-gray: #121316; /* card backgrounds */
  --medium-gray: #1f2225; /* slightly lighter surfaces */
  --dark-gray: #e6e7e8; /* muted text */
  --accent-color: #ff8a5a;
  --nav-bg: #454B4E;
}

/* Theme toggle button in the nav */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

body.dark .theme-toggle {
  border-color: rgba(255,255,255,0.08);
  color: var(--text-color);
}

/* small responsive tweak for theme toggle on mobile */
@media (max-width: 600px) {
  .theme-toggle { padding: 0.25rem 0.45rem; font-size: 0.95rem; }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--secondary-color);
  line-height: 1.6;
  letter-spacing: -0.16px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  /* use a variable so we can switch nav background between themes */
  background-color: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--medium-gray);
  z-index: 1000;
  padding: 0 1.5rem;
  /* noch größere Leiste, damit Logo und Menüpunkte deutlicher sichtbar sind */
  height: 5rem;
}

nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* group logo and theme toggle on the left */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .logo {
  /* Adaptive text sizing for the brand */
  font-size: clamp(1.125rem, 3.8vw, 1.6rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* Größeres Logo, aber passend zur Navigationsleiste */
.nav-container .logo-img {
  height: 72px; /* etwas größer für bessere Sichtbarkeit */
  width: auto;
  display: block;
}

/* Stelle sicher, dass die Logo-Box vertikal zentriert ist */
.nav-container .logo {
  display: flex;
  align-items: center;
}

/* Image logo styling */
.logo-img {
  height: clamp(1.2rem, 3.5vw, 1.8rem);
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  /* größere Linkschrift für bessere Lesbarkeit in der vergrößerten Leiste */
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.6;
}

nav a.active {
  color: var(--accent-color);
  font-weight: var(--font-weight-medium);
}

/* Main Content */
main {
  /* Platz für die fixierte Navigation (muss zur nav.height passen) */
  margin-top: 5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--dark-gray);
  margin-bottom: 3rem;
  font-weight: var(--font-weight-light);
  max-width: 600px;
}

.hero-image {
  /* Breiteres, gestrecktes Hero-Bild mit deutlich weniger grauem Rand */
  width: clamp(320px, 92%, 1200px);
  height: 520px; /* etwas höher, damit das Bild stärker gestreckt wirkt */
  background-color: var(--light-gray);
  border-radius: 12px;
  /* weniger Abstand über dem Bild, aber mehr Abstand darunter (zwischen Bild und H1) */
  margin-top: 1.5rem;
  margin-bottom: 2.5rem; /* vergrößerter Abstand zwischen Bild und 'Ulmer Kebap' */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  font-size: 0.875rem;
  text-align: center;
  /* deutlich weniger Innenabstand, damit das Bild näher an den Rändern sitzt */
  padding: 0;
  overflow: hidden;
}

/* Hero-Bild auf der Startseite höher und als cover darstellen */
.hero .hero-image {
  /* Feinabstimmung für das Hero-Layout (überschreibt evtl. generische Werte)
     Höhe bleibt bewusst etwas größer für einen gestreckten Look */
  height: 520px;
  overflow: hidden;
}

.hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* füllt den Bereich, ohne weiße Ränder */
  /* Mehr vom unteren Bildbereich anzeigen (zentriert horizontal, ca. 65% vertikal)
     Passe den zweiten Wert (z.B. 60% - 75%) an, falls du mehr oder weniger vom unteren
     Bereich sehen möchtest. */
  object-position: center 85%;
  display: block;
  border-radius: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: #e55a28;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--medium-gray);
  transform: translateY(-2px);
}

/* Section */
section {
  padding: 5rem 0;
}

section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: -0.5px;
}

section p {
  font-size: 1rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

/* Category image figure */
.category-figure {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
}

.category-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.menu-disclaimer {
  font-size: 0.75rem;
  color: var(--dark-gray);
  margin-top: 0.5rem;
}

/* Instagram Feed Section */
.instagram-section {
  background-color: var(--light-gray);
  padding: 5rem 0;
}

/* Order methods (Bestellung) */
.order-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.order-method {
  /* Use light-gray so the card switches correctly between light/dark themes
     (var(--light-gray) is light in default theme and dark in dark theme). */
  background-color: var(--light-gray);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  color: var(--text-color);
}

.order-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
}

.order-method-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 64px;
  object-fit: contain;
  display: block;
}

/* Contact links (Telefon, E-Mail) — black in light mode, theme-aware in dark mode */
.contact-link {
  color: #000; /* schwarz im hellen Modus */
  text-decoration: none;
}

body.dark .contact-link {
  color: var(--text-color); /* passt sich dem dunklen Theme an */
}

/* Full-width Instagram container */
.instagram-container-full {
  max-width: 100%;
  padding: 0;
}

.instagram-embed-wrapper {
  width: 100%;
  /* Maintain reasonable height; adjust as needed */
  min-height: 600px;
  display: block;
}

.instagram-embed {
  width: 100%;
  height: 100%;
}

/* Instagram (index page) */
.instagram-container {
  max-width: 600px;
  margin: 5rem auto;
  text-align: center;
}

#instaEmbed {
  display: flex;
  justify-content: center;
  align-items: center;
}

#instaEmbed .instagram-media,
#instaEmbed iframe {
  max-width: 540px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* Maps Section */
.maps-section {
  background-color: var(--light-gray);
  padding: 5rem 0;
}

.maps-container-full {
  max-width: 100%;
  padding: 0;
}

.maps-embed-wrapper {
  width: 100%;
  /* Maintain 3:1 aspect ratio for the map */
  aspect-ratio: 3 / 1;
}

.maps-embed {
  width: 100%;
  height: 100%;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.instagram-post {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.instagram-post-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

.instagram-post-caption {
  padding: 1.5rem;
  border-top: 1px solid var(--medium-gray);
}

.instagram-post-caption p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.instagram-post-date {
  font-size: 0.75rem;
  color: var(--medium-gray);
  margin-top: 0.5rem;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.menu-card {
  background-color: var(--light-gray);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.menu-card:hover {
  background-color: var(--medium-gray);
}

.menu-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: var(--medium-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  font-size: 0.875rem;
}

.menu-card-content {
  padding: 2rem;
}

.menu-card-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
}

.menu-card-description {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.menu-card-price {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--accent-color);
}

/* Order Section */
.order-section {
  background-color: var(--light-gray);
  padding: 5rem 0;
  border-radius: 20px;
  margin: 5rem 0;
}

.order-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.order-method {
  background-color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.order-method:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.order-method-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.order-method h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.order-method p {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.order-method .btn {
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 4rem 1.5rem;
  margin-top: 5rem;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

footer h4 {
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.75rem;
}

footer a {
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--dark-gray);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  .hero {
    height: auto;
    min-height: 600px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

  section {
    padding: 3rem 0;
  }

  section h2 {
    font-size: 1.75rem;
  }

  .menu-grid,
  .order-methods {
    grid-template-columns: 1fr;
  }

  footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer ul,
  footer a {
    text-align: center;
  }
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
  .nav-container .logo-img { height: 48px; }
  .hero .hero-image { height: 260px; }
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Utilities */
.no-wrap {
  white-space: nowrap;
}
