/* ============================================================
 * Aussteller-Suche · Urfahraner Markt 2026
 * Autonomes Stylesheet, keine externen Abhängigkeiten (DSGVO)
 * ============================================================ */

/* ---------- DM Sans (lokal, keine Google Fonts) ---------- */
@font-face {
  font-family: 'DM Sans';
  src: url('DMSans-VariableFont_opsz,wght.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('DMSans-Italic-VariableFont_opsz,wght.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #333;
  background: transparent;
  font-size: 16px;
  line-height: 1.45;
}

body {
  padding: 16px 12px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Formular ---------- */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  margin-bottom: 18px;
}

.search-form label {
  font-size: 0.86rem;
  color: #666;
}

.search-form select,
.search-form input[type="text"] {
  font: inherit;
  padding: 7px 10px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  background: #fff;
  color: #333;
  min-width: 180px;
}

.search-form input[type="text"] {
  flex: 1;
  min-width: 220px;
}

.search-form button {
  font: inherit;
  font-weight: 600;
  padding: 8px 18px;
  border: 1px solid #C62976;
  background: #C62976;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-form button:hover { background: #a4205f; }

/* ---------- Ergebnis-Zähler ---------- */
.count {
  font-size: 0.9rem;
  color: #666;
  padding: 4px 4px 12px;
}

/* ---------- Artikel-Liste ---------- */
.entry {
  display: flex;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.entry-logo { flex: 0 0 160px; }
.entry-logo img {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
}

.entry-body { flex: 1; min-width: 0; }

.entry-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-right: 0.8rem;
}

.entry-location {
  color: #888;
  font-size: 0.9rem;
}

.entry-adresse {
  color: #555;
  font-size: 0.92rem;
  margin-top: 2px;
}

.entry-desc {
  font-style: italic;
  color: #444;
  margin: 6px 0 10px;
}

.entry-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #C6297640;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #C62976;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.btn:hover { background: #C6297610; border-color: #C62976; }

.btn-plan {
  background: #C6297610;
  font-weight: 600;
}
.btn-plan:hover { background: #C6297622; }

/* ---------- Empty State ---------- */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

/* ---------- Overlay Modal für Lageplan ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 25, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: overlayFadeIn 0.2s ease;
}
.overlay.open { display: flex; }

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.overlay-box {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 100%;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.overlay-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
}
.overlay-title small {
  font-weight: 400;
  color: #888;
  margin-left: 8px;
}

.overlay-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
.overlay-close:hover { background: rgba(0,0,0,0.06); color: #000; }

.overlay-iframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
  background: #fafafa;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .entry { flex-direction: column; }
  .entry-logo { flex: 0 0 auto; }
  .entry-logo img { width: 140px; }
  .search-form select,
  .search-form input[type="text"] { min-width: 100%; }
  .overlay { padding: 0; }
  .overlay-box { max-width: 100%; max-height: 100%; border-radius: 0; }
}
