/* Sci-Fi Border Styles für futuristische UI-Elemente */

/* Base class for all sci-fi borders */
.ng-scifi-border-base {
    border: none !important;
    position: relative;
}

/* Fallback: Simple CSS-only borders ohne SVG */
.ng-simple-border {
    border: 1px solid #8A837D !important;
    position: relative;
}

/* Corner-only borders using CSS pseudo-elements */
.ng-corner-border-simple {
    border: none !important;
    position: relative;
    background-color: transparent;
}

.ng-corner-border-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border-top: 1px solid #8A837D;
    border-left: 1px solid #8A837D;
}

.ng-corner-border-simple::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    border-top: 1px solid #8A837D;
    border-right: 1px solid #8A837D;
}

.ng-corner-border-simple .ng-corner-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border-bottom: 1px solid #8A837D;
    border-left: 1px solid #8A837D;
}

.ng-corner-border-simple .ng-corner-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    border-bottom: 1px solid #8A837D;
    border-right: 1px solid #8A837D;
}

/* Corner Border Style 1: Small corners - verbessert mit allen 4 Ecken */
.ng-corner-border-style1 {
    border: none !important;
    position: relative;
    background: linear-gradient(to right, #8A837D 10px, transparent 10px, transparent calc(100% - 10px), #8A837D calc(100% - 10px)) top/100% 1px no-repeat,
                linear-gradient(to right, #8A837D 10px, transparent 10px, transparent calc(100% - 10px), #8A837D calc(100% - 10px)) bottom/100% 1px no-repeat,
                linear-gradient(to bottom, #8A837D 10px, transparent 10px, transparent calc(100% - 10px), #8A837D calc(100% - 10px)) left/1px 100% no-repeat,
                linear-gradient(to bottom, #8A837D 10px, transparent 10px, transparent calc(100% - 10px), #8A837D calc(100% - 10px)) right/1px 100% no-repeat;
}

/* Corner Border Style 2: Medium corners */
.ng-corner-border-style2 {
    border: none !important;
    position: relative;
    background: linear-gradient(to right, #8A837D 15px, transparent 15px, transparent calc(100% - 15px), #8A837D calc(100% - 15px)) top/100% 1px no-repeat,
                linear-gradient(to right, #8A837D 15px, transparent 15px, transparent calc(100% - 15px), #8A837D calc(100% - 15px)) bottom/100% 1px no-repeat,
                linear-gradient(to bottom, #8A837D 15px, transparent 15px, transparent calc(100% - 15px), #8A837D calc(100% - 15px)) left/1px 100% no-repeat,
                linear-gradient(to bottom, #8A837D 15px, transparent 15px, transparent calc(100% - 15px), #8A837D calc(100% - 15px)) right/1px 100% no-repeat;
}

/* Corner Border Style 3: Large corners */
.ng-corner-border-style3 {
    border: none !important;
    position: relative;
    background: linear-gradient(to right, #8A837D 20px, transparent 20px, transparent calc(100% - 20px), #8A837D calc(100% - 20px)) top/100% 1px no-repeat,
                linear-gradient(to right, #8A837D 20px, transparent 20px, transparent calc(100% - 20px), #8A837D calc(100% - 20px)) bottom/100% 1px no-repeat,
                linear-gradient(to bottom, #8A837D 20px, transparent 20px, transparent calc(100% - 20px), #8A837D calc(100% - 20px)) left/1px 100% no-repeat,
                linear-gradient(to bottom, #8A837D 20px, transparent 20px, transparent calc(100% - 20px), #8A837D calc(100% - 20px)) right/1px 100% no-repeat;
}


/* SVG-basierte Borders - Fallback auf CSS borders */
.ng-scifi-border-style1 {
    border: 2px solid #8A837D !important;
    position: relative;
}

.ng-scifi-border-style1::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8A837D 0%, transparent 15%, transparent 85%, #8A837D 100%);
    z-index: -1;
    border-radius: 0;
}

.ng-scifi-border-style2 {
    border: 2px solid #8A837D !important;
    position: relative;
    border-style: dashed;
}

.ng-scifi-border-style3 {
    border: 2px solid #8A837D !important;
    position: relative;
    border-style: dotted;
}

.ng-scifi-border-style4 {
    border: 2px solid #FF0080 !important;
    position: relative;
    border-left: 4px solid #FF0080;
    border-right: 4px solid #FF0080;
}

.ng-scifi-border-style5 {
    border: 2px solid #FFFF00 !important;
    position: relative;
    border-top: 4px solid #FFFF00;
    border-bottom: 4px solid #FFFF00;
}

/* Default sci-fi border class */
.ng-scifi-border {
    border: 1px solid #8A837D !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ng-corner-border-style1::before,
    .ng-corner-border-style1::after {
        width: 8px;
        height: 8px;
    }
    
    .ng-corner-border-style2::before,
    .ng-corner-border-style2::after {
        width: 12px;
        height: 12px;
    }
    
    .ng-corner-border-style3::before,
    .ng-corner-border-style3::after {
        width: 16px;
        height: 16px;
    }
}

/* --- NEU: Animierter Neon-Glitch-Border --- */
.ng-sci-neon-glitch {
    position: relative;
    border: 2px solid #00fff7;
    box-shadow: 0 0 8px #00fff7, 0 0 24px #00fff744;
    animation: neon-glitch 1.2s infinite linear alternate;
    background: #000;
    overflow: hidden;
}
@keyframes neon-glitch {
    0% { box-shadow: 0 0 8px #00fff7, 0 0 24px #00fff744; border-color: #00fff7; }
    20% { box-shadow: 0 0 12px #ff00c8, 0 0 32px #ff00c844; border-color: #ff00c8; }
    40% { box-shadow: 0 0 8px #00fff7, 0 0 24px #00fff744; border-color: #00fff7; }
    60% { box-shadow: 0 0 16px #fff700, 0 0 32px #fff70044; border-color: #fff700; }
    80% { box-shadow: 0 0 8px #00fff7, 0 0 24px #00fff744; border-color: #00fff7; }
    100% { box-shadow: 0 0 20px #00fff7, 0 0 40px #00fff744; border-color: #00fff7; }
}

/* --- NEU: Animierte Scanlines-Border --- */
.ng-sci-scanlines {
    position: relative;
    border: 2px solid #39ff14;
    background: repeating-linear-gradient(
        135deg,
        #111 0px, #111 2px,
        #222 2px, #222 4px
    );
    overflow: hidden;
}
.ng-sci-scanlines::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(57,255,20,0.08) 0px,
        rgba(57,255,20,0.18) 2px,
        transparent 2px,
        transparent 4px
    );
    animation: scanlines-move 2.5s linear infinite;
    z-index: 2;
}
@keyframes scanlines-move {
    0% { background-position-y: 0; }
    100% { background-position-y: 8px; }
}

/* --- NEU: SVG-animierte Ecken (Cyber Corners) --- */
.ng-sci-cyber-corners {
    position: relative;
    border: none;
    background: #000;
    z-index: 1;
}
.ng-sci-cyber-corners svg {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}
.ng-sci-cyber-corners .cyber-corner {
    width: 32px;
    height: 32px;
    display: block;
}
.ng-sci-cyber-corners .corner-tl {
    top: 0; left: 0;
}
.ng-sci-cyber-corners .corner-tr {
    top: 0; right: 0;
    transform: scaleX(-1);
}
.ng-sci-cyber-corners .corner-bl {
    bottom: 0; left: 0;
    transform: scaleY(-1);
}
.ng-sci-cyber-corners .corner-br {
    bottom: 0; right: 0;
    transform: scale(-1,-1);
}
.ng-sci-cyber-corners .cyber-corner {
    position: absolute;
    animation: cyber-corner-glow 2s infinite alternate;
}
@keyframes cyber-corner-glow {
    0% { filter: drop-shadow(0 0 2px #00fff7) drop-shadow(0 0 8px #00fff7); }
    100% { filter: drop-shadow(0 0 8px #00fff7) drop-shadow(0 0 24px #00fff7); }
}

/* --- Responsivität für neue Styles --- */
@media (max-width: 600px) {
    .ng-sci-cyber-corners .cyber-corner {
        width: 18px;
        height: 18px;
    }
}

/* --- NEU: SciFi/Hacker Border Styles 1-5 --- */

/* 1: Neon Glow Border (animiert) */
.ng-scifi-border-style1 {
    position: relative;
    border: 2px solid #00fff7;
    animation: neon-glow 1.5s infinite alternate;
    background: #000;
    overflow: hidden;
}

/* 2: Circuit Board Border (SVG) */
.ng-scifi-border-style2 {
    position: relative;
    border: none;
    background: #000;
}
.ng-scifi-border-style2 .circuit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* 3: Glitch Border (animiert) */
.ng-scifi-border-style3 {
    position: relative;
    border: 2px solid #ff00c8;
    background: #000;
    animation: border-glitch 0.4s infinite steps(2, end);
    box-shadow: 0 0 8px #ff00c8, 0 0 24px #ff00c844;
    overflow: hidden;
}

/* 4: LED Dots Border */
.ng-scifi-border-style4 {
    position: relative;
    border: none;
    background: #000;
}
.ng-scifi-border-style4 .led-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* 5: Scanlines Border (animiert) */
.ng-scifi-border-style5 {
    position: relative;
    border: 2px solid #39ff14;
    background: repeating-linear-gradient(135deg,#111 0px,#111 2px,#222 2px,#222 4px);
    overflow: hidden;
}
.ng-scifi-border-style5::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,rgba(57,255,20,0.08) 0px,rgba(57,255,20,0.18) 2px,transparent 2px,transparent 4px);
    animation: scanlines-move 2.5s linear infinite;
    z-index: 2;
}
@keyframes scanlines-move {
    0% { background-position-y: 0; }
    100% { background-position-y: 8px; }
}

/* --- NEU: Nested Lines Corner Border --- */
.ng-sci-nested-lines {
    position: relative;
    border: none;
    background: #000;
    overflow: visible;
}
.ng-sci-nested-lines .nested-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* --- Codepen SciFi Border Style --- */
.codepen-sci-border {
    background: #0f0026;
    color: #afe3d7;
    font-family: 'TTSquaresCondensed-Thin', Arial, sans-serif;
    position: relative;
    margin: 2em 0;
    padding: 0;
    border: none;
    overflow: visible;
}
.codepen-sci-border-inner {
    position: relative;
    padding: 2.5em 1.5em 2.5em 1.5em;
    background: #0f0026;
    border-radius: 8px;
    z-index: 1;
}
.codepen-sci-svg-top, .codepen-sci-svg-bottom {
    display: block;
    width: 100%;
    height: 30px;
    margin: 0;
    z-index: 2;
}
.codepen-sci-content {
    text-align: center;
    padding: 1.5em 0;
}
.codepen-sci-content h2 {
    color: #00ffc3;
    font-size: 2em;
    margin: 0 0 0.5em 0;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px #00ffc3;
}
.codepen-sci-content p {
    color: #afe3d7;
    font-size: 1.1em;
    margin: 0;
}

/* --- Animation für Codepen SciFi Border --- */
.codepen-sci-border {
    position: relative;
    overflow: visible;
    box-shadow: 0 0 32px #00ffc388, 0 0 2px #00ffc3;
    animation: codepen-glow 2.2s infinite alternate;
}
@keyframes codepen-glow {
    0% { box-shadow: 0 0 8px #00ffc388, 0 0 2px #00ffc3; }
    100% { box-shadow: 0 0 32px #00ffc3, 0 0 8px #00ffc3; }
}
.codepen-sci-border-inner::before {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, transparent 0%, #00ffc3 50%, transparent 100%);
    opacity: 0.18;
    filter: blur(2px);
    animation: codepen-scanline 1.2s linear infinite;
    z-index: 3;
}
@keyframes codepen-scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(96px); }
}

/* --- Menü-Design zurück auf schlicht --- */

