/* gemeinsame zielanteile, getrennt von den punkten der beiden algorithmen */
.cmp-goals { margin-block: 1.4rem; color: #66513c; }
.cmp-goals-intro h3 { margin: .3rem 0 .6rem; font-size: clamp(1.25rem, 2vw, 1.8rem); }
.cmp-goals-intro > p:last-child { color: #7b6a54; font-size: .88rem; line-height: 1.7; }
.cmp-goals-kicker { font-size: .64rem; letter-spacing: .14em; font-weight: 800; color: #a86639; }
.cmp-goals-explanation { padding: .8rem 1rem; margin-block: .9rem 1.2rem; border: 1px solid #d3dbc7; border-radius: .85rem; background: #f0f5e9; }
.cmp-goals-explanation p { margin: .3rem 0; font-size: .78rem; line-height: 1.65; color: #647153; }
.cmp-goals-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; }
.cmp-goal-card { padding: 1.1rem; border: 1px solid #dcc9ab; border-radius: 1rem; background: #fffaf1; min-width: 0; box-shadow: 0 3px 0 #d7c6a626; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.cmp-goal-card:is(:hover,:focus-within) { border-color: #ae8558; box-shadow: 0 0 0 2px #c3a57926, 0 9px 24px #72563322; transform: translateY(-2px); }
.cmp-goal-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.cmp-goal-heading h4 { margin: 0; font-size: 1rem; }
.cmp-goal-heading > span { color: #80715b; font-size: .7rem; font-variant-numeric: tabular-nums; }
.cmp-goal-rule { color: #7c6a50; line-height: 1.6; font-size: .8rem; margin-block: .5rem 1rem; }
.cmp-goal-method { margin-top: 1rem; padding: .7rem; border: 1px solid #e5d9c5; border-radius: .8rem; background: #fffcf6; transition: border-color .18s ease, box-shadow .18s ease; }
.cmp-goal-method:is(:hover,:focus-within) { border-color: #ba7449; box-shadow: 0 3px 15px #ba744924; }
.cmp-goal-method--topsis:is(:hover,:focus-within) { border-color: #4d899a; box-shadow: 0 3px 15px #4d899a24; }
.cmp-goal-method-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem; font-size: .8rem; }
.cmp-goal-method-heading > strong { color: #ab5f34; }
.cmp-goal-method--topsis .cmp-goal-method-heading > strong { color: #3c8092; }
.cmp-goal-method-heading > span { font-size: .68rem; color: #857358; }
.cmp-goal-track { display: flex; height: 1rem; overflow: hidden; border-radius: 1rem; margin-top: .5rem; background: #e7e0d0; }
.cmp-goal-segment { display: block; width: var(--goal-share,0%); height: 100%; transform-origin: left; animation: cmp-goal-fill .45s ease-out both; }
.cmp-goal-segment--matched,.cmp-goal-value--matched > i { background: #ba7449; }
.cmp-goal-segment--missed,.cmp-goal-value--missed > i { background: #e3c2a6; }
.cmp-goal-segment--unknown,.cmp-goal-value--unknown > i { background: #e9b78c; }
.cmp-goal-method--topsis .cmp-goal-segment--matched { background: #4d899a; }
.cmp-goal-method--topsis .cmp-goal-segment--missed { background: #b9d4dd; }
.cmp-goal-method--topsis .cmp-goal-segment--unknown { background: transparent; }
.cmp-goal-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; margin-top: .5rem; }
.cmp-goal-value { display: grid; grid-template-columns: .55rem minmax(0,1fr); gap: .2rem .3rem; align-items: center; }
.cmp-goal-value > i { width: .5rem; height: .5rem; border-radius: 50%; }
.cmp-goal-value > strong { font-size: .8rem; font-variant-numeric: tabular-nums; }
.cmp-goal-value > small { grid-column: 2; font-size: .62rem; color: #7d715c; line-height: 1.5; }
.cmp-goal-note,.cmp-goal-empty { font-size: .75rem; line-height: 1.7; color: #7d6d56; }
.cmp-goals-inactive summary { color: #786345; font-weight: 650; font-size: .78rem; cursor: pointer; }
.cmp-goals-inactive ul { padding-left: 1.2rem; font-size: .75rem; line-height: 1.8; color: #75644b; }
.cmp-goals-inactive { margin-top: 1rem; padding: 1rem; border-radius: .8rem; background: #f3efe4; border: 1px solid #ded4c0; }
.cmp-goals :is(button,summary):focus-visible { outline: 3px solid #5890a1; outline-offset: 3px; }
@keyframes cmp-goal-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 950px) { .cmp-goals-grid { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .cmp-goal-segment { animation: none; } }

.cmp-goal-top-games { margin-top: 1.5rem; }
.cmp-goal-top-games > h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.cmp-goal-game-panel { border: 1px solid #dcc9ab; border-top: 3px solid #b96538; border-radius: .9rem; margin-top: 1rem; padding: .8rem 1rem; background: #fffaf1; }
.cmp-goal-game-panel--topsis { border-top-color: #468797; }
.cmp-goal-game-panel > h4 { margin: .3rem 0 .8rem; }
.cmp-goal-table-wrap { overflow-x: auto; }
.cmp-goal-games-table { border-collapse: collapse; width: 100%; font-size: .74rem; }
.cmp-goal-games-table caption { text-align: left; font-size: .7rem; color: #837159; padding-bottom: .6rem; }
.cmp-goal-games-table th,.cmp-goal-games-table td { padding: .7rem .65rem; border-bottom: 1px solid #e7dccb; text-align: left; vertical-align: top; min-width: 6rem; }
.cmp-goal-games-table thead th { color: #74654d; background: #f3eee2; font-size: .7rem; }
.cmp-goal-games-table tbody th { min-width: 11rem; max-width: 17rem; }
.cmp-goal-games-table :is(th,td) > :is(small,strong) { display: block; line-height: 1.5; }
.cmp-goal-games-table tbody th > small { color: #a46636; font-size: .65rem; }
.cmp-goal-games-table td > small { font-size: .65rem; color: #81725c; }
.cmp-goal-cell-hit { color: #56794e; font-variant-numeric: tabular-nums; }
.cmp-goal-games-table td > .cmp-goal-cell-unknown { color: #3d8196; }
.cmp-goal-cell-na { color: #8d806c; font-size: .7rem; }
.cmp-goal-table-wrap:focus-visible { outline: 3px solid #5890a1; outline-offset: 3px; }

/* gleiche skala für die drei senkrechten zielanteile beider listen */
.cmp-goal-distribution { margin: 1.2rem 0 0; border-top: 1px solid #e5dac6; padding-top: 1rem; }
.cmp-goal-distribution > figcaption { font-weight: 750; font-size: clamp(1.1rem,1.5vw,1.35rem); line-height:1.4; margin-bottom: .8rem; }
.cmp-goal-column-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.8rem; }
.cmp-goal-columns { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.6rem,2vw,1.6rem); margin: 2.2rem 0 .4rem; padding-left: 2.6rem; }
.cmp-goal-axis { position: absolute; inset: 0 auto auto 0; height: 150px; display: flex; flex-direction: column; justify-content: space-between; transform: translateY(-.35rem); width: 2.2rem; color: #8a7b66; font-size: .62rem; text-align: right; }
.cmp-goal-column-slot { min-width: 0; text-align: center; }
.cmp-goal-column-track { height: 150px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #c9b799; background: repeating-linear-gradient(to top,transparent 0,transparent calc(50% - 1px),#e9dfcf calc(50% - 1px),#e9dfcf 50%); }
.cmp-goal-column { position: relative; display: block; width: min(72%,3.8rem); height: var(--goal-height,0%); border-radius: .35rem .35rem 0 0; min-height: 1px; transform-origin: bottom; animation: cmp-goal-rise .45s ease-out both; transition: filter .18s ease, box-shadow .18s ease; }
.cmp-goal-column--matched { background: #ba7449; }
.cmp-goal-method--topsis .cmp-goal-column--matched { background: #4d899a; }
.cmp-goal-column--missed { background: #e3c2a6; }
.cmp-goal-method--topsis .cmp-goal-column--missed { background: #b9d4dd; }
.cmp-goal-column--unknown { background: #e9b78c; }
.cmp-goal-column--unfilled { background: transparent; box-shadow: inset 0 0 0 1px #a8b9b8; }
.cmp-goal-column:is(:hover,:focus-visible) { filter: brightness(1.07); box-shadow: 0 0 0 3px #bda58255; }
.cmp-goal-column--unfilled:is(:hover,:focus-visible) { box-shadow: inset 0 0 0 1px #7f9e9d, 0 0 0 3px #b9d4dd65; }
.cmp-goal-column-number { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: .35rem; white-space: nowrap; color: #66513c; font-size: .73rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.cmp-goal-column-label { display: block; margin-top: .55rem; font-size: .69rem; line-height: 1.5; min-height: 2.2em; color: #7a6b54; }
.cmp-goal-tooltip { position: absolute; z-index: 4; bottom: calc(100% + 1.6rem); left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .15s; width: max-content; max-width: 13rem; padding: .55rem .7rem; border: 1px solid #cdb58f; border-radius: .55rem; background: #fffaf0; box-shadow: 0 4px 15px #55432920; color: #66513c; font-size: .7rem; line-height: 1.5; text-align: center; }
.cmp-goal-column:is(:hover,:focus-visible) .cmp-goal-tooltip { opacity: 1; }
.cmp-goal-column:focus-visible { outline: 3px solid #568694; outline-offset: 3px; }
.cmp-goal-fit { padding: .9rem; border: 1px solid #d8dec9; background: #f4f6ee; border-radius: .8rem; transition: border-color .18s ease, box-shadow .18s ease; }
.cmp-goal-fit:is(:hover,:focus-within) { border-color: #c69a76; box-shadow: 0 0 0 2px #e9b78c33, 0 5px 16px #a1764f16; }
.cmp-goal-fit h5 { margin: 0 0 .8rem; font-size: .85rem; color: #586947; }
.cmp-goal-fit-chart { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.4rem; }
.cmp-goal-fit-method { min-width: 0; padding: .65rem; border: 1px solid transparent; border-radius: .65rem; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.cmp-goal-fit-method:is(:hover,:focus-within) { border-color: #d7b99c; background: #fffaf0; box-shadow: 0 3px 12px #ba744918; }
.cmp-goal-fit-method--topsis:is(:hover,:focus-within) { border-color: #a9c8d0; background: #f7fcfc; box-shadow: 0 3px 12px #4d899a18; }
.cmp-goal-fit-name { display: block; color: #ac6038; font-size: .78rem; }
.cmp-goal-fit-method--topsis .cmp-goal-fit-name { color: #367e91; }
.cmp-goal-fit-number { display: block; font-size: 1.25rem; margin: .25rem 0 .45rem; font-variant-numeric: tabular-nums; }
.cmp-goal-fit-track { display: flex; height: 1rem; border-radius: .4rem; background: #fffdf8; box-shadow: inset 0 0 0 1px #d8d6c7; overflow: hidden; transition: box-shadow .18s ease; }
.cmp-goal-fit-track:is(:hover,:focus-visible) { box-shadow: inset 0 0 0 1px #d3ac8a, 0 0 0 4px #e9b78c50; }
.cmp-goal-fit-track:focus-visible { outline: 2px solid #78885f; outline-offset: 3px; }
.cmp-goal-fit-solid,.cmp-goal-fit-open,.cmp-goal-fit-rest { flex-shrink: 0; height: 100%; border-radius: 0; }
.cmp-goal-fit-solid { width: var(--goal-share); background: #ba7449; }
.cmp-goal-fit-method--topsis .cmp-goal-fit-solid { background: #4d899a; }
.cmp-goal-fit-open { width: var(--goal-share); box-sizing: border-box; background: #e9b78c; box-shadow: inset 1px 0 #fffaf1; }
.cmp-goal-fit-rest { width: var(--goal-share); background: #e3c2a6; box-shadow: inset 1px 0 #fffaf1; }
.cmp-goal-fit-method--topsis .cmp-goal-fit-rest { background: #b9d4dd; }
.cmp-goal-fit-method > small { display: block; font-size: .69rem; line-height: 1.5; margin-top: .4rem; color: #7b6f58; }
.cmp-goal-card--overall { margin-block: 1.1rem; border-width: 2px; background: linear-gradient(115deg,#fff8eb,#f0f5ed); }
.cmp-goal-card--overall > .cmp-goal-heading h4 { font-size: 1.12rem; }
.cmp-goal-table-method--lobbyfox { background: #fff7eb70; }
.cmp-goal-table-method--topsis { background: #eff6f270; }
.cmp-goal-table-method--topsis > td:nth-child(2) > strong { color: #367e91; }
.cmp-goal-table-method--lobbyfox > td:nth-child(2) > strong { color: #ac6038; }
.cmp-goal-table-method--topsis > :is(th,td) { border-bottom: 2px solid #d8c9af; }
.cmp-goal-native-points { color: #7a6850; font-size: .7rem; }
.cmp-goals-explanation > summary { font-size: .8rem; font-weight: 700; cursor: pointer; }
.cmp-goals--area .cmp-goal-card + .cmp-goal-card { margin-top: 1rem; }
@keyframes cmp-goal-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 650px) {
 .cmp-goal-column-groups,.cmp-goal-fit-chart { grid-template-columns: minmax(0,1fr); gap: 1rem; }
 .cmp-goal-card { padding: .8rem; }
 .cmp-goal-column-track,.cmp-goal-axis { height: 130px; }
}
@media (prefers-reduced-motion: reduce) { .cmp-goal-column { animation: none; } .cmp-goal-tooltip,.cmp-goal-card,.cmp-goal-method,.cmp-goal-column,.cmp-goal-fit,.cmp-goal-fit-method,.cmp-goal-fit-track { transition: none; } .cmp-goal-card:is(:hover,:focus-within) { transform: none; } }

.cmp-goal-fit-legend { display:flex;flex-wrap:wrap;gap:.45rem .8rem;margin-top:.75rem;color:#7b6f58;font-size:.68rem; }
.cmp-goal-fit-legend-item { display:inline-flex;align-items:center;gap:.35rem; }
.cmp-goal-fit-key { width:.7rem;height:.7rem;border-radius:.2rem; }
.cmp-goal-fit-key--solid { background:#ba7449; }.cmp-goal-fit-key--open { background:#e9b78c; }.cmp-goal-fit-key--rest { background:#e3c2a6; }.cmp-goal-fit-key--empty { background:transparent; box-shadow:inset 0 0 0 1px #a8b9b8; }
.cmp-goal-fit-method--topsis .cmp-goal-fit-key--solid { background:#4d899a; }.cmp-goal-fit-method--topsis .cmp-goal-fit-key--rest { background:#b9d4dd; }
