
/* =========================================
   HERZENSSACHE ARBEITSBEREICHE
   Gemeinsame Gestaltung
   ========================================= */

.hsab-wrap {
    --hsab-blue: #396397;
    --hsab-bg: #f4f7fa;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    color: #333;
}

.hsab-wrap h2,
.hsab-wrap h3 {
    color: var(--hsab-blue);
}

.hsab-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.hsab-card {
    background: #fff;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 8px #0000000a;
}

.hsab-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.hsab-btn {
    display: inline-block;
    background: #396397;
    color: #fff;
    border: 0;
    border-radius: 7px;
    padding: 12px 19px;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
}

.hsab-btn:hover {
    background: #294b75;
    color: #fff;
}

/* =========================================
   FORMULARE
   ========================================= */

.hsab-form,
.hsab-filters {
    display: grid;
    gap: 16px;
    background: #f4f7fa;
    border-radius: 12px;
    padding: 22px;
}

.hsab-form label,
.hsab-filters label {
    display: grid;
    gap: 7px;
    font-weight: 600;
}

.hsab-form input,
.hsab-form select,
.hsab-form textarea,
.hsab-filters input,
.hsab-filters select {
    width: 100%;
    max-width: 100%;
    border: 1px solid #bac7d4;
    border-radius: 7px;
    padding: 11px;
    background: #fff;
    font: inherit;
}

.hsab-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hsab-filters {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: end;
    margin-bottom: 25px;
}

.hsab-regions {
    border: 1px solid #bac7d4;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hsab-regions legend {
    font-weight: 600;
    padding: 0 5px;
}

.hsab-regions label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
}

.hsab-regions input[type="checkbox"] {
    width: auto;
}

.hsab-notice {
    padding: 14px;
    background: #eaf4eb;
    border-left: 4px solid #3a7947;
}

.hsab-error {
    padding: 14px;
    background: #fff1f1;
    border-left: 4px solid #ae3434;
}

.hsab-honey {
    position: absolute;
    left: -99999px;
}

.hsab-gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hsab-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* =========================================
   HERZENSSACHE UNTERWEGS – ÜBERSICHT
   ========================================= */
.hsab-archive { width: 100%; max-width: none; padding-top: 0; }
.hsab-archive .hsab-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    background: #eaf3fb;
    padding: 18px;
    margin: 0 0 14px;
    border-radius: 10px;
}
.hsab-archive .hsab-filters label { font-size: 13px; color: #396397; }
.hsab-archive .hsab-filters input,
.hsab-archive .hsab-filters select { min-height: 43px; }
.hsab-archive .hsab-filters .hsab-btn { min-height: 43px; color: #fff; }
.hsab-event-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.hsab-event-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 15px 12px;
    border-radius: 9px;
    background: #eaf3fb;
    border-bottom: 4px solid #7dc9ff;
    text-decoration: none;
    color: #24527e;
    opacity: .82;
}
.hsab-event-tab:first-child {
    background: #fff5cf;
    border-bottom-color: #f7d25d;
}

.hsab-event-tab.is-active {
    opacity: 1;
    border: 3px solid #4b9dd6;
}

.hsab-event-tab:first-child.is-active {
    border-color: #f7d25d;
}
.hsab-event-tab strong { display: block; font-size: 17px; line-height: 1.3; color: #24527e; }
.hsab-event-tab small { display: block; font-size: 13px; line-height: 1.4; color: #396397; }
.hsab-tab-icon { font-size: 40px; line-height: 1; }
.hsab-archive .hsab-event-list { display: grid; gap: 10px; background: #fae3cc; padding: 12px; border-radius: 12px; }
.hsab-archive .hsab-event-card {
    display: grid;
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    width: 100%;
    padding: 12px;
    border: 0;
    box-shadow: 0 1px 5px #0000000c;
}
.hsab-event-image { position: relative; display: flex; align-items: center; min-width: 0; width: 100%; text-decoration: none; }
.hsab-event-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 210px;
    object-fit: contain;
    object-position: center left;
    border-radius: 8px;
    margin: 0;
}
.hsab-image-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: #fff5cf;
    color: #24527e;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.hsab-photo-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 150px;
    background: #eaf0f7;
    color: #557eaf;
    font-size: 42px;
    border-radius: 8px;
}
.hsab-event-content { min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
.hsab-archive .hsab-event-content h3 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.hsab-event-content h3 a { color: #396397; text-decoration: none; }
.hsab-event-content h3 a:hover { text-decoration: underline; }
.hsab-event-info { display: flex; flex-wrap: wrap; gap: 2px 15px; font-size: 13px; line-height: 1.4; margin: 0 0 5px; }
.hsab-event-excerpt {
    font-size: 13px;
    line-height: 1.45;
    margin: 4px 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.hsab-event-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: auto; }
.hsab-event-footer .hsab-event-meta { color: #657382; font-size: 12px; line-height: 1.4; margin: 0; }
.hsab-event-footer .hsab-btn,
.hsab-event-footer .hsab-btn:visited,
.hsab-event-footer .hsab-btn:hover,
.hsab-event-footer .hsab-btn:focus {
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    padding: 8px 13px;
    margin: 0 0 0 auto;
    text-decoration: none;
    flex-shrink: 0;
}
/* =========================================
   EINZELBEITRAG
   ========================================= */
.single-hsab_event .entry-header,
.single-hsab_event .page-header { display: none; }

.hsab-single {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 18px 15px 42px;
    color: #333;
    box-sizing: border-box;
}
.hsab-single > * { width: 100%; box-sizing: border-box; }
.hsab-back { margin: 0 0 10px; }
.hsab-single-panel {
    width: 100%;
    box-sizing: border-box;
    padding: 24px;
    background: #fff4eb;
    border: 1px solid #f6dfcc;
    border-radius: 14px;
}
.hsab-single-panel > * { max-width: 100%; box-sizing: border-box; }
.hsab-back a,
.hsab-single-navigation a {
    color: #396397;
    text-decoration: none;
    font-weight: 600;
}
.hsab-back a:hover,
.hsab-single-navigation a:hover { text-decoration: underline; }
.hsab-single .hsab-single-tags {
    margin: 0 0 12px;
    color: #657382;
    font-size: 13px;
    line-height: 1.5;
}
.single-hsab_event .hsab-single-title {
    color: #396397;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    margin: 0 0 20px;
}
.hsab-single-cover { margin: 0 0 20px; }
.hsab-single-cover a { display: block; width: 100%; }
.hsab-single-cover img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
}
.hsab-single-details {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.7;
}
.hsab-single-details > div { margin-bottom: 4px; }
.hsab-single-text {
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.hsab-single-text p { margin-bottom: 1.2em; }
.hsab-single-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.hsab-single-gallery a {
    display: block;
    max-width: 100%;
}
.hsab-single-gallery img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 210px;
    border-radius: 8px;
}
.hsab-single-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #dce4ec;
    margin-top: 36px;
    padding-top: 20px;
}
.hsab-single-navigation .hsab-next { margin-left: auto; text-align: right; }
.hsab-pages { margin: 20px 0; }
.hsab-pages a { margin-right: 12px; }

/* =========================================
   TABLET UND HANDY
   ========================================= */
/* =========================================
   TABLET
   ========================================= */
@media (min-width: 701px) and (max-width: 1024px) {
    .hsab-single {
        width: 100%;
        max-width: 100%;
        padding: 16px 12px 35px;
    }

    .hsab-single-panel {
        padding: 20px;
    }

    .single-hsab_event .hsab-single-title {
        font-size: 28px;
    }
}
@media (max-width: 700px) {
    .hsab-row { grid-template-columns: 1fr; }
    .hsab-form, .hsab-filters { padding: 14px; }
    .hsab-archive .hsab-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px; }
    .hsab-archive .hsab-filters .hsab-btn { grid-column: 1 / -1; }
    .hsab-event-tab { gap: 6px; padding: 12px 6px; }
    .hsab-tab-icon { font-size: 21px; }
    .hsab-event-tab strong { font-size: 13px; }
    .hsab-event-tab small { font-size: 11px; }
    .hsab-archive .hsab-event-list { padding: 8px; }
    .hsab-archive .hsab-event-card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
    .hsab-event-image img { max-height: 280px; }
    .hsab-photo-placeholder { min-height: 150px; }
    .hsab-archive .hsab-event-content h3 { font-size: 17px; }
    .hsab-event-info, .hsab-event-excerpt { font-size: 13px; }
    .hsab-single { padding: 15px 8px 35px; }
    .hsab-single-panel { padding: 16px 12px; border-radius: 12px; }
    .single-hsab_event .hsab-single-title { font-size: 25px; }
    .hsab-single-cover img { max-height: none; }
    .hsab-single-details { font-size: 16px; }
    .hsab-single-text { font-size: 16px; }
    .hsab-single-gallery img { max-height: 170px; }
    .hsab-single-navigation { flex-direction: row; }
}
@media (max-width: 400px) {
    .hsab-single-navigation a span { display: none; }
    .hsab-single-navigation a { font-size: 22px; }
}
