/* ============================================================
   DCL Filialen – Stylesheet (nutzt CSS-Variablen für Farben)
   Farben werden vom Plugin dynamisch per wp_head gesetzt.
   Defaults falls kein PHP vorhanden:
============================================================ */
:root {
    --dcl-accent:      #e63329;
    --dcl-card-bg:     #ffffff;
    --dcl-card-shadow: #00000029;
    --dcl-title:       #1a1a1a;
    --dcl-text:        #333333;
    --dcl-link:        #e63329;
    --dcl-btn:         #000000;
    --dcl-map-border:  #e0e0e0;
}

/* Layout */
.dcl-filialen-wrap {
    display: grid;
    gap: 32px;
    margin: 32px 0;
}
.dcl-cols-1 { grid-template-columns: 1fr; }
.dcl-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dcl-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
    .dcl-cols-2,
    .dcl-cols-3 { grid-template-columns: 1fr; }
}

/* Karte */
.dcl-filiale-card {
    background: var(--dcl-card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 16px var(--dcl-card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}
.dcl-filiale-card:hover {
    box-shadow: 0 6px 28px var(--dcl-card-shadow);
    transform: translateY(-3px);
}

/* Galerie */
.dcl-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16 / 9;
}
.dcl-gallery-slides { display: flex; height: 100%; }
.dcl-slide { min-width: 100%; height: 100%; display: none; }
.dcl-slide.active { display: block; }
.dcl-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dcl-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dcl-btn);
    opacity: .6;
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    line-height: 1;
    transition: opacity .2s;
}
.dcl-gallery-btn:hover { opacity: .9; }
.dcl-prev { left: 10px; }
.dcl-next { right: 10px; }

.dcl-gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.dcl-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.dcl-dot.active, .dcl-dot:hover {
    background: #fff;
    transform: scale(1.25);
}

/* Body */
.dcl-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--dcl-text);
}

.dcl-filiale-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--dcl-title);
    border-bottom: 3px solid var(--dcl-accent);
    padding-bottom: 10px;
}

.dcl-section { font-size: .95rem; line-height: 1.65; }

.dcl-contact a {
    color: var(--dcl-link);
    text-decoration: none;
}
.dcl-contact a:hover { text-decoration: underline; }

.dcl-map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--dcl-map-border);
    margin-top: 6px;
}
.dcl-map-wrapper iframe { display: block; }
