/* ============================================================
   Divi Menu Module – Frontend-Styles
   ============================================================ */

/* ── CSS Custom Properties (überschreibbar per Modul-Einstellung) ── */
.dmm-wrapper {
    --dmm-headline-color: #08094E;
    --dmm-item-bg: transparent;
    --dmm-text: #08094E;
    --dmm-desc: #08094E;
    --dmm-radius: 10px;
    --dmm-gap: 12px;
    --dmm-grid-cols: 3;

    font-family: inherit;
    box-sizing: border-box;
}

/* ── Headline ─────────────────────────────────────────────── */
.dmm-headline {
    color: var(--dmm-headline-color);
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0%;
    line-height: 1.2;
    text-transform: uppercase;
    word-break: keep-all;
}

.dmm-headline.dmm-headline--small {
    font-size: 12px;
}

.dmm-headline.dmm-headline--large {
    font-size: 24px;
}

.dmm-headline.dmm-headline--light {
    font-weight: 200;
}

.dmm-headline.dmm-headline--regular {
    font-weight: 400;
}

.dmm-headline.dmm-headline--medium {
    font-weight: 500;
}

.dmm-headline.dmm-headline--semibold {
    font-weight: 600;
}

.dmm-headline.dmm-headline--bold {
    font-weight: 700;
}

.dmm-headline.dmm-headline--extrabold {
    font-weight: 800;
}

/* ── Eintrags-Container ───────────────────────────────────── */
.dmm-items {
    display: flex;
    flex-direction: column;
    gap: var(--dmm-gap);
}

/* Horizontales Layout */
.dmm-layout--horizontal .dmm-items {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Grid-Layout */
.dmm-layout--grid .dmm-items {
    display: grid;
    grid-template-columns: repeat(var(--dmm-grid-cols), 1fr);
    gap: var(--dmm-gap);
}

@media (max-width: 980px) {
    .dmm-layout--grid .dmm-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .dmm-layout--horizontal .dmm-items {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .dmm-layout--grid .dmm-items {
        grid-template-columns: 1fr;
    }
}

/* ── Einzelner Menü-Eintrag ──────────────────────────────── */
.dmm-item {
    flex: 1 1 auto;
    display: flex;
    margin-bottom: 10px;
}

.dmm-item:last-child {
    margin-bottom: 0;
}


/* ── Link (Icon + Text) ──────────────────────────────────── */
.dmm-item__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dmm-text) !important;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.dmm-item__link:hover {
    text-decoration: underline !important;
}

/* ── Icon (gemeinsame Basis) ─────────────────────────────── */
.dmm-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

/* SVG / Bild-Variante */
.dmm-item__icon--svg {
    background: transparent; 
    overflow: hidden;
}

.dmm-item__icon--svg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: none;
}

.dmm-item__link:hover .dmm-item__icon--svg {
    background: rgba(74, 144, 226, 0.18);
    opacity: 0.9;
}

/* CSS-Klassen-Icon-Variante (Font Awesome, Dashicons usw.) */
.dmm-item__icon--css {
    /* Größe & Farbe werden inline per style-Attribut gesetzt */
    background: rgba(74, 144, 226, 0.1);
    line-height: 1;
}


/* ── Link-Text ───────────────────────────────────────────── */
.dmm-item__text {
    font-size: 14px;
    font-weight: 500;
}

/* ── Beschreibung ────────────────────────────────────────── */
.dmm-item__desc {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--dmm-desc);
    line-height: 1.4;
    /* Einrückung wird inline per PHP berechnet (icon_size + 20px gap) */
}

.dmm-has-divider .dmm-item__desc {
    /*padding-left: 4px !important;*/
}

/* ── Divi Visual Builder Kompatibilität ──────────────────── */
.et-fb-root-ancestor .dmm-item {
    pointer-events: auto;
}


/* ── Highlight ────────────────────────────────────────── */

.dmm-layout--highlight .et-pb-image-link {
    width: 90%;
}

.dmm-layout--highlight .et-pb-image-link--16-9-landscape img {
 
}
    
.dmm-layout--highlight .et-pb-image-link__text a {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dmm-headline-color) !important;
}
.dmm-layout--highlight .et-pb-image-link__text a:hover {
    text-decoration: underline !important;
}

.dmm-layout--highlight .et-pb-image-link__text a::after {
    content: '';
    width: 13px;
    height: 12px;
    display: inline-block;
    margin-left: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5303 6.05331C12.8232 5.76042 12.8232 5.28554 12.5303 4.99265L7.75736 0.219678C7.46447 -0.0732152 6.98959 -0.0732151 6.6967 0.219678C6.40381 0.512572 6.40381 0.987445 6.6967 1.28034L10.9393 5.52298L6.6967 9.76562C6.40381 10.0585 6.40381 10.5334 6.6967 10.8263C6.98959 11.1192 7.46447 11.1192 7.75736 10.8263L12.5303 6.05331ZM0 5.52298L6.55671e-08 6.27298L12 6.27298L12 5.52298L12 4.77298L-6.55671e-08 4.77298L0 5.52298Z' fill='%2308094E'/%3E%3C/svg%3E%0A");    
}