/* Compact download overview only. Full category cards and online games are unchanged. */
.dlco-list {
  margin: 0 0 18px;
  padding: 12px;
  background: #fff;
  border-radius: 0 0 10px 10px;
}
.dlco-list > ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dlco-list .dlco-item { min-width: 0; margin: 0; padding: 0; list-style: none; }
.dlco-list .dlco-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 13px;
  background: #fff;
  color: #192d43;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(25 45 67 / 7%);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.dlco-image { display: block; overflow: hidden; aspect-ratio: 400 / 164.82; background: #e8edf3; }
.dlco-image img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center top; }
.dlco-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 10px; }
.dlco-heading { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.dlco-title {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  min-height: 2.6em;
}
.dlco-heading .dl-lang-mark { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; margin: 2px 0 0; }
.dlco-heading .dlk-flag { display: block; width: 23px; height: 15px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 20%)); }
.dlco-heading .dl-lang-mark--multi .dlk-flag { width: 16px; height: 11px; }
.dlco-footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; }
.dlco-meta { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.dlco-meta > span { display: inline-block; border-radius: 12px; padding: 3px 6px; background: #eef4fc; color: #2869af; font-size: 12px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.dlco-arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 28px; height: 24px; border-radius: 8px; background: #2e70b9; color: #fff; font-size: 20px; line-height: 1; }
.dlco-card:focus-visible { outline: 3px solid #f6ac39; outline-offset: 3px; }
@media (hover: hover) {
  .dlco-list .dlco-card:hover { border-color: #7ba5d4; box-shadow: 0 4px 12px rgb(31 82 132 / 15%); transform: translateY(-2px); }
}
html[data-theme="dark"] .dlco-list { background: #252525; }
html[data-theme="dark"] .dlco-list .dlco-card { background: #2d2d2d; color: #edf2f7; border-color: #41464c; box-shadow: none; }
html[data-theme="dark"] .dlco-image { background: #20252b; }
html[data-theme="dark"] .dlco-meta > span { background: #233a50; color: #abd4ff; }
html[data-theme="dark"] .dlco-list .dlco-card:hover { border-color: #79ade2; }
@media (max-width: 900px) {
  .dlco-list > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 768px) {
  .dlco-list > ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .dlco-list { padding: 8px; margin-bottom: 14px; }
  .dlco-list > ul { gap: 10px; }
  .dlco-body { padding: 8px; gap: 7px; }
  .dlco-title { font-size: 14px; }
  .dlco-heading .dlk-flag { width: 20px; height: 13px; }
  .dlco-heading .dl-lang-mark--multi .dlk-flag { width: 14px; height: 10px; }
  .dlco-meta > span { font-size: 11px; padding: 3px 5px; }
  .dlco-arrow { flex-basis: 24px; height: 23px; }
}
@media (max-width: 350px) {
  .dlco-list { padding: 6px; }
  .dlco-list > ul { gap: 7px; }
  .dlco-body { padding: 7px; }
  .dlco-title { font-size: 13px; }
  .dlco-heading .dlk-flag { width: 17px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .dlco-list .dlco-card { transition: none; transform: none; }
}

/* Two lines of existing game description, also on small screens. */
.dlco-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  height: 2.8em;
  min-height: 2.8em;
  color: #4f6074;
}
html[data-theme="dark"] .dlco-description { color: #c1cbd6; }
@media (max-width: 600px) {
  .dlco-description { font-size: 12px; }
}

/* Old overview headers overlap the following box by 10/13px.
   Compact cards need real space below the header, not that legacy overlap. */



/* Preview height is 67% of the previous 400:246 frame; cover preserves image proportions. */

/* Use the original rounded/overlapping category-box join, with enough
   inner padding to retain 12px of visible space below the header. */
.kopfbalken.dlco-header + .dlco-list.kb-liste { padding: 25px 12px 12px !important; }
.kopfbalken.dlco-header-mobile + .dlco-list.kb-liste { padding-top: 22px !important; }
.dlco-list > ul { gap: 30px; }
.dlco-header-mobile + .dlco-list > ul { gap: 26px; }
.dlco-list .dlco-card { border-radius: 14px; }
.dlco-list .dlco-body { padding: 12px 14px 14px; gap: 8px; }
.dlco-list .dlco-heading { gap: 8px; }
.dlco-list .dlco-title { min-height: 0; font-size: 17px; line-height: 1.25; }
.dlco-header-mobile + .dlco-list .dlco-title { font-size: 18px; font-weight: 800; }
.dlco-list .dlco-meta { gap: 6px; }
.dlco-list .dlco-description { font-size: 14px; line-height: 1.5; height: 3em; min-height: 3em; color: #4b5563; }
html[data-theme="dark"] .dlco-list .dlco-description { color: #c1cbd6; }
.dlco-list .dlco-footer { justify-content: flex-end; padding-top: 4px; }
.dlco-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 10px;
  background: #2f6fb5;
  color: #fff;
  font-size: 14px;
  line-height: normal;
  font-weight: 700;
  white-space: nowrap;
}
.dlco-download > span { font-size: 18px; line-height: 1; }
.dlco-header-mobile + .dlco-list .dlco-download { background: #2f8f4e; padding: 8px 14px; }

/* Wider layout: retain 88% of the original image height.
   Single-column mobile layout keeps its existing 67% height. */
@media (min-width: 769px) {
  .dlco-image { aspect-ratio: 400 / 216.48; }
}
