/* zeiten.css — Ergänzungen für „Stunden und Projekte“. Farben nur aus auswertung.css. */

.z-feld { display: inline-flex; align-items: center; gap: 6px; }
.z-zaehler { font-size: 13px; color: var(--text-3); margin-left: auto; }
@media (max-width: 720px) { .z-zaehler { margin-left: 0; flex-basis: 100%; } }
select.feld { max-width: 100%; }

.z-hinweis { margin: -12px 0 20px; padding: 10px 14px; border-radius: 10px; background: var(--flaeche-2); color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.z-hinweis b { color: var(--text-1); font-weight: 620; }

@media (max-width: 520px) {
  #kennzahlen { grid-template-columns: 1fr 1fr; }
  #kennzahlen .kz { padding: 14px 14px 16px; }
  #kennzahlen .kz:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.kz .kz-neben .status { vertical-align: baseline; }

/* Budgetmarke und Nulllinie in den eigenen Balkendiagrammen */
.dia .z-marke { stroke: var(--text-1); stroke-width: 2; stroke-linecap: round; }
.dia .z-null { stroke: var(--text-3); stroke-width: 1; }
.legende i.z-strich { width: 2px; height: 14px; border-radius: 1px; background: var(--text-1); }

/* Kacheln der Auffälligkeiten: Knöpfe, die die Tabelle darunter eingrenzen */
.z-kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.z-kachel {
  display: grid; gap: 2px; text-align: left; min-height: 44px; padding: 12px 14px;
  border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche-1); color: var(--text-1);
  font: inherit; cursor: pointer;
}
.z-kachel b { font-size: 24px; font-weight: 680; font-stretch: 90%; line-height: 1.1; }
.z-kachel span { font-size: 13px; color: var(--text-2); }
.z-kachel:hover { background: var(--flaeche-2); }
.z-kachel[aria-pressed="true"] { border-color: var(--text-1); box-shadow: inset 0 0 0 1px var(--text-1); background: var(--flaeche-2); }
@media (max-width: 900px) { .z-kacheln { grid-template-columns: 1fr 1fr; } }

/* lange Texte in Tabellen umbrechen statt die Tabelle endlos breit zu machen */
#d-auff td:last-child { white-space: normal; min-width: 220px; }
#d-prognose td:last-child { white-space: normal; min-width: 200px; }

/* das hidden-Attribut muss auch bei Knöpfen und Karten mit display gelten */
main [hidden] { display: none !important; }

/* Tastatur: sichtbarer Rahmen, kein seitliches Verrutschen */
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
button:focus-visible, a:focus-visible, select:focus-visible, .knopf:focus-within { outline: 2px solid var(--akzent); outline-offset: 2px; }
html { overflow-x: clip; }
body { overflow-x: clip; }

/* Zustände der eigenen Knöpfe */
.z-kachel:active, .knopf:active { transform: translateY(1px); }
#vorlage { white-space: nowrap; }

/* ---------- Excel-Vorlage: dritter Knopf im Ablagefeld und neben dem CSV-Knopf ---------- */
@media (min-width: 721px) and (max-width: 1100px) { .ablage .knoepfe { max-width: 330px; } }
#vorlage, #vorlage ~ a.knopf { margin-block: 4px; }

/* Verweis auf „Datei erkennen lassen“ */
.erkennen-satz { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.erkennen-satz a { color: var(--akzent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
