/* Hardware-Bausteine für Produktseiten (includes/hardware.php) */

.hw-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.75rem;
}

.hw-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .04);
    color: var(--text-secondary);
    font-size: .85rem;
    backdrop-filter: blur(8px);
}

.hw-chip i { color: var(--color-primary); }

/* ─── Hardware-Sektion ─── */
.hw-layout {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 2fr;
    gap: 1.5rem;
    align-items: stretch;
}

.hw-cpu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 20% 0%, rgba(59, 108, 244, .22), transparent 60%),
        var(--bg-card);
    position: relative;
    overflow: hidden;
}

.hw-cpu__chip {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    background: linear-gradient(145deg, #1f2a44, #0e1424);
    border: 2px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 8px rgba(59, 108, 244, .08), 0 20px 50px rgba(0, 0, 0, .45);
    position: relative;
}

/* Kontakt-Pins des Chips */
.hw-cpu__chip::before,
.hw-cpu__chip::after {
    content: '';
    position: absolute;
    inset: -14px 18px;
    border-top: 4px dotted rgba(250, 204, 21, .55);
    border-bottom: 4px dotted rgba(250, 204, 21, .55);
    pointer-events: none;
}

.hw-cpu__chip::after {
    inset: 18px -14px;
    border: none;
    border-left: 4px dotted rgba(250, 204, 21, .55);
    border-right: 4px dotted rgba(250, 204, 21, .55);
}

.hw-cpu__vendor {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}

.hw-cpu__chip--intel .hw-cpu__vendor { color: #4fb3ff; font-style: italic; }
.hw-cpu__chip--amd .hw-cpu__vendor { color: #ff4d4d; }

.hw-cpu__brand {
    font-size: .8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hw-cpu__info h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.hw-cpu__info p { color: var(--text-secondary); font-size: .92rem; line-height: 1.55; }

.hw-cpu__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-top: 1.25rem;
}

.hw-cpu__stats div {
    padding: .75rem .5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .04);
    text-align: center;
}

.hw-cpu__stats strong {
    display: block;
    font-size: 1.15rem;
    color: #fff;
}

.hw-cpu__stats span {
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hw-cpu__isa {
    margin-top: 1rem;
    font-size: .8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.hw-cpu__isa i { color: var(--color-primary); margin-right: .35rem; }

.hw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hw-tile {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    transition: transform .25s, border-color .25s;
}

.hw-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 108, 244, .4);
}

.hw-tile > i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
    background: rgba(59, 108, 244, .12);
    color: var(--color-primary);
    font-size: 1.1rem;
}

.hw-tile h4 { font-size: 1rem; margin-bottom: .35rem; }
.hw-tile p { font-size: .86rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── Vergleichstabelle ─── */
.hw-compare-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
}

.hw-compare {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: .92rem;
}

.hw-compare th,
.hw-compare td {
    padding: .9rem 1.1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.hw-compare tbody th {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.hw-compare thead th {
    padding-top: 1.5rem;
    vertical-align: bottom;
}

.hw-compare .is-popular { background: rgba(59, 108, 244, .07); }

.hw-compare__badge {
    display: inline-block;
    margin-bottom: .4rem;
    padding: .15rem .6rem;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.hw-compare__name { display: block; font-size: 1.1rem; color: #fff; }

.hw-compare__price {
    display: block;
    margin-top: .2rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.hw-compare__price small { font-size: .75rem; color: var(--text-muted); font-weight: 400; }

.hw-compare td .fa-check { color: var(--color-success); }
.hw-compare td .fa-minus { color: var(--text-muted); }

.hw-compare__cta td,
.hw-compare__cta th { border-bottom: none; padding-bottom: 1.5rem; }

/* ─── FAQ ─── */
.hw-faq {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.hw-faq__item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 0 1.25rem;
}

.hw-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.hw-faq__item summary::-webkit-details-marker { display: none; }

.hw-faq__item summary::after {
    content: '+';
    color: var(--color-primary);
    font-size: 1.3rem;
    line-height: 1;
}

.hw-faq__item[open] summary::after { content: '–'; }

.hw-faq__item p {
    padding-bottom: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── CPU-Zeile auf Paketkarten ─── */
.hw-card-cpu {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .75rem 0 0;
    padding: .55rem .8rem;
    border-radius: var(--radius-md);
    background: rgba(59, 108, 244, .08);
    border: 1px solid rgba(59, 108, 244, .2);
    font-size: .82rem;
    color: var(--text-secondary);
}

.hw-card-cpu i { color: var(--color-primary); }

@media (max-width: 1024px) {
    .hw-layout { grid-template-columns: 1fr; }
    .hw-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hw-grid { grid-template-columns: 1fr; }
    .hw-cpu { padding: 1.5rem; }
}
