:root { --anwalt-accent: #CB3522; }

.anwaltssuche {
  font-family: var(--e-global-typography-text-font-family, inherit);
  font-size: var(--e-global-typography-text-font-size, inherit);
  line-height: var(--e-global-typography-text-line-height, 1.4);
  color: var(--e-global-color-text, inherit);
}

/* =========================
   Filterleiste
   ========================= */
.anwaltssuche-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 10px;
}

.anwaltssuche-row-sort { margin-top: -2px; }

.anwaltssuche-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 190px;
}

.anwaltssuche-field-sort { min-width: 320px; }

.anwaltssuche-label {
  font-family: var(--e-global-typography-text-font-family, inherit);
  font-size: 12px;
  font-weight: 600;
  color: var(--e-global-color-text, #111);
  letter-spacing: 0.02em;
}

.anwaltssuche input,
.anwaltssuche select {
  min-height: 40px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: #111;
  font-family: var(--e-global-typography-text-font-family, inherit);
  font-size: 14px;
}

.anwaltssuche input:focus,
.anwaltssuche select:focus {
  outline: none;
  border-color: var(--anwalt-accent);
  box-shadow: 0 0 0 2px rgba(203,53,34,0.12);
}

.anwaltssuche-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

/* Buttons: hart gegen Theme/Elementor überschreiben */
.anwaltssuche .anwaltssuche-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: var(--anwalt-accent) !important;
  border: 2px solid var(--anwalt-accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  font-family: var(--e-global-typography-text-font-family, inherit) !important;
}

.anwaltssuche .anwaltssuche-btn:hover {
  background: #fff !important;
  color: var(--anwalt-accent) !important;
}

.anwaltssuche .anwaltssuche-btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(203,53,34,0.12) !important;
}

.anwaltssuche .anwaltssuche-btn[disabled] {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: #eee !important;
  color: #999 !important;
  border-color: #ddd !important;
}

/* Links */
.anwaltssuche a { color: var(--anwalt-accent); }
.anwaltssuche a:hover { text-decoration: underline; }

/* =========================
   Ergebnisse
   ========================= */
.anwaltssuche-topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 0 10px 0;
}

.anwaltssuche-count strong {
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-weight: 600;
}

.anwaltssuche-loading { color: #555; }
.anwaltssuche-error { color: #b00; }
.anwaltssuche-empty { color: #555; padding: 8px 0; }

.anwaltssuche-idle {
  color: #555;
  padding: 10px 0;
}

.anwaltssuche-list-flat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anwaltssuche-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
}

/* =========================
   Bild/Logo: feste Kachel + contain
   - Box ist fix (gleich groß für alle Ergebnisse)
   - Logo wird IMMER eingepasst, nie abgeschnitten
   ========================= */

/* Bild-Kachel (Container) */
.anwaltssuche-img {
  width: 160px;          /* breiter als vorher */
  height: 110px;         /* fixierte Höhe */
  flex: 0 0 160px;       /* fixierte Breite */
  border-radius: 10px;
  background: #f6f6f6;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bild selbst: immer einpassen */
.anwaltssuche-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Platzhalter, wenn kein Bild */
.anwaltssuche-noimg {
  width: 100%;
  height: 100%;
  background: #f2f2f2;
}

/* Body */
.anwaltssuche-body { flex: 1; min-width: 0; }

.anwaltssuche-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.anwaltssuche-head-left { min-width: 0; }

/* Kanzlei: grau, gleiche Größe wie Name */
.anwaltssuche-firm {
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: 16px;
  font-weight: 600;
  color: #666;
  line-height: 1.25;
  margin-bottom: 2px;
}

.anwaltssuche-title {
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: 16px;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
}

.anwaltssuche-distance {
  white-space: nowrap;
  font-weight: 700;
  color: #111;
  margin-top: 2px;
}

.anwaltssuche-addr {
  margin-top: 6px;
  color: #333;
  font-size: 14px;
}

.anwaltssuche-contact {
  margin-top: 8px;
  display: grid;
  gap: 2px;
  font-size: 14px;
}

/* Pagination */
.anwaltssuche-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.anwaltssuche-pages {
  font-weight: 600;
  color: #333;
}

/* Mobile */
@media (max-width: 820px) {
  .anwaltssuche-actions { margin-left: 0; width: 100%; }
  .anwaltssuche .anwaltssuche-btn { width: 100% !important; text-align: center !important; }
  .anwaltssuche-field { min-width: 100%; }
  .anwaltssuche-field-sort { min-width: 100%; }
}

@media (max-width: 600px) {
  .anwaltssuche-card { flex-direction: column; }

  /* Auf sehr kleinen Screens wieder full-width Bildbereich */
  .anwaltssuche-img {
    width: 100%;
    height: 180px;
    flex: 0 0 auto;
  }
}


/* =========================
   Detailseiten der Anwälte
   ========================= */
.anwaltssuche-img-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anwaltssuche-title a {
  color: inherit;
  text-decoration: none;
}

.anwaltssuche-title a:hover,
.anwaltssuche-title a:focus {
  color: var(--anwalt-accent);
  text-decoration: underline;
}

.anwalt-profil {
  --anwalt-accent: #CB3522;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  font-family: var(--e-global-typography-text-font-family, inherit);
  color: var(--e-global-color-text, #222);
}

.anwalt-profil-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.anwalt-profil-image {
  margin: 0;
  padding: 18px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
}

.anwalt-profil-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.anwalt-profil-subtitle {
  margin: 0 0 26px;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
  font-weight: 600;
  color: #444;
}

.anwalt-profil-section {
  padding: 22px 0;
  border-top: 1px solid #e5e5e5;
}

.anwalt-profil-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.anwalt-profil-section p,
.anwalt-profil-section address {
  margin: 0;
  font-style: normal;
}

.anwalt-profil-contact {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.anwalt-profil-contact > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
}

.anwalt-profil-contact dt {
  font-weight: 700;
}

.anwalt-profil-contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.anwalt-profil a {
  color: var(--anwalt-accent);
}

.anwalt-profil-actions {
  margin-top: 28px;
}

.anwalt-profil .anwalt-profil-back {
  display: inline-block;
  background: var(--anwalt-accent) !important;
  border: 2px solid var(--anwalt-accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: all .2s ease !important;
}

.anwalt-profil .anwalt-profil-back:hover,
.anwalt-profil .anwalt-profil-back:focus {
  background: #fff !important;
  color: var(--anwalt-accent) !important;
}

.anwalt-profil-note {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  font-size: 13px;
  line-height: 1.55;
  color: #666;
}

@media (max-width: 760px) {
  .anwalt-profil-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .anwalt-profil-image {
    max-width: 360px;
  }

  .anwalt-profil-contact > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}


/* =========================
   Profilseiten
   ========================= */
.anwalt-profil {
  margin-top: 18px;
  margin-bottom: 28px;
  color: var(--e-global-color-text, #1f2933);
}

.anwalt-profil a { color: var(--anwalt-accent); }
.anwalt-profil a:hover { text-decoration: underline; }

.anwalt-profil-hero {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.anwalt-profil-visual {
  min-width: 0;
}

.anwalt-profil-image,
.anwalt-profil-placeholder {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anwalt-profil-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  background: #fff;
}

.anwalt-profil-placeholder {
  background: linear-gradient(135deg, rgba(203,53,34,0.12) 0%, rgba(203,53,34,0.02) 100%);
}

.anwalt-profil-placeholder span {
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1;
  font-weight: 700;
  color: var(--anwalt-accent);
  letter-spacing: 0.04em;
}

.anwalt-profil-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.anwalt-profil-subtitle {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: #4b5563;
}

.anwalt-profil-firm {
  margin: 0 0 14px 0;
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.anwalt-profil-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.anwalt-profil-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(203,53,34,0.08);
  color: #7f2115;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.anwalt-profil-intro {
  max-width: 720px;
  margin: 0 0 20px 0;
  color: #4b5563;
}

.anwalt-profil-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.anwaltssuche .anwaltssuche-btn-secondary,
.anwalt-profil .anwaltssuche-btn-secondary {
  background: #fff !important;
  color: var(--anwalt-accent) !important;
}

.anwaltssuche .anwaltssuche-btn-secondary:hover,
.anwalt-profil .anwaltssuche-btn-secondary:hover {
  background: var(--anwalt-accent) !important;
  color: #fff !important;
}

.anwalt-profil .anwaltssuche-btn-tertiary {
  background: transparent !important;
  color: #374151 !important;
  border-color: #d1d5db !important;
}

.anwalt-profil .anwaltssuche-btn-tertiary:hover {
  background: #f9fafb !important;
  color: #111827 !important;
  border-color: #c8ccd1 !important;
}

.anwalt-profil-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.anwalt-profil-card {
  padding: 24px;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.anwalt-profil-card h2 {
  margin: 0 0 18px 0;
  font-size: 22px;
  line-height: 1.25;
}

.anwalt-profil-item + .anwalt-profil-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ececec;
}

.anwalt-profil-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.anwalt-profil-value,
.anwalt-profil-value address {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  font-style: normal;
  color: #111827;
  word-break: break-word;
}

.anwalt-profil-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid rgba(203,53,34,0.5);
  border-radius: 10px;
  background: rgba(203,53,34,0.05);
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .anwalt-profil-hero,
  .anwalt-profil-grid {
    grid-template-columns: 1fr;
  }

  .anwalt-profil-hero {
    padding: 22px;
  }

  .anwalt-profil-visual {
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .anwalt-profil-hero,
  .anwalt-profil-card {
    padding: 18px;
    border-radius: 14px;
  }

  .anwalt-profil-subtitle {
    font-size: 16px;
  }

  .anwalt-profil-firm {
    font-size: 24px;
  }

  .anwalt-profil-value,
  .anwalt-profil-value address {
    font-size: 16px;
  }

  .anwalt-profil-actions .anwaltssuche-btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Premium-Verfeinerung 1.7.3 */
.anwalt-profil {
  --profil-ink: #18212b;
  --profil-muted: #64707d;
  --profil-line: #e6e8eb;
  --profil-soft: #f8f9fa;
}

.anwalt-profil-hero {
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--anwalt-accent);
  background:
    radial-gradient(circle at top right, rgba(203,53,34,0.07), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
}

.anwalt-profil-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 28px solid rgba(203,53,34,0.035);
  border-radius: 50%;
  pointer-events: none;
}

.anwalt-profil-visual,
.anwalt-profil-hero-main {
  position: relative;
  z-index: 1;
}

.anwalt-profil-image,
.anwalt-profil-placeholder {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), 0 10px 24px rgba(24,33,43,0.09);
}

.anwalt-profil-subtitle {
  color: var(--anwalt-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.anwalt-profil-firm {
  color: var(--profil-ink);
}

.anwalt-profil-intro {
  color: var(--profil-muted);
  font-size: 16px;
  line-height: 1.7;
}

.anwalt-profil-badge {
  gap: 7px;
  border: 1px solid rgba(203,53,34,0.13);
  background: rgba(203,53,34,0.055);
}

.anwalt-profil-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  vertical-align: -3px;
}

.anwalt-profil-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.anwalt-profil .anwaltssuche-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px;
  box-shadow: 0 6px 16px rgba(203,53,34,0.14);
}

.anwalt-profil .anwaltssuche-btn-secondary,
.anwalt-profil .anwaltssuche-btn-tertiary {
  box-shadow: none;
}

.anwalt-profil-card {
  position: relative;
  overflow: hidden;
  border-color: var(--profil-line);
  background: linear-gradient(180deg, #fff 0%, #fdfdfd 100%);
}

.anwalt-profil-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--anwalt-accent), rgba(203,53,34,0.22));
}

.anwalt-profil-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--profil-ink);
}

.anwalt-profil-card h2 .anwalt-profil-icon {
  width: 21px;
  height: 21px;
  color: var(--anwalt-accent);
}

.anwalt-profil-item + .anwalt-profil-item {
  border-top-color: var(--profil-line);
}

.anwalt-profil-label {
  color: var(--profil-muted);
}

.anwalt-profil-value,
.anwalt-profil-value address {
  color: var(--profil-ink);
}

.anwalt-profil-note {
  border-left-width: 0;
  border: 1px solid rgba(203,53,34,0.13);
  background: linear-gradient(90deg, rgba(203,53,34,0.06), rgba(203,53,34,0.025));
}


/* =========================
   Version 1.7.4 – Elementor Designsystem
   ========================= */
:root {
  --anwalt-primary: var(--e-global-color-primary, #1C244B);
  --anwalt-secondary: var(--e-global-color-secondary, #2F2F2F);
  --anwalt-text: var(--e-global-color-text, #4D4D4D);
  --anwalt-accent-green: var(--e-global-color-accent, #94BF3C);
  --anwalt-button: var(--e-global-color-e2c169c, #CB3522);
  --anwalt-soft: var(--e-global-color-9ff4fd5, rgba(148, 191, 60, 0.08));
  --anwalt-accent: var(--anwalt-button);
}

.anwaltssuche,
.anwalt-profil {
  font-family: Arial, var(--e-global-typography-text-font-family, sans-serif);
  color: var(--anwalt-text);
}

.anwaltssuche-card {
  position: relative;
  border-color: rgba(28, 36, 75, 0.13);
  box-shadow: 0 4px 16px rgba(28, 36, 75, 0.035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

.anwaltssuche-card-clickable {
  cursor: pointer;
}

.anwaltssuche-card-clickable:hover,
.anwaltssuche-card-clickable:focus-visible {
  border-color: var(--anwalt-accent-green);
  background: var(--anwalt-soft);
  box-shadow: 0 10px 28px rgba(28, 36, 75, 0.10);
  transform: translateY(-2px);
  outline: none;
}


.anwaltssuche-title,
.anwalt-profil h2,
.anwalt-profil h3,
.anwalt-profil-firm {
  color: var(--anwalt-primary);
}

.anwaltssuche-firm {
  color: var(--anwalt-text);
}

.anwalt-profil-hero {
  border-color: rgba(28, 36, 75, 0.13);
  background:
    linear-gradient(90deg, var(--anwalt-soft) 0, rgba(255,255,255,.96) 38%, #fff 100%);
  box-shadow: 0 12px 34px rgba(28, 36, 75, 0.08);
}

.anwalt-profil-hero::before {
  background: var(--anwalt-accent-green);
}

.anwalt-profil-placeholder {
  background: linear-gradient(135deg, rgba(148,191,60,.20), rgba(28,36,75,.05));
}

.anwalt-profil-placeholder span,
.anwalt-profil-icon,
.anwalt-profil-card h2 .anwalt-profil-icon {
  color: var(--anwalt-accent-green);
}

.anwalt-profil-badge {
  color: var(--anwalt-primary);
  background: rgba(148,191,60,.14);
  border-color: rgba(148,191,60,.28);
}

.anwalt-profil-card {
  border-color: rgba(28, 36, 75, 0.12);
  box-shadow: 0 8px 24px rgba(28, 36, 75, 0.05);
}

.anwalt-profil-card::before {
  background: var(--anwalt-primary);
}

.anwalt-profil-label {
  color: var(--anwalt-primary);
}

.anwalt-profil-note {
  border-left-color: var(--anwalt-accent-green);
  background: var(--anwalt-soft);
}

/* Weitere Anwälte in der Nähe */
.anwalt-profil-nearby {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid rgba(28, 36, 75, 0.13);
}

.anwalt-profil-nearby-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.anwalt-profil-eyebrow {
  margin: 0 0 7px;
  color: var(--anwalt-accent-green);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.anwalt-profil-nearby h2 {
  margin: 0;
  font-family: Arial, var(--e-global-typography-primary-font-family, sans-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--anwalt-primary);
}

.anwalt-profil-nearby-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--anwalt-primary) !important;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.anwalt-profil-nearby-all:hover {
  color: var(--anwalt-button) !important;
}

.anwalt-profil-nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.anwalt-profil-nearby-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 15px;
  min-height: 146px;
  padding: 16px;
  border: 1px solid rgba(28,36,75,.13);
  border-radius: 12px;
  background: #fff;
  color: var(--anwalt-text) !important;
  text-decoration: none !important;
  box-shadow: 0 5px 18px rgba(28,36,75,.045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.anwalt-profil-nearby-card:hover,
.anwalt-profil-nearby-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--anwalt-accent-green);
  background: var(--anwalt-soft);
  box-shadow: 0 12px 30px rgba(28,36,75,.11);
  outline: none;
}

.anwalt-profil-nearby-media {
  width: 82px;
  height: 82px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(148,191,60,.12);
  border: 1px solid rgba(148,191,60,.20);
}

.anwalt-profil-nearby-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.anwalt-profil-nearby-initials {
  color: var(--anwalt-primary);
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
}

.anwalt-profil-nearby-body {
  min-width: 0;
}

.anwalt-profil-nearby-firm {
  display: block;
  margin-bottom: 4px;
  color: var(--anwalt-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.anwalt-profil-nearby-card h3 {
  margin: 0 0 10px;
  font-family: Arial, var(--e-global-typography-primary-font-family, sans-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--anwalt-primary);
}

.anwalt-profil-nearby-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: var(--anwalt-text);
  font-size: 13px;
}

.anwalt-profil-nearby-meta .anwalt-profil-icon {
  width: 15px;
  height: 15px;
}

.anwalt-profil-nearby-meta strong {
  width: 100%;
  color: var(--anwalt-accent-green);
  font-weight: 700;
}


.anwalt-profil-nearby-note {
  margin: 12px 0 0;
  color: var(--anwalt-text);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .anwalt-profil-nearby-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {

  .anwalt-profil-nearby-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .anwalt-profil-nearby-card {
    grid-template-columns: 68px minmax(0,1fr);
    min-height: 124px;
  }

  .anwalt-profil-nearby-media {
    width: 68px;
    height: 68px;
  }
}


/* Version 1.7.7 – stabile Seitennavigation */
.anwaltssuche-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 18px;
}

.anwaltssuche-pages {
  color: var(--anwalt-primary, #1C244B);
  font-family: Arial, var(--e-global-typography-primary-font-family, sans-serif);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.anwaltssuche .anwaltssuche-page-button {
  min-width: 0;
}

.anwaltssuche .anwaltssuche-page-button[disabled] {
  background: #f1f1f1 !important;
  border-color: #e2e2e2 !important;
  color: #b8b8b8 !important;
  opacity: 1 !important;
}

@media (max-width: 600px) {
  .anwaltssuche-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .anwaltssuche-pages {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .anwaltssuche .anwaltssuche-page-button {
    width: 100% !important;
  }
}


/* =========================
   Version 1.7.8 – Profilnavigation und Aktionen
   ========================= */
.anwalt-profil-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 18px;
  font-family: Arial, var(--e-global-typography-text-font-family, sans-serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--anwalt-text);
}

.anwalt-profil-breadcrumb a {
  color: var(--anwalt-button);
  font-weight: 600;
  text-decoration: none;
}

.anwalt-profil-breadcrumb a:hover,
.anwalt-profil-breadcrumb a:focus-visible {
  text-decoration: underline;
}

.anwalt-profil-breadcrumb-separator {
  color: #a0a4aa;
}

.anwalt-profil-image {
  padding: 0;
  background: #fff;
}

.anwalt-profil-image img {
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: #fff;
}

.anwalt-profil-actions {
  margin-top: 2px;
}

.anwalt-profil-website-button.elementor-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 2px solid var(--anwalt-button);
  border-radius: 4px;
  background: var(--anwalt-button);
  color: #fff !important;
  font-family: Arial, var(--e-global-typography-accent-font-family, sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.anwalt-profil-website-button.elementor-button:hover,
.anwalt-profil-website-button.elementor-button:focus-visible {
  background: #fff;
  color: var(--anwalt-button) !important;
  transform: translateY(-1px);
  outline: none;
}

.anwalt-profil-website-button .elementor-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.anwalt-profil-website-button .elementor-button-icon,
.anwalt-profil-website-button .anwalt-profil-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: currentColor;
}

.anwalt-profil-nearby-head {
  display: block;
  margin-bottom: 20px;
}

.anwalt-profil-nearby-all {
  margin-top: 8px;
  white-space: normal;
}

@media (max-width: 600px) {
  .anwalt-profil-website-button.elementor-button {
    width: 100%;
    justify-content: center;
  }
}

/* Version 1.7.9 – Hinweis im Stil eines Elementor-Textwidgets */
.anwalt-profil-hinweis {
  margin-top: 26px;
}

.anwalt-profil-hinweis .elementor-widget-container,
.anwalt-profil-hinweis p {
  margin: 0;
}

.anwalt-profil-hinweis {
  color: var(--anwalt-text, var(--e-global-color-text, #4D4D4D));
  font-family: Arial, var(--e-global-typography-text-font-family, sans-serif);
  font-size: var(--e-global-typography-text-font-size, 16px);
  line-height: var(--e-global-typography-text-line-height, 1.55);
}

.anwalt-profil-hinweis a {
  color: var(--anwalt-button, #CB3522);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.anwalt-profil-hinweis a:hover,
.anwalt-profil-hinweis a:focus-visible {
  color: var(--anwalt-primary, #1C244B);
}

/* Version 1.7.10 – Bildanpassung und kontextabhängige Entfernungsfilter */


.anwaltssuche-img {
  box-sizing: border-box;
  padding: 10px;
}

.anwaltssuche-img-link {
  min-width: 0;
  min-height: 0;
}

.anwaltssuche-img img,
.anwaltssuche-img-link img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.anwaltssuche-empty {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(28, 36, 75, 0.12);
  border-left: 4px solid var(--anwalt-accent-green, #94BF3C);
  border-radius: 10px;
  background: var(--anwalt-soft, rgba(148, 191, 60, 0.08));
  color: var(--anwalt-text, #4D4D4D);
}

.anwaltssuche-empty strong {
  color: var(--anwalt-primary, #1C244B);
  font-family: Arial, var(--e-global-typography-primary-font-family, sans-serif);
  font-size: 17px;
  font-weight: 700;
}

.anwaltssuche-empty span {
  line-height: 1.55;
}

/* Version 1.7.11 – Entfernungssortierung erst nach gültiger PLZ */
.anwaltssuche select[name="sort"] option[hidden] {
  display: none;
}

/* Version 1.7.13 – automatischen Theme-Seitentitel auf Anwaltprofilen ausblenden */
body.single-anwalt main.site-main > .page-header {
  display: none;
}

/* Version 1.7.14 – oberer Abstand auf einzelnen Anwaltprofilen */
body.single-anwalt main.site-main > .page-content {
  padding-top: 50px;
}

/* Version 1.7.15 – SEO-Hauptüberschrift auf Anwaltprofilen */
.anwalt-profil h1.anwalt-profil-firm {
  margin-top: 0;
  margin-bottom: 0;
}


/* Version 3.2.0 – Orts-/PLZ-Suche */
.anwaltssuche-field-city {
  min-width: 240px;
  flex: 1 1 240px;
}

@media (max-width: 820px) {
  .anwaltssuche-field-city { min-width: 100%; }
}

/* Version 3.2.0 – Ort/PLZ-Verknüpfung */
.anwaltssuche-location-hint,
.anwaltssuche-data-credit {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.anwaltssuche-data-credit {
  margin-top: 2px;
}

.anwaltssuche-data-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* Version 3.2.1 – Suchoberfläche optisch verfeinert */
.anwaltssuche-form {
  padding: 18px 18px 14px;
  border: 1px solid rgba(28, 36, 75, 0.11);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfb 100%);
  box-shadow: 0 10px 28px rgba(28, 36, 75, 0.05);
}

.anwaltssuche-row-filters {
  gap: 16px;
  margin-bottom: 0;
}

.anwaltssuche-row-sort {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(28, 36, 75, 0.10);
}

.anwaltssuche-field {
  min-width: 170px;
}

.anwaltssuche-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--anwalt-primary, #1C244B);
}

.anwaltssuche input,
.anwaltssuche select {
  min-height: 46px;
  border-color: rgba(28, 36, 75, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.03);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.anwaltssuche input::placeholder {
  color: #9aa2ab;
}

.anwaltssuche input:hover,
.anwaltssuche select:hover {
  border-color: rgba(28, 36, 75, 0.25);
}

.anwaltssuche input:focus,
.anwaltssuche select:focus {
  box-shadow: 0 0 0 3px rgba(148, 191, 60, 0.18);
  border-color: var(--anwalt-accent-green, #94BF3C);
}

.anwaltssuche-actions {
  gap: 12px;
}

.anwaltssuche .anwaltssuche-btn {
  min-height: 46px;
  padding: 11px 18px !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 18px rgba(203, 53, 34, 0.12);
}

.anwaltssuche .anwaltssuche-reset {
  background: #fff !important;
  color: var(--anwalt-accent) !important;
}

.anwaltssuche .anwaltssuche-reset:hover {
  background: var(--anwalt-accent) !important;
  color: #fff !important;
}

.anwaltssuche-location-hint,
.anwaltssuche-data-credit {
  padding-left: 4px;
}

.anwaltssuche-topbar {
  margin: 16px 0 12px 0;
}

@media (max-width: 820px) {
  .anwaltssuche-form {
    padding: 14px;
    border-radius: 14px;
  }

  .anwaltssuche-row-sort {
    margin-top: 12px;
    padding-top: 12px;
  }

  .anwaltssuche-actions {
    gap: 10px;
  }
}

/* Version 3.2.2 – kompakter medrecht.de Feinschliff */
.anwaltssuche {
  --anwalt-panel: #ffffff;
  --anwalt-panel-soft: #f8faf7;
  --anwalt-border: rgba(28, 36, 75, 0.12);
  --anwalt-border-strong: rgba(28, 36, 75, 0.20);
  --anwalt-shadow: 0 12px 34px rgba(28, 36, 75, 0.07);
  --anwalt-shadow-hover: 0 16px 36px rgba(28, 36, 75, 0.11);
}

.anwaltssuche-form {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--anwalt-border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(148,191,60,.07) 0, rgba(255,255,255,0) 34%),
    var(--anwalt-panel);
  box-shadow: var(--anwalt-shadow);
}

.anwaltssuche-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--anwalt-accent-green, #94BF3C), var(--anwalt-primary, #1C244B));
  pointer-events: none;
}

.anwaltssuche-row-filters {
  display: grid;
  grid-template-columns: minmax(112px,.8fr) minmax(220px,1.55fr) minmax(130px,.9fr) minmax(145px,1fr) minmax(170px,1.1fr) auto;
  gap: 14px;
  align-items: end;
}

.anwaltssuche-field,
.anwaltssuche-field-city,
.anwaltssuche-field-sort {
  min-width: 0;
}

.anwaltssuche-actions {
  align-self: end;
  margin-left: 0;
  white-space: nowrap;
}

.anwaltssuche-row-sort {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin: 16px 0 0;
  padding: 14px 0 0;
}

.anwaltssuche-field-sort {
  width: min(100%, 320px);
}

.anwaltssuche-label {
  margin-left: 1px;
  color: var(--anwalt-primary, #1C244B);
}

.anwaltssuche input,
.anwaltssuche select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--anwalt-border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background-color: #fff;
  color: #202938;
}

.anwaltssuche select {
  cursor: pointer;
}

.anwaltssuche input:focus,
.anwaltssuche select:focus {
  border-color: var(--anwalt-accent-green, #94BF3C);
  box-shadow: 0 0 0 3px rgba(148, 191, 60, 0.16);
}

.anwaltssuche .anwaltssuche-btn {
  min-height: 46px;
  padding: 11px 17px !important;
  border-radius: 10px !important;
  box-shadow: none;
}

.anwaltssuche .anwaltssuche-submit {
  box-shadow: 0 8px 18px rgba(203,53,34,.16);
}

.anwaltssuche .anwaltssuche-reset {
  border-color: rgba(203,53,34,.35) !important;
}

.anwaltssuche-location-hint {
  margin: 10px 4px 0;
  color: #687382;
  font-size: 12px;
}

.anwaltssuche-data-credit {
  margin: 3px 4px 0;
  color: #87909a;
  font-size: 11px;
}

.anwaltssuche-topbar {
  margin: 20px 0 12px;
  padding: 0 2px;
}

.anwaltssuche-count strong {
  color: var(--anwalt-primary, #1C244B);
  font-size: 16px;
}

.anwaltssuche-list-flat {
  gap: 14px;
}

.anwaltssuche-card {
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--anwalt-border);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(28,36,75,.045);
}

.anwaltssuche-card-clickable:hover,
.anwaltssuche-card-clickable:focus-visible {
  border-color: rgba(148,191,60,.60);
  background: linear-gradient(90deg, rgba(148,191,60,.075), #fff 42%);
  box-shadow: var(--anwalt-shadow-hover);
  transform: translateY(-2px);
}

.anwaltssuche-img {
  width: 150px;
  height: 104px;
  flex-basis: 150px;
  border: 1px solid rgba(28,36,75,.08);
  border-radius: 11px;
  background: #fbfcfb;
}

.anwaltssuche-firm {
  margin-bottom: 3px;
  color: #687382;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

.anwaltssuche-title {
  font-size: 18px;
  line-height: 1.25;
}

.anwaltssuche-distance {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(148,191,60,.28);
  border-radius: 999px;
  background: rgba(148,191,60,.11);
  color: var(--anwalt-primary, #1C244B);
  font-size: 12px;
}

.anwaltssuche-addr {
  color: #4f5b68;
}

.anwaltssuche-contact {
  color: #4f5b68;
}

.anwaltssuche-contact strong {
  color: var(--anwalt-primary, #1C244B);
}

.anwaltssuche-empty {
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(28,36,75,.035);
}

.anwaltssuche-pagination {
  justify-content: center;
  padding-top: 4px;
}

/* Profilseiten dezent vereinheitlichen */
.anwalt-profil-breadcrumb {
  padding: 0 2px;
  color: #737d88;
}

.anwalt-profil-hero {
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(28,36,75,.08);
}

.anwalt-profil-card {
  border-radius: 16px;
}

.anwalt-profil-nearby-card {
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .anwaltssuche-row-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .anwaltssuche-actions {
    grid-column: span 3;
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .anwaltssuche-form {
    padding: 17px 14px 14px;
  }

  .anwaltssuche-row-filters {
    grid-template-columns: 1fr 1fr;
  }

  .anwaltssuche-field-city,
  .anwaltssuche-field-side,
  .anwaltssuche-actions {
    grid-column: span 2;
  }

  .anwaltssuche-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .anwaltssuche .anwaltssuche-btn {
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .anwaltssuche-row-filters {
    grid-template-columns: 1fr;
  }

  .anwaltssuche-field-city,
  .anwaltssuche-field-side,
  .anwaltssuche-actions {
    grid-column: auto;
  }

  .anwaltssuche-actions {
    grid-template-columns: 1fr;
  }

  .anwaltssuche-card {
    padding: 14px;
  }

  .anwaltssuche-img {
    width: 100%;
    height: 170px;
    flex-basis: auto;
  }

  .anwaltssuche-head {
    gap: 8px;
  }

  .anwaltssuche-title {
    font-size: 17px;
  }
}

/* Version 3.2.3 – eigene Ortsvorschläge + einheitlicher Nutzungshinweis */
.anwaltssuche-city-control {
  position: relative;
  width: 100%;
}

.anwaltssuche-city-control > input {
  width: 100%;
}

.anwaltssuche-suggestions[hidden] {
  display: none !important;
}

.anwaltssuche-suggestions {
  position: absolute;
  z-index: 50;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(28, 36, 75, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
}

.anwaltssuche-suggestion {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #202938;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.anwaltssuche-suggestion + .anwaltssuche-suggestion {
  margin-top: 2px;
}

.anwaltssuche-suggestion:hover,
.anwaltssuche-suggestion:focus-visible {
  outline: none;
  background: rgba(148, 191, 60, 0.12);
}

.anwaltssuche-suggestion-city {
  min-width: 0;
  overflow: hidden;
  color: var(--anwalt-primary, #1C244B);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anwaltssuche-suggestion-meta {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f2f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.anwaltssuche-hinweis {
  margin: 26px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(28, 36, 75, 0.11);
  border-left: 4px solid var(--anwalt-accent-green, #94BF3C);
  border-radius: 10px;
  background: rgba(148, 191, 60, 0.055);
  color: var(--anwalt-text, #4D4D4D);
  font-size: 13px;
  line-height: 1.55;
}

.anwaltssuche-hinweis p {
  margin: 0;
}

.anwaltssuche-hinweis a {
  color: var(--anwalt-button, #CB3522);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.anwaltssuche-hinweis a:hover,
.anwaltssuche-hinweis a:focus-visible {
  color: var(--anwalt-primary, #1C244B);
}

.anwalt-profil > .anwaltssuche-hinweis {
  margin-top: 26px;
}

@media (max-width: 600px) {
  .anwaltssuche-suggestions {
    max-height: 240px;
  }

  .anwaltssuche-hinweis {
    padding: 13px 14px;
  }
}

/* Version 3.3.0 – Verbraucherkomfort */
.anwaltssuche-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.anwaltssuche-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(28,36,75,.14);
  border-radius: 8px;
  background: #fff;
  color: var(--anwalt-primary, #1C244B) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.anwaltssuche-card-action:hover,
.anwaltssuche-card-action:focus-visible {
  border-color: var(--anwalt-accent-green, #94BF3C);
  background: rgba(148,191,60,.10);
  color: var(--anwalt-primary, #1C244B) !important;
  outline: none;
  transform: translateY(-1px);
}

.anwaltssuche-card-action.is-primary {
  border-color: var(--anwalt-button, #CB3522);
  background: var(--anwalt-button, #CB3522);
  color: #fff !important;
}

.anwaltssuche-card-action.is-primary:hover,
.anwaltssuche-card-action.is-primary:focus-visible {
  background: #a9291b;
  border-color: #a9291b;
  color: #fff !important;
}


.anwaltssuche-empty-actions {
  margin-top: 10px;
}

.anwaltssuche-empty .anwaltssuche-expand-radius {
  width: auto !important;
  min-height: 40px;
  padding: 9px 14px !important;
  font-size: 14px;
}

@media (max-width: 600px) {
  .anwaltssuche-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anwaltssuche-card-action {
    width: 100%;
  }

  .anwaltssuche-empty .anwaltssuche-expand-radius {
    width: 100% !important;
  }
}


/* Version 3.3.1 – Ortsvorschläge optisch bereinigt */
.anwaltssuche-city-control {
  position: relative;
}

.anwaltssuche-suggestions {
  padding: 8px;
  border: 1px solid rgba(28, 36, 75, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(4px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.anwaltssuche-suggestion,
.anwaltssuche-suggestion:hover,
.anwaltssuche-suggestion:focus,
.anwaltssuche-suggestion:focus-visible,
.anwaltssuche-suggestion:active {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
}

.anwaltssuche-suggestion {
  min-height: 50px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff !important;
  color: #1f2937 !important;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.anwaltssuche-suggestion + .anwaltssuche-suggestion {
  margin-top: 6px;
}

.anwaltssuche-suggestion:hover,
.anwaltssuche-suggestion:focus-visible {
  background: rgba(148, 191, 60, 0.12) !important;
  border-color: rgba(148, 191, 60, 0.55);
  color: #1C244B !important;
}

.anwaltssuche-suggestion:active {
  background: rgba(148, 191, 60, 0.18) !important;
  border-color: rgba(148, 191, 60, 0.62);
  transform: translateY(1px);
}

.anwaltssuche-suggestion-city {
  font-size: 17px;
  line-height: 1.2;
}

.anwaltssuche-suggestion-meta {
  padding: 4px 9px;
  border: 1px solid rgba(28, 36, 75, 0.08);
  background: #f5f7f9;
  color: #667085;
  font-size: 12px;
}


/* Version 3.3.2 – Ortsvorschläge als neutrales Menü statt Theme-Buttons */
.anwaltssuche .anwaltssuche-suggestions {
  top: calc(100% + 5px);
  padding: 5px;
  border: 1px solid #dfe4ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(28, 36, 75, 0.14);
  overflow-x: hidden;
}

.anwaltssuche .anwaltssuche-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 10px;
  border: 0 !important;
  border-radius: 8px;
  background: #fff !important;
  color: #1C244B !important;
  font-family: Arial, var(--e-global-typography-text-font-family, sans-serif);
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.anwaltssuche .anwaltssuche-suggestion + .anwaltssuche-suggestion {
  margin-top: 2px;
  border-top: 1px solid #eef1f4 !important;
  border-radius: 0 0 8px 8px;
}

.anwaltssuche .anwaltssuche-suggestion:hover,
.anwaltssuche .anwaltssuche-suggestion:focus-visible {
  background: rgba(148, 191, 60, 0.11) !important;
  color: #1C244B !important;
}

.anwaltssuche .anwaltssuche-suggestion:active {
  background: rgba(148, 191, 60, 0.17) !important;
  transform: none;
}

.anwaltssuche .anwaltssuche-suggestion-city {
  min-width: 0;
  overflow: hidden;
  color: #1C244B !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anwaltssuche .anwaltssuche-suggestion-meta {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 0;
  border-radius: 999px;
  background: #f1f4f7;
  color: #697386;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

/* Aktueller UI-Stand: Ortsvorschläge, aktive Filter und mobile Listen-/Kartenansicht */
.anwaltssuche-form {
  overflow: visible;
}

.anwaltssuche-form::before {
  border-radius: 18px 18px 0 0;
}

.anwaltssuche-row-filters,
.anwaltssuche-field-city,
.anwaltssuche-city-control {
  position: relative;
  z-index: 2;
}

.anwaltssuche-row-sort {
  position: relative;
  z-index: 1;
}

.anwaltssuche .anwaltssuche-suggestions {
  z-index: 1000;
  max-height: none;
  overflow: visible;
  isolation: isolate;
}

.anwaltssuche .anwaltssuche-suggestion {
  min-height: 44px;
}

.anwaltssuche-consumer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin: 16px 0 12px;
  padding: 0;
}

.anwaltssuche .anwaltssuche-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 18px 0 8px;
}

.anwaltssuche .anwaltssuche-active-filters-label {
  margin-right: 4px;
  color: #7a8492 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.anwaltssuche .anwaltssuche-filter-chip {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  min-height: 42px;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(28,36,75,.10) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--anwalt-primary, #1C244B) !important;
  font: inherit;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(17,24,39,.05) !important;
}

.anwaltssuche .anwaltssuche-filter-chip-kind {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 11px;
  background: #f4f6f8 !important;
  color: #7a8492 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.anwaltssuche .anwaltssuche-filter-chip-value {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--anwalt-primary, #1C244B) !important;
  font-size: 13px;
  font-weight: 700;
}

.anwaltssuche .anwaltssuche-filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  align-self: stretch;
  border-left: 1px solid rgba(28,36,75,.08);
  background: #fff !important;
  color: #9aa3af !important;
  font-size: 18px !important;
  line-height: 1;
}

.anwaltssuche .anwaltssuche-filter-chip:hover,
.anwaltssuche .anwaltssuche-filter-chip:focus-visible {
  border-color: rgba(148,191,60,.72) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(148,191,60,.10), 0 6px 18px rgba(17,24,39,.06) !important;
  outline: none;
}

.anwaltssuche .anwaltssuche-filter-chip:hover .anwaltssuche-filter-chip-kind,
.anwaltssuche .anwaltssuche-filter-chip:focus-visible .anwaltssuche-filter-chip-kind {
  background: #eef5df !important;
  color: #5f6f32 !important;
}

.anwaltssuche .anwaltssuche-filter-chip:hover .anwaltssuche-filter-chip-remove,
.anwaltssuche .anwaltssuche-filter-chip:focus-visible .anwaltssuche-filter-chip-remove {
  background: #f7f8fa !important;
  color: #667085 !important;
}

.medrecht-mobile-view-switcher {
  display: none;
}

.anwaltssuche-consumer-bar[hidden],
.anwaltssuche-active-filters[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .medrecht-mobile-view-switcher {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(100%, 360px);
    margin: 8px auto 14px;
    padding: 4px;
    border: 1px solid rgba(28,36,75,.10);
    border-radius: 999px;
    background: rgba(245,247,248,.96);
    box-shadow: 0 8px 22px rgba(28,36,75,.10);
    backdrop-filter: blur(8px);
  }

  .medrecht-mobile-view-switcher button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #667085;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }

  .medrecht-mobile-view-switcher button.is-active {
    background: var(--anwalt-primary, #1C244B);
    color: #fff;
    box-shadow: 0 4px 12px rgba(28,36,75,.18);
  }

  .medrecht-mobile-view-icon {
    font-size: 15px;
    line-height: 1;
  }

  body.medrecht-mobile-view-list .medrecht-map-wrap-overview {
    display: none !important;
  }

  body.medrecht-mobile-view-map .anwaltssuche-results {
    display: none !important;
  }

  .anwaltssuche-consumer-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
  }

  .anwaltssuche .anwaltssuche-active-filters {
    width: 100%;
    gap: 8px;
  }

  .anwaltssuche .anwaltssuche-active-filters-label {
    width: 100%;
    margin-bottom: 1px;
  }

  .anwaltssuche .anwaltssuche-filter-chip {
    min-height: 40px;
    max-width: 100%;
  }

  .anwaltssuche .anwaltssuche-filter-chip-value {
    overflow: hidden;
    max-width: 180px;
    padding: 0 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
