/* =========================================================================
   Home.razor.css – Scoped styles for the LocomeoSoft homepage
   Inspired by the LocomeoSoft brand sample. Header & layout elsewhere
   stay untouched – these styles only affect the home page content.
   ========================================================================= */

/* ---------- Local design tokens (scoped to the home page) ---------- */
.home {
    --h-orange:    #FF8C2A;
    --h-orange-d:  #E07A1A;
    --h-orange-bright: #FFB366;
    --h-mint:      #4ADFAF;
    --h-bg-dark:   #0B0D10;
    --h-bg-card:   #12141A;
    --h-text:      #E8E6E1;
    --h-text-sub:  #9AA0A8;
    --h-font:      'DM Sans', "Inter", system-ui, sans-serif;
    --h-mono:      'JetBrains Mono', ui-monospace, Consolas, monospace;

    background: var(--h-bg-dark);
    color: var(--h-text);
    font-family: var(--h-font);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Sichtbare, aber feine Trennlinie direkt unter dem schwarzen Header.
   Akzent in Brand-Orange / Mint, Mitte transparent → spürbarer Kontrast,
   ohne dick und auftragend zu wirken. */
.home-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 140, 42, 0.55) 20%,
        rgba(74, 223, 175, 0.55) 50%,
        rgba(255, 140, 42, 0.55) 80%,
        transparent 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 5rem;
    text-align: center;
}

.home-hero__inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.home-tagline {
    font-family: var(--h-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--h-orange);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.home-hero__title {
    font-family: var(--h-font);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 200;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--h-text);
    margin: 0;
}

.home-hero__title strong {
    font-weight: 700;
    background: linear-gradient(135deg, var(--h-orange), var(--h-orange-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero__sub {
    max-width: 640px;
    margin: 2rem auto 0;
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--h-text-sub);
}

.home-hero__logo {
    display: inline-block;
    height: 2.0rem;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 0.3rem;
    margin-bottom: 0.4rem;
}

.home-hero__cta {
    margin-top: 3rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Beide CTA-Buttons sollen gleich breit sein – auch responsiv.
   min-width sorgt für identische Breite auf Desktop, der Inhalt
   bleibt zentriert. Auf schmalen Viewports skaliert max-width. */
.home-hero__cta .home-btn {
    min-width: 260px;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .home-hero__cta .home-btn {
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }
}

/* ---------- Hero Screenshot ---------- */
.home-hero__screenshot {
    margin-top: 4.5rem;
    margin-bottom: 6rem;
    text-align: center;
}

.home-hero__screenshot img,
.home-hero__screenshot video {
    max-width: 100%;
    width: 720px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

/* ---------- Hero-Teaser (Bild -> Video on click -> Bild) ---------- */
.home-hero__teaser {
    position: relative;
    display: inline-block;
    width: 720px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    background: #000;
}

    .home-hero__teaser img,
    .home-hero__teaser video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
        display: block;
    }

    .home-hero__teaser .home-hero__teaser-poster {
        pointer-events: none; /* Klick geht durch zum Play-Button */
        z-index: 1;
        object-fit: cover; /* fuellt den 16:9-Rahmen aus */
    }

    .home-hero__teaser .home-hero__teaser-video {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        background: #000;
        z-index: 1;
        object-fit: contain; /* 16:9-Video komplett sichtbar, kein Beschnitt */
    }

    .home-hero__teaser.is-playing .home-hero__teaser-poster,
    .home-hero__teaser.is-playing .home-hero__teaser-play {
        opacity: 0;
        pointer-events: none;
    }

    .home-hero__teaser.is-playing .home-hero__teaser-video {
        opacity: 1;
        pointer-events: auto;
        z-index: 3;
    }

.home-hero__teaser-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.25s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2;
}

    .home-hero__teaser-play:hover,
    .home-hero__teaser-play:focus-visible {
        transform: scale(1.08);
        background: rgba(0, 0, 0, 0.65);
        outline: none;
    }

    .home-hero__teaser-play .bi {
        margin-left: 4px; /* optische Mitte des Play-Dreiecks */
    }

/* ---------- Buttons ---------- */
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-family: var(--h-font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.home-btn--primary {
    background: var(--h-orange);
    color: #0B0D10;
}

.home-btn--primary:hover {
    background: #FFA040;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 140, 42, 0.25);
    color: #0B0D10;
    text-decoration: none;
}

/* Outline-Variante: gleicher Look wie Primary, aber nur orangener Rahmen */
.home-btn--outline {
    background: transparent;
    color: var(--h-orange);
    border: 1.5px solid var(--h-orange);
}

.home-btn--outline:hover {
    background: rgba(255, 140, 42, 0.08);
    color: var(--h-orange-bright);
    border-color: var(--h-orange-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 140, 42, 0.18);
    text-decoration: none;
}

/* ---------- Quick-Nav Pills (oben auf der Home-Page) ----------
   Konsistent mit FAQ- und SynQai-Pills: kompakt, horizontal, mit Pfeil und Lift-Hover. */
.home-pills-nav {
    padding: 1.25rem 1.5rem 0;
}

.home-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    max-width: 1080px;
    margin: 0 auto;
}

.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--h-bg-card);
    color: var(--h-text-sub);
    font-family: var(--h-font);
    font-size: 0.72rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.home-pill:hover {
    color: var(--h-text);
    border-color: rgba(255, 140, 42, 0.6);
    transform: translateY(-1px);
    text-decoration: none;
}

.home-pill__icon {
    font-size: 0.78rem;
    line-height: 1;
}

.home-pill__label {
    line-height: 1;
}

.home-pill__arrow {
    font-size: 0.7rem;
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.home-pill:hover .home-pill__arrow {
    transform: translateY(2px);
    opacity: 1;
    color: var(--h-orange);
}

/* ---------- Section frame ---------- */
.home-section {
    padding: 6rem 2rem;
    /* Anker-Sprünge nicht hinter dem Sticky-Header verschwinden lassen */
    scroll-margin-top: 5rem;
}

.home {
    /* sanfter Scroll bei Anker-Klicks (nur innerhalb der Home-Page-Scope) */
    scroll-behavior: smooth;
}

.home-container {
    max-width: 1080px;
    margin: 0 auto;
}

.home-section__label {
    font-family: var(--h-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--h-orange);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.home-section__title {
    font-family: var(--h-font);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 200;
    letter-spacing: -0.3px;
    line-height: 1.3;
    color: var(--h-text);
    margin: 0 0 1.5rem;
}

.home-section__title strong {
    font-weight: 700;
    color: var(--h-orange);
}

.home-lead {
    max-width: 720px;
    color: var(--h-text-sub);
    font-size: 1.05rem;
    margin: 0 0 1rem;
}

/* ---------- Manifesto ---------- */
.home-manifesto {
    background: var(--h-bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-manifesto__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.home-manifesto__text p {
    margin-bottom: 1.5rem;
    color: var(--h-text-sub);
    font-size: 1.05rem;
}

.home-manifesto__text p em {
    color: var(--h-text);
    font-style: normal;
    font-weight: 500;
}

.home-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.home-stat {
    padding: 1.8rem;
    background: #1a1d24;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.home-stat__num {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--h-orange);
    letter-spacing: -1px;
    line-height: 1;
}

.home-stat__unit {
    font-size: 0.85rem;
    color: var(--h-mint);
    font-weight: 600;
    margin-top: 0.2rem;
}

.home-stat__desc {
    font-size: 0.82rem;
    color: var(--h-text-sub);
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* ---------- Philosophy ---------- */
.home-philosophy {
    background: var(--h-bg-dark);
}

.home-phil__blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.home-phil {
    padding: 2.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 140, 42, 0.6);
    background: var(--h-bg-dark);
    transition: border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-phil::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--h-orange), var(--h-mint), var(--h-orange));
}

.home-phil:hover {
    border-color: rgba(255, 140, 42, 0.4);
}

.home-phil__icon {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 140, 42, 0.08);
    color: var(--h-orange);
    font-family: var(--h-mono);
    font-weight: 700;
}

.home-phil h3 {
    font-family: var(--h-font);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.7rem;
    color: var(--h-text);
    letter-spacing: -.005em;
}

.home-phil p {
    font-size: 0.92rem;
    color: var(--h-text-sub);
    line-height: 1.7;
    margin: 0;
}

/* ---------- Origin ---------- */
.home-origin {
    background: var(--h-bg-card);
}

.home-origin__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.home-origin__story p {
    margin-bottom: 1.5rem;
    color: var(--h-text-sub);
    font-size: 1.02rem;
}

.home-origin__story p strong {
    color: var(--h-text);
    font-weight: 600;
}

.home-origin__aside {
    padding: 2.5rem;
    background: var(--h-bg-card);
    border-radius: 14px;
    border-left: 3px solid var(--h-orange);
}

.home-origin__aside blockquote {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--h-text);
    font-style: italic;
    margin: 0 0 1rem;
}

.home-origin__aside cite {
    display: block;
    font-size: 0.85rem;
    color: var(--h-text-sub);
    font-style: normal;
    font-weight: 500;
}

/* ---------- Product Teaser ---------- */
.home-teaser-wrap {
    background: var(--h-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.home-teaser__logo {
    display: inline-block;
    height: 4rem;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 3rem;
    margin-bottom: 0.8rem;
}

.home-teaser {
    margin-top: 3rem;
    padding: 3.5rem;
    background: var(--h-bg-dark);
    border-radius: 16px;
    border: 1px solid rgba(255, 140, 42, 0.6);
    position: relative;
    overflow: hidden;
}

.home-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--h-orange), var(--h-mint), var(--h-orange));
}

.home-teaser__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--h-mono);
    font-size: 0.72rem;
    color: var(--h-mint);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.home-teaser__badge::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--h-mint);
    box-shadow: 0 0 12px var(--h-mint);
}

.home-teaser__title {
    font-family: var(--h-font);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 200;
    letter-spacing: -0.5px;
    line-height: 1.3;
    color: var(--h-text);
    margin: 0 0 1.2rem;
}

.home-teaser__title strong {
    font-weight: 700;
    color: var(--h-orange);
}

.home-teaser__sub {
    color: var(--h-text-sub);
    max-width: 680px;
    margin: 0 0 1rem;
}

.home-teaser__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.home-feat {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.home-feat__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 140, 42, 0.1);
    color: var(--h-orange);
    font-family: var(--h-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.home-feat__icon--mint {
    background: rgba(74, 223, 175, 0.1);
    color: var(--h-mint);
}

.home-feat h4 {
    font-family: var(--h-font);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--h-text);
    margin: 0 0 0.25rem;
}

.home-feat p {
    font-size: 0.82rem;
    color: var(--h-text-sub);
    line-height: 1.6;
    margin: 0;
}

.home-teaser__cta {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.home-teaser__cta-note {
    font-size: 0.85rem;
    color: var(--h-text-sub);
}

/* ---------- Trust ---------- */
.home-trust {
    background: var(--h-bg-card);
    text-align: center;
}

.home-trust .home-section__title,
.home-trust .home-section__label {
    text-align: center;
}

.home-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.home-trust__item {
    padding: 2rem 1.5rem;
    background: #1a1d24;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: left;
}

.home-trust__item h4 {
    font-family: var(--h-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--h-text);
    margin: 0 0 0.5rem;
}

.home-trust__item p {
    font-size: 0.85rem;
    color: var(--h-text-sub);
    line-height: 1.6;
    margin: 0;
}

/* ---------- DE Heart in Nationalfarben ---------- */
.home-heart-de {
    display: inline-block;
    width: 1.6em;
    height: 1.6em;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.3rem;
    margin-left: -0.3rem;
    margin-bottom: 0.3rem
}

/* ---------- Responsive (Stufe 2 / Stufe 3) ---------- */
@media (max-width: 1024px) {
    .home-phil__blocks { grid-template-columns: repeat(2, 1fr); }
    .home-trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .home-section { padding: 4.5rem 1.5rem; }
    .home-hero { padding: 4.5rem 1.5rem 4rem; }
    .home-manifesto__grid,
    .home-origin__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .home-stats { grid-template-columns: 1fr 1fr; }
    .home-teaser { padding: 2.2rem 1.5rem; }
}

@media (max-width: 560px) {
    .home-phil__blocks { grid-template-columns: 1fr; }
    .home-trust__grid { grid-template-columns: 1fr; }
    .home-stats { grid-template-columns: 1fr; }
    .home-teaser__features { grid-template-columns: 1fr; }
    .home-section__title br { display: none; }
}
