/**
 * Kontaktseite — Karten-Layout.
 *
 * Farben aus den Theme-Tokens (custom.css): --bs-dark #2c3e50 als Textfarbe,
 * --bs-primary #f5cf7c ist ein helles Gelb und darf NIE Träger für weißen Text
 * sein (Kontrast 1.5:1). Als Akzent nur flächig hinter dunklem Text.
 */

.contact-page {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 340px);
}

.contact-heading {
    color: var(--bs-dark, #2c3e50);
}

/* #4a5568 auf Weiß = 7.5:1 — deutlich über der WCAG-AA-Schwelle von 4.5:1. */
.contact-lead {
    color: #4a5568;
}

/* --- Karten ------------------------------------------------------------- */

.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

.contact-card__title {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bs-dark, #2c3e50);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--bs-primary, #f5cf7c);
}

.contact-card__title i {
    color: #8a6d1f; /* abgedunkeltes Primary: 4.9:1 auf Weiß */
}

.contact-card__meta {
    color: #4a5568;
    font-size: .9375rem;
}

.contact-card__note {
    color: #4a5568;
    font-size: .9375rem;
    line-height: 1.6;
}

.contact-card__note p:last-child {
    margin-bottom: 0;
}

.contact-card address {
    font-style: normal;
    line-height: 1.7;
    margin-bottom: 0;
}

.contact-card__link {
    color: #1f4e79; /* 8.1:1 auf Weiß */
    font-weight: 600;
    text-decoration: none;
}

.contact-card__link:hover,
.contact-card__link:focus-visible {
    text-decoration: underline;
}

/* Akzent-Karte: getönter Hintergrund, Text bleibt dunkel. */
.contact-card--accent {
    background: #fdf8ec;
    border-color: #efdcae;
}

/* --- Öffnungszeiten ----------------------------------------------------- */

.contact-hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .5rem 1.25rem;
    margin: 0;
}

.contact-hours dt {
    font-weight: 600;
    color: var(--bs-dark, #2c3e50);
    white-space: nowrap;
}

.contact-hours dd {
    margin: 0;
    color: #2d3748;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* --- Direktkontakt (Telefon / E-Mail) ----------------------------------- */

.contact-direct {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .75rem .875rem;
    margin-bottom: .625rem;
    border-radius: .625rem;
    background: rgba(255, 255, 255, .75);
    border: 1px solid #efdcae;
    color: var(--bs-dark, #2c3e50);
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.contact-direct:hover,
.contact-direct:focus-visible {
    background: #ffffff;
    border-color: #d9bd6c;
    color: var(--bs-dark, #2c3e50);
}

.contact-direct i {
    flex: 0 0 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-dark, #2c3e50);
    color: #ffffff; /* 11:1 */
}

.contact-direct__label {
    display: block;
    font-size: .8125rem;
    color: #4a5568;
    line-height: 1.2;
}

.contact-direct__value {
    display: block;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

/* --- Karte (Leaflet) ---------------------------------------------------- */

.contact-map {
    min-height: 320px;
    border-radius: .75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Der Consent-Platzhalter der Karte ist ein eigenes div ohne Hoehe — ohne
   diese Regel bleibt unterhalb ein grosser Leerraum in der Spalte. */
.contact-map > div {
    height: 100%;
    min-height: 320px;
}

/* --- Bewertungs-Aufruf -------------------------------------------------- */

.contact-review {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    border-radius: 1rem;
    background: var(--bs-dark, #2c3e50);
    color: #ffffff;
}

.contact-review h2,
.contact-review p {
    color: #ffffff;
}

/* Sichtbarer Fokus auf dunklem Grund. */
.contact-review .btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* --- Responsiv ---------------------------------------------------------- */

@media (max-width: 991.98px) {
    .contact-card {
        padding: 1.5rem;
    }

    .contact-review {
        padding: 1.5rem;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .contact-hours {
        grid-template-columns: 1fr auto;
        gap: .375rem .75rem;
    }

    .contact-card {
        padding: 1.25rem;
    }
}
