﻿:root {
  --fh-bg: #f7f9fb;
  --fh-surface: #ffffff;
  --fh-line: #dde5ec;
  --fh-text: #1f2937;
  --fh-muted: #64748b;
  --fh-brand: #0f766e;
  --fh-brand-soft: #def4f1;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--fh-bg);
  color: var(--fh-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.fh-immobilien {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 28px;
}

.card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.fh-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fh-toolbar-left {
  display: grid;
  gap: 2px;
}

.fh-toolbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fh-toolbar-right a {
  color: #334155;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.fh-toolbar-right a:hover,
.fh-toolbar-right a.is-active {
  background: var(--fh-brand-soft);
  color: var(--fh-brand);
}

h1,
h2,
h3 {
  color: #0f172a;
}

a {
  color: var(--fh-brand);
}

.hero {
  margin-bottom: 14px;
}

.filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1040px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .fh-immobilien {
    width: calc(100% - 16px);
  }

  .fh-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  color: #334155;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c9d5e2;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.95rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-brand {
  background: var(--fh-brand);
  color: #fff;
}

.btn-soft {
  background: #e5eaf0;
  color: #1f2937;
}

.btn:hover {
  opacity: 0.94;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .listing-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.listing-card {
  border: 1px solid var(--fh-line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.listing-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.listing-meta {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 0.92rem;
}

.label {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
}

.label.featured {
  background: #fef3c7;
  color: #92400e;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--fh-line);
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

.flash {
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1px solid;
}

.flash-success {
  color: #0f5132;
  background: #d1e7dd;
  border-color: #badbcc;
}

.flash-error {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}

.flash-info {
  color: #084298;
  background: #cfe2ff;
  border-color: #b6d4fe;
}

.muted {
  color: var(--fh-muted);
}
