@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --line: #e6e2d8;
  --text: #1f2a24;
  --muted: #6b7570;
  --accent: #1e5c48;
  --accent-light: #e7f0ec;
  --danger: #a4423c;
  --warn: #b8935a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', -apple-system, sans-serif;
  line-height: 1.45;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; margin: 0 0 12px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 24px 18px 60px; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar a { color: var(--text); font-weight: 700; }
.topbar .right a { color: var(--muted); font-size: 14px; margin-left: 16px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; margin-bottom: 20px;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
tr:hover td { background: var(--accent-light); }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: var(--accent-light); color: var(--accent);
}
.badge.status-Neu { background: #e7f0ec; color: #1e5c48; }
.badge.status-Nicht.erreicht, .badge[data-status="Nicht erreicht"] { background: #f3efe6; color: #8a6d2f; }
.badge.status-Kein.Interesse, .badge[data-status="Kein Interesse"] { background: #f7e9e8; color: var(--danger); }
.badge[data-status="Kunde geworden"] { background: #1e5c48; color: #fff; }
.badge[data-status="Termin vereinbart"] { background: #e7f0ec; color: #1e5c48; }
.badge[data-status="Rückruf vereinbart"] { background: #f3efe6; color: #8a6d2f; }

.btn {
  display: inline-block; background: var(--accent); color: #fff !important; border: none;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer;
  text-decoration: none;
}
.btn:hover { opacity: .9; text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--text) !important; border: 1.5px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: 13px; }

input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--text);
}
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin: 12px 0 4px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 200px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select, .filters input { width: auto; }

.muted { color: var(--muted); font-size: 14px; }
.kv { display: flex; gap: 8px; padding: 4px 0; font-size: 14px; }
.kv .k { color: var(--muted); min-width: 110px; }

.note { border-bottom: 1px solid var(--line); padding: 10px 0; }
.note .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }

.error { background: #f7e9e8; color: var(--danger); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }

.copybox {
  background: var(--accent-light); border-radius: 10px; padding: 10px 12px; font-family: monospace;
  font-size: 13px; word-break: break-all; user-select: all;
}

@media (max-width: 600px) {
  .container { padding: 16px 12px 40px; }
  th:nth-child(4), td:nth-child(4) { display: none; }
}
