/* ============================================================
   Berichtsheft – Globales Stylesheet
   Design: Claude Design Entwurf, 1:1 Umsetzung
   Font: Plus Jakarta Sans (Google Fonts)
   ============================================================ */

/* ── Design-Tokens ─────────────────────────────────────────── */
:root {
  --c-primary:      #00396e;
  --c-accent:       #ffce33;
  --c-bg:           #eef1f6;
  --c-sidebar:      #00396e;
  --c-card:         #ffffff;
  --c-border:       #e2e8f0;
  --c-border-light: #eef1f6;
  --c-text:         #16202e;
  --c-muted:        #64748b;
  --c-muted-lt:     #94a3b8;
  --c-info-bg:      #eef4fb;
  --c-green:        #15803d;
  --c-green-bg:     #e7f6ec;
  --c-amber:        #b45309;
  --c-amber-bg:     #fdf2e2;
  --c-amber-border: #f0c8a0;
  --c-extra-bg:     #fbf6ee;
  --c-extra-border: #e0b886;
  --c-sidebar-sub:  #9db8d6;
  --c-sidebar-dim:  #6f93bd;
  --c-sidebar-line: #1b4d82;
  --r-card:         16px;
  --r-card-lg:      18px;
  --r-btn:          10px;
  --shadow-card:    0 1px 3px rgba(0,0,0,.06);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
textarea, input, select, button { font-family: inherit; }
a { color: var(--c-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c4ccd8; border-radius: 8px; }

/* ── App-Frame ──────────────────────────────────────────────── */
.app-frame {
  min-height: 100vh;
  width: 100%;
  background: var(--c-bg);
}
.app-frame.is-desktop {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}
.app-frame.is-mobile {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}
.app-frame.is-mobile > .sidebar {
  display: none;
}
.app-frame.is-mobile > .main-col {
  width: 412px;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 8px #cbd3df, 0 30px 60px rgba(0,0,0,.18);
  overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: 248px;
  flex: none;
  background: var(--c-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 22px;
}
.logo-badge {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--c-primary); font-size: 18px;
  flex: none;
}
.logo-badge--sm { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
.logo-title     { font-weight: 800; font-size: 15px; letter-spacing: -.2px; }
.logo-title-sm  { font-weight: 800; font-size: 14.5px; }
.logo-sub       { font-size: 11.5px; color: var(--c-sidebar-sub); }
.sidebar-nav    { display: flex; flex-direction: column; gap: 3px; }

.nav-btn {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border: none; border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px; font-weight: 600;
  text-align: left; width: 100%;
  color: #cfe0f3;
  background: transparent;
  transition: background .15s, color .15s;
}
.nav-btn:hover { background: rgba(255,255,255,.08); }
.nav-btn--active { background: var(--c-accent) !important; color: var(--c-primary) !important; font-weight: 700; }
.nav-icon { width: 20px; text-align: center; }

.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 4px;
  border-top: 1px solid var(--c-sidebar-line);
}
.sidebar-lehrgang { font-size: 11.5px; color: var(--c-sidebar-sub); line-height: 1.5; }
.sidebar-kammer   { font-size: 11.5px; color: var(--c-sidebar-dim); margin-top: 6px; }

/* ── Main Column ────────────────────────────────────────────── */
.main-col {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--c-bg);
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  flex: none; flex-wrap: wrap;
}
.topbar-mobile-logo { display: flex; align-items: center; gap: 9px; }
.topbar-titles { min-width: 0; }
.screen-title    { font-size: 18px; font-weight: 800; letter-spacing: -.3px; line-height: 1.1; }
.screen-subtitle { font-size: 12.5px; color: var(--c-muted); margin-top: 2px; }
.topbar-actions  { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.device-toggle {
  display: flex;
  background: var(--c-bg);
  border-radius: 10px;
  padding: 3px;
}
.seg-btn {
  padding: 7px 13px;
  border: none; border-radius: 8px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  background: transparent; color: var(--c-muted);
  transition: background .12s, color .12s;
}
.seg-btn--on {
  background: var(--c-card); color: var(--c-primary);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.btn-print-nav {
  display: flex; align-items: center; gap: 7px;
  background: var(--c-primary); color: #fff;
  border: none; padding: 10px 15px;
  border-radius: var(--r-btn);
  font-weight: 700; font-size: 13px; cursor: pointer;
  transition: opacity .15s;
}
.btn-print-nav:hover { opacity: .88; }

/* ── Scroll Area ────────────────────────────────────────────── */
.scroll-area { flex: 1; overflow: auto; padding: 24px; }

/* ── Bottom Nav ─────────────────────────────────────────────── */
.bottom-nav {
  flex: none; display: flex;
  background: var(--c-card);
  border-top: 1px solid var(--c-border);
  padding: 7px 6px 9px;
}
.bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  padding: 5px 2px;
  border: none; background: none; cursor: pointer;
  color: var(--c-muted-lt);
  transition: color .15s;
}
.bottom-nav-btn--active { color: var(--c-primary); }
.bottom-nav-icon  { font-size: 18px; }
.bottom-nav-label { font-size: 10px; font-weight: 600; }

/* ── Page Content ───────────────────────────────────────────── */
.page-content        { max-width: 960px; }
.page-content--narrow { max-width: 660px; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.badge--green { color: var(--c-green);  background: var(--c-green-bg); }
.badge--amber { color: var(--c-amber);  background: var(--c-amber-bg); }
.badge--gray  { color: var(--c-muted);  background: var(--c-bg); }

/* ── Stat Cards ─────────────────────────────────────────────── */
.stats-grid {
  display: grid; gap: 14px; margin-bottom: 22px;
}
.stats-grid--4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid--2 { grid-template-columns: repeat(2, 1fr); }

.stat-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 16px 18px;
}
.stat-label { font-size: 12.5px; color: var(--c-muted); font-weight: 600; }
.stat-value {
  font-size: 26px; font-weight: 800;
  letter-spacing: -.5px; margin-top: 6px;
}
.stat-value--green { color: var(--c-green); }
.stat-value--amber { color: var(--c-amber); }
.stat-value--blue  { color: var(--c-primary); }

/* ── List Header ─────────────────────────────────────────────── */
.list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.list-header-title { font-weight: 800; font-size: 15px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-outline {
  display: flex; align-items: center; gap: 7px;
  background: var(--c-card);
  border: 1.5px solid var(--c-primary);
  color: var(--c-primary);
  padding: 9px 14px; border-radius: var(--r-btn);
  font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background .12s;
}
.btn-outline:hover { background: var(--c-info-bg); }
.btn-plus { font-size: 16px; line-height: 1; }

.btn-primary {
  display: flex; align-items: center; gap: 7px;
  background: var(--c-primary); color: #fff;
  border: none; padding: 9px 15px;
  border-radius: 9px; font-weight: 700; font-size: 12.5px; cursor: pointer;
  transition: opacity .15s;
}
.btn-primary:hover { opacity: .88; }
.btn-sm { padding: 9px 15px; font-size: 12.5px; }
.btn-print-action { gap: 8px; padding: 10px 17px; font-size: 13px; margin-left: auto; }

/* ── Week List ───────────────────────────────────────────────── */
.week-list { display: flex; flex-direction: column; gap: 10px; }

.week-card {
  text-align: left;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 15px 18px;
  cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.week-card:hover {
  border-color: var(--c-primary);
  box-shadow: 0 2px 8px rgba(0,57,110,.08);
}

.week-nr-badge {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: var(--c-info-bg); color: var(--c-primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1;
}
.week-nr-badge--lg {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--c-primary); color: #fff;
}
.week-nr-badge-sub { font-size: 9px; font-weight: 700; color: var(--c-sidebar-dim); }
.week-nr-badge--lg .week-nr-badge-sub { color: var(--c-sidebar-sub); }
.week-nr-badge-nr  { font-size: 19px; font-weight: 800; }
.week-nr-badge--lg .week-nr-badge-nr { font-size: 23px; }

.week-card-body    { min-width: 0; flex: 1; }
.week-card-range   { font-weight: 700; font-size: 14.5px; }
.week-card-lf      { font-size: 12.5px; color: var(--c-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-card-meta    { display: flex; align-items: center; gap: 14px; flex: none; }
.week-card-info    { font-size: 12px; color: var(--c-muted-lt); text-align: right; }

.week-progress { width: 96px; height: 6px; background: var(--c-bg); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.week-progress-bar { height: 100%; background: var(--c-primary); border-radius: 4px; transition: width .3s; }

/* ── Week Header Card ────────────────────────────────────────── */
.week-header-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 18px 20px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.week-header-info   { min-width: 0; }
.week-header-range  { font-weight: 800; font-size: 16px; }
.week-header-meta   { font-size: 12.5px; color: var(--c-muted); margin-top: 2px; }

/* ── Week Picker ─────────────────────────────────────────────── */
.week-picker {
  display: flex; gap: 7px; flex-wrap: wrap;
}
.picker-btn {
  padding: 7px 12px; border-radius: 9px;
  border: 1px solid var(--c-border);
  background: var(--c-card); color: #334155;
  font-weight: 700; font-size: 12.5px; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.picker-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.picker-btn--active { background: var(--c-primary) !important; color: #fff !important; border-color: var(--c-primary) !important; }

/* ── Trainer Card ────────────────────────────────────────────── */
.trainer-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 14px 18px; margin-bottom: 16px;
}
.trainer-row {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.trainer-chips {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--c-border-light);
}
.trainer-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--c-primary);
  background: var(--c-info-bg);
  padding: 5px 11px; border-radius: 999px; font-weight: 600;
}
.trainer-kz {
  background: var(--c-primary); color: #fff;
  border-radius: 5px; padding: 1px 6px;
  font-size: 10.5px; letter-spacing: .4px;
}

/* ── Autofill Banner ─────────────────────────────────────────── */
.autofill-banner {
  display: flex; align-items: center; gap: 13px;
  background: #fff8e1;
  border: 1px solid #f5e3a3;
  border-radius: 14px; padding: 13px 17px; margin-bottom: 16px;
}
.autofill-icon   { font-size: 19px; }
.autofill-text   { min-width: 0; flex: 1; }
.autofill-title  { font-weight: 700; font-size: 13px; }
.autofill-sub    { font-size: 12.5px; color: #7a6a2e; margin-top: 1px; }

/* ── Variant Switcher ────────────────────────────────────────── */
.variant-switcher {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.variant-btns { display: flex; gap: 7px; }

/* ── Form Fields ─────────────────────────────────────────────── */
.field-label    { font-size: 12px; color: var(--c-muted); font-weight: 600; flex: none; }
.field-label-sm { font-size: 11.5px; color: var(--c-muted); font-weight: 600; flex: none; }

.select-field {
  border: 1px solid #dbe2ec; border-radius: 9px;
  padding: 8px 10px; font-size: 12.5px;
  background: #fcfdff; color: var(--c-text);
  max-width: 240px;
}
.select-field--flex { flex: 1; min-width: 140px; }
.select-field--absent { border-color: var(--c-amber-border); background: var(--c-amber-bg); color: var(--c-amber); }

.select-field-sm {
  width: 100%; border: 1px solid #e6ebf2; border-radius: 7px;
  padding: 5px 4px; font-size: 10.5px;
  background: #f8fafc; color: #475569; margin-top: 5px;
}
.select-field-sm--trainer { margin-top: 7px; }
.select-field-sm--absent  { border-color: var(--c-amber-border); background: var(--c-amber-bg); color: var(--c-amber); }

.textarea-field {
  width: 100%; resize: vertical;
  border: 1px solid #dbe2ec; border-radius: 9px;
  padding: 9px 11px; font-size: 13px; line-height: 1.45;
  color: var(--c-text); background: #fcfdff;
}
.textarea-field--focus {
  border: none; border-left: 3px solid var(--c-border-light);
  border-radius: 0; padding: 2px 0 2px 14px;
  font-size: 15px; line-height: 1.6; background: transparent;
}

.input-field {
  width: 100%; margin-top: 6px;
  border: 1px solid #dbe2ec; border-radius: 10px;
  padding: 11px 13px; font-size: 14px; background: #fcfdff;
}
.input-std {
  width: 100%; text-align: center;
  border: 1px solid #dbe2ec; border-radius: 9px;
  padding: 9px 4px; font-size: 13px; background: #fcfdff;
}
.input-std-sm {
  width: 54px; text-align: center;
  border: 1px solid #dbe2ec; border-radius: 8px;
  padding: 7px 4px; font-size: 13px; background: #fcfdff;
}

/* ── Variant A: Tabelle ──────────────────────────────────────── */
.va-table {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card); overflow: hidden;
}
.va-header {
  display: grid;
  grid-template-columns: 104px 1fr 210px 70px;
  background: #f4f6fa;
  border-bottom: 1px solid var(--c-border);
  padding: 11px 16px;
  font-size: 11.5px; font-weight: 700;
  color: var(--c-muted); text-transform: uppercase; letter-spacing: .4px;
}
.va-row {
  display: grid;
  grid-template-columns: 104px 1fr 210px 70px;
  gap: 14px; padding: 14px 16px;
  border-bottom: 1px solid var(--c-border-light);
  align-items: start;
}
.va-day-col { display: flex; flex-direction: column; }

/* ── Variant B: Cards ────────────────────────────────────────── */
.vb-list { display: flex; flex-direction: column; gap: 12px; }
.vb-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card); padding: 16px 18px;
}
.vb-card-header {
  display: flex; align-items: center; gap: 11px; margin-bottom: 11px;
}
.vb-meta-row {
  display: flex; align-items: center; gap: 9px;
  margin-top: 11px; flex-wrap: wrap;
}
.std-inline { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── Variant C: Timeline ─────────────────────────────────────── */
.vc-timeline {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 18px; padding: 8px 20px;
}
.vc-row { display: flex; gap: 18px; padding: 18px 0; }
.vc-row--border { border-bottom: 1px solid var(--c-border-light); }
.vc-day-col { width: 66px; flex: none; text-align: center; }
.vc-day-name { font-size: 22px; font-weight: 800; color: var(--c-primary); letter-spacing: -.5px; }
.vc-body { flex: 1; min-width: 0; }
.vc-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px; padding-left: 14px; flex-wrap: wrap;
}
.select-pill {
  border: 1px solid #dbe2ec; border-radius: 999px;
  padding: 6px 13px; font-size: 12px;
  background: #fff; color: #475569;
}
.select-pill--blue  { background: var(--c-info-bg); color: var(--c-primary); font-weight: 600; }
.select-pill--absent { border-color: var(--c-amber-border); background: var(--c-amber-bg); color: var(--c-amber); }

/* ── Day Helpers ─────────────────────────────────────────────── */
.day-name    { font-weight: 800; font-size: 14px; }
.day-name-lg { font-weight: 800; font-size: 15px; }
.day-date    { font-size: 11px; color: var(--c-muted-lt); margin-top: 2px; }
.day-date-sm { font-size: 12px; color: var(--c-muted-lt); }

.day-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
}
.day-dot--center { margin: 10px auto 0; }
.day-dot--green  { background: var(--c-green); }
.day-dot--amber  { background: #d97706; }
.day-dot--gray   { background: #cbd5e1; }

/* ── Holiday Badges & Tags ───────────────────────────────────── */
.holiday-badge {
  width: 100%; margin-top: 5px;
  border-radius: 7px; padding: 5px 5px;
  font-size: 9.5px; line-height: 1.2;
  text-align: center; font-weight: 700;
}
.holiday-badge--bw    { background: var(--c-amber-bg); color: var(--c-amber); border: 1px solid var(--c-amber-border); }
.holiday-badge--extra { background: var(--c-extra-bg); border: 1px dashed var(--c-extra-border); color: #9a6a28; }
.toggle-row   { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 5px; }
.toggle-label { font-size: 9px; color: #9a6a28; text-align: center; margin-top: 3px; font-weight: 600; }

.tag-holiday {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 9px; padding: 8px 11px; font-size: 12px; font-weight: 700;
}
.tag-holiday--bw    { background: var(--c-amber-bg); color: var(--c-amber); border: 1px solid var(--c-amber-border); }
.tag-holiday--extra { background: var(--c-extra-bg); border: 1px dashed var(--c-extra-border); color: #9a6a28; }

.tag-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 700;
}
.tag-pill--bw    { background: var(--c-amber-bg); color: var(--c-amber); border: 1px solid var(--c-amber-border); }
.tag-pill--extra { background: var(--c-extra-bg); border: 1px dashed var(--c-extra-border); color: #9a6a28; }

.tag-neutral {
  font-size: 11.5px; color: #475569; background: var(--c-bg);
  padding: 4px 10px; border-radius: 999px;
}

/* ── Toggle Switch ───────────────────────────────────────────── */
.toggle {
  flex: none; width: 42px; height: 24px;
  border-radius: 999px; border: none; cursor: pointer;
  position: relative; background: #cbd5e1;
  transition: background .15s;
}
.toggle--on { background: #d97706; }
.toggle--sm { width: 36px; height: 20px; }
.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: left .15s;
}
.toggle--sm .toggle-knob { width: 14px; height: 14px; top: 3px; }
.toggle--on .toggle-knob { left: calc(100% - 21px); }
.toggle--sm.toggle--on .toggle-knob { left: calc(100% - 17px); }

/* ── Monat ───────────────────────────────────────────────────── */
.month-group {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card); overflow: hidden;
  margin-bottom: 20px;
}
.month-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--c-border-light);
}
.month-group-title { font-weight: 800; font-size: 15px; }
.month-group-total { font-size: 12.5px; color: var(--c-muted); }

.month-table-header {
  display: grid;
  grid-template-columns: 70px 150px 1fr 130px 70px;
  background: #f4f6fa; padding: 9px 20px;
  font-size: 11px; font-weight: 700;
  color: var(--c-muted-lt); text-transform: uppercase; letter-spacing: .4px;
}
.month-row {
  display: grid;
  grid-template-columns: 70px 150px 1fr 130px 70px;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f4f8;
  align-items: center; font-size: 13px;
}
.month-nr { font-weight: 800; color: var(--c-primary); }
.month-lf { color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }

/* ── Stammdaten ─────────────────────────────────────────────── */
.form-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card-lg);
  padding: 26px 28px; margin-bottom: 16px;
}
.form-card-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.form-card-sub   { font-size: 12.5px; color: var(--c-muted); margin-bottom: 20px; }
.form-card-footer {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--c-border-light);
  font-size: 12.5px; color: var(--c-muted); line-height: 1.6;
}
.form-fields  { display: flex; flex-direction: column; gap: 16px; }
.form-grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label   { display: block; }
.label-text   { font-size: 12.5px; font-weight: 700; color: #475569; }

.holiday-rules { font-size: 12.5px; color: var(--c-muted); line-height: 1.6; margin-top: 8px; }
.holiday-rule  { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.holiday-indicator {
  flex: none; margin-top: 2px;
  width: 10px; height: 10px; border-radius: 3px;
}
.holiday-indicator--bw    { background: #d97706; }
.holiday-indicator--extra { background: var(--c-extra-bg); border: 1px dashed var(--c-extra-border); }

/* ── Druck Controls ──────────────────────────────────────────── */
.print-controls {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; flex-wrap: wrap;
}

/* ── IHK Druckbogen ──────────────────────────────────────────── */
.print-sheet {
  background: var(--c-card);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  width: 210mm; min-height: 297mm;
  padding: 9mm 14mm;
  box-sizing: border-box;
  font-size: 12px; color: #111;
  display: flex; flex-direction: column;
}
.print-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  border-bottom: 2px solid var(--c-primary);
  padding-bottom: 14px; margin-bottom: 14px; flex: none;
}
.print-head-title { font-size: 17px; font-weight: 800; color: var(--c-primary); letter-spacing: -.3px; }
.print-head-sub   { font-size: 11px; color: #555; margin-top: 3px; }
.print-logo       { height: 34px; width: auto; }

.print-meta-table {
  flex: none; width: 100%;
  border-collapse: collapse; margin-bottom: 12px; font-size: 11.5px;
}
.print-meta-cell {
  border: 1px solid #bcc6d4; padding: 7px 9px;
}
.print-meta-cell--wide { width: 62%; }
.print-meta-label {
  color: #667; font-size: 9.5px; display: block;
  text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px;
}

.print-activity-table {
  flex: 1; display: grid;
  grid-template-rows: auto repeat(5, 1fr);
  border: 1px solid #bcc6d4; min-height: 0;
}
.print-activity-header {
  display: grid;
  grid-template-columns: 78px 1fr 76px 40px;
  background: var(--c-info-bg);
  font-size: 10px; font-weight: 700; color: #42546b;
  text-transform: uppercase; letter-spacing: .3px;
}
.print-activity-row {
  display: grid;
  grid-template-columns: 78px 1fr 76px 40px;
  border-top: 1px solid #bcc6d4; min-height: 0; overflow: hidden;
}
.print-col-tag  { padding: 8px; border-right: 1px solid #d3dbe6; font-size: 10px; }
.print-col-text { padding: 8px; border-right: 1px solid #d3dbe6; font-size: 10px; }
.print-col-lf   { padding: 8px; border-right: 1px solid #d3dbe6; font-size: 10.5px; }
.print-col-std  { padding: 8px 6px; text-align: center; font-size: 11px; }
.print-activity-header .print-col-text { font-size: 10px; text-transform: none; letter-spacing: 0; }

.print-day-name  { font-weight: 700; font-size: 12.5px; }
.print-day-date  { font-size: 9.5px; color: #777; margin-top: 2px; }
.print-kz {
  display: inline-block; margin-top: 6px;
  background: var(--c-primary); color: #fff;
  border-radius: 4px; padding: 1px 6px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .4px;
}
.print-text-content { line-height: 1.45; font-size: 11px; white-space: pre-wrap; overflow: hidden; }

.print-sig-hint {
  flex: none; font-size: 10px; color: #444; margin: 16px 0 0;
}
.print-sig-row {
  flex: none; display: flex; gap: 40px; margin-top: 34px;
}
.print-sig-field {
  flex: 1; border-top: 1px solid #333;
  padding-top: 7px; font-size: 9.5px; color: #555;
}

/* ── Utilities ───────────────────────────────────────────────── */
.text-primary  { color: var(--c-primary); }
.text-muted    { color: var(--c-muted); font-size: 13px; }
.text-muted-sm { color: #475569; font-size: 13px; }
.center        { text-align: center; }
.fw-bold       { font-weight: 700; }
.not-found     { padding: 40px; }

/* ── Print Media ─────────────────────────────────────────────── */
@media print {
  body * { visibility: hidden; }
  #print-sheet, #print-sheet * { visibility: visible; }
  #print-sheet {
    position: absolute; left: 0; top: 0;
    width: 100% !important; min-height: 276mm !important;
    box-shadow: none !important; padding: 9mm 14mm !important;
  }
  @page { size: A4 portrait; margin: 0; }
}
