* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0e17;
  color: #e0e6f0;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, #4fc3f7, #81c784);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: #78909c;
  margin-top: 0.3rem;
}

/* Input */
.input-section { margin-bottom: 1.5rem; }

.input-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.autocomplete-wrap {
  flex: 1;
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a2535;
  border: 1px solid #4fc3f7;
  border-top: none;
  border-radius: 0 0 8px 8px;
  list-style: none;
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
}

.autocomplete-list li {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: #cfd8dc;
  cursor: pointer;
  border-bottom: 1px solid #2a3a4a;
}

.autocomplete-list li:last-child { border-bottom: none; }
.autocomplete-list li:hover, .autocomplete-list li.active {
  background: #223040;
  color: #4fc3f7;
}

#addressInput {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #2a3a4a;
  border-radius: 8px;
  background: #141c2b;
  color: #e0e6f0;
  font-size: 1rem;
}

#addressInput:focus {
  outline: none;
  border-color: #4fc3f7;
}

.mic-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #2a3a4a;
  background: #141c2b;
  color: #78909c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mic-btn:hover { border-color: #4fc3f7; color: #4fc3f7; }

.mic-btn.recording {
  border-color: #ef5350;
  color: #ef5350;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,83,80,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(239,83,80,0); }
}

.search-btn {
  padding: 0 1.5rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-btn:hover { opacity: 0.85; }

.speech-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #4fc3f7;
  min-height: 1.2em;
}

/* Options */
.options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.options label {
  font-size: 0.85rem;
  color: #90a4ae;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.options select, .options input[type="number"] {
  padding: 0.4rem;
  border: 1px solid #2a3a4a;
  border-radius: 6px;
  background: #141c2b;
  color: #e0e6f0;
  font-size: 0.85rem;
}

.options input[type="number"] { width: 60px; }

/* Location */
.location-info {
  background: #141c2b;
  border: 1px solid #2a3a4a;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #81c784;
}

/* Loading */
.loading {
  text-align: center;
  padding: 2rem;
  color: #78909c;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #2a3a4a;
  border-top-color: #4fc3f7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 0.8rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: #141c2b;
  border: 1px solid #2a3a4a;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.card:hover { border-color: #4fc3f7; }

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #1a2535;
  display: block;
}

.card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #455a64;
  font-size: 0.85rem;
}

.card-body {
  padding: 0.8rem 1rem;
}

.card-title {
  font-size: 0.8rem;
  color: #90a4ae;
  word-break: break-all;
  margin-bottom: 0.4rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #607d8b;
}

.card-meta .cloud {
  color: #81c784;
}

/* Error */
.error {
  background: #2a1a1a;
  border: 1px solid #ef5350;
  border-radius: 8px;
  padding: 1rem;
  color: #ef9a9a;
  margin-top: 1rem;
}

.hidden { display: none !important; }

/* No results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #607d8b;
  grid-column: 1 / -1;
}

/* Location info with actions */
.location-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.location-text {
  flex: 1;
  font-size: 0.9rem;
  color: #81c784;
}

.location-actions {
  flex-shrink: 0;
}

.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: #1a73e8;
  color: #fff;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.maps-btn:hover { background: #1558b0; }

/* Google Maps embed */
.map-container {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a3a4a;
}

.map-frame {
  width: 100%;
  height: 320px;
  display: block;
  background: #141c2b;
}

/* Neue Suche Button */
.new-search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.new-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  border: 2px solid #4fc3f7;
  border-radius: 8px;
  background: transparent;
  color: #4fc3f7;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.new-search-btn:hover {
  background: #4fc3f7;
  color: #0a0e17;
}
