.grg-container {
  max-width: 800px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.grg-search-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.grg-search-box h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  color: #111827;
}

.grg-search-box p {
  margin: 0 0 20px 0;
  color: #6b7280;
  font-size: 15px;
}

.grg-input-wrapper {
  position: relative;
}

#grg-company {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
  box-sizing: border-box;
}

#grg-company:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.grg-autocomplete {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: -8px;
}

.grg-autocomplete-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.grg-autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.grg-autocomplete-item:last-child {
  border-bottom: none;
}

.grg-autocomplete-item:hover {
  background: #f9fafb;
}

.grg-autocomplete-main {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
}

.grg-autocomplete-sub {
  font-size: 13px;
  color: #6b7280;
}

#grg-search {
  margin-top: 12px;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  text-transform: none !important;
  line-height: 48px !important;
  text-decoration: none !important;
  padding-top: 2px !important;
}

.grg-search-text-full,
.grg-search-text-short {
  display: block;
}

#grg-search:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#grg-search:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#grg-loading {
  margin-top: 16px;
  padding: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e40af;
  text-align: center;
}

.grg-error-box {
  margin-top: 16px;
  padding: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  color: #991b1b;
}

/* Result Container */
.grg-result-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
}

.grg-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.grg-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: #6b7280;
  transition: all 0.2s;
}

.grg-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.grg-header h3 {
  margin: 0 0 8px 0;
  font-size: 20px !important;
  color: #111827;
  padding-right: 40px;
}

.grg-meta {
  margin: 4px 0;
  color: #6b7280;
  font-size: 14px;
}

.grg-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.grg-rating-compact {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.grg-status-compact {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px !important;
  font-weight: 500;
}

.grg-status-compact.grg-status-open {
  background: #d1fae5;
  color: #065f46;
}

.grg-status-compact.grg-status-closed {
  background: #fee2e2;
  color: #991b1b;
}

/* 3 Link-Boxen */
.grg-link-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.grg-link-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.grg-link-box h4 {
  margin: 0 0 8px 0;
  font-size: 14px !important;
  font-weight: 600;
  color: #111827;
}

.grg-link-box p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.grg-url-field {
  display: flex;
  gap: 8px;
  align-items: center;
}

.grg-url-input {
  flex: 1;
  padding: 8px 12px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  color: #374151;
  font-family: monospace;
}

.grg-copy-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.grg-copy-icon svg {
  color: #6b7280;
}

.grg-copy-icon:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.grg-copy-icon:hover svg {
  color: #111827;
}

/* 2-Spalten Layout: Buttons links (35%), Fotos rechts (65%) */
.grg-main-grid {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 24px;
  margin: 20px 0;
}

.grg-buttons-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grg-photos-column {
  overflow: hidden;
  padding-right: 8px;
}

.grg-photos-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

@media (min-width: 769px) {
  .grg-photos-compact {
    width: 95%;
    max-width: 95%;
  }
}

.grg-photos-compact .grg-photo {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  background-color: #f3f4f6;
  cursor: pointer;
  transition: transform 0.15s;
  width: 100%;
  max-width: 100%;
}

.grg-photos-compact .grg-photo:hover {
  transform: scale(1.05);
}

.grg-bottom-grid {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.grg-hours-column h4,
.grg-map-column h4 {
  margin: 0 0 8px 0 !important;
  font-size: 14px !important;
  font-weight: 600;
}

.grg-map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (min-width: 769px) {
  .grg-map-container {
    width: 95%;
    max-width: 95%;
  }
}

.grg-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  margin: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 99px;
  color: #111827;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
  white-space: nowrap;
}

.grg-action-btn:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.grg-action-btn.grg-btn-primary {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.grg-action-btn.grg-btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.grg-action-btn.grg-btn-secondary {
  background: white;
  color: #111827;
  border-color: #d1d5db;
}

.grg-action-btn.grg-btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.grg-btn-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.grg-btn-text {
  flex: 1;
  text-align: left;
}

.grg-hours-compact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grg-hours-compact li {
  padding: 4px 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
  border: none !important;
}

/* QR-Code Tooltip */
.grg-qr-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  pointer-events: none;
}

#grg-download-qr {
  position: relative;
}

#grg-download-qr:hover .grg-qr-tooltip {
  opacity: 1;
  visibility: visible;
}

.grg-qr-tooltip img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto 8px;
  background: white;
}

.grg-qr-tooltip-text {
  text-align: center;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

.grg-qr-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #3b82f6;
}

/* Text Toggle für Button */
.grg-search-text-short {
  display: none !important;
}

@media (max-width: 768px) {
  .grg-search-text-short {
    display: inline !important;
  }
  
  .grg-search-text-full {
    display: none !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .grg-search-box,
  .grg-result-container {
    padding: 16px;
    border-radius: 10px;
  }
  
  #grg-search {
    height: 50px;
    font-size: 14px;
  }
  
  .grg-search-text-full {
    display: none;
  }
  
  .grg-search-text-short {
    display: inline;
  }
  
  .grg-header h3 {
    font-size: 18px !important;
  }
  
  .grg-link-boxes {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .grg-main-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .grg-bottom-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .grg-buttons-column {
    gap: 10px;
  }
  
  .grg-action-btn {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 50px !important;
    padding: 0 16px !important;
    background: white !important;
    border: 1px solid #d1d5db !important;
    border-radius: 99px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }
  
  .grg-action-btn.grg-btn-primary {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
  }
  
  .grg-action-btn.grg-btn-secondary {
    background: white !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
  }
  
  .grg-photos-compact {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
}