/* lot-landing.css — H1 "spray cones" public landing page.
   Dark cinematic hero with Ken Burns nozzle photo, three animated
   SVG spray cones + droplets + mist over specific nozzles in the
   photo, German-standards footer.

   Self-contained: relies on no workspace tokens. Covers <body> with
   its own container so the globally-injected Quasar reset can't
   bleed through.
*/

/* ---------- scoped reset ---------- */
.lot-landing-page, .lot-landing-page *, .lot-landing-page *::before, .lot-landing-page *::after {
    box-sizing: border-box;
}

/* Escape the workspace page-container's sidebar/topbar padding so the
   landing fills the viewport. Uses :has() so this only fires when the
   current route actually renders .lot-landing-page. */
html:has(.lot-landing-page),
body:has(.lot-landing-page) {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
body:has(.lot-landing-page) .q-layout,
body:has(.lot-landing-page) .q-page-container {
    padding: 0 !important;
    min-height: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
}
body:has(.lot-landing-page) .q-page,
body:has(.lot-landing-page) .q-page > div,
body:has(.lot-landing-page) .nicegui-content,
body:has(.lot-landing-page) .nicegui-content > div {
    padding: 0 !important;
    margin: 0 !important;
    background: #0a1f3d !important;
    min-height: 100vh;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    gap: 0 !important;
}
/* Also hide any stray fixed topbar/sidebar that may have been injected
   globally — landing has its own header + footer. */
body:has(.lot-landing-page) .lot-topbar,
body:has(.lot-landing-page) .q-drawer,
body:has(.lot-landing-page) .q-header {
    display: none !important;
}

.lot-landing-page {
    position: relative;
    height: 100vh;
    width: 100%;
    margin: 0;
    background: #0a1f3d;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lot-landing-page a { text-decoration: none; }

/* ---------- hero region (photo + cones + copy) ---------- */
.lot-landing-hero {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.lot-landing-photo-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.lot-landing-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: lotKenBurns 24s ease-in-out infinite;
}

/* Dark gradient overlay — heavier on the right so text is always
   readable. On ultrawide the photo is very bright on the right half,
   so start darkening earlier and go heavier. The background-color
   ensures the overlay never goes fully transparent even if the
   gradient math underflows on very wide monitors. */
.lot-landing-photo-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 18, 40, 0.25);
    background:
        /* Primary R-to-L gradient for text contrast */
        linear-gradient(
            to right,
            transparent 25%,
            rgba(10, 18, 40, 0.5) 50%,
            rgba(10, 18, 40, 0.8) 75%,
            rgba(10, 18, 40, 0.92) 100%
        ),
        /* Subtle bottom gradient for footer transition */
        linear-gradient(
            to bottom,
            transparent 60%,
            rgba(10, 18, 40, 0.6) 100%
        );
}

.lot-landing-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 30% 60%,
        transparent 40%,
        rgba(10, 31, 61, 0.5) 100%
    );
    pointer-events: none;
}

/* ---------- spray cones ---------- */
.lot-cone {
    position: absolute;
    transform-origin: top center;
    pointer-events: none;
}
.lot-cone-1 { left: 32%; top: 28%; width: 120px; height: 200px; }
.lot-cone-2 { left: 44%; top: 32%; width: 100px; height: 170px; }
.lot-cone-3 { left: 52%; top: 34%; width: 160px; height: 180px; }

.lot-cone svg { animation: lotConeGrow 5s ease-out infinite; display: block; }
.lot-cone-2 svg { animation-delay: 1.6s; }
.lot-cone-3 svg { animation-delay: 3.2s; }

/* droplets that fall inside each cone */
.lot-drop {
    position: absolute;
    width: 3px;
    height: 6px;
    background: #7fb1f0;
    border-radius: 50%;
    pointer-events: none;
    animation: lotDropFall 2s linear infinite;
}

/* mist particles in the widest cone */
.lot-mist {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #b6d2f5;
    border-radius: 50%;
    pointer-events: none;
    animation: lotMist 3s ease-out infinite;
}

/* ---------- header ---------- */
/* Transparent nav, full-width but with generous padding on ultrawide
   so the logo and Sign In don't sit at the very edges of the monitor. */
.lot-landing-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    display: flex;
    align-items: center;
    padding: 0 clamp(24px, 4vw, 80px);
    gap: 28px;
    z-index: 20;
    background: transparent;
}

/* Brand block — Lechler logo + "online tools" wordmark + chevron. */
.lot-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}
.lot-brand-logo {
    display: block;
    width: 96px;
    height: auto;
    flex-shrink: 0;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}
.lot-brand-wordmark {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.015em;
    line-height: 1;
}
.lot-brand-chevron {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    line-height: 1;
    margin-left: -4px;
    display: inline-flex;
    align-items: center;
}
.lot-brand-chevron svg { display: block; }

/* Fix #4: smaller, less prominent — shouldn't compete with nav items. */
.lot-status-chip {
    margin-left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 99px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10.5px;
    font-weight: 500;
}
.lot-status-dot {
    width: 6px;
    height: 6px;
    background: #5dd86b;
    border-radius: 50%;
    animation: lotPulseDot 2s infinite;
}

.lot-landing-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
.lot-landing-nav-link {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.lot-landing-nav-link:hover { color: #fff; }

.lot-landing-signin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #fff;
    color: #0a1f3d;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    transition: transform 0.15s ease;
}
.lot-landing-signin:hover { transform: translateY(-1px); }

/* ---------- hero copy ---------- */
/* Sits inside a centered 1400px-max container so it doesn't fly to the
   far right on ultrawide. Uses right: 6% of the container (not the
   viewport) so it always lands on the darker part of the gradient. */
.lot-landing-copy {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: 560px;
    max-width: calc(100% - 80px);
    z-index: 10;
}
/* On ultrawide (>1600px) cap the right offset so the text area doesn't
   drift past the gradient's dark zone. */
@media (min-width: 1600px) {
    .lot-landing-copy {
        right: max(6%, calc((100vw - 1400px) / 2));
    }
}

.lot-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 99px;
}
.lot-eyebrow-dot {
    width: 5px;
    height: 5px;
    background: #5dd86b;
    border-radius: 50%;
}
.lot-eyebrow-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.lot-landing-headline {
    font-size: 54px;
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.lot-landing-headline-accent { color: #7fb1f0; }

.lot-landing-subtitle {
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 24px 0 0;
    max-width: 440px;
}

.lot-landing-cta-row {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    align-items: center;
    flex-wrap: wrap;
}
.lot-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: #fff;
    color: #0a1f3d;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lot-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(127, 177, 240, 0.25);
}
.lot-cta-primary-arrow { font-size: 18px; line-height: 1; }

.lot-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.lot-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.lot-agreement-notice {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.62);
    margin: 20px 0 0;
}
.lot-agreement-notice a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

/* ---------- reveal animation utility ---------- */
/* `both` not `backwards` — after the animation completes the element
   must retain the final keyframe's opacity:1, not revert to base 0. */
.lot-reveal { animation: lotSlideUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.lot-reveal-d1 { animation-delay: 0.10s; }
.lot-reveal-d2 { animation-delay: 0.25s; }
.lot-reveal-d3 { animation-delay: 0.45s; }
.lot-reveal-d4 { animation-delay: 0.60s; }
.lot-reveal-d5 { animation-delay: 0.75s; }

/* ---------- footer (4-column on desktop, stacking on mobile) ---------- */
/* Fix #5: full layout with Lechler address, LOT links, Rechtliches,
   Kontakt & Support columns on desktop. Dark background. */
.lot-landing-footer {
    background: #0a1228;
    color: #fff;
    padding: 28px clamp(20px, 3vw, 48px) 14px;
    font-size: 12px;
    line-height: 1.6;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lot-landing-footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.lot-landing-footer-company {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}
.lot-landing-footer-company .lot-footer-strong { font-weight: 600; }
.lot-landing-footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lot-landing-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    transition: color 0.15s ease;
}
.lot-landing-footer-links a:hover { color: #fff; }
.lot-landing-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}
.lot-landing-footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    font-size: 10.5px;
}

/* ---------- keyframes ---------- */
@keyframes lotKenBurns {
    0%   { transform: scale(1.05) translate(0, 0); }
    50%  { transform: scale(1.15) translate(-30px, -15px); }
    100% { transform: scale(1.05) translate(0, 0); }
}

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

@keyframes lotPulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(93, 216, 107, 0.5); }
    70%      { box-shadow: 0 0 0 12px rgba(93, 216, 107, 0); }
}

@keyframes lotConeGrow {
    0%, 5%   { opacity: 0;   transform: scaleY(0) scaleX(0.4); }
    15%      { opacity: 0.7; }
    45%, 55% { opacity: 0.8; transform: scaleY(1) scaleX(1); }
    85%      { opacity: 0; }
    100%     { opacity: 0;   transform: scaleY(1) scaleX(1); }
}

@keyframes lotDropFall {
    0%   { opacity: 0;   transform: translateY(0); }
    10%  { opacity: 0.9; }
    100% { opacity: 0;   transform: translateY(260px); }
}

@keyframes lotMist {
    0%   { opacity: 0;   transform: translateY(-6px) scale(0.9); }
    40%  { opacity: 0.5; }
    100% { opacity: 0;   transform: translateY(30px) scale(1.3); }
}

/* ---------- responsive (Fix #7) ---------- */

/* > 1400px ultrawide: hero content maxes at 1400px centered */
/* Already handled by margin-right: max(...) on .lot-landing-copy
   and max-width on .lot-landing-header. */

/* 900–1400px standard desktop: text shifts to left side of the screen
   with the gradient providing contrast across the full width. */
@media (max-width: 1024px) {
    .lot-landing-copy {
        right: auto;
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
        width: calc(100% - 80px);
        max-width: 560px;
    }
    .lot-landing-headline { font-size: 48px; }
    .lot-landing-photo-overlay {
        background:
            linear-gradient(
                to right,
                rgba(10, 18, 40, 0.85) 0%,
                rgba(10, 18, 40, 0.5) 50%,
                transparent 100%
            ),
            linear-gradient(to bottom, transparent 60%, rgba(10, 18, 40, 0.6) 100%);
    }
}

/* 600–900px tablet: text center, stronger gradient, buttons may stack */
@media (max-width: 900px) {
    .lot-landing-photo-overlay {
        background: linear-gradient(
            to right,
            transparent 20%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.75) 100%
        ) !important;
    }
    .lot-landing-footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* < 720px mobile: image as bg with full overlay, text centered,
   buttons stack, footer single column, nav collapses to sign-in only */
@media (max-width: 720px) {
    .lot-landing-photo-overlay {
        background: rgba(0, 0, 0, 0.6) !important;
    }
    .lot-landing-header {
        padding: 0 20px;
        gap: 12px;
        max-width: none;
    }
    .lot-status-chip { display: none; }
    .lot-landing-nav { gap: 14px; }
    .lot-landing-nav-link:not(.lot-landing-signin) { display: none; }
    .lot-landing-copy {
        left: 20px;
        right: 20px;
        top: 90px;
        transform: none;
        width: auto;
        text-align: center;
    }
    .lot-landing-headline {
        font-size: 34px;
        text-align: center;
    }
    .lot-landing-headline br { display: none; }
    .lot-landing-subtitle {
        font-size: 14px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .lot-landing-cta-row {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .lot-cta-primary,
    .lot-cta-secondary {
        justify-content: center;
        text-align: center;
    }
    .lot-agreement-notice { text-align: center; }
    .lot-eyebrow-pill { margin-left: auto; margin-right: auto; }
    .lot-landing-footer { padding: 20px 20px 12px; }
    .lot-landing-footer-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .lot-landing-footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
    .lot-cone, .lot-drop, .lot-mist { display: none; }

    /* Allow scrolling on mobile — hero + footer exceeds 100vh */
    .lot-landing-page {
        height: auto !important;
        min-height: 100vh;
        overflow: auto !important;
    }
    .lot-landing-hero {
        min-height: 80vh;
    }
    html:has(.lot-landing-page),
    body:has(.lot-landing-page) {
        overflow: auto !important;
        max-height: none !important;
    }
}

/* < 480px small mobile: even tighter */
@media (max-width: 480px) {
    .lot-landing-headline { font-size: 28px; }
    .lot-brand-wordmark { font-size: 16px; }
    .lot-brand-logo { width: 72px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .lot-landing-photo { animation: none; transform: scale(1.05); }
    .lot-cone svg,
    .lot-drop,
    .lot-mist,
    .lot-status-dot,
    .lot-reveal { animation: none; }
    .lot-reveal { opacity: 1; transform: none; }
}
