/* =========================================
   Referenzen Seite – Matmoe Modern
   ========================================= */

.referenzen-page {
    background:
        radial-gradient(circle at top right, rgba(144,192,39,0.10), transparent 30%),
        linear-gradient(180deg, #f7f9f7 0%, #ffffff 100%);
}

/* Hero */

.referenzen-hero {
    padding: 150px 0 90px;
    background:
        radial-gradient(circle at top right, rgba(144,192,39,0.18), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #eef3ed 100%);
}

.referenzen-hero-inner {
    max-width: 940px;
}

.referenzen-kicker {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--matmoe-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.referenzen-hero h1,
.referenzen-trust h2,
.referenzen-section-head h2 {
    margin: 0;
    color: #111827;
    letter-spacing: -0.045em;
}

.referenzen-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
}

.referenzen-hero h1 span,
.referenzen-trust h2 span {
    color: var(--matmoe-primary);
}

.referenzen-hero p {
    max-width: 780px;
    margin: 0;
    color: #374151;
    font-size: 20px;
    line-height: 1.65;
}

/* Overview */

.referenzen-overview {
    padding: 90px 0 70px;
}

.referenzen-section-head {
    max-width: 760px;
    margin-bottom: 42px;
}

.referenzen-section-head h2 {
    margin-bottom: 16px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
}

.referenzen-section-head p {
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.7;
}

.referenzen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.referenzen-card {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    padding: 36px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(17,24,39,0.08);
    box-shadow: 0 24px 70px rgba(17,24,39,0.09);
    transition: all 0.25s ease;
}

.referenzen-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(144,192,39,0.14), transparent 38%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.referenzen-card:hover {
    transform: translateY(-6px);
    border-color: rgba(144,192,39,0.38);
    box-shadow: 0 30px 90px rgba(17,24,39,0.14);
}

.referenzen-card:hover::before {
    opacity: 1;
}

.referenzen-number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--matmoe-primary-soft);
    color: var(--matmoe-primary-dark);
    font-size: 14px;
    font-weight: 900;
}

.referenzen-card h3 {
    position: relative;
    margin: 0 0 16px;
    color: #111827;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.referenzen-card p {
    position: relative;
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.75;
}

/* Trust */

.referenzen-trust {
    padding: 40px 0 100px;
}

.referenzen-trust-box {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 46px;
    align-items: center;
    padding: 52px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(144,192,39,0.16), transparent 36%),
        linear-gradient(180deg, #111827 0%, #070a08 100%);
    box-shadow: 0 28px 90px rgba(17,24,39,0.18);
}

.referenzen-trust h2 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
}

.referenzen-trust p {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 18px;
    line-height: 1.75;
}

.referenzen-facts {
    display: grid;
    gap: 16px;
}

.referenzen-facts div {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
}

.referenzen-facts strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.1;
}

.referenzen-facts span {
    color: rgba(255,255,255,0.68);
    font-size: 15px;
    line-height: 1.5;
}

/* Responsive */

@media (max-width: 1000px) {
    .referenzen-grid,
    .referenzen-trust-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .referenzen-hero {
        padding: 110px 0 64px;
    }

    .referenzen-hero p,
    .referenzen-section-head p,
    .referenzen-trust p {
        font-size: 17px;
    }

    .referenzen-overview {
        padding: 64px 0 50px;
    }

    .referenzen-trust {
        padding: 30px 0 76px;
    }

    .referenzen-card {
        min-height: auto;
        padding: 30px;
        border-radius: 24px;
    }

    .referenzen-trust-box {
        padding: 32px;
        border-radius: 28px;
    }
}
/* Referenzen Listen */

.referenzen-list-card {
    padding: 42px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(17,24,39,0.08);
    box-shadow: 0 24px 70px rgba(17,24,39,0.09);
}

.referenzen-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.referenzen-list li {
    position: relative;
    padding-left: 30px;
    color: #374151;
    font-size: 17px;
    line-height: 1.65;
}

.referenzen-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--matmoe-primary);
    box-shadow: 0 0 0 6px rgba(144,192,39,0.14);
}

.referenzen-list strong {
    color: #111827;
    font-weight: 900;
}

.referenzen-list a {
    color: var(--matmoe-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.referenzen-list a:hover {
    text-decoration: underline;
}

/* Bild */

.referenzen-image-section {
    padding: 0 0 70px;
}

.referenzen-image-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(17,24,39,0.08);
    box-shadow: 0 24px 70px rgba(17,24,39,0.10);
}

.referenzen-image-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
}

.referenzen-image-card figcaption {
    margin-top: 14px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.referenzen-moderation {
    padding-top: 20px;
}

@media (max-width: 700px) {
    .referenzen-list-card {
        padding: 28px;
        border-radius: 24px;
    }

    .referenzen-list li {
        font-size: 16px;
    }
}