/* --- 🎨 GRUNDLAGEN & VARIABLEN --- */
:root {
    --color-background: #0D0D12;
    --color-surface: #15151C;
    --color-surface-translucent: rgba(21, 21, 28, 0.85);
    --color-text-primary: #F0F0F5;
    --color-text-secondary: #A0A0B0;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-accent-purple: #9333ea;
    --color-accent-pink: #db2777;
    --color-accent-blue: #2563eb;
    
    --gradient-aurora: linear-gradient(120deg, var(--color-accent-purple), var(--color-accent-pink), var(--color-accent-blue));
    --gradient-aurora-animated: linear-gradient(120deg, var(--color-accent-purple), var(--color-accent-pink), var(--color-accent-blue), var(--color-accent-purple), var(--color-accent-pink));
    
    --font-family-body: 'Manrope', sans-serif;
    --font-family-heading: 'Clash Display', sans-serif;
    
    --header-height: 80px;
    --border-radius: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 🛠️ CSS RESET & GLOBALE STILE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family-body);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height);
    background-image: var(--gradient-aurora-animated);
    background-size: 400% 400%;
    animation: aurora-flow 20s ease infinite;
    overflow-x: hidden;
}
@keyframes aurora-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- LAYOUT CONTAINER --- */
main {
    display: grid; grid-template-columns: 1fr; gap: 3rem;
    max-width: 1400px; margin: 0 auto; padding: 3rem 1.5rem;
}
@media (min-width: 1024px) { main { grid-template-columns: 320px 1fr; } }

/* Spezifische Stile für einspaltige Unterseiten */
main.single-column-main {
    display: block; /* Überschreibt das Grid-Layout */
    max-width: 1100px; /* Schmaler für bessere Lesbarkeit */
}
.main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Stellt den Abstand zwischen Sektionen sicher */
}

section {
    background-color: var(--color-surface-translucent);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--border-radius) * 1.5);
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}
img { max-width: 100%; height: auto; display: block; }

/* --- 🖋️ TYPOGRAFIE --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-family-heading); font-weight: 600;
    color: var(--color-text-primary); letter-spacing: -0.5px; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 2.5rem; }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.5rem; }
h4 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; max-width: 65ch; margin-left: auto; margin-right: auto; color: var(--color-text-secondary); }
.section-intro { margin-bottom: 3rem; }
a { color: var(--color-text-primary); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--color-accent-pink); }
strong { color: var(--color-text-primary); font-weight: 600; }

/* --- 🧱 KOMPONENTEN --- */
.cta-button {
    display: inline-block; background: var(--gradient-aurora); color: #fff;
    padding: 14px 32px; border-radius: 50px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; border: none;
    cursor: pointer; transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(219, 39, 119, 0.3);
}
.card {
    background-color: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--border-radius); padding: 2rem; text-align: left;
    transition: var(--transition-smooth); position: relative; height: 100%; overflow: hidden;
}
.card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit;
    background: var(--gradient-aurora); opacity: 0; transition: opacity 0.4s ease; z-index: -1;
}
.card:hover { border-color: transparent; }
.card:hover::before { opacity: 1; }

/* --- 🔝 HEADER & NAVIGATION --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 1000;
    background-color: var(--color-surface-translucent); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border);
}
.navbar {
    max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo img { height: 40px; width: auto; }
.nav-links { display: none; list-style: none; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a.nav-item { color: var(--color-text-secondary); font-weight: 500; position: relative; padding: 0.5rem; }

/* --- DROPDOWN MENU --- */
.dropdown { position: relative; padding: 1rem 0; }
.dropdown .fa-chevron-down { font-size: 0.7rem; margin-left: 0.5rem; transition: transform 0.3s ease; }
.dropdown:hover .fa-chevron-down { transform: rotate(180deg); }
.dropdown-content {
    display: none;
    position: absolute;
    top: 70%; 
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-surface);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.dropdown:hover .dropdown-content { display: block; opacity: 1; visibility: visible; }
.dropdown-content a {
    color: var(--color-text-secondary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-radius: 8px;
}
.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

.menu-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle .bar { width: 25px; height: 3px; background: var(--color-text-primary); border-radius: 2px; transition: var(--transition-smooth); }
.mobile-nav {
    position: fixed; top: var(--header-height); left: 0; width: 100%; height: calc(100vh - var(--header-height));
    background: var(--color-background); z-index: 999; display: flex; flex-direction: column;
    align-items: center; justify-content: center; list-style: none; gap: 2rem;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.active { transform: translateX(0); }

/* --- HERO SEKTION --- */
.hero-section {
    min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem;
    position: relative;
    background-image: url('https://nexus-studios.design/wp-content/uploads/2025/04/nexus-studios.webp');
    background-size: cover;
    background-position: center;
}
.hero-section::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(13, 13, 18, 0.7);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-section h4 {
    font-size: 1.2rem; font-weight: 600; background: var(--gradient-aurora);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem;
}
.hero-section p { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 2.5rem; }

/* --- SIDEBAR --- */
.sidebar { order: -1; }
@media (min-width: 1024px) {
    .sidebar { order: initial; position: sticky; top: calc(var(--header-height) + 3rem); height: fit-content; }
}

/* --- ACCORDION IN SIDEBAR --- */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-header {
    padding: 1.25rem 0; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; font-size: 1.1rem; font-weight: 600;
}
.accordion-header svg { transition: transform 0.3s ease; flex-shrink: 0; fill: var(--color-text-secondary); }
.accordion-header.active svg { transform: rotate(180deg); fill: var(--color-text-primary); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-content ul { list-style: none; padding-bottom: 1.5rem; }
.accordion-content li {
    padding-left: 1.75rem; position: relative; margin-bottom: 0.75rem;
    color: var(--color-text-secondary); font-size: 0.95rem;
}
.accordion-content li::before {
    content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px;
    background: var(--gradient-aurora); border-radius: 2px;
}

/* --- 🌟 KOMPETENZEN SEKTION --- */
.competency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.competency-card {
    display: flex; flex-direction: column; text-align: center; padding: 2rem;
    text-decoration: none; color: inherit;
}
.competency-card .icon { margin: 0 auto 1.5rem auto; width: 50px; height: 50px; }
.competency-card .icon img { filter: drop-shadow(0 0 8px var(--color-accent-purple)); }
.competency-card h3 { font-size: 1.4rem; text-align: center; }
.competency-card p { font-size: 0.95rem; text-align: center; color: var(--color-text-secondary); margin-bottom: auto; }
.competency-card .card-link { margin-top: 1.5rem; align-self: center; color: var(--color-text-secondary); font-weight: 700; }
.competency-card:hover .card-link { color: var(--color-text-primary); }

/* --- 📦 PAKETE SEKTION --- */
.packages-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .packages-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.package-card { display: flex; flex-direction: column; }
.package-card details { width: 100%; }
.package-card summary {
    padding: 1.5rem; list-style: none; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.package-card summary::-webkit-details-marker { display: none; }
.package-title { display: flex; align-items: center; gap: 1rem; }
.package-title img { width: 40px; height: 40px; }
.package-title h4 { margin: 0; font-size: 1.2rem; }
.package-price { font-family: var(--font-family-heading); font-size: 2rem; line-height: 1; }
.package-price .price-label {
    display: block; font-size: 0.8rem; font-family: var(--font-family-body);
    color: var(--color-text-secondary); font-weight: 400;
}
.package-content { padding: 1.5rem; border-top: 1px solid var(--color-border); text-align: left; }
.package-features { list-style: none; margin: 1.5rem 0; }
.package-features li { padding-left: 2rem; position: relative; margin-bottom: 0.75rem; }
.package-features li svg { position: absolute; left: 0; top: 5px; width: 16px; height: 16px; fill: var(--color-accent-blue); }
.package-card .cta-button { width: 100%; text-align: center; }
.friends-bonus-section {
    background: rgba(0,0,0,0.2); border: 1px solid var(--color-border);
    border-radius: var(--border-radius); padding: 1.5rem; margin-top: 1.5rem;
}
.friends-bonus-section h5 { font-size: 1.1rem; text-align: center; margin-bottom: 1rem; color: var(--color-accent-pink); }
.friends-bonus-section ul { list-style: none; padding-left: 0; }
.friends-bonus-section li { font-size: 0.9rem; text-align: center; }
.friends-bonus-section li::before { content: '⭐'; margin-right: 0.5rem; }

/* --- 🚀 TECH STACK --- */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.tech-item {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--border-radius); padding: 1rem 1.5rem;
    display: flex; align-items: center; gap: 0.75rem;
    font-weight: 500; transition: var(--transition-smooth);
}
.tech-item:hover { background: var(--color-background); transform: translateY(-4px); }
.tech-item i { font-size: 1.5rem; color: var(--color-accent-blue); }

/* --- LIST STYLE CARD --- */
.list-style-card ul { list-style: none; text-align: left; padding-left: 0; }
.list-style-card li { padding-left: 2rem; position: relative; margin-bottom: 0.75rem; }
.list-style-card li::before {
    content: '✓'; position: absolute; left: 0; font-weight: 700; color: var(--color-accent-pink);
}

/* --- VISUAL GRID --- */
.visual-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.visual-card {
    border-radius: var(--border-radius); overflow: hidden; background: var(--color-surface);
    border: 1px solid var(--color-border); transition: var(--transition-smooth);
}
.visual-card:hover { transform: translateY(-5px); }
.visual-card img { width: 100%; height: 120px; object-fit: cover; }
.visual-card h4 { font-size: 1rem; padding: 1rem; margin: 0; text-align: center; }

/* --- 🦶 FOOTER --- */
footer {
    background: #000; padding: 3rem 1.5rem; text-align: center;
    margin-top: 3rem; border-top: 1px solid var(--color-border);
}
.footer-links {
    list-style: none; display: flex; justify-content: center;
    flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem;
}
.footer-links a { color: var(--color-text-secondary); }
.footer-links a:hover { color: var(--color-text-primary); }
footer p { font-size: 0.9rem; color: #666; }

/* --- ✨ ANIMATIONEN --- */
.animated-element {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animated-element.is-visible { opacity: 1; transform: translateY(0); }
.animated-element[style*="--delay"] { transition-delay: var(--delay); }
