/* WECS Hinweisfenster */
html.whf-lock { overflow: hidden; }

dialog.whf-popup {
    border: 0;
    border-radius: .5rem;
    padding: 0;
    width: calc(100% - 2rem);
    max-width: 800px;
    max-height: calc(100% - 2rem);
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .3);
    color: inherit;
}
dialog.whf-popup.whf-size-sm { max-width: 400px; }
dialog.whf-popup.whf-size-md { max-width: 560px; }
dialog.whf-popup.whf-size-xl { max-width: 1140px; }
dialog.whf-popup::backdrop { background: rgba(0, 0, 0, .5); }
.whf-popup-inner { position: relative; padding: 2.5rem 1.5rem 1.5rem; }

.whf-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; }
.whf-body > :last-child { margin-bottom: 0; }
#wecs-hinweisfenster img,
#wecs-hinweisfenster video { max-width: 100%; height: auto; }
#wecs-hinweisfenster iframe { max-width: 100%; }

.whf-close {
    position: absolute;
    top: .25rem;
    right: .5rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: none;
    color: inherit;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    opacity: .6;
}
.whf-close:hover, .whf-close:focus-visible { opacity: 1; }
.whf-close:focus:not(:focus-visible) { outline: none; box-shadow: none; }

.whf-banner {
    background: var(--whf-bg, #333);
    color: var(--whf-color, #fff);
    position: relative;
    z-index: 1040;
}
.whf-banner[hidden] { display: none; }
.whf-banner a { color: inherit; text-decoration: underline; }
.whf-banner-inner { position: relative; padding: .6rem 3rem; text-align: center; }
.whf-banner .whf-title { font-size: 1rem; margin-bottom: .25rem; }
.whf-banner-bottom { position: fixed; left: 0; right: 0; bottom: 0; }

.whf-actions { margin-top: 1rem; text-align: center; }
.whf-banner .whf-actions { margin-top: .4rem; }
.whf-banner .whf-button { padding: .2rem .9rem; }
.whf-countdown { margin-top: .75rem; text-align: center; font-weight: 700; }
.whf-banner .whf-countdown { margin-top: .25rem; }
.whf-countdown-time { font-variant-numeric: tabular-nums; }
.whf-banner-inner:not(.whf-closable) { padding-left: 1rem; padding-right: 1rem; }
@media (max-width: 767.98px) {
    .whf-popup-inner { padding: 2.25rem 1rem 1rem; }
    .whf-banner-inner { padding: .5rem 2.75rem .5rem .75rem; text-align: left; }
}

/* Sprechblase */
.whf-bubble {
    position: fixed;
    z-index: 1045;
    width: 340px;
    max-width: calc(100vw - 1rem);
    background: var(--whf-bg, #fff);
    color: var(--whf-color, #212529);
    border-radius: 1rem;
    box-shadow: 0 .4rem 1.5rem rgba(0, 0, 0, .25);
    animation: whf-pop .35s ease-out;
    --whf-arrow: 2rem;
}
.whf-bubble[hidden] { display: none; }
.whf-bubble a:not(.btn) { color: inherit; text-decoration: underline; }
.whf-bubble-inner { position: relative; padding: 1rem 1.25rem; }
.whf-bubble-inner.whf-closable { padding-right: 2.5rem; }
.whf-bubble .whf-title { font-size: 1.05rem; margin-bottom: .4rem; }
.whf-bubble .whf-close { top: .1rem; right: .1rem; width: 2.25rem; height: 2.25rem; font-size: 1.5rem; }
.whf-bubble .whf-actions { margin-top: .75rem; }
.whf-bubble::after { /* Pfeil */
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    background: inherit;
    transform: rotate(45deg);
}
/* Ecken: über dem Cookie- bzw. „Nach oben“-Knopf des Templates, Pfeil zeigt nach unten zur Ecke */
.whf-bubble-bl { left: 1rem; bottom: 4.5rem; }
.whf-bubble-br { right: 1rem; bottom: 4.5rem; }
.whf-bubble-tr { right: 1rem; top: 1rem; }
.whf-bubble-bl::after { left: 1.5rem; bottom: -.45rem; }
.whf-bubble-br::after { right: 1.5rem; bottom: -.45rem; }
.whf-bubble-tr::after { display: none; }
/* an einem Element: Position setzt das Script, Pfeil auf die Elementmitte */
.whf-bubble-below::after { top: -.45rem; left: calc(var(--whf-arrow) - .5rem); }
.whf-bubble-above::after { bottom: -.45rem; left: calc(var(--whf-arrow) - .5rem); }
.whf-bubble-selector { top: 0; left: 0; }

/* Schwebender Knopf */
.whf-launch {
    position: fixed;
    z-index: 1035;
    display: flex;
    align-items: flex-start;
}
.whf-launch[hidden] { display: none; }
.whf-launch-btn {
    border: 0;
    border-radius: 2rem;
    padding: .6rem 1.2rem;
    background: var(--whf-bg, #333);
    color: var(--whf-color, #fff);
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .3);
    cursor: pointer;
    animation: whf-pop .35s ease-out;
}
.whf-launch-btn:hover { filter: brightness(1.12); }
.whf-launch-x {
    width: 1.6rem;
    height: 1.6rem;
    margin-left: -.6rem;
    margin-top: -.6rem;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .3);
    cursor: pointer;
    padding: 0;
}
.whf-launch-bl { left: 1rem; bottom: 4.5rem; }
.whf-launch-br { right: 1rem; bottom: 4.5rem; }
/* Lasche am Rand, senkrecht beschriftet */
.whf-launch-right, .whf-launch-left { top: 50%; transform: translateY(-50%); flex-direction: column; align-items: center; }
.whf-launch-right { right: 0; }
.whf-launch-left { left: 0; }
.whf-launch-right .whf-launch-btn, .whf-launch-left .whf-launch-btn { writing-mode: vertical-rl; padding: 1rem .55rem; }
.whf-launch-right .whf-launch-btn { border-radius: .5rem 0 0 .5rem; transform: rotate(180deg); }
.whf-launch-left .whf-launch-btn { border-radius: 0 .5rem .5rem 0; }
.whf-launch-right .whf-launch-x, .whf-launch-left .whf-launch-x { order: -1; margin: 0 0 .25rem; }
.whf-pulse .whf-launch-btn { animation: whf-pop .35s ease-out, whf-pulse 1.6s ease-out .4s 3; }

@keyframes whf-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes whf-pulse {
    0% { box-shadow: 0 0 0 0 var(--whf-bg, #333), 0 .25rem 1rem rgba(0, 0, 0, .3); }
    100% { box-shadow: 0 0 0 .9rem transparent, 0 .25rem 1rem rgba(0, 0, 0, .3); }
}
.whf-launch-right .whf-launch-btn { animation-name: whf-fade; }
.whf-launch-right.whf-pulse .whf-launch-btn { animation-name: whf-fade, whf-pulse; }
@keyframes whf-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .whf-bubble, .whf-launch-btn { animation: none !important; }
}
@media (max-width: 767.98px) {
    .whf-bubble-bl, .whf-bubble-br { left: .5rem; right: .5rem; width: auto; }
    .whf-launch-bl { left: .5rem; }
    .whf-launch-br { right: .5rem; }
}
