/* Top-Tipps from the DB driven list (top-tipps-aktuell.htm, desktop).
   The tiles look like the old td.toptipps tiles of top-tipps.htm (format.css), built with CSS grid. */

.tt-box { padding: 16px; }
.tt-h1 { display: block; margin: 0; line-height: 1.2; }
.tt-intro { margin: 16px 0 16px; }

/* grey bars (format.css .Berichte): sort links and pager */
.tt-leiste { margin: 0 0 6px; padding: 10px 5px 10px 5px; line-height: 16px; }
.tt-leiste .mail a, .tt-leiste .mail strong { display: inline-block; }
.tt-leiste .tt-stern { vertical-align: -1px; margin-right: 3px; border: 0; }
.tt-kopfbild { display: block; line-height: 0; }
.tt-kopfbild img { display: block; max-width: 100%; height: auto; border: 0; }

/* tile grid: 3 columns, 5 rows (TT_PRO_SEITE = 15 tiles per page) */
.tt-grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 22px;
	margin: 12px 0 22px; padding: 0; list-style: none;
}
.tt-kachel {
	display: grid; grid-template-columns: 100px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 8px;
	min-width: 0; margin: 0; padding: 6px; border: 2px solid #F00; background-color: #EFEFEF;
	font: 12px/18px Verdana, Geneva, sans-serif; color: #000; text-align: left;
}
.tt-bild { grid-row: 1 / span 2; display: block; width: 100px; height: 150px; line-height: 0; }
.tt-bild img, .tt-leer { display: block; width: 100px; height: 150px; border: 0; object-fit: cover; }
.tt-leer { background: #DDD; }
.tt-kachel .tt-badge { display: block; margin: 2px 2px 0 0; overflow-wrap: anywhere; }
.tt-kachel .tt-name { align-self: end; display: block; margin: 0 2px 2px 0; overflow-wrap: anywhere; }
.tt-kachel .tt-name a { display: inline; }

/* pager: the current page is bold blue and no link */
.tt-pager .mail .tt-aktiv { color: #00328B; font-weight: bold; }
.tt-pager .mail a:focus-visible, .tt-kachel a:focus-visible { outline: 2px solid #00328B; outline-offset: 1px; }

.tt-fussnote { margin: 14px 0 0; }
.tt-pager .tt-teil { white-space: nowrap; }

/* Empty live list: a note instead of the tiles (top-tipps-aktuell.php) */
.tt-grid .tt-hinweis { grid-column: 1 / -1; list-style: none; padding: 24px 8px; text-align: center; }
