/* Rezepte – minimales schwarz/weiß Design, mobile-first */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px;
}

a {
  color: #111;
}

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

h2 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

p {
  color: #111;
}

.muted {
  color: #666;
}

.error {
  color: #111;
  font-weight: bold;
}

hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 20px 0;
}

/* Topbar / Liste */

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.cart-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: #666;
  border: 1px solid #e5e5e5;
  padding: 6px 12px;
  border-radius: 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.cart-link.active {
  color: #111;
  border-color: #111;
  font-weight: bold;
}

#search {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  min-height: 44px;
  margin-bottom: 12px;
  color: #111;
  background: #fff;
  font-family: inherit;
}

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

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 6px;
  padding: 0 14px;
  min-height: 40px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}

.pill.active {
  background: #111;
  color: #fff;
}

.recipe-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recipe-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 14px 0;
}

.recipe-item a {
  text-decoration: none;
  display: block;
}

.recipe-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
}

.recipe-meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}

.empty-hint {
  color: #666;
  padding: 24px 0;
  text-align: center;
}

/* Detail */

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.recipe-meta-detail {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.stepper button {
  width: 44px;
  height: 44px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 1.2rem;
  border-radius: 6px;
  cursor: pointer;
}

.stepper .qty {
  min-width: 90px;
  text-align: center;
  font-size: 1.05rem;
}

.stepper.small button {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.stepper.small .qty {
  min-width: 70px;
  font-size: 0.95rem;
}

.unit-size-line {
  color: #666;
  font-size: 0.9rem;
  margin: -8px 0 16px;
}

.group-heading {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  margin: 16px 0 6px;
}

.ing-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.ing-row {
  padding: 6px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.95rem;
}

.ing-amount {
  display: inline-block;
  min-width: 64px;
  color: #111;
  font-weight: 600;
}

.ing-note {
  color: #666;
  font-style: italic;
}

.steps-list {
  padding-left: 20px;
  margin: 0 0 20px;
}

.steps-list li {
  margin-bottom: 10px;
}

.notes {
  margin: 16px 0;
  color: #111;
}

.source {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 6px;
  padding: 0 16px;
  min-height: 44px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-quiet {
  border-color: #e5e5e5;
  color: #666;
}

/* Warenkorb */

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}

.cart-row-title {
  flex: 1;
  font-size: 1rem;
}

.cart-remove {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #666;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.shop-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.shop-row {
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
}

.shop-row-main {
  font-size: 0.95rem;
}

.shop-row-recipes {
  color: #666;
  font-size: 0.75rem;
}

/* Login-Overlay */

#login-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.login-box input {
  padding: 12px;
  font-size: 1.2rem;
  text-align: center;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  min-height: 44px;
  letter-spacing: 0.2em;
}

.login-box input:focus {
  outline: none;
  border-color: #111;
}

.login-box .error {
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: normal;
  color: #111;
}

/* Kochmodus */

#cook-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.cook-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.85rem;
  color: #666;
}

.cook-close {
  border: none;
  background: none;
  font-size: 1.4rem;
  color: #111;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.cook-step-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.cook-timer-wrap {
  text-align: center;
  padding-bottom: 12px;
}

.cook-timer-btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 6px;
  padding: 0 16px;
  min-height: 44px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.cook-timer-btn.timer-done {
  background: #111;
  color: #fff;
  border-color: #111;
}

.cook-bottom {
  border-top: 1px solid #e5e5e5;
  padding: 12px 16px;
}

.cook-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cook-nav button {
  flex: 1;
  min-height: 48px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.cook-nav button.primary {
  background: #111;
  color: #fff;
}

.cook-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.cook-ingredients {
  font-size: 0.9rem;
}

.cook-ingredients summary {
  cursor: pointer;
  color: #666;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.cook-ingredients ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 30vh;
  overflow-y: auto;
}

.cook-ingredients li {
  padding: 4px 0;
  border-bottom: 1px solid #e5e5e5;
}
