/* AffiliateForge – Produkt-Box */
.af-box {
    --af-accent: #16a34a;
    position: relative;
    display: flex;
    gap: 22px;
    align-items: stretch;
    border: 1px solid var(--af-box-border, #e7eaee);
    border-radius: 16px;
    background: var(--af-box-bg, #ffffff);
    padding: 22px 24px;
    margin: 28px 0;
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.af-box:hover {
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.1);
    transform: translateY(-2px);
}

/* "Empfehlung der Redaktion"-Akzent */
.af-box--editor {
    border-color: var(--af-accent);
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.09);
}
.af-box--editor::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    border-radius: 16px 0 0 16px;
    background: var(--af-accent);
}
.af-box__editor {
    position: absolute;
    top: -11px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--af-accent);
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.18);
}
.af-box__editor::before {
    content: "\2605"; /* Stern */
    font-size: 0.9em;
}

.af-box__media {
    flex: 0 0 170px;
    max-width: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-box__media img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.af-box__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.af-box__badge {
    align-self: flex-start;
    display: inline-block;
    background: var(--af-badge, rgba(0,0,0,0.05));
    color: var(--af-badge-text, #374151);
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin: 0 0 10px;
}

.af-box__title {
    margin: 0 0 10px;
    font-size: 1.3em;
    line-height: 1.3;
    font-weight: 700;
}

.af-box__title a {
    color: #0f172a;
    text-decoration: none;
}

.af-box__title a:hover {
    color: var(--af-accent);
}

.af-box__desc {
    color: #3f4754;
    font-size: 0.97em;
    margin: 0 0 14px;
}

.af-box__desc p {
    margin: 0 0 8px;
}

.af-box__bullets {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.af-box__bullets li {
    position: relative;
    padding-left: 26px;
    margin: 0 0 7px;
    line-height: 1.45;
}

.af-box__bullets li::before {
    content: "\2713"; /* Haken */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--af-accent);
    font-weight: 700;
}

.af-box__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.af-box__price {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f3f5f7;
    color: var(--af-accent);
    font-size: 1.08em;
    font-weight: 800;
    padding: 6px 13px;
    border-radius: 9px;
    line-height: 1.1;
}
.af-box__price-ico {
    flex: 0 0 auto;
}
.af-box__price-val {
    color: #0f172a;
}

.af-box__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.af-box__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--af-btn, var(--af-accent));
    color: #ffffff !important;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 11px;
    font-weight: 800;
    font-size: 1.02em;
    line-height: 1.2;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.16);
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.af-box__cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 7px 22px rgba(17, 24, 39, 0.24);
}

.af-box__secondary {
    font-size: 0.82em;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 1px dashed #c7cdd6;
    line-height: 1.3;
}
.af-box__secondary:hover {
    color: var(--af-accent);
    border-bottom-color: var(--af-accent);
}

/* Kompakte Variante */
.af-box--compact {
    gap: 16px;
    padding: 14px 16px;
}

.af-box--compact .af-box__media {
    flex-basis: 100px;
    max-width: 100px;
}

.af-box--compact .af-box__title {
    font-size: 1.08em;
}

/* Transparenz-Hinweis */
.af-disclosure {
    font-size: 0.8em;
    color: #8a8f98;
    background: #f7f8fa;
    border: 1px solid #eceef1;
    border-radius: 6px;
    padding: 9px 13px;
    margin: 8px 0 22px;
}

/* Sammel-Sektion "Unsere Empfehlungen" */
.af-recommend {
    margin: 28px 0;
}
.af-recommend__title {
    margin: 0 0 12px;
    font-size: 1.3em;
}

/* Auto-gesetzter Contentlink (optional dezent hervorhebbar) */
.af-clink {
    text-decoration: underline;
}

/* Sidebar-Variante: vertikal, kompakt */
.af-box--sidebar {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}
.af-box--sidebar .af-box__media {
    flex-basis: auto;
    max-width: 100%;
}
.af-box--sidebar .af-box__media img {
    max-height: 180px;
    margin: 0 auto;
}
.af-box--sidebar .af-box__title {
    font-size: 1.05em;
}
.af-box--sidebar .af-box__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.af-box--sidebar .af-box__actions {
    margin-left: 0;
    align-items: stretch;
    width: 100%;
}
.af-box--sidebar .af-box__cta {
    justify-content: center;
    width: 100%;
}
.af-box--sidebar .af-box__secondary {
    text-align: center;
}
.af-widget .af-box {
    margin: 0 0 16px;
}

/* Vergleichstabelle */
.af-compare {
    --af-accent: #16a34a;
    margin: 26px 0;
}
.af-compare__title {
    margin: 0 0 12px;
    font-size: 1.3em;
}
.af-compare__scroll {
    overflow-x: auto;
}
.af-compare__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 12px 0;
    table-layout: fixed;
}
.af-compare__table td {
    background: #ffffff;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    padding: 14px;
    vertical-align: top;
    text-align: center;
    min-width: 180px;
}
.af-compare__table tr.af-compare__row-img td {
    border-bottom: none;
}
.af-compare__row-img img {
    max-width: 100%;
    max-height: 150px;
    height: auto;
    border-radius: 8px;
}
.af-compare__row-title strong {
    display: block;
    font-size: 1.05em;
    margin-top: 6px;
}
.af-compare__row-title a {
    color: #111827;
    text-decoration: none;
}
.af-compare__row-price td {
    font-weight: 700;
    color: #111827;
}
.af-compare__row-desc .af-box__bullets {
    text-align: left;
}
.af-compare__row-cta .af-box__cta {
    width: 100%;
}
.af-compare__row-cta td {
    vertical-align: bottom;
}
/* Zusammenhängende Spalten optisch verbinden */
.af-compare__table tr td {
    border-top: none;
    border-bottom: none;
    border-radius: 0;
}
.af-compare__table tr.af-compare__row-img td {
    border-top: 1px solid #e4e7eb;
    border-radius: 12px 12px 0 0;
}
.af-compare__table tr.af-compare__row-cta td {
    border-bottom: 1px solid #e4e7eb;
    border-radius: 0 0 12px 12px;
    padding-top: 6px;
}

/* Mobile: untereinander */
@media (max-width: 600px) {
    .af-box {
        flex-direction: column;
        gap: 14px;
    }
    .af-box__media,
    .af-box--compact .af-box__media {
        flex-basis: auto;
        max-width: 100%;
    }
    .af-box__media img {
        max-height: 220px;
        margin: 0 auto;
    }
    .af-box__footer {
        justify-content: space-between;
    }
}

/* ============================================================
   Box-Varianten (global wählbar)
   ============================================================ */

/* Sterne-Bewertung */
.af-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}
.af-rating__stars {
    position: relative;
    display: inline-block;
    font-size: 1.05em;
    line-height: 1;
    color: #d7dbe0;
}
.af-rating__stars::before {
    content: "\2605\2605\2605\2605\2605";
    letter-spacing: 2px;
}
.af-rating__fill {
    position: absolute;
    left: 0; top: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f5a623;
}
.af-rating__fill::before {
    content: "\2605\2605\2605\2605\2605";
    letter-spacing: 2px;
}
.af-rating__num {
    font-size: 0.82em;
    font-weight: 700;
    color: #6b7280;
}

/* --- Spotlight: Bild oben, zentriert --- */
.af-box--style-spotlight {
    flex-direction: column;
    text-align: center;
    align-items: center;
}
.af-box--style-spotlight .af-box__media {
    flex-basis: auto;
    max-width: 100%;
    margin-bottom: 6px;
}
.af-box--style-spotlight .af-box__media img {
    max-height: 240px;
}
.af-box--style-spotlight .af-box__body {
    width: 100%;
    align-items: center;
}
.af-box--style-spotlight .af-box__badge,
.af-box--style-spotlight .af-rating {
    align-self: center;
}
.af-box--style-spotlight .af-box__footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.af-box--style-spotlight .af-box__actions {
    margin-left: 0;
    width: 100%;
    max-width: 360px;
}
.af-box--style-spotlight .af-box__cta {
    justify-content: center;
    width: 100%;
}

/* --- Kompakt-Zeile: flach, platzsparend --- */
.af-box--style-row {
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}
.af-box--style-row .af-box__media {
    flex: 0 0 64px;
    max-width: 64px;
}
.af-box--style-row .af-box__media img {
    border-radius: 8px;
}
.af-box--style-row .af-box__body {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}
.af-box--style-row .af-box__title {
    margin: 0;
    font-size: 1.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.af-box--style-row .af-rating {
    margin: 0;
}
.af-box--style-row .af-box__footer {
    margin: 0;
    flex: 0 0 auto;
    width: auto;
    gap: 14px;
    align-items: center;
}
.af-box--style-row .af-box__price {
    font-size: 1em;
    white-space: nowrap;
}
.af-box--style-row .af-box__actions {
    flex-direction: column;
    align-items: flex-end;
}
.af-box--style-row .af-box__cta {
    padding: 10px 18px;
    white-space: nowrap;
}

/* --- Bewertungs-Box: Score unter dem Bild --- */
.af-box--style-review .af-box__media-col {
    flex: 0 0 170px;
    max-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.af-box--style-review .af-box__media {
    flex-basis: auto;
    max-width: 100%;
}
.af-box--style-review .af-box__score {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
    width: 100%;
}
.af-box--style-review .af-box__score .af-rating {
    margin: 0;
    flex-direction: column;
    gap: 4px;
}

/* --- Deal: Preis groß im Fokus --- */
.af-box--style-deal .af-box__footer--deal {
    align-items: center;
    gap: 16px;
}
.af-box__price--big {
    background: transparent;
    padding: 0;
    font-size: 1.7em;
    font-weight: 800;
    color: var(--af-accent);
    line-height: 1;
    gap: 9px;
}
.af-box__price--big .af-box__price-val {
    color: var(--af-accent);
}
.af-box__price--big .af-box__price-ico {
    width: 20px;
    height: 20px;
}
.af-box--style-deal .af-box__cta {
    padding: 14px 30px;
    font-size: 1.08em;
}

/* Mobile-Anpassung der Varianten */
@media (max-width: 600px) {
    .af-box--style-review,
    .af-box--style-row {
        flex-direction: column;
        align-items: stretch;
    }
    .af-box--style-review .af-box__media-col,
    .af-box--style-row .af-box__media {
        flex-basis: auto;
        max-width: 100%;
    }
    .af-box--style-row .af-box__body {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .af-box--style-deal .af-box__footer--deal {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Kooperationen / Werbeplatz */
.af-coop {
    margin: 28px 0;
    text-align: center;
}
.af-coop img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: inline-block;
}
