:root {
  --fg: #111;
  --muted: #555;
  --line: #e6e6e6;
  --bg: #fff;
  --accent: #0b6b7a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

a { color: inherit; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

/* Generic centering helper (Home nutzt eigene Layout-Regeln unten) */
.center {
  min-height: 85vh;
  display: grid;
  place-items: center;
}

/* ===== Branding ===== */
.brand {
  text-align: center;
  margin-bottom: 30px;
}

.brand .name {
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand .claim {
  margin-top: 25px;
  color: var(--muted);
  font-size: 14px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin: 40px 0 1px 0;
}

.logo-main {
  max-width: 260px;
  height: auto;
  display: block;
}

/* ===== Inputs / Buttons ===== */
.searchbox {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 16px;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.searchbox:focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.searchbox input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.btn.primary {
  border-color: var(--accent);
  color: white;
  background: var(--accent);
}

/* ===== Layout helpers ===== */
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* ===== Pills / Cards ===== */
.pill {
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s ease;
}

.pill.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0;
}

.card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
}

.card .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

/* ===== Footer (global) ===== */
.footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   HOME (Startseite) Layout
   ========================= */
body.home {
  height: 100vh;
  overflow: hidden;
}

.home-shell {
  height: 100vh;
  display: flex;
}

.home-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-footer {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* =========================
   RESULTS (Ergebnisse) Layout
   ========================= */

/* Container oben enger, damit mehr Treffer sichtbar sind */
body.results .container {
  padding-top: 12px;
}

/* Sticky Such-/Header-Bereich */
body.results .results-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding-top: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* Logo kompakter */
body.results .results-logo {
  margin: 6px 0 6px 0;
}
body.results .logo-main {
  max-width: 180px;
}

/* Searchbox kompakter + weniger Abstände */
body.results .searchbox {
  margin-top: 6px;
  margin-bottom: 6px;
}
body.results .searchbox input {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Header kompakter (überschreibt inline styles falls vorhanden) */
body.results .header {
  margin-top: 6px !important;
  margin-bottom: 10px !important;
  padding-bottom: 10px;
}

/* Pills/Row kompakter */
body.results .results-top .row {
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}

/* DidYouMean + Hint dichter */
body.results #didYouMean { margin-top: 6px !important; }
body.results #locationHint { margin-top: 6px !important; }

/* Location prompt card dichter */
body.results #locationPrompt { margin-top: 8px !important; }

/* Cards minimal dichter */
body.results .card { margin: 8px 0; }

/* Footer unter Ergebnissen (zentriert) */
body.results .results-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* Hinweis-Box (falls du sie zusätzlich als .hint nutzt) */
.hint{
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
  font-size: 14px;
  line-height: 1.35;
}
.hint a{
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* Mobile tweaks */
@media (max-width: 520px){
  body.results .container { padding: 12px; }
  body.results .logo-main { max-width: 155px; }
  body.results .searchbox { padding: 10px 12px; }
}