/* Container und Allgemeine Styles */
.mod-uckermark-container {
    width: 100%;
    margin: 2rem 0;
    font-family: inherit;
}

/* Karten-Bereich (Map) */
.uckermark-map-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #2b2d2f;
}

#uckermark-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Mobile First Grid System für die Cards */
.uckermark-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    list-style: none;
    padding: 10px;
    margin: -10px;
}

@media (min-width: 640px) {
    .uckermark-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .uckermark-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Standort Card Styling - Exakt nach Screenshot */
.uckermark-card {
    background-color: #ffffff; /* Weiß als Standard */
    color: #2b2d2f;
    padding: 1.75rem 1.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.uckermark-card:hover {
    background-color: #ffcc00; /* Gelb beim Hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Header mit Icon und Titel */
.uckermark-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* * FIX: Der Marker-Pin MUSS quadratisch sein (gleiche width & height),
 * damit border-radius und die -45deg Drehung eine symmetrische Tropfenform erzeugen!
 */
.uckermark-icon-pin {
    background-color: #2b2d2f;
    color: #ffffff;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
    margin-top: 0.2rem; /* Optische Ausrichtung zum ersten Buchstaben des Titels */
}

.uckermark-icon-pin i {
    transform: rotate(45deg); /* Zurückdrehen des FontAwesome-Icons im Pin */
    font-size: 1.5rem;
    color: #ffcc00;
    display: block;
}

.uckermark-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.15;
    letter-spacing: 0.5px;
    padding-top: 0.2rem;
    word-break: break-word;
}

/* Adresse */
.uckermark-address {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    padding-left: calc(52px + 1rem); /* Bündig mit Titel (52px Icon + 1rem Gap) */
    white-space: pre-line; /* Respektiert Zeilenumbrüche aus Textarea */
}

/* Button */
.uckermark-btn-wrapper {
    padding-left: calc(52px + 1rem);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.uckermark-btn {
    display: inline-block;
    background-color: #2b2d2f;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.65rem 1.2rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 2px solid #2b2d2f;
    min-height: 44px; /* WCAG a11y Touch Target */
    display: inline-flex;
    align-items: center;
}

.uckermark-btn:hover,
.uckermark-btn:focus {
    background-color: transparent;
    color: #2b2d2f !important;
    text-decoration: none;
}

/* a11y Fokus-Stile */
.uckermark-btn:focus-visible,
.uckermark-card:focus-within {
    outline: 3px solid #000000;
    outline-offset: 3px;
}

/* Macht das Wort "Wertstoffannahmehof" kleiner */
.uckermark-title .title-prefix {
    font-size: 0.85rem;      /* Schriftgröße anpassen (kleiner als 1.5rem vom Titel) */
    font-weight: 600;        /* Etwas weniger fett als der Hauptort */
    display: block;          /* Sorgt für einen automatischen Zeilenumbruch vor dem Ort */
    margin-bottom: 0.2rem;   /* Etwas Abstand zum Ortsnamen */
    color: #2b2d2f;          /* Farbe beibehalten */
}

/* --- GEOLOCATION FEATURE STYLES --- */

/* Mein Standort Button */
.uckermark-locate-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background-color: #ffcc00;
    color: #2b2d2f;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uckermark-locate-btn:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.uckermark-locate-btn:disabled {
    background-color: #f1f1f1;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.uckermark-locate-btn.located {
    background-color: #4CAF50;
    color: white;
}

/* Distanz Anzeige */
.uckermark-distance {
    padding-left: calc(52px + 1rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #2b2d2f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}
.uckermark-distance i {
    color: #007bff;
}

/* Spezifisches Route-Button Styling */
.uckermark-btn-route {
    background-color: #ffcc00;
    border: 2px solid #333333;
    color: #333333 !important;
}

.uckermark-btn-route:hover,
.uckermark-btn-route:focus {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff !important;
}

/* --- STRETCHED LINK & PHONES (A11y) --- */

/* Der versteckte Layer, der die Kachel klickbar macht */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Sekundäre interaktive Elemente müssen "über" dem Stretched-Link liegen */
.uckermark-btn,
.uckermark-btn-route,
.uckermark-phone-link {
    position: relative;
    z-index: 2;
}

/* Telefonnummern Styling */
.uckermark-phones {
    padding-left: calc(52px + 1rem); /* Bündig mit Adresse/Titel */
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uckermark-phone-link {
    color: #2b2d2f;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.uckermark-phone-link:hover,
.uckermark-phone-link:focus-visible {
    opacity: 0.7;
    text-decoration: underline;
}

.uckermark-phone-link i {
    color: #2b2d2f;
    opacity: 0.8;
}