/* E3DC Inhaltssuche */
.e3su {
    --e3su-g: #5cc244;
    --e3su-ink: #131815;
    --e3su-mute: #676767;
    --e3su-line: rgba(19, 24, 21, .13);
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 30px;
    font-family: "HagerScale Regular", sans-serif;
}
.e3su--infocenter { max-width: 360px; margin: 0 0 0 auto; }

.e3su__bar {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}
.e3su .e3su__in,
.e3su .e3su__in[type="search"] {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: 54px;
    margin: 0;
    padding: .14em 98px 0 54px !important;
    border: 1px solid var(--e3su-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--e3su-ink) !important;
    font-family: "HagerScale Regular", sans-serif !important;
    font-size: 16px !important;
    line-height: 1 !important;
    letter-spacing: 0;
    outline: none;
    transition: border-color .2s ease, box-shadow .25s ease;
}
.e3su .e3su__in::placeholder { color: #8a8f8b; opacity: 1; }
.e3su .e3su__in::-webkit-search-cancel-button,
.e3su .e3su__in::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.e3su .e3su__in:hover { border-color: rgba(19, 24, 21, .24) !important; }
.e3su .e3su__in:focus {
    border-color: var(--e3su-g) !important;
    box-shadow: 0 0 0 3px rgba(92, 194, 68, .14) !important;
}
.e3su__ic {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    color: var(--e3su-ink);
    pointer-events: none;
    transition: color .2s ease;
}
.e3su__bar:focus-within .e3su__ic { color: var(--e3su-g); }

.e3su .e3su__x {
    position: absolute;
    right: 9px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: -18px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #eef1ec !important;
    color: var(--e3su-ink) !important;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.e3su .e3su__x[hidden] { display: none; }
.e3su .e3su__x svg { width: 18px; height: 18px; }
.e3su .e3su__x:hover { background: var(--e3su-g) !important; color: #fff !important; }
.e3su .e3su__x:active { transform: scale(.94); }

.e3su__spin {
    position: absolute;
    right: 56px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid rgba(92, 194, 68, .25);
    border-top-color: var(--e3su-g);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}
.e3su.is-busy .e3su__spin { opacity: 1; animation: e3suSpin .7s linear infinite; }
@keyframes e3suSpin { to { transform: rotate(360deg); } }

.e3su__live {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --- Beispiel-Suchen im leeren Feld ------------------------------ */
.e3su__hint {
    position: absolute;
    left: 55px;
    right: 98px;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: .32em;
    overflow: hidden;
    padding-top: .14em;
    transform: translateY(calc(-50% + 1px));
    color: #a3a8a4;
    font-family: "HagerScale Regular", sans-serif;
    font-size: 16px;
    line-height: 1.25;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .15s ease;
}
.e3su__hp { flex: none; }
.e3su__hw {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #7f8580;
    transition: transform .26s cubic-bezier(.2, .7, .2, 1), opacity .26s ease;
}
.e3su__hw.is-out { transform: translateY(-70%); opacity: 0; }
.e3su__hw.is-in { transform: translateY(70%); opacity: 0; transition: none; }
.e3su.has-val .e3su__hint { opacity: 0; }

/* --- Magazin: Kopfzeile links Überschrift + Zähler, rechts Suche -- */
.e3su-mhead > .row_col_wrap_12_inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 16px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.e3su-mhead > .row_col_wrap_12_inner::before,
.e3su-mhead > .row_col_wrap_12_inner::after { display: none !important; content: none !important; }
.e3su-mhead > .row_col_wrap_12_inner > .wpb_column {
    width: auto !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}
.e3su-mhead > .row_col_wrap_12_inner > .wpb_column > .vc_column-inner { padding: 0 !important; }
.e3su-mhead .e3su-mt { order: 1; }
.e3su-mhead .e3su-mc { order: 2; display: block !important; }
.e3su-mhead > .row_col_wrap_12_inner > .wpb_column.e3su-mc { margin-left: auto !important; padding-left: 24px !important; }
.e3su-mhead .e3su-mx { display: none !important; }
.e3su-mhead .e3su-mt h1,
.e3su-mhead .e3su-mt h2,
.e3su-mhead .e3su-mt h3 { text-align: left !important; margin: 0 !important; }
.e3su-mhead .e3su-mc p,
.e3su-mhead .e3su-mc .wpb_text_column,
.e3su-mhead .e3su-mc .wpb_wrapper { margin: 0 !important; padding: 0 !important; }
.e3su-mhead #post-count { white-space: nowrap; }
.e3su.is-head {
    order: 3;
    flex: 0 1 380px;
    max-width: 380px;
    margin: 0;
}
.e3su-mhead:not(:has(.e3su-mc)) .e3su.is-head { margin-left: auto; }

/* --- Magazin: Kategorie-Kacheln mit sanftem Zoom ------------------ */
.allnews .nectar-post-grid-filters .magazin_category_thumbnail_wrapper {
    overflow: hidden;
    border-radius: 12px;
    isolation: isolate;
}
.allnews .nectar-post-grid-filters .card-icon-plus { z-index: 2; }
.allnews .nectar-post-grid-filters img.magazin_category_thumbnail {
    transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .3s ease !important;
    transform-origin: 50% 55%;
    backface-visibility: hidden;
}
@media (hover: hover) and (pointer: fine) {
    .allnews .nectar-post-grid-filters a:hover img.magazin_category_thumbnail { transform: scale(1.07); }
}
@media (hover: none) {
    .allnews .nectar-post-grid-filters a:active img.magazin_category_thumbnail { transform: scale(1.05); transition-duration: .35s, .3s !important; }
}

/* Weniger Leerraum über und unter den Kacheln */
html body .wpb_row.e3su-mrow.full-width-section { padding-top: 56px !important; }
.allnews .nectar-post-grid-filters .post_grid_category_wrapper { margin-bottom: 44px !important; }

/* --- Magazin: Treffer statt Grid --------------------------------- */
.nectar-post-grid-wrap.e3su-on > .nectar-post-grid,
.nectar-post-grid-wrap.e3su-on > .load-more-wrap { display: none !important; }

.e3su-res[hidden] { display: none; }
.e3su-res { width: 100%; }
.e3su-res__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    transition: opacity .2s ease;
}
.e3su-res.is-stale .e3su-res__grid { opacity: .45; }

.e3su-card {
    position: relative;
    display: block;
    height: 370px;
    overflow: hidden;
    border-radius: 15px;
    background: #1d2a1f;
    color: #fff !important;
    text-decoration: none !important;
    isolation: isolate;
    animation: e3suIn .45s cubic-bezier(.2, .7, .2, 1) both;
}
.e3su-card:nth-child(2n) { animation-delay: .05s; }
@keyframes e3suIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.e3su-card__bg { position: absolute; inset: 0; z-index: -1; }
.e3su-card__bg img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.e3su-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 38%, rgba(0, 0, 0, 0) 68%);
}
@media (hover: hover) and (pointer: fine) {
    .e3su-card:hover .e3su-card__bg img { transform: scale(1.05); }
}
.e3su-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.e3su-card__cat {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: .14em 14px 0;
    border-radius: 4px;
    background: #d8ecbc;
    color: #0f2213;
    font-family: "HagerScale Bold", sans-serif;
    font-size: 14px;
    line-height: 1;
}
.e3su-card__t {
    display: block;
    max-width: 92%;
    font-family: "HagerScale Bold", sans-serif;
    font-size: max(16px, 1.4vw);
    line-height: 1.3;
    color: #fff;
    text-wrap: balance;
}
.e3su-card__t mark { background: none; color: #b9ec6a; padding: 0; }

.e3su-card.is-skel {
    animation: e3suPulse 1.2s ease-in-out infinite alternate;
    background: linear-gradient(110deg, #e9ece7 30%, #f4f6f2 50%, #e9ece7 70%);
    background-size: 200% 100%;
}
.e3su-card.is-skel::after { display: none; }
@keyframes e3suPulse { from { background-position: 100% 0; } to { background-position: 0 0; } }

.e3su-res__empty,
.e3su-empty {
    grid-column: 1 / -1;
    padding: 46px 24px 10px;
    text-align: center;
    color: var(--e3su-mute, #676767);
    font-family: "HagerScale Regular", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.e3su-empty[hidden] { display: none; }
.e3su-res__empty p,
.e3su-empty p { margin: 0 0 4px; padding: 0; }
.e3su-res__et { color: #131815; font-size: 20px; }
.e3su-res__et b { font-family: "HagerScale Bold", sans-serif; font-weight: normal; }

.e3su-res__foot { display: flex; justify-content: center; padding-top: 30px; }
.e3su-res__foot:empty { display: none; }
.e3su-res__more,
.e3su-res__reset,
.e3su-empty .e3su-res__reset {
    display: inline-flex;
    align-items: center;
    height: 48px;
    margin: 0 !important;
    padding: .14em 40px 0 !important;
    border: 1px solid rgba(0, 0, 0, .15) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #000 !important;
    font-family: "HagerScale Bold", sans-serif !important;
    font-size: 16px !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
.e3su-res__more:hover,
.e3su-res__reset:hover { border-color: #000 !important; }
.e3su-empty .e3su-res__reset { margin-top: 18px !important; }
.e3su-empty { padding-bottom: 50px; }

/* --- Infocenter: Karten filtern ---------------------------------- */
.e3su-irow { align-items: center !important; }
.downloadbox .wpb_column.e3su-hide { display: none !important; }
.downloadbox.e3su-on .wpb_column:not(.e3su-hide) { animation: e3suIn .35s cubic-bezier(.2, .7, .2, 1) both; }
.e3su-col > .vc_column-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.e3su-col > .vc_column-inner > .wpb_wrapper { width: 100%; }
.e3su-group {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}
.e3su-group > .e3su--infocenter { flex: 0 1 360px; margin: 0 !important; }
.e3su-group > .e3su-badge { flex: none; margin: 0 !important; white-space: nowrap; }
.e3su-group > .e3su-badge p { margin: 0 !important; }

/* --- Tablet und Mobil -------------------------------------------- */
@media (max-width: 999px) {
    .e3su-mhead > .row_col_wrap_12_inner { flex-wrap: wrap !important; }
    .e3su-mhead > .row_col_wrap_12_inner > .wpb_column.e3su-mt { flex: 1 1 100%; width: 100% !important; }
    .e3su-mhead .e3su-mt h1,
    .e3su-mhead .e3su-mt h2,
    .e3su-mhead .e3su-mt h3 { text-align: center !important; }
    /* Kategorie-Kacheln kompakter: ohne Pfeile (wischen), ohne gestapelte Abstände */
    html body .wpb_row.e3su-mrow.full-width-section { padding-top: 28px !important; }
    .allnews .nectar-post-grid-filters { padding-top: 0 !important; margin-top: -20px !important; }
    .allnews .nectar-post-grid-filters .flickity-slider { margin-top: 0 !important; }
    .allnews .nectar-post-grid-filters .flickity-button { display: none !important; }
    .allnews .nectar-post-grid-filters .post_grid_category_wrapper,
    .allnews .nectar-post-grid-filters .flickity-viewport { margin-top: 0 !important; margin-bottom: 0 !important; }
    .allnews .nectar-post-grid-filters .flickity-slider > a { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; }
    .allnews .nectar-post-grid-filters .magazin_category_thumbnail_wrapper { margin-top: 0 !important; }
    .e3su-mhead .e3su-mc { display: none !important; }
    .e3su.is-head { flex: 1 1 100%; max-width: none; margin: 4px 0 0; }
    .e3su-res__grid { grid-template-columns: 1fr; gap: 20px; }
    .e3su--infocenter { max-width: none; margin: -16px 0 0 !important; }
    .e3su-group > .e3su--infocenter { flex: 1 1 100%; margin: -16px 0 0 !important; }
}
@media (max-width: 690px) {
    .e3su { margin-bottom: 22px; }
    .e3su .e3su__in, .e3su .e3su__in[type="search"] { height: 52px; padding-left: 50px !important; }
    .e3su__ic { left: 18px; }
    .e3su__hint { left: 51px; right: 56px; }
    .e3su-card__body { padding: 26px; gap: 10px; }
    .e3su-card__t { font-size: 16px; max-width: 100%; }
    .e3su-card__cat { height: 26px; font-size: 13px; padding: .14em 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .e3su-card, .downloadbox.e3su-on .wpb_column { animation: none !important; }
    .e3su-card__bg img { transition: none; }
}
