/**
 * Hilfe & Beratung - Seitenspezifische Styles
 * DKSB Euskirchen
 */

/* ==================== Sektionen ==================== */
.hb-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.hb-section:last-of-type {
    border-bottom: none;
}

.hb-section h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hb-section h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ==================== Download-Karte (Broschüre/Flyer) ==================== */
.hb-download-card {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.hb-download-card-image {
    flex-shrink: 0;
    width: 160px;
}

.hb-download-card-image img {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hb-download-card-image.no-image {
    background: var(--bg-lighter);
    border: 2px dashed var(--border-color);
    border-radius: 0.375rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-download-card-image.no-image::after {
    content: 'Bild folgt';
    color: var(--text-light);
    font-size: 0.875rem;
}

.hb-download-card-content {
    flex: 1;
}

.hb-download-card-content h3 {
    margin-top: 0;
    font-size: 1.125rem;
    color: var(--primary-blue);
}

.hb-download-card-content p {
    line-height: 1.7;
    color: var(--text-medium);
}

.hb-download-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== Video-Grid (YouTube) ==================== */
.hb-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hb-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #000;
}

.hb-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hb-video-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
}

/* ==================== Flyer-Grid (Sprachlinks) ==================== */
.hb-flyer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hb-flyer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.hb-flyer-link:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 100, 173, 0.05);
    color: var(--primary-blue);
}

.hb-flyer-link svg {
    flex-shrink: 0;
    color: var(--primary-blue);
}

/* ==================== Beratungsstellen-Einträge ==================== */
.hb-entry {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hb-entry:first-child {
    padding-top: 0;
}

.hb-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hb-entry h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.hb-entry h4 a {
    color: var(--primary-blue);
    text-decoration: none;
}

.hb-entry h4 a:hover {
    text-decoration: underline;
}

.hb-entry p {
    margin: 0 0 0.5rem 0;
    line-height: 1.7;
    color: var(--text-medium);
    font-size: 0.9375rem;
}

.hb-entry-meta {
    font-size: 0.875rem !important;
    color: var(--text-medium) !important;
    line-height: 1.8 !important;
}

.hb-entry ul {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
    font-size: 0.9375rem;
    color: var(--text-medium);
}

.hb-entry ul li {
    margin-bottom: 0.25rem;
}

/* ==================== CTA-Box ==================== */
.hb-cta {
    background: var(--primary-blue);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 2rem;
}

.hb-cta h3 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.hb-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.25rem 0;
}

.hb-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hb-download-card {
        flex-direction: column;
    }

    .hb-download-card-image {
        width: 120px;
        margin: 0 auto;
    }

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

    .hb-flyer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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