/* ==========================================================================
   ARL Beratung — Homeoffice-Landing (assets/css/pages/homeoffice.css)
   --------------------------------------------------------------------------
   Conversion-Landingpage für den Homeoffice-Job (stellen_id 893432).
   Nur seitenspezifische Ergänzungen zum Design-System (style.css).
   Farben ausschließlich über bestehende Tokens, Effekte nur transform/opacity.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero: dunkel, Fakten-Chips + Foto-Komposition mit Gehalt-/Remote-Badges
   -------------------------------------------------------------------------- */
.ho-hero {
    overflow: hidden;
}
.ho-hero .container { position: relative; z-index: 1; }

/* Hero-Einstieg: CSS-only statt JS-Reveal (LCP!). Läuft sofort beim ersten
   Paint, hängt nicht an den defer-geladenen CDN-Skripten (Lenis/GSAP).
   Copy: gestaffeltes Rise-in. Media: NUR transform (Opacity bleibt 1),
   damit das LCP-Bild ab dem ersten Frame gemalt wird. */
@media (prefers-reduced-motion: no-preference) {
    .ho-hero .hero-copy > * {
        animation: hoHeroRise 0.7s var(--ease-out) both;
    }
    .ho-hero .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
    .ho-hero .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
    .ho-hero .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
    .ho-hero .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
    .ho-hero .hero-copy > *:nth-child(6) { animation-delay: 0.4s; }
    .ho-hero__media {
        animation: hoHeroMedia 0.9s var(--ease-out) 0.2s both;
    }
}
@keyframes hoHeroRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes hoHeroMedia {
    from { transform: translateX(-36px); }
    to   { transform: none; }
}

.ho-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
}

.ho-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.7rem 0 2rem;
}
.ho-facts span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ho-facts i { color: var(--brand-accent); }

.ho-hero__note {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.62);
    margin: 1.1rem 0 0;
}
.ho-hero__note i { color: var(--brand-accent); margin-right: 0.4rem; }

.ho-hero__media {
    position: relative;
    padding-bottom: 2.4rem;
}
.ho-hero__media .img-frame {
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.ho-hero__chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.05rem;
    background: rgba(9, 17, 35, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: var(--shadow-md);
    color: #fff;
    white-space: nowrap;
}
.ho-hero__chip i { color: var(--brand-accent); font-size: 1.3rem; }
.ho-hero__chip strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.12;
}
.ho-hero__chip small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.2rem;
}
.ho-hero__chip--remote { top: 1.1rem; left: -0.7rem; }
.ho-hero__chip--salary { bottom: 0; right: 0.4rem; }

@media (max-width: 991.98px) {
    .ho-hero__media { margin-top: 1.2rem; }
}
@media (max-width: 767.98px) {
    /* Kompaktere Vertikal-Rhythmik: Primär-CTA bleibt above the fold */
    .ho-hero { padding-top: calc(var(--nav-height) + 1.6rem); }
    .ho-hero__eyebrow { margin-bottom: 1rem; }
    .ho-facts { margin: 1.2rem 0 1.5rem; gap: 0.5rem; }
    .ho-facts span { padding: 0.38rem 0.85rem; font-size: 0.82rem; }
}
@media (max-width: 575.98px) {
    .ho-hero__chip { padding: 0.6rem 0.8rem; }
    .ho-hero__chip strong { font-size: 0.95rem; }
    .ho-hero__chip--remote { left: -0.35rem; top: 0.75rem; }
    .ho-hero__chip--salary { right: -0.35rem; }
}

/* --------------------------------------------------------------------------
   Trust-Hairline direkt unter dem Hero
   -------------------------------------------------------------------------- */
.ho-truststrip {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   „In 3 Schritten beworben“ — nummerierte Karten
   -------------------------------------------------------------------------- */
.ho-step {
    position: relative;
    height: 100%;
    padding: 2rem 1.8rem 1.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
}
.ho-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 91, 255, 0.22);
}
.ho-step__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: block;
    margin-bottom: 1rem;
}
.ho-step h3 { font-size: 1.16rem; margin-bottom: 0.5rem; }
.ho-step p { font-size: 0.95rem; margin: 0; }
.ho-step__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-top: 1.1rem;
}

/* --------------------------------------------------------------------------
   Stellenbeschreibung (HTML aus der Datenbank) + Sticky-Sidebar
   -------------------------------------------------------------------------- */
.ho-desc-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.6rem, 3.5vw, 2.6rem);
}

.ho-desc h2 { font-size: 1.45rem; margin: 1.9rem 0 0.85rem; }
.ho-desc h2:first-child { margin-top: 0; }
.ho-desc h3 { font-size: 1.18rem; margin: 1.5rem 0 0.65rem; }
.ho-desc p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.ho-desc ul { padding-left: 0; margin: 0 0 1.3rem; }
.ho-desc ul li {
    list-style: none;
    position: relative;
    padding-left: 1.95rem;
    margin-bottom: 0.55rem;
    color: var(--ink-soft);
}
.ho-desc ul li::before {
    content: "\f26e"; /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0.05em;
    color: var(--brand-primary);
    font-size: 1.02rem;
}
.ho-desc ul ul { margin-top: 0.55rem; }

.ho-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.ho-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.ho-summary__head {
    background: var(--gradient-deep);
    color: #fff;
    padding: 1.35rem 1.6rem 1.25rem;
}
.ho-summary__head small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 0.35rem;
}
.ho-summary__head strong {
    font-family: var(--font-display);
    font-size: 1.08rem;
    line-height: 1.3;
}
.ho-summary__list {
    list-style: none;
    margin: 0;
    padding: 0.4rem 1.6rem;
}
.ho-summary__list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
.ho-summary__list li:last-child { border-bottom: 0; }
.ho-summary__list .k {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-mute);
    flex: none;
}
.ho-summary__list .k i { color: var(--brand-primary); }
.ho-summary__list .v {
    font-weight: 700;
    color: var(--ink);
    text-align: right;
}
.ho-summary__cta { padding: 1.15rem 1.6rem 1.5rem; }
.ho-summary__hint {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-mute);
    margin-top: 0.7rem;
}
.ho-summary__hint i { color: var(--brand-primary); margin-right: 0.3rem; }

/* --------------------------------------------------------------------------
   Benefits (dunkle Sektion)
   -------------------------------------------------------------------------- */
.ho-benefit {
    height: 100%;
    padding: 1.7rem 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    transition: transform 0.5s var(--ease-out),
                border-color 0.5s var(--ease-out),
                background 0.5s var(--ease-out);
}
.ho-benefit:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 196, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
}
.ho-benefit i { font-size: 1.55rem; color: var(--brand-accent); }
.ho-benefit h3 { font-size: 1.08rem; color: #fff; margin: 0.9rem 0 0.45rem; }
.ho-benefit p { font-size: 0.92rem; margin: 0; }

/* --------------------------------------------------------------------------
   Profil-Sektion: Bild-Komposition + Mitarbeiterstimme
   -------------------------------------------------------------------------- */
.ho-profile__media { position: relative; }
.ho-profile__media .img-frame { aspect-ratio: 4 / 3; }
.ho-profile__badge {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(9, 17, 35, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.ho-profile__badge i { color: var(--brand-accent); font-size: 1.2rem; }
.ho-profile__badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.15;
}
.ho-profile__badge small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Bewerbungssektion: Formular + Trust
   -------------------------------------------------------------------------- */
.ho-apply__frist {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(31, 91, 255, 0.1);
    color: var(--brand-primary);
    border: 1px solid rgba(31, 91, 255, 0.16);
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.95rem;
    font-weight: 600;
    font-size: 0.84rem;
}

.ho-secure {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.8rem;
    margin-top: 1.15rem;
    padding-top: 1.05rem;
    border-top: 1px solid var(--line);
}
.ho-secure span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.ho-secure i { color: var(--brand-primary); font-size: 0.95rem; }

.ho-contact-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    padding: 1rem 1.2rem;
}
.ho-contact-mini .icon-circle {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(140deg, rgba(31, 91, 255, 0.12), rgba(0, 196, 255, 0.12));
    border: 1px solid rgba(31, 91, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 1.15rem;
}
.ho-contact-mini strong { display: block; font-size: 0.95rem; color: var(--ink); }
.ho-contact-mini small { color: var(--ink-mute); }

/* --------------------------------------------------------------------------
   Sticky Apply-Bar (nur Mobile/Tablet, erscheint nach dem Hero)
   -------------------------------------------------------------------------- */
.apply-bar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.75rem 0.85rem 0.75rem 1.1rem;
    background: rgba(9, 17, 35, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(120%);
    transition: transform 0.45s var(--ease-out),
                opacity 0.45s var(--ease-out),
                visibility 0.45s;
}
.apply-bar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.apply-bar strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.2;
}
.apply-bar small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 0.15rem;
}
.apply-bar .btn { flex: none; white-space: nowrap; }

/* Reduced Motion / no-anim: Bar ohne Einflug-Effekt nutzbar */
html.no-anim .apply-bar { transition: none; }

/* ==========================================================================
   Conversion-Feinschliff (additiv)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero: Micro-Assurances direkt am Primär-CTA (statt einzelner Notiz)
   -------------------------------------------------------------------------- */
.ho-hero__assure {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
    margin: 1.15rem 0 0;
    padding: 0;
}
.ho-hero__assure li {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.62);
}
.ho-hero__assure i { color: var(--brand-accent); margin-right: 0.45rem; }

/* Ehrlicher Frist-Countdown (aus DB-Datum berechnet, rein darstellend) */
.ho-facts__urgency {
    font-style: normal;
    font-weight: 700;
    color: var(--brand-accent);
    margin-left: 0.4rem;
}
.ho-apply__frist em {
    font-style: normal;
    font-weight: 800;
    margin-left: 0.55rem;
    padding-left: 0.6rem;
    border-left: 1px solid rgba(31, 91, 255, 0.28);
}

/* --------------------------------------------------------------------------
   3-Schritte: dezenter Pfeil-Connector zwischen den Karten (Desktop)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .ho-steps > [class*="col-"]:not(:last-child) .ho-step::after {
        content: "\f138"; /* bi-arrow-right */
        font-family: 'bootstrap-icons';
        position: absolute;
        top: 50%;
        right: -1.7rem;
        transform: translateY(-50%);
        width: 1.9rem;
        height: 1.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--surface);
        border: 1px solid var(--line-strong);
        border-radius: 50%;
        color: var(--brand-primary);
        font-size: 0.85rem;
        box-shadow: var(--shadow-xs);
        z-index: 2;
    }
}

/* --------------------------------------------------------------------------
   Arbeitgeber-Panel: Prometheus Consulting GmbH + Kennzahlen (Anti-Skepsis-Baustein)
   -------------------------------------------------------------------------- */
.ho-employer .section-kicker { color: var(--brand-accent); }
.ho-employer .section-title {
    font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.15rem);
    margin-bottom: 0.9rem;
}
.ho-employer .link-arrow { color: #fff; }
.ho-employer .link-arrow:hover { color: var(--brand-accent); }

.ho-employer__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.8rem;
    margin: 1.35rem 0 1.5rem;
    padding: 0;
}
.ho-employer__facts li {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.ho-employer__facts i { color: var(--brand-accent); font-size: 0.95rem; }

.ho-employer__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}
.ho-employer__stats .stat-box:first-child { grid-column: 1 / -1; }
.ho-employer .stat-count {
    display: block;
    font-weight: 800;
    font-size: clamp(2rem, 1.6rem + 1.3vw, 2.7rem);
    line-height: 1.05;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.ho-employer .stat-label {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------------------------
   Mobile-Feinschliff
   -------------------------------------------------------------------------- */
/* iOS Safari: kein Auto-Zoom beim Fokussieren (Font >= 16px im Formular) */
@media (max-width: 991.98px) {
    #bewerbung .form-control,
    #bewerbung .form-select { font-size: 1rem; }
}

/* Hero-CTAs volle Breite = großzügige Tap-Targets auf kleinen Screens */
@media (max-width: 575.98px) {
    .ho-hero .hero-copy .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Sticky Apply-Bar respektiert die iOS-Home-Indicator-Zone */
@supports (bottom: env(safe-area-inset-bottom)) {
    .apply-bar { bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); }
}
