/* Direkter Vergleich (PREVIEW-03). Theme-Farben über Variablen (PBASE-02);
   feste Bedeutungsfarben: Sieg Weiß, Remis Weiß 40 %, Niederlage --fcb-red. */

.h2h-title {
    position: relative;
    justify-content: space-between;
}

.h2h-count {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    text-transform: none;
}

.h2h-watermark {
    position: absolute;
    top: 70px;
    right: -70px;
    width: 380px;
    height: 380px;
    object-fit: contain;
    opacity: .07;
    filter: grayscale(1);
    pointer-events: none;
}

.h2h-summary,
.h2h-timeline {
    position: relative;
}

.h2h-summary {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 10px;
}

.h2h-summary.is-spotlight {
    grid-template-columns: 180px minmax(0, 1fr);
    margin-bottom: 18px;
}

.h2h-ring {
    width: 100%;
    height: auto;
}

.h2h-ring circle {
    fill: none;
    stroke-width: 16;
}

.h2h-ring-track {
    stroke: rgba(255, 255, 255, .06);
}

.h2h-ring .is-win,
.h2h-timeline .is-win {
    --h2h-result: #FFFFFF;
}

.h2h-ring .is-draw,
.h2h-timeline .is-draw {
    --h2h-result: rgba(255, 255, 255, .4);
}

.h2h-ring .is-loss,
.h2h-timeline .is-loss {
    --h2h-result: var(--fcb-red);
}

.h2h-ring circle.is-win,
.h2h-ring circle.is-draw,
.h2h-ring circle.is-loss {
    stroke: var(--h2h-result);
}

.h2h-ring-number {
    fill: var(--text-main);
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 900;
}

.h2h-ring-label {
    fill: var(--text-muted);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.h2h-legend {
    display: grid;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
}

.h2h-legend span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h2h-legend i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.h2h-legend .is-win i { background: #FFFFFF; }
.h2h-legend .is-draw i { background: rgba(255, 255, 255, .4); }
.h2h-legend .is-loss i { background: var(--fcb-red); }

.h2h-legend em {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

.h2h-timeline {
    padding-left: 40px;
}

.h2h-timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 13px;
    width: 2px;
    background: linear-gradient(var(--accent), transparent);
}

.h2h-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    height: 72px;
}

.h2h-item::before {
    content: "";
    position: absolute;
    left: -35px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--h2h-result);
    box-shadow: 0 0 0 4px var(--dashboard-bg), 0 0 14px var(--h2h-result);
}

.h2h-item.is-draw::before {
    width: 12px;
    height: 12px;
    border: 3px solid rgba(255, 255, 255, .55);
    background: var(--dashboard-bg);
}

.h2h-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.h2h-competition {
    flex: none;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.h2h-competition.is-light {
    filter: brightness(0) invert(1);
}

.h2h-cup,
.h2h-venue {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.h2h-cup {
    padding: 3px;
    stroke: #F5C400;
}

.h2h-competition-text {
    display: grid;
    place-items: center;
    border: 1px solid var(--accent-border);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 900;
}

.h2h-when {
    min-width: 0;
}

.h2h-when b {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
}

.h2h-when span {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h2h-venue {
    flex: none;
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.h2h-score {
    color: var(--h2h-result);
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 900;
    white-space: nowrap;
}

.h2h-item.is-draw .h2h-score {
    color: var(--text-main);
}

.h2h-score small {
    margin-left: 6px;
    color: var(--text-muted);
    font-size: 15px;
}

/* 1–3 Duelle: größere Einträge, damit die Kachel nicht halb leer wirkt (PBASE-04). */
.h2h-timeline.is-spotlight .h2h-item {
    height: 104px;
}

.h2h-timeline.is-spotlight .h2h-when b {
    font-size: 28px;
}

.h2h-timeline.is-spotlight .h2h-when span {
    font-size: 18px;
}

.h2h-timeline.is-spotlight .h2h-competition {
    width: 46px;
    height: 46px;
}

.h2h-timeline.is-spotlight .h2h-score {
    font-size: 54px;
}

/* Leerzustand (MDSET-04) */
.h2h-empty {
    position: relative;
    display: grid;
    flex: 1;
    align-content: center;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.h2h-empty strong {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
}

.h2h-empty span {
    color: var(--text-muted);
    font-size: 22px;
}
