/* ==========================================================================
   Hygge und Zimt — Design System
   Farbwelt: warmes Leinen, gerösteter Zimt, Kerzen-Amber, Salbei, Beere
   Typo: Fraunces (Display, warm & weich) + Figtree (Text, rund & modern)
   Signatur: Zimtschnecken-Spirale als wiederkehrendes Formmotiv
   ========================================================================== */

:root {
  /* Farben */
  --cream: #FBF3E6;
  --paper: #FFFCF6;
  --ink: #2B2019;
  --ink-soft: #5A4B3E;
  --cinnamon: #A85832;
  --cinnamon-dark: #7A3D20;
  --amber: #E3A857;
  --amber-soft: #F3D9A6;
  --sage: #8B9A7C;
  --sage-soft: #E1E7D9;
  --berry: #AE5259;
  --berry-soft: #F0DADA;
  --line: #E7DBC7;

  /* Typo */
  --font-display: "Fraunces", serif;
  --font-body: "Figtree", sans-serif;

  /* Radius / Schatten */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --shadow-soft: 0 12px 30px -12px rgba(122, 61, 32, 0.25);
  --shadow-lift: 0 20px 40px -14px rgba(122, 61, 32, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cinnamon-dark);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cinnamon);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Zimtschnecken-Spirale, Signaturmotiv */
.swirl {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 230, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--cinnamon-dark);
}
.brand .swirl { width: 30px; height: 30px; }
.brand-logo { height: 38px; max-height: 60%; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a {
  position: relative;
  padding: 4px 2px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cinnamon-dark); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: var(--amber);
  border-radius: 3px;
}

.header-search-wrap {
  position: relative;
  width: 320px;
  flex-shrink: 0;
}
.header-search-wrap .header-search { width: 100%; }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 60;
}
.search-results.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-item:focus-visible { background: var(--cream); }
.search-result-item .sri-title { font-weight: 600; }
.search-result-item .sri-cat { font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap; flex-shrink: 0; }
.search-result-empty { padding: 14px 16px; font-size: 0.85rem; color: var(--ink-soft); }

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  width: 230px;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.header-search:focus-within { box-shadow: var(--shadow-soft); border-color: var(--cinnamon); }
.header-search svg { flex-shrink: 0; }
.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
}
.header-search input:focus { outline: none; }
.header-search input::placeholder { color: var(--ink-soft); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--amber-soft) 0%, rgba(243, 217, 166, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 0.35em;
}
.hero h1 em {
  font-style: italic;
  color: var(--cinnamon);
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--cinnamon);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--cinnamon-dark); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost {
  background: transparent;
  color: var(--cinnamon-dark);
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cinnamon); }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cinnamon-dark);
}
.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Hero illustration card */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--paper), var(--cream));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 78%; height: 78%; }
.hero-art-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--line);
}
.hero-art-badge .swirl { width: 26px; height: 26px; }

/* ---------- Kategorien ---------- */
.section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.2em 0 0; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 50ch; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.cat-tile {
  position: relative;
  border-radius: var(--r-md);
  padding: 26px 20px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.cat-tile .swirl { width: 34px; height: 34px; opacity: 0.9; }
.cat-tile .count {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.75;
}
.cat-tile h3 {
  font-size: 1.05rem;
  margin: 10px 0 0;
  color: inherit;
}
.cat-tile--cinnamon { background: var(--cinnamon); color: var(--paper); }
.cat-tile--amber { background: var(--amber-soft); color: var(--cinnamon-dark); }
.cat-tile--sage { background: var(--sage-soft); color: #3E4A34; }
.cat-tile--berry { background: var(--berry-soft); color: #6B2B30; }
.cat-tile--paper { background: var(--paper); color: var(--cinnamon-dark); }

/* ---------- Rezept-Kacheln ---------- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.recipe-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover { transform: translateY(-6px) rotate(-0.3deg); box-shadow: var(--shadow-lift); }

.recipe-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recipe-photo svg { width: 56%; height: 56%; }

.recipe-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 252, 246, 0.92);
  color: var(--cinnamon-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.recipe-fav {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.recipe-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.recipe-body p.desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 16px;
  flex: 1;
}

.recipe-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.recipe-meta span { display: flex; align-items: center; gap: 6px; }

/* Kategorie-Einfärbung der Foto-Fläche */
.ph--cinnamon { background: linear-gradient(155deg, #E7C39B, #C88A55); }
.ph--amber { background: linear-gradient(155deg, var(--amber-soft), var(--amber)); }
.ph--sage { background: linear-gradient(155deg, var(--sage-soft), var(--sage)); }
.ph--berry { background: linear-gradient(155deg, var(--berry-soft), var(--berry)); }

/* ---------- Video-Platzhalter (YouTube-Anleitung) ---------- */
.video-block { margin-top: 48px; }
.video-block .eyebrow { margin-bottom: 10px; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  background: linear-gradient(155deg, var(--cinnamon-dark) 0%, #4E2814 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(227, 168, 87, 0.28), transparent 60%);
}
.video-frame .play-btn {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  transition: transform 0.2s ease;
  cursor: pointer;
  border: none;
}
.video-frame:hover .play-btn { transform: scale(1.06); }
.video-frame .play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.video-frame .video-note {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 32, 25, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
}
.video-caption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Video-Hinweis auf den Rezept-Kacheln der Startseite */
.recipe-video-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(43, 32, 25, 0.72);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.recipe-video-badge svg { width: 12px; height: 12px; }

/* ---------- Newsletter / CTA-Band ---------- */
.band {
  background: var(--cinnamon-dark);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(227, 168, 87, 0.25), transparent 60%);
}
.band h2 { color: var(--cream); }
.band p { color: #E9DBCB; margin: 0 0 0; }
.band-form { display: flex; gap: 10px; position: relative; z-index: 1; }
.band-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.band-form button {
  background: var(--amber);
  color: var(--cinnamon-dark);
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.2rem; color: var(--cinnamon-dark); }
.footer-brand .swirl { width: 26px; height: 26px; }
.footer-links { display: flex; gap: 46px; flex-wrap: wrap; }
.footer-links h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 12px; }
.footer-links a { display: block; margin-bottom: 8px; font-size: 0.92rem; color: var(--ink); }
.footer-links a:hover { color: var(--cinnamon); }
.footer-bottom {
  border-top: 1px dashed var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .header-search-wrap { width: 180px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .band-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Sichtbarer Fokus für Tastaturnutzung */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
