:root {
    --primary: #1e3a5f;
    --accent: #00b4d8;
    --accent-hover: #0077b6;
    --white: #FFFFFF;
    --light: #f1f3f5;
    --dark: #121212;
    --gray: #6c757d;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --bg-color: var(--white);
    --text-color: var(--dark);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --heading-color: var(--primary);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --light: #1e293b;
    --white: #1e293b;
    --heading-color: var(--accent);
    --primary: #38bdf8; /* Lighter blue for links/branding in dark mode */
    --gray: #cbd5e1; /* Lighter gray for list items/secondary text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

[data-theme="dark"] .nav-links a {
    color: var(--accent);
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 2rem;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: rgba(0, 180, 216, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 5% 100px;
    background: #1e3a5f; /* Fallback color */
    color: white;
    text-align: center;
    min-height: 80vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: -10%; /* Extra space for parallax move */
    left: 0;
    width: 100%;
    height: 120%; /* Extra height to avoid empty gaps */
    background: linear-gradient(rgba(30, 58, 95, 0.6), rgba(0, 180, 216, 0.5)), url('images/hero_office.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero h1, .hero p, .hero .btn {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Services */
section {
    padding: 100px 5%;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step .step-number {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.3);
}

/* Pricing / Packages */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    position: relative;
}

.pricing-card.featured::before {
    content: 'EMPFOHLEN';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.pricing-card .description {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 900;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-window {
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.chat-window.show {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

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

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 { margin: 0; font-size: 1.1rem; }

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--light);
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 85%;
    font-size: 0.9rem;
}

.message.bot {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #121212;
}

.message.user {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: var(--white);
}

.chat-input input {
    flex-grow: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    background: var(--white);
    color: var(--text-color);
    font-size: 16px; /* Verhindert Auto-Zoom auf dem iPhone */
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--heading-color);
    transition: 0.3s;
}

.faq-question:hover {
    background: rgba(0, 180, 216, 0.05);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: var(--gray);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: var(--accent);
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2rem;
}

.partner-logos img {
    height: 35px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(1);
    transition: all 0.3s;
}

[data-theme="dark"] .partner-logos img {
    filter: grayscale(1) brightness(0) invert(1);
}

.partner-logos img:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1) invert(0);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
}

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

.service-card {
    background: var(--light);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.3s;
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-bottom: 5px solid var(--accent);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray);
}

.service-card ul li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    margin-right: 8px;
}

/* About Section */
.about {
    background: var(--light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.about-img {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

#referenzen img:hover {
    filter: grayscale(0) !important;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 4rem 5% 2rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
}

/* Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        padding: 2rem 5%;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links a {
        margin: 1rem 0;
        margin-left: 0;
        font-size: 1.2rem;
    }
    .theme-toggle {
        margin: 1rem 0;
        margin-left: 0;
    }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .chat-window { width: 90vw; right: 5vw; }
}

/* Cookie Banner */
/* Kontakt Sektion */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info-box h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    color: var(--heading-color);
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background: var(--white);
    color: var(--text-color);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

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

.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 1.5rem 5%;
    z-index: 2000;
    transition: 0.4s;
}

.cookie-banner.show { bottom: 0; }
.cookie-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
