/* ================= LOADER ================= */
#loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
  width: 130px;
  height: auto;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ================= GLOBAL ================= */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0faff, #e6f4f1);
  color: #2e2e2e;
}

h1, h2, h3 {
  margin: 0;
}

a {
  text-decoration: none;
}

/* ================= HEADER ================= */
.header {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-logo {
  width: 150px;
  height: auto;
  margin-bottom: 12px;
}

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.menu a {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 20px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.3s, transform 0.2s;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ================= HERO ================= */
.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f0faff, #e6f4f1); /* gleiche wie Body */
}


.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #0072ff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #555;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #0072ff;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #fff;
}



/* ================= GALLERY ================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop: 3 Spalten */
  gap: 20px;
  padding: 40px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  width: 100%;
  text-align: center;
  color: inherit;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInCard 0.6s ease forwards;
}

.card-description {
  display: block;
  font-size: 0.9rem;
  color: #555;
  padding: 0 10px 10px;
  text-align: center;
}


.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card p {
  padding: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

@keyframes fadeInCard {
  to { opacity: 1; transform: translateY(0); }
}

/* Tablet und große Handys: 2 Spalten */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    padding: 30px 15px;
  }
}

/* Kleine Handys: 2 Spalten, kleineres Bild */
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    padding: 20px 10px;
  }
  .card img {
    height: 180px;
  }
}








.recipe-container {
  max-width: 600px;
  margin: 30px auto 50px;
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  color: #2e2e2e;
  font-family: 'Segoe UI', sans-serif;
}

.recipe-container h1 {
  color: #0072ff;
  text-align: center;
  margin-bottom: 20px;
}

.recipe-image {
  width: 100%;
  max-width: 400px;      /* max Breite */
  max-height: 300px;     /* max Höhe */
  object-fit: cover;     /* füllt den Bereich und schneidet ggf. zu */
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto 25px;
}


.recipe-content h2 {
  color: #0072ff;
  margin-bottom: 12px;
  font-weight: 600;
}

.recipe-content ul {
  list-style: inside disc;
  margin-bottom: 25px;
}

.recipe-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}



/* Info-Button */
.info-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0072ff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-weight: bold;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.info-button:hover {
  background-color: #0288a9;
}

/* Modal Hintergrund */
.modal {
  display: none; /* versteckt */
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

/* Modal Inhalt */
.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-size: 1rem;
  color: #333;
  position: relative;
}

/* Schließen-Button */
.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 18px;
  background-color: #0078d4;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.download-btn:hover {
  background-color: #005ea0;
}
.download-btn i {
  margin-right: 8px;
}



/* ================= FOOTER ================= */
.footer {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f0faff, #e6f4f1);
  font-size: 0.9rem;
  color: #666;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .card img {
    width: 180px;
    height: 180px;
  }
}
