/* --- Modal Overlay Orange-Variante --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: none; /* wird per JS auf flex gesetzt */
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 9999;
}

/* Modal Box */
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 99vh;
  overflow-y: auto;
  box-shadow: var(--glow-card);
  position: relative;
  padding: 1.5rem 1.5rem 2rem;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--accent);
}

.modal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-head img {
  width: 150px;
  max-width: 45%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  background: #000;
  object-fit: cover;
}

.modal-titles h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--text);
  /* vorher: rgba(234,179,8,.4) */
  text-shadow: 0 0 12px rgba(245,158,11,.4);
}

.modal-titles .tags-inline {
  margin-top: .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
}
.tags-inline .tag {
  font-size: .7rem;
  line-height: 1.2;
  border-radius: 999px;
  /* vorher: rgba(234,179,8,.4) / .12 */
  border: 1px solid rgba(245,158,11,.4);
  background: rgba(245,158,11,.12);
  color: var(--text);
  padding: .25rem .6rem;
}

.modal-body {
  display: grid;
  gap: 1.5rem;
}
@media(min-width:700px){
  .modal-body {
    grid-template-columns: 1fr 2fr;
  }
}

.zutaten-block h3,
.zubereitung-block h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--accent);
  /* vorher: rgba(234,179,8,.5) */
  text-shadow: 0 0 10px rgba(245,158,11,.5);
}

.zutaten-block ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text);
}

.zubereitung-block ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text);
}

.zubereitung-block li,
.zutaten-block li {
  margin-bottom: .5rem;
}

.scan-hinweis {
  font-size: .8rem;
  line-height: 1.4;
  color: var(--muted);
  /* vorher: rgba(234,179,8,.6) */
  border-left: 3px solid rgba(245,158,11,.6);
  padding-left: .5rem;
  margin-top: 1rem;
}

.footer-hint {
  margin-top: 3rem;
  font-size: .7rem;
  line-height: 1.4;
  color: #475569;
  text-align: center;
}
