:root {
  --bg: #F3F8F1;
  --primary: #549A56;
  --dark: #152017;
  --card: #fff;
  --error: #c0392b;
  --radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--dark);
  color: #fff;
}
.site-header a { color: #fff; text-decoration: none; margin-left: 1rem; }
.brand { font-weight: 700; font-size: 1.2rem; margin-left: 0 !important; }

.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.site-footer { text-align: center; padding: 2rem; color: #666; }

h1 { margin-top: 0; }
.page-header { display: flex; justify-content: space-between; align-items: center; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(21,32,23,.08);
}
.form-card label { display: block; margin-bottom: 1rem; }
.form-card input[type="text"],
.form-card input[type="password"],
.form-card input[type="url"],
.form-card input[type="number"],
.form-card textarea,
.form-card select {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .5rem .75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn {
  display: inline-block;
  padding: .5rem 1rem;
  border: none;
  border-radius: 6px;
  background: #e0e0e0;
  color: var(--dark);
  cursor: pointer;
  text-decoration: none;
  font-size: .95rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-sm { padding: .25rem .5rem; font-size: .85rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--card);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
}
.stat-value { display: block; font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: .9rem; color: #666; }

.data-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid #eee; }

.badge { padding: .2rem .5rem; border-radius: 4px; font-size: .8rem; background: #ddd; }
.badge-ok, .badge-aktiv { background: #d4edda; color: #155724; }
.badge-error { background: #f8d7da; color: #721c24; }
.badge-pausiert { background: #fff3cd; color: #856404; }
.badge-beendet { background: #e2e3e5; }

.alert { padding: .75rem 1rem; border-radius: 6px; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.card-thumb { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }

.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.thumb-item img { width: 100%; border-radius: 6px; }
.thumb-meta { font-size: .85rem; margin-top: .5rem; }
.error-text { color: var(--error); }

.link-list { list-style: none; padding: 0; }
.link-list li { margin: .5rem 0; }
.hint { color: #666; font-size: .9rem; }
code { background: #eee; padding: .1rem .35rem; border-radius: 4px; }

.customer-page { background: var(--bg); }
.selectable { cursor: pointer; }
.selectable input { margin-right: .5rem; }
.test-preview { max-width: 400px; margin-top: 1rem; border-radius: 8px; }
