/**
 * Azure Contact Sync – Elementor Widget (Einzelkontakt)
 * Stadt Dorsten · StA 16 ITM
 *
 * CSS Custom Properties (über Elementor Style-Tab steuerbar):
 *   --acs-primary:  #0f3557
 *   --acs-accent:   #2e86de
 */

/* ================================================================
   BASIS
   ================================================================ */

.acs-contact {
    --acs-primary: #0f3557;
    --acs-accent: #2e86de;
    --acs-border: #e2e8f0;
    --acs-text: #1a202c;
    --acs-text-muted: #637381;

    font-family: inherit;
    color: var(--acs-text);
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
}

.acs-contact a {
    color: var(--acs-accent);
    text-decoration: none;
    transition: color .15s;
}

.acs-contact a:hover {
    color: var(--acs-primary);
    text-decoration: underline;
}

/* Platzhalter im Editor */
.acs-placeholder {
    border: 2px dashed var(--acs-border);
    background: #f9fafb;
}

/* ================================================================
   AVATAR
   ================================================================ */

.acs-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--acs-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 21px;
    letter-spacing: .5px;
    flex-shrink: 0;
    user-select: none;
}

/* ================================================================
   KONTAKT-INFO (Anrede, Name, Amt)
   ================================================================ */

.acs-contact-name {
    font-size: inherit;
    font-weight: 700;
    color: var(--acs-primary);
    line-height: inherit;
}

.acs-contact-abteilung {
    font-size: inherit;
    color: var(--acs-text-muted);
    margin-top: 2px;
}

.acs-contact-amt {
    font-size: inherit;
    color: var(--acs-text-muted);
    margin-top: 2px;
}

/* ================================================================
   DETAIL-ZEILEN (E-Mail, Telefon, Adresse)
   ================================================================ */

.acs-contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.acs-contact-detail {
    font-size: inherit;
    color: var(--acs-text);
    word-break: break-word;
}

/* ================================================================
   LAYOUT: KARTE (Standard)
   ================================================================ */

.acs-layout-card .acs-contact-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.acs-layout-card .acs-contact-info {
    min-width: 0;
}

/* ================================================================
   LAYOUT: ZENTRIERT
   ================================================================ */

.acs-layout-centered {
    text-align: center;
}

.acs-layout-centered .acs-avatar {
    margin: 0 auto 12px;
}

.acs-layout-centered .acs-contact-details {
    display: inline-flex;
    align-items: flex-start;
    text-align: left;
}

.acs-layout-centered .acs-contact-detail {
    justify-content: center;
}

/* ================================================================
   LAYOUT: INLINE (kompakt)
   ================================================================ */

.acs-layout-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border: none;
    background: transparent;
    padding: 0 !important;
}

.acs-contact-inline-main {
    font-size: 15px;
}

.acs-contact-inline-main .acs-contact-anrede {
    display: inline;
    font-size: inherit;
    text-transform: none;
    letter-spacing: 0;
    color: var(--acs-text-muted);
}

.acs-contact-inline-main .acs-contact-name {
    display: inline;
    font-size: inherit;
}

.acs-contact-amt-inline {
    color: var(--acs-text-muted);
    font-size: 13px;
}

.acs-contact-abteilung-inline {
    color: var(--acs-text-muted);
    font-size: 13px;
}

.acs-contact-inline-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    flex-wrap: wrap;
}

.acs-contact-inline-meta a {
    white-space: nowrap;
}

.acs-inline-adresse {
    color: var(--acs-text-muted);
    font-size: 13px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 480px) {
    .acs-layout-card .acs-contact-header {
        flex-direction: column;
        text-align: center;
    }

    .acs-layout-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .acs-contact-inline-meta {
        flex-direction: column;
        gap: 4px;
    }

    .acs-contact-name {
        font-size: 18px;
    }
}
