/* --- LOCAL FONTS --- */
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-300.woff2') format('woff2');
    font-weight: 300;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-800.woff2') format('woff2');
    font-weight: 800;
}
@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit-300.woff2') format('woff2');
    font-weight: 300;
}
@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit-500.woff2') format('woff2');
    font-weight: 500;
}
@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit-700.woff2') format('woff2');
    font-weight: 700;
}

:root {
    --bg-dark: #06090e;
    --bg-card: #111822;
    --primary: #e57000; /* Proxmox Orange */
    --primary-light: #ff851a;
    --primary-glow: rgba(229, 112, 0, 0.4);
    --secondary: #00a3ff; /* Tech Blue */
    --text-main: #f0f4f9;
    --text-muted: #8e99a7;
    --gradient-hero: linear-gradient(135deg, rgba(6, 9, 14, 0.9) 0%, rgba(1, 4, 10, 0.7) 100%);
    --gradient-accent: linear-gradient(90deg, var(--primary), var(--primary-light));
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-large: 24px;
    --radius-medium: 12px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(6, 9, 14, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(6, 9, 14, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.accent-text {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* HERO */
.hero {
    min-height: 100dvh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 850px;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 30%, #999 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 650px;
    line-height: 1.5;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-medium);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.15rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: #fff;
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--text-main);
    transform: translateY(-3px);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* SECTIONS */
.section {
    padding: clamp(80px, 12vw, 160px) 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-large);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 40%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    background: #161e2a;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.highlight {
    border-top: 5px solid var(--primary);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.alternate-bg {
    background: #090e14;
}

/* FLEX CONTENT */
.flex-layout {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 8vw, 6rem);
}

.flex-content, .flex-image {
    flex: 1;
}

.flex-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
}

.flex-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
    background: var(--primary-glow);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--radius-large);
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
}

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    opacity: 0.6;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.faq-item {
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.02);
}

/* PARTNERS */
.partner-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius-medium);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: var(--transition);
    width: clamp(280px, 30vw, 380px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.partner-card:hover {
    background: var(--glass);
    border-color: var(--secondary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 163, 255, 0.1);
}

.partner-name {
    display: block;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.partner-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
}

/* TECHNOLOGY STACK (Extra for "Fullness") */
.tech-stack {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    margin-top: 5rem;
    opacity: 0.3;
    filter: grayscale(100%);
    flex-wrap: wrap;
}

.tech-item {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
}

/* FOOTER */
footer {
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--glass-border);
    background: #03060a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.footer-brand .logo-text {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-legal p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.trademark-note {
    border-left: 2px solid var(--primary);
    padding-left: 1.5rem;
}

/* CHATBOT */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: clamp(320px, 90vw, 400px);
    height: clamp(500px, 70vh, 650px);
    background: #0f172a;
    border: 1px solid var(--primary);
    border-radius: var(--radius-large);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    z-index: 2000;
    transform: translateY(calc(100% + 3rem));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-container.active {
    transform: translateY(0);
}

.chatbot-header {
    background: var(--primary);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 23px 23px 0 0;
}

.chatbot-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.chatbot-header button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-header button:hover {
    background: rgba(255,255,255,0.4);
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.msg {
    padding: 1rem 1.25rem;
    border-radius: 18px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-msg {
    background: var(--glass);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--glass-border);
}

.user-msg {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
}

.chat-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.chat-opt {
    background: transparent;
    border: 1px solid rgba(229, 112, 0, 0.4);
    color: var(--primary);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.chat-opt:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .faq-grid { grid-template-columns: 1fr; }
    .flex-layout { flex-direction: column; text-align: center; }
    .check-list { justify-items: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .navbar { height: 70px; }
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 2000;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero { text-align: center; }
    .hero-btns { justify-content: center; }
    
    .glass-panel { grid-template-columns: 1fr; }
    
    .chatbot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .chatbot-header { border-radius: 0; }
}

/* DIREKT KONTAKT ENHANCEMENTS */
#DirektKontakt { 
    background: #03060a; 
    padding: clamp(6rem, 15vw, 10rem) 0;
    position: relative;
    overflow: hidden;
}

#DirektKontakt::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229, 112, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.dk-inner { 
    max-width: 960px; 
    margin: 0 auto; 
    position: relative;
    z-index: 1;
    background: var(--glass);
    padding: clamp(2rem, 8vw, 5rem);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-large);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
}

.dk-head {
    text-align: center;
    margin-bottom: 4rem;
}

.dk-eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.dk-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.dk-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.trust-markers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.trust-icon {
    color: #22c972;
    font-size: 1.2rem;
}

.dk-fields { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.dk-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dk-lbl {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dk-field input { 
    padding: 1.25rem 1.5rem; 
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    font-size: 1.05rem;
    color: #fff;
    transition: var(--transition);
}

.dk-field input:focus { 
    background: rgba(229, 112, 0, 0.05);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 20px var(--primary-glow);
}

.dk-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.dk-privacy {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.dk-privacy a {
    color: #fff;
    text-decoration: underline;
}

.dk-btn {
    border-radius: 14px;
    padding: 1.5rem 4rem;
    font-size: 1.15rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.dk-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.dk-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.dk-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: none;
}

.dk-feedback.visible { display: block; }
.dk-feedback.success { background: rgba(34,201,114,0.1); color: #22c972; border: 1px solid rgba(34,201,114,0.2); }
.dk-feedback.error { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

@media (max-width: 600px) {
    .dk-fields { grid-template-columns: 1fr; }
}

/* --- REVEAL ON SCROLL --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.service-card.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.service-card.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }
