/* --- DUALMODE VARIABLEN --- */
:root {
    /* Dark Mode (Lighter & Softer) */
    --lila: #6b2e81; --lila-bright: #9b4eb5; --gold: #c5c52a; --gold-hot: #e8e832;
    --bg: #1f1f26; /* Weiches, mattes Dunkelgrau statt tiefem Schwarz */
    --bg-card: rgba(255, 255, 255, 0.06); /* Etwas hellere Boxen für besseren Kontrast */
    --border: rgba(142, 68, 173, 0.4);
    --error: #ff4d4d; --success: #2ecc71; --text-main: #ffffff; --text-dim: #c0b9c4;
    --nav-bg: rgba(31, 31, 38, 0.92); /* Navigation an das hellere Grau angepasst */
    --radius-lg: 20px;
}

body.light-mode {
    /* Light Mode (White/Gold/Lila) */
    --bg: #ffffff; --bg-card: #f9f9f9; --border: rgba(107, 46, 129, 0.2);
    --text-main: #120c14; --text-dim: #555; --nav-bg: rgba(255, 255, 255, 0.92);
    --gold: #b4b426; --gold-hot: #6b2e81;
}

* { box-sizing: border-box; margin: 0; padding: 0; cursor: default !important; }
body { background: var(--bg); color: var(--text-main); font-family: "Plus Jakarta Sans", sans-serif; overflow-x: hidden; line-height: 1.5; font-size: 0.95rem; transition: background 0.3s, color 0.3s; }

#auditCanvas { position: fixed; inset: 0; z-index: -1; opacity: 0.3; pointer-events: none; }

/* Navigation */
nav { position: fixed; top: 0; width: 100%; height: 70px; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 8%; background: var(--nav-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.logo { font-weight: 900; font-size: 1.8rem; text-transform: uppercase; color: var(--text-main); text-decoration: none; letter-spacing: -1.5px; z-index: 1002; }
.logo span { color: var(--gold); }

/* Logo Farbwechsel (Zieht sich die echten, gestochen scharfen Dateien) */
.logo-img { 
    content: url("https://oreonx.com/images/OreonX-Logo-Datei-white-neu.png"); 
}
body.light-mode .logo-img { 
    content: url("https://oreonx.com/images/OreonX-Logo-Datei-black-neu.png"); 
}

.nav-links { display: flex; align-items: center; }
.nav-links a, .nav-links span { color: var(--text-main); text-decoration: none; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; margin-left: 25px; transition: 0.3s; letter-spacing: 1px; cursor: pointer; }
.nav-links a:hover { color: var(--gold); }

/* THEME SWITCHER */
.theme-switch {
    background: var(--gold); color: #000; border: none; padding: 8px 15px;
    border-radius: 20px; font-size: 0.7rem; font-weight: 800; cursor: pointer;
    margin-left: 20px; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.3s;
}
body.light-mode .theme-switch { background: var(--lila); color: #fff; }

.btn-gold { background: var(--gold); color: #000; padding: 10px 24px; border-radius: 6px; font-weight: 900; border: none; cursor: pointer; transition: 0.4s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; box-shadow: 0 5px 15px rgba(197, 197, 42, 0.2); }
body.light-mode .btn-gold { color: #fff; background: var(--lila); }
.btn-gold:hover { background: var(--gold-hot); transform: translateY(-2px); }

/* HAMBURGER MENU ICON */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; z-index: 1002; }
.hamburger span { width: 25px; height: 3px; background: var(--text-main); transition: 0.3s; border-radius: 2px; }

header.hero { min-height: 90vh; display: flex; align-items: center; gap: 40px; padding: 100px 8% 60px; }
.hero-content { flex: 1; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; font-weight: 900; margin-bottom: 20px; letter-spacing: -2px; }
h1 span { color: var(--gold); }
.hero-p { font-size: 1.1rem; color: var(--text-dim); max-width: 520px; margin-bottom: 35px; }

.engine-visual { flex: 1.3; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 25px; backdrop-filter: blur(30px); box-shadow: 0 30px 80px rgba(0,0,0,0.2); min-height: 500px; display: flex; flex-direction: column; overflow: hidden; }
.engine-head { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.engine-status { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--gold); letter-spacing: 1.5px; }

/* Stages */
#stage-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; flex-grow: 1; }
.drop-zone { width: 100%; border: 2px dashed var(--lila); border-radius: 15px; padding: 50px 20px; text-align: center; cursor: pointer; transition: 0.4s; background: rgba(107, 46, 129, 0.05); }
.drop-zone:hover { border-color: var(--gold); background: rgba(197, 197, 42, 0.05); }

#stage-scan { display: none; padding: 20px 0; }
.scan-window { width: 100%; height: 250px; background: rgba(0,0,0,0.4); border-radius: 12px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.laser { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gold); box-shadow: 0 0 20px var(--gold); animation: moveLaser 2.5s infinite linear; }
@keyframes moveLaser { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }

#stage-workspace { display: none; font-family: 'JetBrains Mono', monospace; }
.editor-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; color: var(--text-main); }
.editor-table th { text-align: left; color: #555; padding: 8px; border-bottom: 1px solid var(--border); }
.editor-table td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.input-box { background: var(--bg); border: 1px solid var(--border); color: var(--text-main); padding: 4px; width: 100%; border-radius: 4px; font-family: inherit; font-size: 0.7rem; cursor: text !important; }

.row-striked { opacity: 0.25; filter: grayscale(1); pointer-events: none; text-decoration: line-through; }
.storno-btn { background: var(--error); color: #fff; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-weight: 800; font-size: 0.6rem; }

.calc-panel { margin-top: 20px; padding: 15px; border-radius: 12px; background: rgba(197, 197, 42, 0.05); border: 1px solid var(--gold); }
#stage-finish { display: none; text-align: center; padding: 40px 0; }
.success-blob { width: 60px; height: 60px; background: var(--success); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; font-size: 1.5rem; }

/* Pricing */
.pricing-section { padding: 60px 8%; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 40px; }
.p-card { background: var(--bg-card); border: 1px solid var(--border); padding: 40px 30px; border-radius: 20px; transition: 0.5s; position: relative; overflow: hidden; }
.p-card:hover { border-color: var(--gold); transform: translateY(-10px); background: var(--bg); }
.p-card.featured { border: 2px solid var(--gold); }
.price-val { font-size: 2.8rem; font-weight: 900; margin: 15px 0; color: var(--gold); }
.p-card ul { list-style: none; margin-bottom: 30px; text-align: left; font-size: 0.85rem; }
.p-card li { margin-bottom: 8px; color: var(--text-dim); }
.p-card li::before { content: '✓ '; color: var(--gold); font-weight: bold; }

/* FAQ */
.faq-section { padding: 80px 8%; max-width: 1200px; margin: 0 auto; }
.faq-section h2 { font-size: 2.8rem; text-align: center; margin-bottom: 50px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); padding: 25px; border-radius: 15px; transition: 0.3s; }
.faq-item h4 { color: var(--gold); margin-bottom: 10px; font-size: 1.1rem; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(18, 12, 20, 0.98); z-index: 2000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(30px); }
.modal.active { display: flex; }
.modal-inner { width: 90%; max-width: 900px; background: var(--bg-card); border: 1px solid var(--lila); border-radius: var(--radius-lg); padding: 40px; text-align: center; position: relative; }
.close-modal { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; color: var(--gold); cursor: pointer; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 40px; }
.member { padding: 20px; border: 1px solid var(--border); border-radius: 15px; }
.member-img { width: 80px; height: 80px; background: var(--lila); border-radius: 50%; margin: 0 auto 15px; border: 2px solid var(--gold); }

footer { padding: 60px 8% 40px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.f-col a { display: block; color: var(--text-dim); text-decoration: none; margin-bottom: 8px; transition: 0.3s; font-size: 0.85rem; cursor: pointer; }
.f-col a:hover { color: var(--gold); }

/* MOBILE OPTIMIERUNG */
@media (max-width: 1100px) {
    header.hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .pricing-grid, .faq-grid, .footer-grid { grid-template-columns: 1fr; }

    /* Hamburger Menü einblenden */
    .hamburger { display: flex; }

    /* Menü-Links für Mobile anpassen (Slide-in) */
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
        background: var(--nav-bg); flex-direction: column; align-items: flex-start;
        padding: 90px 30px 40px; transition: right 0.4s ease; border-left: 1px solid var(--border);
        backdrop-filter: blur(20px); box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    .nav-links a, .nav-links span { margin: 15px 0; font-size: 1rem; margin-left: 0; width: 100%; display: block; }
    .theme-switch { margin: 15px 0; width: 100%; text-align: center; }
    .nav-links .btn-gold { margin: 15px 0 !important; width: 100%; }

    /* Hamburger Animation (zum X) */
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Demo-Tabelle am Handy scrollbar machen */
    .editor-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ========================================= */
/* 🚨 WARTUNGSMODUS OVERLAY (NEU) 🚨          */
/* ========================================= */
#maintenance-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg); display: none;
    flex-direction: column; align-items: center; justify-content: center;
}
.maintenance-card {
    width: 90%; max-width: 650px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 60px 50px;
    backdrop-filter: blur(30px); box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    text-align: center; position: relative;
}
.maintenance-logo { margin-bottom: 35px; }
.maintenance-logo img { height: 60px; width: auto; object-fit: contain; }
.m-status-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    font-weight: 800; color: #ef4444; letter-spacing: 2px;
    background: rgba(239, 68, 68, 0.1); padding: 8px 16px;
    border-radius: 50px; margin-bottom: 25px; border: 1px solid rgba(239, 68, 68, 0.3);
    display: inline-flex; align-items: center; gap: 8px;
}
.m-title { font-size: 3.2rem; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 20px; line-height: 1.1; color: var(--text-main); }
.m-title span { color: var(--lila); }
.m-desc { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 30px; }
#countdown-timer { display: none; font-family: 'JetBrains Mono', monospace; font-size: 2.5rem; font-weight: 900; color: #ef4444; margin-bottom: 30px; letter-spacing: 2px; }

/* ========================================= */
/* 📄 SUBPAGES (WIKI, IMPRESSUM, AGB, ETC.)  */
/* ========================================= */
.page-header, .wiki-header { padding: 140px 8% 60px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.page-header h1, .wiki-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.page-header h1 span, .wiki-header h1 span { color: var(--lila); }
.page-header p, .wiki-header p { color: var(--text-dim); font-size: 1.1rem; max-width: 600px; }

.content-container, .wiki-container { display: grid; grid-template-columns: 250px 1fr; gap: 60px; padding: 60px 8%; max-width: 1400px; margin: 0 auto; align-items: start; }

/* Sidebar */
.content-sidebar, .wiki-sidebar { position: sticky; top: 100px; }
.content-sidebar h3, .wiki-sidebar h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--lila); margin-bottom: 15px; }
.content-sidebar ul, .wiki-sidebar ul { list-style: none; }
.content-sidebar li, .wiki-sidebar li { margin-bottom: 10px; }
.content-sidebar a, .wiki-sidebar a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: 0.3s; display: block; padding: 5px 0; font-weight: 600; line-height: 1.4; }
.content-sidebar a:hover, .content-sidebar a.active, .wiki-sidebar a:hover, .wiki-sidebar a.active { color: var(--text-main); padding-left: 10px; border-left: 2px solid var(--lila); }

/* Main Content Area */
.text-content section, .wiki-content section { margin-bottom: 50px; scroll-margin-top: 100px; }
.text-content h2, .wiki-content h2 { font-size: 1.8rem; margin-bottom: 20px; font-weight: 800; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.text-content h3, .wiki-content h3 { font-size: 1.2rem; margin: 25px 0 10px; font-weight: 700; color: var(--lila); }
.text-content p, .wiki-content p { color: var(--text-dim); margin-bottom: 15px; font-size: 0.95rem; text-align: justify; }
.text-content ul, .wiki-content ul { color: var(--text-dim); margin-bottom: 20px; padding-left: 20px; font-size: 0.95rem; }
.text-content li, .wiki-content li { margin-bottom: 8px; }

/* Infoboxen & Code */
.info-block, .info-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 25px; margin-bottom: 30px; }
.info-box { border-left: 4px solid var(--lila); border-radius: 0 8px 8px 0; }
.info-block p, .info-box p { margin-bottom: 10px; color: var(--text-main); font-weight: 600; }
.info-block span { color: var(--text-dim); font-weight: 400; display: block; margin-top: 2px; }

.code-block { background: #120c14; border: 1px solid var(--border); border-radius: 8px; padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #d4d4d4; overflow-x: auto; margin-bottom: 25px; }
.code-block span.tag { color: #9b4eb5; }
.code-block span.attr { color: #c5c52a; }
.code-block span.val { color: #ffffff; }

/* Mobile Anpassung für Unterseiten */
@media (max-width: 900px) { 
    .content-container, .wiki-container { grid-template-columns: 1fr; }
    .content-sidebar, .wiki-sidebar { position: relative; top: 0; margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
}
/* ========================================= */
/* 🔻 DROPDOWN MENÜ (TEAM & JOBS)             */
/* ========================================= */
.dropdown { position: relative; display: inline-block; margin-left: 25px; }
.dropdown > a { margin-left: 0 !important; } 
.dropdown-content { 
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--bg-card); min-width: 190px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 2000; 
    border-radius: 12px; border: 1px solid var(--border); overflow: hidden;
    margin-top: 15px; backdrop-filter: blur(20px);
}
/* Unsichtbare Brücke, damit das Hover mit der Maus nicht abbricht */
.dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 15px; }

.dropdown-content a { 
    color: var(--text-main) !important; padding: 12px 20px !important; 
    text-decoration: none; display: block; font-size: 0.75rem; 
    margin: 0 !important; font-weight: 800; border-bottom: 1px solid var(--border);
    transition: 0.3s;
}
.dropdown-content a:hover { 
    background: rgba(107, 46, 129, 0.1); 
    color: var(--lila) !important; 
    padding-left: 25px !important; 
}
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Anpassung */
@media (max-width: 1100px) {
    .dropdown { margin-left: 0; width: 100%; margin: 15px 0; }
    .dropdown-content { position: relative; box-shadow: none; border: none; margin-top: 5px; background: transparent; display: none; }
    .dropdown:hover .dropdown-content { display: block; }
    .dropdown-content a { padding-left: 20px !important; border-left: 2px solid var(--lila); border-bottom: none; }
}
/* ========================================= */
/* 💳 PRICING TOGGLE (Monatlich / Jährlich)  */
/* ========================================= */
.pricing-toggle-wrapper {
    text-align: center;
    margin-bottom: 50px;
}
.pricing-toggle {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.toggle-btn {
    background: transparent;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.toggle-btn.active {
    background: var(--lila);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(107, 46, 129, 0.4);
}
.save-badge {
    background: var(--gold);
    color: #000;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 900;
    vertical-align: middle;
}
.price-val { transition: opacity 0.3s ease; }
