/* Einfach Haltbar – Hub Master LIVE v1.0.4
   Scope: only /category/doerren|fermentieren|einkochen|einlegen/ on production.
   Visual baseline: PASS Hub STAGING v0.1.8 + descender fix. */
body.eh-hub-master-draft-018{margin:0!important;background:var(--eh7-paper)!important;color:var(--eh7-ink)!important;overflow-x:hidden!important}
body.eh-hub-master-draft-018 *{box-sizing:border-box}
body.eh-hub-master-draft-018 .ehh-hub{font-family:var(--eh7-sans);background:var(--eh7-paper);color:var(--eh7-ink);overflow:hidden}
body.eh-hub-master-draft-018 .ehh-hub h1,body.eh-hub-master-draft-018 .ehh-hub h2,body.eh-hub-master-draft-018 .ehh-hub h3,body.eh-hub-master-draft-018 .ehh-hub p{margin:0}
body.eh-hub-master-draft-018 .ehh-hub a{text-decoration:none}

/* Hero — same cinematic grammar as the homepage, cluster-specific image/content. */
.ehh-hero{position:relative;isolation:isolate;min-height:490px;overflow:hidden;background:#092f28;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.ehh-hero-photo{position:absolute;inset:0;z-index:-3;background-image:var(--ehh-hero);background-position:62% 50%;background-size:cover;filter:saturate(.92) contrast(1.02) brightness(.93);transform:scale(1.01)}
.ehh-hero-overlay{position:absolute;inset:0;z-index:-2;background:radial-gradient(circle at 17% 45%,rgba(255,238,211,.10),transparent 34%),linear-gradient(90deg,rgba(4,32,25,.94) 0%,rgba(4,32,25,.80) 38%,rgba(4,32,25,.34) 68%,rgba(4,32,25,.08) 100%)}
.ehh-hero-copy{padding-top:76px;padding-bottom:62px;position:relative;z-index:1}
.ehh-eyebrow{font:850 9px/1.2 var(--eh7-sans);letter-spacing:.18em;color:#f3d4bf;text-transform:uppercase;margin-bottom:16px!important}
.ehh-hero h1{max-width:780px;font:700 clamp(58px,6.6vw,84px)/.91 var(--eh7-serif);letter-spacing:-.058em;color:#fff}
.ehh-hero h1 em{font-weight:500;font-style:italic;color:#f7f1e7}
.ehh-hero-copy>p:not(.ehh-eyebrow){max-width:610px;margin-top:21px!important;color:rgba(255,255,255,.88);font-size:15px;line-height:1.55}
.ehh-checks{display:flex;gap:8px;flex-wrap:wrap;margin-top:26px}
.ehh-checks span{display:inline-flex;align-items:center;min-height:28px;padding:0 11px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(3,44,34,.26);backdrop-filter:blur(8px);color:rgba(255,255,255,.86);font:780 9px/1 var(--eh7-sans)}

/* Intent — mirrors homepage decision logic, but keeps Hub IA focused. */
.ehh-intent{padding:38px 0 34px;background:var(--eh7-paper-2);border-bottom:1px solid var(--eh7-line)}
.ehh-intent-grid{display:grid;grid-template-columns:minmax(430px,.95fr) minmax(0,1.55fr);gap:18px;align-items:stretch}
.ehh-intent-grid--single-card{grid-template-columns:minmax(430px,.95fr) minmax(0,1.55fr)}
.ehh-intent-copy{padding:22px 22px 22px 2px;align-self:center}
.ehh-intent-copy h2{display:flex;flex-direction:column;gap:.03em;margin-top:10px!important;padding-bottom:.04em;font:700 clamp(30px,3vw,42px)/1.12 var(--eh7-serif);letter-spacing:-.045em;overflow:visible}
.ehh-intent-copy h2 span,.ehh-intent-copy h2 em{display:block;white-space:nowrap;overflow:visible}
.ehh-intent-copy h2 em{padding-bottom:.16em;line-height:1.16;font-weight:500;font-style:italic;background:var(--eh7-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.ehh-intent-copy>p:last-child{max-width:390px;margin-top:13px!important;color:var(--eh7-copy);font-size:12px;line-height:1.55}
.ehh-intent-card{position:relative;isolation:isolate;overflow:hidden;min-height:268px;padding:28px 30px;border-radius:21px;border:1px solid rgba(6,63,53,.15);display:flex;flex-direction:column;justify-content:flex-end;color:#fff!important;box-shadow:0 12px 30px rgba(23,55,45,.10);transition:transform .22s ease,box-shadow .22s ease}
.ehh-intent-card:before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--ehh-card);background-size:cover;background-position:center;filter:saturate(.90) contrast(1.02);transition:transform .45s ease}
.ehh-intent-card:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(3,45,35,.44) 0%,rgba(3,45,35,.28) 42%,rgba(3,45,35,.78) 100%)}
.ehh-intent-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(23,55,45,.15)}
.ehh-intent-card:hover:before{transform:scale(1.035)}
.ehh-intent-card small{font:850 8px/1.2 var(--eh7-sans);letter-spacing:.13em;color:#f4d4c0}
.ehh-intent-card strong{margin-top:18px;font:700 clamp(32px,3vw,46px)/.98 var(--eh7-serif);letter-spacing:-.035em;text-shadow:0 2px 14px rgba(0,0,0,.26);max-width:620px}
.ehh-pillar-title--nowrap{white-space:nowrap!important;max-width:none!important;font-size:clamp(32px,3vw,46px)!important}
.ehh-intent-card em{display:block;max-width:440px;margin-top:10px;font:500 11px/1.5 var(--eh7-sans);font-style:normal;color:rgba(255,255,255,.86)}
.ehh-intent-card span{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;min-height:40px;margin-top:17px;padding:0 14px;border-radius:999px;background:#fff;color:var(--eh7-green);font:850 10px/1 var(--eh7-sans);box-shadow:0 8px 18px rgba(0,0,0,.12)}

/* Start-here / pillar feature. */
/* Project grid — editorial bento, but still simple, readable, and touch-safe. */
.ehh-projects{padding:34px 0 38px;background:var(--eh7-paper-2);border-bottom:1px solid var(--eh7-line)}
.ehh-section-head{text-align:center;max-width:760px;margin:0 auto}
.ehh-section-head h2{margin-top:8px!important;font:700 clamp(38px,4.3vw,56px)/.98 var(--eh7-serif);letter-spacing:-.045em}
.ehh-section-head>p:last-child{margin-top:10px!important;color:var(--eh7-copy);font-size:12px}
.ehh-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px;align-items:stretch}
.ehh-project-card{position:relative;isolation:isolate;overflow:hidden;min-height:224px;border-radius:18px;border:1px solid rgba(6,63,53,.14);display:flex;color:#fff!important;box-shadow:0 12px 28px rgba(22,55,44,.09);transition:transform .22s ease,box-shadow .22s ease}
.ehh-project-card:before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--ehh-img);background-size:cover;background-position:center;filter:saturate(.90) contrast(1.04);transition:transform .45s ease}
.ehh-project-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(3,47,36,.10) 10%,rgba(3,47,36,.38) 46%,rgba(3,47,36,.95) 100%)}
.ehh-project-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(22,55,44,.15)}
.ehh-project-card:hover:before{transform:scale(1.04)}
.ehh-project-copy{width:100%;margin-top:auto;padding:18px;display:flex;flex-direction:column}
.ehh-project-copy small{font:850 8px/1.2 var(--eh7-sans);letter-spacing:.13em;color:#f2d3bf}
.ehh-project-copy strong{margin-top:7px;font:700 clamp(22px,2.2vw,31px)/1 var(--eh7-serif);letter-spacing:-.035em;color:#fff}
.ehh-project-copy em{max-width:390px;margin-top:8px;font:500 10px/1.42 var(--eh7-sans);font-style:normal;color:rgba(255,255,255,.84)}
.ehh-project-copy b{margin-top:12px;font:850 9px/1 var(--eh7-sans);color:#fff}
.ehh-project-grid[data-count="7"] .ehh-project-card:last-child{grid-column:2}
.ehh-project-grid[data-count="1"] .ehh-project-card:last-child{grid-column:2}
/* Next-method bridge — same visual role as homepage season stage. */
.ehh-bridge{padding:34px 0;background:#fff;border-bottom:1px solid var(--eh7-line)}
.ehh-bridge-card{position:relative;isolation:isolate;overflow:hidden;min-height:310px;border-radius:24px;background-image:var(--ehh-bridge);background-size:cover;background-position:center;box-shadow:0 16px 40px rgba(15,53,42,.10)}
.ehh-bridge-card:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(3,48,38,.94) 0%,rgba(3,48,38,.80) 40%,rgba(3,48,38,.28) 72%,rgba(3,48,38,.04) 100%)}
.ehh-bridge-copy{max-width:620px;padding:54px 48px;color:#fff}
.ehh-bridge-copy .eh7-kicker{color:#f0c6aa}
.ehh-bridge-copy h2{margin-top:9px!important;font:700 clamp(40px,4.7vw,61px)/.95 var(--eh7-serif);letter-spacing:-.05em;color:#fff}
.ehh-bridge-lastword{display:inline-block;white-space:nowrap}
.ehh-bridge-copy>p:not(.eh7-kicker){margin-top:14px!important;color:rgba(255,255,255,.86);font-size:13px;line-height:1.52}
.ehh-bridge-copy>a{display:inline-flex;align-items:center;justify-content:center;min-height:43px;margin-top:20px;padding:0 18px;border-radius:999px;background:#fff;color:var(--eh7-green)!important;font:850 11px/1 var(--eh7-sans);box-shadow:0 9px 22px rgba(0,0,0,.13)}

/* Preview must not inherit theme title/archive fragments. */
body.eh-hub-master-draft-018 .wp-site-blocks,body.eh-hub-master-draft-018 main.wp-block-group{max-width:none}

@media(max-width:980px){
  .ehh-intent-grid,.ehh-intent-grid--single-card{grid-template-columns:1fr}.ehh-intent-copy{grid-column:1/-1;text-align:center;padding:8px 40px 12px}.ehh-intent-copy>p:last-child{margin-inline:auto}
  .ehh-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
  body.eh-hub-master-draft-018{overflow-x:hidden!important}
  .ehh-hero{min-height:500px}
  .ehh-hero-photo{background-position:66% 50%}
  .ehh-hero-overlay{background:linear-gradient(180deg,rgba(3,39,30,.28) 0%,rgba(3,39,30,.56) 36%,rgba(3,39,30,.95) 78%,rgba(3,39,30,.98) 100%)}
  .ehh-hero-copy{padding:220px 18px 34px;width:100%!important}
  .ehh-eyebrow{font-size:8px}
  .ehh-hero h1{max-width:100%;font-size:clamp(42px,12vw,53px);line-height:.94;letter-spacing:-.052em}
  .ehh-hero-copy>p:not(.ehh-eyebrow){font-size:12px;line-height:1.5;margin-top:15px!important}
  .ehh-checks{gap:6px;margin-top:18px}.ehh-checks span{font-size:7.8px;padding-inline:9px}

  .ehh-intent{padding:24px 0 27px}.ehh-intent-grid,.ehh-intent-grid--single-card{width:min(100% - 26px,1180px)!important;grid-template-columns:1fr;gap:10px}.ehh-intent-copy{grid-column:auto;text-align:left;padding:3px 3px 8px}.ehh-intent-copy h2{font-size:clamp(27px,7.3vw,31px)}.ehh-intent-copy>p:last-child{margin-inline:0;font-size:11px}.ehh-intent-card{min-height:228px;padding:18px 18px 20px}.ehh-intent-card strong{margin-top:14px;font-size:28px}
  .ehh-pillar-title--nowrap{font-size:clamp(21px,5.9vw,26px)!important}.eh-hub-doerren .ehh-pillar-title--nowrap{font-size:clamp(17px,4.7vw,20px)!important;letter-spacing:-.045em!important}.ehh-intent-card em{font-size:10px}

  .ehh-projects{padding:29px 0 28px}.ehh-projects>.eh7-shell{width:min(100% - 26px,1180px)!important}.ehh-section-head{text-align:left}.ehh-section-head h2{font-size:36px}.ehh-section-head>p:last-child{font-size:10.5px}.ehh-project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:17px}.ehh-project-card{min-width:0;min-height:208px;border-radius:15px}.ehh-project-copy{padding:14px}.ehh-project-copy small{font-size:7px;letter-spacing:.10em}.ehh-project-copy strong{font-size:22px;line-height:1.02;overflow-wrap:anywhere}.ehh-project-copy em{font-size:9px;line-height:1.36}.ehh-project-copy b{font-size:8px}.ehh-project-grid[data-count="7"] .ehh-project-card:last-child,.ehh-project-grid[data-count="1"] .ehh-project-card:last-child{grid-column:auto}

  .ehh-bridge{padding:22px 0}.ehh-bridge-card{width:min(100% - 26px,1180px)!important;min-height:315px;border-radius:18px;background-position:63% center}.ehh-bridge-card:before{background:linear-gradient(180deg,rgba(3,48,38,.15),rgba(3,48,38,.78) 55%,rgba(3,48,38,.96) 100%)}.ehh-bridge-copy{padding:138px 18px 22px}.ehh-bridge-copy h2{font-size:39px}.ehh-bridge-copy>p:not(.eh7-kicker){font-size:11px}.ehh-bridge-copy>a{width:100%;min-height:48px}
}

@media(max-width:430px){
  .ehh-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ehh-project-card{min-height:196px}.ehh-project-grid[data-count="2"] .ehh-project-card{min-height:218px}
  .ehh-project-copy strong{font-size:20px}.ehh-project-copy em{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}

@media(max-width:360px){
  .ehh-project-grid{grid-template-columns:1fr}.ehh-project-card,.ehh-project-grid[data-count="2"] .ehh-project-card{min-height:224px}
}

@media(prefers-reduced-motion:reduce){.ehh-project-card,.ehh-project-card:before,.ehh-intent-card,.ehh-intent-card:before,.ehh-pillar-media img{transition:none!important}}


/* LIVE v1.0.10 – Kaufberatung final hero typography.
   Contract: exactly two H1 lines on desktop and mobile; stronger subline. */
body.eh-hub-kaufberatung .ehh-hub .ehh-hero.ehh-hero--kaufberatung .ehh-hero-copy .ehh-hero-title{
  max-width:920px!important;
  font-size:clamp(42px,3.7vw,54px)!important;
  line-height:.98!important;
  letter-spacing:-.048em!important;
  white-space:nowrap!important;
}
body.eh-hub-kaufberatung .ehh-hub .ehh-hero.ehh-hero--kaufberatung .ehh-hero-copy .ehh-hero-title em{
  display:block!important;
  margin-top:.10em!important;
  font-size:.98em!important;
  line-height:1.04!important;
  white-space:nowrap!important;
}
body.eh-hub-kaufberatung .ehh-hub .ehh-hero.ehh-hero--kaufberatung .ehh-hero-copy .ehh-hero-subline{
  max-width:700px!important;
  margin-top:26px!important;
  font-size:22px!important;
  line-height:1.42!important;
  font-weight:500!important;
  color:rgba(255,255,255,.94)!important;
}
@media(max-width:760px){
  body.eh-hub-kaufberatung .ehh-hub .ehh-hero.ehh-hero--kaufberatung .ehh-hero-copy .ehh-hero-title{
    max-width:100%!important;
    font-size:clamp(18px,5.15vw,22px)!important;
    line-height:1.02!important;
    letter-spacing:-.040em!important;
    white-space:nowrap!important;
  }
  body.eh-hub-kaufberatung .ehh-hub .ehh-hero.ehh-hero--kaufberatung .ehh-hero-copy .ehh-hero-title em{
    margin-top:.18em!important;
    font-size:1.28em!important;
    line-height:1.06!important;
    white-space:nowrap!important;
  }
  body.eh-hub-kaufberatung .ehh-hub .ehh-hero.ehh-hero--kaufberatung .ehh-hero-copy .ehh-hero-subline{
    max-width:100%!important;
    margin-top:18px!important;
    font-size:17px!important;
    line-height:1.48!important;
  }
}


/* LIVE v1.0.14 – Kaufberatung: four canonical purchase-help cards.
   The Airfryer practice guide lives only in the Dörren hub.
   Desktop uses two broad cards per row; tablet/mobile retain the frozen responsive rhythm. */
@media(min-width:981px){
  body.eh-hub-kaufberatung .ehh-project-grid[data-count="4"]{grid-template-columns:repeat(6,minmax(0,1fr))}
  body.eh-hub-kaufberatung .ehh-project-grid[data-count="4"] .ehh-project-card{grid-column:span 3}
}
