*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f7fa; color: #1a1a2e; line-height: 1.6; min-height: 100vh; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

nav { background: #1a1a2e; color: #fff; padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; }
nav .brand { font-weight: 700; font-size: 1.1rem; color: #fff; }
nav .nav-links { display: flex; gap: 1.25rem; align-items: center; }
nav .nav-links a { color: #cbd5e1; font-size: 0.9rem; }
nav .nav-links a:hover { color: #fff; text-decoration: none; }
nav .user-info { color: #94a3b8; font-size: 0.85rem; }

.page-header { padding: 1.5rem 0 1rem; display: flex; align-items: center; justify-content: space-between; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; }

.card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.25rem; margin-bottom: 1rem; }

.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-offen { background: #fee2e2; color: #b91c1c; }
.badge-bearbeitung { background: #fef3c7; color: #92400e; }
.badge-pruefung { background: #e0e7ff; color: #3730a3; }
.badge-erledigt { background: #d1fae5; color: #065f46; }
.badge-neu { background: #fee2e2; color: #991b1b; }
.badge-gesehen { background: #e5e7eb; color: #374151; }

.btn { display: inline-block; padding: 0.5rem 1rem; border: none; border-radius: 6px; font-size: 0.875rem; font-weight: 500; cursor: pointer; text-align: center; transition: background 0.15s; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; text-decoration: none; }
.btn-success { background: #059669; color: #fff; }
.btn-success:hover { background: #047857; }
.btn-secondary { background: #6b7280; color: #fff; }
.btn-secondary:hover { background: #4b5563; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.task-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid #f1f5f9; }
.task-row:last-child { border-bottom: none; }
.task-title { font-weight: 500; }
.task-meta { color: #6b7280; font-size: 0.85rem; }

.login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.login-card h1 { text-align: center; margin-bottom: 1.5rem; font-size: 1.4rem; }

.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }

.response-item { padding: 0.75rem 0; border-bottom: 1px solid #f1f5f9; }
.response-item:last-child { border-bottom: none; }
.response-meta { font-size: 0.8rem; color: #6b7280; margin-bottom: 0.25rem; }
.response-content { font-size: 0.9rem; }
.response-file { margin-top: 0.3rem; }
.response-file a { font-size: 0.85rem; }

.section-title { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #374151; }

.inbox-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.inbox-content { flex: 1; }

.empty-state { text-align: center; color: #9ca3af; padding: 2rem; font-size: 0.95rem; }
.empty-state-hint { margin-top: 0.45rem; color: #64748b; font-size: 0.85rem; }
.form-hint { margin-top: -0.25rem; margin-bottom: 0.8rem; color: #64748b; font-size: 0.84rem; }

.task-actions { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }

.status-form { display: flex; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.status-form select { padding: 0.4rem; border-radius: 6px; border: 1px solid #d1d5db; }

.badge-kanzlei { background: #ede9fe; color: #5b21b6; }

.drop-zone { border: 2px dashed #d1d5db; border-radius: 8px; padding: 1.5rem; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop-zone:hover, .drop-zone-active { border-color: #2563eb; background: #eff6ff; }
.drop-zone-text { color: #6b7280; font-size: 0.9rem; pointer-events: none; }

.file-list { margin-top: 0.5rem; }
.file-list-item { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 0.6rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 0.35rem; font-size: 0.85rem; }
.file-remove-btn { background: none; border: none; color: #991b1b; cursor: pointer; font-size: 1rem; padding: 0 0.3rem; line-height: 1; }
.file-remove-btn:hover { color: #dc2626; }

.loading-indicator { margin-left: 0.75rem; color: #6b7280; font-size: 0.9rem; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.landing-shell {
  --landing-bg-1: #0f172a;
  --landing-bg-2: #1d4ed8;
  --landing-soft: #dbeafe;
  --landing-card: #f8fafc;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  margin-top: 1.2rem;
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.landing-brand-wrap { display: flex; align-items: center; gap: 0.7rem; }

.landing-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.landing-brand-title { font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.landing-brand-subtitle { font-size: 0.78rem; color: #64748b; }

.landing-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0f172a, #2563eb 72%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.landing-actions { display: flex; align-items: center; gap: 0.55rem; }

.landing-hero {
  margin-top: 1rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(125, 211, 252, 0.28), transparent 34%),
    linear-gradient(140deg, var(--landing-bg-1), var(--landing-bg-2) 58%, #1e3a8a);
  color: #fff;
  padding: 2.3rem;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
}

.landing-kicker {
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  color: var(--landing-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.landing-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.08;
  max-width: 760px;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.landing-hero p {
  color: #dbeafe;
  max-width: 690px;
  font-size: 1.03rem;
}

.landing-hero-actions { margin-top: 1.4rem; display: flex; gap: 0.65rem; flex-wrap: wrap; }

.landing-meta {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.landing-meta span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.23);
  color: #f8fafc;
  border-radius: 999px;
  padding: 0.23rem 0.62rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.landing-card {
  background: var(--landing-card);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.landing-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.landing-card p {
  font-size: 0.92rem;
  color: #334155;
}

@media (max-width: 860px) {
  .landing-grid { grid-template-columns: 1fr; }
  .landing-nav { flex-direction: column; align-items: flex-start; }
  .landing-actions { width: 100%; }
  .landing-actions .btn { flex: 1; }
}
