/* Tool „Arbeitszeit“ – Dashboard (index.php) im Design der Tools (tools.css, buchung.css, werk.css). */

.az-avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 12px; background: var(--f, #0891b2); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.az-avatar.gross { width: 46px; height: 46px; border-radius: 15px; font-size: 1.2rem; }
.az-avatar.riesig { width: 72px; height: 72px; border-radius: 22px; font-size: 2rem; box-shadow: 0 16px 40px -18px var(--f); }
.plus { color: var(--gruen) !important; } .minus { color: var(--rot) !important; }

/* Zustand: da / Pause / nicht da */
.az-zustand { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-2); white-space: nowrap; }
.az-zustand i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--text-3); }
.az-zustand.da i { background: var(--gruen); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: az-puls 2.4s ease-in-out infinite; }
.az-zustand.pause i { background: var(--gelb); }
@keyframes az-puls { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }

/* Status eines Monats */
.az-status { display: inline-flex; align-items: center; padding: .18rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--flaeche-2); color: var(--text-2); }
.az-status-eingereicht { background: rgba(255, 198, 26, .16); color: #ffe08a; }
.az-status-freigegeben { background: rgba(52, 211, 153, .15); color: #86efac; }

/* Übersicht */
.az-kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: .8rem; margin-bottom: 1rem; }
.az-kennzahl { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .8rem; padding: 1rem 1.1rem; border: 1px solid var(--rand); border-radius: 18px; background: var(--flaeche); }
.az-kennzahl i { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--flaeche-2); color: var(--text-2); }
.az-kennzahl b { font-size: 1.6rem; line-height: 1.1; } .az-kennzahl span { color: var(--text-3); font-size: .85rem; }
.az-kennzahl.da i { background: rgba(52, 211, 153, .15); color: var(--gruen); } .az-kennzahl.pause i { background: rgba(255, 198, 26, .14); color: var(--gelb); }
.az-kennzahl.wartet { border-color: rgba(255, 198, 26, .45); } .az-kennzahl.wartet i { background: rgba(255, 198, 26, .16); color: var(--gelb); }
.az-liste { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.az-liste > li { display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem; border-radius: 14px; background: var(--flaeche); }
.az-liste > li > span:nth-child(2), .az-liste-link > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.az-liste b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .az-liste small { color: var(--text-3); font-size: .82rem; }
.az-anwesend > li { padding: 0; }
.az-liste-link { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .55rem .7rem; border-radius: 14px; color: inherit; text-decoration: none; transition: background .2s; }
.az-liste-link:hover { background: var(--flaeche-2); }
.az-wartet { border-color: rgba(255, 198, 26, .35); }

/* Team */
.az-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: .9rem; }
.az-person { display: grid; gap: .9rem; padding: 1.1rem; border: 1px solid var(--rand); border-radius: 20px; background: var(--flaeche); color: inherit; text-decoration: none; transition: transform .25s var(--kurve), border-color .2s, background .2s; animation-delay: calc(var(--i, 0) * 40ms); }
.az-person:hover { transform: translateY(-2px); border-color: var(--rand-2); background: var(--flaeche-2); }
.az-person.inaktiv { opacity: .6; }
.az-person-kopf { display: flex; align-items: center; gap: .8rem; min-width: 0; } .az-person-kopf > span:last-child { min-width: 0; }
.az-person-kopf b { display: block; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .az-person-kopf small { color: var(--text-3); font-size: .82rem; }
.az-person-zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.az-person-zahlen > span { padding: .55rem .7rem; border-radius: 12px; background: rgba(0, 0, 0, .18); } .az-person-zahlen small { display: block; color: var(--text-3); font-size: .75rem; } .az-person-zahlen b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.az-person-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; }

/* Werkzeugleiste mit Monatswahl */
.az-werkzeugleiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; margin-bottom: 1rem; }
.az-monatnav { display: inline-flex; align-items: center; gap: .5rem; } .az-monatnav b { min-width: 9.5rem; text-align: center; font-size: 1.05rem; }

/* Tabellen */
.az-tabelle-karte { padding: 0 !important; overflow: hidden; }
.az-tabelle-huelle { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.az-tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.az-tabelle th, .az-tabelle td { padding: .6rem .8rem; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; }
.az-tabelle th { position: sticky; top: 0; background: #0d1330; color: var(--text-3); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.az-tabelle .z { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.az-tabelle tfoot td { font-weight: 700; border-bottom: 0; }
.az-tabelle tr.frei td { color: var(--text-3); background: rgba(0, 0, 0, .12); }
.az-tabelle tr.heute td { background: rgba(255, 198, 26, .07); } .az-tabelle tr.heute .az-tag b { color: var(--gelb); }
.az-tabelle tr.zukunft td { opacity: .75; }
.az-tag { white-space: nowrap; } .az-tag small { display: block; color: var(--gelb); font-size: .75rem; white-space: normal; }
.az-name { display: inline-flex; align-items: center; gap: .5rem; color: inherit; font-weight: 650; text-decoration: none; } .az-name:hover { text-decoration: underline; }
.az-name .az-avatar { width: 26px; height: 26px; border-radius: 9px; font-size: .8rem; }
.az-hinweis-zahl { color: var(--gelb); font-size: .8rem; white-space: nowrap; }
.az-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.az-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; transition: background .2s; }
.az-chip:hover { background: color-mix(in srgb, var(--c) 28%, transparent); } .az-chip i { color: color-mix(in srgb, var(--c) 70%, #fff); font-size: .8rem; }
.az-chip small { color: var(--text-2); } .az-chip .az-notiz { font-style: italic; }
.az-chip-neu { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px dashed var(--rand-2); border-radius: 9px; background: none; color: var(--text-3); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, border-color .15s; }
tr:hover .az-chip-neu, .az-chip-neu:focus-visible { opacity: 1; } .az-chip-neu:hover { color: var(--gelb); border-color: var(--gelb); }
@media (hover: none) { .az-chip-neu { opacity: .7; } }
.az-hinweise { margin: .35rem 0 0; color: var(--gelb); font-size: .8rem; }
.az-legende i { color: var(--text-2); margin-left: .2rem; }

/* Summen und Abschluss einer Person */
.az-summen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .6rem; margin-bottom: .8rem; }
.az-summen > div { padding: .75rem .9rem; border: 1px solid var(--rand); border-radius: 14px; background: var(--flaeche); } .az-summen small { display: block; color: var(--text-3); font-size: .78rem; } .az-summen b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.az-abschluss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1rem; padding: .75rem 1rem; border: 1px solid var(--rand); border-radius: 14px; background: var(--flaeche); color: var(--text-2); font-size: .92rem; }
.az-abschluss-eingereicht { border-color: rgba(255, 198, 26, .45); background: rgba(255, 198, 26, .06); }
.az-abschluss > span:first-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.az-kopf .wz-zahlen { align-items: center; }
.az-punkt-warn { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gelb); vertical-align: middle; }

/* Dialog Eintrag */
.az-zeitfelder { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: .7rem; }
.az-netto { min-height: 1.2em; margin: -.2rem 0 0; color: var(--text-2); }
.az-tage { display: flex; flex-wrap: wrap; gap: .35rem; }
.az-tage label { position: relative; } .az-tage input { position: absolute; opacity: 0; pointer-events: none; }
.az-tage span { display: inline-grid; place-items: center; min-width: 2.6rem; padding: .45rem .5rem; border: 1px solid var(--rand-2); border-radius: 10px; color: var(--text-2); font-weight: 650; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.az-tage input:checked + span { background: var(--gelb); border-color: var(--gelb); color: #111; } .az-tage input:focus-visible + span { outline: 2px solid var(--gelb); outline-offset: 2px; }
.az-feld-kurz input { max-width: 9rem; }

/* Zugang, Einstellungen, Protokoll */
.az-pruefliste { display: grid; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; color: var(--text-2); }
.az-pruefliste li { display: flex; gap: .55rem; align-items: baseline; } .az-pruefliste .ok i { color: var(--gruen); } .az-pruefliste .offen i { color: var(--text-3); } .az-pruefliste .warn { color: #ffe08a; }
.az-einmal { margin: .6rem 0 1rem; padding: 1rem; border: 1px dashed rgba(255, 198, 26, .5); border-radius: 14px; background: rgba(255, 198, 26, .05); } .az-einmal p { margin: 0 0 .6rem; font-size: .9rem; }
.az-terminal-neu { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem; margin-top: 1rem; } .az-terminal-neu .t-feld { flex: 1 1 220px; margin: 0; }
.az-einstellungen, .az-stammdaten { display: grid; gap: .9rem; } .az-einstellungen .t-feld, .az-stammdaten .t-feld { margin: 0; }
.az-protokoll { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.az-protokoll li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--rand); font-size: .9rem; }
.az-protokoll time { color: var(--text-3); font-variant-numeric: tabular-nums; } .az-protokoll small { display: block; color: var(--text-2); overflow-wrap: anywhere; } .az-protokoll s { color: var(--text-3); }
.az-protokoll .az-grund { color: #ffe08a; }
.az-p-geloescht b, .az-p-stempel_verworfen b { color: var(--rot); } .az-p-freigegeben b { color: var(--gruen); }
@media (max-width: 640px) { .az-protokoll li { grid-template-columns: 1fr; gap: .1rem; } .az-zeitfelder { grid-template-columns: 1fr 1fr; } .az-zeitfelder label:last-child { grid-column: 1 / -1; } .az-tabelle th, .az-tabelle td { padding: .5rem .55rem; } }

/* Attrappe auf der Startseite */
.az-attrappe { display: grid; gap: 12px; }
.az-a-uhr { display: grid; justify-items: center; gap: 4px; padding: 14px; border-radius: 18px; background: #f1f5f9; } .az-a-uhr small { color: #64748b; font-size: 12px; } .az-a-uhr b { font-size: 34px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.az-a-uhr .az-zustand { color: #334155; font-size: 12px; } .az-a-uhr .az-zustand.da i { background: #10b981; }
.az-a-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.az-a-knopf { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 14px; color: #fff; font-weight: 750; font-size: 13px; } .az-a-knopf.pause { background: #f59e0b; } .az-a-knopf.gehen { background: #e11d48; }
.az-a-zeilen { display: grid; gap: 6px; } .az-a-zeilen div { display: flex; justify-content: space-between; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 12px; } .az-a-zeilen span { color: #64748b; } .az-a-zeilen .plus { color: #059669 !important; }

@media print { .bu-kopf, .bu-fuss, .bu-reiter, .az-werkzeugleiste .bu-knopfreihe, .az-chip-neu, .t-zurueck { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .az-zustand.da i { animation: none; } .az-person { transition: none; } }

/* Kategorien (Kunden, Projekte …): Liste in den Einstellungen, Auswertung je Kategorie, Marke an Einträgen */
.az-kat-karte { display: grid; gap: .9rem } .az-kat-karte .t-feld { margin: 0 }
.az-kat-pflicht { align-self: end }
.az-kat-tabelle { display: grid; gap: .35rem; max-height: 26rem; overflow: auto; padding-right: .2rem }
.az-kat-zeile { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto; gap: .5rem; align-items: center }
.az-kat-zeile input[type=text] { width: 100%; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--rand-2); border-radius: 10px; background: var(--flaeche); color: var(--text); font: inherit }
.az-kat-zeile.neu input[type=text] { border-style: dashed }
.az-kat-zeile.weg { opacity: .45 } .az-kat-zeile.weg input[type=text] { text-decoration: line-through }
.az-kat-kopfzeile { color: var(--text-3); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase }
.az-kat-aktiv { position: relative; display: inline-grid; place-items: center; width: 2.6rem; cursor: pointer }
.az-kat-aktiv input { position: absolute; opacity: 0 }
.az-kat-aktiv span { width: 2.3rem; height: 1.3rem; border-radius: 99px; background: var(--flaeche-2); box-shadow: inset 0 0 0 1px var(--rand-2); position: relative; transition: background .2s }
.az-kat-aktiv span::after { content: ''; position: absolute; top: .15rem; left: .15rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; transition: transform .2s }
.az-kat-aktiv input:checked + span { background: var(--gruen) } .az-kat-aktiv input:checked + span::after { transform: translateX(1rem) }
.az-kat-aktiv input:focus-visible + span { outline: 2px solid var(--gelb); outline-offset: 2px }
.az-kat-chip { color: var(--text-2) } .az-kat-chip i { color: var(--gelb); font-size: .75rem }
.az-kat-auswertung-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem } .az-kat-auswertung-kopf h2 { margin: 0 }
.az-kat-balken { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none }
.az-kat-balken-kopf { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .3rem } .az-kat-balken-kopf > span { color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums }
.az-kat-bahn { display: block; height: .55rem; border-radius: 99px; background: var(--flaeche-2); overflow: hidden } .az-kat-bahn span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gelb), #ffb31a) }
.az-kat-personen { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .35rem; color: var(--text-3); font-size: .84rem } .az-kat-personen b { color: var(--text-2); font-weight: 650 }
@media (max-width: 640px) { .az-kat-zeile { grid-template-columns: minmax(0, 1fr) auto auto } .az-kat-zeile input[name$="[nummer]"] { grid-column: 1; grid-row: 2 } .az-kat-kopfzeile span:nth-child(2) { display: none } }

/* ---------- Datensicherung (Reiter „Datensicherung“) ---------- */
.az-druck-zelle { display: flex; justify-content: flex-end; gap: .2rem; }
.az-sich-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem 1.1rem; align-items: center; }
.az-sich-kopf h2 { margin: 0 0 .2rem; }
.az-sich-kopf p { margin: .15rem 0; }
.az-sich-knoepfe { grid-column: 1 / -1; margin-top: .6rem; }
.az-sich-schild { position: relative; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 18px; background: linear-gradient(145deg, rgba(52, 211, 153, .25), rgba(16, 185, 129, .08)); color: #34d399; font-size: 1.6rem; box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .35); }
.az-sich-schild::after { content: ''; position: absolute; inset: -5px; border-radius: 22px; border: 2px solid rgba(52, 211, 153, .35); animation: az-sich-puls 2.6s ease-out infinite; }
@keyframes az-sich-puls { from { opacity: .9; transform: scale(.94); } to { opacity: 0; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .az-sich-schild::after { animation: none; opacity: 0; } }
.az-sich-liste > li { flex-wrap: wrap; }
.az-sich-symbol { display: grid; place-items: center; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--flaeche-2, rgba(255, 255, 255, .06)); color: var(--text-3); }
.az-sich-hand .az-sich-symbol { color: #60a5fa; background: rgba(96, 165, 250, .14); }
.az-sich-upload .az-sich-symbol { color: #c084fc; background: rgba(192, 132, 252, .14); }
.az-sich-vor .az-sich-symbol { color: #fbbf24; background: rgba(251, 191, 36, .14); }
.az-sich-auto .az-sich-symbol { color: #34d399; background: rgba(52, 211, 153, .12); }
.az-sich-liste small { white-space: normal; }
.az-sich-aktionen { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.az-sich-aktionen form { margin: 0; }
.az-sich-datei { position: relative; display: block; margin: .8rem 0; cursor: pointer; }
.az-sich-datei input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.az-sich-datei span { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.3rem 1rem; border: 2px dashed var(--rand-2, rgba(255, 255, 255, .18)); border-radius: 16px; text-align: center; transition: border-color .2s, background .2s; }
.az-sich-datei span i { font-size: 1.5rem; color: var(--text-3); }
.az-sich-datei small { color: var(--text-3); }
.az-sich-datei:hover span, .az-sich-datei input:focus-visible + span, .az-sich-datei.gewaehlt span { border-color: #34d399; background: rgba(52, 211, 153, .06); }
.az-sich-info ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.az-sich-info li { color: var(--text-2, inherit); line-height: 1.5; }
@media (max-width: 560px) { .az-sich-kopf { grid-template-columns: 1fr; } .az-sich-aktionen { width: 100%; justify-content: flex-end; } }
.az-loeschen-sicherung { margin: .2rem 0 .9rem; align-items: flex-start; }
.az-loeschen-sicherung small { display: block; margin-top: .15rem; color: var(--text-3); font-size: .82rem; font-weight: 400; }
