/* Triathlon Shops – modernisiertes Layout */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --accent: #ff6b00;
  --bg: #f8f9fa;
  --card: #ffffff;
  --text: #212529;
  --muted: #6c757d;
  --border: #dee2e6;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

header {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
header a { color: white; text-decoration: none; margin-left: 1.2rem; font-weight: 500; }
header a:hover { text-decoration: underline; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }

.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

.hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
}
.hero p { color: var(--muted); margin-bottom: 1.25rem; }

.search-box {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.search-box input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}
.search-box input:focus { border-color: var(--primary); }

.radius-btn {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s;
}
.radius-btn:hover { background: #f1f3f5; }
.radius-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filters button, .filters select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
}
.filters button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.shop-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.shop-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  margin-right: 0.3rem;
}
.badge.online { background: #198754; }
.badge.stationaer { background: #0d6efd; }
.badge.hybrid { background: #6f42c1; }
.shop-card .meta { color: var(--muted); font-size: 0.9rem; margin: 0.4rem 0; }
.shop-card a.btn {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.shop-card a.btn:hover { background: var(--primary-dark); }

.block {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.block h3 { margin-top: 0; color: var(--primary); }

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  background: white;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}
footer a { color: var(--primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

#distance-result { margin-top: 1rem; }
#map { border-radius: var(--radius); overflow: hidden; }
