/* ============================================================
   frontpage.css — "Corporate Learning & Akademien" styleset
   for eedu.ch (D. Holzer Consulting GmbH)

   Look: sober DACH-corporate academy aesthetic.
   Flat deep navy · one corporate blue · noble gold accent ·
   hairline rules · small-caps section labels · serif display
   headings · numbered role cards · generous whitespace.

   Scope: ONLY the frontpage (body.page-frontpage).
   Nothing here may affect chat / dashboard / admin pages.
   ============================================================ */

/* ---------- Design tokens (scoped) ---------- */
.page-frontpage {
    --fp-canvas: #f4f6f9;
    --fp-surface: #ffffff;
    --fp-band: #eaeff5;
    --fp-ink: #0e1f33;
    --fp-muted: #4e6076;
    --fp-line: #dce3ec;
    --fp-navy: #0e2338;
    --fp-navy-2: #143050;
    --fp-blue: #1e5c9c;
    --fp-blue-dark: #174a80;
    --fp-blue-soft: #e8f0f8;
    --fp-gold: #a9822b;
    --fp-gold-strong: #8f6e21;
    --fp-gold-line: #c9a24b;
    --fp-gold-soft: #f6efdf;
    --fp-shadow-sm: 0 1px 2px rgba(14, 31, 51, .04), 0 4px 14px rgba(14, 31, 51, .06);
    --fp-shadow-lg: 0 2px 6px rgba(14, 31, 51, .07), 0 16px 38px rgba(14, 31, 51, .13);
    --fp-radius: 10px;
    --fp-font-display: Georgia, "Times New Roman", serif;
    --fp-font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                    "Helvetica Neue", Arial, sans-serif;

    background: var(--fp-canvas);
    color: var(--fp-ink);
    font-family: var(--fp-font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Base template overrides (frontpage only) */
.page-frontpage .content { padding: 0; max-width: none; }

/* Anchor offset for the sticky nav */
.page-frontpage #rollen { scroll-margin-top: 76px; }

/* ---------- Nav: white, sticky, hairline ---------- */
.page-frontpage nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--fp-line);
    padding: 10px 24px;
}
.page-frontpage nav a { color: var(--fp-ink); font-weight: 600; }
.page-frontpage nav a:hover { color: var(--fp-blue); text-decoration: none; }
.page-frontpage .nav-logo { height: 38px; }
.page-frontpage .user-info { color: var(--fp-muted); font-size: .9em; }
.page-frontpage .lang-dropdown {
    background: var(--fp-surface);
    color: var(--fp-ink);
    border: 1px solid var(--fp-line);
    border-radius: 6px;
    padding: 7px 14px;
    font-size: .92em;
    min-width: 110px;
    box-shadow: var(--fp-shadow-sm);
}
.page-frontpage .lang-dropdown:focus {
    border-color: var(--fp-blue);
    box-shadow: 0 0 0 3px rgba(30, 92, 156, .18);
    outline: none;
}
.page-frontpage .lang-dropdown option { background: #fff; color: var(--fp-ink); }

/* ---------- Shared layout primitives ---------- */
.fp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fp-gold-strong);
}
.fp-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--fp-gold-line);
    flex: none;
}
.fp-eyebrow-accent { color: var(--fp-gold-strong); }

.fp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .98rem;
    letter-spacing: .01em;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease,
                background-color .18s ease, color .18s ease;
}
.fp-btn-primary {
    background: var(--fp-surface);
    color: var(--fp-navy);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.fp-btn-primary::after {
    content: "\2192"; /* → */
    font-weight: 400;
    transition: transform .18s ease;
}
.fp-btn-primary:hover {
    background: var(--fp-gold-soft);
    color: var(--fp-navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    text-decoration: none;
}
.fp-btn-primary:hover::after { transform: translateX(3px); }

/* ---------- Hero: flat navy, blueprint grid, gold edge ---------- */
.fp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--fp-navy-2) 0%, var(--fp-navy) 100%);
    color: #fff;
    padding: clamp(72px, 10vw, 118px) 24px clamp(64px, 9vw, 104px);
    text-align: center;
}
/* subtle blueprint grid, fading downward */
.fp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 72%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 72%);
    pointer-events: none;
}
/* gold hairline sealing the hero */
.fp-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent,
                rgba(201, 162, 75, .7) 18%, rgba(201, 162, 75, .7) 82%, transparent);
    pointer-events: none;
}
.fp-hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

/* nameplate: keeps the dark logo readable on navy */
.fp-hero-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-surface);
    border-radius: 12px;
    padding: 16px 26px;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 1px rgba(201, 162, 75, .35);
}
.fp-hero-logo {
    display: block;
    width: 150px;
    height: auto;
}
.fp-hero-title {
    font-family: var(--fp-font-display);
    font-size: clamp(2.05rem, 4.6vw, 3.15rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 22px;
}
.fp-hero-lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, .74);
    max-width: 680px;
    margin: 0 auto 36px;
}
.fp-hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.fp-section { padding: clamp(60px, 8vw, 92px) 24px; }
.fp-section-tinted {
    background: var(--fp-band);
    border-top: 1px solid var(--fp-line);
    border-bottom: 1px solid var(--fp-line);
}
.fp-section-head {
    max-width: 720px;
    margin: 0 auto 46px;
    text-align: center;
}
.fp-section-title {
    font-family: var(--fp-font-display);
    font-size: clamp(1.5rem, 2.8vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -.008em;
    color: var(--fp-ink);
    margin: 14px 0 12px;
}
.fp-section-sub {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fp-muted);
    max-width: 660px;
    margin: 0 auto;
}

/* ---------- Card grids ---------- */
.fp-grid { max-width: 1120px; margin: 0 auto; gap: 20px; }
.fp-grid-3  { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fp-grid-5  { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }

.fp-card {
    position: relative;
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    padding: 26px 24px 24px;
    box-shadow: var(--fp-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* gold rule drawn on hover */
.fp-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 2px;
    border-radius: var(--fp-radius) var(--fp-radius) 0 0;
    background: var(--fp-gold-line);
    opacity: 0;
    transition: opacity .2s ease;
}
.fp-card:hover {
    transform: translateY(-3px);
    border-color: #c3cfdd;
    box-shadow: var(--fp-shadow-lg);
}
.fp-card:hover::before { opacity: 1; }

/* language-neutral index label (01 … 05) */
.fp-card-num {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--fp-gold);
    font-variant-numeric: tabular-nums;
}

.fp-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fp-ink);
    margin: 16px 0 9px;
}
.fp-card p {
    font-size: .92rem;
    line-height: 1.65;
    color: var(--fp-muted);
    margin: 0;
}

/* Architecture cards: gold-accented, always-on */
.fp-card-accent { border-top: 2px solid var(--fp-gold-line); }
.fp-card-accent::before { display: none; }
.fp-card-accent .fp-icon {
    background: var(--fp-gold-soft);
    color: var(--fp-gold-strong);
}

.fp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--fp-blue-soft);
    color: var(--fp-blue);
    flex: none;
}
.fp-icon svg { width: 23px; height: 23px; }

/* ---------- Footer: dark corporate, gold edge ---------- */
.fp-footer {
    background: #0b1b2d;
    border-top: 2px solid rgba(201, 162, 75, .55);
    color: rgba(255, 255, 255, .62);
    text-align: center;
    padding: 56px 24px 48px;
}
.fp-footer-logo {
    width: 104px;
    height: auto;
    background: var(--fp-surface);
    border-radius: 8px;
    padding: 9px 14px;
    margin: 0 auto 20px;
}
.fp-footer p {
    margin: 0;
    font-size: .85rem;
    line-height: 1.7;
    letter-spacing: .02em;
}

/* ---------- Accessibility ---------- */
.page-frontpage :focus-visible {
    outline: 3px solid rgba(30, 92, 156, .45);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .page-frontpage nav { padding: 10px 14px; }
    .page-frontpage .nav-logo { height: 34px; }
    .page-frontpage .nav-right { flex-wrap: wrap; }
    .fp-grid { gap: 14px; }
    .fp-card { padding: 20px 18px; }
    .fp-hero-emblem { padding: 12px 20px; }
    .fp-hero-logo { width: 126px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .page-frontpage *,
    .page-frontpage *::before,
    .page-frontpage *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Smooth anchor scroll for in-page CTA */
@media (prefers-reduced-motion: no-preference) {
    .page-frontpage { scroll-behavior: smooth; }
}
