@charset "UTF-8";

/* ============================================================
   recipe.css - Rezept-Detailseite (recipe.tpl)
   Alle Klassen hier sind exklusiv fuer recipe.tpl.
   (.bring-summary* bleibt in app.css, da auch von planner.tpl/
   shopping.tpl genutzt.)
   ============================================================ */

/* -- Rezept-Detailseite -------------------------------------- */

.recipe-hero {
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.recipe-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}

.recipe-hero:hover .recipe-hero__bg { transform: scale(1.02); }

.recipe-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}

.recipe-hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.recipe-hero__cats { display: flex; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }

.recipe-hero__cat {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  color: white;
  font-size: .75rem;
  padding: .25rem .7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}

.recipe-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: white;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* Meta-Leiste */
.recipe-meta-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--light-border);
  transition: var(--transition);
}

.recipe-meta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: var(--text-muted);
}

.recipe-meta-item strong { color: var(--text-main); font-weight: 600; }
.recipe-meta-item .meta-icon { font-size: 1rem; }

.recipe-meta-sep { width: 1px; height: 20px; background: var(--light-border); }

.recipe-rating { display: flex; gap: .15rem; }
.recipe-rating span { font-size: .9rem; cursor: pointer; transition: transform .15s; }
.recipe-rating span:hover { transform: scale(1.2); }

/* Hauptlayout */
.recipe-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Zutaten-Karte */
.ingredients-card {
  background: var(--card-bg);
  border: 1px solid var(--light-border);
  border-radius: 12px;
  padding: 1.75rem;
  position: sticky;
  top: 84px;
  transition: var(--transition);
}

.ingredients-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Portionsrechner */
.servings-control {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg);
  border: 1px solid var(--light-border);
  border-radius: 8px;
  padding: .3rem .5rem;
}

.servings-btn {
  background: none;
  border: none;
  color: var(--terracotta);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 .2rem;
  line-height: 1;
  transition: transform .15s;
  font-weight: 700;
}
.servings-btn:hover { transform: scale(1.2); }

.servings-num {
  font-weight: 600;
  font-size: .9rem;
  min-width: 20px;
  text-align: center;
  color: var(--text-main);
}

.ingredients-group {
  margin-bottom: 1.25rem;
}

.ingredients-group__name {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-subtle);
  margin-bottom: .6rem;
}

.ingredient-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .4rem 0;
  border-bottom: 1px solid var(--light-border);
  font-size: .9rem;
  gap: 1rem;
}
.ingredient-row:last-child { border-bottom: none; }

.ingredient-amount {
  color: var(--terracotta);
  font-weight: 600;
  white-space: nowrap;
  font-size: .85rem;
}

.ingredient-name { color: var(--text-main); }
.ingredient-note { color: var(--text-subtle); font-size: .78rem; font-style: italic; }

/* Aktions-Buttons unter Zutaten */
.recipe-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }

.recipe-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  border: none;
  width: 100%;
  text-align: center;
}

.btn-cook   { background: var(--terracotta); color: white; }
.btn-cook:hover { background: #a85226; }
.btn-bring  { background: #f5eddb; color: #9a7530; border: 1px solid #e0d0a8; }
.btn-bring:hover { background: var(--gold); color: var(--warm-dark); }
.btn-export { background: var(--bg); color: var(--text-main); border: 1.5px solid var(--light-border); }
.btn-export:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-edit   { background: var(--bg); color: var(--text-main); border: 1.5px solid var(--light-border); }
.btn-edit:hover { border-color: var(--sage); color: var(--sage); }

/* Anleitung */
.recipe-instructions { }

.recipe-desc {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 300;
}

.steps-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: start;
}

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.step__body { padding-top: .55rem; }
.step__text { color: var(--text-main); line-height: 1.7; font-size: .95rem; }

.step__timer {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .6rem;
  padding: .3rem .7rem;
  background: #f5e8e0;
  color: var(--terracotta);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all .2s;
}
.step__timer:hover { background: var(--terracotta); color: white; }

/* Tags */
.recipe-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }

/* Notizen */
.recipe-notes {
  margin-top: 2rem;
  padding: 1.25rem;
  background: #f5eddb;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.recipe-notes__title {
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9a7530;
  margin-bottom: .5rem;
}
.recipe-notes__text { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* Aehnliche Rezepte */
.similar-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem 3.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .recipe-layout { grid-template-columns: 1fr; }
  .ingredients-card { position: static; }
  .recipe-actions { flex-direction: row; flex-wrap: wrap; }
  .recipe-action-btn { flex: 1; min-width: 140px; }
  .recipe-hero__title { font-size: 2rem; }
}

@media (max-width: 640px) {
  .recipe-hero { height: 280px; }
  .recipe-hero__title { font-size: 1.6rem; }
  .recipe-hero__content { padding: 1.5rem; }
  .recipe-layout { padding: 1.75rem; gap: 2rem; }
  .recipe-meta-inner { padding: 1rem 1.75rem; gap: 1rem; }
  .recipe-meta-sep { display: none; }
  .similar-section { padding: 0 1.75rem 2.5rem; }
  .recipe-action-btn { flex: none; width: 100%; min-width: 0; }
  .recipe-actions { flex-direction: column; }
}

/* -- Neue Features Detailseite ------------------------------- */

/* Naehrwerte */
.nutrition-card {
  background: var(--card-bg);
  border: 1px solid var(--light-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  transition: var(--transition);
}
.nutrition-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .85rem;
}
.nut-item { }
.nut-label { font-size: .75rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.nut-value { font-size: 1.1rem; font-weight: 600; color: var(--text-main); margin-bottom: .3rem; }
.nut-unit  { font-size: .75rem; font-weight: 400; color: var(--text-muted); }
.nut-kcal  { grid-column: span 2; text-align: center; padding: .75rem; background: var(--bg); border-radius: 8px; margin-bottom: .25rem; }
.nut-kcal .nut-value { font-size: 1.6rem; color: var(--terracotta); }

/* Persoenliche Notizen */
.personal-note {
  margin-top: 1.5rem;
  border: 1.5px solid var(--light-border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}
.personal-note__header {
  padding: .75rem 1rem;
  background: var(--bg);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.personal-note__header:hover { color: var(--terracotta); }
.personal-note textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--text-main);
  background: var(--card-bg);
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.personal-note__save {
  display: block;
  width: 100%;
  padding: .55rem;
  background: none;
  border: none;
  border-top: 1px solid var(--light-border);
  color: var(--terracotta);
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.personal-note__save:hover { background: #f5e8e0; }

/* Kochhistorie */
.cook-history {
  margin-top: 1rem;
  padding: .9rem 1rem;
  background: var(--bg);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--text-muted);
}
.cook-history__title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: .4rem;
  font-size: .82rem;
}
.cook-history__entry {
  display: flex;
  justify-content: space-between;
  padding: .25rem 0;
  border-bottom: 1px solid var(--light-border);
}
.cook-history__entry:last-child { border-bottom: none; }

/* Video-Vorschau */
.video-hint {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  background: var(--bg);
  border: 1.5px solid var(--light-border);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .2s;
  margin-top: .5rem;
}
.video-hint:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* Saison-Badge */
.season-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.season-spring { background: #edf5ec; color: #4a7c49; border: 1px solid #c8ddc7; }
.season-summer { background: #fdf8ec; color: #9a7530; border: 1px solid #e0d0a8; }
.season-autumn { background: #fdf0e8; color: #8a4a20; border: 1px solid #e0c5a8; }
.season-winter { background: #eef2f8; color: #3a5a8a; border: 1px solid #c0cce0; }

/* Allergen-Chips */
.allergen-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.allergen-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .6rem;
  background: #f5e8e0;
  color: var(--terracotta);
  border: 1px solid #e0c5b5;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 500;
}

/* Duplizieren-Button */
.btn-duplicate {
  background: var(--bg);
  color: var(--text-muted);
  border: 1.5px dashed var(--light-border);
}
.btn-duplicate:hover { border-color: var(--sage); color: var(--sage); border-style: solid; }

/* Print-Button */
.btn-print {
  background: var(--bg);
  color: var(--text-muted);
  border: 1.5px solid var(--light-border);
}
.btn-print:hover { border-color: var(--text-muted); color: var(--text-main); }

/* Druckansicht */
@media print {
  nav, .recipe-actions, .action-bar, .similar-section,
  .personal-note, .btn-print, .btn-duplicate,
  .cook-history, footer, .recipe-meta-sep { display: none !important; }

  .recipe-hero { height: 200px; }
  .recipe-layout { grid-template-columns: 250px 1fr; gap: 2rem; padding: 1rem; }
  .ingredients-card { position: static; box-shadow: none; border: 1px solid #ccc; }
  .step-timer { display: none; }
  body { background: white; }
  .recipe-hero__title { font-size: 1.8rem; }
}

/* Bringt!-Zusammenfassung */
.bring-summary {
  background: #f5eddb;
  border: 1px solid #e0d0a8;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.bring-summary__title {
  font-weight: 600;
  font-size: .88rem;
  color: #9a7530;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.bring-summary__items {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.bring-summary__item {
  padding: .25rem .65rem;
  background: white;
  border-radius: 20px;
  font-size: .78rem;
  color: var(--text-main);
  border: 1px solid #e0d0a8;
}

/* -- Rezept-Varianten ---------------------------------- */
.variants-list { display: flex; flex-direction: column; gap: .75rem; }
.variant-item {
  background: var(--bg);
  border: 1px solid var(--light-border);
  border-radius: 10px;
  padding: .75rem 1rem;
}
.variant-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: .25rem;
  font-size: .95rem;
}
.variant-desc { color: var(--text-subtle); font-size: .88rem; line-height: 1.5; }

