/* ============================================================
   Hannas Happy Home — Main Stylesheet
   Port of React/Tailwind v4 design
   ============================================================ */

/* ----------------------------------------------------------
   1. Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F5F0EB;
  --bg-warm: #EDE6DD;
  --white: #FFFFFF;
  --sage: #6B8F71;
  --sage-dark: #4A6B4F;
  --sage-light: #8FB596;
  --heading: #2C2417;
  --body: #5C5347;
  --muted: #9B8E7E;
  --line: #E2D9CE;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --nav-h: 80px;
  --max-w: 1280px;
}

html {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body { min-height: 100vh; overflow-x: hidden; max-width: 100vw; }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--heading); margin: 0; }
p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; height: 1px; background: var(--line); margin: 0; }
::selection { background: var(--sage-light); color: white; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

/* ----------------------------------------------------------
   2. Navbar
   ---------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(245,240,235,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,217,206,0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  border-bottom-color: rgba(226,217,206,0.5);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.navbar.menu-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.navbar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .navbar-inner { padding: 0 2.5rem; } }

.navbar-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.navbar-logo img.logo-icon { height: 2.25rem; width: auto; }
.navbar-logo img.logo-word { height: 1.75rem; width: auto; }
@media (min-width: 768px) {
  .navbar-logo img.logo-icon { height: 2.5rem; }
  .navbar-logo img.logo-word { height: 2rem; }
}

.navbar-desktop { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 768px) { .navbar-desktop { display: flex; } }

.nav-link { font-size: 0.9rem; font-weight: 500; color: rgba(44,36,23,0.75); transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--heading); }
.nav-link.active { color: var(--sage); }

.navbar-socials { display: flex; align-items: center; gap: 0.375rem; padding-left: 0.5rem; border-left: 1px solid rgba(226,217,206,0.4); }
.social-icon { width: 2rem; height: 2rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: color 0.2s, background 0.2s; }
.social-icon:hover { color: var(--sage); background: rgba(107,143,113,0.08); }
.social-icon svg { width: 1rem; height: 1rem; }

.navbar-search-btn { width: 2.25rem; height: 2.25rem; border-radius: 9999px; background: rgba(255,255,255,0.8); border: 1px solid rgba(226,217,206,0.5); display: flex; align-items: center; justify-content: center; transition: background 0.2s; cursor: pointer; }
.navbar-search-btn:hover { background: white; }
.navbar-search-btn svg { width: 1rem; height: 1rem; color: var(--muted); }

.search-dropdown { display: none; position: absolute; right: 0; top: 3rem; width: 20rem; background: white; border-radius: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,0.12); border: 1px solid rgba(226,217,206,0.5); overflow: hidden; z-index: 60; }
.search-dropdown.open { display: block; }
.search-dropdown-inner { padding: 0.75rem; }
.search-dropdown-input { width: 100%; padding: 0.625rem 1rem; border-radius: 0.75rem; background: var(--bg); border: none; outline: none; font-size: 0.875rem; color: var(--heading); }
.search-dropdown-input::placeholder { color: rgba(155,142,126,0.5); }
.search-results { border-top: 1px solid rgba(226,217,206,0.5); max-height: 20rem; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; transition: background 0.15s; text-decoration: none; color: inherit; }
.search-result-item:hover { background: var(--bg); }
.search-result-item img { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; object-fit: cover; flex-shrink: 0; }
.search-result-item p { font-size: 0.875rem; font-weight: 500; color: var(--heading); }
.search-result-item span { font-size: 0.75rem; color: var(--muted); }
.search-no-results { padding: 1.5rem 1rem; text-align: center; font-size: 0.875rem; color: var(--muted); border-top: 1px solid rgba(226,217,206,0.5); }
.search-wrapper { position: relative; }

.navbar-mobile { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .navbar-mobile { display: none; } }

.hamburger { width: 2.5rem; height: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; cursor: pointer; position: relative; }
.hamburger span { display: block; width: 1.5rem; height: 2px; background: var(--heading); transition: all 0.3s; position: absolute; }
.hamburger span:nth-child(1) { transform: translateY(-8px); }
.hamburger span:nth-child(2) { transform: translateY(0); }
.hamburger span:nth-child(3) { transform: translateY(8px); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu { display: none; position: fixed; inset: 0; z-index: 40; background: var(--bg); padding-top: var(--nav-h); }
.mobile-menu.open { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.mobile-menu a { font-family: var(--font-display); font-size: 2.5rem; color: var(--heading); transition: color 0.2s; text-decoration: none; }
.mobile-menu a:hover { color: var(--sage); }
.mobile-menu-socials { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.mobile-menu-socials .social-icon { width: 2.5rem; height: 2.5rem; background: var(--bg-warm); }

.mobile-search-bar { display: none; padding: 0 1.5rem 1rem; }
.mobile-search-bar.open { display: block; }
@media (min-width: 768px) { .mobile-search-bar { display: none !important; } }
.mobile-search-bar-inner { background: white; border-radius: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid rgba(226,217,206,0.5); overflow: hidden; }
.mobile-search-bar .search-dropdown-input { background: var(--bg); }

/* ----------------------------------------------------------
   3. Footer
   ---------------------------------------------------------- */
.footer { background: var(--heading); color: var(--bg); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .footer-inner { padding: 6rem 2.5rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; gap: 2rem; } }

.footer-brand-logo { height: 5rem; width: auto; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 1rem; }
@media (min-width: 768px) { .footer-brand-logo { height: 6rem; } }
.footer-brand-desc { color: rgba(245,240,235,0.5); font-size: 0.875rem; line-height: 1.6; max-width: 18rem; margin-bottom: 1.5rem; }
.footer-socials { display: flex; align-items: center; gap: 0.5rem; }
.footer-social-icon { width: 2.25rem; height: 2.25rem; border-radius: 9999px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(245,240,235,0.5); transition: color 0.2s, background 0.2s; }
.footer-social-icon:hover { color: var(--bg); background: rgba(255,255,255,0.15); }
.footer-social-icon svg { width: 1rem; height: 1rem; }

.footer-col-title { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,240,235,0.3); font-family: var(--font-body); font-weight: 500; margin-bottom: 1.25rem; }
.footer-col nav, .footer-col-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: rgba(245,240,235,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--bg); }
.footer-coop { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(245,240,235,0.1); font-size: 0.75rem; color: rgba(245,240,235,0.35); line-height: 1.6; }
.footer-coop a { color: rgba(245,240,235,0.5); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.footer-coop a:hover { color: var(--bg); }

.footer-bottom { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(245,240,235,0.1); display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom p { font-size: 0.75rem; color: rgba(245,240,235,0.25); }
.footer-bottom a { color: rgba(245,240,235,0.35); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(245,240,235,0.6); }

/* ----------------------------------------------------------
   4. Instagram bubble
   ---------------------------------------------------------- */
.ig-bubble { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; width: 3.5rem; height: 3.5rem; background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%); border-radius: 9999px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(220,39,67,0.25); transition: transform 0.2s; }
.ig-bubble:hover { transform: scale(1.1); }
.ig-bubble svg { width: 1.5rem; height: 1.5rem; color: white; }

/* ----------------------------------------------------------
   5. Section divider (vertical line on left)
   ---------------------------------------------------------- */
.section-divider { display: none; position: absolute; left: 2.5rem; top: 0; bottom: 0; z-index: 20; pointer-events: none; flex-direction: column; align-items: center; }
@media (min-width: 1024px) { .section-divider { display: flex; } }
@media (min-width: 1280px) { .section-divider { left: 4rem; } }
.section-divider-line { width: 1px; background: rgba(226,217,206,0.6); flex: 1; }
.section-divider-circle { border-radius: 9999px; border: 2px solid rgba(107,143,113,0.3); background: var(--bg); margin: 0.5rem 0; flex-shrink: 0; }
.section-divider-dots { display: flex; flex-direction: column; align-items: center; }
.section-divider-dot-row { display: flex; flex-direction: column; align-items: center; }
.section-divider-dot-spacer { width: 1px; height: 3rem; background: rgba(226,217,206,0.6); }
.section-divider-dot { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: rgba(107,143,113,0.4); flex-shrink: 0; }

/* ----------------------------------------------------------
   6. Recipe Card
   ---------------------------------------------------------- */
.r-card { display: block; background: var(--bg-warm); border-radius: 1rem; overflow: hidden; border: 1px solid rgba(226,217,206,0.4); text-decoration: none; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.r-card:hover { border-color: rgba(107,143,113,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.1); transform: translateY(-4px); }
.r-card-img-wrap { position: relative; background: var(--bg-warm); padding: 1rem 1rem 0; }
.r-card-img-inner { border-radius: 0.75rem; overflow: hidden; }
.r-card-img-inner img { width: 100%; height: 11rem; object-fit: cover; transition: transform 0.5s; display: block; }
@media (min-width: 768px) { .r-card-img-inner img { height: 12rem; } }
.r-card:hover .r-card-img-inner img { transform: scale(1.05); }
.r-card-cat { position: absolute; top: 1.5rem; left: 1.5rem; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); color: var(--sage); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: 9999px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.r-card-body { padding: 1rem; padding-top: 0.75rem; display: flex; flex-direction: column; }
.r-card-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--heading); font-weight: 500; margin-bottom: 0.25rem; transition: color 0.2s; line-height: 1.3; }
@media (min-width: 768px) { .r-card-title { font-size: 1.125rem; } }
.r-card:hover .r-card-title { color: var(--sage); }
.r-card-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.75rem; flex: 1; }
.r-card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; margin-top: auto; }
.r-card-time { display: flex; align-items: center; gap: 0.25rem; color: var(--muted); }
.r-card-time svg { width: 0.875rem; height: 0.875rem; }
.r-card-btn { background: rgba(107,143,113,0.1); color: var(--sage); font-weight: 500; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.7rem; }

/* Grid layouts for recipe cards */
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-3-4 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .grid-3-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-3-4 { grid-template-columns: repeat(4, 1fr); } }

/* ----------------------------------------------------------
   7. Hero Section
   ---------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; }

.hero-sage-bg {
  display: none;
  position: absolute; top: 0; right: 0; width: 55%; height: 100%;
  background: linear-gradient(135deg, #5C7F5A 0%, #6B8F71 25%, #7DA07B 50%, #8FB596 75%, #A3C4A0 100%);
  border-radius: 0 0 0 50%;
}
@media (min-width: 1024px) { .hero-sage-bg { display: block; } }
.hero-sage-bg-shine {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.12) 0%, transparent 60%);
}
.hero-sage-bg-texture {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-hanna-portrait {
  position: absolute; top: 6rem; right: 2.5rem; width: 13rem; height: 13rem;
  border-radius: 9999px; overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  outline: 4px solid rgba(255,255,255,0.2);
  outline-offset: 0;
}
.hero-hanna-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.hero-circle-sm-1 { position: absolute; bottom: 8rem; right: 6rem; width: 6rem; height: 6rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.08); }
.hero-circle-sm-2 { position: absolute; top: 50%; left: 2rem; width: 4rem; height: 4rem; border-radius: 9999px; background: rgba(255,255,255,0.05); }

.hero-content { position: relative; z-index: 10; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
@media (min-width: 768px) { .hero-content { padding: 0 2.5rem; padding-top: var(--nav-h); } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; width: 100%; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.hero-left { max-width: 32rem; }
.hero-logo-wrap { display: flex; justify-content: center; margin-bottom: 2rem; }
@media (min-width: 1024px) { .hero-logo-wrap { margin-bottom: 2.5rem; } }
.hero-logo { height: 10rem; width: auto; opacity: 0; }
@media (min-width: 768px) { .hero-logo { height: 12rem; } }
@media (min-width: 1024px) { .hero-logo { height: 14rem; } }

.hero-badge-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; opacity: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(107,143,113,0.1); color: var(--sage); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.5rem 1.25rem; border-radius: 9999px; border: 1px solid rgba(107,143,113,0.2); }
.hero-badge svg { width: 0.875rem; height: 0.875rem; }

.hero-title-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.hero-title-line { width: 4px; height: 6rem; background: var(--sage); border-radius: 9999px; margin-top: 0.25rem; flex-shrink: 0; opacity: 0; }
@media (min-width: 768px) { .hero-title-line { height: 7rem; } }
.hero-title { opacity: 0; }
.hero-title h1:first-child {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.05; letter-spacing: -0.02em; color: var(--heading); font-weight: 500;
}
.hero-title h1:last-child {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1; letter-spacing: -0.02em; color: var(--sage); font-weight: 700; font-style: italic;
}

.hero-desc { color: var(--body); font-size: 1rem; line-height: 1.7; max-width: 28rem; margin-bottom: 2rem; opacity: 0; }
@media (min-width: 768px) { .hero-desc { font-size: 1.05rem; } }

.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; opacity: 0; }
.btn-primary { background: var(--sage); color: white; font-size: 0.875rem; font-weight: 500; padding: 0.875rem 1.75rem; border-radius: 9999px; transition: background 0.2s, box-shadow 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--sage-dark); box-shadow: 0 8px 24px rgba(107,143,113,0.2); }
.btn-secondary { font-size: 0.875rem; color: var(--muted); border: 1px solid var(--line); border-radius: 9999px; padding: 0.75rem 1.5rem; transition: color 0.2s, border-color 0.2s; display: inline-block; }
.btn-secondary:hover { color: var(--heading); border-color: rgba(107,143,113,0.4); }

.hero-mini-recipes { margin-top: 3rem; display: flex; align-items: center; gap: 1rem; opacity: 0; }
.hero-mini-card { display: flex; align-items: center; gap: 0.75rem; background: white; border-radius: 0.75rem; padding: 0.625rem 1.25rem 0.625rem 0.625rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid rgba(226,217,206,0.5); transition: box-shadow 0.2s; text-decoration: none; }
.hero-mini-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.hero-mini-card img { width: 3rem; height: 3rem; border-radius: 0.5rem; object-fit: cover; }
.hero-mini-card p { font-size: 0.75rem; font-weight: 500; color: var(--heading); transition: color 0.2s; }
.hero-mini-card:hover p { color: var(--sage); }
.hero-mini-card span { font-size: 0.65rem; color: var(--muted); }

.hero-right { display: flex; justify-content: center; position: relative; padding-bottom: 4rem; }
@media (min-width: 768px) { .hero-right { padding-bottom: 0; } }
.hero-img-wrap { position: relative; z-index: 10; opacity: 0; }
.hero-circle-plate { width: 20rem; height: 20rem; border-radius: 9999px; background: white; padding: 0.375rem; box-shadow: 0 25px 60px rgba(0,0,0,0.1); display: block; overflow: hidden; }
@media (min-width: 768px) { .hero-circle-plate { width: 32.5rem; height: 32.5rem; } }
@media (min-width: 1024px) { .hero-circle-plate { width: 37.5rem; height: 37.5rem; } }
.hero-circle-plate-inner { width: 100%; height: 100%; border-radius: 9999px; overflow: hidden; position: relative; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s; }

.hero-dots { position: absolute; bottom: -2rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.5rem; }
.hero-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--line); transition: all 0.3s; border: none; padding: 0; cursor: pointer; }
.hero-dot.active { width: 1.25rem; background: var(--sage); }
.hero-dot:hover { background: var(--muted); }

.hero-float-badge { position: absolute; top: -0.5rem; right: -0.5rem; background: white; border-radius: 1rem; padding: 0.875rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 20; opacity: 0; text-decoration: none; transition: box-shadow 0.2s; }
@media (min-width: 768px) { .hero-float-badge { top: 1rem; right: -2rem; } }
.hero-float-badge:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.hero-float-badge-inner { display: flex; align-items: center; gap: 0.75rem; }
.hero-float-badge img { width: 3rem; height: 3rem; border-radius: 0.5rem; object-fit: cover; }
.hero-float-badge p { font-size: 0.875rem; font-weight: 500; color: var(--heading); }
.hero-float-badge span { font-size: 0.7rem; color: var(--sage); }

.hero-stats-badge { position: absolute; bottom: -1rem; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); border-radius: 1rem; padding: 0.75rem 1.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 20; opacity: 0; display: flex; align-items: center; gap: 1.25rem; white-space: nowrap; }
.hero-stats-badge-divider { width: 1px; height: 2rem; background: var(--line); }
.hero-stats-badge-item { text-align: center; }
.hero-stats-badge-item .num { font-family: var(--font-display); font-size: 1.25rem; color: var(--sage); font-weight: 700; }
.hero-stats-badge-item .label { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ----------------------------------------------------------
   8. Section Styles
   ---------------------------------------------------------- */
.section-bg { background: var(--bg); position: relative; }
.section-bg-warm { background: var(--bg-warm); position: relative; }
.section-py { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section-py { padding-top: 6rem; padding-bottom: 6rem; } }
.section-py-sm { padding-top: 4rem; padding-bottom: 4rem; }

.section-eyebrow { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.5rem; font-weight: 500; font-family: var(--font-body); }
.section-title { font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 3rem); color: var(--heading); font-weight: 500; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .section-title { font-size: clamp(2.5rem, 4vw, 3.125rem); } }
.section-title-row { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .section-title-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-more-link { font-size: 0.875rem; color: var(--sage); font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.section-more-link:hover { color: var(--sage-dark); }

/* Category Pills */
.cat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.cat-pill { background: white; color: var(--body); font-size: 0.875rem; padding: 0.75rem 1.5rem; border-radius: 9999px; border: 1px solid var(--line); transition: all 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.05); text-decoration: none; display: inline-block; }
.cat-pill:hover { background: var(--sage); color: white; border-color: var(--sage); }

/* About teaser */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-img { border-radius: 2rem; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.about-img img { width: 100%; height: 22.5rem; object-fit: cover; }
@media (min-width: 768px) { .about-img img { height: 30rem; } }

/* Newsletter */
.newsletter-wrap { max-width: 37.5rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
@media (min-width: 768px) { .newsletter-wrap { padding: 0 2.5rem; } }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-input { flex: 1; padding: 0.875rem 1.25rem; border-radius: 9999px; background: white; border: 1px solid var(--line); font-size: 0.875rem; color: var(--heading); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.newsletter-input::placeholder { color: rgba(155,142,126,0.5); }
.newsletter-input:focus { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(107,143,113,0.15); }

/* ----------------------------------------------------------
   9. Rezepte Page
   ---------------------------------------------------------- */
.page-main { min-height: 100vh; background: var(--bg); padding-top: 7rem; padding-bottom: 5rem; }
.page-header { margin-bottom: 2.5rem; }
.page-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 3.75rem); color: var(--heading); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.page-subtitle { color: var(--muted); font-size: 1rem; }
@media (min-width: 768px) { .page-subtitle { font-size: 1.125rem; } }

.search-bar-wrap { position: relative; max-width: 28rem; }
.search-bar-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-bar-icon svg { width: 1.125rem; height: 1.125rem; color: var(--muted); }
.search-bar-input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem; border-radius: 9999px; background: white; border: 1px solid var(--line); font-size: 0.875rem; color: var(--heading); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.search-bar-input::placeholder { color: rgba(155,142,126,0.5); }
.search-bar-input:focus { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(107,143,113,0.15); }
.search-bar-clear { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); cursor: pointer; transition: color 0.2s; background: none; border: none; padding: 0; display: flex; }
.search-bar-clear:hover { color: var(--heading); }
.search-bar-clear svg { width: 1rem; height: 1rem; }

.filters-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.filter-select-wrap { position: relative; }
.filter-select { appearance: none; background: white; border: 1px solid var(--line); border-radius: 9999px; padding: 0.625rem 2.5rem 0.625rem 1.25rem; font-size: 0.875rem; color: var(--heading); cursor: pointer; outline: none; transition: border-color 0.2s; }
.filter-select:focus { border-color: var(--sage); }
.filter-select-wrap svg { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); pointer-events: none; width: 1rem; height: 1rem; color: var(--muted); }
.filter-reset { font-size: 0.875rem; color: var(--sage); font-weight: 500; padding: 0.625rem 1rem; cursor: pointer; background: none; border: none; transition: color 0.2s; }
.filter-reset:hover { color: var(--sage-dark); }

.cat-pills-row { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 3rem; }
.cat-pill-filter { padding: 0.625rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; cursor: pointer; border: 1px solid var(--line); background: white; color: var(--muted); }
.cat-pill-filter:hover { color: var(--heading); border-color: rgba(107,143,113,0.3); }
.cat-pill-filter.active { background: var(--sage); color: white; border-color: var(--sage); box-shadow: 0 4px 12px rgba(107,143,113,0.2); }

.empty-state { text-align: center; padding: 5rem 0; }
.empty-state p { font-family: var(--font-display); font-size: 1.25rem; color: var(--muted); margin-bottom: 1rem; }
.empty-state button { font-size: 0.875rem; color: var(--sage); background: none; border: none; cursor: pointer; text-decoration: underline; }

/* ----------------------------------------------------------
   10. Recipe Detail Page
   ---------------------------------------------------------- */
.recipe-hero-img { border-radius: 1rem; overflow: hidden; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .recipe-hero-img { border-radius: 1.5rem; } }
.recipe-hero-img img { width: 100%; height: 18.75rem; object-fit: cover; }
@media (min-width: 768px) { .recipe-hero-img img { height: 28.125rem; } }
@media (min-width: 1024px) { .recipe-hero-img img { height: 31.25rem; } }

.recipe-content { max-width: 48rem; margin: 0 auto; }
.recipe-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.recipe-cat-badge { display: inline-block; background: rgba(107,143,113,0.1); color: var(--sage); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; padding: 0.375rem 1rem; border-radius: 9999px; margin-bottom: 1rem; }
.recipe-title { font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 3.125rem); color: var(--heading); font-weight: 500; letter-spacing: -0.02em; }
.recipe-share-btn { flex-shrink: 0; margin-top: 0.5rem; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: white; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s; }
.recipe-share-btn:hover { border-color: rgba(107,143,113,0.4); }
.recipe-share-btn svg { width: 1.25rem; height: 1.25rem; color: var(--muted); transition: color 0.2s; }
.recipe-share-btn:hover svg { color: var(--sage); }

.recipe-desc { color: var(--body); font-size: 1rem; line-height: 1.75; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .recipe-desc { font-size: 1.125rem; } }

.wa-cta { display: flex; align-items: center; gap: 0.75rem; background: #f0fdf4; border: 1px solid #86efac; border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: 2rem; }
.wa-cta-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: #25D366; display: flex; align-items: center; justify-content: center; }
.wa-cta-icon svg { width: 1.25rem; height: 1.25rem; color: white; }
.wa-cta-text { font-size: 0.875rem; color: rgba(44,36,23,0.8); flex: 1; }
.wa-cta-btn { flex-shrink: 0; background: #25D366; color: white; font-size: 0.75rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 9999px; transition: background 0.2s; white-space: nowrap; }
.wa-cta-btn:hover { background: #1ebe5d; }

.recipe-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.meta-item { display: flex; align-items: center; gap: 0.75rem; }
.meta-icon { width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: rgba(107,143,113,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.meta-icon svg { width: 1.25rem; height: 1.25rem; color: var(--sage); }
.meta-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.meta-value { font-size: 0.875rem; color: var(--heading); font-weight: 500; }
.portions-ctrl { display: flex; align-items: center; gap: 0.5rem; }
.portions-btn { width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: rgba(107,143,113,0.1); color: var(--sage); font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; border: none; }
.portions-btn:hover { background: rgba(107,143,113,0.2); }
.portions-num { font-size: 0.875rem; color: var(--heading); font-weight: 500; width: 1.5rem; text-align: center; }

.recipe-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.recipe-grid.has-video { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .recipe-grid.has-video { grid-template-columns: 2fr 2fr 3fr; align-items: stretch; }
  .recipe-grid.no-video { grid-template-columns: 2fr 3fr; max-width: 48rem; margin: 0 auto; }
  .recipe-grid.has-video .recipe-video { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
  .recipe-grid.has-video .recipe-video-inner { flex: 1; }
  .recipe-grid.has-video .recipe-video-inner iframe { height: 100% !important; min-height: 300px; }
  .recipe-grid.has-video .recipe-ingredients { grid-column: 2; grid-row: 1; }
  .recipe-grid.has-video .recipe-steps { grid-column: 3; grid-row: 1; align-self: start; }
  .recipe-grid.no-video .recipe-ingredients { grid-column: 1; grid-row: 1; }
  .recipe-grid.no-video .recipe-steps { grid-column: 2; grid-row: 1; }
}

.recipe-video { width: 100%; min-width: 0; }
.recipe-video-inner { border-radius: 1rem; border: 1px solid var(--line); overflow: hidden; background: white; width: 100%; }
.recipe-video-inner iframe { width: 100%; min-width: 0; height: 480px; border: none; display: block; }

.recipe-ingredients { min-width: 0; }
.recipe-ingredients-box { background: white; border-radius: 1rem; padding: 1.5rem; border: 1px solid var(--line); position: sticky; top: 6rem; }
.ingredient-tabs { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
.ingredient-tab { padding: 0.375rem 1rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap; border: 1px solid var(--line); background: white; color: var(--muted); }
.ingredient-tab.active { background: var(--sage); color: white; border-color: var(--sage); }
.ingredients-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.ingredient-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--body); }
.ingredient-dot { margin-top: 0.375rem; width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: var(--sage); flex-shrink: 0; }
.bring-btn { display: flex; align-items: center; justify-content: center; gap: 0.625rem; width: 100%; padding: 0.75rem; border-radius: 0.75rem; background: #455A64; color: white; font-size: 0.875rem; font-weight: 500; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(226,217,206,0.5); transition: background 0.2s; }
.bring-btn { margin-top: 0; border: none; cursor: pointer; }
.bring-wrap { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(226,217,206,0.5); }
.bring-btn:hover { background: #37474F; }
.bring-btn svg { width: 1.25rem; height: 1.25rem; }

.recipe-steps { min-width: 0; }
.steps-list { display: flex; flex-direction: column; gap: 1.5rem; }
.step-item { display: flex; gap: 1rem; }
.step-num { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 9999px; background: var(--sage); color: white; font-size: 0.875rem; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.step-text { font-size: 0.875rem; color: var(--body); line-height: 1.7; padding-top: 0.5rem; }

.suggestions { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.suggestions h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--heading); font-weight: 500; margin-bottom: 2rem; }
.suggestions-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .suggestions-grid { grid-template-columns: repeat(3, 1fr); } }
.suggestion-card { text-decoration: none; }
.suggestion-card-img { border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); background: white; transition: box-shadow 0.3s; }
.suggestion-card:hover .suggestion-card-img { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.suggestion-card-img img { width: 100%; height: 12.5rem; object-fit: cover; transition: transform 0.5s; }
.suggestion-card:hover .suggestion-card-img img { transform: scale(1.05); }
.suggestion-card-body { padding: 1rem; }
.suggestion-card-cat { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); font-weight: 500; }
.suggestion-card-title { font-family: var(--font-display); font-size: 1rem; color: var(--heading); font-weight: 500; margin-top: 0.25rem; transition: color 0.2s; }
.suggestion-card:hover .suggestion-card-title { color: var(--sage); }
.suggestion-card-meta { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

.recipe-bottom-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); text-align: center; }

/* ----------------------------------------------------------
   11. About / Über mich page
   ---------------------------------------------------------- */
.about-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; margin-bottom: 5rem; }
@media (min-width: 1024px) { .about-hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-hero-img { border-radius: 2rem; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.about-hero-img img { width: 100%; height: 25rem; object-fit: cover; }
@media (min-width: 768px) { .about-hero-img img { height: 34.375rem; } }
.about-text h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--heading); font-weight: 500; font-style: italic; margin-bottom: 2rem; }
.about-text p { color: var(--body); line-height: 1.8; }
.about-text p + p { margin-top: 1.25rem; }
.about-text a { color: var(--sage); }
.about-text a:hover { text-decoration: underline; }

.about-section-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; margin-bottom: 5rem; }
@media (min-width: 1024px) { .about-section-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-section-img { border-radius: 2rem; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.about-section-img img { width: 100%; height: 22.5rem; object-fit: cover; }
@media (min-width: 768px) { .about-section-img img { height: 27.5rem; } }
.about-section-text h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.875rem); color: var(--heading); font-weight: 500; margin-bottom: 1.5rem; }
.about-section-text p { color: var(--body); line-height: 1.8; }
.about-section-text p + p { margin-top: 1.25rem; }

.about-quote { max-width: 40rem; margin: 0 auto; text-align: center; padding: 3rem 0; }
.about-quote p { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.875rem); color: var(--heading); font-style: italic; line-height: 1.5; margin-bottom: 1.5rem; }
.about-quote-line { width: 3rem; height: 2px; background: var(--sage); margin: 0 auto 1.5rem; }
.about-quote cite { font-size: 0.875rem; color: var(--muted); font-style: normal; }

.ig-cta-box { background: white; border-radius: 1.5rem; padding: 2rem; text-align: center; border: 1px solid var(--line); margin-top: 2rem; }
@media (min-width: 768px) { .ig-cta-box { padding: 3.5rem; } }

/* ----------------------------------------------------------
   12. Legal pages
   ---------------------------------------------------------- */
.legal-content { max-width: 48rem; margin: 0 auto; }
.legal-content h2 { font-size: 1.25rem; color: var(--heading); margin-top: 2rem; margin-bottom: 0.75rem; font-family: var(--font-display); }
.legal-content h3 { font-size: 1rem; color: var(--heading); margin-top: 1.5rem; margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 600; }
.legal-content p { color: var(--body); line-height: 1.8; margin-bottom: 0.75rem; font-size: 0.9375rem; }
.legal-content a { color: var(--sage); }
.legal-content a:hover { text-decoration: underline; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.legal-content ul li { color: var(--body); line-height: 1.8; font-size: 0.9375rem; }

/* ----------------------------------------------------------
   13. Admin panel
   ---------------------------------------------------------- */
.admin-body { background: #f8f9fa; min-height: 100vh; font-family: var(--font-body); }
.admin-header { background: var(--heading); color: white; padding: 0 1.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.admin-header-brand { font-family: var(--font-display); font-size: 1.125rem; color: rgba(245,240,235,0.9); }
.admin-header-brand span { color: var(--sage-light); }
.admin-header-right { display: flex; align-items: center; gap: 1rem; }
.admin-header-right a { font-size: 0.8125rem; color: rgba(245,240,235,0.6); transition: color 0.2s; }
.admin-header-right a:hover { color: rgba(245,240,235,0.9); }

.admin-main { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem; }
.admin-section-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--heading); margin-bottom: 1.5rem; }
.admin-card { background: white; border-radius: 0.75rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; }
.admin-card-header { padding: 1rem 1.5rem; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.admin-card-title { font-weight: 600; color: var(--heading); font-size: 0.9375rem; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 0.75rem 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); text-align: left; border-bottom: 1px solid #f0f0f0; }
.admin-table td { padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--heading); border-bottom: 1px solid #f9f9f9; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: #fdfdfd; }
.admin-table img { width: 3rem; height: 3rem; border-radius: 0.5rem; object-fit: cover; }
.admin-table .published-yes { display: inline-block; background: #dcfce7; color: #16a34a; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 9999px; }
.admin-table .published-no { display: inline-block; background: #fee2e2; color: #dc2626; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 9999px; }
.admin-table-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-edit { font-size: 0.8125rem; color: var(--sage); border: 1px solid rgba(107,143,113,0.3); padding: 0.3rem 0.75rem; border-radius: 0.375rem; transition: all 0.2s; }
.btn-edit:hover { background: var(--sage); color: white; }
.btn-delete { font-size: 0.8125rem; color: #dc2626; border: 1px solid rgba(220,38,38,0.3); padding: 0.3rem 0.75rem; border-radius: 0.375rem; transition: all 0.2s; cursor: pointer; background: none; }
.btn-delete:hover { background: #dc2626; color: white; }

.admin-form { background: white; border-radius: 0.75rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 2rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.8125rem; font-weight: 500; color: var(--heading); }
.form-control { padding: 0.625rem 0.875rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; font-size: 0.875rem; color: var(--heading); outline: none; transition: border-color 0.2s, box-shadow 0.2s; background: white; width: 100%; font-family: var(--font-body); }
.form-control:focus { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(107,143,113,0.15); }
textarea.form-control { resize: vertical; min-height: 5rem; }
select.form-control { cursor: pointer; }

.dynamic-list { display: flex; flex-direction: column; gap: 0.5rem; }
.dynamic-item { display: flex; gap: 0.5rem; align-items: center; }
.dynamic-item input, .dynamic-item textarea { flex: 1; }
.dynamic-item-num { width: 1.75rem; height: 1.75rem; background: var(--sage); color: white; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-remove { width: 2rem; height: 2rem; border-radius: 0.375rem; background: #fee2e2; color: #dc2626; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; flex-shrink: 0; transition: background 0.2s; }
.btn-remove:hover { background: #fca5a5; }
.btn-remove svg { width: 1rem; height: 1rem; }
.btn-add { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--sage); border: 1px dashed rgba(107,143,113,0.4); padding: 0.5rem 1rem; border-radius: 0.5rem; cursor: pointer; background: none; transition: all 0.2s; width: 100%; justify-content: center; margin-top: 0.25rem; }
.btn-add:hover { background: rgba(107,143,113,0.05); border-color: var(--sage); }
.btn-add svg { width: 0.875rem; height: 0.875rem; }

.form-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid #f0f0f0; margin-top: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.btn-submit { background: var(--sage); color: white; font-size: 0.9375rem; font-weight: 500; padding: 0.75rem 2rem; border-radius: 0.5rem; cursor: pointer; border: none; transition: background 0.2s; }
.btn-submit:hover { background: var(--sage-dark); }
.btn-cancel { font-size: 0.9375rem; color: var(--muted); text-decoration: none; padding: 0.75rem 1.5rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; transition: all 0.2s; }
.btn-cancel:hover { color: var(--heading); border-color: #d1d5db; }

.admin-new-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--sage); color: white; font-size: 0.875rem; font-weight: 500; padding: 0.625rem 1.25rem; border-radius: 0.5rem; transition: background 0.2s; }
.admin-new-btn:hover { background: var(--sage-dark); }
.admin-new-btn svg { width: 1rem; height: 1rem; }

.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.admin-stat-card { background: white; border-radius: 0.75rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 1.25rem; }
.admin-stat-num { font-family: var(--font-display); font-size: 2rem; color: var(--sage); font-weight: 700; }
.admin-stat-label { font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }

.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 1.5rem; }
.admin-login-box { background: white; border-radius: 1.5rem; padding: 2.5rem; width: 100%; max-width: 26rem; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.admin-login-box img { height: 5rem; margin: 0 auto 1.5rem; }
.admin-login-box h1 { font-family: var(--font-display); font-size: 1.5rem; color: var(--heading); text-align: center; margin-bottom: 2rem; }
.login-error { background: #fee2e2; color: #991b1b; font-size: 0.875rem; padding: 0.75rem 1rem; border-radius: 0.5rem; margin-bottom: 1.5rem; }

/* ----------------------------------------------------------
   14. Cookie consent
   ---------------------------------------------------------- */
.cookie-banner { display: none; position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 100; }
@media (min-width: 768px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 22rem; } }
.cookie-banner.show { display: block; }
.cookie-box { background: white; border-radius: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,0.1); border: 1px solid rgba(226,217,206,0.6); padding: 1.25rem; }
.cookie-icon-wrap { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 9999px; background: rgba(107,143,113,0.1); display: flex; align-items: center; justify-content: center; margin-top: 0.125rem; }
.cookie-icon-wrap svg { width: 1.125rem; height: 1.125rem; color: var(--sage); }
.cookie-header { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.cookie-title { font-size: 0.875rem; font-weight: 600; color: var(--heading); margin-bottom: 0.25rem; }
.cookie-text { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.cookie-text a { color: var(--sage); }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie-decline { flex: 1; font-size: 0.75rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 9999px; padding: 0.625rem; transition: color 0.2s; background: none; cursor: pointer; }
.cookie-decline:hover { color: var(--heading); }
.cookie-accept { flex: 1; font-size: 0.75rem; font-weight: 500; background: var(--sage); color: white; border: none; border-radius: 9999px; padding: 0.625rem; cursor: pointer; transition: background 0.2s; }
.cookie-accept:hover { background: var(--sage-dark); }

/* ----------------------------------------------------------
   15. Back link
   ---------------------------------------------------------- */
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); transition: color 0.2s; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--sage); }
.back-link svg { width: 1rem; height: 1rem; }

/* ----------------------------------------------------------
   16. Responsive helpers
   ---------------------------------------------------------- */
.text-muted { color: var(--muted); }
.text-sage { color: var(--sage); }
.text-heading { color: var(--heading); }
.font-display { font-family: var(--font-display); }
.italic { font-style: italic; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* German word-break overflow guard */
body { word-break: break-word; overflow-wrap: break-word; }
p, li, td, th, a, span, h1, h2, h3, h4, h5, h6 { hyphens: auto; -webkit-hyphens: auto; }

/* ----------------------------------------------------------
   17. Animations
   ---------------------------------------------------------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.animate-fade-in-up { animation: fadeInUp 0.7s ease forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.anim-stagger:nth-child(1) { animation-delay: 0.05s; }
.anim-stagger:nth-child(2) { animation-delay: 0.1s; }
.anim-stagger:nth-child(3) { animation-delay: 0.15s; }
.anim-stagger:nth-child(4) { animation-delay: 0.2s; }
.anim-stagger:nth-child(5) { animation-delay: 0.25s; }
.anim-stagger:nth-child(6) { animation-delay: 0.3s; }
.anim-stagger:nth-child(7) { animation-delay: 0.35s; }
.anim-stagger:nth-child(8) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Focus visible */
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 4px; }
