/**
 * Snippet: Motiv-Boxen Styling
 * Plugin:  Code Snippets → Als CSS-Snippet einfügen
 *          (oder in Appearance > Customize > Additional CSS)
 *
 * Enthält alle Styles für .sb-motiv-section und Kinder-Elemente.
 * Keine externen Abhängigkeiten – funktioniert mit Flatsome.
 */

/* ── Abschnitts-Überschrift ─────────────────────────────────────────────── */

.sb-motiv-section {
    margin: 1.5rem 0 1rem;
}

.sb-motiv-section__heading {
    color: #545454;
    font-size: 15px;
    font-weight: bold;
    margin: 0.1em 0 0.6em;
}

/* ── Basis-Box ──────────────────────────────────────────────────────────── */

.sb-motiv-box {
    border: 1.5px solid #d8d8d8;
    border-radius: 6px;
    padding: 0.7rem;
    margin-bottom: 0.65rem;
    background: #fff;
    position: relative;
    transition: border-color 0.2s;
}
/* ── Empfohlen-Box: grüner Rahmen + aktiver Zustand ────────────────────── */

.sb-motiv-box--recommended {
    border-color: var(--fs-experimental-link-color);
    border-width: 2px;
    background: #fef6f1;
}

.sb-motiv-box--upload {
    opacity:80%;
    filter: grayscale(100%);
}
.sb-motiv-box--upload:hover {
    opacity:100%;
    filter: grayscale(0%);
    transition: filter 0.2s ease;
}
/* ── EMPFOHLEN-Badge ────────────────────────────────────────────────────── */

.sb-motiv-box__badge {
    align-items: center;
    gap: 5px;
    background: #ef460040;        /* Orange wie im Screenshot */
    color: var(--fs-experimental-link-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0px 9px;
    border-radius: 16px;
}

/* ── Box-Header: Titel + Preview-Icon nebeneinander ─────────────────────── */

.sb-motiv-box__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.sb-motiv-box__title-wrap {
    flex: 1 1 auto;
}

.sb-motiv-box__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.sb-motiv-box__subtitle {
    font-size: 0.75rem;
    color: #333;
    font-weight:bolder;
}

/* ── Feature-Liste (Checkmarks) ─────────────────────────────────────────── */

.sb-motiv-box__features {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height:0.85rem;
}

.sb-motiv-box__features li {
    font-size: 0.75rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 0 !important;
}

.sb-motiv-box__features li::before {
    content: "✔️";
    color: var(--fs-color-success);
    font-family: fl-icons;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ── Preview-Icon (SVG) ──────────────────────────────────────────────────── */

.sb-motiv-box__preview-icon,
.sb-motiv-box__upload-icon {
    flex: 0 0 auto;
    width: 80px;
}

.sb-motiv-box__preview-icon svg,
.sb-motiv-box__upload-icon svg {
    width: 100%;
    height: auto;
}

/* ── Aktions-Bereich (FPD- und APF-Output) ───────────────────────────────── */

.sb-motiv-box__action {
    margin-top: 0.35rem;
}

/* FPD-Button soll volle Breite haben und grün sein */
.sb-motiv-box__action--fpd .fpd-btn,
.sb-motiv-box__action--fpd button,
.sb-motiv-box__action--fpd .button,
.sb-motiv-box__action--fpd a.button {
    display: block;
    width: 100%;
    background: #4caf50 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
}

.sb-motiv-box__action--fpd .fpd-btn:hover,
.sb-motiv-box__action--fpd button:hover,
.sb-motiv-box__action--fpd .button:hover {
    background: #43a047 !important;
}

/* Untertitel unter FPD-Button */
.sb-motiv-box__action--fpd .fpd-btn::after,
.sb-motiv-box__fpd-sub {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 2px;
    opacity: 0.9;
}

/* APF-Upload-Button: volle Breite, outlined */
.sb-motiv-box__action--apf input[type="file"],
.sb-motiv-box__action--apf .apf-upload-button,
.sb-motiv-box__action--apf .wapf-field-wrapper button,
.sb-motiv-box__action--apf button {
    display: block;
    width: 100%;
    background: #fff !important;
    color: #222 !important;
    border: 1.5px solid #bbb !important;
    border-radius: 4px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
}

.sb-motiv-box__action--apf .wapf-field-wrapper,
.sb-motiv-box__action--apf .apf-field-wrap {
    margin: 0;
}

/* ── Hinweis-Text (Box 2) ────────────────────────────────────────────────── */

.sb-motiv-box__hint {
    font-size: 0.75rem;
    color: #333;
    line-height: 1.8;
    margin-top: -0.1rem;
}

.sb-motiv-box__hint span {
    font-size: 0.78rem;
    color: #777;
}

/* ── Warnung ─────────────────────────────────────────────────────────────── */

.sb-motiv-box__warning {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #e65100;
    margin: -1rem 0 0;
}

.sb-motiv-box__warning-icon {
    font-size: 0.9rem;
}

/* ── Datei-Anforderungen ─────────────────────────────────────────────────── */

.sb-motiv-box__file-info {
    font-size: 0.75rem;
    color: #777;
    margin: 0.35rem 0 0.75rem;
    line-height: 1.5;
}

.sb-motiv-box__file-info strong {
    color: #555;
}

.sb-motiv-box__file-info a {
    color: #e65100;
    text-decoration: none;
}

.sb-motiv-box__file-info a:hover {
    text-decoration: underline;
}

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

@media (max-width: 480px) {
    .sb-motiv-box__preview-icon,
    .sb-motiv-box__upload-icon {
        display: none;
    }
}