/* =====================================================================
   KARUSSELL – Produktkategorien auf der Startseite
   ===================================================================== */
.ib-band-k { overflow: hidden; }
.ib-band-k .ib-kopf-mitte { text-align: center; }
.ib-band-k .ib-kopf-mitte .ib-lead { margin-left: auto; margin-right: auto; }

.ib-k {
    position: relative;
    height: 580px;
    margin: 10px -20px 0;
    outline: none;
    touch-action: pan-y;               /* senkrecht scrollen bleibt möglich */
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.ib-k.zieht { cursor: grabbing; }
.ib-k:focus-visible { outline: 3px solid #d4b483; outline-offset: -3px; border-radius: 20px; }
.ib-k-buehne { position: absolute; inset: 0; perspective: 1400px; }

.ib-k-karte {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 380px;
    height: 480px;
    margin: 0 0 0 -190px;
    border-radius: 26px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 38%, #fff 0, #f2e6d4 70%, #e8d6bc 100%);
    border: 1px solid rgba(138, 90, 43, .12);
    box-shadow: 0 30px 60px -30px rgba(70, 40, 10, .45);
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .6s, border-color .4s, box-shadow .4s;
    will-change: transform;
}
.ib-k-karte img {
    width: 100%;
    height: 100%;
    object-fit: cover;               /* normale Fotos füllen die Karte */
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}
.ib-k-karte.frei img {               /* freigestellte Bilder schweben mit Schatten */
    object-fit: contain;
    padding: 16% 12% 30%;
    box-sizing: border-box;
    filter: drop-shadow(0 22px 18px rgba(90, 55, 20, .32));
}
.ib-k-karte figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 70px 26px 24px;
    font-family: 'Cuprum', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #2b2119;
}
.ib-k-karte:not(.frei) figcaption { color: #fff; background: linear-gradient(transparent, rgba(30, 18, 8, .78)); }
.ib-k-karte.aktiv { border: 1.5px solid #c9a46a; box-shadow: 0 40px 80px -30px rgba(70, 40, 10, .6); cursor: pointer; }
.ib-k-karte.aktiv figcaption::after {
    content: "Mehr erfahren  \2192";
    display: block;
    margin-top: 8px;
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: none;
    opacity: .78;
}

.ib-k-steuer { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 4px; }
.ib-k-steuer button {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid #e2d3bd;
    background: #fff;
    color: #8a5a2b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px -8px rgba(70, 40, 10, .4);
    transition: transform .2s, opacity .2s;
}
.ib-k-steuer button:hover { transform: scale(1.08); }
.ib-k-steuer button:disabled { opacity: .35; cursor: default; transform: none; }
.ib-k-punkte { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 60vw; }
.ib-k-punkte i { width: 8px; height: 8px; border-radius: 99px; background: #dccbb2; transition: all .3s; cursor: pointer; }
.ib-k-punkte i.an { width: 26px; background: #8a5a2b; }

@media (max-width: 640px) {
    .ib-k { height: 430px; margin: 0 -16px; }
    .ib-k-karte { width: 260px; height: 340px; margin-left: -130px; top: 24px; border-radius: 22px; }
    .ib-k-karte figcaption { padding: 50px 18px 18px; font-size: .92rem; letter-spacing: .16em; }
    .ib-k-steuer { gap: 12px; }
    .ib-k-steuer button { width: 42px; height: 42px; }
    .ib-k-punkte i { width: 6px; height: 6px; }
    .ib-k-punkte i.an { width: 18px; }
}
@media (prefers-reduced-motion: reduce) { .ib-k-karte { transition: none; } }
