/* ==========================================================================
   blog-carousel.css — Startseite: neueste Blogbeitraege als 3D-Karussell
   ("Circular Testimonials"-Stil, ohne React). Farben aus dem Seiten-Theme.
   ========================================================================== */
.bc {
    --bc-accent: var(--accent, #b775ff);
    --bc-text: var(--text, #f4f4f6);
    --bc-muted: var(--text-muted, #a1a1aa);
    --bc-gap: clamp(46px, 6vw, 92px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(8px, 2vw, 24px);
    border-radius: 24px;
    outline: none;
}
.bc:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc-accent) 55%, transparent); }

/* ---------------- Bilder-Faecher ---------------- */
.bc-stage {
    position: relative;
    height: clamp(260px, 32vw, 400px);
    perspective: 1100px;
    margin-top: calc(var(--bc-gap) * .7);   /* Platz fuer die angehobenen Nachbarbilder */
}
.bc-card {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--bc-accent) 30%, #141018), #0d0b10);
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06);
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) scale(.7);
    transition: transform .8s cubic-bezier(.4, 1.6, .4, 1), opacity .5s ease, filter .5s ease;
    will-change: transform, opacity;
}
.bc-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-card.is-active { z-index: 3; opacity: 1; pointer-events: auto; transform: none; }
.bc-card.is-left, .bc-card.is-right { z-index: 2; opacity: 1; pointer-events: auto; filter: brightness(.6) saturate(.85); }
.bc-card.is-left  { transform: translateX(calc(var(--bc-gap) * -1)) translateY(calc(var(--bc-gap) * -.8)) scale(.85) rotateY(15deg); }
.bc-card.is-right { transform: translateX(var(--bc-gap)) translateY(calc(var(--bc-gap) * -.8)) scale(.85) rotateY(-15deg); }
.bc-card.is-left:hover, .bc-card.is-right:hover { filter: brightness(.85); }
.bc-card.is-active::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(to top, rgba(10, 8, 14, .35), transparent 45%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc-accent) 35%, transparent);
}
.bc-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; color: color-mix(in srgb, var(--bc-accent) 70%, #fff); }

/* ---------------- Text ---------------- */
.bc-text { display: flex; flex-direction: column; min-height: 100%; justify-content: center; }
.bc-item[hidden] { display: none; }
.bc-item.is-in { animation: bcIn .32s ease both; }
@keyframes bcIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bc-meta { color: var(--bc-accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.bc-title { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); line-height: 1.2; margin: 0 0 6px; }
.bc-title a { color: var(--bc-text); text-decoration: none; }
.bc-title a:hover { color: var(--bc-accent); }
.bc-author { color: var(--bc-muted); font-size: .95rem; margin: 0 0 22px; }
.bc-quote {
    color: color-mix(in srgb, var(--bc-text) 86%, transparent);
    font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
    line-height: 1.75;
    margin: 0 0 22px;
}
.bc-w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(5px); animation: bcWord .22s ease-in-out forwards; animation-delay: calc(var(--d) * 22ms); }
@keyframes bcWord { to { opacity: 1; filter: blur(0); transform: none; } }
.bc-more { display: inline-flex; align-items: center; gap: 8px; color: var(--bc-accent); font-weight: 600; text-decoration: none; transition: gap .2s ease; }
.bc-more:hover { gap: 12px; color: var(--bc-accent); }

/* ---------------- Steuerung ---------------- */
.bc-nav { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.bc-btn {
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06); color: var(--bc-text); display: grid; place-items: center;
    cursor: pointer; transition: background-color .25s ease, color .25s ease, transform .15s ease, border-color .25s ease;
}
.bc-btn:hover { background: var(--bc-accent); border-color: var(--bc-accent); color: #fff; }
.bc-btn:active { transform: scale(.94); }
.bc-btn:focus-visible, .bc-dot:focus-visible { outline: 2px solid var(--bc-accent); outline-offset: 3px; }
.bc-dots { display: flex; gap: 8px; margin-inline-start: 6px; }
.bc-dot {
    width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .22); transition: width .3s ease, background-color .3s ease;
}
.bc-dot.is-active { width: 28px; background: var(--bc-accent); }
.bc-count { margin-inline-start: auto; font-variant-numeric: tabular-nums; color: var(--bc-muted); font-size: .85rem; letter-spacing: .08em; }
.bc-count b { color: var(--bc-text); font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Handy ---------------- */
@media (max-width: 767.98px) {
    .bc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .bc-stage { height: min(68vw, 300px); margin-inline: calc(var(--bc-gap) * .7); }
    .bc { --bc-gap: 34px; }
    .bc-nav { margin-top: 22px; }
    .bc-btn { width: 44px; height: 44px; }
}

/* Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
    .bc-card { transition: opacity .2s ease; }
    .bc-card.is-left, .bc-card.is-right { transform: none; opacity: 0; pointer-events: none; }
    .bc-stage { margin-top: 0; }
    .bc-item.is-in, .bc-w { animation: none; opacity: 1; filter: none; transform: none; }
}
