/* ═══════════════════════════════════════════════════════════
   PS STORE – STARTSEITE 4-KACHELN mit Crossfade-Slider
   ═══════════════════════════════════════════════════════════ */

/* Header + Footer: globale Regeln in ps-global-logo (functions.php) */

/* Grid: position fixed → pixelgenau zwischen Header und Footer
   top + bottom werden per JS gesetzt                          */
body.page-id-527 .ps-home-grid {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 5 !important;
    /* top / bottom: per JS */
}

/* Footer: fixed am unteren Rand — kompakte Einzelzeile */
body.page-id-527 footer#footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
}
/* Footer-Styling: global via ps-global-logo */

/* #main braucht keinen Platz mehr (Grid ist aus dem Fluss) */
body.page-id-527 #main,
body.page-id-527 #content {
    padding: 0 !important;
    margin:  0 !important;
    height:  0 !important;
    overflow: hidden !important;
}

/* ── 2×2 Grid — wie 4 Bilderrahmen ── */
.ps-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    gap: 24px;
    background: #707070;
    padding: 24px;
    box-sizing: border-box;
}

/* ── Kachel: Flex-Spalte (Bild oben, Label unten) ── */
.ps-home-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    min-height: 0;
}

/* ── Bild-Bereich ── */
.ps-home-slider-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.ps-home-slider-set {
    position: absolute;
    inset: 0;
}

.ps-home-slider-desktop { display: block; }
.ps-home-slider-mobile  { display: none; }

@media (max-width: 767px) {
    .ps-home-slider-desktop { display: none; }
    .ps-home-slider-mobile  { display: block; }
}

/* ── Einzelnes Slide-Bild ── */
.ps-home-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.ps-home-slide.ps-slide-active { opacity: 1; }

/* Hover: leichter Zoom */
.ps-home-tile:hover .ps-home-slide.ps-slide-active {
    transform: scale(1.04);
    transition: opacity 1.2s ease-in-out, transform 8s ease;
}

/* ── Label-Leiste UNTER dem Bild ── */
.ps-home-tile-label {
    flex-shrink: 0;
    background: rgba(10, 8, 6, 0.97);
    border-top: 1px solid rgba(201,169,110,0.3);
    padding: clamp(8px, 1.5vh, 16px) 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ps-home-tile-label h2 {
    font-size: clamp(11px, 1.6vw, 20px);
    letter-spacing: clamp(3px, 0.3em, 8px);
    text-transform: uppercase;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    line-height: 1;
}

.ps-home-tile-divider {
    width: 28px;
    height: 1px;
    background: rgba(201,169,110,0.6);
}

.ps-home-tile-label p {
    font-size: clamp(8px, 0.8vw, 11px);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(201,169,110,0.8);
    margin: 0;
}

/* ── Smartphone: 1 Spalte ── */
@media (max-width: 767px) {
    .ps-home-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }

    /* Label kompakt: Bild bekommt ~75%, Text ~25% */
    .ps-home-tile-label {
        padding: 6px 12px;
        gap: 2px;
    }
    .ps-home-tile-label h2 {
        font-size: clamp(12px, 4vw, 16px);
        letter-spacing: 0.2em;
    }
    .ps-home-tile-divider {
        display: none;
    }
    .ps-home-tile-label p { font-size: 9px; }
}

/* ── Tablet: Schriften etwas größer ── */
@media (min-width: 768px) and (max-width: 1024px) {
    .ps-home-tile-label h2 { font-size: clamp(13px, 2vw, 22px); }
}

/* ══════════════════════════════════════════════════════════════
   DEMNÄCHST — Style A: Neon-Pulsieren (Startseite Kachel)
   ══════════════════════════════════════════════════════════════ */
.ps-dn-neon-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    pointer-events: none;
}
.ps-dn-neon-overlay span {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(16px, 2.5vw, 32px);
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow:
        0 0 6px  #fff,
        0 0 14px #c9a96e,
        0 0 30px #c9a96e,
        0 0 60px #c9a96e;
    animation: ps-neon-pulse 1.8s ease-in-out infinite alternate;
}
@keyframes ps-neon-pulse {
    from {
        text-shadow: 0 0 4px #fff, 0 0 10px #c9a96e, 0 0 20px #c9a96e;
        opacity: 0.75;
    }
    to {
        text-shadow: 0 0 8px #fff, 0 0 24px #c9a96e, 0 0 50px #c9a96e, 0 0 90px #c9a96e;
        opacity: 1;
    }
}
