/* --- Overlay-Rahmen als ::before, liegt über allem --- */
.pluna-holo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/overlay_ticker.png') no-repeat center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 5;
}

/* --- Outer Hologram Frame (KEIN Background mehr!) --- */
.pluna-holo {
    width: 92%;
    max-width: 1150px;
    margin: 3rem auto;
    position: relative;
    padding: 4px;
    border-radius: 22px;
    overflow: hidden;
    background: none; /* wichtiger Punkt: außen keine Fläche mehr */
    box-shadow:
        0 0 35px rgba(0, 200, 255, 0.4),
        inset 0 0 25px rgba(150, 0, 255, 0.35);
    transform: perspective(900px) rotateX(8deg);
    animation: holoFloat 6s ease-in-out infinite;
}
@keyframes holoFloat {
    0%, 100% { transform: perspective(900px) rotateX(8deg) translateY(0); }
    50% { transform: perspective(900px) rotateX(6deg) translateY(-8px); }
}

/* --- Scanlines unter Overlay --- */
.pluna-holo-scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.04) 0px,
        rgba(255,255,255,0.04) 2px,
        transparent 3px,
        transparent 6px
    );
    animation: scanMove 5s linear infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes scanMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* --- Glow unter Scanlines --- */
.pluna-holo-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(150,0,255,0.35), transparent 70%);
    filter: blur(35px);
    animation: holoGlow 7s ease-in-out infinite;
    z-index: 1;
}
@keyframes holoGlow {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 0.8; transform: translateX(50px); }
}

/* --- Innerer Bereich: HIER ist der verkleinerte Background --- */
.pluna-holo-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 22px 34px;
    /* nur hier die dunkle Fläche */
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    box-shadow:
        inset 0 0 20px rgba(120,0,180,0.25),
        0 0 12px rgba(0,0,0,0.4);
    /* verkleinert im Rahmen zentriert */
    width: 80%;
    margin: 0 auto;
}

/* --- Icon --- */
.pluna-holo-icon {
    font-size: 2.9rem;
    text-shadow: 0 0 15px rgba(0,200,255,1);
}

/* --- Text --- */
.pluna-holo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.pluna-holo-text .title {
    font-size: 1.55rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 12px rgba(0,200,255,1);
}
.pluna-holo-text .msg {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
}

/* --- Button --- */
.pluna-holo-btn {
    margin-left: auto;
    padding: 12px 32px;
    background: linear-gradient(135deg, rgba(0,200,255,1), rgba(150,0,255,1));
    border-radius: 35px;
    color: white;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.05em;
    box-shadow: 0 0 25px rgba(0,200,255,0.9);
    transition: 0.25s ease;
}

.pluna-holo-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 35px rgba(0,200,255,1);
}

/* --- Slider Anpassungen (falls nötig) --- */
.card-slider .pluna-holo .pluna-holo-inner {
    padding-left: 71px;
    width: 948px;
}
.card-slider .pluna-holo .pluna-holo-glow {
    width: 1005px;
}
.dashboard .card-slider .pluna-holo {
    width: 1077px;
}

/* --- Mobile Version ohne Grafik / Overlay --- */
@media (max-width: 768px) {
    /* Overlay-Grafik komplett ausblenden */
    .pluna-holo::before {
        content: none;
        background: none;
    }
    /* Scanlines & Glow optional aus, damit es ruhiger wird */
    .pluna-holo-scan,
    .pluna-holo-glow {
        display: none;
    }
    /* Rahmen gerade, ohne 3D-Kippung */
    .pluna-holo {
        width: 100%;
        max-width: 100%;
        margin: 1.5rem auto;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        animation: none;
    }
    /* Innerer Bereich: volle Breite, einfacher Block */
    .pluna-holo-inner {
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 16px 18px;
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    .pluna-holo-icon {
        font-size: 2.2rem;
    }
    .pluna-holo-text .title {
        font-size: 1.2rem;
    }
    .pluna-holo-text .msg {
        font-size: 1rem;
    }
    .pluna-holo-btn {
        margin-left: 0;
        align-self: stretch;
        text-align: center;
        padding: 10px 18px;
    }
    /* Slider-Sonderbreiten aufheben */
    .card-slider .pluna-holo .pluna-holo-inner,
    .card-slider .pluna-holo .pluna-holo-glow,
    .dashboard .card-slider .pluna-holo {
        width: 100%;
        padding-left: 0;
    }
}
