* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a5f3f;
  --secondary-color: #2d8659;
  --highlight-color: #aa2831;
  --highlight-darker: #91151b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Georgia", serif;
  line-height: 1.6;
  color: #333;
}

/* Header */
header {
  background: linear-gradient(135deg, #1a5f3f 0%, #2d8659 100%);
  color: white;
  padding: 2rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.logo {
  max-width: 120px;
  height: auto;
  opacity: 0.8;
}

.header-text {
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

header p {
  font-size: 0.9rem;
  font-style: italic;
}

header a {
  display: inline-block;
  cursor: pointer;
}

header a:hover .logo {
  opacity: 0.8;
  transform: scale(1.05);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .logo {
    max-width: 100px;
  }

  header p {
    font-size: 1rem;
  }
}

/* Navigation */
nav {
  background: #ffffff;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #1a5f3f;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--highlight-color);
}

nav a.reservation-link {
  color: var(--highlight-color);
}

nav a.reservation-link:hover {
  color: var(--highlight-color);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #1a5f3f;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* LINKFARBE FÜR PDFS*/
.menu-pdf-link {
  display: inline-block;
  background: var(--highlight-color);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 0.5rem;
}

.menu-pdf-link:hover {
  background: var(--highlight-darker);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-text {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Sections */
section {
  padding: 4rem 1rem;
}

section:nth-child(even) {
  background: #f8f8f8;
}

h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #1a5f3f;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--highlight-color);
}

/* Hero Section */
#home {
  background: url("img/das-ristorante-alitalia.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#home .container {
  background: rgba(45, 99, 70, 0.8);
  padding: 3rem;
  border-radius: 10px;
}

#home h2 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

#home h2::after {
  background: white;
}

#home p {
  font-size: 1.3rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.highlight {
  background: #78a184;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  aspect-ratio: 4/3;
  background: #e0e0e0;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Menu Section */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.menu-category {
  background: rgb(247, 247, 246);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.menu-category:hover {
  transform: translateY(-5px);
}

.menu-category h3 {
  color: #1a5f3f;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--highlight-color);
  padding-bottom: 0.5rem;
}

.menu-category ul {
  list-style: none;
}

.menu-category li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted #ddd;
}

.menu-category li:last-child {
  border-bottom: none;
}

/* Info Boxes */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-box {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.info-box h3 {
  color: #1a5f3f;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.info-box p {
  margin-bottom: 0.8rem;
}

/* Contact Section */
#kontakt {
  background: #1a5f3f;
  color: white;
}

#kontakt h2 {
  color: white;
}

#kontakt h2::after {
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto 0;
  text-align: center;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
}

.contact-item h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-item a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #0d3d27;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

footer p {
  margin: 0.5rem 0;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: var(--highlight-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s;
}

.cta-button:hover {
  background: var(--highlight-darker);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    position: fixed;
    left: -100%;
    top: 73px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
  }

  nav ul.active {
    left: 0;
  }

  nav li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  nav li:last-child {
    border-bottom: none;
  }

  header p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  #home h2 {
    font-size: 2rem;
  }

  #home p {
    font-size: 1.1rem;
  }

  .menu-grid,
  .info-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* Go to Top Button */
.go-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20%;
  width: 35px;
  height: 35px;
  font-size: 16px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.go-to-top:hover {
  background: #a82229;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .go-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}
