:root {
  --main-color: rgba(0, 0, 0, 0); /* Transparenter Hintergrund */
  --accent-color: #3498db;
  --text-color: #000;
  --bg-color: #fff;
  --border-radius: 12px;
  --image-width: 350px; /* Bildbreite hier anpassen */
}

body {
  background-color: var(--main-color);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 20px;
  line-height: 1.6;
  font-size: 18px;
}

/* Allgemeine Bild-Styles mit Hover-Effekt */
img {
  border-radius: 20px;
  transition: transform 0.3s ease-out, filter 0.3s ease-out, box-shadow 0.3s ease-out;
  display: block;
  max-width: 100%;
  height: auto;
}

img:hover {
  transform: scale(1.1);
  filter: brightness(0.9);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Rechts ausgerichtete Bilder */
img.img-right {
  float: right;
  margin-left: 20px;
  width: var(--image-width);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Anpassung für rechts ausgerichtete Bilder */
@media (max-width: 1024px) {
  img.img-right {
    float: none;
    display: block;
    margin: 0 auto 50px;
  }
}

/* Links, Überschriften und Text */
a {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2.5rem;
  color: var(--text-color);
}

h3 {
  font-size: 1.8rem;
  color: var(--text-color);
}

h4 {
  font-size: 1.4rem;
  color: var(--text-color);
}

p, ul, ol {
  margin-bottom: 15px;
}

ul, ol {
  padding-left: 20px;
}

/* Flexbox-Container für die Rezepte */
.rezepte-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

/* Einzelnes Rezept-Element */
.rezept-link {
  position: relative;
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

/* Rezeptbild */
.rezept-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover-Effekt für Rezeptbild */
.rezept-link img:hover {
  transform: scale(1.05);
  filter: brightness(0.95);
}

/* Overlay für den Titel */
.rezept-link .title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-weight: bold;
  padding: 10px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Overlay beim Hover sichtbar machen */
.rezept-link:hover .title-overlay {
  opacity: 1;
}
