/*
 * Slider für Feed-Einträge und Social-Media-Beiträge mit mehreren Fotos/Videos und Galerie der Direktseite (seit 2026-11-24, Stufe 8b von
 * plans/website_editor.md). Markup aus website/inc/php_functions/web_feed_media.php; die Größe gibt das unsichtbare Platzhalterbild
 * (.eway-fslider-sizer) der Modulvorlage vor – wie beim bisherigen Einzelbild. Wischen über natives Scroll-Snapping, Pfeile/Punkte: feed_slider.js.
 */
.eway-fslider { position: relative; overflow: hidden; max-width: 100%; vertical-align: top; }
.eway-fslider-sizer { display: block; }
.eway-fslider-sizer[src=""] { width: 100%; aspect-ratio: 4 / 3; }   /* Modul ohne Bildformat */
.eway-fslider-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: inherit; }
.eway-fslider-track::-webkit-scrollbar { display: none; }
.eway-fslider-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block;
    cursor: zoom-in; }
.eway-fslider-img { position: absolute; inset: 0; background-color: rgba(0, 0, 0, .06); background-position: center; background-repeat: no-repeat;
    background-size: contain; border-radius: inherit; }
.eway-fslider-video { cursor: pointer; }
.eway-fslider-video .eway-fslider-img { background-color: #1e1e2d; }
/* ▶ dezent (Wunsch Nutzer 2026-11-24): halbtransparenter dunkler Kreis mit weißem Dreieck – ohne Symbolschrift */
.eway-fslider-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.eway-fslider-play::before { content: ""; width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, .45); transition: background .15s ease; }
.eway-fslider-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -6px; border-style: solid; border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff; }
.eway-fslider-video:hover .eway-fslider-play::before { background: rgba(0, 0, 0, .6); }
.eway-fslider-play i { display: none; }
.eway-fslider-prev, .eway-fslider-next { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff;
    cursor: pointer; transition: opacity .15s ease, background .15s ease; }
.eway-fslider-prev:hover, .eway-fslider-next:hover { background: rgba(0, 0, 0, .55); }
.eway-fslider-prev { left: 8px; }
.eway-fslider-next { right: 8px; }
.eway-fslider-prev i, .eway-fslider-next i { color: inherit !important; font-size: 14px !important; line-height: 1; }
.eway-fslider-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.eway-fslider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .65);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); cursor: pointer; pointer-events: auto; transition: width .15s ease, background .15s ease; }
.eway-fslider-dot.active { width: 18px; background: #fff; }
@media (hover: hover) {
    .eway-fslider .eway-fslider-prev, .eway-fslider .eway-fslider-next { opacity: .85; }
    .eway-fslider:hover .eway-fslider-prev, .eway-fslider:hover .eway-fslider-next { opacity: 1; }
}
.eway-fslider .eway-fslider-prev[disabled], .eway-fslider .eway-fslider-next[disabled] { opacity: 0; pointer-events: none; }   /* nach der Regel oben */

/* Galerie der Direktseite <Website>/f/<Eintrag>: weitere Fotos und Videos unter dem Text */
.eway-fgallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 1.5rem; }
.eway-fgallery-item { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: .475rem; overflow: hidden; cursor: zoom-in; }
.eway-fgallery-item .eway-fslider-img { background-size: cover; transition: transform .2s ease; }
.eway-fgallery-item:hover .eway-fslider-img { transform: scale(1.04); }
.eway-fgallery-item .eway-fslider-play::before { width: 42px; height: 42px; }
.eway-fgallery-item .eway-fslider-play::after { margin: -8px 0 0 -4px; border-width: 8px 0 8px 13px; }

/* ---------- Beitragsfenster und Archiv (seit 2026-11-24, Stufe 8c) */
.eway-fwin { position: fixed; inset: 0; z-index: 1060; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 12, 24, .72); }
.eway-fwin.on { display: flex; }
.eway-fwin-box { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; color: #181c32;
    border-radius: .75rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.eway-fwin-list .eway-fwin-box { width: min(640px, 100%); }
.eway-fwin-x, .eway-fwin-back { position: absolute; top: 10px; z-index: 4; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; }
.eway-fwin-x { right: 10px; } .eway-fwin-back { left: 10px; }
.eway-fwin-x:hover, .eway-fwin-back:hover { background: rgba(0, 0, 0, .55); }
.eway-fwin-x i, .eway-fwin-back i { color: inherit !important; font-size: 14px !important; }
.eway-fwin-wait { height: 240px; background: linear-gradient(90deg, #f3f5f8 25%, #e9edf3 37%, #f3f5f8 63%); background-size: 400% 100%; animation: eway-fwin-wait 1.2s ease infinite; }
@keyframes eway-fwin-wait { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.eway-fpost { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.eway-fpost-nomedia { grid-template-columns: minmax(0, 1fr); }
.eway-fpost-media .eway-fslider { height: 100%; min-height: 380px; background: #111; border-radius: .75rem 0 0 .75rem; }
.eway-fpost-media .eway-fslider-img { background-color: #111; }
.eway-fpost-media .eway-fslider-slide { cursor: zoom-in; }
.eway-fpost-body { padding: 28px 28px 24px; min-width: 0; }
.eway-fpost-nomedia .eway-fpost-body { padding-top: 44px; }
.eway-fpost-date { margin-bottom: 6px; font-size: .9rem; opacity: .55; }
.eway-fpost-title { margin: 0 34px 10px 0; font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.eway-fpost-text { overflow-wrap: anywhere; }
.eway-fpost-text img { max-width: 100%; height: auto; }
@media (max-width: 767px) {
    .eway-fwin { padding: 10px; }
    .eway-fpost { grid-template-columns: minmax(0, 1fr); }
    .eway-fpost-media .eway-fslider { height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: .75rem .75rem 0 0; }
    .eway-fpost-body { padding: 18px 18px 20px; }
}
.eway-farchive { display: flex; justify-content: center; padding: 10px 0 24px; }
.eway-farchive-list { padding: 22px 16px 12px; }
.eway-farchive-head { margin: 0 44px 12px 8px; font-size: 1.35rem; font-weight: 700; }
.eway-farchive-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: .5rem;
    background: transparent; color: inherit; text-align: left; cursor: pointer; }
.eway-farchive-item:hover, .eway-farchive-item:focus-visible { background: #f3f6f9; outline: none; }
.eway-farchive-pic { width: 64px; height: 48px; border-radius: .4rem; background: #eef1f6 center / cover no-repeat; }
.eway-farchive-txt { min-width: 0; }
.eway-farchive-date { display: block; font-size: .8rem; opacity: .55; }
.eway-farchive-title { display: block; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.eway-farchive-none { padding: 6px 8px 14px; opacity: .6; }

/* ---------- Feed Cards (Stufe 8c): Kacheln ohne Text, Mauerwerk, Slider */
.eway-ftile { position: relative; overflow: hidden; border-radius: var(--bs-border-radius-lg, .625rem); box-shadow: 0 6px 22px rgba(24, 28, 50, .1); cursor: pointer; }
.eway-ftile-pic { position: relative; display: block; border-radius: inherit; background-color: rgba(0, 0, 0, .06); background-repeat: no-repeat; background-position: center; }
.eway-ftile .eway-fslider { display: block; border-radius: inherit; }
.eway-ftile-nopic { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 180px; padding: 22px 20px 40px; background: #f1f3f7; color: #181c32; }
.eway-ftile-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.eway-ftile-title:empty, .eway-ftile-txt:empty { display: none; }
.eway-ftile-txt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; opacity: .8; }
.eway-ftile-date { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 14px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .55));
    color: #fff; font-size: .8rem; line-height: 1.2; pointer-events: none; }
.eway-ftile-date:empty { display: none; }
.eway-ftile-nopic ~ .eway-ftile-date { background: none; color: inherit; opacity: .6; }
.eway-ftile .eway-fslider-dots { bottom: 30px; }
.eway-ftile:hover .eway-ftile-pic { filter: brightness(1.04); }
.eway-fmasonry.eway-fmasonry-on > .eway-fmcol > .edit-content-wrapper { width: 100%; max-width: 100%; flex: none; padding-left: 0; padding-right: 0; margin-bottom: var(--bs-gutter-x, 2.5rem); }
.eway-fcards { position: relative; }
.eway-fcards-track { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain; }
.eway-fcards-track::-webkit-scrollbar { display: none; }
.eway-fcards-track > .edit-content-wrapper { scroll-snap-align: start; }
.eway-fcards-prev, .eway-fcards-next { position: absolute; top: 45%; z-index: 3; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #181c32; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); cursor: pointer;
    transition: opacity .15s ease; }
.eway-fcards-prev { left: -6px; } .eway-fcards-next { right: -6px; }
.eway-fcards-prev i, .eway-fcards-next i { color: inherit !important; font-size: 16px !important; }
.eway-fcards .eway-fcards-prev[disabled], .eway-fcards .eway-fcards-next[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 575px) { .eway-fcards-prev, .eway-fcards-next { width: 36px; height: 36px; margin-top: -18px; } .eway-fcards-prev { left: 4px; } .eway-fcards-next { right: 4px; } }
