/* ===========================================================================
   Trupp-Werkstatt (V2.63.0, 02.10.2026) — Bildschirm und Druck.
   Betrifft ausschließlich Elemente mit .trp-Präfix (bzw. #trp-form) und greift
   in keinen anderen Generator ein. Rückbau: Datei entfernen und die eine
   <link>-Zeile in index.php löschen.
   =========================================================================== */

/* --- Formular (Kacheln wie Burgen-/Wirtshaus-Werkstatt) -------------------- */
.trp-werkstatt .trp-intro { text-align: center; font-style: italic; color: #5d3a18; margin: -8px 0 16px; }
#trp-form.trp-form { display: block !important; }
#trp-form .trp-block { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
#trp-form .trp-frage { font-family: 'Cinzel', Georgia, serif; font-variant: small-caps; letter-spacing: 1px; color: #5d0000; font-size: 1.05rem; margin: 0 0 8px; }
#trp-form .trp-frage-klein { font-family: 'Crimson Text', Georgia, serif; font-variant: normal; letter-spacing: 0; font-style: italic; color: #7a6446; font-size: .85rem; }
#trp-form .trp-nr { display: inline-block; width: 24px; height: 24px; border-radius: 50%; background: #5d0000; color: #f5ead3; text-align: center; line-height: 24px; font-size: .85rem; margin-right: 7px; font-variant: normal; }
#trp-form .trp-kacheln { display: grid; gap: 8px; }
#trp-form .trp-k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#trp-form .trp-k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#trp-form .trp-k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#trp-form .trp-k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 760px) { #trp-form .trp-k4, #trp-form .trp-k5, #trp-form .trp-k6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#trp-form label.trp-kachel { display: block; margin: 0; cursor: pointer; font-family: 'Crimson Text', Georgia, serif; font-variant: normal; letter-spacing: 0; text-transform: none; font-weight: normal; font-size: 1rem; position: relative; }
#trp-form .trp-kachel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#trp-form .trp-kachel > span { display: block; border: 1px solid #8a6a3e; background: #fffaf0; padding: 8px 6px 7px; text-align: center; line-height: 1.2; height: 100%; box-sizing: border-box; }
#trp-form .trp-kachel b { display: block; font-size: 1.02rem; color: #2b1908; hyphens: manual; }
#trp-form .trp-kachel small { display: block; color: #7a6446; font-size: .8rem; margin-top: 2px; font-style: italic; }
#trp-form .trp-kachel input:checked + span { border: 2px solid #5d0000; background: #f3e2c4; padding: 7px 5px 6px; }
#trp-form .trp-kachel input:focus-visible + span { outline: 2px solid #b07a00; }
#trp-form .trp-kachel:hover > span { background: #f8ecd6; border-color: #5d0000; }
#trp-form .trp-info { font-family: 'Crimson Text', Georgia, serif; font-style: italic; color: #6b5a3e; font-size: .9rem; margin-top: 9px; }
#trp-form .trp-auswahl { display: block; margin: 10px 0 0; font-family: 'Crimson Text', Georgia, serif; font-variant: normal; text-transform: none; letter-spacing: 0; }
#trp-form select { width: 100%; display: block; margin-top: 3px; font-family: 'Crimson Text', Georgia, serif; font-size: .95rem; padding: 6px 10px; border: 1px solid #5d3a18; border-radius: 0; background: #fffef8; color: #2b1908; min-height: 36px; }
#trp-form .trp-weitere { border: 1px solid #5d3a18; background: rgba(245,234,211,.35); margin: 0 0 14px; }
#trp-form .trp-weitere > summary { padding: 9px 16px; cursor: pointer; font-family: 'Cinzel', Georgia, serif; font-variant: small-caps; letter-spacing: 1px; color: #5d0000; }
#trp-form .trp-mehr { padding: 4px 16px 14px; }
#trp-form .trp-mehr label { display: block; font-variant: normal; text-transform: none; }
#trp-form input[type="submit"] { display: block; margin-left: auto; max-width: 100%; white-space: normal; }

/* --- Leerer Zustand ------------------------------------------------------- */
.trp-leer { text-align: center; color: #5d3a18; font-style: italic; max-width: 640px; margin: 24px auto; }
.trp-leer-icon { font-size: 2rem; color: #8a6a3e; }

/* --- Kopfleiste ----------------------------------------------------------- */
.trp-leiste { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    border-top: 2px solid #5d3a18; border-bottom: 1px solid #5d3a18; background: rgba(245,234,211,.6); padding: 6px 12px; margin: 18px 0 12px;
    position: sticky; top: 0; z-index: 5; }
.trp-leiste-titel { font-family: 'Cinzel', Georgia, serif; color: #5d0000; font-variant: small-caps; letter-spacing: 1px; }
.trp-leiste-knoepfe { display: flex; gap: 6px; }

/* --- Bogen ---------------------------------------------------------------- */
.trp-bogen { background: rgba(255,250,235,.55); border: 1px solid #5d3a18; padding: 18px 22px; color: #2b1908; font-family: 'Crimson Text', Georgia, serif; }
.trp-kopf { border-bottom: 2px solid #4a3728; margin-bottom: 12px; padding-bottom: 8px; text-align: center; }
.trp-oberzeile { font-family: 'Cinzel', Georgia, serif; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #7a6446; margin: 0 0 4px; }
.trp-titel { font-family: 'Cinzel', Georgia, serif; color: #5d0000; font-variant: small-caps; letter-spacing: 1.5px; font-size: 1.5rem; margin: 0 0 4px; border: 0; }
.trp-untertitel { font-style: italic; color: #4a2d12; margin: 0 0 3px; font-size: 1.05rem; }
.trp-kurz { color: #7a6446; font-size: .92rem; margin: 0; }
.trp-motto { font-family: 'Cinzel', Georgia, serif; font-variant: small-caps; letter-spacing: 1px; color: #5d0000; margin: 4px 0 0; font-size: .95rem; }
.trp-karte-haus { border-left-color: #b07a00; background: rgba(176,122,0,.07); }
.trp-haus-abzeichen { display: inline-block; font-family: 'Cinzel', Georgia, serif; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
    color: #fff; background: #8a5a00; padding: 1px 7px; margin-bottom: 5px; }
.trp-bogen h3 { font-family: 'Cinzel', Georgia, serif; color: #5d0000; font-variant: small-caps; letter-spacing: 1px; font-size: 1.1rem;
    border-bottom: 1px solid #b59b6a; padding-bottom: 3px; margin: 18px 0 8px; }
.trp-blick h3 { margin-top: 4px; }
.trp-blick-tab { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .98rem; }
.trp-blick-tab th { white-space: normal !important; background: transparent !important; border: 0; border-bottom: 1px dotted #c2a06a; width: 118px; text-align: left; vertical-align: top;
    padding: 4px 8px 4px 0; font-family: 'Cinzel', Georgia, serif; font-variant: small-caps; color: #5d0000; font-weight: 600; }
.trp-blick-tab td { padding: 4px 0; border-bottom: 1px dotted #c2a06a; overflow-wrap: anywhere; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
@media (max-width: 520px) { .trp-blick-tab th { width: 86px; } .trp-bogen { padding: 12px 12px; } }
.trp-klein { color: #7a6446; font-style: italic; font-size: .92em; }
.trp-hinweise { margin: 10px 0 0; padding: 8px 12px 8px 28px; background: rgba(93,0,0,.05); border-left: 3px solid #5d0000; }
.trp-hinweise li { margin: 2px 0; }

.trp-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.trp-karte { background: rgba(255,250,235,.7); border: 1px solid #c8b48a; border-left: 3px solid #8a6d3b; padding: 9px 12px; }
.trp-karte-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; }
.trp-karte-name { font-family: 'Cinzel', Georgia, serif; font-weight: 600; color: #5d0000; font-size: 1.05rem; }
.trp-karte-rolle { font-style: italic; color: #5d3a18; font-size: .92rem; }
.trp-stat { font-size: .93em; line-height: 1.4; }
.trp-zeile { font-size: .9em; margin-top: 4px; color: #2b1908; }
.trp-magie b { color: #5d0000; }
.trp-eigenheit { font-size: .88em; font-style: italic; color: #7a6446; margin-top: 5px; }

.trp-tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; }
.trp-tabelle th { text-align: left; font-family: 'Cinzel', Georgia, serif; font-variant: small-caps; color: #5d0000; border-bottom: 1px solid #5d3a18; padding: 4px 6px; background: transparent; }
.trp-tabelle td, .trp-tabelle th { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
.trp-tabelle td { border-bottom: 1px dotted #c2a06a; padding: 5px 6px; vertical-align: top; overflow-wrap: anywhere; }
.trp-sp-anz { width: 46px; text-align: center !important; font-weight: bold; }
.trp-sp-wer { width: 26%; }
.trp-tabelle tr.trp-gefangen td { color: #6b5a3e; background: rgba(0,0,0,.03); }
.trp-tabelle tr.trp-tier .trp-sp-wer { font-style: italic; }
.trp-ross { color: #5d3a18; }
.trp-hinweis { color: #4a2d12; }
.trp-moral { margin: 6px 0 0; }
.trp-tross { margin: 0; padding-left: 20px; }
.trp-tross li { margin: 2px 0; }
.trp-fuss { text-align: center; font-size: .8rem; color: #8a6a3e; font-style: italic; margin: 14px 0 0; border-top: 1px dotted #b59b6a; padding-top: 6px; }
.trp-versteckt { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

/* --- Verweis aus Wildnis-Begegnung und Hex-Crawl (M7) ------------------- */
a.trp-verweis { display: inline-block; font-family: 'Crimson Text', Georgia, serif; font-size: .9rem; color: #5d0000; border: 1px solid #8a6a3e;
    background: #fffaf0; padding: 2px 9px; text-decoration: none; white-space: nowrap; }
a.trp-verweis:hover { background: #f3e2c4; border-color: #5d0000; }
a.trp-verweis.trp-verweis-klein { font-size: .8rem; padding: 0 6px; margin-left: 4px; }
.trp-verweis-zeile { margin: 4px 0 10px; }

/* --- Druck: pt-Größen, feste Tabellen, nichts zerteilen -------------------- */
@media print {
    .trp-leiste, .trp-leer, .trp-versteckt { display: none !important; }
    .trp-bogen { background: #fff !important; border: none !important; padding: 0 !important; font-size: 9.5pt; color: #000; }
    .trp-titel { font-size: 15pt !important; color: #000 !important; }
    .trp-oberzeile { font-size: 7pt !important; color: #333 !important; }
    .trp-untertitel { font-size: 10pt !important; color: #000 !important; }
    .trp-kurz, .trp-klein, .trp-eigenheit { color: #333 !important; }
    .trp-kurz { font-size: 8.5pt !important; }
    .trp-karte-rolle { color: #000 !important; font-size: 8.5pt !important; }
    .trp-stat, .trp-zeile { font-size: 8.5pt !important; }
    .trp-bogen h3 { font-size: 10.5pt !important; color: #000 !important; border-bottom: .6pt solid #000 !important; margin: 8pt 0 4pt !important; page-break-after: avoid; break-after: avoid; }
    .trp-blick-tab { font-size: 9pt !important; width: 100% !important; }
    .trp-blick-tab th { width: 26mm !important; color: #000 !important; }
    .trp-blick-tab th, .trp-blick-tab td, .trp-tabelle td { white-space: normal !important; overflow: visible !important; border-bottom: .4pt dotted #666 !important; }
    .trp-hinweise { background: none !important; border-left: 1.2pt solid #000 !important; font-size: 8.5pt; }
    .trp-karten { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 3mm !important; }
    .trp-karte { break-inside: avoid; page-break-inside: avoid; background: none !important; border: .5pt solid #666 !important; border-left: 1.5pt solid #000 !important;
        margin: 0; padding: 2mm 3mm !important; font-size: 8.5pt; box-sizing: border-box; }
    .trp-karte-name { color: #000 !important; font-size: 10pt !important; }
    .trp-haus-abzeichen { color: #000 !important; background: none !important; border: .6pt solid #000; font-size: 6.5pt !important; }
    .trp-motto { color: #000 !important; font-size: 9pt !important; }
    .trp-tabelle { font-size: 8.5pt !important; width: 100% !important; }
    .trp-tabelle th { color: #000 !important; border-bottom: .6pt solid #000 !important; }
    .trp-tabelle tr { break-inside: avoid; page-break-inside: avoid; }
    .trp-sp-anz { width: 10mm !important; }
    .trp-sp-wer { width: 32mm !important; }
    .trp-tross { font-size: 9pt; }
    .trp-moral { font-size: 8pt !important; }
    .trp-sl { break-inside: avoid; page-break-inside: avoid; }
    .trp-fuss { color: #333 !important; font-size: 7pt !important; }
}
