:root {
    --pw-blue: #3545b0;
    --pw-blue-light: #8796ff;
    --pw-green: #50c995;
    --pw-yellow: #e5bd3c;
    --pw-red: #ef6270;
}

body.pw-page {
    min-height: 100vh;
    display: block;
    padding: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(53, 69, 176, .16),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #080b0f 0%,
            #05070a 100%
        );
}

.pw-shell {
    width: min(calc(100% - 40px), 1120px);
    margin: 0 auto;
    padding: 34px 0 64px;
}

.pw-nav {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 76px;
}

.pw-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.pw-nav-meta {
    color: #5f6e79;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.pw-header {
    max-width: 950px;
    margin-bottom: 56px;
}

.pw-header h1 {
    margin-top: 20px;
    font-size: clamp(56px, 9vw, 112px);
    line-height: .84;
    letter-spacing: -.06em;
}

.pw-tagline {
    margin: 31px 0 0;
    color: var(--text);
    font-size: clamp(21px, 2.5vw, 29px);
    line-height: 1.35;
    font-weight: 620;
}

.pw-intro {
    max-width: 780px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.pw-panel,
.pw-info {
    overflow: hidden;
    background: rgba(12, 18, 24, .80);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.pw-panel {
    padding: 28px 30px 30px;
}

.pw-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.pw-kicker {
    color: var(--pw-blue-light);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .17em;
}

.pw-panel-head h2 {
    margin: 9px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.1;
}

.pw-local {
    padding: 7px 10px;
    color: var(--pw-green);
    background: rgba(80,201,149,.06);
    border: 1px solid rgba(80,201,149,.28);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.pw-mode-switch {
    display: inline-flex;
    gap: 5px;
    margin-top: 28px;
    padding: 4px;
    background: #080d12;
    border: 1px solid #202a32;
    border-radius: 10px;
}

.pw-mode {
    min-height: 36px;
    padding: 0 14px;
    color: #71808b;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.pw-mode.is-active {
    color: #fff;
    background: #3545b0;
}

.pw-result-box {
    margin-top: 20px;
    padding: 21px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    background:
        linear-gradient(
            110deg,
            rgba(53,69,176,.16),
            rgba(53,69,176,.025)
        );

    border: 1px solid rgba(53,69,176,.32);
    border-radius: 12px;
}

.pw-result-label {
    display: block;
    margin-bottom: 9px;
    color: #7483e1;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .14em;
}

#pw-output {
    display: block;
    color: #f0f3f5;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(15px, 2.3vw, 23px);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pw-result-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
}

.pw-result-actions button {
    min-height: 38px;
    padding: 0 12px;
    color: #aeb8c0;
    background: #0a1015;
    border: 1px solid #29343c;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
}

.pw-result-actions button:hover,
.pw-result-actions button:focus-visible {
    color: #fff;
    border-color: rgba(53,69,176,.7);
}

.pw-strength {
    margin-top: 18px;
}

.pw-strength-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #74828d;
    font-size: 10px;
}

.pw-strength-head strong {
    color: #d6dce1;
    font-weight: 850;
    letter-spacing: .08em;
}

.pw-strength-bar {
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    background: #111820;
    border-radius: 999px;
}

#pw-strength-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--pw-red);
    border-radius: inherit;
    transition: width 160ms ease;
}

#pw-strength-fill[data-level="solid"] {
    background: var(--pw-yellow);
}

#pw-strength-fill[data-level="strong"],
#pw-strength-fill[data-level="excellent"] {
    background: var(--pw-green);
}

#pw-strength-note {
    margin: 7px 0 0;
    color: #65747f;
    font-size: 10px;
}

.pw-options {
    margin-top: 26px;
    border-top: 1px solid var(--border);
}

.pw-option-row {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.pw-option-row label,
.pw-passphrase-grid > label > span {
    color: #dce2e7;
    font-size: 13px;
    font-weight: 720;
}

.pw-option-row p {
    margin: 5px 0 0;
    color: #697883;
    font-size: 11px;
}

.pw-length-control {
    flex: 0 0 min(360px, 45%);
    display: grid;
    grid-template-columns: minmax(180px,1fr) 48px;
    gap: 14px;
    align-items: center;
}

.pw-length-control input {
    width: 100%;
    accent-color: #3545b0;
}

.pw-length-control output {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c7d0d7;
    background: #080d12;
    border: 1px solid #26313a;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.pw-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    padding-top: 18px;
}

.pw-check {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: #0a1015;
    border: 1px solid #202a32;
    border-radius: 9px;
    cursor: pointer;
}

.pw-check input {
    width: 17px;
    height: 17px;
    accent-color: #3545b0;
}

.pw-check span {
    display: grid;
    gap: 3px;
}

.pw-check strong {
    color: #dce2e7;
    font-size: 12px;
}

.pw-check small {
    color: #65747f;
    font-size: 10px;
}

.pw-passphrase-grid {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) 1fr 1fr;
    gap: 10px;
    padding-top: 18px;
}

.pw-passphrase-grid > label:first-child {
    display: grid;
    gap: 9px;
}

.pw-passphrase-grid select {
    height: 46px;
    padding: 0 12px;
    color: #dce2e7;
    background: #080d12;
    border: 1px solid #26313a;
    border-radius: 8px;
    font: inherit;
}

.pw-check-inline {
    min-height: 70px;
}

.pw-info {
    margin-top: 24px;
    padding: 26px 30px 30px;
}

.pw-info h3 {
    margin: 8px 0 0;
    font-size: 20px;
}

.pw-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin-top: 20px;
}

.pw-info-grid p {
    margin: 0;
    padding: 15px 16px;
    color: #84939e;
    background: #0a1015;
    border: 1px solid #202a32;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.6;
}

.pw-info-grid strong {
    color: #e3e8ec;
}

.pw-footer {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #61707b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .10em;
}

.pw-footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pw-blue);
    box-shadow: 0 0 11px rgba(53,69,176,.9);
}

@media (max-width: 760px) {
    .pw-shell {
        width: min(calc(100% - 28px), 1120px);
        padding-top: 24px;
    }

    .pw-nav {
        margin-bottom: 52px;
    }

    .pw-nav-meta {
        display: none;
    }

    .pw-panel-head,
    .pw-result-box,
    .pw-option-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pw-result-actions {
        flex-wrap: wrap;
    }

    .pw-length-control {
        flex: none;
        width: 100%;
    }

    .pw-check-grid,
    .pw-info-grid,
    .pw-passphrase-grid {
        grid-template-columns: 1fr;
    }
}


/* V19: THOR warnt bei schwachen Passwörtern ------------------------- */

.pw-warning-card {
    margin-top: 22px;

    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.2fr);

    overflow: hidden;

    background:
        linear-gradient(
            115deg,
            rgba(239, 98, 112, .08),
            rgba(53, 69, 176, .08)
        );

    border: 1px solid rgba(239, 98, 112, .28);
    border-radius: 14px;
}

.pw-warning-card[hidden] {
    display: none !important;
}

.pw-warning-media {
    min-height: 270px;
    overflow: hidden;

    background: #080d12;
}

.pw-warning-image {
    width: 100%;
    height: 100%;
    min-height: 270px;

    display: block;

    object-fit: cover;
    object-position: center;
}

.pw-warning-content {
    padding: 28px 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pw-warning-kicker {
    color: #ef6270;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.pw-warning-content h3 {
    margin: 12px 0 0;

    color: #f0f3f5;

    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.04;
    letter-spacing: -.03em;
}

.pw-warning-content p {
    margin: 16px 0 0;

    max-width: 590px;

    color: #9aa7b1;

    font-size: 13px;
    line-height: 1.7;
}

.pw-warning-note {
    margin-top: 18px;
    padding: 13px 15px;

    color: #aeb8c0;
    background: rgba(255,255,255,.025);

    border-left: 3px solid #ef6270;

    font-size: 12px;
    line-height: 1.6;
}

.pw-warning-note strong {
    color: #eef1f4;
}

@media (max-width: 780px) {
    .pw-warning-card {
        grid-template-columns: 1fr;
    }

    .pw-warning-media {
        min-height: 220px;
        max-height: 300px;
    }

    .pw-warning-image {
        min-height: 220px;
        max-height: 300px;
    }

    .pw-warning-content {
        padding: 24px 22px;
    }
}


/* V20: THOR als dauerhafter Einstieg in den Generator --------------- */

#password-generator {
    scroll-margin-top: 24px;
}

.pw-thor-promo {
    margin-bottom: 24px;

    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            rgba(53, 69, 176, .13),
            rgba(53, 69, 176, .035)
        );

    border: 1px solid rgba(53, 69, 176, .38);
    border-radius: 18px;
}

.pw-thor-promo-media {
    min-height: 360px;
    overflow: hidden;

    background: #080d12;
}

.pw-thor-promo-image {
    width: 100%;
    height: 100%;
    min-height: 360px;

    display: block;

    object-fit: cover;
    object-position: center;
}

.pw-thor-promo-content {
    padding: 38px 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.pw-thor-promo-kicker {
    color: #8796ff;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.pw-thor-promo-content h2 {
    margin: 14px 0 0;

    max-width: 560px;

    color: #f1f4f6;

    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.pw-thor-promo-content p {
    margin: 20px 0 0;

    max-width: 580px;

    color: #9aa7b1;

    font-size: 14px;
    line-height: 1.7;
}

.pw-thor-promo-content strong {
    color: #eef1f4;
}

.pw-thor-promo-cta {
    min-height: 44px;

    margin-top: 24px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    gap: 14px;

    color: #fff;
    background: #3545b0;

    border: 1px solid rgba(135, 150, 255, .28);
    border-radius: 9px;

    text-decoration: none;

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;

    transition:
        transform 160ms ease,
        background 160ms ease;
}

.pw-thor-promo-cta:hover,
.pw-thor-promo-cta:focus-visible {
    transform: translateY(-1px);
    background: #4152c7;
}

.pw-thor-promo-cta:focus-visible {
    outline: 2px solid #8796ff;
    outline-offset: 3px;
}


/* alter V19-Warnblock wird nicht mehr verwendet --------------------- */

.pw-warning-card {
    display: none !important;
}


@media (max-width: 820px) {
    .pw-thor-promo {
        grid-template-columns: 1fr;
    }

    .pw-thor-promo-media {
        min-height: 260px;
        max-height: 380px;
    }

    .pw-thor-promo-image {
        min-height: 260px;
        max-height: 380px;
    }

    .pw-thor-promo-content {
        padding: 28px 24px 30px;
    }
}
