/* ===================================================================
   emmermehl.de — Design 2026
   Baut auf bootstrap.min.css (nur fuers Grid: .row/.col-md-*) auf.
   Nutzt ausschliesslich lokale System-Schriften (keine Web-Font-Ladung).
   =================================================================== */

:root{
  --ink:            #33301f;
  --charcoal:       #453f28;
  --paper:          #fdf9f0;
  --surface:        #f4ecd8;
  --surface-2:      #ecdfc0;
  --border:         #e0d2ab;
  --muted:          #7d7358;
  --accent:         #c99a2e;
  --accent-dark:    #9c7318;
  --accent-light:   #e8cf8f;
  --wheat:          #dcb44a;
  --star:           #c99a2e;
  --link:           #3f5d6b;
  --link-dark:      #2c434e;

  --font-head: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(51,48,31,.08);
  --shadow-md: 0 10px 30px -12px rgba(51,48,31,.28);

  /* Cookie-Consent-Plugin an die Markenfarben anpassen */
  --cmbgcolor: #33301f;
  --cmlinkcolor: #c99a2e;
}

*, *::before, *::after{ box-sizing: border-box; }

/* bootstrap.min.css setzt html{font-size:62.5%} fuer sein eigenes rem-Grid
   - das verzerrt alle rem-Werte in diesem Stylesheet. */
html{ font-size: 100%; scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  padding: 0;
}

h2{ font-size: 2rem; }
h3{ font-size: 1.35rem; }
h4{ font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-dark); font-family: var(--font-body); font-weight: 700; }

p{ margin: 0 0 1.1em; color: #453b2c; }

a{ color: var(--link); text-decoration: none; }
a:hover{ color: var(--accent-dark); text-decoration: underline; }

#content a{ color: var(--link); }
#content a:hover{ color: var(--accent-dark); }

::selection{ background: var(--accent); color: #fff; }
::-moz-selection{ background: var(--accent); color: #fff; }

ul{ padding-left: 1.2em; }
li{ margin-bottom: .3em; }

hr{ border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.clear{ clear: both; }

.container{ max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------
   Topbar + Header
   --------------------------------------------------------------- */

.topbar{ background: var(--ink); color: var(--accent-light); font-size: .82rem; }
.topbar-inner{ max-width: 1120px; margin: 0 auto; padding: 8px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar-inner a{ color: #fff; }
.topbar-inner a:hover{ color: var(--wheat); }

#header{ background: var(--paper); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner{ max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand{ font-family: var(--font-head); font-size: 1.5rem; text-decoration: none !important; display: flex; align-items: center; gap: 2px; }
.brand span{ color: var(--accent); }
.brand-logo{ display: block; margin-right: 4px; }
#header .brand{ color: var(--ink); }
#header .brand strong{ color: #000; }

#hornav ul{ list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
#hornav > ul > li{ position: relative; margin: 0; }
#hornav > ul > li > a,
#hornav > ul > li > span{ cursor: pointer; font-weight: 600; color: var(--ink); }
#hornav > ul > li > a:hover,
#hornav > ul > li:hover > span{ color: var(--accent); text-decoration: none; }

#hornav li ul{ display: none; position: absolute; top: 100%; left: 0; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); min-width: 240px; padding: 8px 0; flex-direction: column; align-items: stretch; gap: 0; }
#hornav li:hover > ul{ display: flex; }
#hornav li ul li{ margin: 0; }
#hornav li ul a{ display: block; padding: 8px 16px; font-weight: 400; white-space: nowrap; }
#hornav li ul a:hover{ background: var(--surface); text-decoration: none; }

/* Mega-Menu: Rezepte-Dropdown mit zwei Spalten (Herzhaft/Süß) */
#hornav .mega-menu{ min-width: 460px; padding: 16px 20px 8px; }
#hornav .mega-cols{ display: flex; flex-direction: row; gap: 28px; }
#hornav .mega-col{ flex: 1; }
#hornav .mega-heading{ display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; padding: 2px 0 8px; }
#hornav .mega-col ul{ display: block; position: static; background: none; border: none; box-shadow: none; padding: 0; min-width: 0; }
#hornav .mega-col ul li{ margin: 0; }
#hornav .mega-col ul a{ display: block; padding: 5px 0; font-weight: 400; white-space: nowrap; }
#hornav .mega-col ul a:hover{ background: none; color: var(--accent-dark); text-decoration: underline; }
#hornav .mega-footer{ border-top: 1px solid var(--border); margin-top: 8px; }
#hornav .mega-footer a{ display: block; padding: 10px 0; font-weight: 700; color: var(--accent-dark); }
#hornav .mega-footer a:hover{ background: none; color: var(--accent); }

.nav-toggle{ display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span{ width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---------------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------------- */

.breadcrumbs{ background: var(--surface); border-bottom: 1px solid var(--border); font-size: .82rem; }
.breadcrumbs ol{ list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li{ margin: 0; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after{ content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumbs a{ color: var(--muted); }
.breadcrumbs a:hover{ color: var(--accent-dark); text-decoration: underline; }
.breadcrumbs li[aria-current="page"]{ color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.home-hero, .page-hero{ position: relative; color: #fff; padding: 90px 0 70px; overflow: hidden; background: linear-gradient(135deg, var(--ink), var(--accent-dark)); }
.home-hero picture, .page-hero picture{ display: contents; }
.home-hero-bg, .page-hero-bg{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.home-hero-overlay, .page-hero-overlay{ position: absolute; inset: 0; background: linear-gradient(135deg, rgba(51,48,31,.55), rgba(156,115,24,.35)); }
.home-hero-inner, .page-hero-inner{ position: relative; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.page-hero{ padding: 60px 0; min-height: 350px; display: flex; align-items: center; }
.page-hero-inner{ width: 100%; }

.eyebrow{ display: inline-block; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; color: var(--accent-light); margin-bottom: 10px; font-weight: 700; }
.home-hero h1, .page-hero h1{ color: #fff; font-size: 2.4rem; max-width: 760px; }
.home-hero .lead{ color: #f3e9d3; max-width: 620px; font-size: 1.1rem; }
.page-hero p{ color: #f3e9d3; max-width: 620px; }

.home-hero-actions{ display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn{ display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none !important; }
.btn-primary{ background: var(--accent); border-color: var(--accent); color: #fff !important; }
.btn-primary:hover{ background: var(--wheat); border-color: var(--wheat); color: var(--ink) !important; }
.btn-ghost{ background: rgba(255,255,255,.12); color: #fff !important; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover{ background: rgba(255,255,255,.22); }
.btn-success{ background: var(--accent-dark); border-color: var(--accent-dark); color: #fff !important; width: 100%; text-align: center; margin-top: 10px; padding: 10px 16px; border-radius: var(--radius); }
.btn-success:hover{ background: var(--accent); border-color: var(--accent); }
.btn-success:focus, .btn-success:active, .btn-success.active{ background: #222124 !important; border-color: #0b0b0c !important; color: #fff !important; }

.hero-scroll{ position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #f3e9d3; font-size: .85rem; }

/* ---------------------------------------------------------------
   Content sections
   --------------------------------------------------------------- */

#content{ padding-top: 50px; padding-bottom: 50px; }

.intro-lead{ font-size: 1.15rem; color: var(--charcoal); font-weight: 600; }

.section{ padding: 60px 0; }
.section--surface{ background: var(--surface); }
.section--tight{ padding: 40px 0; }

.section-heading{ max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section-heading h4{ text-align:center; }

.stat-row{ display: flex; gap: 30px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.stat-row > div{ display: flex; flex-direction: column; }
.stat-num{ font-family: var(--font-head); font-size: 1.6rem; color: var(--accent-dark); font-weight: 700; }
.stat-label{ font-size: .85rem; color: var(--muted); }

/* Amazon / Ad-Card (Sidebar) */
.ad-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; text-align: center; }
.ad-card img{ max-width: 100%; border-radius: var(--radius); margin-bottom: 10px; }
.ad-label{ display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.stars{ color: var(--star); margin: 6px 0; }
.affiliate-note{ font-size: .78rem; color: var(--muted); }

/* Produkt-Boxen (Kaufberatung) */
.product-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 10px 0 40px; }
.product-card{ background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.product-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.product-figure{ aspect-ratio: 1/1; background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin: 0; padding: 16px; overflow: hidden; }
.product-figure img{ max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; transition: transform .3s ease; }
.product-card:hover .product-figure img{ transform: scale(1.06); }
.product-figure .placeholder{ color: var(--muted); font-size: .78rem; text-align: center; padding: 0 16px; }
.product-card .body{ padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-card h3{ font-size: 1.05rem; margin-bottom: 4px; }
.product-meta{ font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.product-tags{ margin-bottom: 8px; }
.product-tag{ display: inline-block; background: var(--surface-2); color: var(--accent-dark); font-size: .72rem; font-weight: 700; letter-spacing: .3px; padding: 2px 10px; border-radius: 999px; }
.product-card .desc{ flex: 1; margin-bottom: 14px; }

/* Card grid (Rezepte / Wissensartikel) */
.card-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 10px 0 40px; }
.card-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.salt-card, .recipe-card{ display: block; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; color: inherit !important; text-decoration: none !important; }
.salt-card:hover, .recipe-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.salt-card figure, .recipe-card figure{ margin: 0; position: relative; aspect-ratio: 3/2; background: var(--surface-2); }
.salt-card figure img, .recipe-card figure img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.salt-card figcaption, .recipe-card figcaption{ position: absolute; bottom: 8px; left: 8px; background: rgba(51,48,31,.75); color: #fff; font-size: .72rem; padding: 3px 10px; border-radius: 999px; }
.salt-card .body, .recipe-card .body{ padding: 16px; }
.salt-card h3, .recipe-card h3{ font-size: 1.1rem; margin-bottom: 8px; }
.card-link{ display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--link); font-size: .88rem; }
.card-link svg{ width: 16px; height: 16px; }

.recipe-meta{ display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.recipe-meta span{ display: inline-flex; align-items: center; gap: 4px; }

/* CTA band */
.cta-band{ background: var(--surface-2); border-radius: var(--radius); padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h3{ margin-bottom: 4px; }
.cta-band p{ margin: 0; }

/* Tables (Vergleiche) */
table.compare{ width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
table.compare th, table.compare td{ border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
table.compare th{ background: var(--surface); font-family: var(--font-head); }
table.compare tr:nth-child(even) td{ background: var(--surface); }

/* FAQ */
.faq-item{ border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h3{ font-size: 1.05rem; margin-bottom: 6px; }
.faq-item p{ margin-bottom: 0; }

/* Inline-Bild im Fließtext */
.content-img{ width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 1.5em 0; display: block; }

/* Callout / Tipp-Box */
.tip-box{ background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.5em 0; }
.tip-box p:last-child{ margin-bottom: 0; }

.warning-box{ background: #fbeee0; border-left: 4px solid #b9542a; border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.5em 0; }
.warning-box p:last-child{ margin-bottom: 0; }

/* Post navigation */
#sitenav{ margin-top: 30px; }
.postnav{ list-style: none; padding: 0; display: flex; justify-content: space-between; gap: 20px; }
.postnav li{ margin: 0; }
.postnav a{ display: block; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s ease; }
.postnav a:hover{ border-color: var(--link); text-decoration: none; }
.postnav a strong{ display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.postnav .next{ margin-left: auto; text-align: right; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.site-footer{ background: var(--ink); color: #cfc2a5; padding: 50px 0 20px; margin-top: 40px; }
.site-footer p{ color: #cfc2a5; }
.footer-grid{ display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4{ color: #fff; }
.footer-grid ul{ list-style: none; padding: 0; margin: 0; }
.footer-grid a{ color: #cfc2a5; }
.footer-grid a:hover{ color: var(--wheat); }
.footer-bottom{ display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: var(--muted); flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 991px){
  #hornav{ position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--border); display: none; box-shadow: var(--shadow-md); }
  #hornav.is-open{ display: block; }
  #hornav > ul{ flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; }
  #hornav > ul > li{ border-bottom: 1px solid var(--border); }
  #hornav li ul{ position: static; box-shadow: none; border: none; display: none; padding-left: 12px; }
  #hornav li.is-open > ul{ display: flex; }
  #hornav .mega-menu{ min-width: 0; padding: 8px 0 4px; }
  #hornav .mega-cols{ flex-direction: column; gap: 4px; }
  #hornav .mega-heading{ padding-top: 8px; }
  .nav-toggle{ display: flex; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
  .home-hero h1, .page-hero h1{ font-size: 1.8rem; }
  .footer-grid{ grid-template-columns: 1fr; }
  .postnav{ flex-direction: column; }
  .postnav .next{ text-align: left; }
  .card-grid.cols-3{ grid-template-columns: 1fr; }
}

/* 404-Seite */
.err404{ font-family: var(--font-head); font-size: 6rem; font-weight: 700; color: var(--accent); line-height: 1; margin: 20px 0 10px; }
