:root {
  --bg: #f7f5f0;
  --ink: #2b2b28;
  --muted: #6b6a63;
  --card: #ffffff;
  --border: #e2ded4;
}

* { box-sizing: border-box; }

/* WICHTIG: muss vor allen anderen Regeln mit eigenem "display" auf einer
   ID stehen (oder !important haben) -- sonst gewinnt z.B. "#auth-modal-
   backdrop { display: flex }" gegen das "hidden"-Attribut, weil ID-
   Selektoren spezifischer sind als der Browser-Default "[hidden]{display:
   none}". Genau das hat den Login-Dialog faelschlich immer angezeigt. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

header {
  text-align: center;
  padding: 28px 16px 16px;
}

header h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

#element-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 16px 20px;
}

.tab {
  border: 2px solid var(--el-color, #999);
  background: var(--card);
  color: var(--el-color, #333);
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.12s ease;
}

.tab:hover { transform: translateY(-2px); }

.tab.active {
  background: var(--el-color, #999);
  color: #fff;
}

.tab-sub {
  font-weight: 400;
  font-size: 0.72rem;
  opacity: 0.85;
}

#element-info {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 12px;
}

#element-info b { color: var(--ink); }

main#temp-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 12px;
  padding: 0 16px 40px;
  max-width: 1600px;
  margin: 0 auto;
  overflow-x: auto;
}

@media (max-width: 1000px) {
  main#temp-columns {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

.temp-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.temp-col-header {
  padding: 10px 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.03em;
}

.temp-col-body {
  padding: 12px 14px 16px;
  flex: 1;
}

.temp-col-body .category {
  margin-bottom: 12px;
}

.temp-col-body .category:last-child { margin-bottom: 0; }

.category-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.category-items {
  font-size: 0.88rem;
  line-height: 1.45;
}

.temp-col-body:empty::after {
  content: "—";
  color: var(--muted);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 8px 16px 32px;
}

/* ---------- Suche ---------- */

#search-section {
  position: relative;
  max-width: 480px;
  margin: 0 auto 18px;
  padding: 0 16px;
}

#search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--ink);
}

#search-input:focus {
  outline: none;
  border-color: #999;
}

#search-results {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% - 4px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-height: 340px;
  overflow-y: auto;
  z-index: 20;
}

.search-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.search-row:last-child { border-bottom: none; }
.search-row:hover { background: var(--bg); }

.search-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.search-item { font-weight: 600; }

.search-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: auto;
  white-space: nowrap;
}

.search-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Hauptnavigation ---------- */

#main-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}

#main-nav-brand {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

#nav-hamburger {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1;
  padding: 7px 11px;
  cursor: pointer;
}

#main-nav-collapsible {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: space-between;
  flex-wrap: wrap;
}

#main-nav-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.view-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.view-btn:hover {
  background: var(--bg);
}

.view-btn.active {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 640px) {
  #main-nav {
    position: relative;
    flex-wrap: nowrap;
  }

  #nav-hamburger {
    display: block;
  }

  #main-nav-collapsible {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 16px 16px;
  }

  #main-nav-collapsible.open {
    display: flex;
  }

  #main-nav-tabs {
    flex-direction: column;
  }

  #main-nav-tabs .view-btn {
    text-align: left;
    width: 100%;
    border-radius: 8px;
    padding: 10px 14px;
  }
}

/* ---------- Kochmodus ---------- */

#kochmodus-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 8px;
  text-align: center;
}

#kochmodus-intro p {
  color: var(--muted);
  font-size: 0.9rem;
}

#zutaten-input-row {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 12px;
}

#zutat-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

#rezept-keyword-row {
  max-width: 420px;
  margin: 0 auto 16px;
}

#rezept-keyword {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

#zutat-add-btn, #kochmodus-check-btn, #rezepte-btn {
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

#kochmodus-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

#rezepte-btn {
  background: #a67c52;
}

#kochmodus-check-btn:disabled, #rezepte-btn:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.auth-modal-box button:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

#zutaten-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 1px;
}

.chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-remove {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  padding: 2px 6px;
}

#kochmodus-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.element-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.element-card.covered { border-color: #5a9c5a; }
.element-card.missing { border-color: #c0504d; }

.card-title {
  font-weight: 700;
  color: var(--el-color, var(--ink));
  margin-bottom: 6px;
}

.card-geschmack {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.card-status {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.element-card.covered .card-status { color: #5a9c5a; }
.element-card.missing .card-status { color: #c0504d; }

.card-detail {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.5;
}

.card-detail .via {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Rezepte ---------- */

#rezepte-hinweis {
  max-width: 1100px;
  margin: 0 auto 12px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

#rezepte-hinweis p {
  margin: 4px 0;
}

.rezepte-herkunft {
  font-style: italic;
  opacity: 0.8;
}

.account-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 14px;
}

.account-hint a {
  color: #4f8fa6;
}

#api-key-current {
  font-size: 0.85rem;
  margin: 0 0 12px;
}

#rezepte-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.rezept-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rezept-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.rezept-body {
  padding: 12px 14px 16px;
}

.rezept-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.rezept-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.rezept-row {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.zutat-hat {
  color: #4a7a4a;
}

.zutat-fehlt {
  color: #a5453f;
}

.rezept-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #4f8fa6;
  text-decoration: none;
}

.rezept-link:hover {
  text-decoration: underline;
}

.tcm-tipp-btn {
  display: block;
  margin-top: 10px;
  padding: 6px 10px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: inherit;
  cursor: pointer;
}

.tcm-tipp-btn:hover {
  background: var(--border);
}

.tcm-tipp-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.tcm-tipp-ergebnis {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.82rem;
}

.tcm-tipp-zeile {
  margin: 4px 0;
}

.tcm-tipp-fehler {
  color: var(--muted);
  margin: 0;
}

#rezepte-mehr-wrapper {
  display: flex;
  justify-content: center;
  margin: 18px 0 30px;
}

#rezepte-mehr-btn {
  padding: 10px 22px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: inherit;
  cursor: pointer;
}

#rezepte-mehr-btn:hover {
  background: var(--border);
}

#rezepte-mehr-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

#rezepte-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto 14px;
  padding: 0 16px;
}

#rezepte-filter select, #rezepte-search {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--card);
  min-width: 0;
}

#rezepte-search {
  flex: 1 1 220px;
  max-width: 320px;
}

@media (max-width: 640px) {
  #rezepte-filter {
    flex-direction: column;
    align-items: stretch;
  }

  #rezepte-filter select, #rezepte-search {
    max-width: none;
    width: 100%;
    flex: none;
  }
}

.badge-element {
  display: inline-block;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
}

.badge-element-muted {
  background: var(--border) !important;
  color: var(--muted) !important;
}

.aufwand-tag {
  font-style: italic;
}

/* ---------- Verifizierungs-Reminder-Banner ---------- */

#unverified-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #fbf0d9;
  color: #7a5c14;
  padding: 10px 16px;
  font-size: 0.85rem;
  text-align: center;
}

:root[data-theme="dark"] #unverified-banner,
:root:not([data-theme="light"]) #unverified-banner {
  background: rgba(214, 158, 46, 0.15);
  color: #d69e2e;
}

#unverified-banner .icon-btn {
  white-space: nowrap;
}

#unverified-banner-close {
  border: none;
  background: none;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

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

#auth-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  #auth-bar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 10px;
  }

  #auth-bar button {
    width: 100%;
  }

  #auth-status {
    margin: 0 0 4px;
  }
}

#auth-status {
  color: var(--muted);
  margin-right: 4px;
}

#auth-bar button {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ---------- Hintergrund-Seite ---------- */

#view-hintergrund {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.hg-section {
  margin-bottom: 32px;
}

.hg-section h2 {
  font-size: 1.3rem;
  margin: 0 0 12px;
}

.hg-section h3 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.hg-section p {
  line-height: 1.55;
  color: var(--ink);
}

.hg-section a {
  color: #4f8fa6;
}

#hg-elemente-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.hg-card {
  border: 2px solid var(--el-color, #999);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--card);
}

.hg-card-title {
  font-weight: 700;
  color: var(--el-color, #333);
  margin-bottom: 6px;
}

.hg-card-row {
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.hg-hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hg-hinweis {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}

.hg-hinweis p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hg-links {
  padding-left: 20px;
  margin: 0;
}

.hg-links li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.hg-werbung-tag {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

.hg-produkte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hg-produkt-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.hg-produkt-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.hg-produkt-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
  margin: 0 0 12px;
}

.hg-produkt-btn {
  display: inline-block;
  text-align: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.hg-produkt-btn:hover {
  opacity: 0.88;
}

#site-footer {
  text-align: center;
  padding: 28px 16px 40px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#site-footer a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
}

#site-footer a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  line-height: 1.6;
}

.legal-back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.legal-back:hover {
  color: var(--ink);
}

.legal-page h1 {
  font-size: 1.6rem;
  margin: 0 0 24px;
}

.legal-page h2 {
  font-size: 1.05rem;
  margin: 28px 0 8px;
}

.legal-page p {
  margin: 0 0 12px;
  color: var(--ink);
}

.legal-page a {
  color: #4f8fa6;
}

.legal-page code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

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

#auth-modal-backdrop, #reset-modal-backdrop, #account-modal-backdrop, #verify-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.auth-modal-box {
  background: var(--card);
  border-radius: 14px;
  padding: 28px 26px;
  width: 100%;
  max-width: 360px;
  position: relative;
}

#account-modal {
  background: var(--card);
  border-radius: 16px;
  padding: 0;
  width: 100%;
  max-width: 700px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}

.auth-modal-box h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.account-header {
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--border);
}

.account-header h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

#account-email {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.account-section {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
}

.account-section:last-child {
  border-bottom: none;
}

.account-section h3 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.account-section-danger {
  background: #fbf0ef;
}

:root[data-theme="dark"] .account-section-danger,
:root:not([data-theme="light"]) .account-section-danger {
  background: rgba(165, 69, 63, 0.08);
}

.account-danger-text {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 14px;
}

.account-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.account-row input, .account-row select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  background: var(--card);
  color: var(--ink);
}

.account-row input {
  flex: 1 1 160px;
  min-width: 140px;
}

.account-add-row select {
  flex: 0 1 130px;
}

.account-add-row input {
  flex: 1 1 160px;
}

#turnstile-container {
  margin: 4px 0 12px;
  display: flex;
  justify-content: center;
}

.auth-modal-box input {
  display: block;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.auth-modal-box button:not(#auth-modal-close) {
  width: 100%;
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary, .btn-danger {
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-danger {
  background: #a5453f;
  color: #fff;
}

#auth-modal-close, #account-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

#eigene-table-toolbar {
  margin-top: 16px;
  align-items: center;
}

#eigene-table-search {
  flex: 1 1 220px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
}

.account-hint-inline {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

#eigene-table-scroll {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

#eigene-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

#eigene-table th {
  position: sticky;
  top: 0;
  text-align: left;
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

#eigene-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

#eigene-table tr:last-child td {
  border-bottom: none;
}

#eigene-table tbody tr:hover {
  background: var(--bg);
}

#eigene-table td input, #eigene-table td select {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 4px 9px;
  color: var(--muted);
  margin-right: 4px;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.auth-error {
  color: #c0504d;
  font-size: 0.82rem;
  margin-top: 8px;
}

.auth-note {
  color: #4a7a4a;
  font-size: 0.82rem;
  margin-top: 8px;
}

.account-verify-banner {
  color: #a67c1e;
  font-size: 0.82rem;
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-switch {
  text-align: center;
  margin-top: 12px;
  font-size: 0.82rem;
}

.auth-switch a {
  color: #4f8fa6;
}

/* ---------- Eigene Zutaten ---------- */

#eigene-zutat-form {
  max-width: 640px;
  margin: 0 auto 12px;
  padding: 0 16px;
  text-align: center;
}

#eigene-zutat-toggle {
  border: 1px dashed var(--border);
  background: var(--card);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}

#eigene-zutat-fields {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

#eigene-zutat-fields select, #eigene-zutat-fields input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
}

#eigene-save-btn {
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.category-eigene {
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.category-eigene .category-name {
  color: #a67c52;
}

.badge-eigene {
  display: inline-block;
  background: #a67c52;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
}
