:root {
  --ink: #1a1a1a;
  --ink-soft: #555;
  --bg: #fdfdfb;
  --card-bg: #ffffff;
  --border: #e4e2dd;
  --accent: #1f6f5c;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.tagline {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.search-bar {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

#search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}

#category-filter {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--card-bg);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.listing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.listing-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.listing-card .category-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(31, 111, 92, 0.1);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.5rem;
}

.listing-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 0.6rem;
}

.listing-card p.land {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.result-count {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 0.9rem;
}

/* --- Artikel --- */

.article {
  max-width: 44rem;
  padding-bottom: 2rem;
}

.article h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 1.2rem 0 1rem;
}

.article h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.7rem;
}

.article p,
.article li {
  font-size: 1.02rem;
  line-height: 1.65;
}

.article .lead {
  font-size: 1.12rem;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.2rem 0 1.8rem;
}

.article ul {
  padding-left: 1.3rem;
}

.article li {
  margin-bottom: 0.5rem;
}

.article a {
  color: var(--accent);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 1.2rem 0 0;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.1rem;
  background: #f6f5f1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem !important;
  color: var(--ink-soft);
}

.artikel-hinweis {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.artikel-hinweis h2 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.artikel-hinweis ul {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.artikel-hinweis li {
  margin-bottom: 0.4rem;
}

.artikel-hinweis a {
  color: var(--accent);
  font-weight: 600;
}

.listing-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.listing-card h3 a:hover {
  color: var(--accent);
}

.listing-card a.cta {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.empty-state {
  color: var(--ink-soft);
  text-align: center;
  padding: 2rem 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.disclosure {
  max-width: 640px;
}

@media (max-width: 560px) {
  .search-bar { flex-direction: column; }
}

.feat { font-size: .85rem; color: #2f6b4f; margin: .2rem 0 .4rem; }
.listing-card h3 a { text-decoration: none; }
.listing-card p { margin: .3rem 0; }

.preis a { color: inherit; }
.preis strong { font-size: 1.05em; }

/* ueberblick */
/* Der Kasten oben. Beantwortet in einem Blick, was die Seite hergibt. */
.ueberblick { margin: 1.2rem 0 1.6rem; }
.ueberblick ul {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 0; padding: 0;
}
.ueberblick li {
  flex: 1 1 8rem; min-width: 7rem;
  background: #f6f7f9; border: 1px solid #e5e8ec; border-radius: 10px;
  padding: .6rem .8rem;
}
.ueberblick strong { display: block; font-size: 1.25rem; line-height: 1.2; }
.ueberblick span { font-size: .82rem; color: #55606b; }

/* Merkzeichen an den Karten, damit man scannen kann statt zu lesen. */
.marken { margin: .25rem 0 .45rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.marke {
  font-size: .74rem; line-height: 1; padding: .28rem .5rem;
  border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.m-preis { background: #e8f1fb; border-color: #c3ddf7; color: #14508f; font-weight: 700; }
.m-offen { background: #e9f6ec; border-color: #c6e7ce; color: #1c6b32; }
.m-web   { background: #f2f0fb; border-color: #d9d3f3; color: #46389a; }
.m-tel   { background: #f6f7f9; border-color: #e0e4e9; color: #4a5560; }

/* Fragen, die Leute wirklich tippen. Zugeklappt, damit die Liste oben bleibt. */
.fragen { margin: 2rem 0 1rem; }
.fragen h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.fragen details {
  border: 1px solid #e5e8ec; border-radius: 10px;
  padding: .7rem .9rem; margin-bottom: .5rem; background: #fff;
}
.fragen details[open] { background: #fafbfc; }
.fragen summary { cursor: pointer; font-weight: 600; }
.fragen p { margin: .6rem 0 0; color: #3d4750; }

@media (max-width: 560px) {
  .ueberblick li { flex: 1 1 6rem; padding: .5rem .6rem; }
  .ueberblick strong { font-size: 1.1rem; }
}

/* startseite */
/* Suchfeld oben. Wer vom Handy kommt, soll seine Stadt sofort finden. */
.suche { margin: 1.4rem 0 1.8rem; }
.suche label { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: .45rem; }
.suche input {
  width: 100%; box-sizing: border-box; font-size: 1.05rem;
  padding: .8rem 1rem; border: 2px solid #c9d2dc; border-radius: 12px;
  background: #fff; outline: none;
}
.suche input:focus { border-color: #1c64a8; box-shadow: 0 0 0 3px rgba(28,100,168,.15); }
.suche .hinweis { font-size: .82rem; color: #66717c; margin: .35rem 0 0; }
.treffer { list-style: none; margin: .5rem 0 0; padding: 0; }
.treffer li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem .9rem; border: 1px solid #e5e8ec; border-radius: 10px;
  margin-bottom: .35rem; background: #fff; text-decoration: none;
}
.treffer li a:hover, .treffer li a:focus { border-color: #1c64a8; background: #f4f8fd; }
.treffer li a span { font-size: .8rem; color: #66717c; }
.treffer li.leer { color: #66717c; font-size: .9rem; padding: .4rem 0; }

/* Groesste Staedte als Knoepfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; }
.knopf {
  display: inline-block; padding: .5rem .8rem; border-radius: 999px;
  border: 1px solid #d6dde5; background: #fff; text-decoration: none;
  font-size: .92rem; line-height: 1.2;
}
.knopf small { color: #7a858f; font-size: .76rem; margin-left: .15rem; }
.knopf:hover { border-color: #1c64a8; background: #f4f8fd; }

/* Staaten als dichte Liste statt grosser Karten */
.laender {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .3rem .8rem;
}
.laender li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .45rem .2rem; border-bottom: 1px solid #eef1f4;
}
.laender li span { font-size: .8rem; color: #7a858f; }
@media (max-width: 560px) {
  .laender { grid-template-columns: 1fr 1fr; }
}

/* handy */
/* Grosse Knoepfe auf jeder Karte: Anrufen, Route, Website.
   Mindestens 44 Pixel hoch, damit der Daumen sie trifft.
   Zwei Klassen im Selektor, sonst gewinnt ".article a" die Farbe. */
.tun-reihe { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 0 !important; }
.tun-reihe .tun {
  flex: 1 1 0; min-width: 6.2rem; min-height: 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .4rem .6rem; border: 1px solid #cdd6df; border-radius: 10px;
  background: #fff; color: var(--accent); font-weight: 700; font-size: .95rem;
  line-height: 1.15; text-align: center; text-decoration: none;
}
.tun-reihe .tun small { font-weight: 400; font-size: .72rem; color: #5b6670; margin-top: .12rem; }
.tun-reihe .tun-anruf { background: var(--accent); border-color: var(--accent); color: #fff; }
.tun-reihe .tun-anruf small { color: #d9efe8; }
.tun-reihe .tun:active { transform: translateY(1px); }

/* "Closest to me" */
.nah { margin: 1rem 0 1.3rem; }
.nah-knopf {
  width: 100%; min-height: 54px; padding: .8rem 1rem;
  border: 0; border-radius: 12px; background: var(--accent); color: #fff;
  font-size: 1.08rem; font-weight: 700; cursor: pointer;
}
.nah-knopf[disabled] { opacity: .7; cursor: wait; }
.nah-hinweis { font-size: .85rem !important; color: #5b6670; margin: .4rem 0 0 !important; }
.nah-hinweis:empty { display: none; }
.nah-liste { display: grid; gap: .7rem; margin-top: .7rem; }
.nah-liste:empty { display: none; }
.abstand {
  display: inline-block; margin-bottom: .35rem; padding: .22rem .55rem;
  border-radius: 999px; background: #e9f6ec; color: #1c6b32;
  font-size: .78rem; font-weight: 700;
}
.nah-mehr { font-weight: 600; margin: .2rem 0 0; }

/* Am Handy: weniger Kopf, schneller bei den Eintraegen */
@media (max-width: 560px) {
  .site-header { padding: .75rem 0; }
  .brand { font-size: 1.15rem; }
  .tagline { display: none; }
  .article h1, main > h1 { font-size: 1.5rem; line-height: 1.2; margin: .9rem 0 .6rem; }
  .article .lead { font-size: 1rem; line-height: 1.5; margin: .6rem 0 1rem; padding-left: .75rem; }
  .ueberblick { margin: .6rem 0 1rem; }
  .ueberblick ul { gap: .35rem; }
  .ueberblick li { flex: 1 1 28%; min-width: 0; padding: .45rem .5rem; }
  .ueberblick strong { font-size: 1rem; }
  .ueberblick span { font-size: .72rem; line-height: 1.2; display: block; }
  .listing-card { padding: .85rem .9rem; }
  .suche { margin: .8rem 0 1.2rem; }
}
