/* ==========================================================
   Modernes Layout für das A-Z Markenregister
========================================================== */

:root {
    --brand-primary: #0073aa; /* Passe das an deine Theme-Farbe an */
    --brand-bg-light: #f6f7f7;
    --brand-border: #dcdcde;
    --brand-text: #2c3338;
    --brand-muted: #646970;
}

/* Container */
.sb8-brands-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 1) Das A-Z Button-Register (Oben) */
.sb8-brands-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 3rem;
    padding: 15px;
    background: var(--brand-bg-light);
    border-radius: 8px;
    border: 1px solid var(--brand-border);
}

.sb8-brands-filter .sb8-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Aktive Buchstaben (mit Marken) */
.sb8-brands-filter .sb8-letter.active {
    background: #fff;
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sb8-brands-filter .sb8-letter.active:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

/* Inaktive Buchstaben (ohne Marken) */
.sb8-brands-filter .sb8-letter.disabled {
    background: transparent;
    color: var(--brand-border);
    cursor: not-allowed;
    border: 1px solid transparent;
}


/* 2) Die Markenliste (Unten) */
.sb8-brands-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sb8-brand-section {
    border-bottom: 1px solid var(--brand-border);
    padding-bottom: 2rem;
}

.sb8-brand-section:last-child {
    border-bottom: none;
}

/* Große Buchstaben-Überschrift */
.sb8-brand-heading {
    font-size: 2rem;
    color: var(--brand-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--brand-primary);
    display: inline-block;
    min-width: 50px;
}

/* Das responsive Marken-Grid */
.sb8-brand-group {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.sb8-brand-group li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--brand-text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.sb8-brand-group li a:hover {
    border-color: var(--brand-primary);
    background: rgba(0, 115, 170, 0.02);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Der kleine Produkt-Counter hinten dran */
.sb8-brand-count {
    font-size: 11px;
    background: var(--brand-bg-light);
    color: var(--brand-muted);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: normal;
}

.sb8-brand-group li a:hover .sb8-brand-count {
    background: var(--brand-primary);
    color: #fff;
}
