.map
{
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map.fullscreen
{
    width: 100%;
    height: 100%;
}

    .map p
    {
        font-size: 1.2rem;
        color: #555;
    }

/* ================================================================
   Karten-Marker (WCAG: nicht nur Farbe als Information)
   ================================================================ */

.map-marker
{
    --marker-color: var(--color-primary);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--marker-color);
    border: 2px solid rgba(0,0,0,0.25);
    cursor: pointer;
    padding: 0;

    /* Fokus-Ring für Tastaturnutzer (WCAG 2.4.7) */
    outline-offset: 3px;
}

.map-marker:focus-visible
{
    outline: 3px solid #0057b7;
}

/* ================================================================
   Cluster-Marker (mehrere Institutionen zusammengefasst)
   ================================================================ */

.map-cluster
{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 3px solid rgba(0,0,0,0.2);
    cursor: pointer;
    padding: 0;

    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    outline-offset: 3px;

    /* Visuelle Unterscheidung vom Einzel-Marker */
    ring-shadow: 0 0 0 4px rgba(var(--color-primary-rgb, 26,115,232), 0.25);
}

.map-cluster:focus-visible
{
    outline: 3px solid #0057b7;
}

.map-cluster:hover
{
    filter: brightness(1.1);
}

.map-cluster__count
{
    display: block;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.map-marker__symbol
{
    display: block;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.map-marker__icon
{
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.4));
}

/* ================================================================
   Legende (optional, wird derzeit nicht angezeigt)
   ================================================================ */

.map-legend
{
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    background: var(--color-background);
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ================================================================
   Modals → werden per <link> in map_fullscreen.blade.php geladen
   (CSS @import nach anderen Regeln wird von Browsern ignoriert)
   ================================================================ */

/* ================================================================
   Barrierefreiheits-Badges (Ergänzung)
   ================================================================ */

.badge.partial
{
    background-color: #e67e22;
    color: #fff;
}

.badge.negative
{
    background-color: #c0392b;
    color: #fff;
}

.badge.neutral
{
    background-color: #888;
    color: #fff;
}

/* ================================================================
   Eigene Gruppe – Kriterien-Liste im Modal
   ================================================================ */

.criteria-fieldset
{
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

    .criteria-fieldset legend
    {
        padding: 0 0.5rem;
        font-weight: 600;
        font-size: 0.95rem;
    }

.criteria-checklist
{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 260px;
    overflow-y: auto;
}

.criteria-checklist__item
{
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.criteria-checklist__label
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}

    .criteria-checklist__label input[type="checkbox"]
    {
        width: 1.1rem;
        height: 1.1rem;
        flex-shrink: 0;
        accent-color: var(--color-primary);
        cursor: pointer;
    }

.criteria-check-desc
{
    font-size: 0.8rem;
    color: #666;
    padding-left: 1.6rem;
    line-height: 1.4;
}

.modal-group-name-field
{
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    .modal-group-name-field label
    {
        font-weight: 600;
        font-size: 0.9rem;
    }

    .modal-group-name-field input
    {
        padding: 0.5rem;
        border: 1px solid var(--color-border);
        border-radius: 4px;
        font-size: 0.95rem;
        outline: none;
    }

    .modal-group-name-field input:focus
    {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 2px rgba(26,115,232,0.25);
    }

/* ================================================================
   Screenreader-only Hilfsmethode
   ================================================================ */

.sr-only
{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
