/* Dashboard: gebaut auf eine 1080p-Ansicht mit Browserleiste. Keine riesigen Leerflächen, kein Pflicht-Scrollen. */
.dashboard-view { display: grid; gap: 16px; }
.dashboard-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .9fr); gap: 16px; }
.dashboard-kpis { display: grid; gap: 16px; }
.dashboard-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.dashboard-bottom .card-inner { min-height: 330px; }

.hero-timer {
  min-height: 326px;
  display: grid;
  align-items: center;
  text-align: center;
}
.tracking-view .hero-timer { min-height: 300px; }
.timer-value {
  font-size: clamp(56px, 6.1vw, 86px);
  line-height: 1;
  letter-spacing: 0.025em;
  color: #bdfcff;
  text-shadow: 0 0 32px rgba(25,242,223,.46), 0 0 4px rgba(255,255,255,.18);
  font-variant-numeric: tabular-nums;
}
.timer-sub { color: var(--text-soft); margin-top: 10px; }
.timer-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; max-width: 520px; margin: 22px auto 0; }
.timer-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); margin-top: 20px; }

.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 11px; align-items: end; min-height: 132px; padding-top: 10px; }
.week-bar { display: grid; gap: 7px; justify-items: center; color: var(--text-soft); font-size: 12px; }
.week-bar-fill { height: var(--h, 30%); width: 17px; min-height: 8px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--accent), rgba(25,242,223,.18)); box-shadow: 0 0 18px rgba(25,242,223,.22); }
.booking-list { display: grid; gap: 8px; }
.booking-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.booking-item:last-child { border-bottom: 0; }
.booking-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; background: rgba(25,242,223,.12); color: var(--accent); }
.booking-main strong { display: block; }
.booking-main small { color: var(--muted); }
.booking-time { color: var(--accent); font-weight: 760; font-variant-numeric: tabular-nums; }

.calendar-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 6px; }
.day-chip { border: 1px solid var(--line); border-radius: 12px; padding: 11px; min-height: 78px; background: rgba(255,255,255,.03); }
.day-chip.active { border-color: var(--accent); box-shadow: inset 0 0 28px rgba(25,242,223,.10); }
.day-chip small { color: var(--muted); display: block; margin-bottom: 7px; }
.day-chip strong { display: block; }
.month-calendar { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.month-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.month-day-name, .month-cell { background: rgba(6,16,21,.94); padding: 8px; }
.month-day-name { color: var(--text-soft); font-size: 12px; min-height: 32px; }
.month-cell { min-height: 76px; position: relative; text-align: left; border: 0; color: var(--text); }
.month-cell.muted { color: var(--muted); }
.month-cell.today { outline: 1px solid var(--accent); outline-offset: -1px; }
.month-cell.selected { background: rgba(25,242,223,.10); }
.month-date { color: var(--text-soft); }
.month-entry { margin-top: 8px; display: grid; gap: 4px; }
.month-status { font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; }
.status-dot.homeoffice { background: var(--accent-2); }
.status-dot.vacation { background: var(--green); }
.status-dot.sick { background: var(--purple); }
.status-dot.training { background: var(--yellow); }
.status-dot.holiday { background: var(--orange); }
.status-dot.other { background: var(--muted); }

.timeline { position: relative; min-height: 104px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.timeline-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 13px; }
.timeline-bar { height: 24px; border-radius: 8px; background: rgba(255,255,255,.10); overflow: hidden; position: relative; }
.timeline-segment { position: absolute; top: 0; bottom: 0; left: var(--left); width: var(--width); background: linear-gradient(90deg, var(--accent), rgba(25,242,223,.45)); }
.timeline-pause { position: absolute; top: 0; bottom: 0; left: var(--left); width: var(--width); background: repeating-linear-gradient(-45deg, rgba(255,255,255,.14), rgba(255,255,255,.14) 4px, transparent 4px, transparent 8px); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--text-soft); font-size: 12px; margin-top: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

.analytics-bar-chart { height: 230px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 15px; align-items: end; padding: 18px 10px 8px; border-bottom: 1px solid var(--line); }
.analytics-bar-col { display: grid; gap: 9px; justify-items: center; color: var(--text-soft); }
.analytics-bar-value { color: var(--text); font-size: 12px; }
.analytics-bar { width: 26px; height: var(--h); min-height: 9px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, var(--accent), rgba(13,165,255,.25)); box-shadow: 0 0 22px rgba(25,242,223,.22); }
.line-chart { height: 230px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: linear-gradient(180deg, rgba(25,242,223,.045), transparent); }
.line-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.donut-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; }
.donut-legend { display: grid; gap: 10px; color: var(--text-soft); }
.donut-legend div { display: flex; justify-content: space-between; gap: 12px; }
.absence-timeline { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: stretch; }
.absence-days { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.absence-day { min-height: 70px; background: rgba(255,255,255,.025); padding: 8px; color: var(--muted); font-size: 12px; }
.absence-pill { margin-top: 8px; min-height: 24px; border-radius: 999px; padding: 3px 8px; background: rgba(25,242,223,.16); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-card { display: grid; gap: 13px; min-height: 160px; }
.project-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.project-color { width: 12px; height: 12px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 16px currentColor; }
.activity-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-row { display: grid; grid-template-columns: 1fr 230px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row strong { display: block; margin-bottom: 4px; }
.settings-row small { color: var(--muted); }

@media (max-width: 1280px) {
  .dashboard-top, .dashboard-bottom { grid-template-columns: 1fr; }
  .dashboard-bottom .card-inner { min-height: unset; }
}
@media (max-width: 760px) { .month-cell { min-height: 64px; padding: 7px; } .timer-meta { flex-direction: column; align-items: center; } }

/* v0.1.6: Desktop-No-Scroll-Layouts. Ziel: 1920x1080 mit Browserleiste ohne vertikalen Inhaltscroll. */
.dashboard-view {
  height: 100%;
  grid-template-rows: minmax(210px, .95fr) minmax(250px, 1fr);
  gap: var(--gap);
  overflow: hidden;
}
.dashboard-top { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--gap); min-height: 0; }
.dashboard-kpis { gap: var(--gap); grid-template-rows: repeat(3, minmax(0, 1fr)); min-height: 0; }
.dashboard-kpis .kpi { min-height: 0; }
.dashboard-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 360px; gap: var(--gap); min-height: 0; }
.dashboard-bottom .card, .dashboard-top .card { height: 100%; }
.dashboard-bottom .card-inner { min-height: 0; height: 100%; overflow: hidden; }
.hero-timer { min-height: 0; height: 100%; }
.hero-timer .card-inner { display: grid; align-content: center; }
.timer-value { font-size: clamp(46px, 5.1vw, 74px); }
.timer-sub { margin-top: 7px; }
.timer-actions { max-width: 480px; gap: 10px; margin-top: 16px; }
.timer-meta { margin-top: 14px; }
.week-bars { min-height: 108px; padding-top: 8px; gap: 9px; }
.week-bar { gap: 5px; }
.week-bar-fill { width: 15px; }
.booking-list { gap: 6px; overflow: hidden; }
.booking-item { padding: 7px 0; grid-template-columns: 32px 1fr auto; }
.booking-icon { width: 29px; height: 29px; }
.month-calendar { border-radius: 12px; }
.month-day-name { min-height: 24px; padding: 5px 7px; }
.month-cell { min-height: 53px; padding: 6px; }
.month-entry { margin-top: 4px; }
.month-status { font-size: 11px; }
.legend { margin-top: 8px; gap: 9px; font-size: 11px; }

.content-tracking > .tracking-view,
.content-calendar > .page-grid,
.content-bookings > .page-grid,
.content-analytics > .page-grid,
.content-absences > .page-grid,
.content-projects > .page-grid,
.content-profile > .page-grid,
.content-settings > .page-grid {
  height: 100%;
  overflow: hidden;
}

.content-tracking .tracking-view { grid-template-columns: minmax(0, 1fr) 310px; }
.tracking-view > .page-grid:first-child { grid-template-rows: minmax(170px, .9fr) minmax(86px, .38fr) minmax(198px, .8fr); height: 100%; }
.tracking-view aside.page-grid { grid-template-rows: minmax(220px, .9fr) minmax(170px, .75fr); height: 100%; }
.tracking-view .card-inner { overflow: hidden; }
.tracking-view .hero-timer .timer-value { font-size: clamp(48px, 5vw, 76px); }
.timeline { min-height: 70px; padding: 12px; }
.timeline-scale { margin-bottom: 8px; }
.timeline-bar { height: 20px; }
#manual-entry-form { gap: 10px; }

.content-calendar > .page-grid { grid-template-rows: 62px 72px minmax(0, 1fr); }
.content-calendar .calendar-head { margin-bottom: 0; height: 62px; }
.content-calendar .day-chip { min-height: 0; height: 62px; padding: 7px 10px; }
.content-calendar .grid-4 .kpi { min-height: 72px; }
.content-calendar .grid-main-side { grid-template-columns: minmax(0, 1fr) 300px; height: 100%; }
.content-calendar .grid-main-side > .card, .content-calendar .grid-main-side > aside { height: 100%; overflow: hidden; }
.content-calendar .month-calendar { height: calc(100% - 72px); margin-top: 10px !important; }
.content-calendar .month-row { min-height: 0; }
.content-calendar .month-calendar .month-row:not(:first-child) { height: calc((100% - 25px) / 6); }
.content-calendar .month-cell { min-height: 0; height: 100%; }
.content-calendar aside .textarea { min-height: 62px; }
.content-calendar .settings-row { padding: 8px 0; }

.content-bookings > .page-grid { grid-template-rows: 82px minmax(0, 1fr); }
.content-bookings .grid-main-side { height: 100%; }
.content-bookings .grid-main-side > .card, .content-bookings .grid-main-side > aside { height: 100%; overflow: hidden; }
.content-bookings .card-inner { height: 100%; overflow: hidden; }
.content-bookings .table-wrap { height: calc(100% - 84px); overflow: auto; }
.content-bookings aside .textarea { min-height: 58px; }
.content-bookings aside form { gap: 9px; }

.content-analytics > .page-grid { grid-template-rows: 36px 78px minmax(0, 1fr) minmax(0, .82fr); }
.content-analytics .grid-4 .kpi { min-height: 74px; }
.content-analytics .grid-2, .content-analytics .grid-3 { min-height: 0; }
.content-analytics .grid-2 > .card, .content-analytics .grid-3 > .card { height: 100%; overflow: hidden; }
.analytics-bar-chart { height: 165px; padding: 10px 8px 6px; }
.analytics-bar { width: 23px; }
.line-chart { height: 165px; }
.content-analytics .ring { --size: 118px !important; }
.content-analytics .donut-row { grid-template-columns: 108px 1fr; }

.content-absences > .page-grid { grid-template-rows: 42px 78px minmax(0, 1fr); }
.content-absences .grid-4 .kpi { min-height: 74px; }
.content-absences .grid-main-side { height: 100%; }
.content-absences .grid-main-side > .page-grid:first-child { grid-template-rows: minmax(0, 1fr) 150px; height: 100%; }
.content-absences aside.page-grid { grid-template-rows: minmax(0, 1fr) 118px; height: 100%; }
.content-absences .table-wrap { max-height: 100%; overflow: auto; }
.absence-day { min-height: 58px; padding: 6px; }
.content-absences .textarea { min-height: 58px; }

.content-projects > .page-grid { grid-template-rows: 66px minmax(0, 1fr); }
.content-projects .grid-main-side { height: 100%; }
.content-projects section.grid-2 { height: 100%; grid-auto-rows: minmax(150px, 1fr); }
.content-projects aside { height: max-content; }
.project-card { min-height: 0; }

.content-profile .grid-main-side,
.content-settings .grid-main-side { height: 100%; align-content: start; }
.content-profile .card,
.content-settings .card { max-height: 100%; overflow: hidden; }
.settings-row { padding: 9px 0; grid-template-columns: 1fr 190px; }

@media (max-height: 820px) and (min-width: 1181px) {
  :root { --header-height: 64px; --content-pad-y: 10px; --gap: 10px; }
  .sidebar { padding-top: 14px; }
  .brand { padding-bottom: 14px; font-size: 24px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav-item { min-height: 39px; }
  .profile-card { padding: 8px; }
  .topbar h1 { font-size: 17px; }
  .dashboard-view { grid-template-rows: minmax(190px, .9fr) minmax(235px, 1fr); }
  .timer-value { font-size: clamp(42px, 4.4vw, 66px); }
  .timer-actions { margin-top: 12px; }
  .timer-meta { margin-top: 10px; }
  .week-bars { min-height: 86px; }
  .month-cell { min-height: 45px; }
  .content-tracking .tracking-view { grid-template-columns: minmax(0, 1fr) 300px; }
  .tracking-view > .page-grid:first-child { grid-template-rows: 180px 86px minmax(178px, 1fr); }
  .content-calendar > .page-grid { grid-template-rows: 54px 66px minmax(0, 1fr); }
  .content-calendar .calendar-head, .content-calendar .day-chip { height: 54px; }
  .content-calendar .grid-4 .kpi, .content-bookings > .page-grid { min-height: 66px; }
  .analytics-bar-chart, .line-chart { height: 145px; }
}

/* v0.1.6 card-inner height inheritance for fixed dashboards */
.content-calendar .grid-main-side > .card > .card-inner,
.content-calendar .grid-main-side > aside > .card-inner,
.content-analytics .grid-2 > .card > .card-inner,
.content-analytics .grid-3 > .card > .card-inner,
.content-absences .grid-main-side .card > .card-inner,
.content-projects .card > .card-inner,
.content-profile .card > .card-inner,
.content-settings .card > .card-inner {
  height: 100%;
  overflow: hidden;
}
