/* Gestaltung */
@font-face { font-family: "Jakarta"; src: url(fonts/jakarta-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(fonts/jakarta-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(fonts/jakarta-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(fonts/jakarta-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(fonts/jakarta-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --bg: #f2f5f9;
  --card: #ffffff;
  --text: #13202f;
  --muted: #5d6b7c;
  --line: #e3e9f0;
  --primary: #1f7f7f;       /* Hauptfarbe (Buttons, Links) – in den Einstellungen änderbar */
  --primary-dark: #176464;
  --primary-soft: #e3f5f5;
  --brand-teal: #3dbfbf;    /* Akzentfarbe */
  --accent-rgb: 61, 191, 191;
  --brand-teal-d: #2a9898;
  --brand-dark: #0d1119;    /* Seitenleiste */
  --brand-dark2: #121824;
  --brand-orange: #f0a020;
  --ok: #1e8a4c;
  --ok-soft: #e4f5ea;
  --danger: #c0392b;
  --danger-soft: #fbe9e7;
  --warn: #8a5300;
  --warn-soft: #fff4dc;
  --weekend: #f7f8fa;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .05), 0 8px 24px rgba(13, 27, 42, .05);
  --side-w: 248px;
  --c-urlaub: #3b6ff5;
  --c-krank: #d9534f;
  --c-ueber: #8e5bd0;
  --c-sonder: #2a9d8f;
  --c-schule: #e0a100;
  --c-abwesend: #8a94a3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.65rem; margin: 0 0 .25rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.08rem; margin: 0 0 .75rem; font-weight: 800; }
code { background: var(--primary-soft); padding: 1px 5px; border-radius: 4px; }
code.big { font-size: 1.3rem; padding: 4px 10px; letter-spacing: .05em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mt { margin-top: 1rem; }
.pad { padding: 1rem 1.25rem; }
.pos { color: var(--ok); }
.neg { color: var(--danger); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { background: var(--brand-orange); color: #2a1800; border-radius: 10px; padding: 0 6px; font-size: .75rem; font-weight: 800; margin-left: 2px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-teal); color: var(--brand-dark); font-weight: 800; font-size: .82rem; flex: none; }

/* ---- Seitenleiste (Desktop) ---- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--brand-dark); color: rgba(255,255,255,.78); display: flex; flex-direction: column; z-index: 30; transition: width .25s ease; overflow: hidden; padding-top: env(safe-area-inset-top); }
.side-brand { display: flex; align-items: center; gap: .7rem; padding: 1.15rem 1.1rem 1rem; min-height: 72px; color: #fff; }
.side-brand:hover { text-decoration: none; }
.side-mark { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; flex: none; }
.side-logo { min-width: 0; display: flex; align-items: center; }
.side-logo .brand-logo img { max-height: 34px; max-width: 190px; display: block; }
.side-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: .25rem .75rem 1rem; scrollbar-width: thin; }
.side-group { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.42); padding: 1rem .75rem .35rem; white-space: nowrap; }
.side-link { position: relative; display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 44px; padding: 0 .75rem; margin: 2px 0; border-radius: 12px; color: rgba(255,255,255,.8); font: inherit; font-weight: 600; font-size: .93rem; background: none; border: 0; cursor: pointer; white-space: nowrap; text-align: left; transition: background .15s, color .15s; }
.side-link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.side-link.active { background: var(--brand-teal); color: var(--brand-dark); font-weight: 800; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .35); }
.side-link .ico { flex: none; }
.side-label { overflow: hidden; text-overflow: ellipsis; display: flex; flex-direction: column; line-height: 1.25; }
.side-label small { font-weight: 500; color: rgba(255,255,255,.5); font-size: .75rem; }
.side-badge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--brand-orange); color: #2a1800; font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.side-foot { border-top: 1px solid rgba(255,255,255,.08); padding: .6rem .75rem calc(.75rem + env(safe-area-inset-bottom)); }
.side-me .avatar { width: 32px; height: 32px; }
.side-toggle .ico { transition: transform .25s; }
.has-shell .shell-main { margin-left: var(--side-w); transition: margin-left .25s ease; min-height: 100vh; display: flex; flex-direction: column; }
.has-shell .shell-main > main { flex: 1; width: 100%; }
html.side-min { --side-w: 78px; }
html.side-min .side-label, html.side-min .side-group, html.side-min .side-logo { display: none; }
html.side-min .side-mark { display: inline-flex; }
html.side-min .side-brand { padding-left: 19px; }
html.side-min .side-link { justify-content: center; padding: 0; }
html.side-min .side-badge { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; font-size: .68rem; padding: 0 4px; }
html.side-min .side-toggle .ico { transform: rotate(180deg); }
html.side-min .side-group + .side-link { margin-top: 14px; }

/* ---- Handy: Kopf + Menüleiste unten ---- */
.mtop, .tabbar { display: none; }
@media (max-width: 899px) {
  .side { display: none; }
  .has-shell .shell-main { margin-left: 0; }
  .mtop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: 0; z-index: 20; background: var(--brand-dark); color: #fff; padding: calc(.55rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .55rem max(1rem, env(safe-area-inset-left)); min-height: 56px; }
  .mtop-brand { color: #fff; display: flex; align-items: center; min-width: 0; }
  .mtop-brand:hover { text-decoration: none; }
  .mtop-brand .brand-logo img { max-height: 30px; max-width: 170px; display: block; }
  .mtop-me .avatar { width: 36px; height: 36px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(13,27,42,.06); padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
  .tab { line-height: 1.2; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-height: 52px; padding-top: 8px; color: #6f7c8d; font: inherit; font-size: .7rem; font-weight: 700; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tab:hover { text-decoration: none; }
  .tab::before { content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 4px; border-radius: 2px; background: var(--brand-teal); transform: translateX(-50%); transition: width .25s ease; }
  .tab.active { color: var(--primary); }
  .tab.active::before { width: 28px; }
  .tab:active .ico { transform: scale(.9); }
  .tab-dot { position: absolute; top: 8px; right: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: var(--brand-orange); border: 2px solid #fff; }
  .tab-fab { justify-self: center; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-top: -30px; margin-bottom: 4px; border-radius: 20px; background: var(--primary); color: #fff; border: 4px solid var(--bg); box-shadow: 0 10px 22px rgba(13,27,42,.25); }
  .tab-fab:active { transform: scale(.95); }
  .has-shell .container { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .has-shell .footer { display: none; }
  .license-bar { font-size: .8rem; padding: .45rem .9rem; }
}
dialog.modal.sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 85vh; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheetup .28s cubic-bezier(.2,.8,.2,1); }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: #d3dbe4; margin: 10px auto 4px; }
.sheet-body { overflow-y: auto; padding: .25rem 1rem .5rem; }
.sheet-body .side-group { color: var(--muted); padding-left: .5rem; }
.sheet-link { display: flex; align-items: center; gap: .9rem; min-height: 50px; padding: 0 .6rem; border-radius: 12px; color: var(--text); font-weight: 600; }
.sheet-link:hover, .sheet-link.active { background: var(--primary-soft); text-decoration: none; }
.sheet-link .ico { color: var(--primary); }
.sheet-link .side-badge { margin-left: auto; }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 1.6rem 1.75rem 3rem; }
@media (max-width: 899px) { .container { padding: 1.1rem .9rem 3rem; } }
.container.narrow { max-width: 760px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.4rem; margin-bottom: 1.1rem; }
.card.flush { padding: 0; overflow: hidden; }
.card.highlight { border-left: 4px solid var(--ok); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem 1rem; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + * { margin-top: 1rem; }
.span2 { grid-column: span 2; }
@media (max-width: 800px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .grid2 > .card { margin-bottom: 1rem; }
}
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.15rem; }
.stat span { display: block; color: var(--muted); font-size: .82rem; }
.stat strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .stat { padding: .7rem .8rem; } .stat strong { font-size: 1.3rem; } .stat small { display: block; margin: 0; } }
.stat small { color: var(--muted); margin-left: .35rem; }

/* Formulare */
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: .2rem; padding: .55rem .65rem; font: inherit; color: var(--text);
  border: 1px solid #cfd6df; border-radius: 10px; background: #fff; min-height: 44px;
}
input:focus, select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
label.check { display: flex; align-items: center; gap: .45rem; color: var(--text); font-size: .92rem; }
label.check input { width: auto; min-height: 0; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: .5rem 0 1rem; padding: .75rem 1rem .25rem; }
legend { color: var(--muted); font-size: .85rem; padding: 0 .3rem; }
.entry-form { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: flex-end; }
.entry-form > label { flex: 0 1 150px; margin-bottom: .5rem; }
.entry-form > label.grow { flex: 1 1 220px; }
.entry-form > label.check { flex: 0 0 auto; padding-bottom: .7rem; }
.form-actions { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; flex-wrap: wrap; }
.weekhours { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: flex-end; }
.weekhours label { flex: 0 1 80px; }
.weekhours label:first-child:has(input[type=date]) { flex-basis: 170px; }
.filters { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: flex-end; margin-bottom: 1rem; }
.filters label { margin-bottom: .5rem; min-width: 150px; }
.filters .quick { flex-basis: 100%; display: flex; gap: .4rem; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.inline-form select { display: inline-block; width: auto; margin: 0 .5rem .5rem 0; vertical-align: middle; }
.user-switch label { display: flex; align-items: center; gap: .5rem; margin: 0; }
.user-switch select { margin: 0; width: auto; min-width: 200px; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; background: var(--primary); color: #fff;
  border: 1px solid var(--primary); border-radius: 10px; padding: .55rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--primary); border-color: #c9d6e6; }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-ok { background: var(--ok); border-color: var(--ok); }
.btn-ok:hover { background: #17703d; }
.btn-danger { background: #fff; color: var(--danger); border-color: #e8b4ad; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: .3rem .65rem; min-height: 32px; font-size: .85rem; }
.btn-block { width: 100%; margin-top: .5rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--danger); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* Meldungen */
.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.flash-success { background: var(--ok-soft); color: #145c33; }
.flash-error { background: var(--danger-soft); color: #8a2419; }
.flash-info { background: var(--primary-soft); color: #173f6d; }
.warn { color: var(--warn); font-size: .82rem; }
.checklist { list-style: none; padding: 0; }
.checklist .ok { color: var(--ok); }
.checklist .fail { color: var(--danger); font-weight: 600; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; }
th, td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; background: #fafbfc; }
tfoot th { background: #f3f6fa; color: var(--text); font-size: .9rem; }
table.compact td, table.compact th { padding: .35rem .5rem; }
tr.dim td { opacity: .55; }
td.actions { white-space: nowrap; text-align: right; }
td.actions a, td.actions form { margin-left: .6rem; }
.days tr.weekend td { background: var(--weekend); color: var(--muted); }
.days tr.holiday td { background: #f3f5f8; }
.days tr.today td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.days tr.today td { background: #fbfdff; }
.days td.day { white-space: nowrap; width: 105px; }
.add-link { display: inline-block; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; border: 1px solid #c9d6e6; margin-left: .35rem; font-weight: 700; }
.add-link:hover { background: var(--primary-soft); text-decoration: none; }
.entry { display: flex; flex-wrap: wrap; gap: .15rem .6rem; align-items: baseline; padding: 2px 0; }
.entry-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.entry-dur { color: var(--muted); font-variant-numeric: tabular-nums; }
.entry-note { color: var(--text); font-style: italic; }
.entry-actions { font-size: .82rem; margin-left: auto; }
.entry-actions a, .entry-actions form { margin-left: .5rem; }
.compact tr.weekend td { color: var(--muted); }
.compact tr.today td { font-weight: 600; }

/* responsive Tabellen */
@media (max-width: 700px) {
  table.days thead, table.list thead { display: none; }
  table.days, table.days tbody, table.days tr, table.days td,
  table.list, table.list tbody, table.list tr, table.list td { display: block; width: 100%; }
  table.days tr, table.list tr { border-bottom: 1px solid var(--line); padding: .4rem .75rem; }
  table.days td, table.list td { border: 0; padding: .15rem 0; text-align: left; }
  table.days td.num, table.list td.num { text-align: left; }
  table.days td[data-label]:not(.day)::before, table.list td[data-label]::before {
    content: attr(data-label) ": "; color: var(--muted); font-size: .8rem;
  }
  table.days td:empty, table.list td:empty { display: none; }
  table.days tfoot tr { display: table-row; }
  table.days tfoot, table.days tfoot th { display: table-cell; }
  td.actions { text-align: left; }
  td.actions a:first-child, td.actions form:first-child { margin-left: 0; }
  .days td.day { width: auto; font-size: 1.02rem; }
  table.list.compact tr { padding: .25rem .5rem; }
}

/* Tags & Status */
.tag { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 12px; background: #eef1f5; color: var(--text); margin: 1px 2px 1px 0; white-space: nowrap; }
.tag.c-urlaub { background: #e0f4f4; color: #176464; }
.tag.c-krank { background: #fbe4e3; color: #9c2a26; }
.tag.c-ueber { background: #efe6fa; color: #5f3796; }
.tag.c-sonder { background: #def3f0; color: #1d6e64; }
.tag.c-schule { background: #fdf1d3; color: #7a5800; }
.tag-holiday { background: #eceff4; color: #3a4658; }
.tag.c-payout { background: #fff0e5; color: #a8470a; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-pending { background: repeating-linear-gradient(45deg, #fff6dd, #fff6dd 6px, #ffefc2 6px, #ffefc2 12px); color: #7a5300; }
.status { font-size: .8rem; font-weight: 600; padding: 1px 8px; border-radius: 12px; }
.status-beantragt { background: var(--warn-soft); color: var(--warn); }
.status-genehmigt { background: var(--ok-soft); color: var(--ok); }
.status-abgelehnt { background: var(--danger-soft); color: var(--danger); }
.status-storniert { background: #eef1f5; color: var(--muted); }
ul.plain { list-style: none; padding: 0; margin: 0 0 .75rem; }
ul.plain li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
ul.columns { columns: 3 220px; padding-left: 1rem; margin: 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .5rem 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

/* Monatsnavigation */
.month-nav { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.month-nav strong { font-size: 1.15rem; min-width: 150px; text-align: center; }

/* Antraege */
.request { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.request-main > div { margin-bottom: .2rem; }
.request-when { font-size: 1rem; }
.request-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.request-actions input { width: 220px; margin: 0; }

/* Teamkalender */
.cal-wrap { overflow-x: auto; }
table.cal { border-collapse: separate; border-spacing: 0; font-size: .8rem; }
table.cal th, table.cal td { padding: 0; width: 30px; min-width: 28px; height: 32px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); border-right: 1px solid #f0f2f5; }
table.cal th { font-weight: 600; line-height: 1.1; padding: 4px 0; }
.cal-dow { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); }
table.cal .cal-name { text-align: left; padding: 0 .75rem; min-width: 150px; width: 150px; position: sticky; left: 0; background: #fff; z-index: 1; white-space: nowrap; font-size: .88rem; }
table.cal th.we, table.cal th.hol { background: #eef1f5; }
table.cal td.off { background: #f1f3f6; }
table.cal .now { box-shadow: inset 0 0 0 2px var(--primary); }
table.cal td.c-urlaub { background: var(--c-urlaub); color: #fff; font-weight: 700; }
table.cal td.c-krank { background: var(--c-krank); color: #fff; font-weight: 700; }
table.cal td.c-ueber { background: var(--c-ueber); color: #fff; font-weight: 700; }
table.cal td.c-sonder { background: var(--c-sonder); color: #fff; font-weight: 700; }
table.cal td.c-schule { background: var(--c-schule); color: #fff; font-weight: 700; }
table.cal td.c-abwesend { background: var(--c-abwesend); color: #fff; font-weight: 700; }
table.cal td.pending { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.45), rgba(255,255,255,.45) 4px, transparent 4px, transparent 8px); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.legend i.c-urlaub { background: var(--c-urlaub); } .legend i.c-krank { background: var(--c-krank); }
.legend i.c-ueber { background: var(--c-ueber); } .legend i.c-sonder { background: var(--c-sonder); }
.legend i.c-schule { background: var(--c-schule); } .legend i.c-abwesend { background: var(--c-abwesend); }
.legend i.pending-sample { background: repeating-linear-gradient(45deg, var(--c-urlaub), var(--c-urlaub) 3px, #9ddcdc 3px, #9ddcdc 6px); }
.legend i.off-sample { background: #f1f3f6; border: 1px solid var(--line); }

/* Anmeldung */
.auth-body { background: radial-gradient(ellipse at top, #16202e 0%, var(--brand-dark) 60%, #08090d 100%); min-height: 100vh; }
.auth-body .container { padding-top: 8vh; }
.auth-card { max-width: 400px; margin: 0 auto; text-align: center; padding: 2rem; overflow: hidden; }
.auth-card form { text-align: left; margin-top: 1rem; }
.auth-logo { margin-bottom: .5rem; }

/* Druck: Monatsnachweis */
.print-page { background: #fff; }
.print-actions { max-width: 900px; margin: 1rem auto; display: flex; gap: .5rem; padding: 0 1rem; }
.sheet { max-width: 900px; margin: 0 auto 2rem; padding: 0 1rem; font-size: 12.5px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--text); padding-bottom: .5rem; margin-bottom: .75rem; }
.sheet-head h1 { font-size: 1.35rem; margin: 0; }
.sheet-head .right { text-align: right; }
.sheet-table th, .sheet-table td { padding: 3px 6px; border-bottom: 1px solid #ddd; }
.sheet-table th { background: #f2f2f2; color: #333; }
.sheet-table tr.weekend td { background: #f7f7f7; color: #777; }
.sheet-summary { width: auto; min-width: 360px; margin: 1rem 0 0 auto; }
.sheet-summary td { padding: 3px 8px; }
.sheet-summary tr.total td { font-weight: 700; border-top: 2px solid #333; }
.signatures { display: flex; gap: 3rem; margin-top: 3.5rem; }
.signatures div { flex: 1; border-top: 1px solid #333; padding-top: .3rem; color: #555; font-size: .85rem; }
@media print {
  @page { size: A4; margin: 12mm; }
  .no-print, .side, .mtop, .tabbar, .footer { display: none !important; }
  .has-shell .shell-main { margin-left: 0 !important; }
  body { background: #fff; }
  .sheet { max-width: none; padding: 0; font-size: 10.5px; }
  .sheet-table tr { page-break-inside: avoid; }
}

/* Firmenlogo */
.brand { gap: .6rem; }
.brand-logo { display: inline-flex; align-items: center; height: 40px; }
.brand-logo img { max-height: 32px; max-width: 170px; display: block; }
.brand-text { display: none; }
.nologo .brand-logo { display: none; }
.nologo .brand-text { display: inline; }
.brand-block .brand-logo { background: none; padding: 0; height: auto; }
.brand-block .brand-logo.big img, .auth-logo .brand-logo img { max-height: 80px; max-width: 260px; }
.brand-block.nologo .brand-text { font-size: 1.4rem; font-weight: 700; color: #fff; }
.auth-logo { display: flex; justify-content: center; align-items: center; background: var(--brand-dark); margin: -2rem -2rem 1.25rem; padding: 1.75rem 1.5rem; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 3px solid var(--brand-teal); min-height: 110px; }
.auth-logo.nologo .brand-text { color: #fff; }
.sheet-logo { margin-bottom: .35rem; }
.sheet-logo .brand-logo img { max-height: 46px; max-width: 220px; }
.sheet-logo.nologo .brand-text { font-size: 1rem; color: #555; font-weight: 400; }
.logo-preview { padding: 1rem; background: var(--brand-dark); border-radius: 8px; margin-bottom: 1rem; display: flex; justify-content: center; }
@media (max-width: 480px) { .brand-logo img { max-width: 150px; } }

/* Handy-App (PWA) */
.container { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
.install-banner { display: flex; align-items: center; gap: .8rem; background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; border-left: 4px solid var(--brand-teal); }
.install-banner[hidden] { display: none; }
.install-banner img { border-radius: 9px; flex: none; }
.install-banner > div { flex: 1; line-height: 1.35; }
.install-banner .small { color: rgba(255,255,255,.75); }
.banner-close { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.app-hero { display: flex; gap: 1.25rem; align-items: flex-start; }
.app-hero img { border-radius: 16px; flex: none; }
.app-hero p { margin-top: 0; }
.installed-note { color: var(--ok); font-weight: 600; }
ol.steps { padding-left: 1.2rem; margin: 0; }
ol.steps li { margin-bottom: .45rem; }
.card.platform-match { box-shadow: 0 0 0 2px var(--brand-teal), var(--shadow); }
[data-install-btn][hidden], [data-installed][hidden] { display: none; }
@media (display-mode: standalone) { .footer { display: none; } }
code.wrap { word-break: break-all; display: inline-block; padding: 6px 8px; }
details > summary { cursor: pointer; color: var(--primary); font-weight: 600; }

/* Erinnerung fehlende Tage */
.card.reminder { border-left: 4px solid var(--brand-orange); background: #fff8f2; }
.reminder-head { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; margin-bottom: .6rem; }
.reminder-days { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.day-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 16px; background: #fff; border: 1px solid #f3c8a6; color: var(--text); font-size: .88rem; }
.day-chip span { color: var(--brand-orange); font-weight: 700; }
a.day-chip:hover { background: #ffeede; text-decoration: none; }
.day-chip.locked { opacity: .6; }
.tag-late { background: #fff1e6; color: #a04a00; }
.missing-count { color: #a04a00; font-weight: 600; }
.model-type { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-bottom: .5rem; }
[data-weekly][hidden], [data-monthly][hidden] { display: none !important; }
.card.danger-zone { border-left: 4px solid var(--danger); }

/* ---- Teamkalender Handy-Ansicht ---- */
.calm { display: none; }
@media (max-width: 760px) {
  .cal-desktop { display: none !important; }
  .calm { display: block; }
}
.calm-month { padding: .75rem .6rem .9rem; }
.calm-head, .calm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calm-head span { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; padding-bottom: .35rem; }
.calm-empty { aspect-ratio: 1 / 1.05; }
.calm-day { aspect-ratio: 1 / 1.05; border: 0; background: #f6f8fa; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6px 2px 4px; font: inherit; color: var(--text); cursor: pointer; transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.calm-day:active { transform: scale(.94); }
.calm-day.we, .calm-day.hol { background: transparent; color: #a3adb9; }
.calm-day.now .calm-num { background: var(--brand-teal); color: var(--brand-dark); }
.calm-day.sel { background: var(--brand-dark); color: #fff; }
.calm-day.sel .calm-num { color: #fff; }
.calm-day.sel.now .calm-num { color: var(--brand-dark); }
.calm-num { font-weight: 700; font-size: .95rem; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; text-align: center; }
.calm-dots { display: flex; gap: 3px; align-items: center; margin-top: auto; min-height: 9px; }
.calm-dots i { width: 7px; height: 7px; border-radius: 50%; display: block; background: var(--c-abwesend); }
.calm-dots i.c-urlaub { background: var(--c-urlaub); } .calm-dots i.c-krank { background: var(--c-krank); }
.calm-dots i.c-ueber { background: var(--c-ueber); } .calm-dots i.c-sonder { background: var(--c-sonder); }
.calm-dots i.c-schule { background: var(--c-schule); } .calm-dots i.c-abwesend { background: var(--c-abwesend); }
.calm-dots i.pending { opacity: .45; }
.calm-dots b { font-size: .62rem; font-weight: 700; color: var(--muted); }
.calm-day.sel .calm-dots b { color: rgba(255,255,255,.8); }
.calm-daypanel { padding: 1rem 1.1rem; border-top: 3px solid var(--brand-teal); }
.calm-dayinfo h3 { margin: 0 0 .6rem; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.calm-people { list-style: none; margin: 0; padding: 0; }
.calm-people li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.calm-people li:last-child { border-bottom: 0; }
.calm-pname { flex: 1; font-weight: 600; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: #fff; flex: none; background: var(--c-abwesend); }
.avatar-sm.c-urlaub { background: var(--c-urlaub); } .avatar-sm.c-krank { background: var(--c-krank); }
.avatar-sm.c-ueber { background: var(--c-ueber); } .avatar-sm.c-sonder { background: var(--c-sonder); }
.avatar-sm.c-schule { background: var(--c-schule); }
.calm-title { font-size: 1rem; margin: 1.25rem 0 .6rem; }
.calm-list { list-style: none; margin: 0; padding: 0; }
.calm-list li { display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.calm-list li:last-child { border-bottom: 0; }
.calm-list li.hl { background: #eefafa; }
.calm-li-main { flex: 1; min-width: 140px; display: flex; flex-direction: column; line-height: 1.3; }
.calm-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.calm-list li { flex-wrap: nowrap; }

/* Stundenkonto in Euro */
.euro-note { font-size: .78rem; color: var(--muted); margin: .25rem 0 0; }
.stat small.eur { display: block; color: var(--text); font-weight: 600; }
.booking-list { list-style: none; padding: 0; margin: 0; }
.booking-list li { display: flex; gap: .6rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .booking-list li { flex-wrap: wrap; } .booking-list .b-date { min-width: 0; width: 100%; } }
.booking-list li:last-child { border-bottom: 0; }
.booking-list .b-date { color: var(--muted); font-size: .85rem; min-width: 5.5rem; }
.booking-list .b-text { flex: 1 1 0; min-width: 8rem; }
.booking-list .b-val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; margin-left: auto; white-space: nowrap; }

/* Kalender-Abo */
.ical-url { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .5rem 0; }
.ical-url input { flex: 1 1 18rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.ical-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-top: .75rem; }
.ical-steps > div { background: var(--bg); border-radius: 8px; padding: .6rem .8rem; }
.ical-steps h3 { font-size: .9rem; margin: 0 0 .3rem; }
.ical-steps ol { margin: 0; padding-left: 1.1rem; font-size: .85rem; }
.ical-steps .platform-match { outline: 2px solid var(--brand-teal); }
.actions-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0 0; }

/* Kopfzeile: Buttons und Mitarbeiter-Auswahl in einer Reihe */
.head-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.head-actions .user-switch, .head-actions .user-switch label { margin: 0; }
.head-actions .user-switch label { display: flex; align-items: center; gap: .5rem; }
.head-actions .btn { white-space: nowrap; }
@media (max-width: 600px) { .head-actions { justify-content: flex-start; width: 100%; } }

/* Monatsabschluss */
.mc-card { border-left: 4px solid var(--brand-teal); }
.mc-figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .75rem 0; }
.mc-figs > div { background: var(--bg); border-radius: 8px; padding: .5rem .7rem; }
.mc-figs span { display: block; font-size: .78rem; color: var(--muted); }
.mc-figs strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .mc-figs { grid-template-columns: repeat(2, 1fr); } }
.mc-done { margin: 0 0 1rem; }
.mc-state { font-size: 1.1rem !important; }
.steps { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.steps li { margin-bottom: .25rem; }
.sheet-confirm { margin-top: 1.5rem; padding: .6rem .8rem; border: 1px solid #cfd8dc; border-radius: 6px; font-size: .9em; }
.sheet-confirm div + div { margin-top: .2rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Unterbrechung / zweiter Zeitblock */
.split-block { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; width: 100%; padding: .6rem .75rem; background: var(--primary-soft); border-radius: 8px; }
.split-block[hidden] { display: none; }
.split-block label { flex: 0 1 150px; margin: 0; }
@media (max-width: 600px) { .split-block label { flex: 1 1 8rem; } }
.split-gap { width: 100%; font-size: .8rem; font-weight: 600; color: var(--primary-dark); }
.split-add { width: 100%; text-align: left; font-size: .9rem; color: var(--primary); font-weight: 600; }
.split-add[hidden] { display: none; }
.entry-gap { font-size: .8rem; color: var(--muted); padding: 1px 0 1px .6rem; border-left: 2px dashed var(--line); margin: 1px 0; }

/* Lizenz-Hinweise */
.license-bar { padding: .55rem 1rem; text-align: center; font-size: .9rem; }
.license-bar.trial { background: var(--warn-soft); color: var(--warn); }
.license-bar.locked { background: var(--danger-soft); color: var(--danger); }
.license-bar.info { background: var(--primary-soft); color: var(--primary-dark); }
.license-bar.demo { background: #2b2f3a; color: #fff; }
.license-bar a { font-weight: 600; margin-left: .35rem; }
.lic-facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .5rem 0 1rem; }
.lic-facts dt { color: var(--muted); }
.lic-facts dd { margin: 0; }
.lic-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; min-height: 5.5rem; }
.color-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.color-row label { display: flex; align-items: center; gap: .5rem; }
.color-row input[type=color] { width: 3rem; height: 2.2rem; padding: 2px; }
.sheet-foot { margin-top: 1rem; font-size: .75em; color: #888; text-align: right; }
.checklist .warn { color: var(--warn); }
.brand-text.brand-only { display: inline; color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand-block .brand-text.brand-only { font-size: 1.4rem; }
.sheet-logo .brand-text.brand-only { color: #555; font-weight: 400; font-size: 1rem; }

/* Changelog-Modal */
.verlink { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.verlink:hover { color: var(--primary); }
dialog.modal { border: 0; border-radius: 12px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: min(86vh, 860px); box-shadow: 0 20px 60px rgba(10, 20, 30, .35); color: var(--text); background: var(--card); }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal::backdrop { background: rgba(10, 20, 30, .55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal-x { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 1rem 1.1rem; overflow-y: auto; flex: 1; }
.modal-foot { padding: .7rem 1.1rem; border-top: 1px solid var(--line); text-align: right; }
body.modal-open { overflow: hidden; }
.changelog .cl-ver { padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--line); }
.changelog .cl-ver:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.changelog h3 { margin: 0 0 .4rem; font-size: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.changelog h3 .muted { font-weight: 400; font-size: .88rem; }
.changelog h4 { margin: .6rem 0 .2rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.changelog ul { margin: 0 0 .4rem; padding-left: 1.2rem; }
.changelog li { margin: .15rem 0; }
.changelog p { margin: 0 0 .4rem; }
.cl-tag { font-size: .72rem; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.cl-new { background: var(--primary-soft); color: var(--primary-dark); }
.cl-ok { background: #e4f5ea; color: #1e8a4c; }
.cl-inline { margin-top: .6rem; background: rgba(255, 255, 255, .6); border-radius: 8px; padding: .6rem .8rem; }
.cl-inline .cl-tag { display: none; }

/* ================================================================ 2.1: Übersicht, Stempeluhr, Büro */
.dash-head { align-items: flex-end; margin-bottom: 1.25rem; }
.dash-date { font-weight: 600; }
.section-title { font-size: 1.15rem; margin: 1.75rem 0 .9rem; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card-title h2 { margin: 0; }
.hide-mobile { }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }

/* Heute: Ring + Stempeln */
.today-card { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 1.5rem 1.75rem; }
.ring { position: relative; width: 210px; height: 210px; flex: none; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e7edf3; stroke-width: 14; }
.ring-fg { fill: none; stroke: var(--brand-teal); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset .8s ease; animation: ringfill 1.2s cubic-bezier(.2,.8,.2,1) both; }
.ring-warm { stroke: var(--brand-orange); stroke-width: 8; }
.kpi-ring .ring-bg { stroke-width: 8; }
@keyframes ringfill { from { stroke-dashoffset: var(--full); } }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 22px; }
.ring-c strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ring-c small { color: var(--muted); font-variant-numeric: tabular-nums; }
.ring-state { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.ring-state.state-running { color: var(--primary); }
.ring-state.state-paused, .ring-state.state-forgotten { color: var(--warn); }
.today-main { flex: 1 1 300px; min-width: 0; }
.today-main h2 { margin-bottom: .4rem; }
.today-note { margin: 0 0 .75rem; }
.clock-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.clock-btns form { margin: 0; flex: 1 1 160px; display: flex; }
.clock-btns > .btn { flex: 1 1 160px; }
.btn-xl { min-height: 58px; font-size: 1.1rem; font-weight: 800; border-radius: 16px; padding: .7rem 1.4rem; width: 100%; gap: .6rem; }
.btn-go { background: var(--primary); border-color: var(--primary); box-shadow: 0 10px 22px rgba(13,27,42,.18); }
.btn-stop { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-stop:hover { background: #000; }
.btn:active { transform: scale(.98); }
.clock-hint { margin: .7rem 0 0; }
.clock-hint .inline-form { margin-left: .5rem; }
.clock-hint .linkbtn { color: var(--muted); text-decoration: underline; }
.clock-forgot { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: flex-end; }
.clock-forgot label { flex: 0 1 160px; }
.clock-forgot label.grow { flex: 1 1 200px; }
.clock-forgot .btn { margin-bottom: .6rem; }
.today-entries { margin-top: .9rem; }
.tag-stamp { background: #e2f6f2; color: #075c53; }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 600px) {
  .today-card { padding: 1.25rem 1.1rem; gap: 1rem; flex-direction: column; align-items: stretch; }
  .ring { width: 200px; height: 200px; }
  .today-main { text-align: center; flex-basis: auto; }
  .clock-forgot { text-align: left; }
}

/* Live-Punkt */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #12a594; display: inline-block; animation: pulse 1.8s infinite; flex: none; }
.live-dot.off { background: var(--brand-orange); animation: none; }
.live-dot.paused { background: var(--brand-orange); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,165,148,.55); } 70% { box-shadow: 0 0 0 9px rgba(18,165,148,0); } 100% { box-shadow: 0 0 0 0 rgba(18,165,148,0); } }
.entry-live { color: var(--primary); font-weight: 600; align-items: center; }

/* Raster */
.dash-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.1rem; margin-bottom: 1.1rem; align-items: start; }
.dash-grid > .card { margin-bottom: 0; }
.dash-grid-team { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .dash-grid, .dash-grid-team { grid-template-columns: 1fr; } }

/* Wochenbalken */
.wbars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .6rem; height: 190px; align-items: stretch; margin: .25rem 0 .6rem; }
.wbar { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.wbar-val { font-size: .74rem; font-weight: 700; color: var(--muted); height: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-variant-numeric: tabular-nums; }
.wbar-track { position: relative; flex: 1; width: 100%; max-width: 46px; background: #f0f3f7; border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; }
.wbar-fill { width: 100%; border-radius: 10px; background: var(--brand-teal); transform-origin: bottom; animation: grow .7s calc(var(--i, 0) * 70ms + .15s) cubic-bezier(.2,.8,.2,1) both; }
.wbar-fill.c-urlaub { background: var(--c-urlaub); } .wbar-fill.c-krank { background: var(--c-krank); }
.wbar-fill.c-ueber { background: var(--c-ueber); } .wbar-fill.c-sonder { background: var(--c-sonder); }
.wbar-fill.c-schule { background: var(--c-schule); } .wbar-fill.c-abwesend, .wbar-fill.hol { background: #c3ccd7; }
.wbar-fill.live { background: repeating-linear-gradient(-45deg, var(--brand-teal) 0 7px, rgba(var(--accent-rgb), .6) 7px 14px); background-size: 28px 100%; animation: grow .7s calc(var(--i, 0) * 70ms + .15s) cubic-bezier(.2,.8,.2,1) both, stripes 1.2s linear infinite; }
.wbar-soll { position: absolute; left: 0; right: 0; border-top: 2px dashed #9aa6b4; z-index: 1; }
.wbar-day { font-size: .8rem; font-weight: 700; color: var(--muted); }
.wbar.is-today .wbar-day { color: var(--primary); }
.wbar.is-today .wbar-track { box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .35); }
.wbar.is-we .wbar-track { background: transparent; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes stripes { from { background-position: 0 0; } to { background-position: 28px 0; } }
.legend-mini { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.legend-mini i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: .5rem; }
.lg-work { background: var(--brand-teal); }
.lg-soll { border-top: 2px dashed #9aa6b4; height: 0 !important; width: 14px !important; border-radius: 0 !important; }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.kpis-row { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 1.1rem; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.05rem 1.25rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.kpi-label { font-size: .8rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.kpi-val { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-val.kpi-sm { font-size: 1.4rem; }
.kpi-of { font-size: 1.05rem; color: #8592a3; font-weight: 700; }
.kpi small { color: var(--muted); }
.kpi .warnc { color: var(--warn); }
.kpi-ring { flex-direction: row; align-items: center; gap: 1rem; }
.kpi-ring svg { width: 68px; height: 68px; flex: none; transform: rotate(-90deg); }
.meter { height: 8px; background: #e7edf3; border-radius: 4px; overflow: hidden; margin: .35rem 0 .15rem; }
.meter i { display: block; height: 100%; background: var(--c-urlaub); border-radius: 4px; transform-origin: left; animation: growx .9s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes growx { from { transform: scaleX(0); } }
.avatars { display: flex; margin-top: .4rem; }
.avatar-xs { width: 28px; height: 28px; font-size: .68rem; border: 2px solid #fff; margin-right: -7px; }
@media (max-width: 600px) { .kpis-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } .kpi { padding: .85rem .95rem; } .kpi-val { font-size: 1.45rem; } .kpi-ring { flex-direction: column; align-items: flex-start; } }
.dash-grid .kpis { grid-template-columns: 1fr; }
@media (max-width: 1000px) { .dash-grid .kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
@media (max-width: 600px) { .dash-grid .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } .dash-grid .kpis .kpi:last-child { grid-column: span 2; } }

/* Team heute */
.people { list-style: none; margin: 0; padding: 0; }
.person { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #eef2f6; }
.person:last-child { border-bottom: 0; }
.person .avatar-sm { position: relative; width: 38px; height: 38px; background: #e8edf3; color: #3d4b5c; font-size: .8rem; }
.person.st-running .avatar-sm, .person.st-paused .avatar-sm, .person.st-done .avatar-sm { background: #d5f2ec; color: #075c53; }
.person .avatar-sm .live-dot { position: absolute; right: -1px; bottom: -1px; border: 2px solid #fff; width: 12px; height: 12px; }
.person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.person-main a { color: var(--text); font-weight: 700; }
.person-main small { color: var(--muted); font-size: .8rem; }
.person.st-none .person-main small, .person.st-forgotten .person-main small { color: var(--warn); font-weight: 600; }
.person-time { font-variant-numeric: tabular-nums; color: var(--primary); }

/* Anträge kompakt */
.reqs { display: flex; flex-direction: column; gap: .6rem; }
.req { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; border: 1.5px solid var(--line); border-radius: 14px; padding: .75rem .9rem; }
.req-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c-abwesend); flex: none; }
.req-dot.c-urlaub { background: var(--c-urlaub); } .req-dot.c-ueber { background: var(--c-ueber); } .req-dot.c-sonder { background: var(--c-sonder); }
.req-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.req-main small { color: var(--muted); }
.req-btns { display: flex; gap: .4rem; }
.req-btns form { margin: 0; }

/* Mini-Teamkalender */
.minical-wrap { overflow-x: auto; }
.minical { display: grid; grid-template-columns: 84px repeat(var(--cols), minmax(26px, 1fr)); gap: 4px; align-items: center; min-width: 420px; }
.mc-h { text-align: center; font-size: .7rem; color: var(--muted); font-weight: 600; line-height: 1.15; }
.mc-h b { display: block; font-size: .85rem; color: var(--text); }
.mc-h.now b { color: var(--primary); }
.mc-name { font-size: .85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-cell { height: 24px; border-radius: 6px; background: #f2f5f9; animation: rise .4s both; }
.mc-cell.c-urlaub { background: var(--c-urlaub); } .mc-cell.c-krank { background: var(--c-krank); } .mc-cell.c-ueber { background: var(--c-ueber); }
.mc-cell.c-sonder { background: var(--c-sonder); } .mc-cell.c-schule { background: var(--c-schule); } .mc-cell.c-abwesend { background: var(--c-abwesend); }
.mc-cell.pending { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.5) 0 4px, transparent 4px 8px); }

/* Einblenden */
.rise { animation: rise .5s calc(var(--d, 0) * 70ms) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Wer Bewegung abgeschaltet hat, bekommt keine */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Standort beim Stempeln */
.geo { display: inline-flex; align-items: center; gap: 3px; font-size: .8rem; font-weight: 600; margin-right: .7rem; white-space: nowrap; }
.geo .ico { flex: none; }
.geo-none { color: var(--muted); font-weight: 500; }
.geo-row { margin: 3px 0 2px; display: flex; flex-wrap: wrap; }
.geo-note { color: var(--muted); margin: .7rem 0 0; }
.geo-note .ico { vertical-align: -3px; margin-right: 3px; }
.geo-msg { margin: .75rem 0 0; text-align: left; }
.person-main small .geo { margin-right: 0; font-size: .78rem; }


/* Push-Nachrichten */
.push-card h2 { display: flex; align-items: center; gap: .5rem; }
.push-state { font-weight: 700; }
.push-msg { min-height: 1.2em; color: var(--primary); font-weight: 600; margin: .5rem 0 0; }
.push-prompt { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .9rem 1.1rem; border: 1.5px solid rgba(var(--accent-rgb), .45); }
.push-prompt[hidden] { display: none; }
.push-prompt > div { flex: 1 1 200px; line-height: 1.35; }
.push-prompt-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.push-prompt .banner-close { color: var(--muted); }
.geo-wrap { display: inline-flex; flex-direction: column; margin: 0 1rem .3rem 0; vertical-align: top; }
.geo-item { display: inline-flex; flex-direction: column; }
.geo-addr { font-size: .74rem; color: var(--muted); padding-left: 18px; line-height: 1.3; max-width: 320px; }
.geo-addr em { font-style: normal; color: var(--warn); }
.geo-fix { padding-left: 18px; }
.geo-fix summary { font-size: .72rem; color: var(--primary); font-weight: 600; cursor: pointer; list-style: none; }
.geo-fix summary::-webkit-details-marker { display: none; }
.geo-fix form { display: flex; gap: .4rem; margin-top: .3rem; }
.geo-fix input { margin: 0; min-height: 36px; font-size: .85rem; min-width: 220px; }
.person-main small .geo-item { display: inline; }
.person-main small .geo-addr { display: inline; padding-left: 4px; }
.gps-consent ul { padding-left: 1.1rem; margin: .5rem 0 .75rem; }
.gps-consent li { margin: .35rem 0; }
.gps-consent-btns { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.gps-consent-btns .btn { flex: 1 1 200px; }
#m-gps .modal-head h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.fence { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; justify-content: space-between; margin: .9rem 0 0; text-align: left; font-weight: 700; animation: rise .35s both; }
.fence[hidden] { display: none; }
.fence-btns { display: flex; gap: .4rem; }
dialog.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow: hidden; }
dialog.modal > form > .modal-body { min-height: 0; }

/* Logo Zeitverwaltung (2.4.0) */
.brand-sym { display: block; flex: none; }
.foot-brand { display: inline-flex; align-items: center; gap: .35rem; vertical-align: middle; }
.auth-credit { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1.5rem 0 0; color: rgba(255,255,255,.55); font-weight: 800; font-size: .9rem; letter-spacing: -.01em; }
.install-brand { margin: 0 0 .5rem; }
.install-brand img { display: block; border-radius: 14px; }
