/* ═══════════════════════════════════════════════════════════════════════════
   Component: Region & Map — Essig Elektro
   Eigene Sektion für das Einsatzgebiet.

   Die eingebettete Google-Maps-Karte wurde am 23.09.2026 auf Kundenwunsch
   entfernt. Damit bindet die Website keinen Drittanbieter mehr ein — der
   einzige Verwender von data-cc-type="marketing" war genau dieses iframe.

   Konventionen dieser Datei: ausschliesslich Haus-Tokens (tokens/*.css) und
   das vorhandene l-grid-System. Keine erfundenen Werte — Kicker, Titel und
   Text folgen exakt der Typografie von components/page-header.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Kopf: identisch zur Page-Header-Typografie ─────────────────────────── */

.c-region-map__kicker {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

/* Kicker-Marke: seit 27.09.2026 ein "+" statt eines Zierstrichs
   (siehe page-header.css fuer die Begruendung).
   Der 2px-Versatz gleicht die optische Mitte aus — das Pluszeichen ist groesser
   als die Versalhoehe des Kicker-Textes und lag dadurch zu tief (gemessen am
   28.09.2026). */
.c-region-map__kicker-line {
    width: auto;
    height: auto;
    background: none;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: var(--color-orange-500);
    user-select: none;
    position: relative;
    top: -2px;
}

.c-region-map__kicker-line::before {
    content: '+';
    display: block;
}

.c-region-map__kicker-text {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest);
    color: var(--color-orange-600);
}

.c-region-map__title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    text-wrap: balance;
}

.c-region-map__text {
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: var(--measure-normal);
}

.c-region-map__head {
    max-width: var(--measure-wide);
    margin-bottom: var(--space-3xl);
}

/* ── Panel: gleiche Fläche und Interaktion wie c-cert-card ──────────────── */

.c-region-map__panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: var(--measure-wide);
    padding: var(--space-xl);
    background: var(--color-surface-light);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-sm);
    transition: background-color var(--motion-duration-fast) var(--motion-ease-out);
}

.c-region-map__label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xs);
}

.c-region-map__address-value {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.c-region-map__link {
    /* Eigenstaendige Aktion, kein Link im Fliesstext: war 21px hoch und damit
       unter WCAG 2.5.8 (24x24), auf dem Handy 44px. */
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-orange-600);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color var(--motion-duration-fast) var(--motion-ease-out);
}

.c-region-map__link:hover,
.c-region-map__link:focus-visible {
    color: var(--color-orange-700);
}

.c-region-map__cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.c-region-map__cities-list li {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: var(--space-2xs) var(--space-sm);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-sm);
    background: var(--color-surface-muted);
}

.c-region-map__note {
    margin-top: auto;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Ab 1280px stand die Karte neben dem Panel (l-grid--60-40). Seit dem Ausbau
   der Karte bleibt eine Spalte: das Panel begrenzt sich über max-width auf die
   Textbreite des Kopfes (--measure-wide) und läuft nicht über die ganze
   Seitenbreite. Nur die Innenabstände schrumpfen noch auf Mobilbreite. */
@media (max-width: 768px) {
    .c-region-map__panel {
        padding: var(--space-lg);
    }
}
