:root {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --positive: #16a34a;
  --negative: #dc2626;
  --border: #e2e8f0;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f7fb;
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site-header {
  background: var(--bg);
  color: #fff;
  padding: 0 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.brand span { color: #60a5fa; }

nav.main-nav { display: flex; gap: 24px; }
nav.main-nav a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 15px;
}
nav.main-nav a:hover, nav.main-nav a.active { color: #fff; text-decoration: none; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 16px;
  font-weight: 800;
}
.hero p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: #cbd5e1;
  font-size: 18px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline {
  display: inline-block;
  border: 1px solid #475569;
  color: #fff;
  padding: 11px 27px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 12px;
}
.btn-outline:hover { border-color: #94a3b8; text-decoration: none; }

section.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 48px 0;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card h3 { margin-top: 0; font-size: 18px; }
.feature-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 0; }

h2.section-title {
  font-size: 26px;
  margin: 56px 0 8px;
  text-align: center;
}
p.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-row input, .form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
}
.form-row-inline { display: flex; gap: 12px; }
.form-row-inline .form-row { flex: 1; }

.result-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 8px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.result-item .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.result-item .value { font-size: 22px; font-weight: 700; }
.value.positive { color: var(--positive); }
.value.negative { color: var(--negative); }

table.listing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
table.listing-table th, table.listing-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.listing-table th { background: #f8fafc; font-size: 12px; text-transform: uppercase; color: var(--text-muted); }
table.listing-table tr:hover td { background: #f8fafc; }
table.listing-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: end;
}
.filter-bar .form-row { margin-bottom: 0; min-width: 140px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-kauf { background: #dbeafe; color: #1e3a8a; }
.badge-miete { background: #dcfce7; color: #14532d; }

.pagination { display: flex; gap: 8px; margin-top: 20px; justify-content: center; }
.pagination a, .pagination span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.price-card.highlight { border: 2px solid var(--accent); position: relative; }
.price-card .price { font-size: 32px; font-weight: 800; margin: 12px 0; }
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; text-align: left; margin: 20px 0; }
.price-card li { padding: 6px 0; font-size: 14px; }
.price-card li::before { content: "✓ "; color: var(--positive); font-weight: 700; }
