/* HWF Banner – Stylesheet
 * Styling wird manuell ergänzt.
 * Verfügbare Klassen:
 *   .hwf-banner         → <dialog>-Wrapper
 *   .hwf-banner__inner  → innerer Container
 *   .hwf-banner__close  → Schließen-Button
 */


.hwf-banner {
    display: none;
    background: #4ed578;
    
    position: absolute;
    left: .5em;
    top: .5em;

    padding-block: 7.125em 1em;

    clip-path: polygon(0% 7em, calc(100% - 9em) 0%, 100% 0%, 100% calc(100% - 5em), 70% 100%, 0% 100%);

    width: calc(100% - 2em);
    max-width: 595px;

    font-size: clamp(16px, 3svw, 20px);
   

    z-index: 3;

    border: none;
}

.hwf-banner[open] {
    display: flex;
}

.hwf-banner__logo {
    position: absolute;
    top: -6.125em;
    right: 1em;
    margin-left: auto;
    width: 6.75em;
}

@supports (left: 1cqw) {
    .hwf-banner__logo {
        right: auto;
        left: calc(100cqw - 11em);
    }
}

.hwf-banner__inner {
   /* margin-block: 23.17cqh 1.22cqh;
   margin-inline: 1.25cqw 28.875cqw; */
   position: relative;
   max-width: 390px;
}
   
    

.hwf-banner__inner > * {
    color: white;
}

.hwf-banner__inner h2,
.hwf-banner__inner h3,
.hwf-banner__inner h4 {
    font-weight: bold;
}

.hwf-banner__inner p {
    color: white;
    font-size: 1em;
    margin-block-end: .5em;
}


.hwf-banner__inner a {
    display: flex;
    justify-content: center;
    align-items: center;

    max-width: max-content;
    
    margin-inline-start: -2px;
    padding: .5em 0.75em;
    
    line-height: 1.2;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    border: 2px solid;
}

.hwf-banner__close {
    display: block;
    width: 100%;
    margin: 1em 0 0 0;
    padding: 0;
    background: none;
    border: none;
    font: inherit;
    font-size: .8em;
    letter-spacing: 0.012em;
    color: white;
    text-align: center;
    cursor: pointer;
}

.hwf-banner__close:hover {
    text-decoration: underline;
}

@media all and (width > 600px) {
    .hwf-banner {
        position: fixed;
        bottom: max(5svh, 1em);
        top: auto;

        margin-inline: 1em;
        padding-block:1em;
        clip-path: polygon(0% 22.20%, 50.85% 0.00%, 100% 0%, 100% 60.25%, 72.27% 99.35%, 0.00% 100%);
    }

    .hwf-banner__inner {
        margin:  23.17% 29.875% 1.22% 1.25%;
    }

    .hwf-banner__logo {
        position: absolute;
        right: -42%;
        left: auto;
        top: -30%;
        width: 6.75em;
    }
}

body:has(.hwf-banner[open]) .slide-caption {
    display: none;
}