/* ================================================================
   Glutnest – Grillrezepte
   Design: warmer Glut-/Ember-Look (Holzkohle + Feuer)
   ================================================================ */

:root {
  --charcoal:   #1c1815;
  --charcoal-2: #2a2320;
  --ember:      #e8622a;
  --ember-2:    #ff8a3d;
  --gold:       #f2b134;
  --cream:      #faf5ee;
  --cream-2:    #f1e7da;
  --ink:        #241f1b;
  --muted:      #6f635a;
  --line:       #e2d6c7;
  --ok:         #3a8f5b;
  --err:        #c0392b;
  --radius:     14px;
  --shadow:     0 10px 30px rgba(28, 24, 21, .10);
  --shadow-lg:  0 20px 50px rgba(28, 24, 21, .18);
  --maxw:       1140px;
  --font:       "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Hinweis-Banner: KI-generierte Testseite (dauerhaft oben fixiert) */
.ai-banner {
  position: sticky;
  top: 0;
  z-index: 60;                 /* über der Navigation (z-index 50) */
  height: 38px;                /* feste Höhe -> Navi setzt darunter auf */
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #241f1b, #241f1b 12px, #2a2320 12px, #2a2320 24px);
  color: var(--gold);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 16px;
  border-bottom: 2px solid var(--ember);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ember), var(--ember-2));
  box-shadow: 0 8px 20px rgba(232, 98, 42, .35);
}
.btn--ghost {
  color: var(--cream);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
}
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 38px; z-index: 50;
  background: rgba(28, 24, 21, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand .flame { font-size: 1.5rem; }
.brand span b { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,.82); font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }
.nav-links .btn { padding: 9px 20px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 110px 0 120px;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(232,98,42,.55), transparent 60%),
    linear-gradient(180deg, #241d18 0%, #1c1815 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 120%, rgba(242,177,52,.25), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Recipe grid / cards ---------- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card .thumb { aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; font-size: 3.6rem; }
.card .thumb .tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(28,24,21,.82); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px; text-transform: uppercase;
}
.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { color: var(--ink); margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: .96rem; flex: 1; }
.card .meta { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.card .meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Warm gradient thumbnails */
.g1 { background: linear-gradient(135deg, #ff8a3d, #e8622a); }
.g2 { background: linear-gradient(135deg, #f2b134, #e8622a); }
.g3 { background: linear-gradient(135deg, #c0392b, #7b241c); }
.g4 { background: linear-gradient(135deg, #6ab04c, #3a8f5b); }
.g5 { background: linear-gradient(135deg, #e8622a, #7b241c); }
.g6 { background: linear-gradient(135deg, #f2b134, #d68910); }

/* ---------- Feature strip ---------- */
.features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { text-align: center; padding: 8px; }
.feature .ic { font-size: 2.4rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.bg-cream2 { background: var(--cream-2); }

/* ---------- Recipe detail ---------- */
.recipe-hero { background: var(--charcoal); color: #fff; padding: 60px 0; }
.recipe-hero .eyebrow { color: var(--gold); }
.recipe-hero .stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 18px; }
.recipe-hero .stats div { font-size: .95rem; color: rgba(255,255,255,.8); }
.recipe-hero .stats b { display: block; color: #fff; font-size: 1.25rem; }
.recipe-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 44px; }
.ingredients { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.ingredients h3 { border-bottom: 2px solid var(--ember); padding-bottom: 10px; display: inline-block; }
.ingredients ul { list-style: none; padding: 0; margin: 12px 0 0; }
.ingredients li { padding: 9px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; }
.ingredients li b { color: var(--ember); white-space: nowrap; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 0 26px 58px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--ember-2)); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 6px; width: 2px; background: var(--line); }
.steps h4 { margin: 4px 0 6px; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .95rem; }
label .req { color: var(--ember); }
input, textarea, select {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(232, 98, 42, .15); background: #fff;
}
textarea { resize: vertical; min-height: 130px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkbox input { width: auto; margin-top: 3px; }
.field-error { color: var(--err); font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.field.invalid .field-error { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }

.form-success {
  display: none;
  background: #eef7f0; border: 1px solid #cce6d5; color: var(--ok);
  padding: 16px 18px; border-radius: 10px; font-weight: 600; margin-bottom: 22px;
}
.form-success.show { display: block; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 24px; font-size: 1.15rem; }
.prose p, .prose li { color: #3a332d; }
.prose address { font-style: normal; }
.badge-demo {
  display: inline-block; background: var(--gold); color: var(--charcoal);
  font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.7); padding: 54px 0 26px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,.7); }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px;
  max-width: 940px; margin: 0 auto;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.consent.show { transform: translateY(0); }
.consent h3 { margin: 0 0 6px; font-size: 1.15rem; }
.consent p { margin: 0 0 16px; color: var(--muted); font-size: .93rem; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent-actions .btn { padding: 11px 22px; }
.consent .btn--text { background: none; color: var(--muted); text-decoration: underline; padding: 11px 6px; box-shadow: none; }
.consent-detail { display: none; margin: 4px 0 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.consent-detail.show { display: block; }
.consent-detail label { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; }
.consent-detail small { color: var(--muted); font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .recipe-layout { grid-template-columns: 1fr; }
  .ingredients { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--charcoal); padding: 8px 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links .btn { text-align: center; justify-content: center; margin-top: 10px; }
  .form-row { grid-template-columns: 1fr; }
}
