/* Genidom public landing page — light, airy, dark text on light surfaces. */

:root {
    --ls-bg: #f7f9fc;
    --ls-surface: #ffffff;
    --ls-ink: #0f172a;
    --ls-ink-soft: #475569;
    --ls-accent: #2563eb;
    --ls-accent-2: #0ea5e9;
    --ls-border: rgba(15, 23, 42, 0.08);
    --ls-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body.landing {
    margin: 0;
    font-family: var(--ds-font-sans);
    color: var(--ls-ink);
    background: var(--ls-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---- Top bar ---- */
.landing-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem clamp(1rem, 4vw, 3rem);
    backdrop-filter: saturate(160%) blur(8px);
    background: rgba(247, 249, 252, 0.72);
    border-bottom: 1px solid var(--ls-border);
}

.landing-brand {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--ls-accent);
}
.landing-brand-logo { display: block; height: 40px; width: auto; }
.landing-hero-logo {
    display: block;
    height: clamp(96px, 15vw, 150px);
    width: auto;
    margin: 0 auto 1.5rem;
}

.landing-topnav { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.4rem); }
.landing-topnav > a { color: var(--ls-ink-soft); font-weight: 500; }
.landing-topnav > a:hover { color: var(--ls-ink); }

.landing-langswitch { display: inline-flex; gap: 0.4rem; color: var(--ls-ink-soft); font-size: 0.9rem; }
.landing-langswitch a.active { color: var(--ls-accent); font-weight: 700; }

/* ---- Buttons ---- */
.landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.landing-btn:hover { transform: translateY(-1px); }
.landing-btn-primary { background: var(--ls-accent); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32); }
.landing-btn-primary:hover { background: #1d4ed8; }
.landing-btn-outline { border-color: var(--ls-border); color: var(--ls-ink); background: var(--ls-surface); }
.landing-btn-ghost { color: var(--ls-ink); }
.landing-btn-ghost:hover { color: var(--ls-accent); }
.landing-btn-lg { padding: 0.8rem 1.6rem; font-size: 1.05rem; }

/* ---- Hero ---- */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 70% -10%, rgba(14, 165, 233, 0.12), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(37, 99, 235, 0.10), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
}

#landing-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.landing-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 6rem 1.25rem 2rem;
}

.landing-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ls-accent);
    margin: 0 0 0.75rem;
}

.landing-hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--ls-ink);
}

.landing-hero-subline {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: var(--ls-ink-soft);
    margin: 0 auto 2rem;
    max-width: 640px;
}

.landing-hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.landing-scroll-hint {
    position: absolute;
    bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    z-index: 2; color: var(--ls-ink-soft); font-size: 1.4rem;
    animation: ls-bounce 2s infinite;
}
@keyframes ls-bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---- Features ---- */
.landing-features { max-width: 1180px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem); }

.landing-section-head { text-align: center; max-width: 680px; margin: 0 auto 2.75rem; }
.landing-section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.landing-section-head p { color: var(--ls-ink-soft); font-size: 1.1rem; margin: 0; }

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.landing-card {
    background: var(--ls-surface);
    border: 1px solid var(--ls-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--ls-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.landing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12); }

.landing-card-icon {
    width: 3rem; height: 3rem;
    display: grid; place-items: center;
    border-radius: 0.85rem;
    font-size: 1.4rem;
    color: var(--ls-accent);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.12));
    margin-bottom: 1rem;
}
.landing-card h3 { font-size: 1.15rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
.landing-card p { color: var(--ls-ink-soft); margin: 0; font-size: 0.97rem; }

/* Scroll reveal */
.landing-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.landing-reveal.is-visible { opacity: 1; transform: none; }

/* ---- CTA band ---- */
.landing-cta {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) 1.25rem;
}
.landing-cta h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.landing-cta p { color: var(--ls-ink-soft); font-size: 1.1rem; margin: 0 0 1.5rem; }

/* ---- Footer ---- */
.landing-footer {
    border-top: 1px solid var(--ls-border);
    padding: 1.5rem clamp(1rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ls-ink-soft);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ---- Legal pages ---- */
.landing-legal {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(6rem, 12vw, 8rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 4.5rem);
}

.landing-legal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin: 0 0 0.6rem;
}

.landing-legal-lead { color: var(--ls-ink-soft); font-size: 1.1rem; margin: 0 0 1.75rem; }

.landing-legal-card {
    background: var(--ls-surface);
    border: 1px solid var(--ls-border);
    border-radius: 1rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--ls-shadow);
}

/* Rich text from the CMS editor — the tags LegalPageHtmlSanitizer keeps. The
   admin editor loads this stylesheet and puts this class on its content, so
   these rules ARE the editor's look too: everything is styled from plain
   elements, never from classes the admin would have to know. */
.landing-legal-content {
    font-family: var(--ds-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ls-ink-soft);
}
.landing-legal-content :is(h2, h3, h4, h5, h6) {
    color: var(--ls-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 1.75rem 0 0.6rem;
}
.landing-legal-content h2 { font-size: 1.05rem; }
.landing-legal-content h3 { font-size: 1rem; }
.landing-legal-content :is(h4, h5, h6) { font-size: 0.95rem; }
.landing-legal-content :is(p, ul, ol, table, blockquote) { margin: 0 0 0.85rem; }
.landing-legal-content > :first-child,
.landing-legal-content hr + * { margin-top: 0; }
.landing-legal-content > :last-child { margin-bottom: 0; }
/* The grey line between sections. */
.landing-legal-content hr { border: 0; border-top: 1px solid var(--ls-border); margin: 1.75rem 0; }
/* The global `a { color: inherit; text-decoration: none }` would hide the
   contact links — an imprint must show them as reachable. */
.landing-legal-content a { color: var(--ls-accent); text-decoration: underline; text-underline-offset: 0.15em; }
/* A two-column table is a label/value list (contact, register): no grid lines,
   label column in bold. */
.landing-legal-content table { border-collapse: collapse; width: auto; }
.landing-legal-content :is(th, td) { border: 0; padding: 0.15rem 1.25rem 0.15rem 0; text-align: left; vertical-align: top; }
.landing-legal-content :is(th, td):first-child { min-width: 9rem; color: var(--ls-ink); font-weight: 600; }

@media (max-width: 480px) {
    .landing-legal-content :is(tr, th, td) { display: block; }
    .landing-legal-content td + td { padding-bottom: 0.6rem; }
}

/* Acceptance gate: one checkbox per page, the label wraps beside the box. */
.landing-legal-check { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ls-ink); font-weight: 500; cursor: pointer; }
.landing-legal-check input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; flex: none; }
.landing-legal-error { color: #b91c1c; font-weight: 600; }
.landing-topnav form { margin: 0; }
.landing-topnav button.landing-btn { font: inherit; cursor: pointer; background: none; }

/* The document dialog on the acceptance page. */
.landing-legal-link { padding: 0; border: 0; background: none; font: inherit; color: var(--ls-accent); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.landing-legal-dialog {
    width: min(760px, calc(100vw - 2rem));
    max-height: calc(100vh - 4rem);
    padding: 0;
    border: 1px solid var(--ls-border);
    border-radius: 1rem;
    box-shadow: var(--ls-shadow);
    background: var(--ls-surface);
}
.landing-legal-dialog[open] { display: flex; flex-direction: column; }
.landing-legal-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.landing-legal-dialog-head,
.landing-legal-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; }
.landing-legal-dialog-head { border-bottom: 1px solid var(--ls-border); }
.landing-legal-dialog-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.landing-legal-dialog-foot { border-top: 1px solid var(--ls-border); justify-content: flex-end; }
.landing-legal-dialog-body { overflow-y: auto; padding: 1.25rem 1.5rem; }
.landing-legal-dialog-x { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--ls-ink-soft); cursor: pointer; }

.landing-legal-draft {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---- Footer links ---- */
.landing-footer-links { display: inline-flex; gap: 1rem; }
/* Underlined at rest, not only on hover: touch devices have no hover state, and
   the imprint link has to stay recognizable as a link. */
.landing-footer-links a { text-decoration: underline; text-underline-offset: 0.15em; }
.landing-footer-links a:hover { color: var(--ls-accent); }

@media (prefers-reduced-motion: reduce) {
    .landing-scroll-hint { animation: none; }
    .landing-reveal { transition: none; opacity: 1; transform: none; }
    .landing-btn:hover, .landing-card:hover { transform: none; }
}
