
/* wgmh-social-tooltip-v2254 */
.wgmh-v17-social a,
.wgmh-v16-social a,
.wgmh-v15-social a{
    position:relative;
}
.wgmh-v17-social a::after,
.wgmh-v16-social a::after,
.wgmh-v15-social a::after{
    content:attr(data-wgmh-social-name);
    position:absolute;
    left:50%;
    bottom:calc(100% + 10px);
    z-index:20;
    transform:translate(-50%,6px);
    padding:7px 10px;
    border-radius:8px;
    background:#071820;
    color:#fff;
    font-size:12px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease,transform .18s ease;
    box-shadow:0 8px 22px rgba(0,0,0,.25);
}
.wgmh-v17-social a::before,
.wgmh-v16-social a::before,
.wgmh-v15-social a::before{
    content:"";
    position:absolute;
    left:50%;
    bottom:calc(100% + 4px);
    z-index:21;
    transform:translateX(-50%);
    border:6px solid transparent;
    border-top-color:#071820;
    opacity:0;
    transition:opacity .18s ease;
}
.wgmh-v17-social a:hover::after,
.wgmh-v17-social a:focus-visible::after,
.wgmh-v16-social a:hover::after,
.wgmh-v16-social a:focus-visible::after,
.wgmh-v15-social a:hover::after,
.wgmh-v15-social a:focus-visible::after{
    opacity:1;
    transform:translate(-50%,0);
}
.wgmh-v17-social a:hover::before,
.wgmh-v17-social a:focus-visible::before,
.wgmh-v16-social a:hover::before,
.wgmh-v16-social a:focus-visible::before,
.wgmh-v15-social a:hover::before,
.wgmh-v15-social a:focus-visible::before{
    opacity:1;
}

/* WGMH 227.4.4 – eigenständiger Startseiten-Chatbot */
.wgmh226-chat-panel{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:1000002;
    display:none;
    flex-direction:column;
    width:min(390px,calc(100vw - 24px));
    height:min(590px,calc(100vh - 44px));
    overflow:hidden;
    border:1px solid rgba(163,191,13,.55);
    border-radius:21px;
    background:#fff;
    box-shadow:0 26px 80px rgba(0,0,0,.38);
    font-family:var(--wgmh-font,"Aptos","Segoe UI",Arial,sans-serif);
}
.wgmh226-chat-panel.is-visible{display:flex!important}
.wgmh226-chat-head{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;background:#061b23;color:#fff}
.wgmh226-chat-head strong{display:block;color:#A3BF0D;font-size:16px}
.wgmh226-chat-head small{color:#aebdc1}
.wgmh226-chat-close{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:20px;cursor:pointer}
.wgmh226-chat-messages{flex:1;overflow:auto;padding:16px;background:#f4f7f8}
.wgmh226-chat-message{max-width:88%;margin:0 0 10px;padding:11px 13px;border-radius:14px;background:#fff;color:#23363f;font-size:14px;line-height:1.5;box-shadow:0 4px 12px rgba(16,37,45,.06)}
.wgmh226-chat-message.is-user{margin-left:auto;background:#e9f29b;color:#17252b}
.wgmh226-chat-message a{color:#607000;font-weight:900}
.wgmh226-chat-suggestions{display:flex;gap:6px;overflow:auto;padding:9px 12px;border-top:1px solid #dce4e6;background:#fff}
.wgmh226-chat-suggestions button{flex:0 0 auto;padding:7px 10px;border:1px solid #d5dee1;border-radius:999px;background:#fff;color:#33474f;font-size:12px;cursor:pointer}
.wgmh226-chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border-top:1px solid #dce4e6;background:#fff}
.wgmh226-chat-form input{min-width:0;height:42px;padding:0 13px;border:1px solid #cfdadd;border-radius:999px;font:inherit}
.wgmh226-chat-form button{width:42px;height:42px;border:0;border-radius:50%;background:#A3BF0D;color:#071820;font-weight:900;cursor:pointer}
.wgmh226-chat-privacy{padding:0 14px 11px;background:#fff;color:#7b8a90;font-size:10px}

/* Kundenlogin im Footer */
.wgmh-v17-login strong{display:block;margin-bottom:16px}
.wgmh-v17-login-button{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 18px!important;
    margin:0!important;
    border:1px solid #A3BF0D!important;
    border-radius:999px;
    color:#A3BF0D!important;
    font-weight:800;
    text-decoration:none;
    transition:background .18s ease,color .18s ease;
}
.wgmh-v17-login-button:hover{
    background:#A3BF0D!important;
    color:#071820!important;
}
@media(max-width:700px){
    .wgmh226-chat-panel{right:12px;bottom:12px;height:min(560px,calc(100vh - 24px))}
}

/* WGMH 227.4.4 – Footer sauber eingepasst */
body.wgmh-v17 .wgmh-v17-footer-grid{
    display:grid!important;
    grid-template-columns:minmax(250px,1.55fr) repeat(5,minmax(120px,1fr))!important;
    gap:clamp(18px,2vw,34px)!important;
    align-items:start!important;
}
body.wgmh-v17 .wgmh-v17-login{
    min-width:120px!important;
}
body.wgmh-v17 .wgmh-v17-login-button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:108px!important;
    min-height:42px!important;
    padding:0 16px!important;
    border:1px solid #A3BF0D!important;
    border-radius:999px!important;
    color:#A3BF0D!important;
    font-weight:800!important;
    text-decoration:none!important;
}
body.wgmh-v17 .wgmh-v17-login-button:hover{
    background:#A3BF0D!important;
    color:#071820!important;
}
@media(max-width:1180px){
    body.wgmh-v17 .wgmh-v17-footer-grid{
        grid-template-columns:minmax(230px,1.4fr) repeat(3,minmax(130px,1fr))!important;
    }
}
@media(max-width:780px){
    body.wgmh-v17 .wgmh-v17-footer-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
@media(max-width:520px){
    body.wgmh-v17 .wgmh-v17-footer-grid{
        grid-template-columns:1fr!important;
    }
}

/* WGMH 227.4.4 – Chatfenster öffnet rein über CSS */
.wgmh2265-chat-toggle{
    position:fixed!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    pointer-events:none!important;
}
#wgmh2265-chat-toggle:checked + #wgmh226-chat-panel{
    display:flex!important;
}
.wgmh184-ai-button{
    -webkit-user-select:none;
    user-select:none;
}
.wgmh226-chat-close{
    display:grid!important;
    place-items:center!important;
    line-height:1!important;
}

/* WGMH 227.4.4 – echter Link und :target */
body.wgmh-v17 .wgmh184-ai-button{
    position:relative!important;
    z-index:999999!important;
    pointer-events:auto!important;
    text-decoration:none!important;
    cursor:pointer!important;
}
body.wgmh-v17 .wgmh184-ai-button *{
    pointer-events:none!important;
}
#wgmh226-chat-panel:target,
#wgmh226-chat-panel.is-visible{
    display:flex!important;
}
#wgmh226-chat-panel.is-closed{
    display:none!important;
}
.wgmh226-chat-close{
    display:grid!important;
    place-items:center!important;
    line-height:1!important;
    text-decoration:none!important;
}

.wgmh226-chat-send{
    display:grid!important;
    place-items:center!important;
    width:44px!important;
    height:44px!important;
    padding:0!important;
    border:1px solid rgba(163,191,13,.95)!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,#A3BF0D,#A3BF0D)!important;
    color:#071820!important;
    box-shadow:0 7px 18px rgba(176,194,20,.28)!important;
    transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
.wgmh226-chat-send:hover,
.wgmh226-chat-send:focus-visible{
    transform:translateY(-1px)!important;
    box-shadow:0 10px 24px rgba(176,194,20,.36)!important;
    filter:brightness(1.03)!important;
    outline:none!important;
}
.wgmh226-chat-send:active{
    transform:translateY(0) scale(.97)!important;
}
.wgmh226-chat-send svg{
    width:22px!important;
    height:22px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:2.2!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}
.wgmh226-chat-message .wgmh-chat-result-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    margin-top:9px;
    padding:0 14px;
    border-radius:999px;
    background:#A3BF0D;
    color:#071820!important;
    font-weight:900!important;
    text-decoration:none!important;
}

/* WGMH 227.4.4 – Chatbot-Zugang bleibt auf Suchresultaten sichtbar */
body.wgmh-v17.wgmh-from-chat-results .wgmh184-ai-button{
    position:fixed!important;
    right:22px!important;
    bottom:22px!important;
    left:auto!important;
    top:auto!important;
    z-index:1000001!important;
    display:grid!important;
    width:205px!important;
    min-height:72px!important;
    flex:none!important;
    margin:0!important;
    box-shadow:0 16px 42px rgba(0,0,0,.34),0 0 24px rgba(163,191,13,.20)!important;
}
body.wgmh-v17.wgmh-from-chat-results .wgmh184-ai-button:hover{
    transform:translateY(-2px)!important;
}
@media(max-width:700px){
    body.wgmh-v17.wgmh-from-chat-results .wgmh184-ai-button{
        right:12px!important;
        bottom:12px!important;
        width:64px!important;
        min-height:64px!important;
        grid-template-columns:1fr!important;
        padding:9px!important;
        border-radius:50%!important;
    }
    body.wgmh-v17.wgmh-from-chat-results .wgmh184-ai-copy{
        display:none!important;
    }
}
