:root {
  /* Echte Mama Soundtrack Farbpalette (aus Canva-Brand-Kit-Screenshot, 17.08.2026):
     Hintergrund Bluse, Terracotta, Dunkel Rose, Ohrpolster, Nacht Set 2, Cream, Muted */
  --blush: #f3ddc4;      /* Hintergrund Bluse */
  --terracotta: #c98a56; /* Terracotta */
  --dark-rose: #a8583f;  /* Dunkel Rose */
  --tan: #dfb28c;        /* Ohrpolster */
  --night: #170e0b;      /* Nacht Set 2 */
  --cream: #faf5ec;      /* Cream */
  --muted: #7c6a5c;      /* Muted */

  --bg: var(--cream);
  --card-bg: #ffffff;
  --primary: var(--terracotta);
  --primary-dark: var(--dark-rose);
  --accent: var(--dark-rose);
  --text: var(--night);
  --text-muted: var(--muted);
  --border: var(--tan);
  --warning-bg: var(--blush);
  --warning-border: var(--tan);
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h3, button, .badge {
  font-family: "Fredoka", "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.site-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
}

.subtitle {
  color: var(--text-muted);
  margin: 0;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.field {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

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

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  background: #fffdfb;
  color: var(--text);
}

input:focus, select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

button#submit-btn {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s ease;
}

button#submit-btn:hover { background: var(--primary-dark); }
button#submit-btn:disabled { opacity: 0.6; cursor: wait; }

.status {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

.status.error {
  color: #b3261e;
  background: #fdecea;
  border: 1px solid #f5c6c1;
  border-radius: 10px;
  padding: 1rem;
}

.status.notice {
  color: var(--primary-dark);
  background: var(--blush);
  border: 1px solid var(--tan);
  border-radius: 10px;
  padding: 1rem;
}

.results { margin-top: 2rem; }

.global-hinweis {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.global-hinweis strong { display: block; margin-bottom: 0.25rem; }

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.recipe-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--dark-rose);
}

.recipe-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.recipe-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background: var(--dark-rose);
  white-space: nowrap;
}

.recipe-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}

.recipe-card h4 {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.recipe-card ul, .recipe-card ol {
  margin: 0;
  padding-left: 1.2rem;
}

.recipe-card li { margin-bottom: 0.25rem; }

.anrichten-box {
  background: var(--blush);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.allergen-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
  font-style: italic;
}

.recipe-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.recipe-actions button {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: white;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.recipe-actions button:hover { background: var(--blush); }

.recipe-details {
  margin-top: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 0.2rem;
}

.recipe-details summary {
  cursor: pointer;
  list-style: none;
  padding: 0.6rem 0;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.recipe-details summary::-webkit-details-marker { display: none; }

.recipe-details summary::before {
  content: "▸";
  display: inline-block;
  transition: transform 0.15s ease;
  color: var(--terracotta);
}

.recipe-details[open] summary::before {
  transform: rotate(90deg);
}

.recipe-details-body {
  padding-top: 0.3rem;
}

.zubehoer-link {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
}

.zubehoer-link a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.zubehoer-link a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-bottom: 2rem;
}

@media print {
  .site-header, #snack-form, .site-footer, .recipe-actions, #status { display: none !important; }
  body { background: white; }
}
