/**
 * DE-Leads Suche — Shortcode [ee-deleads-search]
 * Optik nach Mockup: ruhige B2B-Suchseite, keine Gesamtliste.
 */

.ee-dls {
    --dls-card: #ffffff;
    --dls-ink: #0f172a;
    --dls-muted: #64748b;
    --dls-line: #e5e9f2;
    --dls-brand: #1f6f43;
    --dls-brand-soft: #e7f3ec;
    --dls-brand-ink: #14532d;
    --dls-warn-bg: #fef9ec;
    --dls-warn-line: #f5e2b3;
    --dls-warn-ink: #8a6d1f;
    --dls-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
    --dls-radius: 14px;

    max-width: 760px;
    margin: 0 auto;
    padding: 24px 4px 48px;
    color: var(--dls-ink);
    line-height: 1.5;
}

.ee-dls *,
.ee-dls *::before,
.ee-dls *::after {
    box-sizing: border-box;
}

/* ---- Kopfbereich ---- */
.ee-dls-head {
    margin-bottom: 24px;
}

.ee-dls-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dls-brand-soft);
    color: var(--dls-brand-ink);
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ee-dls-head h1 {
    font-size: 1.6rem;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}

.ee-dls-head p {
    margin: 0;
    color: var(--dls-muted);
    font-size: .95rem;
}

/* ---- Suchfeld ---- */
.ee-dls-search-card {
    background: var(--dls-card);
    border: 1px solid var(--dls-line);
    border-radius: var(--dls-radius);
    box-shadow: var(--dls-shadow);
    padding: 18px;
}

/* Abschnitts-Kopf der Suche: benennt die Funktion und erklaert die
   Bedienung. Bewusst KEIN Seitentitel — der steht im Portal-Kopf. Die
   Groessen sind absichtlich gesetzt, damit Theme-Regeln fuer h2 die
   Karte nicht aufblasen. */
.ee-dls-section-head {
    margin: 0 0 14px;
}

.ee-dls-section-head h2 {
    margin: 0 0 4px;
    padding: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--dls-ink);
}

.ee-dls-section-head p {
    margin: 0;
    color: var(--dls-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.ee-dls-field {
    position: relative;
    display: flex;
    align-items: center;
}

/* Das Such-Icon steht rechts am Feldrand. Der Leeren-Knopf legt sich
   links daneben, sobald etwas getippt wurde — beide Plaetze haelt das
   Feld dauerhaft frei (padding-right), damit der Text beim Erscheinen
   des Knopfes nicht springt. */
.ee-dls-field svg.ee-dls-ico {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    color: var(--dls-muted);
    pointer-events: none;
}

.ee-dls-field input {
    width: 100%;
    padding: 14px 78px 14px 16px;
    font-size: 1.05rem;
    border: 1.5px solid var(--dls-line);
    border-radius: 12px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    background: #fbfcfe;
    color: var(--dls-ink);
}

.ee-dls-field input:focus {
    border-color: var(--dls-brand);
    box-shadow: 0 0 0 4px var(--dls-brand-soft);
    background: #fff;
}

.ee-dls-clear {
    position: absolute;
    right: 46px;
    border: none;
    background: #eef1f7;
    color: var(--dls-muted);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: none;
    padding: 0;
}

.ee-dls-clear:hover {
    background: #e2e6ef;
    color: var(--dls-ink);
}

.ee-dls-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: .8rem;
    color: var(--dls-muted);
    min-height: 18px;
    gap: 12px;
}

.ee-dls-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--dls-line);
    border-top-color: var(--dls-brand);
    border-radius: 50%;
    animation: ee-dls-spin .7s linear infinite;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
}

@keyframes ee-dls-spin {
    to { transform: rotate(360deg); }
}

/* ---- Zustaende ---- */
.ee-dls-state {
    margin-top: 22px;
}

.ee-dls-hint {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--dls-warn-bg);
    border: 1px solid var(--dls-warn-line);
    color: var(--dls-warn-ink);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: .9rem;
}

.ee-dls-hint svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.ee-dls-empty {
    text-align: center;
    color: var(--dls-muted);
    padding: 40px 20px;
}

.ee-dls-empty svg {
    width: 44px;
    height: 44px;
    color: #c7cede;
    margin-bottom: 10px;
}

.ee-dls-empty strong {
    display: block;
    color: var(--dls-ink);
    font-size: 1rem;
    margin-bottom: 2px;
}

.ee-dls-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: .9rem;
}

/* ---- Trefferkarten ---- */
.ee-dls-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.ee-dls-card {
    background: var(--dls-card);
    border: 1px solid var(--dls-line);
    border-radius: var(--dls-radius);
    box-shadow: var(--dls-shadow);
    padding: 16px 18px;
    transition: transform .12s, box-shadow .12s;
}

.ee-dls-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, .08), 0 14px 34px rgba(15, 23, 42, .08);
}

.ee-dls-card-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.ee-dls-avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--dls-brand-soft);
    color: var(--dls-brand-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.ee-dls-card-main {
    flex: 1;
    min-width: 0;
}

.ee-dls-card-name {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 2px;
}

.ee-dls-card-sub {
    color: var(--dls-muted);
    font-size: .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.ee-dls-card-sub span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ee-dls-card-sub svg {
    width: 14px;
    height: 14px;
    opacity: .7;
}

.ee-dls-pill {
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 600;
    color: var(--dls-brand-ink);
    background: var(--dls-brand-soft);
    padding: 5px 10px;
    border-radius: 999px;
}

.ee-dls mark {
    background: #fff2b8;
    color: inherit;
    border-radius: 3px;
    padding: 0 1px;
}

.ee-dls-note {
    margin-top: 16px;
    font-size: .78rem;
    color: var(--dls-muted);
    text-align: center;
}

@media (max-width: 560px) {
    .ee-dls-card-row {
        align-items: flex-start;
    }
    .ee-dls-pill {
        align-self: flex-start;
    }
}

/* ============================================================
   EPC-Werbeseite + Partner-Vorteile ([ee-deleads-search])
   Alles unter .ee-dls gescoped, ee-dls- Prefix gegen Theme-Kollisionen.
   ============================================================ */
.ee-dls-mkt {
    max-width: 820px;
}

/* ---- Hero ---- */
.ee-dls-hero {
    background: var(--dls-card);
    border: 1px solid var(--dls-line);
    border-radius: var(--dls-radius);
    box-shadow: var(--dls-shadow);
    padding: 34px 32px;
    margin-top: 8px;
}
.ee-dls-hero h2 {
    font-size: 1.9rem;
    line-height: 1.18;
    letter-spacing: -.025em;
    margin: 14px 0 12px;
    max-width: 20ch;
}
.ee-dls-lead {
    font-size: 1.02rem;
    color: var(--dls-muted);
    margin: 0 0 24px;
    max-width: 64ch;
}
.ee-dls-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.ee-dls-btn {
    display: inline-block;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    border-radius: 12px;
    padding: 13px 22px;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
}
.ee-dls-btn-primary {
    background: var(--dls-brand);
    color: #fff;
}
.ee-dls-btn-primary:hover {
    background: var(--dls-brand-ink);
    color: #fff;
}
.ee-dls-btn-ghost {
    background: #fff;
    border-color: var(--dls-line);
    color: var(--dls-ink);
}
.ee-dls-btn-ghost:hover {
    color: var(--dls-ink);
}
.ee-dls-nda {
    color: var(--dls-muted);
    font-size: .82rem;
    margin-top: 16px;
    max-width: 64ch;
}

/* ---- Abschnitts-Ueberschriften ---- */
.ee-dls-sec-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--dls-brand);
    text-transform: uppercase;
    margin: 44px 0 4px;
}
.ee-dls-sec-title {
    font-size: 1.5rem;
    letter-spacing: -.02em;
    margin: 0 0 22px;
}

/* ---- Kachel-Grid ---- */
.ee-dls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ee-dls-tile {
    background: var(--dls-card);
    border: 1px solid var(--dls-line);
    border-radius: var(--dls-radius);
    box-shadow: var(--dls-shadow);
    padding: 22px;
}
.ee-dls-tile .ee-dls-num {
    font-size: .78rem;
    font-weight: 700;
    color: var(--dls-brand);
    letter-spacing: .06em;
    display: block;
    margin-bottom: 8px;
}
.ee-dls-tile h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}
.ee-dls-tile p {
    margin: 0;
    color: var(--dls-muted);
    font-size: .9rem;
}

/* ---- Philosophie ---- */
.ee-dls-philo {
    background: var(--dls-card);
    border: 1px solid var(--dls-line);
    border-radius: var(--dls-radius);
    box-shadow: var(--dls-shadow);
    padding: 30px 32px;
    margin-top: 16px;
}
.ee-dls-philo h3 {
    font-size: 1.35rem;
    letter-spacing: -.02em;
    margin: 0 0 10px;
}
.ee-dls-philo p {
    color: var(--dls-muted);
    margin: 0 0 16px;
    max-width: 64ch;
}
.ee-dls-checks {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ee-dls-checks li {
    position: relative;
    padding-left: 24px;
    margin: 9px 0;
    font-size: .96rem;
}
.ee-dls-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--dls-brand-soft);
    border: 1.5px solid var(--dls-brand);
}

/* ---- CTA-Band ---- */
.ee-dls-band {
    margin-top: 44px;
    background: var(--dls-brand);
    border-radius: var(--dls-radius);
    padding: 32px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.ee-dls-band h3 {
    font-size: 1.4rem;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}
.ee-dls-band p {
    margin: 0;
    opacity: .92;
    max-width: 48ch;
    font-size: .95rem;
}
.ee-dls-band .ee-dls-btn-primary {
    background: #fff;
    color: var(--dls-brand-ink);
}
.ee-dls-band .ee-dls-btn-primary:hover {
    background: #f1f5f9;
    color: var(--dls-brand-ink);
}
.ee-dls-band-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.ee-dls-band-col small {
    font-size: .75rem;
    opacity: .85;
}

@media (max-width: 640px) {
    .ee-dls-grid {
        grid-template-columns: 1fr;
    }
    .ee-dls-hero {
        padding: 26px 22px;
    }
    .ee-dls-hero h2 {
        font-size: 1.55rem;
    }
}
