/* Rezeptansicht und Wochenplan: dieselben Farben, größere Bedienflächen. */
.recipe-dialog {
  width: min(940px, calc(100% - 36px));
  max-height: 92dvh;
  overscroll-behavior: contain;
  background: #fbf9f3;
  color: #25372c;
  border-radius: 22px;
}
#recipe-dialog [hidden] { display: none !important; }
.recipe-dialog .dialog-close {
  width: 44px;
  height: 44px;
  margin-bottom: -56px;
  background: #fffdf8;
  color: #244636;
  box-shadow: 0 1px 7px #1d30242b;
}
.recipe-dialog :is(a, button, input):focus-visible, .meal-recipe-link:focus-visible {
  outline: 3px solid #2d674e;
  outline-offset: 3px;
}
.recipe-detail-hero { height: clamp(145px, 27vw, 248px); overflow: hidden; background: #e8ecdf; }
.recipe-detail-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.recipe-detail-content { padding: clamp(16px, 3.5vw, 34px); }
.recipe-detail-header { margin-bottom: 18px; }
.recipe-detail-header .eyebrow { color: #427054; }
.recipe-detail-header h2 {
  margin: 0;
  color: #244636;
  font: 400 clamp(28px, 5vw, 48px)/1.12 'DM Serif Display', Georgia, serif;
  overflow-wrap: anywhere;
}
.recipe-detail-header .detail-title-row { align-items: start; justify-content: space-between; }
.recipe-reading-muted { color: #566359; font-size: .9rem; overflow-wrap: anywhere; margin: 8px 0 0; }
.recipe-detail-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.recipe-detail-tools .button, #recipe-dialog button.button { min-height: 44px; text-align: center; white-space: normal; }
.recipe-detail-tools a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.recipe-cook-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #d5e3d4;
  border-radius: 13px;
  background: #e8f0e3;
}
.recipe-cook-label { margin: 0; font-weight: 650; color: #294a39; }
.recipe-reading-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: start;
}
.recipe-reading-panel {
  min-width: 0;
  padding: clamp(12px, 2.4vw, 22px);
  border: 1px solid #e4e6dc;
  border-radius: 14px;
  background: #fffefa;
}
.recipe-reading-panel h3 {
  margin: 0;
  color: #294a39;
  font: 400 clamp(22px, 3vw, 28px)/1.2 'DM Serif Display', Georgia, serif;
}
.recipe-reading-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.recipe-ingredient-count { color: #536458; font-size: .79rem; }
.recipe-ingredient-list { list-style: none; margin: 10px 0 0; padding: 0; }
.recipe-ingredient-list li + li { border-top: 1px solid #e8eae2; }
.ingredient-heading { padding: 12px 4px 4px; font-weight: 700; overflow-wrap: anywhere; }
.recipe-ingredient {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 4px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.recipe-ingredient input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: #365c49; }
.recipe-ingredient:has(input:checked) { background: #eff4eb; }
.recipe-ingredient input:checked + span { color: #546457; text-decoration: line-through; }
.recipe-reading-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; line-height: 1.65; }
.recipe-reading-notes { margin-top: 14px; }
#recipe-dialog #personal-detail-actions { margin: 0; padding: 0 clamp(16px, 3.5vw, 34px) 22px; }
#recipe-dialog #delete-personal-recipe { color: #8b3730; }
#recipe-dialog.is-cooking .recipe-detail-header { padding-inline-end: 50px; }
#recipe-dialog.is-cooking .recipe-detail-header h2 { font-size: clamp(24px, 4.5vw, 35px); }
#recipe-dialog.is-cooking .recipe-reading-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.recipe-cook-panel { background: #fffdf8; }
.recipe-cook-progress { width: 100%; height: 10px; margin-top: 12px; accent-color: #365c49; }
.recipe-step-text { font-size: clamp(18px, 2.5vw, 22px); }
.recipe-step-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 20px; }
.recipe-step-nav [aria-disabled="true"] { opacity: .55; cursor: default; }
.recipe-step-heading:focus-visible { outline: 2px solid #365c49; outline-offset: 4px; }
.meal-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #e2e8db;
  border-radius: 10px;
  background: #f6f8f1;
}
.meal-row .kitchen-meal { flex: 1 1 140px; min-height: 44px; width: auto; border: 0; background: transparent; }
.meal-row .kitchen-meal:hover, .meal-recipe-link:hover { background: #e8f0e1; }
.meal-recipe-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  margin-inline-start: auto;
  padding: 7px 10px;
  border-radius: 10px;
  color: #244636;
  font-size: .82rem;
  font-weight: 700;
}
@media (max-width: 620px) {
  .recipe-dialog { width: calc(100% - 18px); max-height: 95dvh; border-radius: 16px; }
  .recipe-reading-grid { grid-template-columns: minmax(0, 1fr); }
  #recipe-dialog.is-cooking .recipe-reading-grid { grid-template-columns: minmax(0, 1fr); }
  .recipe-detail-tools .button { flex: 1 1 145px; }
  .recipe-cook-bar .button { flex: 1 1 180px; }
}

:root {
  --recipe-text-secondary: #526157;
  --recipe-target: 44px;
  --recipe-gap: 12px;
  --recipe-focus: #2d674e;
}
#collection-content .quota-label,
#collection-content .quota-number > span,
#collection-content .compact-count .recipe-quota,
#collection-content .ai-feature-note { color: var(--recipe-text-secondary); }
#collection-content .quota-label,
#collection-content .quota-number > span,
#collection-content .compact-count .recipe-quota { font-size: .75rem; }
#collection-content .ai-feature-copy #ai-approval-notice.is-pending { color: #695332; }
.home-shortcuts { display: flex; flex-wrap: wrap; gap: var(--recipe-gap); margin-top: 16px; }
.home-shortcuts .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--recipe-target);
  text-decoration: none;
}
#collection-content .ai-feature.ai-unavailable .ai-feature-main { padding: 18px; }
#collection-content .ai-feature.ai-unavailable { grid-template-columns: minmax(0,1fr); gap: 0; }
#collection-content .ai-feature.ai-unavailable :is(.ai-feature-art, .ai-feature-note) { display: none; }
#collection-content .ai-feature.ai-unavailable .ai-feature-actions { margin-top: 8px; }
#collection-content .ai-feature .ai-manual-link { min-height: var(--recipe-target); }
#app-shell :is(.hamburger-button,.header-account,.nav-close,.nav-cat-toggle,.favorite-toggle) {
  min-height: var(--recipe-target);
  min-width: var(--recipe-target);
}
#app-shell :is(.header-search,.browse-search-context button,.quick-chip) { min-height: var(--recipe-target); }
#app-shell .site-topbar :is(.header-search-wrap,.header-search) { min-width: var(--recipe-target); }
#app-shell :is(.home-shortcuts .button,.browse-search-context button,#retry-recipes):focus-visible {
  outline: 3px solid var(--recipe-focus);
  outline-offset: 3px;
}
.browse-search-context { justify-content: start; gap: 8px; }
.browse-search-context button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.recipe-card .card-open-area { color: inherit; text-decoration: none; }
/* Image overlays keep their own foreground when the link changes state. */
.discovery-tile > .discovery-card { text-decoration: none; }
.discovery-card-content,
.category-tile-overlay {
  color: #fffdf5;
  text-shadow: 0 1px 3px #0c1a12;
}
.discovery-card-content :is(strong, .discovery-card-category, .discovery-card-link),
.category-tile-overlay :is(strong, small) {
  color: inherit;
}
.discovery-card-gradient {
  background: linear-gradient(180deg, #0b160e05 10%, #0d1b137d 40%, #0c1912f5 86%);
}
.category-tile-overlay {
  background: linear-gradient(180deg, transparent, #101f16cc 48%, #101f16f5);
}
#recipe-grid .card-image { height: auto; aspect-ratio: 16 / 10; }
.recipe-image-placeholder {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #fffdf5;
  color: #344638;
  font-size: .75rem;
}
.has-photo .recipe-image-placeholder { display: none; }
#collection-status:not([hidden]) { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; }
#collection-status[hidden], #retry-recipes[hidden] { display: none !important; }
#recipe-dialog.is-cooking .recipe-step-nav {
  position: sticky;
  bottom: 0;
  background: #fffdf8;
  padding-block: 8px;
}
#discovery-heading, #category-home-title { scroll-margin-top: 105px; }
@media (max-width: 620px) {
  #collection-content > .compact-intro { padding-block: 20px 14px; }
  #collection-content .compact-intro .intro-copy h1 { font-size: clamp(32px, 9vw, 46px); }
  .home-shortcuts { gap: 7px; margin-top: 12px; }
  .home-shortcuts .button { padding-inline: 10px; }
  #collection-content .ai-feature.ai-unavailable .ai-feature-main { padding: 14px; }
}

.skip-link {
 position: fixed;
 top: -100px;
 left: 20px;
 z-index: 10000;
 padding: 14px 20px;
 border-radius: 8px;
 background: #173f34;
 color: white;
}
.skip-link:focus { top: 12px; }
#collection-content .ai-feature.ai-unavailable :is(.ai-feature-actions,.ai-feature-copy > .eyebrow,.ai-feature-copy > p:not(#ai-approval-notice)) { display: none; }
#collection-content .ai-feature.ai-unavailable h2 { font-size: 1.2rem; }

body[data-page-kind="favorites"] #browse-heading > div { display: none; }
body[data-page-kind="favorites"] #browse-heading #result-count {
  max-width: none;
  text-align: start;
}
