/* ==========================================================================
   Landing ([landing]-Shortcode) — blaues Konstellations-Netz + dezentes Gold.
   Alles unter .jsl gekapselt, damit nichts mit dem Theme (Bjork) kollidiert.
   ========================================================================== */

/* Full-Canvas-Vorlage: Theme-Reste neutralisieren, kein Rand, kein H-Scroll. */
body.tweaks-full-canvas {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Läuft die Landing über ein Block-Theme-Template (z.B. TT5 "Blank"),
   gibt das Theme dem obersten Element ein margin-block-start (~1.2rem).
   Nur auf der Landing entfernen, damit sie bündig oben startet. */
.wp-site-blocks > *:has( .jsl ) {
    margin-block-start: 0 !important;
}

/* Box-Modell vereinheitlichen: Padding zählt zur Breite → kein Overflow/Abschneiden */
.jsl, .jsl *, .jsl-page, .jsl-page * {
    box-sizing: border-box;
}

.jsl {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc( 50% - 50vw );   /* full-bleed aus dem Theme-Container */
    margin-right: calc( 50% - 50vw );
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef2f8;                /* helles, leicht kühles Off-White */
    color: #1b2433;
}

.jsl-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.jsl-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 56rem;
}

.jsl-eyebrow {
    margin: 0 0 1.1rem;
    font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7c8597;
}

.jsl-name {
    margin: 0;
    font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: clamp( 2.4rem, 7vw, 5.5rem );
    line-height: 0.95;
    color: #1a335f;   /* dunkles Navy statt Tiefschwarz */
}

/* Kleinere Überschrift für Unterseiten (Contact, Playground …) */
.jsl-heading {
    margin: 0;
    font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: clamp( 2rem, 5vw, 3.5rem );
    line-height: 1;
    color: #1a335f;   /* dunkles Navy statt Tiefschwarz */
}

.jsl-tagline {
    margin: 1.3rem 0 0;
    font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;
    font-size: clamp( 0.95rem, 2.2vw, 1.25rem );
    color: #2563c9;                    /* Blau = Struktur */
}
.jsl-tagline::before { content: "> "; opacity: 0.6; }

.jsl-summary {
    margin: 1.5rem auto 0;
    max-width: 50ch;
    font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
    font-size: clamp( 0.95rem, 1.8vw, 1.1rem );
    line-height: 1.65;
    color: #1b2433;
    opacity: 0.82;
}

.jsl-links {
    margin-top: 2.4rem;
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.jsl-link {
    position: relative;
    text-decoration: none;
    color: #1a335f;
    font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding-bottom: 4px;
}
.jsl-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: #e8a52a;               /* Gold = Akzent/Interaktion */
    transform: scaleX( 0 );
    transform-origin: left;
    transition: transform 0.28s ease;
}
.jsl-link:hover::after { transform: scaleX( 1 ); }

/* Icon-Link (z.B. LinkedIn): Navy, beim Hover Gold */
.jsl-icon-link {
    display: inline-flex;
    color: #1a335f;
    transition: color 0.25s ease, transform 0.15s ease;
}
.jsl-icon-link:hover {
    color: #e8a52a;
    transform: translateY( -2px );
}
.jsl-icon-link svg {
    display: block;
    width: 2rem;
    height: 2rem;
}

/* --------------------------------------------------------------------------
   One-Pager: Hero + darunter die About-Sektion (Scroll)
   -------------------------------------------------------------------------- */

html:has( .jsl-page ) {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.jsl-page {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc( 50% - 50vw );
    margin-right: calc( 50% - 50vw );
    background: #eef2f8;
    color: #1b2433;
}

/* Im One-Pager bringt .jsl-page die volle Breite — Hero selbst dann 100% */
.jsl-page .jsl {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Dezenter Scroll-Hinweis unten im Hero */
.jsl-scroll {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX( -50% );
    color: #7c8597;
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1;
    animation: jsl-bob 1.8s ease-in-out infinite;
}
@keyframes jsl-bob {
    0%, 100% { transform: translateX( -50% ) translateY( 0 ); }
    50%      { transform: translateX( -50% ) translateY( 6px ); }
}
@media ( prefers-reduced-motion: reduce ) {
    .jsl-scroll { animation: none; }
}

/* About-Sektion (ruhig, ohne Netz, gut lesbar) */
.jsl-about {
    width: 100%;
    padding: 6rem 2rem 7rem;
    background: #eef2f8;
}
.jsl-about-inner {
    max-width: 46rem;
    margin: 0 auto;
    text-align: left;
}
.jsl-about .jsl-heading {
    margin-bottom: 1.6rem;
}
.jsl-about p {
    margin: 0 0 1.3rem;
    font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
    font-size: clamp( 1rem, 2vw, 1.18rem );
    line-height: 1.7;
    color: #1b2433;
    opacity: 0.88;
}
.jsl-background {
    list-style: none;
    margin: 2.4rem 0 0;
    padding: 0;
    font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;
    font-size: 0.88rem;
    line-height: 1.95;
    color: #5a6678;
}
.jsl-background li::before {
    content: "\00B7  ";
    color: #2563c9;
}

/* Mehrere About-artige Sektionen (About + Contact): feine Trennlinie */
.jsl-about + .jsl-about {
    border-top: 1px solid rgba( 27, 36, 51, 0.08 );
}

/* Links in den About/Contact-Sektionen linksbündig statt zentriert */
.jsl-about .jsl-links {
    justify-content: flex-start;
    margin-top: 1.6rem;
}

/* Easter-Egg-Buttons im Playground mittig unter dem Text */
.jsl .tweaks-playground {
    justify-content: center;
    margin-top: 1.6rem;
}

/* --------------------------------------------------------------------------
   Mobile-Feinschliff
   -------------------------------------------------------------------------- */
@media ( max-width: 600px ) {
    .jsl-card {
        padding: 1.5rem;
    }
    .jsl-name {
        font-size: clamp( 2rem, 9vw, 3rem );
    }
    .jsl-eyebrow {
        letter-spacing: 0.12em;
    }
    .jsl-about {
        padding: 4rem 1.5rem 4.5rem;
    }
    .jsl-summary,
    .jsl-about p {
        font-size: 1rem;
    }
}
