/* =========================================
   PATRICK-JORDAN.DE
   VERSION 0.4
========================================= */

:root {
    --background: #07101c;
    --background-light: #0b1625;
    --card: #0d1a2b;
    --card-hover: #11243a;

    --text: #f4f7fb;
    --text-muted: #9baabc;

    --accent: #36a9ff;
    --accent-light: #67c1ff;
    --accent-soft: rgba(54, 169, 255, 0.10);

    --success: #65d895;
    --warning: #f5c66a;

    --border: rgba(255, 255, 255, 0.10);
    --border-accent: rgba(54, 169, 255, 0.35);

    --max-width: 1180px;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}


/* =========================================
   NAVIGATION
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(7, 16, 28, 0.92);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border);
}

.navigation {
    min-height: 76px;

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

    gap: 30px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--text-muted);
    font-size: 0.86rem;
    transition: 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    min-height: calc(100vh - 76px);

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -250px;
    top: -100px;

    background:
        radial-gradient(
            circle,
            rgba(54, 169, 255, 0.16),
            transparent 65%
        );

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 65%,
            rgba(54, 169, 255, 0.02) 100%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(90%, var(--max-width));

    display: grid;
    grid-template-columns: 1.35fr 0.65fr;

    gap: 80px;
    align-items: center;

    padding: 105px 0;
}

.hero-copy {
    min-width: 0;
}

.version {
    display: inline-block;

    margin-bottom: 42px;
    padding: 8px 13px;

    color: var(--text-muted);

    border: 1px solid var(--border);

    font-family: monospace;
    font-size: 0.78rem;
}

.eyebrow {
    margin-bottom: 20px;

    color: var(--accent);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2px;
}

h1 {
    max-width: 900px;

    margin-bottom: 32px;

    font-size: clamp(3rem, 6.4vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -4px;
}

h1 span {
    color: var(--text-muted);
}

.hero-text {
    max-width: 720px;

    margin-bottom: 28px;

    color: var(--text-muted);
    font-size: 1.08rem;
}

.hero-principle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 36px;

    color: #cbd7e3;

    font-family: monospace;
    font-size: 0.78rem;
    letter-spacing: 0.6px;
}

.hero-principle span {
    color: var(--accent);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* =========================================
   BUTTONS
========================================= */

.button {
    display: inline-block;

    padding: 14px 23px;

    border-radius: 4px;

    font-size: 0.9rem;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.primary {
    background: var(--accent);
    color: #03101b;
}

.primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.secondary {
    border: 1px solid var(--border);
}

.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* =========================================
   BIT // MASKOTTCHEN
========================================= */

.bit-stage {
    position: relative;

    min-height: 430px;

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

    isolation: isolate;

    transition:
        opacity 0.3s ease,
        transform 0.35s ease;
}


/* Licht unter Bit */

.bit-stage::before {
    content: "";

    position: absolute;
    bottom: 55px;

    width: 260px;
    height: 70px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(54, 169, 255, 0.18),
            transparent 70%
        );

    filter: blur(8px);

    pointer-events: none;

    transition:
        width 0.35s ease,
        height 0.35s ease,
        bottom 0.35s ease;
}


/* =========================================
   BIT // MITLAUFENDER MODUS
========================================= */

.bit-stage.bit-following {
    position: fixed;

    right: clamp(18px, 3vw, 48px);
    top: 50%;

    width: 150px;
    min-height: 190px;

    transform: translateY(-50%);

    z-index: 900;

    padding: 0;

    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;

    pointer-events: auto;
}


/* Licht wird im Begleitmodus kleiner */

.bit-stage.bit-following::before {
    width: 125px;
    height: 30px;

    bottom: 28px;

    background:
        radial-gradient(
            ellipse,
            rgba(54, 169, 255, 0.14),
            transparent 72%
        );

    filter: blur(9px);
}


/* Bit selbst */

.bit-placeholder {
    position: relative;
    z-index: 2;

    width: 220px;
    height: 260px;

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

    transform-origin: center bottom;

    animation:
        bit-idle 3.4s ease-in-out infinite;

    will-change: transform;

    transition:
        width 0.35s ease,
        height 0.35s ease;
}


/* Im Begleitmodus bewusst kleiner */

.bit-stage.bit-following .bit-placeholder {
    width: 125px;
    height: 145px;
}


/* Eigentliche PNG-Grafik */

.bit-character {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    user-select: none;
    pointer-events: none;

    filter:
        drop-shadow(
            0 18px 24px
            rgba(0, 0, 0, 0.38)
        )
        drop-shadow(
            0 0 15px
            rgba(54, 169, 255, 0.12)
        );

    transition:
        transform 0.25s ease,
        filter 0.25s ease,
        opacity 0.2s ease;
}


/* Status unter BIT vollständig ausblenden */

.bit-status {
    display: none;
}


/* =========================================
   BIT // IDLE
========================================= */

@keyframes bit-idle {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateY(-8px)
            rotate(1deg);
    }
}


/* =========================================
   BIT // SCROLLEN
========================================= */

.bit-placeholder.bit-scrolling {
    animation:
        bit-scroll 0.42s
        ease-in-out infinite alternate;
}

@keyframes bit-scroll {

    from {
        transform:
            translateY(-4px)
            rotate(-2deg);
    }

    to {
        transform:
            translateY(4px)
            rotate(2deg);
    }
}


/* =========================================
   BIT // BLICKRICHTUNGEN
========================================= */

.bit-placeholder.bit-look-left .bit-character {
    transform:
        translateX(-5px)
        rotate(-2deg);
}

.bit-placeholder.bit-look-right .bit-character {
    transform:
        translateX(5px)
        rotate(2deg);
}

.bit-placeholder.bit-look-up .bit-character {
    transform:
        translateY(-4px)
        rotate(-1deg);
}

.bit-placeholder.bit-look-down .bit-character {
    transform:
        translateY(4px)
        rotate(1deg);
}


/* =========================================
   BIT // TANZEN
========================================= */

.bit-placeholder.bit-idle-action {
    animation:
        bit-small-dance 1.6s ease-in-out;
}

@keyframes bit-small-dance {

    0% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    18% {
        transform:
            translateY(-10px)
            rotate(-4deg);
    }

    36% {
        transform:
            translateY(0)
            rotate(4deg);
    }

    54% {
        transform:
            translateY(-7px)
            rotate(-3deg);
    }

    72% {
        transform:
            translateY(0)
            rotate(3deg);
    }

    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }
}


/* =========================================
   BIT // SPRINGEN
========================================= */

.bit-placeholder.bit-jump {
    animation:
        bit-jump 0.7s ease;
}

@keyframes bit-jump {

    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    45% {
        transform:
            translateY(-22px)
            scale(1.03);
    }

    70% {
        transform:
            translateY(2px)
            scale(0.98);
    }
}


/* =========================================
   BIT // DREHEN
========================================= */

.bit-placeholder.bit-spin {
    animation:
        bit-spin 0.9s ease-in-out;
}

@keyframes bit-spin {

    0% {
        transform:
            rotate(0deg)
            translateY(0);
    }

    45% {
        transform:
            rotate(180deg)
            translateY(-6px);
    }

    100% {
        transform:
            rotate(360deg)
            translateY(0);
    }
}


/* =========================================
   BIT // PROJEKTE
========================================= */

.bit-stage[data-bit-mode="projects"]
.bit-character {
    filter:
        drop-shadow(
            0 18px 24px
            rgba(0, 0, 0, 0.38)
        )
        drop-shadow(
            0 0 18px
            rgba(54, 169, 255, 0.18)
        );
}


/* =========================================
   BIT // HOME-LAB
========================================= */

.bit-stage[data-bit-mode="homelab"]
.bit-placeholder {
    animation:
        bit-tech-scan 2.2s
        ease-in-out infinite;
}

@keyframes bit-tech-scan {

    0%,
    100% {
        transform:
            translateX(0)
            rotate(0deg);
    }

    35% {
        transform:
            translateX(-5px)
            rotate(-2deg);
    }

    70% {
        transform:
            translateX(5px)
            rotate(2deg);
    }
}


/* =========================================
   BIT // KONTAKT
========================================= */

.bit-stage[data-bit-mode="contact"]
.bit-placeholder {
    animation:
        bit-contact 1.4s
        ease-in-out infinite;
}

@keyframes bit-contact {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateY(-5px)
            rotate(3deg);
    }
}


/* =========================================
   ALLGEMEINE SEKTIONEN
========================================= */

.section {
    padding: 125px 0;
}

.section-dark {
    background: var(--background-light);
}

.section-number {
    margin-bottom: 24px;

    color: var(--accent);

    font-family: monospace;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

h2 {
    max-width: 880px;

    margin-bottom: 46px;

    font-size:
        clamp(2.5rem, 5vw, 4.8rem);

    line-height: 1.04;
    letter-spacing: -2px;
}

h2 span {
    color: var(--text-muted);
}

.section-intro {
    max-width: 720px;

    margin-bottom: 32px;

    color: var(--text-muted);
    font-size: 1.03rem;
}

.project-intro {
    margin-bottom: 65px;
}


/* =========================================
   ÜBER MICH
========================================= */

.text-grid {
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);

    gap: 70px;

    max-width: 980px;
}

.text-grid p {
    color: var(--text-muted);
    font-size: 1.04rem;
}

.quote-box {
    max-width: 980px;

    margin-top: 55px;
    padding: 28px 30px;

    background: var(--card);

    border-left:
        3px solid var(--accent);
}

.quote-box p {
    font-size: 1.1rem;
    color: #c9d6e3;
}

.quote-box strong {
    color: var(--text);
}


/* =========================================
   TIMELINE
========================================= */

.timeline {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.timeline-card {
    min-height: 270px;

    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);

    background: var(--card-hover);

    border-color:
        var(--border-accent);
}

.timeline-card.active {
    border-color: var(--accent);
}

.timeline-year {
    display: block;

    margin-bottom: 52px;

    color: var(--accent);

    font-family: monospace;
}

.timeline-card h3 {
    margin-bottom: 14px;

    font-size: 1.3rem;
}

.timeline-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* =========================================
   PROJEKTE
========================================= */

.project-feature {
    margin-bottom: 34px;
    padding: 42px;

    background: var(--card);

    border: 1px solid var(--border);

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.project-feature:hover {
    background: #0e1d30;

    border-color:
        rgba(54, 169, 255, 0.28);
}

.project-feature-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 40px;
}

.project-number {
    margin-bottom: 8px;

    color: var(--text-muted);

    font-family: monospace;
    font-size: 0.74rem;
}

.project-feature h3 {
    font-size:
        clamp(2rem, 4vw, 3.4rem);

    line-height: 1;
    letter-spacing: -1.5px;
}

.status {
    flex-shrink: 0;

    display: inline-block;

    padding: 6px 10px;

    color: var(--accent);

    border:
        1px solid
        rgba(54, 169, 255, 0.42);

    font-family: monospace;
    font-size: 0.68rem;
}

.status.learning {
    color: #c5d0db;

    border-color:
        rgba(255, 255, 255, 0.15);
}

.project-feature-grid {
    display: grid;
    grid-template-columns:
        1.3fr 0.7fr;

    gap: 40px;

    margin-bottom: 38px;
}

.project-main-copy p {
    max-width: 720px;

    margin-bottom: 18px;

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

.project-main-copy strong {
    color: var(--text);
}

.project-lead {
    color: var(--text) !important;

    font-size: 1.15rem;
    font-weight: 700;
}

.project-note {
    margin-top: 26px;
    padding: 16px 18px;

    color: #b9c7d5;

    background:
        rgba(54, 169, 255, 0.05);

    border-left:
        2px solid var(--accent);

    font-size: 0.86rem;
}

.project-release {
    min-height: 220px;

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

    padding: 26px;

    background:
        linear-gradient(
            145deg,
            #07101c,
            #0a1a2a
        );

    border:
        1px solid
        rgba(54, 169, 255, 0.24);
}

.release-label {
    margin-bottom: 30px;

    color: var(--text-muted);

    font-family: monospace;
    font-size: 0.67rem;
    letter-spacing: 1px;
}

.project-release strong {
    margin-bottom: 5px;

    font-size: 1.9rem;
}

.release-version {
    margin-bottom: 30px;

    color: var(--accent);

    font-family: monospace;
    font-size: 1rem;
}

.release-state {
    color: #aac0d3;

    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.6px;
}


/* =========================================
   PROJEKT-DETAILS
========================================= */

.project-details-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-bottom: 34px;
}

.project-details-three {
    grid-template-columns:
        repeat(3, 1fr);
}

.detail-card {
    min-height: 315px;

    padding: 24px;

    background:
        rgba(255, 255, 255, 0.018);

    border: 1px solid var(--border);
}

.detail-card.next {
    border-color:
        rgba(54, 169, 255, 0.25);
}

.detail-label {
    margin-bottom: 20px;

    color: var(--accent);

    font-family: monospace;
    font-size: 0.68rem;
    letter-spacing: 1px;
}

.detail-card ul {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.detail-card li {
    position: relative;

    padding-left: 16px;

    color: var(--text-muted);

    font-size: 0.84rem;
}

.detail-card li::before {
    content: "•";

    position: absolute;
    left: 0;

    color: var(--accent);
}


/* =========================================
   TAGS
========================================= */

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 13px;
}

.tags span {
    padding: 6px 9px;

    background:
        rgba(54, 169, 255, 0.06);

    border:
        1px solid
        rgba(54, 169, 255, 0.13);

    color: #9fb0c0;

    font-size: 0.69rem;
}


/* =========================================
   HOME-LAB
========================================= */

.homelab-grid {
    display: grid;
    grid-template-columns:
        1fr 1fr;

    gap: 75px;

    align-items: center;
}

.security-note {
    max-width: 650px;

    margin-top: 32px;
    padding: 17px 18px;

    color: #90a4b6;

    background:
        rgba(255, 255, 255, 0.02);

    border-left:
        2px solid
        rgba(255, 255, 255, 0.14);

    font-family: monospace;
    font-size: 0.7rem;
}


/* =========================================
   TERMINAL
========================================= */

.terminal {
    background: #030810;

    border:
        1px solid
        rgba(54, 169, 255, 0.32);

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.3);
}

.terminal-header {
    min-height: 45px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 15px;

    border-bottom:
        1px solid var(--border);
}

.terminal-header span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #506070;
}

.terminal-header p {
    margin-left: auto;

    color: var(--text-muted);

    font-family: monospace;
    font-size: 0.68rem;
}

.terminal-body {
    padding: 30px;

    font-family: monospace;
    font-size: 0.86rem;
}

.terminal-body p {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 9px 0;

    color: #b9c8d7;
}

.terminal-body strong {
    color: var(--accent);
}

.terminal-body span {
    color: var(--success);
    text-align: right;
}

.terminal-body .cursor {
    justify-content: flex-start;

    gap: 10px;

    margin-top: 20px;
}


/* =========================================
   LERNFOKUS
========================================= */

.learning-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    border-top:
        1px solid var(--border);

    border-left:
        1px solid var(--border);
}

.learning-grid div {
    min-height: 145px;

    padding: 28px 22px;

    border-right:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

.learning-grid strong {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.72rem;
}

.learning-grid p {
    margin-top: 32px;

    font-weight: 700;
    font-size: 0.94rem;
}


/* =========================================
   VERSIONEN / CHANGELOG
========================================= */

.version-history {
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

    margin-top: 55px;
}

.version-card {
    padding: 32px;

    background: var(--card);

    border: 1px solid var(--border);
}

.version-card.current {
    border-color: var(--accent);
}

.version-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 35px;
}

.version-card-head span {
    color: var(--accent);

    font-family: monospace;
    font-size: 1.05rem;
}

.version-card-head strong {
    color: var(--text-muted);

    font-family: monospace;
    font-size: 0.65rem;
    font-weight: normal;
}

.version-card.current
.version-card-head strong {
    color: var(--success);
}

.version-card h3 {
    margin-bottom: 15px;

    font-size: 1.3rem;
}

.version-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.git-note {
    margin-top: 18px;
    padding: 25px 28px;

    display: grid;
    grid-template-columns:
        0.35fr 1fr;

    gap: 35px;

    align-items: center;

    background: #050d17;

    border:
        1px solid
        rgba(54, 169, 255, 0.18);
}

.git-note span {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.72rem;
}

.git-note p {
    color: var(--text-muted);
    font-size: 0.84rem;
}


/* =========================================
   KONTAKT
========================================= */

.contact {
    padding: 140px 0;

    background:
        linear-gradient(
            135deg,
            #081525,
            #07101c
        );

    border-top:
        1px solid var(--border);
}

.contact p:not(.section-number) {
    max-width: 650px;

    margin-bottom: 35px;

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


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 30px 0;

    border-top:
        1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    color: var(--text-muted);

    font-family: monospace;
    font-size: 0.7rem;
}


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

@media (max-width: 1050px) {

    .hero-content {
        grid-template-columns:
            1fr 0.45fr;

        gap: 35px;
    }

    .project-details-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .project-details-three {
        grid-template-columns:
            repeat(3, 1fr);
    }

    nav {
        gap: 18px;
    }

    nav a {
        font-size: 0.8rem;
    }

    .bit-stage.bit-following {
        right: 12px;

        width: 125px;
        min-height: 165px;
    }

    .bit-stage.bit-following
    .bit-placeholder {
        width: 105px;
        height: 125px;
    }
}


@media (max-width: 900px) {

    nav {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .bit-stage {
        min-height: 300px;
    }

    .bit-placeholder {
        width: 185px;
        height: 220px;
    }

    .timeline {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .project-feature-grid {
        grid-template-columns: 1fr;
    }

    .project-details-three {
        grid-template-columns: 1fr;
    }

    .homelab-grid {
        grid-template-columns: 1fr;
    }

    .text-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .learning-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .git-note {
        grid-template-columns: 1fr;

        gap: 12px;
    }
}


@media (max-width: 650px) {

    .section {
        padding: 85px 0;
    }

    .hero-content {
        padding: 75px 0;
    }

    h1 {
        letter-spacing: -2px;
    }

    .hero-principle {
        font-size: 0.7rem;
    }

    .bit-placeholder {
        width: 160px;
        height: 195px;
    }

    .bit-stage.bit-following {
        right: 7px;
        top: auto;
        bottom: 18px;

        width: 92px;
        min-height: 112px;

        padding: 5px;

        transform: none;

        border-radius: 13px;
    }

    .bit-stage.bit-following
    .bit-placeholder {
        width: 78px;
        height: 88px;
    }

    .bit-stage.bit-following::before {
        width: 75px;
        height: 22px;

        bottom: 7px;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .project-feature {
        padding: 26px 20px;
    }

    .project-feature-header {
        flex-direction: column;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
    }

    .learning-grid {
        grid-template-columns: 1fr;
    }

    .version-history {
        grid-template-columns: 1fr;
    }

    .terminal-body p {
        font-size: 0.76rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================
   BIT // FINALE LAUFBEWEGUNG
========================================= */

.bit-placeholder.bit-scrolling.bit-running-left {
    animation: bit-run-left 0.58s ease-in-out infinite;
}

.bit-placeholder.bit-scrolling.bit-running-right {
    animation: bit-run-right 0.58s ease-in-out infinite;
}

@keyframes bit-run-left {
    0% {
        transform:
            translateX(0)
            translateY(0)
            rotate(0deg);
    }

    25% {
        transform:
            translateX(-8px)
            translateY(-6px)
            rotate(-3deg);
    }

    50% {
        transform:
            translateX(-18px)
            translateY(0)
            rotate(0deg);
    }

    75% {
        transform:
            translateX(-9px)
            translateY(-5px)
            rotate(3deg);
    }

    100% {
        transform:
            translateX(0)
            translateY(0)
            rotate(0deg);
    }
}

@keyframes bit-run-right {
    0% {
        transform:
            translateX(0)
            translateY(0)
            rotate(0deg);
    }

    25% {
        transform:
            translateX(-7px)
            translateY(-6px)
            rotate(3deg);
    }

    50% {
        transform:
            translateX(-16px)
            translateY(0)
            rotate(0deg);
    }

    75% {
        transform:
            translateX(-8px)
            translateY(-5px)
            rotate(-3deg);
    }

    100% {
        transform:
            translateX(0)
            translateY(0)
            rotate(0deg);
    }
}

.bit-stage.bit-following
.bit-placeholder.bit-scrolling.bit-running-left {
    animation-name: bit-run-left-follow;
}

.bit-stage.bit-following
.bit-placeholder.bit-scrolling.bit-running-right {
    animation-name: bit-run-right-follow;
}

@keyframes bit-run-left-follow {

    0%,
    100% {
        transform:
            translateX(0)
            translateY(0)
            rotate(0deg);
    }

    25% {
        transform:
            translateX(-7px)
            translateY(-5px)
            rotate(-3deg);
    }

    50% {
        transform:
            translateX(-15px)
            translateY(0)
            rotate(0deg);
    }

    75% {
        transform:
            translateX(-8px)
            translateY(-4px)
            rotate(3deg);
    }
}

@keyframes bit-run-right-follow {

    0%,
    100% {
        transform:
            translateX(0)
            translateY(0)
            rotate(0deg);
    }

    25% {
        transform:
            translateX(-6px)
            translateY(-5px)
            rotate(3deg);
    }

    50% {
        transform:
            translateX(-13px)
            translateY(0)
            rotate(0deg);
    }

    75% {
        transform:
            translateX(-7px)
            translateY(-4px)
            rotate(-3deg);
    }
}


/* =========================================
   BARRIEREFREIHEIT
========================================= */

@media (prefers-reduced-motion: reduce) {

    .bit-placeholder,
    .bit-character,
    .bit-stage {
        animation: none !important;
        transition: none !important;
    }
}\n\n

/* =========================================
   DANKE / BISHERIGE ZUSAMMENARBEIT
========================================= */

.thanks-section {
    padding: 90px 0;
    background: var(--background);
    border-top: 0;
}

/* Echte dunkle Zwischenflächen im normalen Dokumentfluss */
.thanks-space {
    height: 170px;
    background: var(--background);
    border: 0;
}


.thanks-header {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 70px;
    align-items: end;
}

.thanks-kicker {
    margin-bottom: 10px;
    color: var(--accent);
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.thanks-title {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 3.6vw, 3.5rem);
}

.thanks-title span,
.thanks-title .thanks-accent {
    color: var(--accent);
}

.thanks-copy {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
    margin-top: 55px;
}

.partner-logo {
    height: 78px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.014);
    border: 1px solid rgba(255, 255, 255, 0.055);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.partner-logo:hover {
    background: rgba(255, 255, 255, 0.024);
    border-color: rgba(54, 169, 255, 0.18);
}

.partner-logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100px !important;
    max-height: 38px !important;
    object-fit: contain;
    flex: 0 1 auto;
}

.partner-disclaimer {
    max-width: 900px;
    margin-top: 32px;
    color: #73879a;
    font-family: monospace;
    font-size: 0.64rem;
    line-height: 1.65;
}

@media (max-width: 1050px) {
    .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .thanks-header {
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
    }
}

@media (max-width: 650px) {
    .thanks-section {
        padding: 70px 0;
    }

    .thanks-space {
        height: 95px;
    }

    .partner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 38px;
    }

    .partner-logo {
        height: 72px;
        padding: 9px 8px;
    }

    .partner-logo img {
        max-width: 88px !important;
        max-height: 34px !important;
    }
}

@media (max-width: 420px) {
    .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



/* =========================================
   V0.5 // TEXTNENNUNGEN & RECHTLICHES
========================================= */

.partner-name {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    text-align: center;
    color: #cbd7e3;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.15px;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.partner-name:hover {
    color: var(--text);
    background: rgba(54, 169, 255, 0.04);
    border-color: var(--border-accent);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.legal-links a {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.legal-links a:hover { color: var(--accent); }

.legal-page {
    min-height: calc(100vh - 76px);
    padding: 100px 0 120px;
}

.legal-content { max-width: 820px; }

.legal-content h1 {
    margin-bottom: 24px;
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.legal-content h1 span { color: var(--accent); }

.legal-content h2 {
    margin-top: 54px;
    margin-bottom: 18px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.5px;
}

.legal-content p,
.legal-content li { color: var(--text-muted); }

.legal-content p { margin-bottom: 16px; }
.legal-content ul { margin: 0 0 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--accent); }

.legal-placeholder {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid var(--warning);
    background: rgba(245, 198, 106, 0.05);
}

.legal-placeholder strong { color: var(--warning); }

@media (max-width: 700px) {
    .footer-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .legal-links {
        gap: 14px;
        flex-wrap: wrap;
    }

    .legal-page { padding: 70px 0 90px; }
}


/* =========================================
   V0.5 // RECHTLICHES IN DER STARTSEITE
========================================= */

.legal-inline {
    padding: 90px 0;
    scroll-margin-top: 76px;
}

.legal-inline .legal-content h2 {
    margin-bottom: 34px;
}

.legal-inline .legal-content h3 {
    margin-top: 38px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

@media (max-width: 700px) {
    .legal-inline {
        padding: 70px 0;
    }
}
