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

/* Hero wie bei den Börsen: links Logo, Name und Kennzahlen, rechts die Karte an der Stelle des
   Phone-Mockups. Kartenbild im Kartenformat (ISO/IEC 7810 ID-1, 85,6 × 54 mm). */
.kc-hero {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 380px);
    gap: 40px;
    align-items: center;
}

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

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

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

.kc-hero-card {
    display: flex;
    justify-content: center;
    perspective: 900px;
}

/* Karte schräg im Raum; beim Hovern richtet sie sich auf, dabei wandert ein Lichtreflex passend zur Drehung
   von links nach rechts über die Oberfläche (Nutzer 13.10.: „Reflexionseffekt … noch edler“) */
.kc-card-3d {
    position: relative;
    display: block;
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
    transform: rotateY(-12deg) rotateZ(-4deg);
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.7s ease;
}

.kc-card-3d img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 85.6 / 54;
    border-radius: inherit;
    object-fit: cover;
}

/* Dauerhafter, dezenter Glanz wie auf lackierter Karte */
.kc-card-3d::before,
.kc-card-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.kc-card-3d::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0) 60%);
}

/* Glanzstreifen, an die Drehung gekoppelt: gleiche Dauer und Kurve wie die Drehung. Schräg liegt er am linken
   Rand, beim Aufrichten gleitet er über die Fläche nach rechts, beim Zurückkippen zurück – wie Licht, das über
   eine lackierte Karte wandert. Kein Ein-/Ausblenden, kein Mauszeiger-Effekt. */
.kc-card-3d::after {
    background: linear-gradient(115deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.07) 40%,
        rgba(255, 255, 255, 0.26) 46%,
        rgba(255, 255, 255, 0.34) 47.5%,
        rgba(255, 255, 255, 0.12) 52%,
        rgba(255, 255, 255, 0) 62%);
    background-size: 300% 100%;
    background-position: 68% 0;
    mix-blend-mode: screen;
    transition: background-position 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.kc-card-3d:hover {
    transform: none;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
}

/* Ende: Streifen ist rechts hinausgelaufen, die gerade Karte liegt klar (Logos nicht überstrahlt) */
.kc-card-3d:hover::after {
    background-position: 10% 0;
}

@media (prefers-reduced-motion: reduce) {
    .kc-card-3d,
    .kc-card-3d::after {
        transition: none;
    }
}

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

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

/* Verweis auf die Börse im Hero */
.kc-boerse-link {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    margin: 0 0 14px;
    padding: 8px 12px;
    border: 1px solid var(--kb-border);
    border-radius: 999px;
    color: var(--kb-text);
    font-size: 14px;
    text-decoration: none;
}

.kc-boerse-link:hover {
    border-color: var(--kb-accent);
}

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

.kc-boerse-link-go,
.kc-fact-link strong {
    color: var(--kb-accent-dark);
    font-weight: 600;
}

.kc-fact-link {
    color: var(--kb-text);
    text-decoration: none;
}

.kc-fact-link:hover {
    border-color: var(--kb-accent);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.kc-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 */
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Cashback und Gebühren */
.kc-cashback .kb-score {
    display: block;
    margin: 4px 0;
}

.kc-terms {
    margin: 6px 0 0;
    padding-left: 18px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.kc-gallery figure {
    margin: 0;
}

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

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

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

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

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

.kc-checked summary {
    cursor: pointer;
}

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

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

    .kc-card-3d {
        max-width: 300px;
        transform: rotateZ(-3deg);
    }
}

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

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

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

    .kc-boerse,
    .kc-alt {
        grid-template-columns: 56px 1fr;
    }

    .kc-boerse .kb-btn,
    .kc-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 */
.kc-hero-card {
    flex-direction: column;
    align-items: center;
    align-self: start;
}

