/* Container um das Beitragsbild */
.fi-post-nav-wrapper {
    position: relative;
    display: inline-block;
}

/* Unsichtbare Overlay-Ebene */
.fi-post-nav-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none; /* macht das Overlay selbst "durchlässig" */
}

/* Je Bildhälfte als Klickfläche */
.fi-post-nav-overlay a {
    position: relative;
    width: 50%;
    height: 100%;
    display: block;
    text-decoration: none;
    pointer-events: auto; /* Links bleiben klickbar */
    color: rgba(255,255,255,0.35); /* dezente Pfeilfarbe */
}

/* Pfeile: dünn, rund, weniger spitz */
.fi-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;           /* leicht durchscheinend */
    transition: opacity 0.2s ease, transform 0.2s ease;
    /* Größe per CSS-Var anpassbar */
    width: var(--fi-arrow-size, 36px);
    height: var(--fi-arrow-size, 36px);
}

/* Nähe zum Rand (eng, aber nicht klebend) */
.fi-arrow-left  { left: 10px; }
.fi-arrow-right { right: 10px; }

/* Desktop: leichte Reaktion auf Hover */
.fi-post-nav-wrapper:hover .fi-arrow {
    opacity: 0.8;
}
.fi-post-nav-overlay a:hover .fi-arrow-left {
    transform: translateY(-50%) translateX(-1px);
}
.fi-post-nav-overlay a:hover .fi-arrow-right {
    transform: translateY(-50%) translateX(1px);
}

/* Responsiv: auf kleinen Screens etwas größer, aber dezent */
@media (max-width: 640px) {
    .fi-arrow { width: 40px; height: 40px; opacity: 0.7; }
}

/* Optional: dunkle Bilder -> etwas hellere Pfeile */
.fi-post-nav-wrapper .fi-arrow {
    color: rgba(255,255,255,0.85);
}

/* Barrierefreiheit: Fokus sichtbar ohne Layout zu verändern */
.fi-post-nav-overlay a:focus-visible .fi-arrow {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}



.fixed-post-nav {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    pointer-events: none; /* macht Container klickdurchlässig */
    z-index: 9999;
}

/* Links und rechts positionieren */
.fixed-post-nav a {
    position: absolute;
    transform: translateY(-50%);
    pointer-events: auto;
    text-decoration: none;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.fpn-prev { left: 10px; }
.fpn-next { right: 10px; }

/* SVG-Pfeile */
.fpn-arrow {
    width: 36px;
    height: 36px;
    opacity: 0.6;
}

/* Hover-Effekt (nur Desktop) */
@media (hover: hover) {
    .fixed-post-nav a:hover {
        color: rgba(255,255,255,0.85);
        background: rgba(0,0,0,0.2);
    }
}

/* Mobile etwas größer */
@media (max-width: 640px) {
    .fixed-post-nav a {
        width: 56px;
        height: 56px;
    }
    .fpn-arrow {
        width: 40px;
        height: 40px;
    }
}



/* Pfeile nur auf Desktop sichtbar */
@media (hover: hover) and (pointer: fine) {
    .rpn-fixed-nav {
        position: fixed;
        top: 50%;
        left: 0;
        right: 0;
        pointer-events: none;
        z-index: 9999;
    }
    .rpn-fixed-nav a {
        position: absolute;
        transform: translateY(-50%);
        pointer-events: auto;
        text-decoration: none;
        color: rgba(255,255,255,0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        transition: color 0.2s ease, background 0.2s ease;
    }
    .rpn-prev { left: 10px; }
    .rpn-next { right: 10px; }
    .rpn-arrow {
        width: 36px;
        height: 36px;
        opacity: 0.6;
    }
    .rpn-fixed-nav a:hover {
        color: rgba(255,255,255,0.85);
        background: rgba(0,0,0,0.2);
    }
}

#swipe-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    animation: fadeInOut 4s ease forwards;
    pointer-events: none;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
