:root {
  --overlay-opacity: 0.0;  /* Overlay entfällt, Hintergrund wird fix sichtbar */
  --overlay-warmth: 258;
}

/* -------------------- Grundlayout -------------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Georgia", serif;
  color: #fff;
  background: none;   /* 🔑 wichtig */
}

/* -------------------- Hintergrund -------------------- */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: url("rezept/recette.jpg") no-repeat center center;
  background-size: cover;
  filter: contrast(1.15) saturate(1.2);
  z-index: -2;
}

.background::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(30,30,30,0.4);
  z-index: 0;
}

/* -------------------- Header -------------------- */
.recipe-header {
  background: rgba(70, 70, 70, 0.88);
  color: #fff;
  text-align: center;
  padding: 28px 15px;
}

/* -------------------- Container / Box -------------------- */
.recipe-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 30px 15px;
}

.recipe-box {
  position: relative;
  z-index: 1;
  max-width: 750px;
  background: rgba(50, 50, 50, 0.92);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  color: #fff;
}

.recipe-box h2 {
  margin: 0 0 15px 0;
  font-size: 1.8rem;
  text-align: center;
  color: #fff;
}

/* -------------------- Buttons / Aktionen -------------------- */
.recipe-actions {
  display: flex;             /* Flexbox aktivieren */
  justify-content: center;   /* horizontal zentrieren */
  gap: 12px;                 /* Abstand zwischen Buttons */
  margin: 20px 0;            /* vertikaler Abstand */
  flex-wrap: wrap;           /* falls mobil zu schmal */
}

.print-button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #E2D07A;
  background: #2f2f2f;
  color: #E2D07A;
  transition: all 0.3s ease;
}

.print-button:hover,
.back-link:hover {
  background: #E2D07A;
  color: #2f2f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Für Touch-Geräte ohne Hover */
@media (hover: none) {
  .print-button:hover,
  .back-link:hover {
    transform: none;
    box-shadow: none;
    background: #2f2f2f;
  }
}

/* -------------------- Gerichtsfoto -------------------- */
.recipe-image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 14px;
}

.recipe-image img {
  width: 80%;
  max-width: 500px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* -------------------- Text -------------------- */
.recipe-intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 25px;
}

/* Abschnittsüberschriften */
.recipe-section h3 {
  border-bottom: 2px solid #ccc;
  padding-bottom: 6px;
  margin-bottom: 10px;
  color: #fff;
}

/* Listen */
.recipe-section ul,
.recipe-section ol {
  padding-left: 20px;
  line-height: 1.6;
}

/* -------------------- Hover-Image -------------------- */
.hover-image {
  position: relative;
  cursor: pointer;
  color: #E2D07A;
  font-weight: 600;
  border-bottom: 1px dotted #E2D07A;
}

.hover-image img {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 260px;
  max-width: 90vw;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hover-image:hover img {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px) scale(1);
}

/* Entfernt Unterstreichung / Rahmen / Boxshadow */
.hover-image,
.hover-image * {
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* -------------------- Rezept-Hinweis -------------------- */
.recipe-hint {
  display: block;
  text-align: left;
  background: rgba(47, 47, 47, 0.9);
  color: #fff;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  padding: 10px 14px;
  margin: 16px auto 24px auto;
  max-width: 90%;
  border-radius: 8px;
}

/* Gold für Hinweis */
.hint-gold {
  color: #E2D07A;
  font-weight: 600;
}

/* -------------------- Footer der Box -------------------- */
.recipe-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 20px;
}

/* -------------------- Footer der Seite -------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: #2f2f2f;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-style: italic;
}

.site-footer a {
  color: #E2D07A;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

@media (min-width: 600px) {
  .site-footer .footer-content {
    flex-direction: row;
    justify-content: center;
  }
}

#visitor-counter-footer {
  color: #E2D07A;
  font-weight: 700;
}

/* -------------------- Archiv -------------------- */
.archive-recipes {
  margin-top: 30px;
  text-align: center;
}

.archive-recipes h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #E2D07A;
  padding-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.recipe-archive {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 30px;
}

.recipe-archive li {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  white-space: nowrap;
  margin-bottom: 12px;
  line-height: 1.5;
}

.recipe-archive a {
  color: #E2D07A;
  text-decoration: none;
  font-weight: 600;
}

.recipe-archive a:hover {
  color: #fff;
}

.print-icon {
  margin-left: 6px;
  cursor: pointer;
  color: #E2D07A;
  transition: transform 0.2s ease, color 0.2s ease;
}

.print-icon:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* -------------------- Druck -------------------- */
@media print {
  body {
    background: #fff !important;
    color: #000;
  }

  .recipe-actions,
  .recipe-header,
  .recipe-hint {
    display: none;
  }

  .recipe-box {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
}

/* -------------------- Mobil -------------------- */
@media (max-width: 600px) {
  .recipe-box {
    padding: 20px;
  }

  .recipe-header h1 {
    font-size: 1.6rem;
  }

  .recipe-box h2 {
    font-size: 1.4rem;
  }

  .recipe-image img {
    max-width: 90%;
  }
}

.archiv-link {
  text-align: center;
  margin: 50px 0;
}

.archiv-link a {
  text-decoration: none;
  color: #fff;
  background-color: #626262;
  padding: 12px 25px;
  border-radius: 10px;
  font-style: italic;
  transition: background 0.3s;
}

.archiv-link a:hover {
  background-color: #505050;
}

.archiv-link .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 10px;
  font-style: italic;
  font-weight: 600;
  text-decoration: none;
  color: #E2D07A;           /* Goldschrift standard */
  background-color: #2f2f2f;; /* Grau dunkelgrau */
  border: 2px solid #E2D07A;
  transition: all 0.3s ease;
}

.archiv-link .back-link:hover {
  background-color: #E2D07A; /* Gold Hintergrund */
  color: #2f2f2f;            /* Schwarz Schrift */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Touch-Geräte ohne Hover */
@media (hover: none) {
  .archiv-link .back-link:hover {
    transform: none;
    box-shadow: none;
    background-color: #2f2f2f; /* Grau zurück */
    color: #E2D07A;           /* Gold zurück */
  }
}