/*
Theme Name: JARABAR GeneratePress Child
Theme URI: https://jarabar.com/
Author: Richard Alexander
Author URI: https://jarabar.com/
Description: GeneratePress-Childtheme für JARABAR: Fermentieren, Sauerteig, Einkochen und Einlegen.
Template: generatepress
Version: 1.7.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jarabar
Tags: blog, food-and-drink, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --jb-olive: #394313;
  --jb-olive-2: #566323;
  --jb-gold: #c59322;
  --jb-gold-dark: #9c6e12;
  --jb-cream: #f7f1df;
  --jb-paper: #fffdf7;
  --jb-ink: #23250f;
  --jb-muted: #696a58;
  --jb-line: #e4dcc4;
  --jb-danger: #8e352d;
  --jb-radius: 18px;
  --jb-shadow: 0 16px 44px rgba(45, 49, 15, .10);
  --jb-width: 1180px;
  --jb-reading: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jb-ink);
  background: var(--jb-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--jb-olive-2); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--jb-gold-dark); }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; clip: auto; margin: 8px; padding: 12px 18px;
  background: #fff; color: #000; z-index: 100000;
}
.site-shell { width: min(calc(100% - 40px), var(--jb-width)); margin-inline: auto; }
.reading-shell { width: min(calc(100% - 40px), var(--jb-reading)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255, 253, 247, .95);
  border-bottom: 1px solid var(--jb-line); backdrop-filter: blur(12px);
}
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; min-width: 230px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: min(360px, 31vw); max-height: 74px; object-fit: contain; object-position: left center; }
.brand-fallback { color: var(--jb-olive); font-family: Georgia, serif; font-size: 2rem; font-weight: 800; letter-spacing: .07em; text-decoration: none; }
.menu-toggle { display: none; padding: 10px 14px; border: 1px solid var(--jb-line); border-radius: 10px; background: #fff; color: var(--jb-ink); }
.primary-menu, .footer-menu { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: var(--jb-ink); font-size: .93rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a { color: var(--jb-gold-dark); }

.hero { overflow: hidden; background: linear-gradient(135deg, #f4ecd3, #fffdf7 62%); border-bottom: 1px solid var(--jb-line); }
.hero-inner { min-height: 540px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 52px; padding-block: 70px; }
.eyebrow { display: inline-block; color: var(--jb-gold-dark); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, h4 { color: var(--jb-ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.18; }
.hero h1 { margin: 14px 0 20px; font-size: clamp(2.7rem, 6vw, 5.3rem); letter-spacing: -.035em; }
.hero-copy { max-width: 640px; color: #4f503e; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 21px; border: 2px solid var(--jb-olive); border-radius: 999px; background: var(--jb-olive); color: #fff; font-weight: 800; text-decoration: none; }
.button:hover { background: var(--jb-gold-dark); border-color: var(--jb-gold-dark); color: #fff; }
.button-secondary { background: transparent; color: var(--jb-olive); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 34% 14% 30% 12%; box-shadow: var(--jb-shadow); }
.hero-badge { position: absolute; left: -22px; bottom: 22px; width: 118px; height: 118px; display: grid; place-items: center; padding: 16px; border-radius: 50%; background: var(--jb-gold); color: #25240f; font-family: Georgia, serif; font-size: .86rem; font-weight: 800; line-height: 1.2; text-align: center; transform: rotate(-6deg); }

.section { padding-block: 76px; }
.section-alt { background: var(--jb-cream); }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading h2 { margin: 8px 0 12px; font-size: clamp(2rem, 4vw, 3.35rem); }
.section-heading p { margin: 0; color: var(--jb-muted); }
.cluster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cluster-card { position: relative; overflow: hidden; min-height: 330px; display: flex; align-items: end; border-radius: var(--jb-radius); background: var(--jb-olive); box-shadow: var(--jb-shadow); }
.cluster-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .35s ease; }
.cluster-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 28%, rgba(20, 24, 7, .88)); }
.cluster-card:hover img { transform: scale(1.035); }
.cluster-card-content { position: relative; z-index: 1; padding: 24px; color: #fff; }
.cluster-card h3 { margin: 7px 0; color: #fff; font-size: 1.6rem; }
.cluster-card p { margin: 0; font-size: .9rem; line-height: 1.45; opacity: .9; }
.cluster-card a { color: inherit; text-decoration: none; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--jb-line); border-radius: var(--jb-radius); background: #fff; box-shadow: 0 8px 28px rgba(44, 47, 17, .06); }
.post-card-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--jb-cream); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover img { transform: scale(1.025); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.post-card h2, .post-card h3 { margin: 7px 0 12px; font-size: 1.45rem; }
.post-card h2 a, .post-card h3 a { color: var(--jb-ink); text-decoration: none; }
.post-card p { margin: 0 0 18px; color: var(--jb-muted); font-size: .94rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--jb-muted); font-size: .78rem; }
.post-card .read-more { margin-top: auto; font-size: .88rem; font-weight: 800; }

.breadcrumb { padding-block: 22px; color: var(--jb-muted); font-size: .82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #aaa58e; }
.article-header { padding: 35px 0 42px; text-align: center; }
.article-header h1 { max-width: 960px; margin: 14px auto 18px; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.025em; }
.article-header .post-meta { justify-content: center; }
.featured-wrap { width: min(calc(100% - 40px), 1080px); margin: 0 auto 52px; }
.featured-wrap img { width: 100%; max-height: 680px; object-fit: cover; border-radius: 24px; box-shadow: var(--jb-shadow); }

.article-layout { display: grid; grid-template-columns: minmax(0, var(--jb-reading)) 280px; justify-content: center; gap: 58px; width: min(calc(100% - 40px), var(--jb-width)); margin-inline: auto; }
.entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin: 2.4em 0 .65em; font-size: clamp(1.8rem, 3.5vw, 2.55rem); }
.entry-content h3 { margin: 1.8em 0 .5em; font-size: 1.45rem; }
.entry-content p, .entry-content li { color: #343525; }
.entry-content a { font-weight: 650; }
.entry-content .quick, .entry-content .tip, .entry-content .safety { margin: 28px 0; padding: 22px 24px; border: 1px solid #d9c993; border-left: 5px solid var(--jb-gold); border-radius: 12px; background: #fcf7e7; }
.entry-content .safety { border-color: #dcb9b6; border-left-color: var(--jb-danger); background: #fff5f4; }
.entry-content .editorial-note { margin: 22px 0 34px; padding: 16px 18px; border-radius: 10px; background: #f3f0e5; color: var(--jb-muted); font-size: .92rem; }
.entry-content .sources { margin-top: 52px; padding: 24px; border: 1px solid var(--jb-line); border-radius: 14px; background: #faf7ed; }
.entry-content .sources h2 { margin-top: 0; font-size: 1.55rem; }
.entry-content .sources p, .entry-content .sources li { font-size: .92rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry-content th, .entry-content td { padding: 11px 12px; border: 1px solid var(--jb-line); text-align: left; }
.entry-content th { background: var(--jb-cream); }
.article-sidebar { align-self: start; position: sticky; top: 122px; }
.toc { padding: 22px; border: 1px solid var(--jb-line); border-radius: 14px; background: #fff; }
.toc h2 { margin: 0 0 12px; font-family: inherit; font-size: .9rem; letter-spacing: .09em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 20px; font-size: .82rem; line-height: 1.45; }
.toc a { color: var(--jb-muted); text-decoration: none; }
.toc a:hover { color: var(--jb-gold-dark); }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 18px; margin: 54px 0 24px; padding: 25px; border-radius: 16px; background: var(--jb-cream); }
.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0 0 5px; font-size: 1.25rem; }
.author-box p { margin: 0; font-size: .9rem; }
.related { margin-top: 70px; padding-top: 46px; border-top: 1px solid var(--jb-line); }

.archive-header { padding: 72px 0 38px; background: var(--jb-cream); }
.archive-header h1 { margin: 8px 0 10px; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.archive-header p { max-width: 720px; color: var(--jb-muted); }
.pagination { margin-top: 46px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { min-width: 42px; padding: 8px 12px; border: 1px solid var(--jb-line); border-radius: 8px; text-align: center; text-decoration: none; }
.page-numbers.current { background: var(--jb-olive); color: #fff; }

.site-footer { margin-top: 80px; background: #252b0d; color: #eef0dc; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 54px; padding-block: 62px; }
.footer-logo { width: 300px; max-width: 100%; filter: brightness(1.15); }
.site-footer h2 { color: #fff; font-family: inherit; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: #f4e4ae; }
.footer-menu { align-items: flex-start; flex-direction: column; gap: 8px; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); color: #cfd1b6; font-size: .8rem; }

.notice, .no-results { padding: 28px; border: 1px solid var(--jb-line); border-radius: var(--jb-radius); background: #fff; }
.page-content { padding-block: 52px; }
.page-content .entry-content { width: min(calc(100% - 40px), var(--jb-reading)); margin-inline: auto; }
.search-form { display: flex; max-width: 620px; gap: 10px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 14px; border: 1px solid var(--jb-line); border-radius: 10px; background: #fff; }
.search-submit { padding: 12px 18px; border: 0; border-radius: 10px; background: var(--jb-olive); color: #fff; font-weight: 800; }
.html-sitemap ul { columns: 2; column-gap: 38px; }
.html-sitemap li { break-inside: avoid; margin-bottom: 8px; }
.alignwide { width: min(100vw - 40px, 1040px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .primary-navigation { position: absolute; left: 20px; right: 20px; top: 84px; display: none; padding: 18px; border: 1px solid var(--jb-line); border-radius: 14px; background: #fff; box-shadow: var(--jb-shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 4px; }
  .primary-menu a { display: block; padding: 10px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 720px; }
  .cluster-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, var(--jb-reading)); }
  .article-sidebar { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-shell, .reading-shell, .featured-wrap, .article-layout { width: min(calc(100% - 28px), var(--jb-width)); }
  .header-inner { min-height: 76px; }
  .custom-logo { width: min(250px, 62vw); max-height: 58px; }
  .primary-navigation { top: 72px; left: 14px; right: 14px; }
  .hero-inner { min-height: auto; gap: 34px; padding-block: 48px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-badge { left: 8px; width: 96px; height: 96px; }
  .section { padding-block: 54px; }
  .cluster-grid, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .html-sitemap ul { columns: 1; }
  .cluster-card { min-height: 310px; }
  .article-header { padding-top: 20px; }
  .article-header h1 { font-size: 2.45rem; }
  .featured-wrap { margin-bottom: 36px; }
}

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


/* JARABAR 1.7 topical-authority navigation */
.jarabar-topic-path { margin: 1.5rem 0 2rem; padding: 1rem 1.15rem; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; background: rgba(255,255,255,.58); }
.jarabar-topic-path p { margin: .35rem 0; }
.jarabar-topic-path ul { margin: .65rem 0 .25rem 1.2rem; }
.jarabar-topic-path li { margin: .25rem 0; }
.jarabar-topic-path a { font-weight: 600; }
