/* cooktogether.de styles */

.cook-home h1 { font-size: 2rem; margin-bottom: .25rem; }

/* Rezept des Tages */
.cook-dotd { background: linear-gradient(135deg, #fff8f0, #fff3e0); border: 2px solid #e67e00;
  border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.cook-dotd .dotd-label { font-size: .8rem; font-weight: 700; text-transform: uppercase;
  color: #e67e00; letter-spacing: .05em; margin-bottom: .4rem; }
.cook-dotd .dotd-title { font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: .3rem; }
.cook-dotd .dotd-meta { font-size: .85rem; color: #888; margin-bottom: .75rem; }
.cook-dotd .dotd-link { color: #e67e00; font-weight: 600; text-decoration: none; }
.cook-dotd .dotd-link:hover { text-decoration: underline; }
.cook-subtitle { color: #666; margin-bottom: 1.5rem; }
.cook-search-main { margin: 1.5rem 0; }

/* Stats */
.cook-stats { display: flex; gap: 1rem; margin: 1.5rem 0; flex-wrap: wrap; }
.stat-card { background: #fff8f0; border: 1px solid #ffd8a8; border-radius: 8px;
             padding: 1rem 1.5rem; text-align: center; min-width: 110px; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 700; color: #e67e00; }
.stat-label { font-size: .8rem; color: #666; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: .75rem; margin: 1rem 0 2rem; }
.cat-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 1rem;
            text-decoration: none; color: inherit; transition: box-shadow .15s; }
.cat-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.1); border-color: #e67e00; }
.cat-name { display: block; font-weight: 600; color: #e67e00; margin-bottom: .25rem; }
.cat-count { font-size: .8rem; color: #888; }

/* Recipe grid */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; margin: 1rem 0; }
.recipe-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 1rem;
               text-decoration: none; color: inherit; transition: box-shadow .15s; display: block; }
.recipe-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.1); border-color: #e67e00; }
.rc-title { font-weight: 600; color: #333; margin-bottom: .3rem; line-height: 1.3; }
.rc-meta { font-size: .78rem; color: #888; margin-bottom: .25rem; }
.rc-ings { font-size: .78rem; color: #999; }
.rc-match { font-size: .78rem; color: #2d9e2d; font-weight: 600; margin-bottom: .2rem; }

/* Recipe hero image */
.recipe-hero { margin: -1rem -1rem 1.5rem; border-radius: 8px 8px 0 0; overflow: hidden; max-height: 400px; }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px 8px 0 0;
                   margin: -1rem -1rem .75rem; display: block; width: calc(100% + 2rem); }

/* Recipe page */
.recipe h1 { font-size: 2rem; margin-bottom: .75rem; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.meta-item { background: #f5f5f5; border-radius: 4px; padding: .25rem .6rem;
             font-size: .85rem; color: #555; }
.badge-veg { background: #e8f5e9; color: #2e7d32; }

.recipe-body { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin: 1.5rem 0; }
@media (max-width: 650px) { .recipe-body { grid-template-columns: 1fr; } }

.ingredients h2, .instructions h2 { font-size: 1.2rem; border-bottom: 2px solid #e67e00;
                                     padding-bottom: .3rem; margin-bottom: 1rem; }
.ingredients ul { list-style: none; padding: 0; }
.ingredients li { padding: .35rem 0; border-bottom: 1px solid #f0f0f0; font-size: .95rem; }
.ingredients li:last-child { border-bottom: none; }

.instruction-text { line-height: 1.8; white-space: pre-wrap; font-size: .95rem; }

.notes { background: #fffbf0; border-left: 3px solid #e67e00; padding: 1rem; margin: 1.5rem 0; }
.notes h2 { font-size: 1rem; margin: 0 0 .5rem; }

.recipe-tags { margin: 1.5rem 0; font-size: .9rem; }
.recipe-tags .tag { background: #fff3e0; color: #e67e00; border-radius: 4px;
                    padding: .15rem .5rem; text-decoration: none; margin: .15rem; display: inline-block; }
.recipe-tags .tag:hover { background: #e67e00; color: #fff; }

.recipe-nav { display: flex; justify-content: space-between; padding-top: 1rem;
              border-top: 1px solid #eee; margin-top: 2rem; }
.recipe-nav a { color: #e67e00; text-decoration: none; font-size: .9rem; }
.recipe-nav a:hover { text-decoration: underline; }

/* Ingredient search */
.ingredient-search-banner { background: linear-gradient(135deg, #fff8f0, #fff3e0);
  border: 2px solid #ffd8a8; border-radius: 12px; padding: 1.5rem; margin: 2rem 0; }
.ingredient-search-banner h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.ingredient-input-row { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.ingredient-input-row input { flex: 1; min-width: 200px; padding: .6rem .9rem;
  border: 2px solid #ffd8a8; border-radius: 6px; font-size: 1rem; }
.ingredient-input-row input:focus { outline: none; border-color: #e67e00; }
.ingredient-input-row button, #search-btn {
  padding: .6rem 1.2rem; background: #e67e00; color: #fff;
  border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; }
.ingredient-input-row button:hover, #search-btn:hover { background: #c96e00; }

/* Zutatensuche page */
.zutatensuche h1 { font-size: 2rem; }
.zutatensuche .subtitle { color: #666; margin-bottom: 1.5rem; }
.ingredient-search-box { background: #fff8f0; border: 2px solid #ffd8a8;
  border-radius: 12px; padding: 1.5rem; margin: 1rem 0 1.5rem; }
.tag-input-wrapper { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  border: 2px solid #ffd8a8; border-radius: 8px; padding: .5rem; background: #fff;
  min-height: 46px; margin-bottom: 1rem; }
.tag-input-wrapper input { border: none; outline: none; font-size: 1rem;
  flex: 1; min-width: 150px; padding: .25rem; }
.ing-tag { background: #e67e00; color: #fff; border-radius: 20px;
  padding: .2rem .6rem .2rem .8rem; font-size: .9rem; display: flex; align-items: center; gap: .3rem; }
.ing-tag button { background: none; border: none; color: #fff; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0; opacity: .8; }
.ing-tag button:hover { opacity: 1; }
.suggestions { margin: .5rem 0 1.5rem; font-size: .9rem; }
.sugg-btn { background: #fff3e0; color: #e67e00; border: 1px solid #ffd8a8;
  border-radius: 20px; padding: .2rem .75rem; margin: .2rem; cursor: pointer;
  font-size: .85rem; transition: background .15s; }
.sugg-btn:hover { background: #e67e00; color: #fff; }
.search-note { color: #888; font-size: .85rem; margin-bottom: 1rem; }
.searching { color: #888; }

.btn-search-ingredients { display: block; background: #e67e00; color: #fff;
  text-align: center; padding: .5rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.btn-search-ingredients:hover { background: #c96e00; }

.count { color: #999; font-size: .8rem; }
