/* Rezeptnest v0.9.54 – Kochliste / Planen
 * Keine Regeln für bestehende Kategorien-, Review- oder Kernnavigation-Layouts.
 */

.rn-plan-page-head { margin-bottom: 12px; }
.rn-plan-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  margin: 0 0 16px;
  border-radius: 16px;
  background: #e9efec;
}
.rn-plan-switch button {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.rn-plan-switch button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 3px 12px rgba(38,54,48,.08);
}
.rn-plan-switch svg { width: 17px; height: 17px; }

.rn-cooklist-summary {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  gap: 11px;
  align-items: center;
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid #cfe4de;
  border-radius: 17px;
  background: color-mix(in srgb, var(--primary-soft) 58%, var(--surface));
}
.rn-cooklist-summary > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface);
  color: var(--primary-2);
}
.rn-cooklist-summary > span svg { width: 19px; height: 19px; }
.rn-cooklist-summary > div { min-width: 0; display: grid; gap: 2px; }
.rn-cooklist-summary strong { font-size: 13px; }
.rn-cooklist-summary small { color: var(--text-2); font-size: 10.5px; }

.rn-cooklist-section { margin: 0 0 18px; }
.rn-cooklist-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 9px;
}
.rn-cooklist-section-head > div { min-width: 0; }
.rn-cooklist-section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.rn-cooklist-section-head p { margin: 3px 0 0; color: var(--text-3); font-size: 10.5px; line-height: 1.35; }
.rn-cooklist-section-head > span {
  flex: 0 0 auto;
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-2);
  font-size: 10px;
  font-weight: 800;
}
.rn-cooklist-rows { display: grid; gap: 8px; }
.rn-cooklist-row {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 70px;
  padding: 7px 8px 7px 6px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: opacity .12s ease, transform .12s ease, box-shadow .12s ease;
}
.rn-cooklist-row.is-pinned { border-color: color-mix(in srgb, var(--primary) 28%, var(--border)); }
.rn-cooklist-row.is-dragging { opacity: .72; transform: scale(.99); box-shadow: var(--shadow-md); }
.rn-cooklist-drag {
  width: 34px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-3);
  font-size: 19px;
  font-weight: 700;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.rn-cooklist-drag:active { cursor: grabbing; background: var(--surface-soft); }
.rn-cooklist-open {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.rn-cooklist-thumb {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--primary-2);
}
.rn-cooklist-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rn-cooklist-thumb svg { width: 21px; height: 21px; }
.rn-cooklist-copy { min-width: 0; display: grid; gap: 4px; }
.rn-cooklist-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.25; }
.rn-cooklist-copy small { color: var(--text-3); font-size: 10px; }
.rn-cooklist-row-actions { display: flex; align-items: center; gap: 3px; }
.rn-cooklist-pin,
.rn-cooklist-remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: var(--bg);
  color: var(--text-3);
  cursor: pointer;
}
.rn-cooklist-pin { font-size: 16px; filter: grayscale(1); opacity: .6; }
.rn-cooklist-pin.active { background: var(--primary-soft); filter: none; opacity: 1; }
.rn-cooklist-remove svg { width: 16px; height: 16px; }
.rn-cooklist-section-empty {
  padding: 16px;
  border: 1px dashed #cbdad5;
  border-radius: 16px;
  background: rgba(255,255,255,.46);
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.45;
}
.rn-cooklist-empty-help {
  display: grid;
  gap: 7px;
  margin-top: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.rn-cooklist-empty-help strong { font-size: 14px; }
.rn-cooklist-empty-help span { color: var(--text-2); font-size: 11px; line-height: 1.45; }
.rn-cooklist-empty-help button { margin-top: 3px; }

.rn-cooklist-card-action.active {
  background: var(--primary-soft) !important;
  color: var(--primary-2) !important;
}
.rn-cooklist-card-action svg { width: 17px; height: 17px; }
/* Die drei wichtigsten Rezeptaktionen bleiben oben als kompakte Einheit. */
.detail-actions.rn-plan-detail-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-bottom: 12px;
}
.detail-actions.rn-plan-detail-actions > button {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 12px;
  gap: 5px;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
.detail-actions.rn-plan-detail-actions > button .button-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.rn-cooklist-detail-button.active {
  background: color-mix(in srgb, var(--primary-soft) 70%, var(--surface));
  color: var(--primary-2);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}
[data-rn-cook-toggle][aria-busy="true"] {
  opacity: .58;
  cursor: wait;
}

.rn-cooklist-shortcut {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 17px;
  gap: 10px;
  align-items: center;
  margin: -5px 0 13px;
  padding: 9px 11px;
  border: 1px solid #cfe4de;
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary-soft) 48%, var(--surface));
  color: inherit;
  text-align: left;
  box-shadow: 0 5px 15px rgba(37,91,82,.05);
  cursor: pointer;
}
.rn-cooklist-shortcut > svg:first-child {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary-2);
}
.rn-cooklist-shortcut > span { min-width: 0; display: grid; gap: 1px; }
.rn-cooklist-shortcut strong { font-size: 11.5px; }
.rn-cooklist-shortcut small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 9.5px; }
.rn-cooklist-shortcut > svg:last-child { width: 16px; height: 16px; color: var(--text-3); }

body.rn-cooklist-dragging { user-select: none; }

@media (max-width: 390px) {
  .detail-actions.rn-plan-detail-actions { gap: 5px !important; }
  .detail-actions.rn-plan-detail-actions > button { min-height: 38px; padding: 5px 5px; font-size: 10px; }
  .detail-actions.rn-plan-detail-actions > button .button-icon { width: 14px; height: 14px; }
  .rn-cooklist-row { grid-template-columns: 29px minmax(0,1fr) auto; gap: 4px; padding-right: 6px; }
  .rn-cooklist-drag { width: 29px; }
  .rn-cooklist-open { grid-template-columns: 46px minmax(0,1fr); gap: 8px; }
  .rn-cooklist-thumb { width: 46px; height: 46px; }
  .rn-cooklist-pin, .rn-cooklist-remove { width: 31px; height: 31px; border-radius: 10px; }
}

@media (min-width: 760px) {
  .rn-cooklist-view .rn-cooklist-section { max-width: 780px; }
  .rn-cooklist-summary { max-width: 780px; }
}

/* v0.9.53 – drei nächste Gerichte direkt auf Sammeln */
.rn-home-next-preview {
  margin: -2px 0 14px;
  padding: 12px;
  border: 1px solid #cfe4de;
  border-radius: 18px;
  background: color-mix(in srgb, var(--primary-soft) 42%, var(--surface));
  box-shadow: 0 5px 15px rgba(37,91,82,.04);
}
.rn-home-next-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 1px 9px;
}
.rn-home-next-head > div { min-width: 0; }
.rn-home-next-head span {
  display: block;
  margin-bottom: 1px;
  color: var(--primary-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.rn-home-next-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.rn-home-next-head > button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: var(--primary-2);
  font: inherit;
  font-size: 9.5px;
  font-weight: 750;
  cursor: pointer;
}
.rn-home-next-head > button svg { width: 13px; height: 13px; }
.rn-home-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.rn-home-next-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.rn-home-next-media {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-soft);
  color: var(--primary-2);
}
.rn-home-next-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rn-home-next-media svg { width: 22px; height: 22px; }
.rn-home-next-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 7px 7px 8px;
}
.rn-home-next-copy strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.rn-home-next-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-3);
  font-size: 8.5px;
}

/* Korrekturhilfe nur bei bereits gekochten Rezepten, bewusst dezent. */
.rn-return-testing-action {
  margin: -5px 0 13px;
  padding-left: 2px;
}
.rn-return-testing-action > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
}
.rn-return-testing-action > button svg { width: 14px; height: 14px; }

@media (max-width: 350px) {
  .rn-home-next-preview { padding: 10px; }
  .rn-home-next-grid { gap: 5px; }
  .rn-home-next-copy { padding: 6px; }
  .rn-home-next-copy strong { font-size: 9.5px; }
  .rn-home-next-head > button { font-size: 9px; }
}
