/* =========================================================
   App Hub – Stylesheet
   =========================================================

   File: /CSS/app_hub.css
   Scope: Central App Hub Landing Page
   Purpose:
   Enthält das vollständige Layout, Slider-Design,
   aktive Karten-Hervorhebung, Beschreibungslayer,
   Fortschrittsanzeige und Responsive-Verhalten.

   ========================================================= */


/* =========================================================
   Base Layout
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #0b1110;
    color: #f2f2f2;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(91, 116, 113, 0.22), transparent 36%),
        linear-gradient(180deg, #111716 0%, #0b1110 100%);
}

.intro {
    text-align: center;
    padding: 18px 20px 22px;
}

.intro h1 {
    margin: 0;
    font-size: clamp(42px, 4.8vw, 78px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f3f3f3;
    text-shadow:
        0 4px 24px rgba(0,0,0,0.55),
        0 0 34px rgba(91,116,113,0.18);
}

.intro h1 .dot {
    color: rgba(255,255,255,0.72);
    padding: 0 0.04em;
}

.intro p {
    margin: 14px 0 0;
    color: rgba(255,255,255,0.68);
    font-size: clamp(14px, 1vw, 18px);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* =========================================================
   Project Slider
   ========================================================= */

.project-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 34px 0 38px;
}

.slider-track {
    display: flex;
    align-items: stretch;
    gap: clamp(28px, 2.4vw, 48px);
    transition: transform 700ms ease;
    will-change: transform;
}

.project-slide {
    position: relative;
    flex: 0 0 clamp(470px, 27vw, 620px);
    height: clamp(360px, 22vw, 480px);
    overflow: hidden;
    background: #030706;
    opacity: 0.82;
    transform: scale(0.96);
    transition:
        opacity 700ms ease,
        transform 700ms ease,
        box-shadow 700ms ease,
        outline-color 700ms ease;
    text-decoration: none;
    color: inherit;
    outline: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 26px 80px rgba(0,0,0,0.42);
}

.project-slide.is-active {
    opacity: 1;
    transform: scale(1.04);
    outline-color: rgba(255,255,255,0.10);
    box-shadow:
        0 34px 110px rgba(0,0,0,0.52),
        0 0 0 1px rgba(255,255,255,0.04),
        0 0 11px rgba(255,255,255,0.03),
        0 0 22px rgba(91,116,113,0.05);
}

.project-slide.is-prev,
.project-slide.is-next {
    opacity: 0.9;
}

.project-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: clamp(86px, 5.6vw, 118px) clamp(72px, 5vw, 108px) clamp(78px, 5vw, 106px);
    background:
        radial-gradient(circle at center, rgba(91,116,113,0.16), transparent 46%),
        linear-gradient(135deg, rgba(255,255,255,0.045), transparent 42%),
        #030706;
    filter: brightness(1) contrast(1.08);
    transform: scale(0.98);
    transition: transform 900ms ease, filter 700ms ease;
}

.project-slide.is-active img {
    filter: brightness(1.05) contrast(1.08);
    transform: scale(1);
}

.project-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.60) 0%,
            rgba(0,0,0,0.14) 38%,
            rgba(0,0,0,0.74) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.28),
            transparent 48%,
            rgba(0,0,0,0.22)
        );
    pointer-events: none;
}

.project-slide.is-active::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.065) 0%,
            rgba(255,255,255,0.012) 28%,
            transparent 54%
        );
    opacity: 0.38;
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: clamp(28px, 2vw, 40px);
    pointer-events: none;
}

.slide-content h2 {
    margin: 0;
    color: #f2f2f2;
    font-size: clamp(32px, 2.4vw, 50px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    text-shadow: 0 3px 16px rgba(0,0,0,0.72);
}


/* =========================================================
   Description Bar
   ========================================================= */

.slide-description {
    position: absolute;
    left: clamp(28px, 2vw, 40px);
    right: clamp(78px, 5vw, 96px);
    bottom: clamp(22px, 1.8vw, 34px);

    min-height: clamp(34px, 2.4vw, 46px);
    margin: 0;
    padding: 0 16px;

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

    color: rgba(255,255,255,0.92);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    letter-spacing: 0.025em;

    background: rgba(0,0,0,0.50);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 4px;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.34),
        0 0 18px rgba(255,255,255,0.06),
        inset 0 1px 0 rgba(255,255,255,0.08);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    text-shadow: 0 2px 8px rgba(0,0,0,0.85);

    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition:
        opacity 260ms ease,
        transform 260ms ease,
        visibility 260ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.project-slide.is-active .slide-description {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.project-slide.is-active:hover .slide-description {
    background: rgba(0,0,0,0.64);
    border-color: rgba(255,255,255,0.28);
    box-shadow:
        0 14px 34px rgba(0,0,0,0.40),
        0 0 26px rgba(255,255,255,0.10),
        inset 0 1px 0 rgba(255,255,255,0.10);
}


/* =========================================================
   Open Icon
   ========================================================= */

.open-icon {
    position: absolute;
    right: clamp(22px, 1.8vw, 34px);
    bottom: clamp(22px, 1.8vw, 34px);
    width: clamp(34px, 2.4vw, 46px);
    height: clamp(34px, 2.4vw, 46px);
    display: grid;
    place-items: center;
    background: #f4f4f4;
    color: #111716;
    font-size: clamp(25px, 1.8vw, 34px);
    line-height: 1;
    font-weight: 300;
    clip-path: polygon(
        50% 0%,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-slide.is-active .open-icon {
    box-shadow:
        0 0 9px rgba(255,255,255,0.09),
        0 8px 22px rgba(0,0,0,0.32);
}

.project-slide:hover img {
    transform: scale(1.04);
    filter: brightness(1.08) contrast(1.08);
}

.project-slide:hover .open-icon {
    background: #ffffff;
    transform: scale(1.08);
    box-shadow:
        0 0 12px rgba(255,255,255,0.12),
        0 10px 26px rgba(0,0,0,0.36);
}


/* =========================================================
   Controls
   ========================================================= */

.slider-controls {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.progress-list {
    display: flex;
    align-items: center;
    gap: 20px;
}

.progress-item {
    position: relative;
    width: clamp(48px, 3.4vw, 66px);
    height: 3px;
    background: rgba(255,255,255,0.32);
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.progress-item::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    background: #ffffff;
}

.progress-item.is-active::before {
    animation: progressFill 10s linear forwards;
}

.progress-item.is-complete::before {
    width: 100%;
}

.project-slider.is-paused .progress-item.is-active::before {
    animation-play-state: paused;
}

.play-toggle {
    border: none;
    background: transparent;
    color: #f2f2f2;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.85;
}

.play-toggle:hover {
    opacity: 1;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}


/* =========================================================
   Medium Desktop / Notebook
   ========================================================= */

@media (max-width: 1400px) {
    .project-slide {
        flex-basis: 430px;
        height: 340px;
    }

    .project-slide img {
        padding: 82px 70px 78px;
    }

    .slide-content h2 {
        font-size: clamp(24px, 2vw, 35px);
    }

    .slide-description {
        left: 26px;
        right: 72px;
        bottom: 22px;
        min-height: 34px;
        padding: 0 13px;
        font-size: 12px;
        border-radius: 4px;
    }

    .open-icon {
        width: 34px;
        height: 34px;
        font-size: 25px;
        right: 22px;
        bottom: 22px;
    }

    .intro h1 {
        font-size: clamp(34px, 3.4vw, 56px);
    }

    .play-toggle {
        font-size: 26px;
    }
}

@media (max-width: 1200px) {
    .project-slide {
        flex-basis: 390px;
        height: 320px;
    }

    .project-slide img {
        padding: 78px 60px 74px;
    }

    .slider-track {
        gap: 28px;
    }
}


/* =========================================================
   Smartphone
   ========================================================= */

@media (max-width: 760px) {
    .page-wrapper {
        justify-content: flex-start;
    }

    .intro {
        padding-top: 32px;
    }

    .intro h1 {
        font-size: 34px;
    }

    .intro p {
        font-size: 13px;
        letter-spacing: 0.06em;
    }

    .project-slider {
        padding: 30px 0 28px;
    }

    .slider-track {
        gap: 16px;
    }

    .project-slide {
        flex-basis: 82vw;
        height: 360px;
    }

    .project-slide.is-active {
        transform: scale(1);
    }

    .project-slide img {
        padding: 82px 42px 82px;
    }

    .slide-content {
        padding: 22px;
    }

    .slide-content h2 {
        font-size: 25px;
    }

    .slide-description {
        left: 22px;
        right: 64px;
        bottom: 20px;
        min-height: 34px;
        padding: 0 12px;
        font-size: 12.5px;
        line-height: 1.35;
        border-radius: 4px;
        background: rgba(0,0,0,0.54);
    }

    .open-icon {
        right: 20px;
        bottom: 20px;
        width: 34px;
        height: 34px;
        font-size: 25px;
    }

    .slider-controls {
        margin-top: 28px;
        gap: 20px;
    }

    .progress-list {
        gap: 14px;
    }

    .progress-item {
        width: 38px;
    }
}