.feature-vermoegensrechner {
    .hero {
        display: grid;
        grid-template-rows: auto;
        min-height: clamp(40vh, 30vh + 10vw, 70vh);
        position: relative;
        padding: 0;
        background-image: url("../assets/images/schiff.png");
        background-repeat: no-repeat;
        background-position: calc(60% + 20px) calc(70% - 30px);

        @media (min-width: 360px) {
            padding: var(--gutter);
        }

        .hero__logo {
            justify-self: center;
            margin-top: 1rem;
            width: clamp(150px, 10vw, 250px);
            height: auto;
        }

        .hero__group {
            align-self: center;
            justify-self: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            max-width: 900px;
            color: var(--color-white);

            .hero__title {
                font-family: var(--font-worksans-black);
                font-weight: var(--fw-black);
                font-size: clamp(var(--h5), 1.15rem + 1vw, var(--h4));
                line-height: 1;
                background: var(--color-cd-rot);
                padding: 0.5rem;
                position: relative;
                top: 20px;
            }

            .hero__value {
                font-family: var(--font-worksans-black);
                font-weight: var(--fw-black);
                font-size: clamp(var(--h3), 1.1rem + 3vw, var(--h2));
                line-height: 1;
                padding: 0.5rem;
                background: var(--color-cd-rot);
                white-space: nowrap;
            }

            .hero__note {
                background-color: var(--color-cd-dunkelrot);
                padding: 0.5rem;
                margin-top: -20px;
                position: relative;
                max-width: 400px;
                font-size: clamp(0.4rem, 0.3rem + 1vw, 0.8rem);

                @media (min-width: 650px) {
                    left: 120px;
                }
            }


        }
    }

}

.download-button {
    background-color: #ff0000;
    border-radius: 28px;
    border: 1px solid #fff;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: Arial;
    font-size: 17px;
    font-weight: bold;
    padding: 16px 31px;
    text-decoration: none;
}

.download-button:hover {
    background-color: #6f003b;
    text-decoration: none;
}

.download-button:active {
    position: relative;
    top: 1px;
}

.feature-germany-map {

    h2,
    h3 {
        color: var(--color-cd-rot);
    }

    .row {
        margin-top: var(--gutter);
    }
}

.feature-chart {
    .chart-container {
        position: relative;
        width: 500px;
        height: 500px;
        padding: 1rem;
        /*animation: pulse 2s infinite;*/
    }
}

.feature-vermoegensverteilung {
    h2 {
        color: var(--color-white);
    }

    .chart-container {
        width: 100%;
        display: flex;
        justify-content: center;
        transition: pulse 0.2s ease;

        canvas {
            max-width: 90vw;
            max-height: 90vh;
        }
    }
}

.feature-verteilung-steuerlast {

    h2,
    h3 {
        color: var(--color-cd-rot);
    }
}

.feature-diagram {
    * {
        color: var(--color-white)
    }

    .img-container {
        padding: 0.5rem;
        margin-top: 1rem;

        img {
            border-radius: var(--radius)
        }
    }
}

.feature-mitarbeiter-galerie {
    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;

        .card {
            background-color: #f1f1f4;
            border-radius: var(--radius);
            padding: var(--gutter);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            min-height: 340px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
            text-align: center;
            transition: transform 0.2s ease;

            img {
                height: auto;
                border-radius: 12px;
                background-color: #eee;
            }

            h3 {
                color: var(--color-cd-rot);
                margin: 1rem 0 0.2rem;
                font-size: 1.1rem;
            }

            small {
                text-align: justify;
            }
        }
    }


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


    @media (max-width: 600px) {
        .card {
            min-height: auto;
        }
    }
}

.feature-slider {
    overflow: hidden;

    * {
        color: var(--color-white);
    }

    .swiper {
        width: 90%;
        max-width: 300px;
        padding: 40px 0;
        overflow: visible;

        .swiper-slide {
            text-align: center;
            border-radius: 10px;

            img {
                width: 100%;
                height: auto;
                border-radius: 10px 10px 0 0;
            }
        }

        .swiper-button-prev,
        .swiper-button-next {
            font-weight: bolder;
            margin: 0 -40px;
        }

        .swiper-button-prev.swiper_1-prev,
        .swiper-button-next.swiper_1-next {
            color: var(--color-white);
        }

        .swiper-button-prev.swiper_2-prev,
        .swiper-button-next.swiper_2-next {
            color: var(--color-white);
        }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 50px !important;
        }

        .swiper-pagination-bullet {
            width: 10px;
            height: 10px;
            margin: 0 4px;
            border-radius: 50%;
            transition: background 0.3s;
        }

        .swiper-pagination-bullet-active {
            background: #ffffff;
            box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
        }
    }

    .slide-text-container {
        margin-top: var(--gutter);

        text-align: center;

        .slide-text {
            margin-top: var(--gutter);
            font-family: var(--font-worksans-black);
            font-weight: var(--fw-black);
        }

        .slide-subtext {
            margin: var(--gutter);
            text-align: justify;
            min-height: 250px;
        }
    }
}

.feature-forderung {
    h2 {
        color: var(--color-cd-rot)
    }

    h3 {
        color: var(--color-white)
    }

    .grid {
        display: grid;
        max-width: 100%;
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas:
            "a a b b"
            "c c d d"
            "e e f f";
        gap: 1.5rem;
        margin-top: var(--gutter);

        .card {
            background-color: var(--color-cd-rot);

            background-repeat: no-repeat;
            background-position: 90% 80%;
            background-size: 30%;

            color: white;
            padding: var(--gutter);
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            gap: 1rem;
            min-width: 0;

            p {
                color: var(--color-white);
                font-size: var(--h5);
            }
        }

        .card::before {
            content: '';
            position: absolute;
            inset: 0;
            mix-blend-mode: overlay;
            opacity: 0.08;
            z-index: 0;
        }

        .card * {
            position: relative;
            z-index: 1;
        }

    }

    .a {
        grid-area: a;
        background-image: url('../assets/images/piktogramme/forderung/top2.svg')
    }

    .b {
        grid-area: b;
        background-image: url('../assets/images/piktogramme/forderung/betriebsvermoegen.svg')
    }

    .c {
        grid-area: c;
        background-image: url('../assets/images/piktogramme/forderung/eingangssteuersatz.svg')
    }

    .d {
        grid-area: d;
        background-image: url('../assets/images/piktogramme/forderung/spitzensteuersatz.svg')
    }

    .e {
        grid-area: e;
        background-image: url('../assets/images/piktogramme/forderung/juristische-personen.svg')
    }

    .f {
        grid-area: f;
        background-image: url('../assets/images/piktogramme/forderung/vermoegenswerte.svg')
    }

    @media (max-width: 768px) {
        .grid {
            grid-template-columns: 1fr;
            grid-template-areas:
                "a"
                "b"
                "c"
                "d"
                "e"
                "f"
                "g";
        }
    }

    .flyer-container {
        margin-top: 2rem;

        h3 {
            margin: 3rem 0 2rem 0;
            color: var(--color-cd-rot);
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

        .card-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .download-card {
            background: #fff;
            border: 1px solid rgb(124 139 154/25%);
            border-radius: 5px;
            padding: 1rem 1.2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-label {
            font-weight: bold;
        }

        .download-icon {
            background: #f4f4f4;
            border-radius: 0.5rem;
            padding: 0.4rem 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;

            .svg {
                width: 20px;
                height: 20px;
                stroke: red;
            }
        }
    }

    @media (max-width: 600px) {
        .card-row {
            grid-template-columns: 1fr;
        }
    }
}

.feature-footer {
    .footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2rem;
        color: var(--color-white);
        min-height: 160px;

        p {
            font-size: var(--h7);
        }

        .footer-left {
            flex: 0 0 20%;

        }

        .footer-middle {
            flex: 0 0 20%;

            a {
                padding-bottom: 0.5rem;
                display: inline-block;
            }
        }

        .footer-right {
            flex: 0 0 50%;
            display: flex;
            justify-content: center;
            align-self: flex-end;
            gap: 12px;
            width: 100%;

            @media (min-width: 576px) {
                justify-content: flex-end;
            }

            img {
                width: 32px;
                height: 32px;
                object-fit: contain;
                transition: transform 0.2s ease;
            }

            a:hover img {
                transform: scale(1.1);
            }
        }

        .footer-logo {
            max-width: 150px;
            margin-bottom: 1rem;
        }
    }

    /* Responsive Fallback */
    @media (max-width: 768px) {
        .footer {
            flex-direction: column;
            gap: 3rem;
        }

        .footer-left,
        .footer-right {
            flex: 0 0 100%;
            text-align: center;
            justify-content: center;
            margin-top: 1rem;
        }
    }
}