:root {
    --page-bg-light: #faf1e3;
    --page-bg-dark: #e5e0d7;
    --color-luna: #B07CC6;
    --color-luna-dark: #713f84;
    --color-leon: #E53935;
    --color-both: #7FAf52;
    --color-both-dark: #4F7A32;

    --project-muted: #5f5f5f;

    --section-gutter: clamp(1rem, 6vw, 6rem);
    --section-content-width: 1200px;
    --section-block-padding: 5rem;
    --section-heading-size: clamp(
        1.6rem,
        calc(.9rem + 2.75vw),
        3.2rem
    );
    --section-copy-size: clamp(
        1rem,
        calc(.85rem + .35vw),
        1.1rem
    );
    --section-subheading-size: clamp(
        1.25rem,
        calc(.7rem + 2.4vw),
        2.5rem
    );
}

@font-face {
    font-family: 'Comic Neue';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/comic-neue-light.woff2') format('woff2');
}

@font-face {
    font-family: 'Comic Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/comic-neue-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Comic Neue';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/comic-neue-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Comic Neue';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/comic-neue-light-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Comic Neue';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/comic-neue-regular-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Comic Neue';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/comic-neue-bold-italic.woff2') format('woff2');
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Comic Neue", cursive;
    font-size: 1.1rem;
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/** NAVIGATION **/

.side-nav {
    position: fixed;
    top: 50dvh;
    left: 24px;

    z-index: 100;

    display: flex;
    flex-direction: column;
    gap: 6px;

    transform: translateY(-50%);
}

.side-nav__links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-nav__toggle {
    display: none;
}

.side-nav__item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #000;
    text-decoration: none;
}

.side-nav__bullet {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border: 1px solid #000;
    border-radius: 50%;
    background: transparent;

    transition: background-color 180ms ease;
}

.side-nav__item.is-active .side-nav__bullet {
    background: #000;
}

.side-nav__label {
    padding: 3px 7px;

    border-radius: 4px;

    background: var(--side-nav-label-bg, var(--page-bg-light));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    white-space: nowrap;

    opacity: 0;
    transform: translateX(-6px);

    transition:
            opacity 180ms ease,
            transform 180ms ease;
}

.side-nav__item.is-active .side-nav__label {
    opacity: 1;
    transform: translateX(0);
}

.side-nav__item:hover .side-nav__label {
    opacity: 1;
    transform: translateX(0);
}

.side-nav__item:focus-visible .side-nav__label {
    opacity: 1;
    transform: translateX(0);
}

.side-nav__item:focus-visible {
    outline: 2px solid #000;
    outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .side-nav__item:hover .side-nav__label {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (hover: none) and (pointer: coarse) {
    .side-nav {
        top: 1rem;
        right: auto;
        left: 1rem;

        align-items: flex-start;

        transform: none;
    }

    .side-nav__toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;

        width: 38px;
        height: 38px;
        padding: 0;

        border: 1px solid rgba(0, 0, 0, .55);
        border-radius: 50%;
        background: rgba(250, 241, 227, .95);
        cursor: pointer;
    }

    .side-nav__toggle span {
        display: block;
        width: 16px;
        height: 1px;
        background: #000;
    }

    .side-nav__toggle:focus-visible {
        outline: 2px solid #000;
        outline-offset: 4px;
    }

    .side-nav__links {
        display: none;

        gap: 4px;
        margin-top: .5rem;
        padding: .5rem;

        border: 1px solid #000;
        border-radius: 4px;
        background: rgba(250, 241, 227, .95);
    }

    .side-nav.is-open .side-nav__links {
        display: flex;
    }

    .side-nav__label {
        opacity: 1;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/** SECTIONS **/

.part {
    position: relative;
    scroll-margin-top: 0;
}

.part:nth-child(odd) {
    background: var(--page-bg-dark);
}

.part:nth-child(even) {
    background: var(--page-bg-light);
}

/** INTRO **/

.part--intro {
    min-height: 100dvh;

    display: grid;
    place-items: center;
}

.intro__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.intro__heading {
    margin: 0;
    line-height: 0;
}

.intro__logo {
    width: auto;
    height: auto;
    max-width: min(600px, 70vw);
    max-height: calc(100dvh - 220px);
}

.intro__description {
    margin: 0;

    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 700;
    text-align: center;
}

.intro__description span {
    white-space: nowrap;
}

.intro__scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 50px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;

    transform: translateX(-50%);
}

.intro__scroll-hint span {
    width: 12px;
    height: 12px;

    border-right: 2px solid #000;
    border-bottom: 2px solid #000;

    transform: rotate(45deg);

    opacity: 0.25;

    animation: scroll-hint 2s infinite ease-in-out;
}

.intro__scroll-hint span:nth-child(2) {
    animation-delay: 0.666s;
}

.intro__scroll-hint span:nth-child(3) {
    animation-delay: 1.333s;
}

@keyframes scroll-hint {
    0%,
    12% {
        opacity: 0.25;
    }

    32%,
    52% {
        opacity: 0.75;
    }

    82%,
    100% {
        opacity: 0.25;
    }
}

.intro__scroll-text {
    width: 100%;
    position: absolute;
    bottom: 0;
    text-align: center;
}

/** STORY **/

.part--story {
    height: clamp(5000px, 700vh, 9000px);
    height: clamp(5000px, 700dvh, 9000px);
}

.scene {
    width: 100%;
    max-width: 1600px;
    height: 100vh;
    margin: 0 auto;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.layer,
.characters,
.infoboxes {
    position: absolute;
}

/* Hintergrundebenen */

.layer {
    left: 0;
    width: 100%;
    overflow: hidden;
}

.layer img {
    position: absolute;
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

/* Himmel: oberer Bereich */

.layer--sky {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: calc(100vh - 7rem);

    overflow: hidden;
    z-index: 1;
}

.layer--sky img {
    position: absolute;
    top: 0;
    left: 0;

    width: 125%;
    height: 100%;

    max-width: none;
    object-fit: cover;
    object-position: center top;
}

/* Stadt: unterer Bereich */

.layer--city {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 66.6667%;

    overflow: visible;
    z-index: 2;
}

.layer--city img {
    position: absolute;
    left: 50%;
    bottom: 0;

    width: 100%;
    height: auto;

    max-width: none;

    transform: translateX(-50%);
    transform-origin: center bottom;

    filter: blur(0);
}

/* Figuren */

.characters {
    inset: 0;
    z-index: 5;
}

.character {
    --character-height: clamp(
        7rem,
        calc(26.4vw - .2rem),
        26.25rem
    );
    --character-width: calc(var(--character-height) * .666667);
    --character-half-width: calc(var(--character-width) / 2);

    position: absolute;
    width: var(--character-width);
    height: var(--character-height);
    aspect-ratio: 2 / 3;

    display: block;
    object-fit: contain;
    border: 0;
    z-index: 10;
}

.character--luna {
    left: calc(34% - var(--character-half-width));
    bottom: 0;
}

.character--leon {
    left: calc(61% - var(--character-half-width));
    bottom: 0;
}

/* Infoboxen */

.infoboxes {
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.infobox {
    position: absolute;
    width: 240px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    text-align: center;
    opacity: 0;
    line-height: 1.5rem;
}

.infobox::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("../assets/illustrations/frame.svg");
    background-repeat: no-repeat;

    background-size: 100% 100%;
    background-position: center;

    pointer-events: none;
    z-index: 0;
}

.infobox__tape {
    position: absolute;
    width: 160px;
    height: 107px;
    background-size: 160px;
    top: -50px;
    left: 0;
    background-repeat: no-repeat;
}

.tape--luna {
    background-image: url(../assets/illustrations/tape-luna.avif);
}

.tape--leon {
    background-image: url(../assets/illustrations/tape-leon.avif);
    right: 0;
    left: auto;
}

.infobox__tail {
    position: absolute;
    right: -28px;
    width: 40px;
    height: 40px;
    top: 100px;
    background-image: url("../assets/illustrations/speech-tail-right.svg");
    background-repeat: no-repeat;
    background-size: 40px;
}

.infobox__separator {
    padding-bottom: 25px;
    position: relative;
}

.infobox__separator::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    mask-image: url("../assets/illustrations/separator.svg");
    mask-repeat: no-repeat;
    mask-size: 233px;
    mask-position: bottom -34px right 0;
}

.infobox--luna-1 .infobox__separator::before,
.infobox--luna-2 .infobox__separator::before {
    background-color: var(--color-luna);
}

.infobox--leon-1 .infobox__separator::before,
.infobox--leon-2 .infobox__separator::before {
    background-color: var(--color-leon);
}

.infobox--beide-1 .infobox__separator::before,
.infobox--beide-2 .infobox__separator::before {
    background-color: var(--color-both-dark);
}

.infobox__tail.left {
    left: -28px;
    transform: scaleX(-1);
}

.infobox h3 {
    font-size: 2.5rem;
    margin: 10px 0;
    line-height: 2.5rem;
}

.infobox.infobox--luna-1 h3 {
    color: var(--color-luna-dark);
}

.infobox.infobox--leon-1 h3 {
    color: var(--color-leon);
}

.infobox.infobox--beide-1 h3 {
    color: var(--color-both-dark);
}

.infobox img.icon {
    width: 4vh;
    height: auto;
}

.infobox img.lg {
    width: 10vw;
    height: auto;
}

.infobox__meta {
    font-style: italic;
}

.infobox--luna-1 {
    left: 10%;
    bottom: 20%;
}

.infobox--luna-2 {
    left: 56%;
    bottom: 46%;
}

.infobox--leon-1 {
    left: 20%;
    bottom: 15%;
}

.infobox--leon-2 {
    right: 13%;
    bottom: 40%;
}

.infobox--beide-1 {
    left: 5%;
    bottom: 15%;
}

.infobox--beide-2 {
    right: 13%;
    bottom: 40%;
}

/* ============================================================
   PART 3 – COMIC
   ============================================================ */

.part--comic {
    padding: 0 var(--section-gutter);
}

.comic-section__inner {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
    max-width: 1400px;
    min-height: 100dvh;
    margin: 0 auto;
}


/* ============================================================
   LINKER BEREICH
   ============================================================ */

.comic-section__characters {
    position: relative;
}

.comic-section__characters-inner {
    position: sticky;
    top: 0;

    height: 100dvh;
    min-height: min(700px, 60dvh);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: clamp(20px, 3vw, 40px);
}

.comic-section__intro {
    width: 100%;
    margin-bottom: clamp(1rem, 2vw, 2rem);
    text-align: left;
}

.comic-section__intro h2 {
    margin: 0;

    font-size: var(--section-heading-size);
    line-height: 0.95;
}

.comic-section__characters-inner img {
    flex: 1 1 auto;
    min-height: 0;

    max-width: 100%;
    height: auto;
    max-height: 85dvh;
    object-fit: contain;
}


/* ============================================================
   RECHTER STORY-BEREICH
   ============================================================ */

.comic-section__story {
    position: relative;
    min-width: 0;
}


/* ============================================================
   EINZELNE TRAILER-SZENEN
   ============================================================ */

.comic-story {
    position: relative;
    min-width: 0;

    min-height: 100dvh;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: center;
    gap: clamp(20px, 3.3vw, 50px);

    box-sizing: border-box;
    padding: clamp(3rem, 6.7vw, 6.25rem)
        clamp(1.5rem, 4vw, 3.75rem);

    border-left: 1px solid rgba(0, 0, 0, .12);
}

.comic-story__content {
    align-self: center;
    min-width: 0;
}

.comic-story__eyebrow {
    display: block;

    margin-bottom: clamp(.75rem, 1.5vw, 1.25rem);

    font-size: clamp(
        .8rem,
        calc(.55rem + 1.5vw),
        1.2rem
    );
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.comic-story__text {
    margin: 0;

    max-width: 500px;

    font-size: clamp(
        1.2rem,
        calc(.8rem + 1.5vw),
        2rem
    );
    line-height: 1.05;
    font-weight: bold;
}

/* ============================================================
   COMIC-AUSSCHNITTE
   ============================================================ */

.comic-story__panel {
    align-self: center;
    width: min(500px, calc(100% - 1rem));
    min-width: 0;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 3px solid #222;
    background: #fff;
    overflow: hidden;

    box-shadow: 10px 12px 0 rgba(0, 0, 0, .10);

    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.comic-story__panel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Leichte Variation der Panels */

.comic-story__panel--01 {
    transform: rotate(2deg);
}

.comic-story__panel--02 {
    transform: rotate(-2deg);
}

.comic-story__panel--03 {
    transform: rotate(1deg);
}


/* ============================================================
   ABSCHLUSS / COVER
   ============================================================ */

.comic-story--04 {
    align-items: center;
}

.comic-story__release {
    margin-top: clamp(1rem, 2.5vw, 1.875rem);

    font-size: clamp(
        1rem,
        calc(.8rem + 1vw),
        1.4rem
    );
    font-weight: normal;
}

.comic-story__cover {
    width: min(380px, calc(100% - 1rem), 42dvh);
    min-width: 0;
    box-sizing: border-box;
    aspect-ratio: 0.707;

    display: flex;
    align-items: center;
    justify-content: center;

    justify-self: center;

    border: 3px solid #222;
    background: #fff;

    box-shadow: 12px 14px 0 rgba(0, 0, 0, .12);

    font-weight: 700;

    transform: rotate(3deg);
}

.comic-story__cover img,
.comic-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comic-cover img {
    height: auto;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   PART 4 – DOWNLOADBEREICH
   ============================================================ */

.part-downloads {
    min-height: 100vh;

    box-sizing: border-box;
    padding: var(--section-block-padding) var(--section-gutter);

    background: #f4efe7;
}


.part-download__inner {
    width: min(var(--section-content-width), 100%);
    margin: 0 auto;
}


/* ============================================================
   INTRO
   ============================================================ */

.part-download__intro {
    position: relative;

    max-width: 700px;

    margin-bottom: clamp(
        3rem,
        calc(1rem + 8vw),
        8rem
    );
}


.part-download__intro h2,
.project-intro h2,
.legal-section__title {
    margin-top: 0;
    margin-bottom: 0;

    text-align: left;
    font-size: var(--section-heading-size);
    line-height: 0.95;
}


.part-download__intro p {
    max-width: 500px;

    margin-top: 2rem;

    font-size: var(--section-copy-size);
}


/* ============================================================
   COMIC DOWNLOAD
   ============================================================ */

.download-comic {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 340px), 1fr)
    );

    gap: clamp(3rem, 6vw, 6rem);

    align-items: center;

    margin-bottom: clamp(4rem, 8vw, 7rem);
}


.download-comic__visual {
    display: flex;

    justify-content: center;
}


.comic-cover {
    width: min(530px, calc(100% - 1rem), 60dvh);
    aspect-ratio: 710 / 600;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
}


.download-comic__content {
    max-width: 500px;
}


.download-label,
.download-section-heading__eyebrow {
    display: block;

    margin-bottom: 1rem;

    font-size: clamp(
        .85rem,
        calc(.75rem + .35vw),
        1rem
    );
    font-weight: bold;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.download-section-heading__eyebrow {
    color: var(--project-muted);
}

.download-comic h3,
.download-section-heading h3 {
    margin: 0;

    font-size: var(--section-subheading-size);
    line-height: 0.95;
}


.download-comic p {
    margin: 2rem 0;

    max-width: 420px;

    font-size: var(--section-copy-size);
    line-height: 1.5;
}


/* ============================================================
   DOWNLOAD BUTTON
   ============================================================ */

.download-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;
    gap: 1.5rem;

    font-size: clamp(
        .85rem,
        calc(.7rem + .5vw),
        1.1rem
    );

    padding: 1rem 1.4rem;

    border: 2px solid currentColor;

    color: inherit;
    text-decoration: none;
    text-align: center;

    font-weight: bold;

    transition:
            transform 150ms ease,
            background 150ms ease;
}


.download-button:hover {
    transform: translateY(-3px);
}


.download-comic__bonus-link {
    color: #000;
    text-decoration: underline;
    text-underline-offset: .15em;
}


.download-button__icon {
    font-size: 1.3rem;
}


.download-comic__action small {
    display: block;

    margin-top: 0.7rem;

    opacity: 0.6;
}


/* ============================================================
   AUSMALBILDER
   ============================================================ */

.download-coloring {
    padding-top: 2rem;
}


.download-section-heading {
    max-width: 650px;

    margin-bottom: 4rem;
}


.download-section-heading p {
    margin-top: 1.5rem;

    font-size: var(--section-copy-size);
}


/* ============================================================
   COLORING GRID
   ============================================================ */

.coloring-grid {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 340px), 1fr)
    );

    gap: clamp(1rem, 2vw, 2rem);
}


.coloring-card {
    display: flex;
    flex-direction: column;

    background: #e8e2d8;

    box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.08);
}


.coloring-card__preview {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(1rem, 3vw, 2rem);

    background: #e8e2d8;
}


.coloring-card__preview > img {
    display: block;
    width: min(100%, 38dvh);
    max-width: 100%;
    height: auto;
    aspect-ratio: 0.707;

    border: 1px solid #aaa;
    object-fit: contain;
}

.coloring-card__content,
.coloring-card__action {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    padding: 0 2rem 1.5rem;
    background: inherit;
}

.coloring-card__content {
    font-size: 0.7rem;
    text-align: center;
}


.coloring-grid__note {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    line-height: 1.3;
    opacity: 0.65;
    font-family: Verdana, sans-serif;
}


/* =========================================================
   PROJEKT
   GSAP Horizontal Scroll
   ========================================================= */

.part--project {
    --project-border: #222;
    --project-background: #f8f8f6;

    background: var(--project-background);

    overflow: hidden;
}


/* ---------------------------------------------------------
   Gepinnter Bereich
   --------------------------------------------------------- */

.project-pin {
    height: calc(100dvh - var(--section-block-padding));
    min-height: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    overflow: hidden;
}


/* ---------------------------------------------------------
   Begrenzter Seitencontainer
   --------------------------------------------------------- */

.project-container {
    width: min(
        var(--section-content-width),
        calc(100% - (2 * var(--section-gutter)))
    );
    margin: 0 auto;
}


/* ---------------------------------------------------------
   Intro
   --------------------------------------------------------- */

.project-intro {
    max-width: 700px;
    margin: 0 0 clamp(1rem, 2.5dvh, 2rem);
    text-align: left;
}

.project-eyebrow {
    display: block;

    margin-bottom: .6rem;

    font-size: clamp(
            .85rem,
            calc(.75rem + .3vw),
            1rem
    );
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--project-muted);
}

.project-intro h2 {
    margin-bottom: 1rem;
}

.project-intro p {
    margin: 0;

    font-size: var(--section-copy-size);
    line-height: 1.6;

    color: #444;
}


/* ---------------------------------------------------------
   Sichtbarer horizontaler Bereich
   --------------------------------------------------------- */

.project-horizontal {
    position: relative;

    flex: 1 1 auto;
    min-height: 0;
    max-height: 57dvh;

    width: min(
        700px,
        calc(100% - (2 * var(--section-gutter)))
    );
    margin: 0 auto;

    overflow: visible;
}


/*
 * Die eigentliche Strecke.
 *
 * Die Abstände links und rechts werden später
 * in JavaScript dynamisch berücksichtigt.
 */

.project-track {
    display: flex;
    align-items: flex-start;

    height: 100%;
    width: max-content;

    padding: 0;
}


/* ---------------------------------------------------------
   Station
   --------------------------------------------------------- */

.project-step {
    position: relative;
    display: grid;
    grid-template-rows:
        clamp(36px, 7dvh, 54px)
        min(230px, 24dvh)
        minmax(0, 1fr);
    width: 340px;
    flex: 0 0 340px;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: 0 1.75rem;
    border-right: 1px solid #ccc;
    background: var(--page-bg-light);
    box-shadow:
            0 0 10px rgba(0, 0, 0, 0);
    transform-origin: center center;
    will-change:
            transform,
            box-shadow;

    z-index: 1;
    min-height: 0;
}

.project-step:last-of-type {
    border-right: none;
}

/* ---------------------------------------------------------
   Nummer
   --------------------------------------------------------- */

.project-step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: max-content;
    height: auto;

    margin: auto;

    border: 0;
    border-radius: 0;
    background: transparent;

    font-size: .9rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Illustration
   --------------------------------------------------------- */

.project-step-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;

    padding-top: 1.25rem;
}

.project-step-visual img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;

    border: 1px solid #999;

    color: #777;
    font-size: .85rem;
    text-align: center;
}

/* ---------------------------------------------------------
   Text
   --------------------------------------------------------- */

.project-step-content {
    min-width: 0;
    padding-top: clamp(.75rem, 1.7dvh, 1.25rem);
}

.project-step-label {
    display: block;

    margin-bottom: .45rem;

    font-size: clamp(
            .85rem,
            calc(.75rem + .3vw),
            1rem
    );
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;

    color: var(--project-muted);
}

.project-step-content h3 {
    margin: 0 0 .7rem;

    font-size: clamp(
        1.1rem,
        calc(.85rem + 1vw),
        1.4rem
    );
    line-height: 1.1;
}

.project-step-content p {
    margin: 0;

    font-size: var(--section-copy-size);
    line-height: 1.55;

    color: #444;
}

.part--legal,
.part--project {
    min-height: 100dvh;
    box-sizing: border-box;
    padding: var(--section-block-padding) var(--section-gutter)
        var(--section-block-padding);
}

.part--legal {
    --legal-city-border-height: clamp(60px, 13.58vw, 230px);
    padding: var(--section-block-padding) var(--section-gutter)
    calc(var(--section-block-padding) + var(--legal-city-border-height));
    overflow-x: clip;
}

.part--legal::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;

    display: block;
    width: 100%;
    height: var(--legal-city-border-height);

    background: url("../assets/illustrations/cityborder.avif") center / cover no-repeat;
    pointer-events: none;
}

.legal-section__inner {
    width: min(var(--section-content-width), 100%);
    margin-inline: auto;
}

.legal-section__title {
    margin-bottom: 2rem;
}

.legal-section__content {
    --legal-character-space: clamp(3rem, 14vw, 12rem);

    width: calc(100% - var(--legal-character-space));

    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, clamp(18rem, 24vw, 30rem)), 1fr)
    );
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}


/* Rechtstext-Boxen */

.legal-box {
    min-width: 0;
    padding: 1.5rem;

    border: 2px solid #333;
    border-radius: 1rem;

    background: #f3f3f3;
    font-family: Verdana, sans-serif;

    font-size: 0.8rem;
    line-height: 1.5;
}

.legal-box a[href^="mailto:"] {
    color: inherit;
}

.legal-links a {
    color: #8f4236;
    font-weight: 700;
    text-underline-offset: .15em;
}

.legal-links a[href^="mailto:"] {
    color: #8f4236;
}

.legal-copyright {
    margin-top: 2rem;
    color: #666;
    font-size: .85rem;
}

.legal-box h3 {
    margin: 0 0 1rem;
    font-size: clamp(.8rem, 1.4vw, 1rem);
    overflow-wrap: anywhere;
}

.legal-box h4 {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.legal-box__scroll {
    height: clamp(14rem, 60vh, 26rem);
    overflow-y: auto;
    padding-right: 1rem;
    color: #666;
}

.legal-box__scroll:focus-visible {
    outline: 2px solid #000;
    outline-offset: 4px;
}

.legal-box__scroll p {
    font-weight: normal;
    margin: 0 0 1rem;
}


/* Leon */

.legal-character {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
    height: min(80dvh, 48vw);
    aspect-ratio: 667 / 1000;
    right: -2rem;
    z-index: 2;
}

.legal-character img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* Lesbare statische Darstellung ohne funktionierende Animationen. */
html:not(.js-enhanced) .infobox {
    opacity: 1;
}

html:not(.js-enhanced) .project-pin,
html.reduced-motion .project-pin {
    height: auto;
    overflow: visible;
}

html:not(.js-enhanced) .project-horizontal,
html.reduced-motion .project-horizontal {
    flex: none;
    max-height: none;
    width: min(700px, calc(100% - (2 * var(--section-gutter))));
    overflow: visible;
}

html:not(.js-enhanced) .project-track,
html.reduced-motion .project-track {
    display: block;
    height: auto;
    width: auto;
    transform: none !important;
}

html:not(.js-enhanced) .project-step,
html.reduced-motion .project-step {
    grid-template-rows: auto auto auto;
    width: 100%;
    height: auto;
    margin-bottom: 4rem;
    border-right: none;
}

html:not(.js-enhanced) .project-step-visual img,
html.reduced-motion .project-step-visual img {
    height: auto;
    aspect-ratio: 350 / 233;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .part--comic {
        padding: 2rem var(--section-gutter);
    }

    .comic-story {
        border-left: none;
    }

    .comic-section__inner {
        display: block;
    }

    .comic-section__characters {
        min-height: clamp(
            70dvh,
            calc(70dvh + 4.4vw - 25px),
            85dvh
        );
    }

    .comic-section__characters-inner {
        position: relative;
        height: 90dvh;
    }

    .comic-section__characters-inner img {
        max-height: min(
            70dvh,
            calc(70dvh - clamp(40px, 6vw, 80px))
        );
    }

    .comic-section__story {
        width: 100%;
    }

    .comic-story {
        min-height: 96vh;
        grid-template-columns: 1fr;
    }

    .comic-story__panel,
    .comic-story__cover {
        width: min(500px, calc(100% - 1rem));
        justify-self: center;
    }

    .comic-story__cover {
        width: min(380px, calc(100% - 1rem), 42dvh);
    }
}

@media
    (max-width: 435px),
    (max-width: 900px) and (orientation: landscape) {
    .infobox p {
        font-size: 1.3rem;
    }
}

@media (max-width: 900px) and (max-height: 600px) {
    .comic-story {
        min-height: 90dvh;
        gap: clamp(14px, 4vw, 24px);
        padding: clamp(32px, 12dvh, 72px) clamp(20px, 5vw, 30px);
    }

    .comic-story__eyebrow {
        margin-bottom: clamp(10px, 3dvh, 20px);
    }

    .comic-story__text {
        font-size: clamp(
            1.2rem,
            calc(.8rem + 1.5vw),
            1.8rem
        );
    }

    .comic-story__panel {
        width: min(500px, 100%, 55dvh);
    }
}

@media
    (max-width: 700px),
    (min-width: 701px) and (max-height: 649px) and (min-aspect-ratio: 2 / 1),
    (min-width: 701px) and (max-width: 820px) and (max-height: 600px) {
    :root {
        --section-block-padding: 4rem;
    }

    .project-pin {
        height: auto;
        min-height: 0;
    }

    .project-horizontal {
        flex: none;
        min-height: auto;
        max-height: none;
        width: 100%;
        margin: 0;
    }

    .project-track {
        display: block;
        height: auto;
        width: auto;
        transform: none !important;
    }

    .project-step {
        grid-template-columns: 44px 1fr;
        grid-template-rows: auto auto;
        width: calc(100% - 2rem);
        height: auto;
        margin: 0 auto 4rem;
        padding: 0;
        border: 0;
    }

    .project-step-number {
        grid-row: 1 / 3;
        margin: 0;
    }

    .project-step-visual {
        grid-column: 2;
        padding: 0 0 1.25rem 1rem;
    }

    .project-step-visual img {
        height: auto;
        aspect-ratio: 350 / 233;
    }

    .project-step-content {
        grid-column: 2;
        padding-left: 1rem;
    }
}

@media (max-width: 900px) and (max-height: 700px) {
    .intro__content {
        transform: translateY(-60px);
    }
}

@media (max-width: 500px) {
    .intro__description span {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .side-nav__bullet,
    .side-nav__label,
    .download-button {
        transition: none;
    }

    .download-button:hover {
        transform: none;
    }

    .intro__scroll-hint span {
        animation: none;
        opacity: 0.25;
    }
}
