/* die beispiele teilen sich einen rahmen, aber jede liste hat ihre eigenen seiten */
.cmp-games { margin-block: 30px 14px; min-width: 0; color: #66503a; }
.cmp-games-intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cmp-games-intro h2 { margin: 5px 0 0; font-size: clamp(21px, 2vw, 28px); line-height: 1.2; }
.cmp-games-intro > p { max-width: 21rem; margin: 0; font-size: 13px; text-align: right; color: #806f58; }
.cmp-games-kicker { font-size: 10px; letter-spacing: .16em; font-weight: 750; color: #b45e34; }
.cmp-games-frame { overflow: hidden; border: 1px solid #d8c4a4; border-radius: 18px; background: #faf4e8; box-shadow: 0 4px 0 #e9dfcc; }
.cmp-games-algorithm { padding: 17px; min-width: 0; --cmp-card-accent: #b95f32; }
.cmp-games-algorithm + .cmp-games-algorithm { border-top: 2px solid #aec5bc; background: #f0f6f3; --cmp-card-accent: #347f98; }
.cmp-games-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; margin-bottom: 15px; }
.cmp-games-algorithm-name { display: flex; align-items: center; gap: 10px; }
.cmp-games-algorithm-name .algorithm-logo { flex-shrink: 0; width: 40px; height: 40px; color: var(--cmp-card-accent); }
.cmp-games-algorithm-name h3 { font-size: 21px; margin: 0 0 2px; }
.cmp-games-algorithm-name p { font-size: 12px; margin: 0; color: #79664e; }
.cmp-games-pages { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.cmp-games-page-label { font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.cmp-games-page-button { padding: 9px 11px; border: 1px solid #c9ad87; border-radius: 9px; background: #fffbf2; color: var(--cmp-card-accent); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s; }
.cmp-games-page-button:hover:not(:disabled) { background: #eee9d7; transform: translateY(-1px); }
.cmp-games-page-button:disabled { opacity: .45; cursor: default; }
.cmp-games :is(button, summary):focus-visible { outline: 3px solid #347f98; outline-offset: 3px; }
.cmp-games-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.cmp-games-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #dcc7a4; border-radius: 11px; overflow: hidden; background: #fffaf1; box-shadow: 0 2px 0 #eadcc7; animation: cmp-game-arrive .35s ease both; transition: transform .2s, box-shadow .2s; }
.cmp-games-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px #6145241c; }
.cmp-games-cover { position: relative; aspect-ratio: 460 / 215; overflow: hidden; background: #e5d9bd; }
.cmp-games-cover > svg { width: 100%; height: 100%; display: block; }
.cmp-games-rank { position: absolute; left: 8px; top: 8px; padding: 5px 7px; border: 1px solid #ffffffa8; border-radius: 7px; background: #fffcf0ee; color: #614b35; font-size: 12px; font-weight: 750; box-shadow: 0 2px 5px #24332220; }
.cmp-games-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 13px 11px 11px; min-width: 0; }
.cmp-games-name { font-size: 15px; line-height: 1.35; min-height: 2.7em; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-games-points { max-width: 100%; font-size: 14px; line-height: 1.35; color: #80481f; background: #fff1d8; border: 1px solid #dfb77b; border-radius: 7px; padding: 5px 7px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cmp-games-algorithm[data-algorithm="topsis"] .cmp-games-points { color: #306c80; background: #edf5f3; border-color: #b6d1d4; }
.cmp-games-price { font-size: 14px; font-variant-numeric: tabular-nums; }
.cmp-games-price-note { margin-top: -5px; font-size: 11px; color: #806f58; }
.cmp-games-rating, .cmp-games-hours, .cmp-games-wishlist { margin: 0; font-size: 12px; line-height: 1.5; }
.cmp-games-rating > span { display: block; color: #8b755d; font-size: 11px; }
.cmp-games-wishlist { color: #a2552e; }
.cmp-games-hours { color: #607550; }
.cmp-games-card-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; width: 100%; margin-top: auto; padding-top: 9px; border-top: 1px solid #eadbc4; }
.cmp-games-status { padding: 2px 5px; font-size: 10px; border: 1px solid #bdcba8; border-radius: 4px; background: #eef2e6; color: #586e43; }
.cmp-games-genres { font-size: 10px; color: #8b755d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-games-empty { grid-column: 1 / -1; padding: 15px; }
@keyframes cmp-game-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1300px) { .cmp-games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 850px) { .cmp-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmp-games-intro { align-items: flex-start; flex-direction: column; gap: 7px; } .cmp-games-intro > p { text-align: left; } }
@media (max-width: 540px) { .cmp-games-grid { grid-template-columns: minmax(0, 1fr); } .cmp-games-algorithm { padding: 13px; } .cmp-games-pages { width: 100%; flex-wrap: wrap; } .cmp-games-page-label { flex: 1; min-width: 90px; } .cmp-games-name { min-height: 0; font-size: 18px; } .cmp-games-copy { padding: 15px; } .cmp-games-rating, .cmp-games-hours, .cmp-games-wishlist { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .cmp-games-card { animation: none; } .cmp-games-card, .cmp-games-page-button { transition: none; } }

.cmp-games-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-games-cover--missing { background: linear-gradient(135deg,#e6dac4,#b9c8ad); }
.cmp-games-steam { margin-top: auto; padding-top: .7rem; color: #985329; font-weight: 700; font-size: .8rem; }
.cmp-games-runtime { display: block; margin-left: .6rem; color: #6c6b5c; }
.cmp-games-discount { font-size:.78rem; color:#62734d; margin:.25rem 0; }

/* die bewertung und der shop bleiben bei jeder karte direkt erreichbar */
.cmp-games-actions { display: flex; flex-wrap: wrap; gap: .45rem .8rem; align-items: center; margin-top: auto; padding-top: .65rem; border-top: 1px solid var(--border, #e5d4bb); }
.cmp-games-details { appearance: none; border: 0; background: transparent; padding: .3rem 0; color: #914f2d; font: inherit; font-size: .8rem; font-weight: 750; text-align: left; cursor: pointer; }
.cmp-games-details:hover { color: #b45b27; text-decoration: underline; text-underline-offset: .2em; }
.cmp-games-details:focus-visible { outline: 2px solid #b56b38; outline-offset: 4px; border-radius: .2rem; }
.cmp-games-actions .cmp-games-steam { margin: 0; padding: .3rem 0; }

.cmp-detail-page { width: min(1500px, calc(100% - 3rem)); margin: 2rem auto 4rem; color: #66503a; animation: cmp-game-arrive .3s ease both; }
.cmp-detail-algorithms { margin: 1rem 0; }
.cmp-detail-simulation { margin: 1rem 0; padding: .85rem 1rem; background: #edf3e6; border: 1px solid #c5d1b7; border-radius: .8rem; line-height: 1.6; color: #55674c; }
.cmp-detail-scope { font-size: clamp(1.3rem, 2.2vw, 1.9rem); margin-block: 1.4rem; }
.cmp-detail-content > .rec-detail-topline { display: none; }
.cmp-detail-content .algorithm-detail-switch { display: none; }
.cmp-detail-content .lobby-detail-individual .rec-detail-topline { display: none; }
.cmp-detail-state { min-height: 12rem; display: grid; align-content: center; }
@media (max-width: 650px) { .cmp-detail-page { width: calc(100% - 1.5rem); margin-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { .cmp-detail-page { animation: none; } }

/* jede liste hat einen eigenen seitensprung */
.cmp-games-page-jump { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cmp-games-page-jump-label { display: flex; align-items: center; gap: .4rem; font-size: .75rem; }
.cmp-games-page-input { width: 5rem; padding: .45rem; border: 1px solid #c9ad87; border-radius: .5rem; background: #fffaf1; color: #66503a; font: inherit; font-variant-numeric: tabular-nums; }
.cmp-games-page-input:focus-visible { outline: 3px solid #347f98; outline-offset: 2px; }
.cmp-games-page-input[aria-invalid="true"] { border-color: #ad533a; outline-color: #ad533a; }
.cmp-games-page-error { flex-basis: 100%; color: #914f2d; font-size: .75rem; }

/* ein neuer bereich ordnet dieselben top-spiele, ihr gesamtrang bleibt sichtbar */
.cmp-games-sorting { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .8rem; margin: -.2rem 0 1rem; padding: .65rem .8rem; border-left: 3px solid var(--cmp-card-accent); border-radius: 0 .55rem .55rem 0; background: #fffaf1b8; font-size: .8rem; line-height: 1.5; }
.cmp-games-sorting > strong { color: var(--cmp-card-accent); }
.cmp-games-sort-rank-note { flex-basis: 100%; color: #79664e; }
.cmp-games-rank { max-width: calc(100% - 16px); box-sizing: border-box; overflow-wrap: anywhere; }

/* der gewählte bereich ergänzt die gesamtpunkte, ersetzt sie aber nicht */
.cmp-games-contribution { display:grid;gap:3px;margin:2px 0 5px;padding:8px 9px;border-radius:9px;background:#fbeddc;border-left:3px solid #b85c32;color:#714c2e;line-height:1.35; }
.cmp-games-contribution-label { font-size:.69rem;font-weight:650; }
.cmp-games-contribution strong { font-size:.82rem;font-variant-numeric:tabular-nums; }
.cmp-games-contribution small { font-size:.65rem; }
.cmp-games-contribution--topsis { background:#edf5f6;border-color:#377e95;color:#315f6e; }
.cmp-games-contribution-endpoint { font-variant-numeric:tabular-nums; }


/* die statuszahlen erklären eine leere liste direkt an ihrem platz */
.cmp-games-empty-reasons { margin:0;border:1px solid #dfc6a6;border-radius:12px;background:#fffaf3;line-height:1.6; }
.cmp-games-empty-reasons > strong { font-size:1rem; }
.cmp-games-empty-reasons p { margin:.65rem 0 0;font-size:.85rem; }
.cmp-games-empty-counts { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1rem 0; }
.cmp-games-empty-count { padding:.75rem 1rem;border:1px solid #e1c8a9;border-radius:9px;background:#fbf0e3; }
.cmp-games-empty-count dt { font-size:.8rem;line-height:1.4; }
.cmp-games-empty-count dd { margin:.25rem 0 0;color:var(--cmp-card-accent);font-size:1.3rem;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.cmp-games-algorithm[data-algorithm=topsis] .cmp-games-empty-reasons { border-color:#bdd1d2;background:#f5f9f8; }
.cmp-games-algorithm[data-algorithm=topsis] .cmp-games-empty-count { border-color:#c7d8d8;background:#eaf2f2; }
@media(max-width:600px) { .cmp-games-empty-counts { grid-template-columns:1fr; }.cmp-games-empty-count { display:flex;justify-content:space-between;align-items:center;gap:1rem; }.cmp-games-empty-count dd { margin:0; } }

/* pflichten zeigen person, wunsch und fehlende angabe zusammen */
.cmp-requirement-hints { display:grid;gap:.8rem;margin-top:1.3rem;padding-top:1.25rem;border-top:1px solid #e5ceb1;min-width:0; }
.cmp-requirement-hints[hidden] { display:none; }
.cmp-requirement-heading { display:grid;gap:.35rem; }
.cmp-requirement-kicker { color:#a65a30;font-size:.63rem;letter-spacing:.13em;font-weight:750; }
.cmp-requirement-heading h4 { margin:0;font-size:1.15rem;color:#694d34;line-height:1.35; }
.cmp-requirement-tabs { display:flex;flex-wrap:wrap;gap:.5rem; }
.cmp-requirement-button,.cmp-requirement-edit { font:inherit;line-height:1.4;border:1px solid #d9b58a;border-radius:.55rem;padding:.5rem .75rem;background:#fffaf1;color:#89502e;cursor:pointer;transition:background .16s ease,box-shadow .16s ease; }
.cmp-requirement-button { font-size:.8rem; }
.cmp-requirement-button[aria-pressed="true"] { border-color:#bb6436;background:#f9e3c9;color:#834322;font-weight:700;box-shadow:inset 0 0 0 1px #bb643626; }
.cmp-requirement-button:hover:not(:disabled),.cmp-requirement-edit:hover { background:#f8e9d4;box-shadow:0 2px 9px #a7683220; }
.cmp-requirement-button:disabled { opacity:.45;cursor:default; }
.cmp-requirement-button:focus-visible,.cmp-requirement-edit:focus-visible,.cmp-requirement-game summary:focus-visible { outline:3px solid #c9773f;outline-offset:3px; }
.cmp-requirement-hints .cmp-requirement-copy { margin:0;color:#785b40;font-size:.83rem;max-width:80ch;line-height:1.65; }
.cmp-requirement-game { border:1px solid #dec7a6;border-radius:.75rem;background:#fffdf7;overflow:hidden;min-width:0; }
.cmp-requirement-game > summary { padding:.85rem 1rem;color:#6c4b2f;font-size:.95rem;font-weight:750;cursor:pointer;background:#fbefdf;overflow-wrap:anywhere; }
.cmp-requirement-game > summary::marker { color:#ad6034; }
.cmp-requirement-game[open] > summary { border-bottom:1px solid #ead6ba; }
.cmp-requirement-mode { padding:1rem;display:grid;gap:.75rem; }
.cmp-requirement-mode + .cmp-requirement-mode { border-top:1px solid #ead9c2; }
.cmp-requirement-mode h5 { margin:0;color:#8b5c39;font-size:.8rem;line-height:1.4; }
.cmp-requirement-person { padding:.85rem 1rem;border:1px solid #ead7bd;border-left:3px solid #c57d4a;border-radius:.6rem;background:#fffbf4;min-width:0; }
.cmp-requirement-person-name { display:block;color:#6c4c32;font-size:.95rem;overflow-wrap:anywhere; }
.cmp-requirement-issue { margin-top:.65rem;padding-top:.65rem;border-top:1px solid #eee1d0; }
.cmp-requirement-issue-heading { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;font-size:.85rem;overflow-wrap:anywhere; }
.cmp-requirement-edit { padding:.3rem .5rem;font-size:.72rem;white-space:normal; }
.cmp-requirement-badge { display:inline-flex;margin-top:.45rem;padding:.22rem .5rem;border:1px solid #e3bd8c;border-radius:.4rem;background:#f8e4c5;color:#89562b;font-size:.73rem;line-height:1.5; }
.cmp-requirement-badge[data-status="VIOLATED"] { border-color:#dfa79b;background:#f8e5de;color:#985241; }
.cmp-requirement-hints .cmp-requirement-reason { margin:.5rem 0 0;font-size:.84rem;line-height:1.65;color:#705a42;overflow-wrap:anywhere; }
.cmp-requirement-state { margin:0;padding:1rem;border-radius:.65rem;background:#fbefdf;border:1px solid #e3c6a2;color:#805432;font-size:.85rem; }
.cmp-requirement-state.is-error { border-color:#dda28c;background:#fff0e8; }
.cmp-requirement-state p { margin:0 0 .75rem; }
.cmp-requirement-pages { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin-top:.1rem;font-size:.8rem;font-variant-numeric:tabular-nums;color:#826046; }
@media(max-width:600px) { .cmp-requirement-mode { padding:.75rem; }.cmp-requirement-person { padding:.7rem; }.cmp-requirement-issue-heading { align-items:flex-start;flex-direction:column; }.cmp-requirement-pages { justify-content:center; }.cmp-requirement-pages span { text-align:center; } }
@media(prefers-reduced-motion:reduce) { .cmp-requirement-button,.cmp-requirement-edit { transition:none; } }

/* der frühe hinweis steht vor den noch nicht berechneten ergebnissen */
