/* Wallet-Testseite: nur Wallet-Eigenes. Bausteine (Karten, Buttons, Tabellen …) aus kb-ui.css. */

/* Hero wie bei Börsen und Karten: links Logo, Name und Kennzahlen, rechts das Hauptbild an der
   Stelle des Phone-Mockups */
.wl-hero {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 340px);
    gap: 40px;
    align-items: center;
}

.wl-branding {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 14px;
}

.wl-branding .kb-h1 {
    margin: 0;
}

.wl-branding .kb-lead {
    margin: 6px 0 0;
}

.wl-hero-image {
    display: flex;
    justify-content: center;
}

.wl-hero-image img {
    max-width: 100%;
    max-height: 280px; /* hochformatige Geräte (z. B. SafePal X1) nicht höher als der Kopfbereich */
    width: auto;
    height: auto;
    object-fit: contain;
}

.wl-hero-body .kb-label {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
    color: var(--kb-accent-dark);
}

.wl-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 8px 0 20px;
}

.wl-kpi {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--kb-text);
    text-decoration: none;
}

.wl-kpi:hover {
    border-color: var(--kb-accent);
}

.wl-kpi .kb-note {
    margin: 0;
}

.wl-price {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
    margin-right: 6px;
}

.wl-price strong {
    font-size: 24px;
}

.wl-price .kb-note {
    flex-basis: 100%;
    margin: 0;
}

/* Das Wichtigste in Kürze */
.wl-verdict {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
}

/* Abstände innerhalb einer Karte */
.wl-gap {
    margin-top: 20px;
}

.wl-text p {
    margin: 0 0 14px;
}

/* Sicherheit */
.wl-security {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: var(--kb-gap);
    align-items: start;
}

.wl-trust-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.wl-trust-grade {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--kb-radius-sm);
    background: var(--kb-accent);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.wl-trust-part {
    margin-bottom: 10px;
}

.wl-trust-part .kb-note {
    display: block;
    margin-top: 3px;
}

.wl-trust-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 15px;
}

.wl-incident-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 2px;
}

.wl-incident-head .kb-note {
    margin: 0;
}

/* Einrichtung */
.wl-steps {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    counter-reset: wl-step;
}

.wl-steps li {
    position: relative;
    padding: 0 0 14px 44px;
    counter-increment: wl-step;
}

.wl-steps li::before {
    content: counter(wl-step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--kb-accent);
    color: #fff;
    font-weight: 700;
}

.wl-steps p {
    margin: 4px 0 0;
    color: #4b5563;
}

/* Alternative und Nutzerstimmen */
.wl-alt {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

.wl-alt img {
    object-fit: contain;
}

.wl-point {
    border-left: 4px solid var(--kb-good);
}

.wl-point--negative {
    border-left-color: var(--kb-bad);
}

/* Video */
.wl-video {
    position: relative;
    margin-top: 20px;
    padding-top: 56.25%;
    border-radius: var(--kb-radius);
    overflow: hidden;
    background: #111827;
}

.wl-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wl-logo {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: var(--kb-radius);
    object-fit: contain;
}

.wl-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.wl-gallery figure {
    margin: 0;
}

.wl-gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    background: #fff;
    overflow: hidden;
    cursor: zoom-in;
}

.wl-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.wl-gallery a:hover img,
.wl-gallery a:focus-visible img {
    transform: scale(1.04);
}

.wl-gallery figcaption {
    margin-top: 6px;
    color: var(--kb-muted);
    font-size: 13px;
    line-height: 1.4;
}

.wl-specs {
    max-width: 720px;
}

.wl-checked {
    margin: 0 auto 40px; /* .kb-note setzt sonst den linken Rand auf 0 */
}

.wl-checked summary {
    cursor: pointer;
}

/* Sticky-Leiste */
.wl-sticky-img {
    border-radius: var(--kb-radius-sm);
    object-fit: contain;
}

@media (max-width: 900px) {
    .wl-hero,
    .wl-security {
        grid-template-columns: 1fr;
    }

    .wl-hero-image img {
        max-height: 220px;
        width: auto;
    }
}

@media (max-width: 600px) {
    .wl-logo {
        width: 56px;
        height: 56px;
    }

    .wl-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .wl-alt {
        grid-template-columns: 48px 1fr;
    }

    .wl-alt .kb-btn {
        grid-column: 1 / -1;
    }

    .kb-sticky .sticky-title,
    .kb-sticky .kb-badge {
        display: none;
    }
}

/* E-E-A-T-Kasten oben in der rechten Spalte, auf Höhe der H1 */
.wl-hero-image {
    flex-direction: column;
    align-items: center;
    align-self: start;
}

