/* AUTO-GENERIERT aus scss/ – nicht direkt editieren. Build: python -m immowatcher.buildcss */
:root {
  --bg: #0f1116;
  --panel: #181b22;
  --panel2: #1f232c;
  --line: #2a2f3a;
  --txt: #e6e9ef;
  --mut: #9aa3b2;
  --acc: #1b9cfc;
  --good: #2ecc71;
  --warn: #e67e22;
  --bad: #e74c3c;
  --mid: #f1c40f;
}

* {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f1116;
  color: #e6e9ef;
}

a {
  color: #1b9cfc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 22px;
  margin: 6px 0 18px;
}

h2 {
  font-size: 16px;
  margin: 26px 0 12px;
  color: #fff;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #12141a;
  border-bottom: 1px solid #2a2f3a;
  padding: 12px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

header .brand {
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

header nav a {
  color: #9aa3b2;
  font-weight: 600;
  padding: 4px 2px;
}

header nav a.active {
  color: #e6e9ef;
  border-bottom: 2px solid #1b9cfc;
}

header form {
  margin-left: auto;
}

@media (max-width: 600px) {
  header {
    padding: 10px 12px;
    gap: 10px 12px;
  }
  header form {
    margin-left: 0;
    flex-basis: 100%;
  }
  header select {
    width: 100%;
  }
}

select,
input[type="text"] {
  background: #1f232c;
  color: #e6e9ef;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 14px;
  max-width: 100%;
}

textarea {
  background: #1f232c;
  color: #e6e9ef;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  padding: 8px 10px;
  font: 13px monospace;
}

code {
  background: #1f232c;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 12px;
}

label {
  display: block;
  font-size: 13px;
  color: #9aa3b2;
}

label input, label textarea {
  margin-top: 4px;
}

label input[type="text"], label textarea {
  width: 100%;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 60px;
}

@media (max-width: 600px) {
  main {
    padding: 16px 12px 48px;
  }
}

.grid {
  display: grid;
  gap: 14px;
}

.kpis {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  .cols {
    grid-template-columns: 1fr;
  }
}

.grid > *, .cols > * {
  min-width: 0;
}

.card {
  background: #181b22;
  border: 1px solid #2a2f3a;
  border-radius: 14px;
  padding: 16px;
  min-width: 0;
  overflow-x: auto;
}

.kpi .v {
  font-size: 26px;
  font-weight: 700;
}

.kpi .l {
  color: #9aa3b2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.kpi .s {
  color: #9aa3b2;
  font-size: 12px;
  margin-top: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #2a2f3a;
}

@media (max-width: 600px) {
  th, td {
    padding: 6px 7px;
    font-size: 13px;
  }
}

th {
  color: #9aa3b2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: default;
}

tbody tr:hover {
  background: #1f232c;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pill.good {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.pill.warn {
  background: rgba(230, 126, 34, 0.15);
  color: #e67e22;
}

.pill.bad {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.pill.mut {
  background: #1f232c;
  color: #9aa3b2;
}

.btn {
  background: #1b9cfc;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn.ghost {
  background: #1f232c;
  color: #e6e9ef;
  border: 1px solid #2a2f3a;
}

.btn.danger {
  background: #e74c3c;
  color: #fff;
}

.btn.sm {
  padding: 5px 9px;
  font-size: 12px;
  margin-left: 4px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.muted {
  color: #9aa3b2;
}

.right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

canvas {
  max-height: 280px;
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.lcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.lcard img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #1f232c;
}

.lcard .body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.lcard .price {
  font-size: 18px;
  font-weight: 700;
}

.lcard .meta {
  color: #9aa3b2;
  font-size: 13px;
}

.lcard .t {
  font-size: 13.5px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lcard .foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
}

.lcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta {
  background: #1b9cfc;
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  display: inline-block;
}

.cta:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

#map {
  height: 440px;
  border-radius: 10px;
  overflow: hidden;
  background: #1f232c;
}

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #9aa3b2;
  margin-bottom: 8px;
}

.legend .dot,
.legend .sq {
  display: inline-block;
  width: 10px;
  height: 10px;
  vertical-align: middle;
}

.legend .dot {
  border-radius: 50%;
}

.legend .sq {
  border-radius: 2px;
}

.legend .dot.dashed {
  background: none;
  border: 2px dashed #9aa3b2;
}

.swatch-top {
  background: #1b9cfc;
}

.swatch-good {
  background: #2ecc71;
}

.swatch-mid {
  background: #f1c40f;
}

.swatch-high {
  background: #e74c3c;
}

.swatch-na {
  background: #9aa3b2;
}

.swatch-gone {
  background: #7a828f;
}

.poi-kpis .kpi .v {
  color: #1b9cfc;
}

.drive-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(27, 156, 252, 0.15);
  color: #1b9cfc;
}
