.haendlersuche-module {
  --dealer-accent: var(--wine, #8f3a30);
  --dealer-surface: var(--white, #fffdf8);
  --dealer-panel: var(--soft, #f4f1eb);
  --dealer-text: var(--ink, #20211f);
  --dealer-muted: var(--muted, #62635d);
  --dealer-line: var(--line, #ded8ce);
  --dealer-radius: 8px;
}

.haendlersuche-module > * {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.haendlersuche-module .search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  align-items: start;
  margin-top: 0;
  margin-bottom: 28px;
}

.haendlersuche-module .dealer-search-intro {
  display: grid;
  align-content: start;
}

.haendlersuche-module .dealer-search-intro h2 {
  white-space: nowrap;
}

.haendlersuche-module .dealer-form {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px;
  gap: 14px;
  max-width: 720px;
}

.haendlersuche-module .dealer-form label span {
  display: block;
  margin-bottom: 8px;
  color: var(--dealer-muted);
  font-weight: 800;
}

.haendlersuche-module .dealer-form input,
.haendlersuche-module .dealer-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--dealer-line);
  border-radius: var(--dealer-radius);
  background: var(--dealer-surface);
}

.haendlersuche-module .dealer-form input.is-invalid {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14);
}

.haendlersuche-module .dealer-field-error {
  display: block;
  margin-top: 7px;
  color: #b3261e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.haendlersuche-module .dealer-field-error[hidden] {
  display: none;
}

.haendlersuche-module .dealer-form .form-actions {
  grid-column: 1 / -1;
}

.haendlersuche-module .hint {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: auto;
  margin: 48px 0 0;
  color: var(--dealer-muted);
  line-height: 1.35;
}

.haendlersuche-module .map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.haendlersuche-module .map-card {
  overflow: hidden;
  position: relative;
  border-radius: var(--dealer-radius);
  background: var(--dealer-text);
}

.haendlersuche-module .map-card iframe {
  width: 100%;
  height: 520px;
  border: 0;
}

.haendlersuche-module .map-card iframe:not([src]) {
  display: none;
}

.haendlersuche-module .map-consent-blocker {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fffdf8;
  background:
    linear-gradient(90deg, rgba(31, 32, 29, 0.9), rgba(31, 32, 29, 0.68)),
    url("../../bilder/haendlersuche-header.jpg") center / cover;
}

.haendlersuche-module .map-consent-blocker[hidden] {
  display: none;
}

.haendlersuche-module .map-consent-blocker > div {
  max-width: 520px;
  padding: 26px;
  border-radius: var(--dealer-radius);
  background: rgba(31, 32, 29, 0.72);
}

.haendlersuche-module .map-consent-blocker strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display, serif);
  font-size: 28px;
}

.haendlersuche-module .map-consent-blocker p {
  color: rgba(255, 253, 248, 0.84);
  line-height: 1.6;
}

.haendlersuche-module .map-consent-blocker .button {
  margin: 6px 8px 0 0;
  max-width: 100%;
  white-space: normal;
}

.haendlersuche-module .map-unblock-button {
  display: grid;
  gap: 2px;
  min-width: 230px;
  place-items: center;
  text-align: center;
}

.haendlersuche-module .map-note {
  padding: 14px 16px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 13px;
}

.haendlersuche-module .dealer-results {
  display: grid;
  gap: 14px;
}

.haendlersuche-module .dealer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  padding: 20px;
  border: 1px solid var(--dealer-line);
  border-radius: var(--dealer-radius);
  background: var(--dealer-surface);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.haendlersuche-module .dealer-card:hover,
.haendlersuche-module .dealer-card:focus-visible {
  border-color: var(--dealer-accent);
  box-shadow: 0 14px 32px rgba(31, 32, 29, 0.08);
  outline: none;
}

.haendlersuche-module .dealer-card h3 {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  font-size: 24px;
}

.haendlersuche-module .dealer-card-content {
  grid-column: 1;
}

.haendlersuche-module .dealer-card p {
  margin-bottom: 8px;
  color: var(--dealer-muted);
  line-height: 1.5;
}

.haendlersuche-module .dealer-card .dealer-meta {
  color: var(--dealer-accent);
  font-weight: 900;
}

.haendlersuche-module .dealer-actions {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.haendlersuche-module .dealer-actions a {
  min-width: 132px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--dealer-line);
  border-radius: var(--dealer-radius);
  color: var(--dealer-text);
  background: var(--dealer-surface);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .haendlersuche-module .search-panel,
  .haendlersuche-module .map-layout {
    grid-template-columns: 1fr;
  }

  .haendlersuche-module .search-panel {
    display: grid;
  }

  .haendlersuche-module .hint {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .haendlersuche-module .dealer-form {
    margin-top: 24px;
    grid-template-columns: 1fr;
  }

  .haendlersuche-module .dealer-search-intro h2 {
    white-space: normal;
  }

  .haendlersuche-module .dealer-card {
    grid-template-columns: 1fr;
  }

  .haendlersuche-module .dealer-actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }

  .haendlersuche-module .dealer-actions a {
    width: 100%;
  }

  .haendlersuche-module .map-card iframe {
    height: 390px;
  }

  .haendlersuche-module .map-consent-blocker {
    min-height: 390px;
  }
}
