/* referenzen.css — Einsatzkarten der Referenzenseite.
   Baut ausschliesslich auf den Tokens aus sub.css auf (Navy/Orange/Inter).
   Kein Rot: Dringlichkeit und Hervorhebung laufen ueber Orange-Intensitaet. */

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin: 28px 0 40px;
}

.ref-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* Orangefarbene Kante als Akzent — greift die Hero-Sprache der Unterseiten auf. */
.ref-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-400) 100%);
    opacity: 0.85;
}

@media (hover: hover) {
    .ref-card:hover {
        box-shadow: var(--shadow-card-hover);
        transform: translateY(-3px);
        border-color: var(--navy-100);
    }
}

.ref-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ref-card-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-700);
}

.ref-card-icon .ico {
    width: 22px;
    height: 22px;
}

.ref-card-title {
    min-width: 0;
}

/* Die Karten stehen innerhalb von .article. Dortige Regeln wie ".article h3"
   und ".article p" haben eine hoehere Spezifitaet als eine einfache Klasse,
   deshalb hier bewusst mit .article davor — sonst greift nur die Haelfte. */
.article .ref-card h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--navy-900);
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Farbe bewusst geerbt (gray-700 statt gray-500): 7,5:1 gegen Weiss
   statt 4,1:1 — deutlich ueber der WCAG-AA-Schwelle von 4,5:1. */
.article .ref-card-meta {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ref-card-meta .ico {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: var(--accent);
}

.ref-dot {
    color: var(--gray-300);
    padding: 0 2px;
}

.ref-card-body {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 8px 16px;
    align-items: baseline;
}

.article .ref-card-body dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy-500);
}

.article .ref-card-body dd {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--gray-700);
}

@media (max-width: 560px) {
    .ref-grid {
        grid-template-columns: 1fr;
    }
    .ref-card {
        padding: 20px;
    }
    .ref-card-body {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .article .ref-card-body dd {
        margin-bottom: 10px;
    }
    .ref-card-body dd:last-child {
        margin-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ref-card {
        transition: none;
    }
    .ref-card:hover {
        transform: none;
    }
}
