/* ===== site.css ===== */

/* 1. Tokens & Basics */
/* Globale Variablen für Astra */
:root {
    --ast-body-font-family: 'Satoshi-Variable', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --ast-heading-font-family: 'Satoshi-Variable', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --section-space: clamp(6rem, 8vw, 12rem);
    --flow-space: clamp(1rem, 2vw, 2rem);
    --color-text: #0E1116;
    --color-white-text: #F1F1F1;
}

/* Erzwinge Überschreibung (Customizer CSS kommt zuletzt) */
body {
    font-family: var(--ast-body-font-family) !important;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ast-heading-font-family) !important;
    font-weight: 800 !important;
}

h2,
h3 {
    font-weight: 800 !important;
}

h2  {
    padding-bottom: 100px;
}

.wp-block-uagb-container.section {
    padding-block: var(--section-space);
}

.wp-block-uagb-container.section>*>*+* {
    margin-block-start: var(--flow-space);
}

.wp-block-uagb-container.section--tight {
    --section-space: clamp(4rem, 6vw, 8rem);
}

/* 2. Layout / Sections */
/* HERO */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.emblem {
    display: block;
    width: min(1400px, 100vw);
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .12));
    z-index: 1;
    margin: auto;
}

.emblem a path {
    transition: transform .2s ease, filter .2s ease;
    pointer-events: painted;
    /* nur bemalte Fläche klickbar */
    cursor: pointer;
}

.emblem a:hover path {
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, .16));
}



@keyframes tiltIn-L {
    0% {
        transform: translate(var(--dx, 0), var(--dy, 0)) rotate(0deg);
    }

    40% {
        transform: translate(var(--dx, 0), var(--dy, 0)) rotate(-6deg);
    }

    70% {
        transform: translate(var(--dx, 0), var(--dy, 0)) rotate(3deg);
    }

    100% {
        transform: translate(var(--dx, 0), var(--dy, 0)) rotate(0deg);
    }
}

@keyframes tiltIn-R {
    0% {
        transform: translate(var(--dx, 0), var(--dy, 0)) rotate(0deg);
    }

    40% {
        transform: translate(var(--dx, 0), var(--dy, 0)) rotate(6deg);
    }

    70% {
        transform: translate(var(--dx, 0), var(--dy, 0)) rotate(-3deg);
    }

    100% {
        transform: translate(var(--dx, 0), var(--dy, 0)) rotate(0deg);
    }
}

@keyframes pulse {
    50% {
        transform: scale(1.05) translate(var(--dx, 0), var(--dy, 0));
    }

    100% {
        transform: scale(1) translate(var(--dx, 0), var(--dy, 0));
    }
}

.tilt-L {
    animation: tiltIn-L 0.8s ease-out both;
}

.tilt-R {
    animation: tiltIn-R 0.8s ease-out both;
}

.tri-left {
    --dx: 100px;
    --dy: 50px;
    transform-origin: bottom right;
    transform-box: fill-box;
}

.tri-left-text {
    fill: var(--color-white-text);
}

.tri-right {
    --dx: 575px;
    --dy: 50px;
    transform-origin: bottom left;
    transform-box: fill-box;
}

.tri-center {
    --dx: 125px;
    --dy: 50px;
    transform-origin: center;
    transform-box: fill-box;
    animation: pulse 0.5s ease-in-out;
}

/* override underline in emblem textlink */
.ast-single-post .entry-content svg a {
    text-decoration: none;
}

.hero-row {
    position: absolute !important;
    width: 100%;
    height: 100%;
    top: 80px;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-row .special {
    color: #5E6772;
}

.hero-copy {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 50%;
    transform: translate(-50%, 5%);
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.hero-copy h1 {
    width: clamp(295px, 48vw, 608px);
    color: #F1F1F1;
}

.hero-copy p {
    color: #F1F1F1;
    width: clamp(200px, 28vw, 410px);
    font-size: 24px;
    text-align: center;
    ;
}


.hero-button {
    position: absolute;
    top: 70%;
    color: #F1F1F1;
    width: 111px;
    pointer-events: none;
    user-select: none;
    outline: 2px;
}

.hero-button-left {
    left: 20%;
    --dx: 20%;
    --dy: 0;
    transform-origin: bottom right;
    transform-box: fill-box;
}

.hero-button-right {
    left: 80%;
    text-align: right;
    transform: translateX(-100%);
}

/* Emblem Animation */


@media (max-width: 1024px) {

    .hero-button {
        top: 45%;
        width: 200px;

    }

    .hero-button p {
        font-size: 24px;
        font-weight: 700;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .emblem {
        width: min(375px, 100vw);
        height: auto;
    }

    .hero-copy {
        position: absolute;
        top: 0%;
        left: 50%;
        transform: translate(-50%, 0%);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 608px;
        text-align: center;
        pointer-events: none;
        user-select: none;
    }

    .hero-copy h1 {
        color: #F1F1F1;
        width: clamp(275px, 76vw, 295px);
        font-size: 24px;
    }

    .hero-copy p {
        color: #F1F1F1;
        width: clamp(275px, 76vw, 295px);
        font-weight: 400;
        font-size: 12px;
    }

    .tri-left-text {
        fill: #F1F1F1;
        font-size: 16px;
        font-weight: 700;
    }

    .tri-right-text {
        fill: #F1F1F1;
        font-size: 16px;
        font-weight: 700;
    }
}



/* PROCESS */
.label {
    font-family: system-ui, sans-serif;
    fill: #FFF;
}

.tech-badge {
    margin-top: 3em;
    width: 133px;
}

.badge-left {
    --rot: -8deg;
}

.badge-right {
    --rot: 8deg;
}

.badge-tilt {
    transform: rotate(var(--rot, 0));
}

.badge-text {
    width: clamp(300px, 75vw, 1084px);
}

@media (max-width: 768px) {
    .tech-badge {
        width: clamp(60px, 18.3vw, 68.47px)
    }

    .badge-text {
        width: clamp(200px, 57vw, 213px);
    }
}


/* PROJECTS */
.slides-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.slides {
    border: 1px dashed red;
    display: flex;
    flex-direction: row;
    overflow-x: visible;
    width: 100px;
    transition: transform 0.5s ease-in-out;
    /* sanftes sliden */
}

.slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100px;
    margin-right: 50px;
    height: 32px;
    background-color: rgba(46, 107, 255, .5);
    transition: transform 0.5s ease-in-out, background-color 0.2s ease-in;
    border-radius: 20px;
    font-size: 14px;
    line-height: 100%;
    transform: scale(0.8);
}

.slide.active {
    background-color: white;
    border: 1px solid #131313;
    transform: scale(1.25);
}

.slide:not(.active):hover {
    transform: scale(1.1);
    background-color: rgba(46, 107, 255, .65);
}

.link-project {
    background: linear-gradient(90deg,
            /* Richtung – 90deg = von links nach rechts */
            rgba(58, 123, 255, 0.5) 0%,
            /* #3A7BFF bei 50 % Deckkraft */
            rgba(46, 107, 255, 1) 18%
            /* #2E6BFF bei voller Deckkraft */
        );
    -webkit-background-clip: text;
    /* Clippt den Hintergrund auf den Text */
    -webkit-text-fill-color: transparent;
}


/* Projects slides */
.projects-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border: 1px dashed lightgray;
    border-radius: 12px;
    margin-top: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.project-content {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-content.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}



/* 3. Components */

/* ===== Universal Overlay ===== */
.overlay-wrap {
    position: relative;
    /* definiert den Bezugspunkt */
    display: block;
    /* oder block/width:100% je nach Layout */
    width: 100%;
}

/* Grundelement des Overlays */
.overlay {
    width: 100%;
    position: absolute;
    z-index: 5;
    /* liegt über dem Inhalt in .overlay-wrap */
    pointer-events: none;
    /* Overlay klickt nicht durch – Label kann trotzdem interagieren */
}

/* Schnell-Positions-Utilities */
.overlay--center {
    width: 100%;
    inset: 0;
    /* füllt die ganze Fläche */
    display: grid;
    place-items: center;
    /* perfektes Zentrieren */
}

.overlay--tl {
    top: var(--oy, 1rem);
    left: var(--ox, 1rem);
}

.overlay--tr {
    top: var(--oy, 1rem);
    right: var(--ox, 1rem);
}

.overlay--bl {
    bottom: var(--oy, 1rem);
    left: var(--ox, 1rem);
}

.overlay--br {
    bottom: var(--oy, 1rem);
    right: var(--ox, 1rem);
}

/* Optional: feiner versetzen, ohne neue Klassen */
.overlay {
    --ox: 1rem;
    --oy: 1rem;
}

/* Das Label selbst */
.overlay__label {
    position: absolute;
    text-align: center;
    margin: 0;
    padding: .5rem .9rem;
    border-radius: 9999px;
    font: 400 clamp(12px, 1.4vw, 14px)/1 system-ui, sans-serif;
    letter-spacing: .04em;
    color: #fff;
    top: -40px;
    left: 50%;
    color: #131313;
    transform: translateZ(0);
    transform: translateX(-50%);
    /* beugt Rendering-Artefakten vor */
}

/* Optionale Hover-Animation */
.overlay-wrap:hover .overlay__label {
    transform: translateZ(0) scale(1.02);
}

/* 4. Utilities */
/*
html, body { overflow-x: auto; }
* { outline: 1px dashed rgba(255,0,0,.25); } /* temporär! */