/* =====================================================================
   Flussfahrer Boot-Card – gemeinsame Kachel (v2.1)
   Dark Mode – Float-Layout: Bild 160×107px (3:2), Text fließt daneben
   und darunter weiter. Elementor-Farben: #3D3D3D, #016F26, #61CE70
   ===================================================================== */

.ff-boot-card {
    background: #3D3D3D;
    border: 1px solid #1E1E1E;
    border-radius: 10px;
    overflow: hidden;       /* clearfix + clip für border-radius */
    margin-bottom: 14px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ff-boot-card:hover {
    box-shadow: 0 3px 16px rgba(0,0,0,0.45);
    border-color: #016F26;
}

.ff-boot-card:last-child { margin-bottom: 0; }

/* ---- Bild: float left, feste 3:2-Ratio (140×93px) ---- */

.ff-boot-card__img-wrap {
    float: left;
    width: 140px;
    height: 93px;           /* 140 × 2/3 ≈ 93 = 3:2-Ratio */
    margin-right: 12px;     /* Abstand zwischen Bild und Text */
    position: relative;
    overflow: hidden;
    background: #282828;
}

.ff-boot-card__img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;   /* WP setzt sonst height:auto */
    object-fit: cover !important;
    object-position: center center;
    display: block;
}

.ff-boot-card__img-placeholder {
    position: absolute;
    inset: 0;
    background: #282828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

/* ---- Body: display:block damit Kinder-Elemente dem Float individuell
   ausweichen und Content unterhalb der Bildhöhe auf volle Breite fließt ---- */

.ff-boot-card__body {
    padding: 10px 14px 12px;
    display: block;                  /* KEIN flex → kein BFC → Float-Wrapping */
    min-height: 93px;                /* mindestens Bildhöhe für clearfix */
}

.ff-boot-card__badges  { margin-bottom: 5px; }
.ff-boot-card__name    { margin-bottom: 4px; }
.ff-boot-card__stats   { margin-bottom: 6px; }
.ff-boot-card__desc    { margin-bottom: 8px; }

/* ---- Badges ---- */

.ff-boot-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ff-boot-badge {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    line-height: 1.65;
}

.ff-boot-badge--tested        { background: #016F26;  color: #61CE70; }
.ff-boot-badge--type          { background: #282828;  color: #A1A0A0; }
.ff-boot-badge--konstruktion  { background: #282828;  color: #A1A0A0; }
.ff-boot-badge--familie       { background: #282828;  color: #61CE70; }
.ff-boot-badge--staufach      { background: #282828;  color: #A1A0A0; }
.ff-boot-badge--steuer        { background: #282828;  color: #A1A0A0; }
.ff-boot-badge--eingestellt   { background: #1E1E1E;  color: #A1A0A0; }

/* ---- Name ---- */

.ff-boot-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #F7F7F7;
    margin: 0;
    line-height: 1.3;
}

.ff-boot-card__name a {
    color: inherit;
    text-decoration: none;
}
.ff-boot-card__name a:hover { color: #61CE70; }

/* ---- Beschreibung ---- */

.ff-boot-card__desc {
    font-size: 0.81rem;
    color: #A1A0A0;
    margin: 0;
    line-height: 1.45;
    clear: left;    /* immer unterhalb des Bilds – volle Breite */
}

/* ---- Stats ---- */

.ff-boot-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    font-size: 0.78rem;
    color: #A1A0A0;
}

.ff-boot-card__stat {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

/* ---- Footer (Aktionen + Preis) ---- */

.ff-boot-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    clear: left;                     /* Footer immer unterhalb des Bildes */
    padding-top: 8px;
    border-top: 1px solid #1E1E1E;
}

.ff-boot-card__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F7F7F7;
    margin-left: auto;
    white-space: nowrap;
}

/* ---- Match-Badge ---- */

.ff-boot-card__rank {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.ff-boot-card__rank--high {
    background: #016F26;
    color: #fff;
}

.ff-boot-card__rank--mid {
    background: rgba(30, 30, 30, 0.82);
    color: #bbb;
    border: 1px solid #555;
}

/* ---- Buttons ---- */

.ff-boot-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    line-height: 1.3;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

/* Kaufen – primary grün gefüllt */
.ff-boot-btn--primary {
    background: #016F26;
    color: #F7F7F7 !important;
}
.ff-boot-btn--primary:hover { background: #086221; color: #F7F7F7 !important; }

/* Zum Test – grüner Rahmen */
.ff-boot-btn--secondary {
    background: transparent;
    color: #61CE70 !important;
    border: 1.5px solid #61CE70;
}
.ff-boot-btn--secondary:hover { background: #016F26; color: #F7F7F7 !important; border-color: #016F26; }

/* Zum Datenblatt – grauer Rahmen */
.ff-boot-btn--ghost {
    background: transparent;
    color: #A1A0A0 !important;
    border: 1px solid #555;
}
.ff-boot-btn--ghost:hover { background: #282828; border-color: #A1A0A0; color: #F7F7F7 !important; }

/* ---- Mobile ≤ 540px ---- */

@media (max-width: 540px) {
    .ff-boot-card__img-wrap {
        float: none;
        width: 100%;
        height: 160px;      /* etwas mehr Höhe auf Mobile */
    }

    .ff-boot-card__body {
        padding: 12px 14px;
        min-height: unset;
    }

    .ff-boot-card__price {
        margin-left: 0;
    }
}


/* =====================================================================
   [ff_boot_speeds] – Shortcode für Elementor-Detailseite
   ===================================================================== */

.ff-boot-speeds {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ff-boot-speeds__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #3D3D3D;
    border: 2px solid #1E1E1E;
    border-radius: 8px;
    padding: 10px 16px 9px;
    min-width: 120px;
}

.ff-boot-speeds__tour  { border-color: #016F26; }
.ff-boot-speeds__sprint { border-color: #0d5c8c; }

.ff-boot-speeds__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #A1A0A0;
}

.ff-boot-speeds__val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: #F7F7F7;
}

.ff-boot-speeds__tour  .ff-boot-speeds__val { color: #61CE70; }
.ff-boot-speeds__sprint .ff-boot-speeds__val { color: #5ab4e8; }

.ff-boot-speeds__unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: #A1A0A0;
}
