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

body {
    font-family: Arial, sans-serif;
    background-color: #f9f4e5;
    color: #6d4b3b;
    line-height: 1.6;
}

header {
    text-align: center;
    margin: 20px 0;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    margin-bottom: 10px;
}

.photo-gallery, .favorites, .upcoming-dates, .wishlist {
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.favorites {
    background-color: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .favorites ul {
    display: flex;               /* Nebeneinander-Layout */
    flex-wrap: wrap;             /* Automatischer Zeilenumbruch */
    gap: 20px;                   /* Abstand zwischen den Items */
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;     /* Zentriert die Items in der Zeile */
  }
  
  .favorites ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;           /* Breite aller Kacheln */
  }
  
  .favorites ul li img {
    width: 300px;           /* feste Breite */
    height: 300px;          /* feste Höhe */
    object-fit: cover;      /* Bild füllt den Rahmen, central crop */
    border-radius: 5px;
    margin-bottom: 10px;
  }
  
  .favorites ul li p {
    text-align: center;
    margin: 0;
    font-size: 1rem;
    color: #333;
  }
  

a {
    margin-left: 10px;
    font-size: 0.9rem;
    color: #ff6347;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #6d4b3b;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

button:hover {
    background-color: #ff6347;
}


.gallery {
    display: flex;
    flex-wrap: wrap;                /* Elemente umbrechen */
    gap: 20px;
    justify-content: center;        /* Zentriert die Zeilen */
  }
  
  .gallery img {
    flex: 1 1 300px;                /* wächst und schrumpft, Basis 300px */
    max-width: 300px;                /* nie breiter als Container */
    height: auto;                   /* hält das Seitenverhältnis */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
  }
  

.gallery img:hover {
    transform: scale(1.1);
}

ul {
    list-style-type: none;
}

ul li {
    margin: 10px 0;
}

ul li input {
    margin-right: 10px;
}

#wishlist input[type="checkbox"]:checked {
    background-color: #6d4b3b;
}

footer {
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Bereits bestehender Code bleibt unverändert */
/* Kalender Navigation */
.calendar-nav {
    text-align: center;
    margin-bottom: 20px;
}

.calendar-nav button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1rem;
    background-color: #6d4b3b;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.calendar-nav button:hover {
    background-color: #ff6347; /* Hover-Effekt */
}

/* Kalender Layout */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 Spalten für die Wochentage */
    gap: 5px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
}

.weekdays span {
    padding: 10px;
}

.day {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f3f3;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.day.highlight {
    background-color: #ff6347; /* Hervorhebung des Muttertags (12. Mai) */
    color: white;
}

.day:hover {
    background-color: #ddd;
}

.empty {
    background-color: transparent;
}
/* Popup für Feiertagsinfo */
.holiday-info-popup {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff6347;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.day {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f3f3;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: relative;
}

.day.holiday {
    background-color: #ff6347; /* Feiertagshervorhebung */
    color: white;
}

.day:hover {
    background-color: #ddd;
}

.empty {
    background-color: transparent;
}

.holiday-info {
    display: none;
    font-size: 12px;
    color: #fff;
}
/* Grundstyle */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f4e5;
    color: #6d4b3b;
}

.vegetable-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.vegetable-card {
    width: 250px;
    height: 350px;
    perspective: 1000px; /* Perspektive für den Flip-Effekt */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.vegetable-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.vegetable-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    transform: rotateY(180deg); /* Flip die Info-Seite */
    backface-visibility: hidden;
    transition: transform 0.5s ease;
}

.vegetable-card:hover .vegetable-image {
    transform: rotateY(180deg); /* Bild dreht sich bei Hover */
}

.vegetable-card:hover .vegetable-info {
    transform: rotateY(0deg); /* Info-Seite wird sichtbar */
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

ul {
    list-style-type: none;
}

ul li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

ul li strong {
    font-weight: bold;
}
/* Header */
header { text-align: center; margin-bottom: 40px; }
header h1 { font-size: 2.5rem; margin-bottom: 10px; }
header p { font-size: 1.1rem; color: #555; }

/* Grid der Projekte */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Jede Karte */
.project {
    padding: 15px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.project:hover { transform: translateY(-5px); }

.project img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.project .info {
  padding: 15px;
}
.project h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.project p { font-size: 0.95rem; color: #555; }

/* Modal (Lightbox) */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.hidden { display: none; }

.modal-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.modal-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 1.1rem;
  text-align: center;
}

.close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 12px;
    font-size: 0.9rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .download-btn:hover {
    background: #45a049;
  }
  
  /* Wenn das Projekt gestapelt werden soll: */
  .project.stacked {
    display: flex;
    flex-direction: column;
  }
  .project.stacked img,
  .project.stacked .info {
    width: 100%;
  }
  