/**
 * Testseite Krypto-Bank (public/partials/banks/single.php), abgeleitet von taxtools/taxtool.css.
 */

/* Hero wie bei den Börsen: links Logo, Name und Kennzahlen, rechts ein Screenshot des Tools an der
   Stelle des Phone-Mockups. */
.kbk-hero {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 440px);
    gap: 40px;
    align-items: center;
}

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

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

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

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

.kbk-hero-image img {
    width: 100%;
    max-width: 440px;
    height: auto;
    aspect-ratio: 3 / 2;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    object-fit: cover;
    object-position: top left;
}

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

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

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

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

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

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

/* Die drei Zahlen, nach denen Leser Karten zuerst vergleichen */
.kbk-headline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0 0 18px;
}

.kbk-headline div {
    display: flex;
    flex-direction: column;
}

.kbk-headline .kb-label {
    margin: 0;
}

.kbk-headline strong {
    font-size: 20px;
}

.kbk-verdict {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
}

.kbk-gap {
    margin-top: 20px;
}

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

/* Kosten-Rechner */
.kbk-calc {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: var(--kb-gap);
    align-items: start;
    margin: 16px 0 12px;
}

.kbk-calc-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.kbk-calc-inputs label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.kbk-input {
    display: flex;
    gap: 6px;
    align-items: center;
    font-weight: 400;
}

.kbk-input input {
    width: 100%;
    max-width: 160px;
    padding: 9px 12px;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius-sm);
    background: var(--kb-bg, #fff);
    color: var(--kb-text);
    font: inherit;
    font-size: 16px; /* kein Zoom auf iOS */
}

.kbk-input input:focus {
    border-color: var(--kb-accent);
    outline: 2px solid var(--kb-accent-soft);
}

.kbk-calc-inputs .kbk-check {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    grid-column: 1 / -1;
    font-weight: 500;
}

.kbk-level {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
}

.kbk-level legend {
    margin-bottom: 6px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
}

.kbk-level label {
    flex-direction: row;
    gap: 6px;
    align-items: center;
    font-weight: 400;
}

.kbk-calc-result {
    padding: 18px 20px;
    border-radius: var(--kb-radius);
    background: var(--kb-accent-soft);
}

.kbk-calc-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 16px;
}

.kbk-calc-net {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 18px;
}

.kbk-calc-net strong {
    font-size: 24px;
}

.kbk-calc-net strong.is-plus {
    color: var(--kb-good);
}

.kbk-calc-net strong.is-minus {
    color: var(--kb-bad);
}

.kbk-calc-result .kb-note {
    margin: 8px 0 0;
}

/* Bedingungen */
.kbk-terms {
    margin: 6px 0 0;
    padding-left: 18px;
}

.kbk-terms li {
    margin-bottom: 6px;
}

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

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

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

.kbk-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;
}

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

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

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

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

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

/* Börse, Alternative, Nutzerstimmen */
.kbk-alt {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
}

.kbk-alt img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.kbk-alt {
    margin-top: 16px;
}

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

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

/* Galerie */
.kbk-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.kbk-gallery figure {
    margin: 0;
}

.kbk-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;
}

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

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

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

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

.kbk-checked summary {
    cursor: pointer;
}

.kbk-sticky-img {
    border-radius: var(--kb-radius-sm);
    object-fit: contain;
}

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

    .kbk-hero-image img {
        max-width: 360px;
    }
}

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

    .kbk-kpis,
    .kbk-calc-inputs {
        grid-template-columns: 1fr 1fr;
    }

    .kbk-calc-inputs label {
        font-size: 13px;
    }

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

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

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

/* Preis-Rechner: Hinweise unter den Eingaben */
.kbk-calc-inputs .kb-note {
    margin: 0;
    font-weight: 400;
}

/* Tariftabelle: passender Tarif markiert */
.kbk-plans tr.is-current th,
.kbk-plans tr.is-current td {
    background: var(--kb-good-soft);
    font-weight: 600;
}

.kbk-plans tr.is-current th::after {
    content: " ¹3";
    color: var(--kb-good);
}

/* Börsen aus unserem Vergleich */
.kbk-boersen {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}

.kbk-boerse img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    object-fit: contain;
    vertical-align: middle;
}

/* Partner-Börse im Hero */
.kbk-partner-link {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin: 14px 0 0;
    padding: 10px 14px;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius-sm);
    background: #fff;
    color: var(--kb-text);
    font-size: 14px;
    text-decoration: none;
}

.kbk-partner-link img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}

.kbk-partner-link:hover {
    border-color: var(--kb-accent);
}

.kbk-partner-go {
    margin-left: auto;
    color: var(--kb-accent);
    font-weight: 600;
    white-space: nowrap;
}

.kbk-status {
    margin: 0 auto 20px; /* auto: zentriert wie die Karten der .kb-page */
}

.kbk-withdraw {
    margin: 14px 0 0;
    padding: 12px 16px;
    border-left: 4px solid var(--kb-accent);
    border-radius: var(--kb-radius-sm);
    background: var(--kb-accent-soft);
}

.kbk-compare-product .kb-tile.is-current {
    border-color: var(--kb-accent);
    box-shadow: 0 0 0 1px var(--kb-accent);
}

.kbk-coins {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.kbk-related {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    margin: 12px 0 0;
}

.kbk-related img {
    width: 56px;
    height: auto;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.kbk-related .kb-note {
    margin: 2px 0 0;
}

@media (max-width: 600px) {
    .kbk-related {
        grid-template-columns: 44px 1fr;
    }

    .kbk-related img {
        width: 44px;
    }

    .kbk-related .kb-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .kbk-partner-go {
        margin-left: 0;
    }
}

.kbk-calc-inputs select,
.kbk-profile select {
    width: 100%; /* schrumpft auf dem Handy mit der Spalte statt sie zu verbreitern */
    min-width: 0;
    max-width: 220px;
    padding: 9px 12px;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius-sm);
    background: #fff;
    color: var(--kb-text);
    font: inherit;
    font-size: 16px; /* kein Zoom auf iOS */
    font-weight: 400;
}
