/* --- FUTURE VARIABLES --- */
:root {
    --sci-bg: #050510;
    --sci-primary: #00f3ff; 
    --sci-text: #e0fbfc;
    --sci-glass: rgba(10, 10, 30, 0.9);
    --sci-font: 'Rajdhani', sans-serif;
}

@keyframes colorShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
@keyframes planeMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

body {
    background-color: var(--sci-bg);
    color: var(--sci-text);
    font-family: var(--sci-font);
    font-size: 1.15rem;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle at center top, #151530 0%, #000 80%);
    padding-bottom: 80px;
}

/* 3D GRID */
.cyber-perspective {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    perspective: 800px; perspective-origin: 50% 50%; z-index: -1;
    overflow: hidden;
}
.cyber-grid-plane {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: linear-gradient(to right, rgba(0, 243, 255, 0.3) 1px, transparent 2px), linear-gradient(to bottom, rgba(0, 243, 255, 0.3) 1px, transparent 2px);
    background-size: 80px 80px; transform: rotateX(80deg); transform-origin: center center;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 30%, transparent 60%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 30%, transparent 60%);
    animation: planeMove 3s linear infinite, colorShift 60s linear infinite; opacity: 0.5;
}

h1, h2, h3, h4 { text-transform: uppercase; letter-spacing: 3px; color: #fff; font-weight: 700; text-shadow: 0 0 15px var(--sci-primary); animation: colorShift 60s linear infinite; }
.lead, p { font-weight: 400; letter-spacing: 0.5px; color: #c0c0e0; line-height: 1.6; }
strong { color: #fff; font-weight: 700; }
a { text-decoration: none; color: var(--sci-primary); transition: 0.3s; animation: colorShift 60s linear infinite; }
a:hover { color: #fff; text-shadow: 0 0 15px var(--sci-primary); }

/* LEGACY ALERT */
.legacy-alert {
    background: rgba(0, 243, 255, 0.1); border-left: 5px solid var(--sci-primary);
    padding: 15px; margin-bottom: 30px; font-size: 0.95rem;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.sci-card {
    background: var(--sci-glass); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    padding: 1.5rem; transition: all 0.3s ease; position: relative; display: flex; flex-direction: column;
}
.sci-card:hover { transform: translateY(-5px); border-color: var(--sci-primary); box-shadow: 0 0 30px rgba(0, 243, 255, 0.15); animation: colorShift 60s linear infinite; }
/* From produkte.htm */
.sci-card::after { content: ""; position: absolute; top: 0; right: 0; width: 30px; height: 30px; border-top: 2px solid var(--sci-primary); border-right: 2px solid var(--sci-primary); opacity: 0.5; animation: colorShift 60s linear infinite; display: none; }
/* Only specific cards might need the after element, but default hidden or just let it allow if class present, but here it was on .sci-card::after in produkte.htm. I'll keeping it as is but maybe I should check if it affects others negatively. It is just a decoration. */
/* Re-reading produkte.htm, it applies to ALL sci-card. In index.htm it wasn't there. I'll add a specific class or just let it be for all if it looks good. Let's include it but maybe check if it breaks anything. */

.btn-sci {
    background: rgba(255,255,255,0.05); color: var(--sci-primary); border: 1px solid var(--sci-primary);
    border-radius: 0; padding: 12px 30px; text-transform: uppercase; letter-spacing: 2px;
    transition: 0.3s; font-weight: bold; position: relative; overflow: hidden; animation: colorShift 60s linear infinite; text-align: center;
}
.btn-sci:hover { background: var(--sci-primary); color: #000; box-shadow: 0 0 20px var(--sci-primary); }

.navbar-sci {
    background: rgba(5, 5, 16, 0.95);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem 0;
}
.nav-link { color: var(--sci-text) !important; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.nav-link:hover, .nav-link.active { color: var(--sci-primary) !important; text-shadow: 0 0 10px var(--sci-primary); animation: colorShift 60s linear infinite; }

.restore-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(5, 5, 20, 0.95); border-top: 1px solid var(--sci-primary);
    text-align: center; padding: 15px 0; text-transform: uppercase; letter-spacing: 2px; font-weight: bold;
    color: var(--sci-primary); text-decoration: none;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5); animation: colorShift 60s linear infinite; font-size: 0.9rem;
}
.restore-bar:hover { background: var(--sci-primary); color: #000; box-shadow: 0 0 30px var(--sci-primary); }

/* HEX ANIMATION from index.htm */
.hex-container { display: flex; justify-content: center; align-items: center; height: 400px; position: relative; animation: colorShift 60s linear infinite; }
.hex-icon-main { font-size: 8rem; color: #fff; text-shadow: 0 0 60px var(--sci-primary); z-index: 10; opacity: 0.9; }
.hex-ring { position: absolute; border: 2px solid var(--sci-primary); width: 280px; height: 280px; border-radius: 50%; border-left-color: transparent; border-right-color: transparent; animation: spin 12s linear infinite; box-shadow: 0 0 20px var(--sci-primary); z-index: 5; opacity: 0.6; }
.hex-ring-2 { position: absolute; border: 1px solid var(--sci-primary); width: 220px; height: 220px; border-radius: 50%; border-top-color: transparent; border-bottom-color: transparent; animation: spin 8s linear infinite reverse; box-shadow: 0 0 10px var(--sci-primary); z-index: 5; opacity: 0.4; }
@keyframes spin { 100% { transform: rotate(360deg); } }

img[src="../glogo.png"] { filter: invert(1) drop-shadow(0 0 5px white); }

/* Badges from produkte.htm */
.module-badge {
    font-size: 0.8rem; border: 1px solid var(--sci-primary); padding: 2px 8px; margin-right: 5px;
    animation: colorShift 60s linear infinite; display: inline-block; margin-bottom: 10px;
}
.status-badge {
    background: rgba(0, 243, 255, 0.1); border: 1px solid var(--sci-primary);
    color: #fff; font-size: 0.8rem; padding: 2px 8px; display: block; margin-bottom: 5px; width: fit-content;
}

/* FORM STYLES from Kontakt.htm */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #fff;
    border-radius: 0;
    padding: 15px;
    font-family: var(--sci-font);
}
.form-control:focus {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--sci-primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    color: #fff;
}
.form-label { color: var(--sci-primary); letter-spacing: 1px; font-weight: bold; animation: colorShift 60s linear infinite; }

/* UTILITIES & ICONS from Datenschutzerklaerung */
.section-icon {
    font-size: 1.5rem; color: var(--sci-primary); margin-right: 10px;
    animation: colorShift 60s linear infinite;
}
.text-sci-anim { color: var(--sci-primary); animation: colorShift 60s linear infinite; }
.border-sci-anim { border: 1px solid var(--sci-primary); color: var(--sci-primary); animation: colorShift 60s linear infinite; }
.border-left-sci-anim { border-left: 2px solid var(--sci-primary); padding-left: 15px; animation: colorShift 60s linear infinite; }

/* MODULE BOXES from Dienstleistung.htm */
.sys-badge {
    border: 1px solid var(--sci-primary); color: var(--sci-primary);
    font-size: 0.8rem; letter-spacing: 2px;
    padding: 0.25rem 1rem; margin-bottom: 1rem; display: inline-block;
    animation: colorShift 60s linear infinite;
}

.text-stroke-sci { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.8); }

.code-block-sci {
    font-family: monospace; font-size: 0.9rem; opacity: 0.8;
    border: none; background: rgba(0,0,0,0.3); color: var(--sci-primary);
    padding: 1.5rem;
}
.code-content { animation: colorShift 60s linear infinite; }

.tech-icon {
    font-size: 2.5rem; color: var(--sci-primary); margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px var(--sci-primary)); animation: colorShift 60s linear infinite;
}

.card-separator { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1rem; padding-top: 1rem; }
.card-separator-title { color: var(--sci-primary); animation: colorShift 60s linear infinite; }
.list-clean { list-style: none; padding-left: 0; }