/* ═══════════════════════════════════════════════════════════════════
   ActionTracker Pro — Shared Design System
   Used by: index.html (Landing) + app.html (App)
   ═══════════════════════════════════════════════════════════════════ */

/* ═══ TOKENS ═══════════════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg:         #07080b;
  --bg-alt:     #0c0d12;
  --surface:    #1a1d23;
  --surface2:   #22262e;

  /* Borders */
  --border:         #1e2230;
  --border-accent:  #2e333d;

  /* Text */
  --text:       #e2e4e9;
  --text-muted: #8b8f98;

  /* Accent */
  --accent:     #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.3);

  /* Status colors */
  --status-offen:   #3b82f6;
  --status-arbeit:  #eab308;
  --status-wartend: #6b7280;
  --status-erledigt:#22c55e;

  /* Priority colors */
  --prio-hoch:   #ef4444;
  --prio-mittel: #f97316;
  --prio-niedrig:#22c55e;

  /* Radii */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.3);

  /* Typography */
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
}

/* ═══ RESET + BASE ══════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle dot-grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}

/* ═══ LAYOUT ════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section-alt {
  background: var(--bg-alt);
}

section {
  padding-block: var(--space-12);
}

/* ═══ TYPOGRAPHY ════════════════════════════════════════════════════ */
.section-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-9);
  text-align: center;
}

/* ═══ BUTTONS ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-7);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 0 80px rgba(59,130,246,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-accent);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1.1rem;
  padding: var(--space-4) var(--space-9);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ═══ REVEAL ANIMATION ══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Respect reduced-motion preference and fix headless rendering */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══ NAVIGATION ════════════════════════════════════════════════════ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav-wrap.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  height: 64px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-login {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s !important;
}
.nav-login:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: var(--space-2);
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══ HERO ══════════════════════════════════════════════════════════ */
.hero {
  padding-block: var(--space-12);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  padding: var(--space-1) var(--space-3);
  border-radius: 99px;
  margin-bottom: var(--space-5);
  letter-spacing: 0.02em;
}

.hero-headline {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-7);
}

.hero-cta {
  margin-bottom: var(--space-5);
}

.hero-trust {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── App Mockup ─────────────────────────────────────────────────── */
.mockup-wrap {
  perspective: 1200px;
}

.mockup-browser {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), 0 0 80px rgba(59,130,246,0.15);
  transform: rotateY(-6deg) rotateX(3deg);
  overflow: hidden;
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-3);
  margin-left: var(--space-2);
  flex: 1;
  max-width: 220px;
}

.mockup-body {
  padding: var(--space-4);
}

.mockup-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.mockup-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mockup-col-header {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.mockup-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-2);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.mockup-card--done {
  opacity: 0.45;
}

.mockup-card--photo {
  position: relative;
}

.mockup-prio {
  width: 3px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 22px;
}

.mockup-card-text {
  flex: 1;
  line-height: 1.3;
}

.mockup-photo-icon {
  font-size: 0.6rem;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ═══ PROBLEM ═══════════════════════════════════════════════════════ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}
.problem-card:hover {
  border-color: var(--accent);
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══ BRANCHEN ══════════════════════════════════════════════════════ */
.branchen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.branchen-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s;
}
.branchen-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.branchen-icon {
  font-size: 2.4rem;
  margin-bottom: var(--space-4);
}

.branchen-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.branchen-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px var(--space-3);
}

/* ═══ FEATURES ══════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.feature-card--accent {
  border-color: var(--accent);
  box-shadow: var(--shadow-card), 0 0 30px rgba(59,130,246,0.2);
}
.feature-card--accent:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card), 0 0 50px rgba(59,130,246,0.35);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══ PRICING ═══════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
  margin-bottom: var(--space-7);
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card:hover {
  border-color: var(--border-accent);
}

.pricing-card--popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-card), 0 0 60px rgba(59,130,246,0.25);
  transform: translateY(-8px);
}
.pricing-card--popular:hover {
  border-color: var(--accent);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 2px var(--space-3);
  border-radius: 99px;
  margin-bottom: var(--space-4);
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.pricing-price {
  margin-bottom: var(--space-2);
}

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.pricing-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-seats {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: var(--space-5);
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--status-erledigt);
  font-weight: 700;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═══ FAQ ═══════════════════════════════════════════════════════════ */
.faq-inner {
  max-width: 720px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: var(--border-accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: var(--space-4);
}
.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -4px;
}

.faq-item.open .faq-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══ FOOTER ════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-top: var(--space-11);
  padding-bottom: var(--space-10);
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-3);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-col ul a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: var(--space-5);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══ RESPONSIVE ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5) var(--space-6);
    gap: var(--space-5);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a { font-size: 1rem; }
  .nav-burger { display: flex; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .mockup-wrap {
    display: none;
  }

  /* Grids → single column */
  .problem-grid,
  .branchen-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card--popular {
    transform: none;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    letter-spacing: -1px;
  }
}

/* ═══ APP SHELL (shared base for app.html) ═══════════════════════════
   These classes are available to app.html — no duplicate definitions needed.
   ═══════════════════════════════════════════════════════════════════ */

/* App layout containers */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  overflow: auto;
  background: var(--bg);
}

.app-topbar {
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-inline: var(--space-6);
  background: var(--bg-alt);
  gap: var(--space-4);
}

/* Card component (shared) */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

/* Badge component (shared) */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}

.badge-offen    { background: rgba(59,130,246,0.15);  color: var(--status-offen); }
.badge-arbeit   { background: rgba(234,179,8,0.15);   color: var(--status-arbeit); }
.badge-wartend  { background: rgba(107,114,128,0.15); color: var(--status-wartend); }
.badge-erledigt { background: rgba(34,197,94,0.15);   color: var(--status-erledigt); }

.badge-hoch   { background: rgba(239,68,68,0.15);  color: var(--prio-hoch); }
.badge-mittel { background: rgba(249,115,22,0.15); color: var(--prio-mittel); }
.badge-niedrig{ background: rgba(34,197,94,0.15);  color: var(--prio-niedrig); }

/* Form elements (shared) */
.input,
.select,
.textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: var(--space-2) var(--space-3);
  transition: border-color 0.15s;
  outline: none;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin-block: var(--space-5);
}

/* ═══ PRINT ═════════════════════════════════════════════════════════ */
@media print {
  /* Reset dark theme to white/dark */
  :root {
    --bg:         #ffffff;
    --bg-alt:     #f5f5f5;
    --surface:    #ffffff;
    --surface2:   #f0f0f0;
    --border:     #cccccc;
    --border-accent: #bbbbbb;
    --text:       #111111;
    --text-muted: #555555;
    --accent:     #2563eb;
  }

  /* Remove texture overlay */
  body::before {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
    line-height: 1.4;
  }

  /* Hide everything except the table view and the print header inside it */
  body > *:not(#app-shell):not(.app-shell) {
    display: none !important;
  }

  /* Within the app shell: hide sidebar, topbar, nav, footer, filters, action buttons */
  .app-sidebar,
  .app-topbar,
  .nav-wrap,
  .footer,
  .tbl-filter-bar,
  .tbl-stats-bar,
  .tbl-actions,
  #overdueBtn,
  .view-btn,
  button,
  [data-edit-id],
  #tbl-csv-btn,
  #tbl-print-btn {
    display: none !important;
  }

  /* Show only view-table, hide other views */
  #view-dashboard,
  #view-kanban,
  #view-modal {
    display: none !important;
  }

  #view-table {
    display: block !important;
  }

  /* App main takes full width */
  .app-shell {
    display: block !important;
  }
  .app-main {
    overflow: visible !important;
  }

  /* Print header — show it */
  .print-header {
    display: block !important;
    margin-bottom: 16pt;
    padding-bottom: 10pt;
    border-bottom: 2pt solid #111;
    page-break-after: avoid;
  }
  .print-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .print-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10pt;
  }
  .print-logo {
    max-height: 36pt;
    width: auto;
  }
  .print-firma {
    font-size: 14pt;
    font-weight: 700;
    color: #111;
  }
  .print-title-block {
    text-align: right;
  }
  .print-doc-title {
    font-size: 16pt;
    font-weight: 800;
    color: #111;
  }
  .print-doc-date {
    font-size: 10pt;
    color: #555;
    margin-top: 2pt;
  }

  /* Table layout */
  .tbl-root {
    padding: 0 !important;
    gap: 0 !important;
  }

  .tbl-scroll {
    border: none !important;
    overflow: visible !important;
  }

  .tbl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
  }

  .tbl-th {
    background: #eeeeee !important;
    color: #333 !important;
    padding: 5pt 6pt !important;
    border: 1pt solid #bbb !important;
    font-size: 8pt;
  }

  .tbl-td {
    padding: 4pt 6pt !important;
    border: 1pt solid #ccc !important;
    color: #111 !important;
    vertical-align: top !important;
  }

  .tbl-row {
    page-break-inside: avoid;
  }

  /* Overdue row: border becomes left indicator without background color */
  .tbl-row[style*="var(--prio-hoch)"] {
    border-left: 3pt solid #ef4444 !important;
  }
  .tbl-row[style*="var(--status-arbeit)"] {
    border-left: 3pt solid #eab308 !important;
  }

  /* Colored tags: use border instead of background for ink saving */
  .quelle-tag,
  .tbl-status-badge {
    background: transparent !important;
    border-width: 1pt !important;
    font-size: 8pt !important;
    padding: 1pt 4pt !important;
  }

  /* Frist colors on print */
  .tbl-frist.frist-over {
    color: #cc0000 !important;
    font-weight: 700;
  }
  .tbl-frist.frist-soon {
    color: #b45309 !important;
  }

  /* Prio colors on print */
  .tbl-prio {
    font-weight: 700;
  }

  /* Aufgabe cell */
  .tbl-aufgabe-titel {
    font-weight: 700;
  }
  .tbl-aufgabe-desc {
    font-size: 8pt;
    color: #555 !important;
  }

  /* Status badge colors on print (use text color only) */
  .tbl-status-badge[style*="status-offen"],
  .tbl-status-badge[style*="3b82f6"] {
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
  }
  .tbl-status-badge[style*="status-arbeit"],
  .tbl-status-badge[style*="eab308"] {
    color: #92400e !important;
    border-color: #92400e !important;
  }
  .tbl-status-badge[style*="status-erledigt"],
  .tbl-status-badge[style*="22c55e"] {
    color: #166534 !important;
    border-color: #166534 !important;
  }

  /* Page break rules */
  thead {
    display: table-header-group;
  }
  tfoot {
    display: table-footer-group;
  }
  .tbl-table {
    page-break-before: avoid;
  }

  /* Hide foto badge icons on print */
  .tbl-foto-badge {
    display: none !important;
  }

  /* Action column hidden */
  .tbl-td.tbl-actions,
  .tbl-th:last-child {
    display: none !important;
  }
}
