@import url("/assets/fonts/fonts.css");

:root {
    /* Brand palette — gradient logo */
    --brand-cyan: #22d3ee;
    --brand-blue: #2563eb;
    --brand-fuchsia: #d946ef;
    --brand-gradient: linear-gradient(90deg, #22d3ee 0%, #2563eb 50%, #d946ef 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(37, 99, 235, 0.06) 50%, rgba(217, 70, 239, 0.08) 100%);

    /* Surfaces */
    --bg-body: #ffffff;
    --bg-soft: #fafbfc;
    --bg-card: #ffffff;
    --bg-watermark: #f4f5f7;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Borders */
    --border: #e6e8ec;
    --border-strong: #cbd5e1;

    /* Shadows */
    --shadow-card: 0 12px 40px -16px rgba(15, 23, 42, 0.08);
    --shadow-card-hover: 0 24px 56px -20px rgba(34, 211, 238, 0.18);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: "Manrope", "Roboto", system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: "Outfit", "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { color: var(--brand-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-fuchsia); }

::selection { background: var(--brand-cyan); color: #0f172a; }

/* ====== Regional callout (Leistungen page) ====== */
.mm-regional {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.06) 0%, rgba(37, 99, 235, 0.04) 50%, rgba(217, 70, 239, 0.06) 100%);
    border: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.mm-regional::before {
    content: ""; position: absolute; right: -60px; top: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: var(--brand-gradient); opacity: 0.06; filter: blur(20px);
}
.mm-remote-badge {
    display: inline-flex; align-items: center; padding: 0.55rem 1.1rem; border-radius: 999px;
    background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: 0.95rem;
    box-shadow: 0 8px 20px -10px rgba(217, 70, 239, 0.45);
}

/* ====== Fresh polish — subtle floating shapes behind sections ====== */
.mm-section { isolation: isolate; }
.mm-section.bg-light::before,
.mm-section.bg-light::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4; z-index: 0; pointer-events: none;
}
.mm-section.bg-light::before { left: -100px; top: 40px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%); }
.mm-section.bg-light::after { right: -100px; bottom: 40px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(217, 70, 239, 0.13), transparent 70%); }
.mm-section .container { position: relative; z-index: 1; }

/* Card hover gradient border on the inside */
.mm-card { position: relative; }
.mm-card::after {
    content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1.5px;
    background: var(--brand-gradient); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude; -webkit-mask-composite: xor; opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.mm-card:hover::after { opacity: 0.7; }

/* Refined button — soft inset highlight */
.btn-brand { position: relative; overflow: hidden; }
.btn-brand::before {
    content: ""; position: absolute; inset: 1px; border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 50%); pointer-events: none;
}

/* Selection accent for nav active state */
.mm-nav .nav-link.active { color: var(--brand-blue); }

/* Print styles — clean output if user prints the page */
@media print {
    .mm-header, .mm-footer, .mm-scroll-top, .mm-marquee, .btn-brand, .btn-outline-brand { display: none !important; }
    .mm-section { padding: 20px 0; }
    a { color: #0f172a !important; text-decoration: underline; }
}

/* ====== Header / Nav ====== */
.mm-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s, box-shadow 0.3s;
}
.mm-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px -8px rgba(15, 23, 42, 0.1); }
.mm-logo img { height: 32px; width: auto; max-width: 160px; object-fit: contain; }
.mm-nav .nav-link {
    color: var(--text-primary); font-weight: 600; font-size: 0.92rem;
    padding: 0.5rem 0; margin: 0 0.85rem; position: relative;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.mm-nav .nav-link::after {
    content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--brand-gradient); transition: width 0.25s;
}
.mm-nav .nav-link:hover, .mm-nav .nav-link.active { color: var(--brand-blue); }
.mm-nav .nav-link:hover::after, .mm-nav .nav-link.active::after { width: 100%; }

/* Lang switcher */
.lang-switch { display: inline-flex; gap: 2px; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: #fff; }
.lang-switch a { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 10px; border-radius: 999px; color: var(--text-secondary); }
.lang-switch a.active { background: var(--brand-gradient); color: #fff; }

/* ====== Buttons ====== */
.btn-brand {
    background: var(--brand-gradient); color: #fff; border: 0; border-radius: 999px;
    padding: 0.7rem 1.8rem; font-weight: 600; letter-spacing: 0.03em;
    box-shadow: 0 8px 24px -10px rgba(217, 70, 239, 0.5); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px -10px rgba(217, 70, 239, 0.6); }
.btn-outline-brand {
    background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-strong); border-radius: 999px;
    padding: 0.65rem 1.7rem; font-weight: 600;
}
.btn-outline-brand:hover { color: var(--brand-blue); border-color: var(--brand-blue); background: rgba(34, 211, 238, 0.04); }

/* ====== Hero ====== */
.mm-hero { position: relative; padding: 140px 0 80px; overflow: hidden; }
.mm-hero::before {
    content: "MMSTACK"; position: absolute; left: -3vw; top: 38%;
    font-family: "Outfit", sans-serif; font-weight: 900; font-size: 22vw; line-height: 0.85;
    color: var(--bg-watermark); z-index: 0; letter-spacing: -0.04em; user-select: none; pointer-events: none;
}
.mm-hero-content { position: relative; z-index: 2; }
.mm-eyebrow { display: inline-flex; align-items: center; gap: 0.85rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-secondary); }
.mm-eyebrow::after { content: ""; height: 1.5px; width: 60px; background: var(--brand-gradient); }
.mm-hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.05; margin: 1.2rem 0 1.5rem; }
.mm-hero h1 .accent { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mm-hero .lead { font-size: 1.1rem; color: var(--text-secondary); max-width: 540px; margin-bottom: 2rem; }
.mm-hero-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.mm-hero-badges span { font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-secondary); }
.mm-hero-illustration {
    position: relative; max-width: 560px; margin-left: auto;
    border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card);
}
.mm-hero-illustration img { width: 100%; height: auto; display: block; }

/* ====== Cities marquee (JS-driven animation — supports drag/swipe & resume-from-drop-point) ====== */
.mm-marquee { padding: 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
.mm-marquee .container-fluid { padding: 0; min-height: 56px; }
.mm-marquee-label {
    flex-shrink: 0; padding: 0 1.5rem; background: var(--bg-soft); position: relative; z-index: 3;
    border-right: 1px solid var(--border); align-self: stretch; display: inline-flex !important; align-items: center;
    letter-spacing: 0.12em;
}
.mm-marquee::before, .mm-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.mm-marquee::before { left: 0; background: linear-gradient(to right, var(--bg-soft), transparent); }
.mm-marquee::after { right: 0; background: linear-gradient(to left, var(--bg-soft), transparent); }
.mm-marquee-track {
    display: flex; gap: 3rem; width: max-content;
    padding: 18px 0 18px 2rem; min-width: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.mm-marquee-track span { font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); white-space: nowrap; user-select: none; }
.mm-marquee.is-dragging { cursor: grabbing; }
@media (max-width: 767.98px) {
    .mm-marquee-label { display: none !important; }
    .mm-marquee-track { padding-left: 1rem; gap: 2rem; }
    .mm-marquee { touch-action: pan-y; cursor: grab; }
}

/* ====== Sections ====== */
.mm-section { padding: 100px 0; position: relative; }
.mm-section-eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-blue); }
.mm-section-title { font-size: clamp(2rem, 3.5vw, 3rem); margin: 0.75rem 0 1.25rem; }
.mm-section-title .accent { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mm-section-lead { color: var(--text-secondary); font-size: 1.05rem; max-width: 700px; }

/* ====== About ====== */
.mm-about-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); }
.mm-about-img img { width: 100%; height: auto; display: block; }
.mm-experience-callout { background: var(--brand-gradient); color: #fff; padding: 1rem 1.25rem; border-radius: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 0.75rem; margin: 1rem 0; }
.mm-experience-callout i { font-size: 1.4rem; }

/* ====== Cards ====== */
.mm-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; height: 100%; display: flex; flex-direction: column; }
.mm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(37, 99, 235, 0.3); }
.mm-card-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--brand-gradient-soft); color: var(--brand-blue);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.mm-card.is-magenta .mm-card-icon { color: var(--brand-fuchsia); }
.mm-card h3 { font-size: 1.35rem; margin: 0 0 0.65rem; }
.mm-card p { color: var(--text-secondary); margin: 0; }
.mm-card ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.mm-card ul li { padding-left: 1.5rem; position: relative; color: var(--text-secondary); margin-bottom: 0.4rem; font-size: 0.93rem; }
.mm-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-blue); font-weight: 700; }
.mm-card-link { font-size: 0.85rem; font-weight: 700; color: var(--brand-blue); text-transform: uppercase; letter-spacing: 0.08em; margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.mm-card-link i { transition: transform 0.2s; }
.mm-card:hover .mm-card-link i { transform: translateX(4px); }

/* ====== Process / WhyUs steps ====== */
.mm-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; height: 100%; transition: border-color 0.25s; }
.mm-step:hover { border-color: rgba(37, 99, 235, 0.4); }
.mm-step-num { font-family: "Outfit"; font-weight: 800; font-size: 1.3rem; color: var(--brand-blue); background: var(--brand-gradient-soft); width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.mm-step h3 { font-size: 1.15rem; }
.mm-step p { color: var(--text-secondary); font-size: 0.93rem; margin: 0.5rem 0 0; }

/* ====== FAQ accordion ====== */
.mm-faq .accordion-item { border: 1px solid var(--border); border-radius: 16px !important; margin-bottom: 0.75rem; overflow: hidden; background: var(--bg-card); }
.mm-faq .accordion-button { font-weight: 600; padding: 1.1rem 1.25rem; background: transparent; box-shadow: none !important; color: var(--text-primary); }
.mm-faq .accordion-button:not(.collapsed) { color: var(--brand-blue); background: var(--brand-gradient-soft); }
.mm-faq .accordion-body { color: var(--text-secondary); padding: 0 1.25rem 1.25rem; }

/* ====== Contact ====== */
.mm-contact-info { padding: 0; list-style: none; margin: 0; }
.mm-contact-info li { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.mm-contact-info i { color: var(--brand-blue); font-size: 1.25rem; margin-top: 0.25rem; flex-shrink: 0; }
.mm-contact-info strong { display: block; color: var(--text-primary); margin-bottom: 0.15rem; }
.mm-contact-info span { color: var(--text-secondary); }
.mm-form .form-control, .mm-form .form-select { border-radius: 12px; border: 1px solid var(--border); padding: 0.85rem 1.1rem; font-size: 0.95rem; background: var(--bg-card); }
.mm-form .form-control:focus, .mm-form .form-select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.mm-form label { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; }

/* ====== Partner cards ====== */
.mm-partner-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; height: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--text-primary); }
.mm-partner-card:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, 0.4); box-shadow: var(--shadow-card-hover); color: var(--text-primary); }
.mm-partner-logo { height: 110px; display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--bg-soft); border-radius: 12px; margin-bottom: 1rem; }
.mm-partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mm-partner-card h3 { font-size: 1.15rem; }

/* ====== Footer (DSGVO + WCAG 2.1 AA contrast) ====== */
.mm-footer { background: #0f172a; color: #e2e8f0; padding: 70px 0 30px; }
.mm-footer p, .mm-footer li, .mm-footer span { color: #e2e8f0; }
.mm-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.2rem; }
.mm-footer a { color: #e2e8f0; text-decoration: none; }
.mm-footer a:hover, .mm-footer a:focus { color: #67e8f9; text-decoration: underline; }
.mm-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.5rem; margin-top: 3rem; color: #cbd5e1; font-size: 0.88rem; }
.mm-footer-bottom span { color: #cbd5e1; }

/* ====== Scroll-to-top ====== */
.mm-scroll-top { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-gradient); color: #fff; border: 0; display: none; align-items: center; justify-content: center; box-shadow: 0 8px 24px -8px rgba(34, 211, 238, 0.5); cursor: pointer; z-index: 100; transition: transform 0.2s; }
.mm-scroll-top:hover { transform: translateY(-3px); }
.mm-scroll-top.is-visible { display: flex; }

/* ====== Floating WhatsApp (mobile-first, non-intrusive) ====== */
.mm-whatsapp {
    position: fixed; bottom: 16px; left: 16px; z-index: 99;
    width: 48px; height: 48px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px -4px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-decoration: none; opacity: 0.92;
}
.mm-whatsapp:hover, .mm-whatsapp:focus { color: #fff; transform: translateY(-2px); opacity: 1; box-shadow: 0 10px 24px -4px rgba(37, 211, 102, 0.6); outline: 2px solid transparent; outline-offset: 3px; }
.mm-whatsapp:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.mm-whatsapp svg { display: block; }
/* On larger screens, position it slightly larger and not too close to content */
@media (min-width: 992px) {
    .mm-whatsapp { width: 56px; height: 56px; bottom: 22px; left: 22px; }
}
/* Don't overlap with the scroll-to-top button on the right edge */
@media (max-width: 575.98px) {
    .mm-whatsapp { bottom: 14px; left: 14px; }
}

/* ====== Decorative dots ====== */
.mm-dot { position: absolute; border-radius: 50%; opacity: 0.45; z-index: 0; }
.mm-dot.cyan { background: var(--brand-cyan); }
.mm-dot.blue { background: var(--brand-blue); }
.mm-dot.fuchsia { background: var(--brand-fuchsia); }

/* ====== Responsive ====== */
@media (max-width: 991.98px) {
    .mm-hero { padding: 100px 0 60px; }
    .mm-hero::before { font-size: 32vw; top: 30%; opacity: 0.55; }
    .mm-hero-illustration { max-width: 380px; margin: 2rem auto 0; }
    .mm-section { padding: 70px 0; }

    /* Mobile menu — more left padding, vertical spacing, larger lang gap */
    #mmNav { padding: 1rem 1.25rem 1.5rem; }
    .mm-nav { gap: 0.25rem; }
    .mm-nav .nav-item { width: 100%; }
    .mm-nav .nav-link { margin: 0; padding: 0.85rem 0.25rem !important; border-bottom: 1px solid var(--border); }
    .mm-nav .nav-link:last-child { border-bottom: 0; }
    .mm-nav .nav-item:last-of-type .nav-link { border-bottom: 0; }
    .mm-nav > .nav-item:has(.lang-switch) { margin-top: 1.5rem !important; padding-top: 1rem; border-top: 1px solid var(--border); }
    .mm-header .navbar { padding: 0.75rem 1.25rem; }
}
@media (max-width: 575.98px) {
    .mm-hero h1 { font-size: 2.2rem; }
    .mm-hero .lead { font-size: 1rem; }
}