/* Bootswerft Herbst – Header & Mega-Menü (Child-Theme) */
:root{
  --hb-navy:#203870;
  --hb-muted:#55708D;
  --hb-ink:#1E2A3B;
  --hb-line:#DDE3EA;
  --hb-surface:#F3F5F8;
  --hb-h:88px;
  --hb-h-small:66px;
  --hb-top:var(--wp-admin--admin-bar--height,0px);
}

/* Alte Logo-Bilder im Seitenkopf ausblenden (Logo sitzt jetzt im Header) */
.elementor-section-wrap > .elementor-section:first-child .elementor-widget-image:has(img[src*="logo-frei"]),
.elementor > .elementor-section:first-child .elementor-widget-image:has(img[src*="logo-frei"]){display:none!important}

/* Lesbarkeit Grundtext */
body{color:var(--hb-ink)}

.hb-header{position:sticky;top:var(--hb-top);z-index:1000;background:#fff;font-family:Lato,sans-serif;transition:box-shadow .25s ease}
.hb-header.hb-scrolled{box-shadow:0 6px 24px rgba(32,56,112,.10)}
.hb-inner{max-width:1280px;margin:0 auto;padding:0 28px;height:var(--hb-h);display:flex;align-items:center;gap:28px;transition:height .25s ease}
.hb-scrolled .hb-inner{height:var(--hb-h-small)}

.hb-logo{flex:0 0 auto;display:block;align-self:flex-start;margin-top:10px;position:relative;z-index:2;line-height:0}
.hb-logo img{display:block;height:118px;width:auto;transition:height .25s ease,margin .25s ease;filter:drop-shadow(0 4px 10px rgba(32,56,112,.18))}
.hb-scrolled .hb-logo{margin-top:6px}
.hb-scrolled .hb-logo img{height:54px;filter:none}

.hb-nav{flex:1 1 auto;display:flex;justify-content:flex-end}
.hb-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:4px}
.hb-item{position:relative}
.hb-link{display:flex;align-items:center;gap:6px;padding:10px 14px;font-size:15px;font-weight:700;letter-spacing:.01em;color:var(--hb-ink);text-decoration:none;border-radius:0;transition:color .2s ease,box-shadow .2s ease;white-space:nowrap}
.hb-link:hover,.hb-item:focus-within>.hb-link,.hb-item.hb-current>.hb-link{color:var(--hb-navy);box-shadow:inset 0 -2px 0 var(--hb-navy)}
.hb-chev{width:10px;height:10px;transition:transform .2s ease}
.hb-item.has-mega:hover .hb-chev,.hb-item.has-mega:focus-within .hb-chev{transform:rotate(180deg)}

.hb-phone{flex:0 0 auto;display:inline-flex;align-items:center;gap:10px;background:var(--hb-navy);color:#fff!important;font-weight:700;font-size:15px;text-decoration:none;padding:12px 22px;border-radius:3px;transition:background-color .2s ease,transform .1s ease;white-space:nowrap}
.hb-phone:hover{background:#18295a}
.hb-phone:active{transform:translateY(1px)}
.hb-phone svg{width:16px;height:16px}

/* Mega-Menü */
.hb-mega{position:absolute;top:calc(100% + 14px);left:50%;transform:translate(-50%,6px);width:min(960px,calc(100vw - 48px));background:#fff;border-radius:4px;box-shadow:0 18px 50px rgba(32,56,112,.18);padding:26px;opacity:0;visibility:hidden;transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s}
.hb-mega::before{content:"";position:absolute;left:0;right:0;top:-16px;height:16px}
.hb-item.has-mega:hover>.hb-mega,.hb-item.has-mega:focus-within>.hb-mega,.hb-item.has-mega.hb-open>.hb-mega{opacity:1;visibility:visible;transform:translate(-50%,0);transition-delay:0s}
.hb-mega-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:26px}
.hb-mega-label{margin:0 0 12px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--hb-muted)}
.hb-mega-list ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}
.hb-mega-list a{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px;padding:12px 14px;border-radius:3px;text-decoration:none;color:var(--hb-ink);transition:background-color .15s ease}
.hb-mega-list a:hover,.hb-mega-list a:focus,.hb-mega-list a.is-active{background:var(--hb-surface)}
.hb-mega-list .t{font-weight:700;font-size:15px;color:var(--hb-navy)}
.hb-mega-list .d{grid-column:1;font-size:13px;line-height:1.45;color:var(--hb-muted)}
.hb-mega-list .a{grid-row:1 / span 2;grid-column:2;width:14px;height:14px;color:var(--hb-muted);transition:transform .15s ease,color .15s ease}
.hb-mega-list a:hover .a,.hb-mega-list a.is-active .a{transform:translateX(3px);color:var(--hb-navy)}
.hb-mega-preview{display:flex;flex-direction:column}
.hb-mega-preview .img{aspect-ratio:4/3;border-radius:3px;overflow:hidden;background:var(--hb-surface)}
.hb-mega-preview img{width:100%;height:100%;object-fit:cover;display:block}
.hb-mega-preview .pt{margin:14px 0 4px;font-weight:700;font-size:16px;color:var(--hb-navy)}
.hb-mega-preview .pd{margin:0 0 14px;font-size:13px;line-height:1.45;color:var(--hb-muted)}
.hb-btn{align-self:flex-start;display:inline-block;background:var(--hb-navy);color:#fff!important;font-weight:700;font-size:14px;text-decoration:none;padding:0 0 3px;border-radius:0;background:none;color:var(--hb-navy)!important;border-bottom:2px solid var(--hb-navy)}
.hb-btn:hover{color:#18295a!important;border-bottom-color:transparent}
.hb-mega-tip{margin-top:20px;padding:14px 18px;border-radius:3px;background:var(--hb-surface);display:flex;align-items:center;gap:16px;justify-content:space-between}
.hb-mega-tip p{margin:0;font-size:14px;color:var(--hb-ink)}
.hb-mega-tip strong{color:var(--hb-navy)}
.hb-mega-tip a{font-weight:700;font-size:14px;color:var(--hb-navy);text-decoration:none;white-space:nowrap}
.hb-mega-tip a:hover{text-decoration:underline}

.hb-burger{display:none;margin-left:auto;width:46px;height:46px;border:1px solid var(--hb-line);border-radius:3px;background:#fff;align-items:center;justify-content:center;cursor:pointer;color:var(--hb-navy)}
.hb-burger svg{width:20px;height:20px}
.hb-sub-toggle{display:none}

/* Mobil / Tablet */
@media (max-width:1180px){
  .hb-inner{height:72px;gap:14px;padding:0 18px}
  .hb-logo img{height:84px}
  .hb-scrolled .hb-inner{height:62px}
  .hb-scrolled .hb-logo img{height:48px}
  .hb-burger{display:inline-flex;margin-left:0}
  .hb-phone{margin-left:auto}
  .hb-phone{padding:11px 16px}
  .hb-phone .hb-phone-txt{display:none}
  .hb-nav{position:fixed;left:0;right:0;top:calc(var(--hb-top) + 72px);bottom:0;background:#fff;display:block;overflow-y:auto;padding:12px 18px 40px;transform:translateX(100%);transition:transform .25s ease;border-top:1px solid var(--hb-line)}
  .hb-scrolled .hb-nav{top:calc(var(--hb-top) + 62px)}
  .hb-header.hb-open .hb-nav{transform:none}
  .hb-menu{flex-direction:column;align-items:stretch;gap:0}
  .hb-item{border-bottom:1px solid var(--hb-line);display:flex;flex-wrap:wrap;align-items:center}
  .hb-link{flex:1;font-size:17px;padding:16px 4px;border-radius:0;background:none!important;box-shadow:none!important}
  .hb-link .hb-chev{display:none}
  .hb-sub-toggle{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border:0;background:var(--hb-surface);border-radius:3px;color:var(--hb-navy);cursor:pointer}
  .hb-sub-toggle svg{width:12px;height:12px;transition:transform .2s ease}
  .hb-item.hb-open .hb-sub-toggle svg{transform:rotate(180deg)}
  .hb-mega{position:static;transform:none!important;width:100%;box-shadow:none;padding:0 0 12px;opacity:1;visibility:visible;display:none;transition:none}
  .hb-mega::before{display:none}
  .hb-item.has-mega:hover>.hb-mega,.hb-item.has-mega:focus-within>.hb-mega{display:none}
  .hb-item.has-mega.hb-open>.hb-mega{display:block}
  .hb-mega-grid{display:block}
  .hb-mega-label,.hb-mega-preview{display:none}
  .hb-mega-list ul{grid-template-columns:1fr}
  .hb-mega-tip{flex-direction:column;align-items:flex-start;margin-top:10px}
}
@media (max-width:480px){
  .hb-phone{padding:11px 13px}
}
@media (prefers-reduced-motion:reduce){
  .hb-header *,.hb-header{transition:none!important}
}

/* Startseite: Titelbild */
.hb-hero-title,.hb-hero-text{width:100%;max-width:none}
.hb-hero-title .elementor-heading-title{max-width:940px}
.hb-hero-text .elementor-widget-container,.hb-hero-text .elementor-text-editor{max-width:560px}
.hb-hero-text p{margin:0}
.hb-hero-note .elementor-widget-container,.hb-hero-note .elementor-text-editor{max-width:560px}
.hb-hero-note p{margin:0}


/* Mega-Menü rechtsbündig am Header statt mittig unter dem Menüpunkt (18.11.2026) */
@media (min-width:1181px){
.hb-inner{position:relative}
.hb-item.has-mega{position:static}
.hb-mega{left:auto;right:28px;top:calc(100% - 4px);transform:translate(0,6px);width:min(960px,calc(100% - 56px))}
.hb-item.has-mega:hover>.hb-mega,.hb-item.has-mega:focus-within>.hb-mega,.hb-item.has-mega.hb-open>.hb-mega{transform:translate(0,0)}
.hb-mega::before{top:-40px;height:40px}
}


/* Anfrageformular als weiße Karte (19.11.2026) */
.hb-anfrage{background:#fff;border-radius:6px;box-shadow:0 14px 40px rgba(32,56,112,.12);padding:30px 34px 26px}
.hb-anfrage:before{content:'Anfrage in 3 kurzen Schritten';display:block;font-family:Lato,sans-serif;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#203870;margin:0 0 14px}
.hb-anfrage .forminator-radio,.hb-anfrage .forminator-checkbox{background:#F8FAFC!important}
.hb-anfrage .forminator-radio.forminator-is_checked,.hb-anfrage .forminator-checkbox.forminator-is_checked{background:#EEF2F7!important}
.hb-anfrage .forminator-field-consent .forminator-checkbox{background:none!important}
.hb-anfrage .forminator-input,.hb-anfrage .forminator-textarea{background:#F8FAFC!important}
.hb-anfrage .forminator-input:focus,.hb-anfrage .forminator-textarea:focus{background:#fff!important}
.hb-anfrage .forminator-edit-module,.hb-anfrage .forminator-module-edit-link{display:none!important}
@media (max-width:767px){.hb-anfrage{padding:22px 18px 18px}}


/* ===== Eigener Footer (19.11.2026) ===== */
#footer.site-footer{background:transparent;padding:0}
.hb-footer{background:#0F1C3A;color:rgba(255,255,255,.72);font-family:Lato,sans-serif;font-size:15px;line-height:1.6}
.hb-footer a{color:rgba(255,255,255,.72);text-decoration:none;transition:color .15s ease}
.hb-footer a:hover,.hb-footer a:focus{color:#fff;text-decoration:underline;text-underline-offset:3px}
.hb-f-inner{max-width:1180px;margin:0 auto;padding:72px 28px 56px;display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:48px}
.hb-f-logo{display:inline-block;margin:0 0 18px}
.hb-f-logo img{display:block;width:120px;height:auto}
.hb-f-claim{margin:0 0 20px;max-width:320px}
.hb-f-adr{font-style:normal;margin:0 0 6px;color:#fff}
.hb-f-route{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#fff!important;margin:0 0 20px}
.hb-f-route svg{width:15px;height:15px}
.hb-f-tel{display:block;font-size:24px;font-weight:700;color:#fff!important;letter-spacing:.01em;margin:0 0 6px}
.hb-f-meta{list-style:none;margin:0;padding:0}
.hb-f-meta li{margin:0 0 2px}
.hb-f-h{margin:0 0 16px;color:#fff;font-size:15px;font-weight:700;letter-spacing:.02em}
.hb-f-col ul{list-style:none;margin:0;padding:0}
.hb-f-col li{margin:0 0 9px}
.hb-f-bottom{border-top:1px solid rgba(255,255,255,.12)}
.hb-f-bottom-inner{max-width:1180px;margin:0 auto;padding:20px 28px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 24px;font-size:14px}
.hb-f-bottom p{margin:0}
.hb-f-bottom ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 22px}
.hb-f-credit{color:rgba(255,255,255,.5)}
@media (max-width:1024px){.hb-f-inner{grid-template-columns:1fr 1fr;gap:40px 32px}.hb-f-brand{grid-column:1/-1}}
@media (max-width:600px){.hb-f-inner{grid-template-columns:1fr;padding:56px 22px 40px}.hb-f-bottom-inner{flex-direction:column;padding:20px 22px 28px}}

/* Uferlinie ueber dem Footer */
.hb-footer{position:relative}
.hb-f-ufer{position:absolute;left:0;right:0;bottom:100%;height:130px;margin-bottom:-1px;pointer-events:none;line-height:0}
.hb-f-ufer svg{display:block;width:100%;height:100%}
.site-main .elementor > .elementor-section.elementor-top-section:last-child,.site-main .elementor > .e-con:last-child{padding-bottom:150px!important}
body:not(.elementor-page) #main #content-wrap{padding-bottom:150px}
@media (max-width:767px){.hb-f-ufer{height:84px}.site-main .elementor > .elementor-section.elementor-top-section:last-child{padding-bottom:100px!important}body:not(.elementor-page) #main #content-wrap{padding-bottom:100px}}

/* Rechtstexte (Impressum, Datenschutz) */
.hb-recht h2{font-family:Lato,sans-serif;font-size:22px;font-weight:700;color:#203870;margin:34px 0 8px;line-height:1.3}
.hb-recht h2:first-child{margin-top:0}
.hb-recht p{margin:0 0 14px}
.hb-recht ul{margin:0 0 14px 20px}
.hb-recht a{color:#203870;text-decoration:underline}


/* Karten-Raster (Startseite u. a.), 20.11.2026 */
.hb-karten{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:10px}
.hb-karten.k5{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
@media (max-width:1180px){.hb-karten.k5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1024px){.hb-karten{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){.hb-karten,.hb-karten.k5{grid-template-columns:1fr;gap:22px}}
.hb-karte{background:#fff;border-radius:6px;box-shadow:0 10px 30px rgba(32,56,112,.10);overflow:hidden;display:flex;flex-direction:column;color:#1E2A3B;text-decoration:none!important;transition:box-shadow .2s ease}
.hb-karte:hover{box-shadow:0 14px 38px rgba(32,56,112,.18)}
.hb-karte img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;margin:0}
.hb-karte-body{display:flex;flex-direction:column;flex:1;padding:26px 28px 30px}
.hb-karte-meta{font-family:Lato,sans-serif;font-size:13px;line-height:1.35;text-transform:uppercase;letter-spacing:1px;color:#9D9D9D;margin:0 0 8px}
.hb-karte h3{font-family:Lato,sans-serif;font-size:22px;font-weight:600;line-height:1.2;color:#55708D;margin:0 0 12px}
.hb-karte p{font-family:Lato,sans-serif;font-size:16px;line-height:1.6;color:#1E2A3B;margin:0 0 14px;flex:1}
.hb-karte-link{font-family:Lato,sans-serif;font-size:16px;font-weight:700;color:#203870}
.hb-karte:hover .hb-karte-link{text-decoration:underline;text-underline-offset:3px}
.k5 .hb-karte-body{padding:20px 20px 24px}
.k5 .hb-karte h3{font-size:20px}
.k5 .hb-karte p{font-size:15px}
.hb-karten-hinweis{font-family:Lato,sans-serif;font-size:16px;color:#1E2A3B;margin:26px 0 0}
.hb-karten-hinweis a{color:#203870;font-weight:700}


/* Titelbild auf niedrigen Laptop-Bildschirmen kompakter (20.11.2026) */
@media (min-width:1025px) and (max-height:860px){
section.elementor-section[data-id$="hero"],section.elementor-section[data-id="bfe4615"]{padding-top:92px!important;padding-bottom:56px!important}
section.elementor-section[data-id$="hero"]>.elementor-container,section.elementor-section[data-id="bfe4615"]>.elementor-container{min-height:0!important}
[data-id$="hero-title"] .elementor-heading-title{font-size:44px!important}
[data-id$="hero-text"],[data-id$="hero-text"] p{font-size:17px!important}
[data-id$="hero-eyebrow"]{margin-bottom:10px!important}
[data-id$="hero-trust"]{margin-top:14px!important;padding-top:12px!important}
}
@media (min-width:1025px) and (max-height:720px){
[data-id$="hero-title"] .elementor-heading-title{font-size:38px!important}
[data-id$="hero-note"]{display:none!important}
}

/* Titelbild füllt auf dem Desktop genau den Bildschirm bis unten (20.11.2026) */
@media (min-width:1181px){
section.elementor-section[data-id$="hero"]>.elementor-container,section.elementor-section[data-id="bfe4615"]>.elementor-container{min-height:calc(100vh - var(--hb-h) - var(--hb-top) - 220px)!important}
}
@media (min-width:1181px) and (max-height:860px){
section.elementor-section[data-id$="hero"]>.elementor-container,section.elementor-section[data-id="bfe4615"]>.elementor-container{min-height:calc(100vh - var(--hb-h) - var(--hb-top) - 148px)!important}
}

/* Bootsklassen-Karten: wie die übrigen Karten 3 pro Reihe, Rest mittig (20.11.2026) */
.hb-karten.k5{display:flex;flex-wrap:wrap;justify-content:center;gap:28px}
.hb-karten.k5 .hb-karte{flex:0 1 calc((100% - 56px)/3)}
.k5 .hb-karte-body{padding:26px 28px 30px}
.k5 .hb-karte h3{font-size:22px}
.k5 .hb-karte p{font-size:16px}
.hb-karte h3{overflow-wrap:normal;word-break:normal;hyphens:manual}
@media (max-width:1024px){.hb-karten.k5 .hb-karte{flex-basis:calc((100% - 28px)/2)}}
@media (max-width:767px){.hb-karten.k5{gap:22px}.hb-karten.k5 .hb-karte{flex-basis:100%}}

/* Karten: einheitliche Bildhoehe 16:10, Link immer unten (21.11.2026) */
.elementor-widget-image[data-id^="art-"][data-id$="-bild"] img,
.elementor-widget-image[data-id^="projekt-"][data-id$="-bild"] img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:center}
.elementor-section[data-id="arten"] .elementor-column > .elementor-widget-wrap,
.elementor-section[data-id="projekte"] .elementor-column > .elementor-widget-wrap{display:flex;flex-direction:column;flex-wrap:nowrap}
.elementor-section[data-id="arten"] .elementor-widget[data-id$="-link"],
.elementor-section[data-id="projekte"] .elementor-widget[data-id$="-link"]{margin-top:auto}
