/* ============================================================
   TRSuite carf-deadlines.html - Ergaenzung zu downloads.css und
   product.css. Seite und Datenblock erzeugt aus
   homepage/carf_deadlines.json von
   homepage/tools/CarfDeadlinesPageGenerator.java; Bedienung in
   assets/js/carf-deadlines.js.
   Grundfarben (--ink, --line, --card, --brand, --action, --ok ...)
   kommen aus downloads.css; hier nur die Diagrammfarben. Nur helles
   Theme, wie der Rest der Site. Alles ist unter .carf / .tip skopiert.
   ============================================================ */

.carf, .tip {
	--rail: #c7cdd5; --zone: #f1f4f8; --on: #ffffff;
	--rules: var(--ok); --rules-bg: #e3f3ea;
	--gen: var(--action); --gen-bg: #e5eef8;
	--own: #a8363f; --own-bg: #f8e6e7;
	--open: #86621a; --open-bg: #f6eed9;
	--f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---- component ---- */
.carf, .carf * { box-sizing: border-box; }
.carf { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 28px 20px; display: grid; gap: 28px; color: var(--ink); font: 15px/1.55 var(--f-body); }
.carf > * { min-width: 0; }
.carf [hidden] { display: none !important; }
.carf h2 { font: 600 13px/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.carf p { margin: 0 0 8px; max-width: 72ch; }
.carf button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.carf :focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.carf .answer { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; }
.carf .answer strong { font-weight: 600; }

/* category paint: covered = solid, not covered = tinted */
.carf .rules, .tip .rules { --c: var(--rules); --cb: var(--rules-bg); }
.carf .gen, .tip .gen { --c: var(--gen); --cb: var(--gen-bg); }
.carf .own, .tip .own { --c: var(--own); --cb: var(--own-bg); }
.carf .open, .tip .open { --c: var(--open); --cb: var(--open-bg); }
.carf .paint.rules, .carf .paint.gen, .tip .paint.rules, .tip .paint.gen { background: var(--c); color: var(--on); }
.carf .paint.own, .carf .paint.open { background: var(--cb); color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.carf .paint.open { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }

/* share bars = filter */
.carf .share { display: grid; gap: 14px; }
.carf .sb { display: grid; grid-template-columns: 15em 1fr; gap: 4px 16px; align-items: center; }
.carf .sb .cap { font-size: 13px; color: var(--ink-soft); }
.carf .sb .cap b { display: block; font: 700 22px/1.1 var(--f-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.carf .bar { display: flex; height: 32px; gap: 2px; }
.carf .seg { display: flex; align-items: center; justify-content: center; font: 600 13px var(--f-mono); min-width: 22px; border-radius: 4px; transition: opacity .15s; }
.carf .bar .seg:first-child { border-radius: 6px 4px 4px 6px; } .carf .bar .seg:last-child { border-radius: 4px 6px 6px 4px; }
.carf .key { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; margin-top: 2px; align-items: center; }
.carf .key button, .carf .key .keyitem { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 6px; min-height: 28px; transition: opacity .15s; }
.carf .key i, .carf .sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex: none; vertical-align: -2px; }
.carf .key button[aria-pressed="true"] { border-color: var(--ink); background: var(--zone); font-weight: 600; }
.carf .seg[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.carf.filtered .ctl[aria-pressed="false"] { opacity: .4; }
.carf .ctl:hover { opacity: 1 !important; }
.carf .how { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

/* next deadline */
.carf .next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.carf .next .big { font: 700 26px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.carf .next .big small { font: 500 13px var(--f-body); color: var(--ink-soft); margin-left: 4px; }
.carf .next .txt { font-size: 14px; }
.carf .lnk { color: var(--action); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* tools (own button class cbtn - the class btn belongs to downloads.css) */
.carf .tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 6px; }
.carf .tools label { font-size: 13px; color: var(--ink-soft); }
.carf .tools input { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--rail); border-radius: 6px; padding: 5px 10px; width: 15em; max-width: 100%; min-height: 34px; }
.carf .scope { display: inline-flex; }
.carf .scope .cbtn { border-radius: 0; margin-left: -1px; }
.carf .scope .cbtn:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.carf .scope .cbtn:last-child { border-radius: 0 6px 6px 0; }
.carf .cbtn { border: 1px solid var(--rail); border-radius: 6px; padding: 5px 12px; min-height: 34px; font-size: 13.5px; }
.carf .cbtn[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); position: relative; }
.carf .cbtn:disabled { opacity: .45; cursor: default; }
.carf .status { font-size: 13px; color: var(--ink-soft); margin: 0 0 10px; min-height: 1.5em; }

/* unit chart */
.carf .scroll { overflow-x: auto; padding-bottom: 6px; }
.carf .chart { display: flex; gap: 4px; min-width: 820px; }
.carf .grp { display: flex; flex-direction: column; min-width: 0; }
.carf .grp.run { flex: 1 1 0; } .carf .grp.dl { flex: 8 1 34px; } .carf .grp.nd { flex: 4 1 0; background: var(--zone); border-radius: 8px; }
.carf .gh { font: 600 11px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 6px 10px; border-bottom: 2px solid var(--rail); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carf .grp.run .gh { color: var(--brand); border-color: var(--brand); letter-spacing: 0; padding-left: 2px; padding-right: 0; }
.carf .grp.nd .gh { padding-left: 10px; }
.carf .cols { display: flex; gap: 4px; flex: 1; padding-top: 30px; }
.carf .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 3px; position: relative; }
.carf .col .n { font: 700 15px/1 var(--f-body); text-align: center; padding-bottom: 2px; font-variant-numeric: tabular-nums; }
.carf .col .n.zero { color: var(--rail); font-weight: 500; }
.carf .stack { display: flex; flex-direction: column-reverse; }
.carf .tile { height: 22px; margin-top: 2px; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font: 600 11.5px/1 var(--f-mono); white-space: nowrap; overflow: hidden; width: 100%;
	transition: height .28s ease, margin .28s ease, opacity .2s ease; }
.carf .tile small { font-size: 10px; opacity: .8; font-weight: 500; }
.carf .tile:hover { filter: brightness(1.08); }
.carf .tile.off { height: 0; margin-top: 0; opacity: 0; pointer-events: none; box-shadow: none; }
.carf .dim { opacity: .2; }
.carf .tile.hit { outline: 2px solid var(--brand); outline-offset: 1px; }
.carf .tile.sel { outline: 3px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; }
.carf .brk { flex: 0 0 30px; display: flex; flex-direction: column; }
.carf .hatch { flex: 1; min-height: 120px; border-radius: 4px; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line) 5px 6px); display: flex; align-items: center; justify-content: center; }
.carf .hatch span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; color: var(--ink-soft); background: var(--card); padding: 6px 1px; white-space: nowrap; }
.carf .ax { flex: none; height: 74px; border-top: 2px solid var(--rail); margin-top: 4px; padding: 6px 2px 0; text-align: center; font: 600 12.5px/1.25 var(--f-mono); min-width: 0; overflow-wrap: break-word; }
.carf .ax small { display: block; font: 400 11px/1.25 var(--f-body); color: var(--ink-soft); }
.carf .ax.txt { font: 500 10px/1.3 var(--f-body); overflow-wrap: normal; }
.carf .tflag { display: none; }
/* today marker */
.carf .today { flex: 0 0 0; width: 0; position: relative; align-self: stretch; margin-top: -30px; }
.carf .today::before, .carf .tline::before { content: ""; position: absolute; top: 20px; bottom: 0; left: -3px; border-left: 2px dashed var(--ink); }
.carf .today span, .carf .tline span { position: absolute; top: 4px; left: -2px; transform: translateX(-50%); white-space: nowrap; font: 600 11px/1 var(--f-body); background: var(--ink); color: var(--card); padding: 3px 7px; border-radius: 999px; z-index: 2; }
.carf .tline { position: absolute; top: -30px; bottom: 0; width: 0; }
.carf .hint { display: none; font-size: 12px; color: var(--ink-soft); margin: 0 0 6px; }
.carf .read { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

/* detail card */
.carf .detail { border: 1px solid var(--line); border-left: 4px solid var(--c, var(--rail)); border-radius: 8px; padding: 12px 14px; margin-top: 10px; min-height: 64px; }
.carf .detail .empty { color: var(--ink-soft); font-size: 13.5px; margin: 0; padding: 0; text-align: left; border: 0; border-radius: 0; } /* .empty is also a downloads.css class */
.carf .dhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.carf .dhead h3 { margin: 0; font: 600 18px/1.25 var(--f-body); flex: 1; }
.carf .dbadge { font: 600 13px/1 var(--f-mono); padding: 6px 8px; border-radius: 4px; }
.carf .dclose { width: 32px; height: 32px; border-radius: 6px; font-size: 20px; line-height: 1; text-align: center; color: var(--ink-soft); }
.carf .dclose:hover { background: var(--zone); }
.carf .detail dl { margin: 0; display: grid; grid-template-columns: 11em 1fr; gap: 4px 14px; font-size: 14px; }
.carf .detail dt { color: var(--ink-soft); font-size: 13px; }
.carf .detail dd { margin: 0; }
.carf .cd { display: inline-block; font: 600 12px/1 var(--f-body); border: 1px solid var(--rail); border-radius: 999px; padding: 3px 8px; margin-left: 6px; white-space: nowrap; }

/* tooltip */
.tip { position: fixed; z-index: 50; max-width: 260px; background: var(--ink); color: var(--card); border-radius: 8px; padding: 8px 10px; font: 12.5px/1.4 var(--f-body); pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.tip[hidden] { display: none; }
.tip b { display: block; font-size: 13.5px; }
.tip span { display: block; }
.tip .t2 { opacity: .8; }
@media (hover: none) { .tip { display: none !important; } }

/* lists per coverage category */
.carf .lanes { display: grid; gap: 12px; }
.carf .lane { border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 8px; padding: 12px 14px; display: grid; gap: 10px; transition: opacity .15s; }
.carf .lane.off { display: none; }
.carf .lane h3 { margin: 0; font: 600 15px/1.3 var(--f-body); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.carf .lane h3 b { font: 700 20px/1 var(--f-body); color: var(--c); font-variant-numeric: tabular-nums; }
.carf .dated { columns: 3 230px; column-gap: 22px; margin: 0; padding: 0; list-style: none; }
.carf .dated li { break-inside: avoid; display: grid; grid-template-columns: 6.8em 2em 1fr; gap: 0 8px; padding: 2px 0; font-size: 13.5px; line-height: 1.4; border-radius: 4px; }
.carf .row.off { display: none; }
.carf .row.sel { background: var(--zone); box-shadow: 0 0 0 3px var(--zone); }
.carf .row.hit .iso { text-decoration: underline; text-decoration-thickness: 2px; }
.carf .dated .d { font: 500 11.5px/1.65 var(--f-mono); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.carf .dated .d i { font: 400 11px var(--f-body); font-style: normal; }
.carf .iso { font: 600 12.5px/1.5 var(--f-mono); color: var(--c); text-align: left; }
.carf button.iso:hover { text-decoration: underline; }
.carf .nt { color: var(--ink-soft); font-size: 12.5px; }
.carf .later { display: grid; gap: 0 6px; font-size: 13.5px; line-height: 1.5; border-top: 1px dashed var(--line); padding-top: 8px; }
.carf .later .g { font-size: 12px; color: var(--ink-soft); }
.carf .later .g b { font-weight: 600; }
.carf .later .e { display: inline-block; margin-right: 14px; border-radius: 4px; }

.carf .fine { font-size: 13px; color: var(--ink-soft); }
.carf .fine ul { margin: 6px 0 0; padding-left: 18px; }
.carf .contact { display: flex; flex-wrap: wrap; gap: 8px 28px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; font-size: 14px; }
.carf .contact .k { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
	.carf .tile, .carf .seg, .carf .key button, .carf .lane { transition: none; }
}

/* phones: months become rows, tiles wrap; no sideways scrolling */
@media screen and (max-width: 720px) {
	.carf { padding: 20px 16px; }
	.carf .sb { grid-template-columns: 1fr; }
	.carf .scroll { overflow: visible; padding: 0; }
	.carf .chart { display: block; min-width: 0; }
	.carf .grp { display: block; margin-bottom: 14px; }
	.carf .grp.nd { padding: 0 8px 2px; }
	.carf .grp.nd .gh { padding-left: 0; }
	.carf .gh { white-space: normal; }
	.carf .cols { display: block; padding-top: 0; }
	.carf .col { display: grid; grid-template-columns: 6.6em 1fr; grid-template-areas: "ax stack" "n stack"; grid-template-rows: auto 1fr; gap: 0 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
	.carf .col:last-child { border-bottom: 0; }
	.carf .ax { grid-area: ax; height: auto; border: 0; margin: 0; padding: 0; text-align: left; font-size: 13.5px; }
	.carf .ax small { display: inline; margin-left: 5px; font-size: 12px; }
	.carf .ax.txt { font-size: 12px; }
	.carf .col .n { grid-area: n; text-align: left; font: 500 12px/1.4 var(--f-body); color: var(--ink-soft); padding: 0; }
	.carf .col .n::before { content: "Shown: "; }
	.carf .stack { grid-area: stack; flex-direction: row; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
	.carf .tile { width: 62px; height: 30px; margin: 0; font-size: 12.5px; transition: none; }
	.carf .tile.off { display: none; }
	.carf .brk { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
	.carf .brk .ax { display: none; }
	.carf .hatch { min-height: 0; background: none; justify-content: flex-start; }
	.carf .hatch span { writing-mode: horizontal-tb; transform: none; padding: 0; font-size: 12px; }
	.carf .today { width: auto; margin: 0; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
	.carf .today::before { position: static; order: 2; flex: 1; border-left: 0; border-top: 2px dashed var(--ink); }
	.carf .today span { position: static; transform: none; }
	.carf .tline { display: none; }
	.carf .tflag { display: inline-block; font: 600 10.5px/1 var(--f-body); background: var(--ink); color: var(--card); padding: 3px 6px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
	.carf .detail dl { grid-template-columns: 1fr; gap: 0; }
	.carf .detail dd { margin-bottom: 6px; }
	.carf .tools input { width: 100%; }
	.carf .tools label { width: 100%; }
}
@media screen and (min-width: 721px) and (max-width: 900px) { .carf .hint { display: block; } }

@media print {
	@page { size: A4; margin: 13mm 11mm; }
	body { background: #fff; }
	.site-header, .site-footer, .hero { display: none !important; }
	.section { padding: 0 !important; }
	.carf { border: 0; border-radius: 0; box-shadow: none; max-width: none; padding: 0; gap: 16px; font-size: 12px; }
	.carf * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.carf .tools, .carf .status, .carf .detail, .carf .hint, .carf .how, .carf .next, .tip { display: none !important; }
	.carf .dim { opacity: 1; } .carf.filtered .ctl[aria-pressed="false"] { opacity: 1; }
	.carf .tile.hit, .carf .tile.sel, .carf .seg[aria-pressed="true"] { outline: 0; } .carf .row.sel { background: none; box-shadow: none; }
	.carf .key button { border: 0; padding: 0 10px 0 0; min-height: 0; }
	.carf .scroll { overflow: visible; padding: 0; }
	.carf .chart { min-width: 0; gap: 3px; } .carf .cols { gap: 3px; }
	.carf .tile { height: 16px; font-size: 9.5px; padding: 0 4px; border-radius: 3px; } .carf .tile small { font-size: 9px; }
	.carf .sb { grid-template-columns: 21em 1fr; } .carf .sb .cap b { display: inline; font-size: 17px; margin-right: 6px; } .carf .bar { height: 22px; } .carf .share { gap: 8px; }
	.carf .dated .d { font-size: 10px; } .carf .dated li { grid-template-columns: 6.4em 1.9em 1fr; }
	.carf .gh { padding: 4px 6px 6px; font-size: 9.5px; letter-spacing: .04em; } .carf .hatch { min-height: 0; } .carf .read { margin-top: 4px; }
	.carf h2 { margin-bottom: 8px; break-after: avoid; } .carf p { margin-bottom: 5px; }
	.carf .col { padding: 0 1px; }
	.carf .ax { font-size: 11px; height: 54px; } .carf .ax.txt { font-size: 8.5px; } .carf .ax small { font-size: 9.5px; }
	.carf .dated li, .carf .later { font-size: 11.5px; }
	.carf .lane { padding: 8px 12px; gap: 6px; }
	.carf .answer, .carf .share, .carf .scroll, .carf .lane, .carf .fine { break-inside: avoid; }
}
