/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.22_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.22_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #fffdf9;
  --fg: #1f2933;
  --muted: #52606d;
  --accent: #d97706;
  --card: #ffffff;
  --border: #e4e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a1f;
    --fg: #f5f7fa;
    --muted: #9aa5b1;
    --accent: #f59e0b;
    --card: #21262d;
    --border: #323a45;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

.status {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

.cards li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.cards h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-header a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-header a:hover {
  color: var(--accent);
}

.site-header .brand {
  font-weight: 700;
}

main h1 {
  margin-top: 0;
}

.cards h2 a {
  color: var(--fg);
  text-decoration: none;
}

.cards h2 a:hover {
  color: var(--accent);
}

/* ---------- Rezept-Detail ---------- */

.recipe-detail .meta {
  color: var(--muted);
  margin: 0.25rem 0;
}

.recipe-detail .lead {
  font-size: 1.05rem;
  max-width: 42rem;
}

.servings-control {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.75rem;
}

.servings-control button {
  /* Mobile-Vorgabe (CLAUDE.md): Tap-Ziele mind. ~44px */
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.ingredients {
  list-style: none;
  padding: 0;
  max-width: 28rem;
}

.ingredients li {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.ingredients .amount {
  min-width: 6rem;
  color: var(--muted);
}

.steps li {
  margin-bottom: 0.75rem;
  max-width: 42rem;
}

/* ---------- Varianten & Duplikat-Warnung ---------- */

.variant-hint {
  color: var(--muted);
  max-width: 42rem;
}

.variant-button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  min-height: 2.75rem;
  line-height: 1.7;
}

.duplicate-warning {
  border: 1px solid var(--accent);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.duplicate-warning h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.duplicate-warning p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.duplicate-warning ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.duplicate-warning li {
  margin-bottom: 0.5rem;
}

.duplicate-warning .variant-link {
  color: var(--accent);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ---------- Bewertungen ---------- */

.rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.rating-input {
  display: inline-flex;
}

.rating .star {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--border);
  cursor: pointer;
  padding: 0.15rem;
  min-width: 2rem;
  min-height: 2.4rem;
}

.rating .star.active {
  color: var(--accent);
}

.rating-static {
  color: var(--accent);
  font-size: 1.3rem;
}

.rating-summary {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Suche & Filter ---------- */

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
}

.filter-main {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-main input[type='search'] {
  flex: 2 1;
  min-width: 12rem;
}

.filter-main select {
  flex: 1 1;
  min-width: 8rem;
}

.filter-form input,
.filter-form select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  min-height: 2.75rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-actions button {
  padding: 0.55rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 2.75rem;
}

.filter-actions a {
  color: var(--muted);
}

.result-count {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Tags ---------- */

.tag-area {
  margin: 0.75rem 0;
}

.tag-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.tag-chip button,
.tag-chip.safety {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 2.4rem;
}

.tag-chip.safety {
  cursor: default;
  border-color: var(--accent);
  color: var(--accent);
}

.tag-chip .votes {
  color: var(--muted);
}

.tag-chip .vote-mark {
  color: var(--accent);
  font-weight: 700;
  margin-left: 0.25rem;
}

.tag-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.tag-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  font-size: 0.95rem !important;
  color: var(--fg) !important;
}

.tag-option input[type='checkbox'] {
  width: 1.2rem;
  height: 1.2rem;
  min-height: 0 !important;
  accent-color: var(--accent);
}

.safety-checklist {
  border: 1px solid var(--accent);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.safety-checklist p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Fotos ---------- */

.hero-photo {
  width: 100%;
  max-width: 42rem;
  max-height: 24rem;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  margin: 1rem 0 0.5rem;
}

.photo-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.photo-strip img {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.card-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.photo-upload {
  margin: 0.75rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.photo-upload-button {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.95rem;
}

.photo-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Rezept-Formular ---------- */

.recipe-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 42rem;
}

.recipe-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.recipe-form input,
.recipe-form select,
.recipe-form textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--fg);
  font: inherit;
}

.recipe-form h2 {
  margin: 1rem 0 0;
  font-size: 1.1rem;
}

.field-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.field-row label {
  flex: 1 1;
  min-width: 8rem;
}

.ingredient-row input:nth-child(1) {
  flex: 0 0 5rem;
}

.ingredient-row input:nth-child(2) {
  flex: 0 0 6rem;
}

.ingredient-row input:nth-child(3) {
  flex: 1 1;
}

.step-row {
  align-items: center;
}

.step-row .step-number {
  color: var(--muted);
  min-width: 1.5rem;
}

.step-row textarea {
  flex: 1 1;
}

.ingredient-row button,
.step-row button {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  border-radius: 0.5rem;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
}

.add-row {
  align-self: flex-start;
  border: 1px dashed var(--border);
  background: none;
  color: var(--accent);
  border-radius: 0.5rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font: inherit;
}

.recipe-form button[type='submit'] {
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}

.recipe-form button[type='submit']:disabled {
  opacity: 0.6;
  cursor: wait;
}

.error {
  color: #dc2626;
}

/* ---------- Auth ---------- */

.auth-status {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  min-height: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-status a {
  color: var(--accent);
}

.auth-status button,
.auth .switch button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.auth {
  max-width: 24rem;
}

.auth h1 {
  margin-bottom: 1.5rem;
}

.google-btn {
  display: block;
  text-align: center;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

.divider {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1.25rem 0;
}

.auth form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth input {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--fg);
  font: inherit;
}

.auth form button[type='submit'] {
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth form button[type='submit']:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth .error {
  margin: 0;
  color: #dc2626;
  font-size: 0.9rem;
}

.auth .switch {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Mobile (CLAUDE.md: „vor allem mobil-optimiert“) ---------- */

@media (max-width: 640px) {
  main {
    padding: 1.25rem 1rem 3rem;
  }

  .site-header {
    padding: 0.75rem 1rem;
  }

  .site-header nav {
    gap: 0.9rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  /* Formulare: volle Breite, große Eingabefelder (kein iOS-Zoom, gute Tap-Ziele) */
  .recipe-form input,
  .recipe-form select,
  .recipe-form textarea,
  .auth input {
    font-size: 1rem;
    min-height: 2.75rem;
  }

  .recipe-form button[type='submit'],
  .auth form button[type='submit'],
  .photo-upload-button,
  .add-row {
    width: 100%;
    text-align: center;
    min-height: 2.75rem;
  }

  .field-row label {
    min-width: calc(50% - 0.4rem);
  }

  .ingredient-row input:nth-child(1) {
    flex: 0 0 4rem;
  }

  .ingredient-row input:nth-child(2) {
    flex: 0 0 4.5rem;
  }

  .ingredient-row button,
  .step-row button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .ingredients .amount {
    min-width: 5rem;
  }

  .hero-photo {
    max-height: 16rem;
  }
}

