:root {
    --rg-text: #0f172a;
    --rg-text-soft: #475569;
    --rg-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --rg-shadow-active: 0 16px 40px rgba(15, 23, 42, 0.14);
    --rg-radius: 20px;
    --rg-radius-sm: 16px;
}

/* =========================================================
   GLOBAL PAGE BACKGROUND ONLY
========================================================= */

.projektgalerie-einfach {
    position: relative;
    padding: 0 0 78px;
    overflow: hidden;
    color: var(--rg-text);
    background:
        radial-gradient(circle at 10% 8%, rgba(91, 156, 255, 0.16) 0%, transparent 20%),
        radial-gradient(circle at 84% 12%, rgba(163, 172, 184, 0.12) 0%, transparent 18%),
        radial-gradient(circle at 16% 42%, rgba(166, 210, 255, 0.14) 0%, transparent 20%),
        radial-gradient(circle at 82% 70%, rgba(74, 222, 128, 0.10) 0%, transparent 18%),
        radial-gradient(circle at 26% 88%, rgba(255, 214, 102, 0.08) 0%, transparent 14%),
        linear-gradient(
            180deg,
            #edf4fc 0%,
            #eef4fa 12%,
            #f1f4f8 28%,
            #f4f6f7 46%,
            #f4f6f4 64%,
            #f0f5f1 82%,
            #edf5ef 100%
        );
}

.projektgalerie-einfach::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.16) 0%, transparent 16%),
        radial-gradient(circle at 78% 18%, rgba(148, 163, 184, 0.14) 0%, transparent 14%),
        radial-gradient(circle at 22% 60%, rgba(255, 193, 7, 0.06) 0%, transparent 12%),
        radial-gradient(circle at 76% 78%, rgba(34, 197, 94, 0.10) 0%, transparent 16%);
    filter: blur(56px);
    opacity: 0.9;
    animation: globalBackgroundDrift 26s ease-in-out infinite alternate;
}

.projektgalerie-einfach::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: 0.16;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.04));
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.04));
}

.projektgalerie-einfach .wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.projekt-kategorien {
    position: relative;
    z-index: 2;
    background: transparent;
}

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

.projekte-hero {
    position: relative;
    padding: 152px 28px 34px;
    background: transparent;
}

.projekte-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.04), transparent 20%);
    pointer-events: none;
}

.projekte-hero::after {
    content: "";
    display: block;
    position: relative;
    width: 104px;
    height: 4px;
    margin-top: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.22);
}

.projekte-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    max-width: 900px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #0f172a;
    text-wrap: balance;
}

.projekte-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.72;
    color: #526277;
}

/* =========================================================
   SINGLE SECTION BASE
========================================================= */

.projekt-slider-section {
    position: relative;
    padding: 22px 0 30px;
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.projekt-slider-section::before,
.projekt-slider-section::after {
    content: none !important;
}

/* =========================================================
   HEADINGS
========================================================= */

.section-head {
    position: relative;
    z-index: 3;
    margin-bottom: 14px;
    padding: 0 28px;
}

.section-head h2 {
    margin: 0 0 6px;
    font-size: clamp(21px, 2vw, 30px);
    line-height: 1.08;
    letter-spacing: -0.028em;
    font-weight: 800;
    color: #0f172a;
}

.section-head p {
    margin: 0;
    max-width: 640px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--rg-text-soft);
}

/* =========================================================
   SLIDER
========================================================= */

.projekt-slider-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 3;
    background: transparent;
}

.projekt-slider-track-wrap {
    width: 100%;
    overflow: hidden;
    padding: 0;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    background: transparent;
}

.projekt-slider-track-wrap.is-dragging {
    cursor: grabbing;
}

.projekt-slider-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    padding: 0 8px;
    box-sizing: border-box;
    background: transparent;
}

.projekt-card {
    flex: 0 0 36%;
    min-width: 36%;
    padding: 0 5px;
    box-sizing: border-box;
    background: transparent;
}

.projekt-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--rg-radius);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transform: scale(0.976);
    opacity: 0.92;
    transition:
        transform 0.36s ease,
        opacity 0.36s ease,
        box-shadow 0.36s ease,
        border-color 0.36s ease,
        background 0.36s ease;
}

.projekt-card.is-active a {
    transform: scale(1);
    opacity: 1;
    background: rgba(255, 255, 255, 0.60);
    box-shadow: var(--rg-shadow-active);
    border-color: rgba(255, 255, 255, 0.90);
}

/* =========================================================
   IMAGE AREA
========================================================= */

.projekt-card__image {
    position: relative;
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: #dbe4ee;
}

.projekt-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.45s ease;
}

.projekt-card a:hover .projekt-card__image img {
    transform: scale(1.035);
}

.projekt-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

/* =========================================================
   PLACEHOLDER IMAGE STYLE
========================================================= */

.projekt-card--placeholder a {
    position: relative;
    overflow: hidden;
}

.projekt-card--placeholder a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.14) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    animation: shimmer 3.8s infinite;
    pointer-events: none;
    z-index: 2;
}

.projekt-card__image--placeholder {
    position: relative;
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: #cbd5e1;
}

.projekt-card__image--placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.projekt-card__image--placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(0, 0, 0, 0.07)),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 193, 7, 0.08) 0px,
            rgba(255, 193, 7, 0.08) 7px,
            transparent 7px,
            transparent 15px
        );
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: soft-light;
}

.projekt-card__image--placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.26) 100%);
    pointer-events: none;
    z-index: 1;
}

.projekt-card__placeholder-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.92);
    color: #111827;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    animation: pulseBadge 2.5s infinite;
}

.projekt-card__placeholder-badge::before {
    content: "✦";
    font-size: 12px;
    line-height: 1;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.projekt-card__content {
    padding: 13px 13px 15px;
}

.projekt-card__content h3 {
    margin: 0 0 7px;
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #0f172a;
}

.projekt-card__content p {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.68;
    color: #4f5f73;
}

.projekt-card__content span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.projekt-card__content span::after {
    content: "→";
    transition: transform 0.25s ease;
}

.projekt-card a:hover .projekt-card__content span::after {
    transform: translateX(3px);
}

.projekt-card--placeholder .projekt-card__content span::after {
    content: "";
}

/* =========================================================
   ARROWS
========================================================= */

.projekt-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    transition: transform 0.22s ease, background 0.22s ease, opacity 0.22s ease;
    z-index: 5;
}

.projekt-slider-arrow:hover {
    background: rgba(15, 23, 42, 0.98);
}

.projekt-slider-arrow--prev {
    left: 6px;
}

.projekt-slider-arrow--next {
    right: 6px;
}

.projekt-slider-arrow:disabled {
    opacity: 0.28;
    cursor: default;
}

/* =========================================================
   DOTS
========================================================= */

.projekt-slider-dots {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0 14px;
}

.projekt-slider-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
    cursor: pointer;
    transition: transform 0.24s ease, background 0.24s ease;
}

.projekt-slider-dot.is-active {
    transform: scale(1.15);
    background: #0f172a;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes globalBackgroundDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate3d(18px, -14px, 0) scale(1.02);
    }
    50% {
        transform: translate3d(-10px, 20px, 0) scale(1.03);
    }
    75% {
        transform: translate3d(14px, 10px, 0) scale(1.01);
    }
    100% {
        transform: translate3d(-16px, -12px, 0) scale(0.99);
    }
}

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

@media (max-width: 1400px) and (min-width: 1000px) {
    .projekte-hero {
        padding: 146px 22px 30px;
    }

    .section-head {
        padding: 0 22px;
    }

    .projekt-card {
        flex: 0 0 34%;
        min-width: 34%;
    }

    .projekt-card__image,
    .projekt-card__image--placeholder {
        height: 195px;
    }
}

@media (max-width: 1024px) {
    .projekte-hero {
        padding: 138px 18px 28px;
    }

    .projekte-hero h1 {
        font-size: clamp(30px, 6vw, 46px);
    }

    .section-head {
        padding: 0 18px;
    }

    .projekt-card {
        flex: 0 0 60%;
        min-width: 60%;
    }

    .projekt-card__image,
    .projekt-card__image--placeholder {
        height: 205px;
    }

    .projekt-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .projektgalerie-einfach {
        padding-bottom: 68px;
    }

    .projekte-hero {
        padding: 122px 14px 22px;
    }

    .projekte-hero::after {
        width: 86px;
        margin-top: 16px;
    }

    .projekte-hero h1 {
        font-size: clamp(27px, 8vw, 38px);
    }

    .projekte-hero p {
        font-size: 13px;
    }

    .projekt-slider-section {
        padding: 18px 0 24px;
    }

    .section-head {
        padding: 0 14px;
        margin-bottom: 11px;
    }

    .section-head h2 {
        font-size: clamp(20px, 6vw, 27px);
    }

    .section-head p {
        font-size: 12px;
    }

    .projekt-card {
        flex: 0 0 80%;
        min-width: 80%;
        padding: 0 5px;
    }

    .projekt-card a {
        border-radius: var(--rg-radius-sm);
    }

    .projekt-card__image,
    .projekt-card__image--placeholder {
        height: 182px;
    }

    .projekt-card__content {
        padding: 12px;
    }

    .projekt-card__content h3 {
        font-size: 18px;
    }

    .projekt-card__content p,
    .projekt-card__content span {
        font-size: 11.5px;
    }

    .projekt-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .projekt-card__placeholder-badge {
        top: 10px;
        left: 10px;
        padding: 7px 10px;
        font-size: 10px;
    }
}