:root {
  --ink: #1c2430; --muted: #5b6675; --line: #dde3ea; --bg: #f5f7fa;
  --card: #ffffff; --accent: #1f6f5c; --accent-ink: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 1.4rem; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--accent); }
main { max-width: 62rem; margin: 0 auto; padding: 2rem 1.4rem 4rem; }
footer { padding: 1.4rem; color: var(--muted); font-size: 0.85rem; text-align: center; }
h1 { font-size: 1.7rem; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.7rem; }
.hero { padding: 2.5rem 0 1rem; max-width: 44rem; }
.hero p { color: var(--muted); font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.2rem 1.3rem;
}
.card .price { font-size: 1.5rem; font-weight: 700; margin: 0.4rem 0; }
.card p { color: var(--muted); margin: 0.3rem 0 0; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink) !important;
  border: 0; border-radius: 8px; padding: 0.55rem 1.1rem; font-size: 1rem;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent) !important; border: 1px solid var(--accent); }
form.stack { display: grid; gap: 0.9rem; max-width: 28rem; }
form.stack.wide { max-width: 40rem; }
label { display: grid; gap: 0.3rem; font-weight: 600; }
input[type=text], input[type=email], input[type=password], textarea, select {
  font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
.error { background: #fbe9e9; border: 1px solid #e8b8b8; color: #8a2525; padding: 0.7rem 1rem; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: #eef1f5; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.status { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.85rem; background: #e8edf3; }
.status.geliefert { background: #dcf2e7; color: #14603f; }
.status.in_arbeit, .status.freigabe { background: #fdf1d7; color: #7a5a12; }
.muted { color: var(--muted); }
.filelist { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; gap: 0.4rem; }
.filelist li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.chat { display: grid; gap: 0.6rem; margin: 0.5rem 0 1.2rem; max-width: 40rem; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.9rem; background: var(--card); }
.msg.team { border-left: 4px solid var(--accent); }
.msg.kunde { border-left: 4px solid #8a97a8; }
.msg .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.2rem; }
.msg .body { white-space: pre-line; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 0.8rem; max-width: 40rem; }
.steps li { display: flex; gap: 0.9rem; align-items: baseline; }
.steps li::before {
  counter-increment: step; content: counter(step);
  background: var(--accent); color: var(--accent-ink); border-radius: 50%;
  min-width: 1.7rem; height: 1.7rem; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.9rem;
}
