/* TGF.Aufzeichnungen — Kachel-Katalog / Liste (Tabelle) der Produktions-Aufzeichnungen.
   Liegt i.d.R. im Creme-Leseband: feste Farben statt var(--text)/var(--muted). */

.tgf-az { color: inherit; }
.tgf-az { --az-line: var(--line, #e4dccb); --az-red: var(--red, #c90000); }

/* ---------- Katalog: Kacheln ---------- */
.tgf-az-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.tgf-az-card {
    border: 1px solid rgba(36, 27, 18, .12);
    border-radius: .5rem;
    overflow: hidden;
    background: #FFFEFB;
    display: flex;
    flex-direction: column;
}

/* Cover (DVD-/Blu-ray-Hülle, Querformat): unter dem Titel, im Text-Padding der Kachel (nicht
   randlos), passend zur Textbreite; darunter folgen die Eckdaten. */
.tgf-az-cover {
    display: block;
    line-height: 0;
    margin: 0 0 .9rem;
}
.tgf-az-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: .25rem;
}

.tgf-az-body { padding: .8rem 1rem 1.1rem; }
.tgf-az-titel {
    display: block;
    font-weight: 600;
    line-height: 1.25;
    /* Platz für 2 Titelzeilen reservieren, damit die Cover in einer Reihe bündig starten
       (ein- und zweizeilige Titel gleich hoch). Längere Titel dürfen weiter wachsen. */
    min-height: 2.5em;
    margin-bottom: .6rem;
    color: var(--az-red);
    text-decoration: none;
}
a.tgf-az-titel:hover { text-decoration: underline; }
.tgf-az-jahr { font-weight: 400; color: #6f5e4a; }

/* Eckdaten als schlanke Label/Wert-Liste (zweispaltig). */
.tgf-az-specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .2rem .8rem;
    margin: 0;
    font-size: .88rem;
}
.tgf-az-specs dt { color: #6f5e4a; font-weight: 600; white-space: nowrap; }
.tgf-az-specs dd { margin: 0; color: #3d3125; }

/* ---------- Liste: Tabelle ---------- */
.tgf-az-tabelle table { width: 100%; border-collapse: collapse; }
.tgf-az-tabelle thead th {
    font-weight: 600; color: #2a2016; font-size: .92rem; text-align: left; white-space: nowrap;
    padding: 0 .7em .55em; border-bottom: 2px solid var(--az-line);
}
.tgf-az-tabelle tbody td {
    padding: .5em .7em; border-top: 1px solid var(--az-line); vertical-align: baseline;
    font-size: .94rem; color: #3d3125;
}
/* Erste Spalte bündig zum linken Leserand (kein Einzug). */
.tgf-az-tabelle thead th:first-child,
.tgf-az-tabelle tbody td:first-child { padding-left: 0; }
.tgf-az-tabelle .tgf-az-c { text-align: center; }
.tgf-az-tabelle .tgf-az-c-jahr { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tgf-az-tabelle .tgf-az-nowrap { white-space: nowrap; }
.tgf-az-tabelle thead th .fa-light { color: #6f5e4a; }

/* Hover-/Fokus-Popup für Equipment (Text) und Cover (Bild) in der Tabelle. */
.tgf-az-tabelle .tgf-az-pop { position: relative; display: inline-block; cursor: help; color: #6f5e4a; }
.tgf-az-tabelle .tgf-az-pop-body {
    display: none;
    position: absolute;
    z-index: 30;
    right: 0;
    top: 1.7em;
    background: #fff;
    border: 1px solid rgba(36, 27, 18, .2);
    border-radius: .4rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    padding: .55rem .7rem;
    text-align: left;
    font-size: .85rem;
    line-height: 1.4;
    color: #3d3125;
    min-width: 11rem;
    max-width: 20rem;
}
.tgf-az-pop:hover .tgf-az-pop-body,
.tgf-az-pop:focus .tgf-az-pop-body,
.tgf-az-pop:focus-within .tgf-az-pop-body { display: block; }
.tgf-az-pop-text { white-space: pre-line; }
.tgf-az-pop-body img { display: block; width: 240px; max-width: 60vw; height: auto; border-radius: .2rem; }
