/* HouseBase.at - News-Karten (News-Seite + Startseite) */

.hb-news-page,
.hb-home-news {
    --hb-green: #32ea91;
    --hb-dark: #0f1115;
    --hb-dark-2: #171a21;
    --hb-text: #111111;
    --hb-muted: #5f6673;
}

.hb-news-page {
    background:
        radial-gradient(circle at top left, rgba(50, 234, 145, 0.08), transparent 32%),
        linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
    padding: 48px 0 64px;
}

.hb-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #0fae63;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Kopf */
.hb-news-head,
.hb-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.hb-news-head h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
    color: var(--hb-text);
}
.hb-section-head { margin: 46px 0 20px; }
.hb-section-head h3 { margin: 0; font-weight: 800; color: var(--hb-text); }

.hb-more-link {
    color: var(--hb-text);
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 2px solid var(--hb-green);
    text-decoration: none !important;
}
.hb-more-link:hover { color: #0fae63; }

/* Kategorie-Filter */
.hb-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin-bottom: 18px;
    scrollbar-width: thin;
}
.hb-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe1ea;
    color: var(--hb-text);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.hb-chip span {
    font-size: 0.75rem;
    background: #eef1f5;
    border-radius: 999px;
    padding: 2px 8px;
    color: var(--hb-muted);
}
.hb-chip:hover { border-color: var(--hb-green); color: var(--hb-text); }
.hb-chip.is-active { background: var(--hb-dark); border-color: var(--hb-dark); color: #fff; }
.hb-chip.is-active span { background: var(--hb-green); color: var(--hb-dark); }

/* Datums-Badge */
.hb-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 56px;
    padding: 6px 0;
    border-radius: 12px;
    background: var(--hb-green);
    color: var(--hb-dark);
    text-align: center;
    line-height: 1.05;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.hb-date-badge small { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; }
.hb-date-badge strong { display: block; font-size: 1.45rem; font-weight: 900; }
.hb-date-badge--lg { top: 24px; left: 24px; width: 68px; }
.hb-date-badge--lg strong { font-size: 1.8rem; }

/* Tags */
.hb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hb-tag {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    backdrop-filter: blur(4px);
}
.hb-tag--solid { background: var(--hb-green); color: var(--hb-dark); }
.hb-tag--new { background: #ff3b6b; color: #ffffff; }

/* Top-Story */
.hb-featured {
    position: relative;
    display: block;
    min-height: 440px;
    border-radius: 26px;
    overflow: hidden;
    background: var(--hb-dark);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
    text-decoration: none !important;
}
.hb-featured-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.hb-featured:hover .hb-featured-media { transform: scale(1.04); }
.hb-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 10, 14, 0.94) 0%, rgba(8, 10, 14, 0.55) 45%, rgba(8, 10, 14, 0.1) 100%);
}
.hb-featured-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 40px 44px;
    max-width: 860px;
    color: #ffffff;
}
.hb-featured-body h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}
.hb-featured-body p { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; line-height: 1.7; margin-bottom: 16px; }
.hb-featured .hb-meta { color: rgba(255, 255, 255, 0.7); }

/* Raster */
.hb-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.hb-news-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(15, 17, 21, 0.06);
    box-shadow: 0 12px 30px rgba(15, 17, 21, 0.08);
    text-decoration: none !important;
    color: var(--hb-text);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hb-news-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15, 17, 21, 0.14); color: var(--hb-text); }
.hb-news-card--ad {
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #f3f5f8;
    box-shadow: none;
}
.hb-news-card--ad:hover { transform: none; box-shadow: none; }

.hb-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--hb-dark);
}
.hb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hb-news-card:hover .hb-card-media img { transform: scale(1.06); }
.hb-card-new { position: absolute; top: 14px; right: 14px; z-index: 3; }

.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(50, 234, 145, 0.35), transparent 55%),
        linear-gradient(135deg, var(--hb-dark) 0%, var(--hb-dark-2) 100%);
}
.hb-placeholder-logo {
    color: rgba(255, 255, 255, 0.18);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.3em;
}
.hb-featured .hb-placeholder-logo { font-size: 3.2rem; }

.hb-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.hb-card-cat {
    color: #0fae63;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.hb-card-body h4 { font-size: 1.2rem; font-weight: 800; line-height: 1.3; margin-bottom: 10px; color: var(--hb-text); }
.hb-card-body p { color: var(--hb-muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 16px; }

.hb-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #8a919d;
}
.hb-read-more { margin-left: auto; font-weight: 800; color: #0fae63; white-space: nowrap; }
.hb-featured .hb-read-more { color: var(--hb-green); }

/* Seiten */
.hb-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}
.hb-pager a {
    min-width: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe1ea;
    color: var(--hb-text);
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
}
.hb-pager a:hover { border-color: var(--hb-green); }
.hb-pager a.is-active { background: var(--hb-dark); border-color: var(--hb-dark); color: var(--hb-green); }

.hb-news-empty {
    padding: 48px 24px;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
    color: var(--hb-muted);
    box-shadow: 0 12px 30px rgba(15, 17, 21, 0.06);
}

@media (max-width: 991.98px) {
    .hb-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb-featured-body h2 { font-size: 2rem; }
}

@media (max-width: 575.98px) {
    .hb-news-page { padding: 28px 0 44px; }
    .hb-news-head { flex-direction: column; align-items: flex-start; }
    .hb-news-head h1 { font-size: 2rem; }
    .hb-news-grid { grid-template-columns: 1fr; gap: 18px; }
    .hb-featured { min-height: 400px; border-radius: 20px; }
    .hb-featured-body { padding: 26px 22px; }
    .hb-featured-body h2 { font-size: 1.6rem; }
    .hb-featured-body p { display: none; }
    .hb-date-badge--lg { top: 16px; left: 16px; width: 58px; }
}

/* ------------------------------------------------------------------
   Startseite: Top-Story links, zwei Karten rechts
   ------------------------------------------------------------------ */
.hb-section-head--home { margin-top: 0; }
.hb-section-head--home h2 {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--hb-text);
}

.hb-home-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}

.hb-featured--home { min-height: 480px; }
.hb-featured--home .hb-featured-body h2 { font-size: 2.1rem; }

.hb-home-news-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hb-news-card--row { flex-direction: row; min-height: 150px; }
.hb-news-card--row .hb-card-media {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 150px;
}
.hb-news-card--row .hb-card-media img { position: absolute; inset: 0; }
.hb-news-card--row .hb-date-badge { top: 10px; left: 10px; width: 48px; }
.hb-news-card--row .hb-date-badge strong { font-size: 1.2rem; }
.hb-news-card--row .hb-card-body { padding: 16px 18px; }
.hb-news-card--row h4 { font-size: 1.05rem; margin-bottom: 12px; }
.hb-news-card--row .hb-placeholder-logo { font-size: 1.3rem; }

.hb-tag--inline { margin-left: 6px; padding: 2px 7px; font-size: 0.62rem; vertical-align: middle; }

.hb-home-news-all {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-height: 110px;
    padding: 22px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--hb-dark) 0%, var(--hb-dark-2) 100%);
    border-left: 4px solid var(--hb-green);
    color: #ffffff;
    text-decoration: none !important;
    transition: transform 0.25s ease;
}
.hb-home-news-all:hover { transform: translateY(-3px); color: #ffffff; }
.hb-home-news-all .hb-kicker { color: var(--hb-green); margin-bottom: 4px; }
.hb-home-news-all strong { font-size: 1.25rem; }

@media (max-width: 991.98px) {
    .hb-home-news-grid { grid-template-columns: 1fr; }
    .hb-featured--home { min-height: 420px; }
}

@media (max-width: 575.98px) {
    .hb-section-head--home { flex-direction: column; align-items: flex-start; }
    .hb-section-head--home h2 { font-size: 1.8rem; }
    .hb-featured--home { min-height: 380px; }
    .hb-news-card--row .hb-card-media { flex-basis: 38%; min-height: 120px; }
    .hb-news-card--row .hb-meta .hb-read-more { display: none; }
}