/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --bg: #fafafa;
    --text: #1a1a1a;
    --text-light: #555555;
    --accent: #0057ff;
    --accent-hover: #003ecb;
    --border: #e0e0e0;
    --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    --radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo:hover {
    color: var(--text);
}

.logo-icon {
    color: var(--accent);
    font-size: 1.1rem;
}

.logo-gmbh {
    font-weight: 400;
    color: var(--text-light);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav a:hover {
    color: var(--accent);
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, #f0f4ff 0%, var(--white) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-image {
    text-align: right;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 87, 255, 0.15);
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
}

.btn:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* ===== SECTIONS ===== */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--bg);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
}

.service-card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-3px);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card > *:not(.service-image) {
    padding-left: 30px;
    padding-right: 30px;
}

.service-icon {
    font-size: 2rem;
    margin: 20px 0 16px 0;
    color: var(--accent);
    padding-left: 30px;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.7;
    padding-bottom: 30px;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-text .section-title {
    margin-bottom: 20px;
}

.about-image {
    margin-top: 24px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

/* ===== PARTNERS ===== */
.partners-section {
    background: var(--bg);
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.partner-logo {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 100px;
}

.partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s;
}

.partner-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 16px;
}

.stat {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.93rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-message {
    grid-column: 1 / -1;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.93rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-block h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.info-block p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== BENEFITS ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.benefit-item {
    text-align: center;
    padding: 24px 16px;
}

.benefit-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.benefit-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== PROCESS ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.process-step h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-header div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-header strong {
    font-size: 0.9rem;
    color: var(--text);
}

.testimonial-header span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
}

/* ===== FAQ ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 400;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 24px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px 24px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #0041c4 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 28px;
    opacity: 0.95;
}

.btn-white {
    background: var(--white);
    color: var(--accent);
}

.btn-white:hover {
    background: var(--bg);
    color: var(--accent);
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.legal-content h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    margin-top: 100px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 36px;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.legal-content ul, .legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-light);
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text);
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--accent);
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-block h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.info-block p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    background: var(--white);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-right a {
    color: var(--text-light);
}

.footer-right a:hover {
    color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
        min-width: 140px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner h2 {
        font-size: 1.7rem;
    }

    .cta-banner p {
        font-size: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 130px 0 70px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .section {
        padding: 60px 0;
    }

    .about-stats {
        flex-direction: column;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 60px 0;
    }

    .cta-banner h2 {
        font-size: 1.5rem;
    }
}
