/* hotbytes Seitenkopf – Walldürn Gemeinsam (Facelift 11/2026) */
body .wgk{--petrol:#083A49;--rot:#D3280F;position:relative;background:var(--petrol);color:#fff;overflow:hidden;font-family:"Public Sans",system-ui,sans-serif;width:100%}
body .wgk *{box-sizing:border-box}
body .wgk .wgk-bild{position:absolute;top:0;bottom:0;left:40%;right:0}
body .wgk .wgk-bild img{width:100%;height:100%;object-fit:cover;object-position:center 30%;display:block;max-width:none}
body .wgk .wgk-bild::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--petrol) 0%,rgba(8,58,73,.6) 28%,rgba(8,58,73,0) 62%)}
body .wgk .wgk-wrap{position:relative;z-index:1;max-width:1180px;margin:0 auto;padding:calc(var(--wgk-kopf,120px) + 34px) 20px 44px;min-height:calc(var(--wgk-kopf,120px) + 230px);display:flex;flex-direction:column;justify-content:center}
body .wgk .wgk-krumen{font-size:14px;opacity:.85;margin-bottom:14px;color:#fff}
body .wgk .wgk-krumen a{color:#fff;text-decoration:none}
body .wgk .wgk-krumen a:hover{text-decoration:underline}
body .wgk .wgk-zeile{font-family:"Pacifico",cursive;font-size:clamp(20px,2.4vw,28px);color:#fff;opacity:.95;line-height:1.3;margin-bottom:2px}
body .wgk h1.wgk-titel{font-family:"Public Sans",system-ui,sans-serif;font-weight:800;font-size:clamp(30px,4.6vw,54px);line-height:1.06;letter-spacing:.01em;margin:0;color:#fff;max-width:620px;text-transform:none;overflow-wrap:break-word;hyphens:auto}
body .wgk .wgk-unter{font-size:clamp(16px,1.6vw,19px);margin:12px 0 0;max-width:540px;opacity:.92;color:#fff}
body .wgk:not(.wgk-mit-bild) .wgk-wrap{min-height:0}

@media (max-width:767px){
  body .wgk .wgk-bild{position:relative;left:0;height:220px;inset:auto}
  body .wgk .wgk-bild img{object-position:center 12%}
  body .wgk .wgk-bild::after{background:linear-gradient(180deg,rgba(8,58,73,0) 40%,var(--petrol) 100%)}
  body .wgk.wgk-mit-bild .wgk-wrap{padding-top:18px;min-height:0}
  body .wgk.wgk-mit-bild{padding-top:var(--wgk-kopf,90px)}
  body .wgk:not(.wgk-mit-bild) .wgk-wrap{padding-top:calc(var(--wgk-kopf,90px) + 24px)}
}

/* Handy: Überschriften im Inhalt dürfen nicht über den Rand ragen (JS verkleinert bei Bedarf) */
@media (max-width:767px){
  body.wg-facelift .elementor-heading-title{overflow-wrap:normal;hyphens:manual}
  body #page-hero::after{bottom:auto!important;top:10px}
}

/* Roter Hero (Vorlage 2028) – Handy-Variante: Foto oben frei, rotes Schild mit Titel darunter */
@media (max-width:767px){
  body.wg-facelift #page-hero{min-height:0!important;padding:calc(var(--wgk-kopf,0px) + max(200px,54vw)) 0 0 0!important;display:flex;flex-direction:column;justify-content:flex-start;background-position:center right!important;background-size:cover!important}
  body.wg-facelift #page-hero > .e-con-inner{padding:0!important}
  body.wg-facelift #page-hero .elementor-element-46375ff{min-height:0!important;padding:0!important;width:100%!important;background:none!important}
  body.wg-facelift #page-hero .elementor-element-46375ff::before,
  body.wg-facelift #page-hero .elementor-element-46375ff > .elementor-background-overlay{display:none!important}
  body.wg-facelift #page-hero .elementor-element-fb94836{background:#D3280F;border-radius:0 26px 0 0;width:calc(100% - 28px)!important;max-width:none!important;padding:18px 20px 20px!important;margin-top:-34px;position:relative;z-index:2;box-shadow:0 -6px 18px rgba(0,0,0,.12)}
  body.wg-facelift #page-hero .elementor-element-39ed970 .elementor-heading-title{font-size:26px!important;line-height:1.1!important;text-align:left!important}
  body.wg-facelift #page-hero::after{top:10px!important;bottom:auto!important}
}
