.knw-teh-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(7, 22, 37, 0.66);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.knw-teh-overlay.is-visible {
    display: flex;
}

.knw-teh-box {
    position: relative;
    width: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: #fff;
    color: #17202a;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), 0 2px 10px rgba(0, 0, 0, 0.12);
    animation: knw-teh-in .24s cubic-bezier(.2,.8,.2,1);
}

@keyframes knw-teh-in {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.knw-teh-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0 0 2px;
    border: 1px solid rgba(23, 32, 42, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #52616f;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.knw-teh-close:hover,
.knw-teh-close:focus-visible {
    background: #fff;
    color: #111820;
    transform: scale(1.05);
    outline: none;
}

.knw-teh-main {
    padding: 32px 36px 30px;
}

.knw-teh-has-image:not(.knw-teh-wide) .knw-teh-main {
    padding-top: 24px;
}

.knw-teh-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 158px;
    padding: 20px 30px 18px;
    border-bottom: 1px solid #dce8f2;
    background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,.92) 0 7%, transparent 8%),
        radial-gradient(circle at 84% 78%, rgba(255,255,255,.55) 0 10%, transparent 11%),
        linear-gradient(145deg, #edf7ff 0%, #dceefe 48%, #cfe5f8 100%);
}

.knw-teh-visual::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -78px;
    top: -92px;
    border-radius: 50%;
    background: rgba(30, 115, 190, 0.08);
}

.knw-teh-image-wrap {
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: center;
}

.knw-teh-image {
    display: block;
    max-width: 100%;
    max-height: 136px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 66, 108, 0.22);
}

.knw-teh-title {
    margin: 0 48px 12px 0;
    padding: 0;
    color: #17202a;
    font-size: 27px;
    font-weight: 750;
    line-height: 1.16;
    letter-spacing: -0.015em;
}

.knw-teh-content {
    color: #263442;
    font-size: 15.5px;
    line-height: 1.45;
}

.knw-teh-content p {
    margin: 0 0 12px;
}

.knw-teh-content p:first-child {
    color: #34495b;
    font-size: 16px;
}

.knw-teh-content p:last-child {
    margin-bottom: 0;
}

.knw-teh-content ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 14px 0 14px;
    padding: 0;
    list-style: none;
}

.knw-teh-content ul > li {
    position: relative;
    min-height: 25px;
    margin: 0;
    padding: 3px 0 2px 34px;
    line-height: 1.34;
}

.knw-teh-content ul > li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9f7ee;
    color: #14823b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.knw-teh-content ol {
    margin: 12px 0 14px;
    padding-left: 23px;
}

.knw-teh-content ol > li {
    margin: 5px 0;
}

.knw-teh-actions {
    margin-top: 18px;
}

.knw-teh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    box-sizing: border-box;
    padding: 11px 22px;
    border: 1px solid #1766a9;
    border-radius: 11px;
    background: linear-gradient(180deg, #2684d3 0%, #1e73be 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(30, 115, 190, 0.23);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.knw-teh-button::after {
    content: "→";
    margin-left: 9px;
    font-size: 18px;
    line-height: 1;
    transition: transform .15s ease;
}

.knw-teh-button:hover,
.knw-teh-button:focus-visible {
    filter: brightness(.97);
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(30, 115, 190, 0.29);
    outline: none;
}

.knw-teh-button:hover::after,
.knw-teh-button:focus-visible::after {
    transform: translateX(2px);
}

/* Bei ausreichend breitem, konfiguriertem Popup wird der Raum horizontal genutzt. */
.knw-teh-wide {
    display: grid;
    grid-template-columns: minmax(210px, 30%) minmax(0, 1fr);
    overflow: hidden;
}

.knw-teh-wide .knw-teh-visual {
    min-height: 100%;
    padding: 34px 28px;
    border-right: 1px solid #dce8f2;
    border-bottom: 0;
}

.knw-teh-wide .knw-teh-image {
    max-height: 210px;
}

.knw-teh-wide .knw-teh-main {
    min-width: 0;
    padding: 34px 38px 30px;
}

.knw-teh-wide .knw-teh-content ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

body.knw-teh-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .knw-teh-overlay {
        display: none !important;
    }
}


@media (max-height: 860px) and (min-width: 761px) {
    .knw-teh-visual {
        min-height: 148px;
        padding: 16px 28px 14px;
    }

    .knw-teh-image {
        max-height: 128px;
    }

    .knw-teh-main {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .knw-teh-title {
        margin-bottom: 10px;
        font-size: 25px;
    }

    .knw-teh-content p {
        margin-bottom: 10px;
    }

    .knw-teh-content ul {
        gap: 6px;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .knw-teh-actions {
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .knw-teh-box,
    .knw-teh-close,
    .knw-teh-button,
    .knw-teh-button::after {
        animation: none !important;
        transition: none !important;
    }
}
