/* =========================================================
   UWG KREIS DÜREN – ELEMENTOR WIDGET
========================================================= */

.uwg-home-intro,
.uwg-home-intro * {
    box-sizing: border-box;
}

.uwg-home-intro {
    --uwg-purple: #261f63;
    --uwg-purple-dark: #1c174e;
    --uwg-yellow: #ffd003;
    --uwg-text: #25242c;
    --uwg-muted: #686771;
    --uwg-overlay-custom: rgba(38, 31, 99, 0.24);

    width: calc(100% - 50px);
    margin: 25px auto;
    padding: 0;
    font-family: inherit;
}

/* HERO */
.uwg-home-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 28px;
    background: var(--uwg-purple);
}

.uwg-home-hero__images {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.uwg-home-hero__image {
    position: absolute;
    inset: -3px;
    opacity: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1);
    transition:
        opacity 1.35s cubic-bezier(.22, .61, .36, 1),
        transform 6s linear;
    will-change: opacity, transform;
}

.uwg-home-hero__image.is-active {
    opacity: 1;
    transform: scale(1.045);
}

.uwg-home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(32, 27, 82, 0.42) 0%,
            var(--uwg-overlay-custom) 42%,
            rgba(48, 43, 65, 0.11) 72%,
            rgba(255, 208, 3, 0.05) 100%
        ),
        linear-gradient(
            180deg,
            rgba(12, 12, 25, 0.04) 0%,
            rgba(12, 12, 25, 0.08) 50%,
            rgba(12, 12, 25, 0.24) 100%
        );
}

.uwg-home-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(1180px, 94%);
    height: 540px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        rgba(18, 16, 52, 0.21) 0%,
        rgba(18, 16, 52, 0.08) 50%,
        transparent 76%
    );
}

.uwg-home-hero__content {
    position: relative;
    z-index: 2;
    width: min(1250px, calc(100% - 70px));
    margin: 0 auto;
    padding: 125px 30px;
    color: #ffffff;
    text-align: center;
}

.uwg-home-hero h1 {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0;
    color: #ffffff;
    font-family: inherit;
    font-size: clamp(52px, 4.6vw, 84px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.22);
}

.uwg-home-hero h2 {
    max-width: 1150px;
    margin: 0 auto 22px;
    padding: 0;
    color: #ffffff;
    font-family: inherit;
    font-size: clamp(29px, 2.5vw, 46px);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -0.025em;
    text-shadow: 0 5px 26px rgba(0, 0, 0, 0.23);
}

.uwg-home-hero__text,
.uwg-home-hero__text p {
    max-width: 1100px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.96);
    font-family: inherit;
    font-size: clamp(17px, 1.25vw, 23px);
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.32);
}

.uwg-home-hero__text p + p {
    margin-top: 1em;
}

/* BUTTON */
.uwg-home-hero__button-wrapper {
    margin-top: 34px;
}

.uwg-home-hero .uwg-home-hero__button,
.uwg-home-hero .uwg-home-hero__button:visited {
    background-color: #ffd003 !important;
    fill: #261f63 !important;
    color: #261f63 !important;
    border-style: none !important;
    text-decoration: none !important;
    transition:
        background-color 0.4s ease,
        color 0.4s ease,
        fill 0.4s ease,
        box-shadow 0.4s ease !important;
}

.uwg-home-hero .uwg-home-hero__button:hover,
.uwg-home-hero .uwg-home-hero__button:focus {
    background-color: #261f63 !important;
    fill: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5) !important;
}

.uwg-home-hero .uwg-home-hero__button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* HERO EINGANGSANIMATION */
.uwg-home-hero__content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: uwgHeroContentIn 0.8s ease forwards;
}

.uwg-home-hero__content > *:nth-child(1) { animation-delay: 0.08s; }
.uwg-home-hero__content > *:nth-child(2) { animation-delay: 0.16s; }
.uwg-home-hero__content > *:nth-child(3) { animation-delay: 0.24s; }
.uwg-home-hero__content > *:nth-child(4) { animation-delay: 0.32s; }

@keyframes uwgHeroContentIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WÄHLERGEMEINSCHAFTEN */
.uwg-partners {
    position: relative;
    width: 100%;
    margin-top: 25px;
    padding: 62px 0 48px;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.uwg-partners__header {
    width: min(1350px, calc(100% - 60px));
    margin: 0 auto 34px;
    text-align: center;
}

.uwg-partners__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 8px 15px;
    border-radius: 999px;
    background: var(--uwg-yellow);
    color: var(--uwg-purple-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.uwg-partners__header h2 {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    color: var(--uwg-purple);
    font-family: inherit;
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

/* ENDLOS-TICKER */
.uwg-partners__marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.uwg-partners__track {
    display: flex;
    width: max-content;
    animation: uwgPartnersMarquee var(--uwg-ticker-duration, 55s) linear infinite;
    animation-play-state: running;
    will-change: transform;
}

.uwg-partners__group {
    display: flex;
    flex-shrink: 0;
    gap: 22px;
    padding-right: 22px;
}

.uwg-partners__marquee:hover .uwg-partners__track,
.uwg-partners__marquee:focus-within .uwg-partners__track {
    animation-play-state: running;
}

@keyframes uwgPartnersMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* LOGO-KARTEN */
.uwg-partner-card {
    position: relative;
    flex: 0 0 270px;
    min-height: 195px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 20px 20px;
    overflow: hidden;
    border: 1px solid rgba(38, 31, 99, 0.11);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(28, 23, 78, 0.06);
    color: var(--uwg-text);
    text-decoration: none !important;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.uwg-partner-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: var(--uwg-yellow);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.uwg-partner-card:hover {
    transform: translateY(-7px);
    border-color: rgba(38, 31, 99, 0.22);
    box-shadow: 0 20px 45px rgba(28, 23, 78, 0.13);
}

.uwg-partner-card:hover::before {
    transform: scaleX(1);
}

.uwg-partner-card:focus-visible {
    outline: 3px solid var(--uwg-yellow);
    outline-offset: 3px;
}

.uwg-partner-card__logo {
    width: 100%;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.uwg-partner-card__logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 220px;
    object-fit: contain;
    object-position: center;
}

.uwg-partner-card__name {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uwg-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.38;
    text-align: center;
    transition: color 0.3s ease;
}

.uwg-partner-card:hover .uwg-partner-card__name {
    color: var(--uwg-purple);
}

/* LINK UNTER DEM TICKER */
.uwg-partners__link-wrapper {
    width: min(1350px, calc(100% - 60px));
    margin: 14px auto 0;
    text-align: center;
}

.uwg-partners__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--uwg-purple);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.uwg-partners__link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.uwg-partners__link:hover {
    color: #4b3fa1;
}

.uwg-partners__link:hover svg {
    transform: translateX(5px);
}

/* TABLET */
@media (max-width: 1024px) {
    .uwg-home-hero {
        min-height: 740px;
        border-radius: 24px;
    }

    .uwg-home-hero__content {
        width: min(920px, calc(100% - 40px));
        padding: 110px 20px;
    }

    .uwg-partner-card {
        flex-basis: 250px;
    }
}

/* SMARTPHONE */
@media (max-width: 767px) {
    .uwg-home-intro {
        width: calc(100% - 30px);
        margin: 15px auto;
    }

    .uwg-home-hero {
        min-height: 700px;
        border-radius: 20px;
    }

    .uwg-home-hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(38, 31, 99, 0.37) 0%,
                rgba(38, 31, 99, 0.22) 42%,
                rgba(24, 21, 60, 0.49) 100%
            );
    }

    .uwg-home-hero::after {
        width: 100%;
        height: 86%;
    }

    .uwg-home-hero__content {
        width: 100%;
        padding: 95px 20px;
    }

    .uwg-home-hero h1 {
        margin-bottom: 16px;
        font-size: clamp(40px, 11vw, 56px);
        font-weight: 500;
        line-height: 1.03;
    }

    .uwg-home-hero h2 {
        margin-bottom: 18px;
        font-size: clamp(24px, 6.8vw, 33px);
        line-height: 1.18;
    }

    .uwg-home-hero__text,
    .uwg-home-hero__text p {
        font-size: 16px;
        line-height: 1.58;
    }

    .uwg-home-hero__button-wrapper {
        margin-top: 28px;
    }

    .uwg-partners {
        margin-top: 15px;
        padding: 45px 0 38px;
    }

    .uwg-partners__header {
        width: calc(100% - 24px);
        margin-bottom: 27px;
    }

    .uwg-partners__label {
        font-size: 10px;
        letter-spacing: 0.05em;
    }

    .uwg-partners__header h2 {
        font-size: 30px;
    }

    .uwg-partners__marquee {
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
    }

    .uwg-partners__group {
        gap: 14px;
        padding-right: 14px;
    }

    .uwg-partner-card {
        flex-basis: 225px;
        min-height: 180px;
        padding: 20px 16px 17px;
        border-radius: 16px;
    }

    .uwg-partner-card__logo {
        height: 96px;
    }

    .uwg-partner-card__name {
        min-height: 42px;
        font-size: 13px;
    }

    .uwg-partners__link-wrapper {
        width: calc(100% - 30px);
    }

    .uwg-partners__link {
        font-size: 14px;
    }
}

/* SEHR KLEINE SMARTPHONES */
@media (max-width: 390px) {
    .uwg-home-hero {
        min-height: 730px;
        border-radius: 17px;
    }

    .uwg-home-hero__content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .uwg-home-hero h1 {
        font-size: 38px;
    }

    .uwg-home-hero h2 {
        font-size: 24px;
    }

    .uwg-partner-card {
        flex-basis: 215px;
    }
}

/* REDUZIERTE BEWEGUNGEN */
@media (prefers-reduced-motion: reduce) {
    .uwg-home-hero__image {
        transition: opacity 0.01ms !important;
    }

    .uwg-home-hero__image.is-active {
        transform: none;
    }

    .uwg-home-hero__content > * {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .uwg-partner-card {
        transition: none;
    }

    .uwg-partners__track {
        animation: none;
    }
}
