/* fs_social: Kachel-Leiste für selbst gehostete TikTok- und Instagram-Videos (mobil zuerst) */
.fs-social {
    --fs-social-akzent: #b5532f;
    --fs-social-akzent-dunkel: #93401f;
    --fs-social-abstand: 12px;
    --fs-social-radius: var(--fs-radius-md, 12px);
    --fs-social-text: var(--fs-color-text, #2f3e46);
    --fs-social-leise: var(--fs-color-text-muted, #61727c);
    position: relative;
    min-width: 0;
    max-width: 100%;
    margin: 2rem 0;
    overflow-x: clip;
    color: var(--fs-social-text);
}
.fs-social *,
.fs-social *::before,
.fs-social *::after { box-sizing: border-box; }

/* Kopf */
.fs-social__kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.fs-social__kopftext { min-width: 0; }
.fs-social__eyebrow {
    display: flex; align-items: center; gap: .45rem; margin: 0 0 .4rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--fs-social-akzent);
}
.fs-social__eyebrow i { font-size: 1rem; }
.fs-social__linie { display: inline-block; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.fs-social__titel {
    margin: 0; font-family: var(--fs-font-headline, inherit); font-weight: 700;
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; color: var(--fs-social-text);
}
.fs-social__intro { margin: .45rem 0 0; max-width: 60ch; font-size: .95rem; line-height: 1.5; color: var(--fs-social-leise); }

/* Pfeile nur mit Maus/Trackpad und ab Tablet; auf Touch wird gewischt */
.fs-social__nav { display: none; gap: .5rem; flex: none; }
.fs-social__pfeil {
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--fs-color-border-strong, #d1d5db);
    background: #fff; color: var(--fs-social-text); font-size: 1.1rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s, color .15s;
}
.fs-social__pfeil:hover:not(:disabled) { border-color: var(--fs-social-akzent); color: var(--fs-social-akzent); }
.fs-social__pfeil:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (min-width: 768px) {
    .fs-social__nav { display: flex; }
}
.fs-social__nav[hidden] { display: none !important; }

/* Leiste */
.fs-social__leiste {
    list-style: none; margin: 0; padding: 0 0 .75rem;
    display: flex; gap: var(--fs-social-abstand);
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.fs-social__kachel {
    flex: 0 0 min(68%, 240px); min-width: 0; margin: 0; padding: 0;
    display: flex; flex-direction: column; scroll-snap-align: start;
}
@media (min-width: 576px) { .fs-social__kachel { flex-basis: calc((100% - 2 * var(--fs-social-abstand)) / 2.6); } }
@media (min-width: 768px) { .fs-social__kachel { flex-basis: calc((100% - 3 * var(--fs-social-abstand)) / 3.5); } }
@media (min-width: 1024px) { .fs-social__kachel { flex-basis: calc((100% - 4 * var(--fs-social-abstand)) / 5); } }

/* Medienfläche 9:16 */
.fs-social__medien {
    position: relative; aspect-ratio: 9 / 16; margin: 0; overflow: hidden; isolation: isolate;
    border-radius: var(--fs-social-radius); background: #20262b;
}
.fs-social__medien::after {
    content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
}
.fs-social__poster,
.fs-social__video {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block;
}
.fs-social__video { opacity: 0; transition: opacity .25s; }
.fs-social__kachel.is-bereit .fs-social__video { opacity: 1; }

/* Abspielen: ganze Fläche ist der Knopf, sichtbar ist nur der Kreis */
.fs-social__play {
    position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; border: 0; border-radius: 0;
    background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--fs-social-akzent); -webkit-tap-highlight-color: transparent;
}
.fs-social__play-kreis {
    width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .94);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: opacity .2s, transform .2s;
}
.fs-social__play-kreis i { margin-left: 3px; }
.fs-social__kachel.is-spielt .fs-social__play-kreis { opacity: 0; transform: scale(.85); }
.fs-social__kachel.is-spielt .fs-social__play-kreis i { margin-left: 0; }
.fs-social__kachel.is-spielt .fs-social__play:focus-visible .fs-social__play-kreis { opacity: 1; transform: none; }
@media (hover: hover) {
    .fs-social__kachel.is-spielt .fs-social__play:hover .fs-social__play-kreis { opacity: .9; transform: none; }
}
.fs-social__kachel.is-puffert .fs-social__play-kreis { opacity: 1; transform: none; animation: fs-social-puls 1s ease-in-out infinite; }
@keyframes fs-social-puls { 50% { transform: scale(.9); } }

.fs-social__ton {
    position: absolute; right: 10px; bottom: 12px; z-index: 3; width: 44px; height: 44px; margin: 0; padding: 0;
    border: 0; border-radius: 50%; background: rgba(17, 17, 17, .6); color: #fff; font-size: 1.15rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.fs-social__ton[aria-pressed="true"] { background: var(--fs-social-akzent); }
.fs-social__fortschritt {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; pointer-events: none;
    background: var(--fs-social-akzent); transform: scaleX(0); transform-origin: left center;
}
.fs-social__kachel.is-fehler .fs-social__play,
.fs-social__kachel.is-fehler .fs-social__ton,
.fs-social__kachel.is-fehler .fs-social__fortschritt { display: none; }

/* Plattform-Hinweis unten links (auf Höhe des Ton-Knopfs), KI-Kennzeichnung oben rechts.
   Oben links bleibt frei: dort sitzt in unseren Clips das eingebrannte KI-Symbol. */
.fs-social__badge,
.fs-social__ki {
    position: absolute; z-index: 3; pointer-events: none;
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
    border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1;
}
.fs-social__badge { left: 10px; bottom: 22px; background: rgba(17, 17, 17, .62); color: #fff; }
.fs-social__badge i { font-size: 14px; }
.fs-social__ki { top: 10px; right: 10px; background: rgba(255, 255, 255, .9); color: #2b2b2b; font-weight: 600; font-size: 11px; }

/* Text unter der Kachel */
.fs-social__info { display: flex; flex-direction: column; gap: .35rem; flex: 1 1 auto; padding: .7rem .1rem 0; }
.fs-social__kacheltitel {
    margin: 0; font-family: var(--fs-font-headline, inherit); font-size: 1rem; font-weight: 700; line-height: 1.3;
    color: var(--fs-social-text);
}
.fs-social__text {
    margin: 0; font-size: .875rem; line-height: 1.45; color: var(--fs-social-leise);
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fs-social__zahlen { display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin: 0; font-size: .8rem; color: var(--fs-social-leise); }
.fs-social__zahlen span { display: inline-flex; align-items: center; gap: .25rem; }
.fs-social__link {
    margin-top: auto; align-self: flex-start; min-height: 44px;
    display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem;
    border: 1.5px solid var(--fs-social-akzent); border-radius: 999px; background: transparent;
    color: var(--fs-social-akzent); font-size: .85rem; font-weight: 700; line-height: 1.2; text-decoration: none;
    transition: background-color .15s, color .15s;
}
.fs-social__link:hover,
.fs-social__link:focus-visible { background: var(--fs-social-akzent); color: #fff; text-decoration: none; }

/* Tastatur */
.fs-social button:focus-visible,
.fs-social a:focus-visible { outline: 3px solid var(--fs-social-akzent); outline-offset: 2px; }
.fs-social__play:focus-visible { outline-offset: -3px; border-radius: var(--fs-social-radius); }

.fs-social__sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .fs-social__video,
    .fs-social__play-kreis,
    .fs-social__link { transition: none; }
    .fs-social__kachel.is-puffert .fs-social__play-kreis { animation: none; }
}
