/* Homebrew-Übersicht – an Kampagnen-/Charakter-/Spieler-Styles angelehnt */

.hb-section {
    margin-bottom: 40px;
}

.hb-section h2 {
    margin-bottom: 20px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: #0f2230;
}

.hb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 30px 26px;
    align-items: start;
}

.hb-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hb-card {
    position: relative;
    overflow: hidden;
}

.hb-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(69, 201, 223, 0.08), transparent 32%);
    pointer-events: none;
}

.hb-img {
    width: 100%;
    aspect-ratio: 1 / 1.62;
    overflow: hidden;
    background: #0f2230;
}

.hb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.25s ease;
}

.hb-card:hover .hb-img img {
    transform: scale(1.03);
}

.hb-content {
    position: relative;
    z-index: 1;
    padding: 22px 22px 20px;
    text-align: center;
}

.hb-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f73d9;
}

.hb-text {
    font-size: 15px;
    color: #1f2d37;
    margin-bottom: 14px;
    line-height: 1.6;
}

.hb-actions {
    display: flex;
    justify-content: center;
}

.hb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #0f2230;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease-out, transform 0.1s ease-out, box-shadow 0.2s ease-out;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.hb-button:hover {
    background: #163247;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.hb-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.hb-empty {
    margin: 0;
    color: #666;
}

/* Regeln unten als schicke Kartenliste */
.hb-rules-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px 20px;
}

.hb-rule-card {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    color: #1f2d37;
}

@media (max-width: 1100px) {
    .hb-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media (max-width: 820px) {
    .hb-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .hb-rules-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hb-grid {
        grid-template-columns: 1fr;
    }
}

