/* =========================================================
   Content Block "SG-Rhade Kontakt" – Kontaktkarte
   ========================================================= */

.sg-contact {
    --sg-green: #13730d;
    --sg-red: #a3123a;

    display: flex;
    gap: 1.1rem;
    height: 100%;
    padding: 1.4rem 1.5rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .06);
    transition: box-shadow .2s ease, transform .2s ease;
}

.sg-contact:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .10), 0 10px 24px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
}

.sg-contact__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
    color: #fff;
    background: var(--sg-red);
    border-radius: 50%;
}

.sg-contact__body {
    min-width: 0;
}

.sg-contact__title {
    margin: .35rem 0 .5rem;
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #222;
}

.sg-contact__person {
    margin: 0 0 .6rem;
    font-weight: 600;
    color: #444;
}

.sg-contact__links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* E-Mail / Telefon als gut klickbare Schaltflächen */
.sg-contact__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    max-width: 100%;
    padding: .45rem .95rem;
    font-weight: 600;
    color: var(--sg-green);
    background: #f1f8f0;
    border: 1px solid #cfe5cd;
    border-radius: 999px;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.sg-contact__link::before {
    font-family: FontAwesome;
    font-weight: normal;
}

.sg-contact__link--mail::before {
    content: "\f0e0"; /* envelope */
}

.sg-contact__link--phone::before {
    content: "\f095"; /* phone */
}

.sg-contact__link:hover,
.sg-contact__link:focus-visible {
    color: #fff;
    background: var(--sg-green);
    border-color: var(--sg-green);
    text-decoration: none;
}

.sg-contact__link:focus-visible {
    outline: 3px solid var(--sg-green);
    outline-offset: 2px;
}

/* In den Rasterzellen der Seitenlayouts: Karte füllt die Zelle, kein grauer Kasten */
.sg-flex-item--content:has(> .frame-type-sar_kontakt) {
    padding: 0;
    background: transparent;
}

.sg-flex-item--content > .frame-type-sar_kontakt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

/* Mehrere Kontakte untereinander (z. B. in einspaltigen Layouts) */
.frame-type-sar_kontakt + .frame-type-sar_kontakt {
    margin-top: 1rem;
}

@media (max-width: 575.98px) {
    .sg-contact {
        flex-direction: column;
        gap: .75rem;
        padding: 1.25rem;
    }

    .sg-contact__title {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg-contact,
    .sg-contact__link {
        transition: none;
    }

    .sg-contact:hover {
        transform: none;
    }
}
