/* ─── Recipes View — 1:1 match original MealBuddy ──────────────────────── */

.list-section {
  padding: var(--sp-4) var(--sp-4) 0;
}
.list-section + .list-section { padding-top: var(--sp-3); }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding: var(--sp-3) 0 var(--sp-2);
  padding-left: var(--sp-3);
  border-left: 2.5px solid var(--clay);
  opacity: 0.7;
}

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
}

/* ─── Recipe Card ─────────────────────────────────────────────────────── */
.recipe-card {
  background: var(--s1);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-base), transform var(--t-fast);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  width: 100%;
  text-align: left;
  position: relative;
}
.recipe-card:hover  { background: var(--s2); box-shadow: var(--shadow-card-hover); }
.recipe-card:active { background: var(--s2); transform: scale(0.99); box-shadow: var(--shadow-card); }
.recipe-card:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* Thumb */
.recipe-card__thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  background: var(--thumb-color, var(--clay));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 3px rgba(0,0,0,.14);
  letter-spacing: -0.02em;
}
.recipe-card__thumb--photo { padding: 0; overflow: hidden; }
.recipe-card__thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card__body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.recipe-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--sp-2);
}

.recipe-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.recipe-card__meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--s2);
  color: var(--ink-secondary);
}

.recipe-card__meta-badge svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.7;
}

.recipe-card__meta-badge--accent {
  background: color-mix(in srgb, var(--thumb-color, var(--clay)) 14%, transparent);
  color: var(--thumb-color, var(--clay));
  filter: brightness(0.85);
}

.recipe-card__source {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 3px 6px;
  border-radius: var(--r-pill);
  background: var(--s2);
}

/* Tags on recipe card */
.recipe-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.recipe-card__tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--sage) 18%, transparent);
  color: color-mix(in srgb, var(--sage) 80%, var(--ink));
  white-space: nowrap;
}

/* Review dot on card */
.recipe-card__review-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4983a;
  flex-shrink: 0;
  align-self: center;
}

/* ─── Favorite Heart ───────────────────────────────────────────────────── */
.recipe-card__favorite {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--s2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast), background var(--t-fast);
  z-index: 1;
}
.recipe-card__favorite:hover {
  background: var(--s3);
  transform: scale(1.08);
}
.recipe-card__favorite:active {
  transform: scale(0.95);
}
.recipe-card__favorite svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink-muted);
  fill: transparent;
  transition: stroke var(--t-fast), fill var(--t-fast);
}
.recipe-card__favorite--active svg {
  stroke: var(--favorite);
  fill: var(--favorite);
}
.recipe-card__favorite--active {
  background: var(--favorite-subtle);
}

/* Pulse animation on toggle */
@keyframes favoritePulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.recipe-card__favorite--pulse {
  animation: favoritePulse 300ms ease-out;
}

/* Card needs position relative for favorite button */
.recipe-card {
  position: relative;
}

/* ─── Favorites Section ────────────────────────────────────────────────── */
.favorites-section {
  padding: var(--sp-4) var(--sp-4) 0;
}
.favorites-section__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
  color: var(--favorite);
}
.favorites-section__header svg {
  width: 16px;
  height: 16px;
  fill: var(--favorite);
}
.favorites-section__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.favorites-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-4) var(--sp-4) 0;
}

/* ─── Filter Bottom Sheet ─────────────────────────────────────────────── */
.filter-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: transparent;
  transition: background var(--t-slow);
}
.filter-sheet-backdrop--open { background: var(--backdrop); }

.filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 51;
  background: var(--s0);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-modal);
  padding-bottom: calc(var(--safe-bottom) + var(--sp-4));
  max-height: 72dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform var(--t-slow);
}
.filter-sheet--open { transform: translateY(0); }

.filter-sheet__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 28px;
  margin: var(--sp-2) auto 0;
  padding: 0;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-muted);
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
}
.filter-sheet__handle::before {
  content: '';
  width: 36px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--s3);
  transition: transform var(--t-fast), background var(--t-fast);
}
.filter-sheet__handle:hover::before,
.filter-sheet__handle:focus-visible::before,
.filter-sheet__handle:active::before {
  background: var(--ink-muted);
  transform: scaleX(1.08);
}
.filter-sheet__handle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.filter-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-5) var(--sp-3);
  flex-shrink: 0;
}
.filter-sheet__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.filter-sheet__reset {
  font-size: 0.875rem;
  color: var(--clay);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: none;
  background: none;
  transition: background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.filter-sheet__reset:hover { background: var(--clay-subtle); }
.filter-sheet__reset:disabled { color: var(--ink-muted); cursor: default; }
.filter-sheet__reset:disabled:hover { background: none; }

.filter-sheet__chips {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--sp-4) var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-content: flex-start;
  scrollbar-width: none;
}
.filter-sheet__chips::-webkit-scrollbar { display: none; }

.fs-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--s3);
  background: var(--s1);
  color: var(--ink-secondary);
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  min-height: 38px;
}
.fs-chip:hover { border-color: var(--ink-muted); color: var(--ink); }
.fs-chip--on {
  background: color-mix(in srgb, var(--sage) 16%, transparent);
  border-color: var(--sage);
  color: color-mix(in srgb, var(--sage) 85%, var(--ink));
}

.filter-sheet__footer {
  padding: var(--sp-3) var(--sp-4) 0;
  flex-shrink: 0;
  border-top: 1px solid var(--s2);
}

/* ─── Review Banner ───────────────────────────────────────────────────── */
.review-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-4) var(--sp-4) 0;
  padding: var(--sp-4);
  background: #fef6e0;
  border: 1px solid #e8c96a;
  border-left: 4px solid #c4983a;
  border-radius: var(--r-lg);
  box-shadow: 0 2px 8px rgba(196,152,58,.15), 0 1px 3px rgba(44,36,23,.08);
  cursor: pointer;
  width: calc(100% - 32px);
  box-sizing: border-box;
  text-align: left;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.review-banner:hover {
  background: #fcefc8;
  box-shadow: 0 4px 14px rgba(196,152,58,.22), 0 1px 3px rgba(44,36,23,.08);
}
.review-banner:active { transform: scale(0.985); }

.review-banner__icon {
  flex-shrink: 0;
  color: #b07800;
}
.review-banner__text { flex: 1; min-width: 0; }
.review-banner__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #6b4500;
  line-height: 1.3;
}
.review-banner__sub {
  font-size: 0.8125rem;
  color: #9a6a00;
  margin-top: 2px;
}
.review-banner__arrow {
  color: #c4983a;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ─── Recipe Photo — Card Thumb ───────────────────────────────────────────── */
.recipe-card__thumb--photo {
  padding: 0;
  overflow: hidden;
}
.recipe-card__thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* ─── Recipe Photo — Modal Hero ───────────────────────────────────────────── */
.modal-recipe-hero--photo {
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-4);
  overflow: hidden;
  position: relative;
  display: block;
  padding: 0;
  background: none;
}
.modal-recipe-hero--photo .modal-recipe-hero__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.modal-recipe-hero--photo .modal-recipe-hero__body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  background: color-mix(in srgb, var(--hero-color, var(--clay)) 8%, var(--s0));
}
.modal-recipe-hero--photo .modal-recipe-hero__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: var(--sp-2);
}
.modal-recipe-hero--photo .modal-recipe-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.modal-recipe-hero--photo .modal-recipe-hero__close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  background: var(--surface-glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* ─── Photo Upload Field ──────────────────────────────────────────────────── */
.photo-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.photo-field__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.photo-field__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1.5px dashed var(--s3);
  background: var(--s1);
  color: var(--ink-muted);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  width: 100%;
}
.photo-field__add-btn:hover,
.photo-field__add-btn:active {
  background: var(--s2);
  border-color: var(--ink-muted);
  color: var(--ink-secondary);
}
.photo-field__preview-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  line-height: 0;
}
.photo-field__preview-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: var(--r-md);
}
.photo-field__remove {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-glass);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background var(--t-fast), transform var(--t-fast);
}
.photo-field__remove:hover  { background: var(--s1); }
.photo-field__remove:active { transform: scale(0.9); }
.photo-field__remove:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ─── Ingredient Row ─────────────────────────────────────────────────────── */
.ing-row {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-2);
  transition: height 0.25s ease-out, opacity 0.25s ease-out, margin 0.25s ease-out, padding 0.25s ease-out;
}
.ing-row--removing { overflow: hidden; }
.ing-row__delete-zone {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--error);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 1;
}
.ing-row--swiped .ing-row__delete-zone { background: #dc2626; }
.ing-row__swipe {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--s2);
  border-radius: var(--r-md);
  will-change: transform;
}
.ing-row__content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.ing-row__secondary { display: flex; gap: var(--sp-2); flex-shrink: 0; }
.ing-row__name { flex: 1; min-width: 0; }
.ing-row__amount { width: 64px; flex-shrink: 0; }
.ing-row__unit { width: 64px; flex-shrink: 0; }
.ing-row__delete {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.ing-row__delete:hover { color: var(--error); background: var(--danger-bg); }
.ing-row__delete:active { transform: scale(0.92); }

@media (min-width: 600px) {
  .ing-row__delete-zone { display: none; }
  .ing-row__delete {
    opacity: 0;
    transition: opacity var(--t-fast), background var(--t-fast);
  }
  .ing-row:hover .ing-row__delete,
  .ing-row:focus-within .ing-row__delete { opacity: 1; }
}
@media (max-width: 599px) {
  .ing-row__delete { display: none; }
  .ing-row__swipe::after {
    content: '';
    position: absolute;
    right: var(--sp-2); top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 24px;
    background: var(--ink-muted);
    opacity: 0.3;
    border-radius: 2px;
  }
}

/* ─── Duplicate Banner ───────────────────────────────────────────────────── */
.dup-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
  border-radius: var(--r-sm);
  background: var(--must-subtle);
  color: var(--mustard);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.dup-banner svg { flex-shrink: 0; stroke: var(--mustard); }
.dup-banner--inline { margin-top: var(--sp-1); margin-bottom: 0; }

/* ─── Title Suggestion Chip (Import) ─────────────────────────────────────── */
.title-suggestion {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
  background: var(--s1);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.title-suggestion:hover { background: var(--s2); color: var(--ink); border-color: var(--clay); }
.title-suggestion:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-color: var(--clay); }
.title-suggestion svg { flex-shrink: 0; color: var(--clay); }

/* ─── Import Tabs ────────────────────────────────────────────────────────── */
.import-tabs {
  display: flex;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}
.import-tab {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--s0);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.import-tab:hover { background: var(--s1); }
.import-tab--active {
  background: var(--clay-subtle);
  color: var(--clay);
  border-color: var(--clay);
}

/* ─── Paprika Import Preview ──────────────────────────────────────────────── */
.paprika-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--s3);
  border-radius: var(--r-md);
  padding: var(--sp-2);
}
.paprika-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast);
}
.paprika-item:hover { background: var(--s1); }
.paprika-item__check { flex-shrink: 0; accent-color: var(--clay); width: 16px; height: 16px; cursor: pointer; }
.paprika-item__name  { flex: 1; font-size: 0.9375rem; line-height: 1.3; }
.paprika-item__meta  { font-size: 0.8125rem; color: var(--ink-muted); white-space: nowrap; }
.paprika-item__warn  {
  display: inline-block;
  margin-left: var(--sp-1);
  font-size: 0.75rem;
  color: #9a6b00;
  background: #fdf0cc;
  border-radius: var(--r-sm);
  padding: 1px 5px;
}
.paprika-item--dup { opacity: 0.6; }
.paprika-item__dup {
  display: inline-block;
  margin-left: var(--sp-1);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--mustard);
  background: var(--must-subtle);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  vertical-align: middle;
}

/* ─── Duplikat-Warnung ────────────────────────────────────────────────────── */
.dup-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
  border-radius: var(--r-sm);
  background: var(--must-subtle);
  color: var(--mustard);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.dup-banner svg { flex-shrink: 0; stroke: var(--mustard); }
.dup-banner--inline { margin-top: var(--sp-1); margin-bottom: 0; }

/* ─── Paprika Import Success Screen ──────────────────────────────────────── */
.paprika-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0 var(--sp-1);
  text-align: center;
}
.paprika-success__check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage-subtle);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}
.paprika-success__title { font-size: 1rem; font-weight: 600; color: var(--ink); }
.paprika-success__sub { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.5; max-width: 300px; }
.paprika-success__actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); width: 100%; }
.paprika-success__actions .btn { flex: 1; }

/* ─── Import Hint (Instagram etc.) ───────────────────────────────────────── */
.import-hint {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-top: calc(-1 * var(--sp-1));
  margin-bottom: var(--sp-1);
}
.import-hint svg { flex-shrink: 0; margin-top: 1px; }
.import-hint--instagram {
  background: #fdf1fb;
  color: #8a2387;
  border: 1px solid #e0aada;
}

/* ─── Titel-Vorschlag-Chip (Import) ──────────────────────────────────────── */
.title-suggestion {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
  background: var(--s1);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.title-suggestion:hover { background: var(--s2); color: var(--ink); border-color: var(--clay); }
.title-suggestion:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-color: var(--clay); }
.title-suggestion svg { flex-shrink: 0; color: var(--clay); }

.recipe-card__review-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4983a;
  flex-shrink: 0;
  align-self: center;
}

/* ─── Skeleton Loading ────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-line {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--s2) 25%, var(--s3) 50%, var(--s2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-card {
  background: var(--s1);
  border-radius: var(--r-lg);
  border: 1px solid var(--s3);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.skeleton-line--title { height: 17px; width: 60%; }
.skeleton-line--meta  { height: 22px; width: 42%; border-radius: var(--r-pill); }

/* ══════════════════════════════════════════════════════════════════════════════
   COOKING VIEW — Kochbuch-Style Focus Mode
   Warme Ästhetik, große Touch-Targets, Zutaten abhaken
   ══════════════════════════════════════════════════════════════════════════════ */

/* Kochbuch-Farbpalette */
.cooking-view {
  --cv-cream: #faf8f5;
  --cv-cream-warm: #f5f0e8;
  --cv-paper: #fffdf9;
  --cv-border: rgba(180, 160, 140, 0.2);
  --cv-border-strong: rgba(180, 160, 140, 0.35);
  --cv-ink: #3d3329;
  --cv-ink-muted: #8a7e70;
  --cv-accent: #c17f59;
  --cv-accent-soft: rgba(193, 127, 89, 0.12);
  --cv-check: #5a8a5d;
  --cv-check-soft: rgba(90, 138, 93, 0.12);
}

.cooking-view {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cv-cream);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.cooking-view--open {
  opacity: 1;
  transform: translateY(0);
}
.cooking-view--closing {
  opacity: 0;
  transform: translateY(20px);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.cooking-view__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  padding-top: calc(var(--safe-top) + var(--sp-4));
  background: var(--cv-paper);
  border-bottom: 1px solid var(--cv-border);
  flex-shrink: 0;
}
.cooking-view__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cv-ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cooking-view__servings {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cv-ink-muted);
  background: var(--cv-cream-warm);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  border: 1px solid var(--cv-border);
}
.cooking-view__close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cv-cream-warm);
  border: 1px solid var(--cv-border);
  color: var(--cv-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.cooking-view__close:hover { background: var(--cv-border-strong); }
.cooking-view__close:active { transform: scale(0.92); }
.cooking-view__close:focus-visible {
  outline: 2px solid var(--cv-accent);
  outline-offset: 2px;
}

/* ─── Swipe Pill Switch (Mobile) ─────────────────────────────────────────── */
.cooking-view__tabs {
  display: flex;
  justify-content: center;
  padding: var(--sp-2) var(--sp-4);
  background: var(--cv-cream);
  flex-shrink: 0;
}
.cooking-tab-pills {
  display: inline-flex;
  background: var(--cv-border);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.cooking-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: var(--r-pill);
  background: transparent;
  border: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cv-ink-muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.cooking-tab:active { transform: scale(0.95); }
.cooking-tab--active {
  background: var(--cv-paper);
  color: var(--cv-ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.cooking-tab svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  display: none; /* Icons verstecken für kompaktes Design */
}

/* Progress badge in tab */
.cooking-progress {
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--cv-cream-warm);
  padding: 1px 6px;
  border-radius: var(--r-pill);
  margin-left: 4px;
  color: var(--cv-ink-muted);
}
.cooking-tab--active .cooking-progress {
  background: var(--cv-accent-soft);
  color: var(--cv-accent);
}
.cooking-progress--complete {
  background: var(--cv-check-soft) !important;
  color: var(--cv-check) !important;
}

/* ─── Swipe Hint ─────────────────────────────────────────────────────────── */
.cooking-view__swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  font-size: 0.75rem;
  color: var(--cv-ink-muted);
  transition: opacity 0.3s ease-out;
}
.cooking-view__swipe-arrow {
  font-size: 0.875rem;
  opacity: 0.5;
}

/* ─── Body wrapper for split view ────────────────────────────────────────── */
.cooking-view__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── Content Area ───────────────────────────────────────────────────────── */
.cooking-view__content {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}
.cooking-view__panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  background: var(--cv-cream);
}
.cooking-view__panel--active {
  opacity: 1;
  pointer-events: auto;
}

/* Panel header */
.cooking-panel-header {
  display: none; /* Hidden on mobile, shown on desktop split */
}
.cooking-panel-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cv-ink);
  margin: 0 0 var(--sp-3);
}
.cooking-panel-progress {
  font-size: 0.8125rem;
  color: var(--cv-ink-muted);
}
.cooking-panel-progress--complete {
  color: var(--cv-check);
}

/* ─── Ingredients List with Checkboxes ───────────────────────────────────── */
.cooking-ingredients {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 540px;
  margin: 0 auto;
}
.cooking-ingredient {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  min-height: 56px;
  background: var(--cv-paper);
  border-radius: var(--r-md);
  border: 1px solid var(--cv-border);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.cooking-ingredient:hover {
  background: var(--cv-cream-warm);
}
.cooking-ingredient:active {
  transform: scale(0.99);
}

/* Checkbox button */
.cooking-ingredient__check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--cv-border-strong);
  background: var(--cv-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.cooking-ingredient__check-icon {
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity var(--t-fast);
  stroke: #fff;
}
.cooking-ingredient:hover .cooking-ingredient__check {
  border-color: var(--cv-accent);
}

/* Checked state */
.cooking-ingredient--checked .cooking-ingredient__check {
  background: var(--cv-check);
  border-color: var(--cv-check);
}
.cooking-ingredient--checked .cooking-ingredient__check-icon {
  opacity: 1;
}
.cooking-ingredient--checked .cooking-ingredient__name {
  text-decoration: line-through;
  color: var(--cv-ink-muted);
}
.cooking-ingredient--checked .cooking-ingredient__amount {
  color: var(--cv-ink-muted);
}
.cooking-ingredient--checked {
  opacity: 0.7;
}

.cooking-ingredient__name {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--cv-ink);
  line-height: 1.4;
  flex: 1;
  transition: color var(--t-fast);
}
.cooking-ingredient__amount {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cv-accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-fast);
}

/* ─── Instructions ───────────────────────────────────────────────────────── */
.cooking-instructions {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--sp-2);
}
.cooking-instructions__text {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--cv-ink);
  white-space: pre-wrap;
}
.cooking-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.cooking-step {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--cv-ink);
  min-height: 40px;
}
.cooking-step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cv-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Navigation Footer (hidden on mobile — swipe is primary) ─────────────── */
.cooking-view__nav {
  display: none; /* Hidden on mobile, swiping is the interaction */
}
.cooking-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  min-height: 56px;
  border-radius: var(--r-md);
  background: var(--cv-cream-warm);
  border: 1px solid var(--cv-border);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cv-ink);
  cursor: pointer;
  transition: background var(--t-fast), opacity var(--t-fast), transform var(--t-fast);
  min-width: 130px;
  justify-content: center;
}
.cooking-nav-btn:hover:not(:disabled) { background: var(--cv-border-strong); }
.cooking-nav-btn:active:not(:disabled) { transform: scale(0.97); }
.cooking-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cooking-nav-btn svg {
  flex-shrink: 0;
}
.cooking-nav-dots {
  display: flex;
  gap: var(--sp-2);
}
.cooking-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cv-border-strong);
  transition: background var(--t-fast), transform var(--t-fast);
}
.cooking-nav-dot--active {
  background: var(--cv-accent);
  transform: scale(1.2);
}

/* ══════════════════════════════════════════════════════════════════════════════
   DESKTOP: Split-View — Kochbuch aufgeschlagen
   ══════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .cooking-view__header {
    padding: var(--sp-5) var(--sp-6);
  }
  .cooking-view__title {
    font-size: 1.5rem;
  }
  
  /* Hide tabs on desktop — both panels visible */
  .cooking-view__tabs {
    display: none;
  }
  .cooking-view__swipe-hint {
    display: none;
  }
  
  /* Hide nav footer on desktop */
  .cooking-view__nav {
    display: none;
  }
  
  /* Split view body */
  .cooking-view__body {
    flex-direction: row;
  }
  
  /* Content becomes split panes */
  .cooking-view__content {
    display: flex;
    flex-direction: row;
    gap: 1px;
    background: var(--cv-border);
  }
  
  /* Both panels always visible */
  .cooking-view__panel {
    position: relative;
    flex: 1;
    opacity: 1;
    pointer-events: auto;
    padding: var(--sp-5);
    background: var(--cv-cream);
    overflow-y: auto;
  }
  
  /* Left panel (ingredients) */
  #cv-panel-ingredients {
    border-right: 1px solid var(--cv-border);
    background: var(--cv-paper);
  }
  
  /* Right panel (instructions) */
  #cv-panel-instructions {
    background: var(--cv-cream);
  }
  
  /* Show panel headers on desktop */
  .cooking-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--cv-border);
  }
  .cooking-panel-title {
    font-size: 1.25rem;
  }
  
  .cooking-ingredients {
    max-width: 100%;
  }
  
  .cooking-ingredient {
    padding: var(--sp-4);
  }
  .cooking-ingredient__check {
    width: 36px;
    height: 36px;
  }
  .cooking-ingredient__check-icon {
    width: 18px;
    height: 18px;
  }
  .cooking-ingredient__name {
    font-size: 1.125rem;
  }
  .cooking-ingredient__amount {
    font-size: 1.0625rem;
  }
  
  .cooking-instructions {
    max-width: 100%;
    padding: 0;
  }
  .cooking-instructions__text {
    font-size: 1.1875rem;
    line-height: 2;
  }
  .cooking-step {
    font-size: 1.125rem;
    padding-left: 60px;
  }
  .cooking-step::before {
    width: 44px;
    height: 44px;
    font-size: 1.0625rem;
  }
}

/* Large desktop: more space */
@media (min-width: 1024px) {
  .cooking-view__panel {
    padding: var(--sp-6);
  }
  .cooking-ingredient {
    padding: var(--sp-4) var(--sp-5);
  }
}

/* ─── Cooking Button Styling ─────────────────────────────────────────────── */
.btn--cooking {
  background: color-mix(in srgb, var(--clay) 12%, transparent);
  color: var(--clay);
}
.btn--cooking:hover {
  background: color-mix(in srgb, var(--clay) 20%, transparent);
}
.btn--cooking svg {
  stroke: var(--clay);
}

