/* ==========================================================================
   Matawow – Global Styles (vollständig)
   ========================================================================== */

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html:focus-within { scroll-behavior: smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  color:#1f2330;
  background:#fff;
}
img, svg, video{ display:block; max-width:100%; }
a{ text-decoration:none; color:inherit; }
button{ border:0; background:none; padding:0; cursor:pointer; }
:focus-visible{ outline:2px solid currentColor; outline-offset:2px; }

/* ===== Tokens ===== */
:root{
  --bg:#ffffff;
  --surface:#f7f8fb;
  --elevated:#ffffff;
  --text:#1f2330;
  --muted:#6b7280;
  --border:#e5e7eb;

  --primary:#5b8cff;
  --primary-600:#3d6fe0;
  --success:#16a34a;     /* green for approved / active DLS */
  --warning:#f59e0b;
  --danger:#ef4444;
  --info:#2563eb;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;
  --radius-pill:999px;

  --input-h:46px;
  --chip-h:34px;          /* Einheitliche Höhe für approved, DLS & Button */

  --shadow-sm:0 1px 2px rgba(17,24,39,.06);
  --shadow-md:0 6px 18px rgba(17,24,39,.08);

  --fs-12:12px; --fs-14:14px; --fs-16:16px; --fs-18:18px; --fs-20:20px; --fs-24:24px;
}

/* ===== Base ===== */
.container{ width:min(1100px, 100% - 32px); margin-inline:auto; }
h1,h2,h3{ margin:0 0 .5rem; font-weight:800; letter-spacing:-.01em; }
h1{ font-size:clamp(32px,6vw,48px); }
h2{ font-size:clamp(20px,3vw,26px); }
h3{ font-size:var(--fs-20); }
p{ margin:0 0 .75rem; }
.muted{ color:var(--muted); }
.center{ text-align:center; }

/* ===== Header ===== */
.header{
  position:sticky; top:0; z-index:10;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--border);
}
.header__inner{ display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand{ font-weight:800; font-size:var(--fs-20); }

/* ===== Helpers ===== */
.mt-16{ margin-top:16px; } .mb-16{ margin-bottom:16px; }
.mt-24{ margin-top:24px; } .mb-24{ margin-bottom:24px; }
.mb-32{ margin-bottom:32px; }
.w-100{ width:100%; }

/* ===== Form Controls ===== */
.input, .select{
  height:var(--input-h);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:#fff;
  padding:0 14px;
  font-size:var(--fs-16);
  transition:border .18s, box-shadow .18s;
}
.input::placeholder{ color:var(--muted); }
.input:focus, .select:focus{ border-color:var(--primary); box-shadow:0 0 0 3px rgba(91,140,255,.25); }

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:var(--input-h); padding:0 18px;
  border-radius:var(--radius-md); font-weight:700; box-shadow:var(--shadow-sm);
  transition:background .18s, transform .12s, box-shadow .18s;
}
.btn-primary{ background:var(--primary); color:#fff; }
.btn-primary:hover{ background:var(--primary-600); }
.btn-secondary{
  background:#fff; border:1px solid var(--border); color:#111827;
  border-radius:10px; padding:0 14px; height:var(--input-h); display:inline-flex; align-items:center;
}
.btn--pill{ border-radius:var(--radius-pill); }

/* ===== Chip-UI (gleiche Höhe & Schrift) ===== */
.chipline{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.chip{
  display:inline-flex; align-items:center; gap:6px;
  height:var(--chip-h); padding:0 12px; border-radius:999px;
  border:1px solid var(--border); background:#fff; font-size:var(--fs-12);
}
.chip.is-active{ box-shadow:0 0 0 3px rgba(91,140,255,.25); border-color:var(--primary); cursor:pointer; }

/* Approved: grün, weiße fette Schrift */
.status-approved{
  display:inline-flex; align-items:center; height:var(--chip-h);
  padding:0 12px; border-radius:999px; font-size:var(--fs-12); font-weight:700;
  background:var(--success); color:#fff; border:1px solid var(--success);
  text-transform:uppercase; letter-spacing:.02em;
}

/* DLS-Hinweis: grau (inaktiv), grün aktiv */
.dls-chip{
  display:inline-flex; align-items:center; height:var(--chip-h);
  padding:0 12px; border-radius:999px; font-size:var(--fs-12); font-weight:600;
  background:#f3f4f6; color:#6b7280; border:1px solid var(--border);
}
.dls-chip.active{
  background:var(--success); border-color:var(--success); color:#fff; font-weight:700;
}

/* Button im Chip-Format – gleiche Höhe & Schrift */
.btn-chip{
  display:inline-flex; align-items:center; justify-content:center;
  height:var(--chip-h); padding:0 12px; border-radius:999px; font-weight:700;
  background:var(--primary); color:#fff; box-shadow:var(--shadow-sm); font-size:var(--fs-12);
}
.btn-chip:hover{ background:var(--primary-600); }

/* ===== Suche & Toolbar ===== */
.search-wrap{ display:flex; justify-content:center; }
.search-inner{ width:min(720px,100%); display:grid; grid-template-columns:1fr auto; gap:10px; }
.toolbar-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.toolbar-left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.toolbar-right{ display:flex; align-items:center; gap:10px; }

/* ===== Cards / Task-List ===== */
.card{ background:var(--elevated); border:1px solid var(--border); border-radius:22px; box-shadow:var(--shadow-md); overflow:hidden; }
.card__body{ padding:16px 18px; }
.task-list{ list-style:none; padding:0; margin:16px 0; display:grid; gap:14px; }
.task-item .title{ font-weight:800; color:#0f172a; font-size:var(--fs-18); }
.task-item .meta{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:var(--fs-14); }
.task-item .price{ font-weight:700; color:#0f172a; }
.task-item .owner{ display:flex; align-items:center; gap:8px; margin-top:10px; }
.avatar{ width:28px; height:28px; border-radius:999px; object-fit:cover; background:#eee; }

.actions{
  display:flex; align-items:center; gap:10px; justify-content:flex-start;
  border-top:1px solid var(--border); background:var(--surface); padding:12px 14px;
}

/* ===== Map ===== */
#map{ background:#e5e7eb; }
.pin{ width:18px; height:18px; border-radius:50%; border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.2); }
.popup-row{ display:flex; gap:.75rem; align-items:flex-start; }

/* ===== Footer ===== */
.footer{ border-top:1px solid var(--border); padding:24px 0; margin-top:32px; color:#6b7280; }

/* ===== Anim ===== */
@keyframes fadeInUp{ from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.fade-in-up{ animation:fadeInUp .24s ease both; }

/* ===== Responsive ===== */
@media (max-width:720px){
  .header__inner{ padding-inline:8px; }
  .search-inner{ grid-template-columns:1fr; }
  .toolbar-right{ width:100%; justify-content:flex-start; gap:8px; }
  .actions{ flex-wrap:wrap; }
}









