/* ---------------------------------------------------------------------------
 * Ergänzungen für /datenexport/ – das Grundaussehen kommt aus
 * /kassensicherung/kassensicherung.css, damit beide Unterlagen nebeneinander
 * gleich aussehen (Steuerkanzleien bekommen oft beide Links in einer Mail).
 * Hier steht nur, was es dort nicht gibt: Screenshots, Beispielbuchungen und
 * die Übersicht der Sonderfälle.
 * ------------------------------------------------------------------------- */

/* ----------------------------- Screenshots ------------------------------ */

figure.shot {
    margin: 8px 0 26px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

figure.shot a { display: block; line-height: 0; cursor: zoom-in; background: var(--ink-50); }
figure.shot img { width: 100%; height: auto; display: block; }
figure.shot.narrow { max-width: 560px; }
figure.shot.medium { max-width: 760px; }

figure.shot figcaption {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-500);
    padding: 10px 16px 12px;
    border-top: 1px solid var(--ink-100);
}

figure.shot figcaption b { color: var(--ink-700); }

.shots-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.shots-2 figure.shot { margin-bottom: 0; }
.shots-2 + * { margin-top: 26px; }

/* Vergrößerung: ohne Skript öffnet der Link das Bild selbst. */
dialog.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(1500px, 96vw);
    max-height: 94vh;
    margin: auto;
}
dialog.lightbox::backdrop { background: rgba(12, 30, 46, 0.82); }
dialog.lightbox img { display: block; max-width: 100%; max-height: 94vh; width: auto; height: auto; border-radius: 10px; background: #fff; cursor: zoom-out; }

/* ----------------------------- Übersicht -------------------------------- */

.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--midnight-600); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--midnight-600);
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    padding: 1px 9px;
    white-space: nowrap;
}

.tag.amber { background: var(--amber-50); border-color: #f2d5a5; color: #8a5a17; }
.tag.sky { background: var(--sky-50); border-color: #bcdcef; color: #1d5f86; }
.tag.green { background: var(--green-50); border-color: #b6ded0; color: #17694a; }

/* --------------------------- Beispielbuchungen -------------------------- */

.sample { font-variant-numeric: tabular-nums; }
.sample td, .sample th { white-space: normal; }
.sample td.num, .sample th.num { text-align: right; white-space: nowrap; }
.sample td:nth-child(2) { white-space: nowrap; }
.sample td.mono { font-family: var(--font-mono); font-size: 13px; min-width: 120px; }
.sample td.why { min-width: 200px; color: var(--ink-500); font-size: 13.5px; }
.sample tr.sum td { background: var(--ink-50); font-weight: 600; color: var(--midnight-800); }
.sample tr.muted td { color: var(--ink-400); }

.sh {
    display: inline-block;
    min-width: 22px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    padding: 0 5px;
}
.sh.s { background: var(--green-50); color: #17694a; border: 1px solid #b6ded0; }
.sh.h { background: var(--coral-50); color: #a12a3f; border: 1px solid #f0c2cb; }

.sample-caption {
    font-size: 13.5px;
    color: var(--ink-500);
    margin: -10px 0 22px;
}

/* ---------------------------- Fall-Matrix ------------------------------- */

table.matrix td { min-width: 170px; font-size: 14px; }
table.matrix td:first-child { min-width: 140px; font-weight: 600; color: var(--midnight-800); }
table.matrix th { white-space: normal; }

/* ------------------------------ Kleinkram ------------------------------- */

.lead-list { margin-top: 10px; }

.kbd {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 0 6px;
    color: var(--midnight-800);
}

.filelist { font-family: var(--font-mono); font-size: 13px; }
.filelist td:first-child { white-space: nowrap; color: var(--midnight-600); }

.contactbox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}

.contactbox > div {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 14.5px;
}

.contactbox b { display: block; margin-bottom: 4px; }

@media (max-width: 600px) {
    figure.shot figcaption { padding: 8px 12px 10px; }
}

@media print {
    figure.shot { box-shadow: none; break-inside: avoid; border: 1pt solid #999; }
    figure.shot a { cursor: default; }
    figure.shot.narrow, figure.shot.medium { max-width: 70%; }
    .tag { border: 1pt solid #999; background: #fff; color: #000; }
    .sh.s, .sh.h { background: #fff; color: #000; border: 1pt solid #999; }
    dialog.lightbox { display: none; }
}
