* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background: #f9fafb;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.wrap { width: 100%; max-width: 720px; text-align: center; }
.logo { align-items: center; gap: 12px; margin-bottom: 8px; }
.logo img { width: 220px; border-radius: 10px; }
h1 { margin: 0; font-size: 36px; letter-spacing: -0.5px; }
.term { font-weight: 600; margin-left: -32px; color: #374151; min-width: 160px; display: inline-block; text-align: right;}
.term span { display: inline-block; transition: opacity 300ms ease, transform 300ms ease; }
.term.fade-out span { opacity: 0; transform: translateY(-6px); }
.term.fade-in span { opacity: 1; transform: translateY(0); }
.sub { color: #6b7280; margin-bottom: 24px; }

/* theme colors (einsatz already defined in navigation.css) */
.term.einsatz { color: #b91c1c; }
.term.wellness { color: #0ea5a4; }
.term.hotel { color: #f59e0b; }
.term.speise { color: #10b981; }
.term.event { color: #7c3aed; }
.term.land { color: #141414; }
.term.natur { color: #6de90e; }
.term.kultur { color: #f43f5e; }
.term.sport { color: #ef4444; }
.term.freizeit { color: #1fddff; }
.search {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px 8px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 10px 6px;
  background: transparent;
}
.search button {
  border: none;
  background: #2563eb;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.search .clear {
  border: none;
  background: transparent;
  color: #6b7280;
  padding: 6px 8px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}
.search .clear.hidden { display: none; }
.example { color: #6b7280; font-size: 13px; margin-top: 8px; }
.near {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.near[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.locate {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.chips { margin: 16px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.hints { color: #6b7280; font-size: 13px; }
.list {
  text-align: left;
  margin: 12px auto 0;
  max-width: 640px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: none;
}
.item { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; cursor: pointer; }
.item:last-child { border-bottom: none; }
.item:hover { background: #f9fafb; }
.item-title { font-weight: 600; }
.item-sub { color: #6b7280; font-size: 12px; margin-top: 2px; }
footer { margin-top: 24px; font-size: 12px; color: #9ca3af; }
footer a { color: #6b7280; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Mobile optimizations */
@media (max-width: 600px) {
  body { padding: 12px; }
  .wrap { max-width: 100%; padding: 0 8px; }
  .logo img { width: 160px; }
  h1 { font-size: 28px; }
  .sub { font-size: 14px; margin-bottom: 16px; }

  .search {
    flex-direction: row;
    gap: 6px;
    padding: 8px 10px;
  }
  .search input { font-size: 18px; padding: 12px 8px; }
  .search button { padding: 10px 12px; }

  .near, .locate, .chip {
    padding: 10px 12px;
    font-size: 15px;
  }

  .chips { justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .list { margin: 10px 0; width: calc(100% - 16px); }
  .item { padding: 12px 14px; }

  footer { margin-top: 18px; font-size: 13px; }
}

/* Larger mobile / small tablets */
@media (min-width: 601px) and (max-width: 900px) {
  .wrap { max-width: 640px; }
  .logo img { width: 180px; }
  h1 { font-size: 32px; }
}
