/* Einweiser – mobil/tablet, Querformat empfohlen, Zoom nur per Tap */
.rms-einweiser,
.rms-einweiser * {
  box-sizing: border-box;
}
.rms-einweiser {
  max-width: 100%;
  overflow-x: hidden;
}
.rms-einweiser-rotate {
  display: none;
}
.rms-einweiser .rms-public-paddock__inner {
  max-width: 100%;
  overflow-x: hidden;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}
.rms-einweiser .rms-einweiser-form {
  background: #fff;
  border: 1px solid #d1d5db;
  border-bottom: 3px solid #c00000;
  border-radius: 12px;
  margin: 0 auto 12px;
  max-width: 520px;
  padding: 12px;
  text-align: left;
  width: 100%;
}
.rms-einweiser-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}
.rms-einweiser-row {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.rms-einweiser-input {
  border: 2px solid #111;
  border-radius: 10px;
  display: block;
  flex: 1 1 100%;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  max-width: 100% !important;
  min-height: 48px;
  min-width: 0 !important;
  padding: 8px 10px;
  text-align: center;
  width: 100% !important;
}
.rms-einweiser-submit {
  background: #c00000;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 800;
  min-height: 48px;
  min-width: 0;
  padding: 10px 16px;
  width: 100%;
}
.rms-einweiser-reset {
  align-items: center;
  color: #374151;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  padding: 4px 8px;
  text-decoration: none;
  width: 100%;
}
.rms-einweiser-result {
  margin: 0 auto 12px;
  max-width: 520px;
  min-width: 0;
  text-align: left;
  width: 100%;
}
.rms-einweiser-ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  color: #065f46;
  font-size: 18px;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 12px 14px;
  word-break: break-word;
}
.rms-einweiser-zoom-hint {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
  opacity: .85;
}
.rms-einweiser-miss {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
  font-size: 16px;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 12px 14px;
}
.rms-einweiser-hint {
  color: #4b5563;
  margin: 0;
}
.rms-einweiser-driver {
  color: #047857;
  font-size: 16px;
  font-weight: 600;
}
.rms-paddock-legend .is-focus {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
}
.rms-paddock-marker.is-focus {
  display: flex !important;
  background: #2563eb !important;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px #2563eb, 0 0 18px rgba(37, 99, 235, .85);
  color: #fff;
  cursor: pointer;
  outline: none;
  transform: translate(-30%, -15%) scale(1.35);
  z-index: 20;
  animation: rms-einweiser-pulse 1.2s ease-in-out infinite;
}
.rms-einweiser .rms-paddock-legend {
  justify-content: center;
}
.rms-einweiser-map-scroll {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: min(68vh, 720px);
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}
.rms-einweiser-map-scroll.is-zoomed {
  align-items: flex-start;
  display: block;
  justify-content: flex-start;
}
.rms-einweiser-map {
  flex: 0 0 auto;
  margin: 0 auto;
  max-width: 100%;
  min-width: 0 !important;
  width: 100%;
}
/* Übersicht: kleine Punkte als Richtung; Zoom: Originalgröße, Zahlen nebeneinander */
.rms-einweiser-map:not(.is-zoomed) .rms-paddock-marker {
  height: 11px;
  min-width: 11px;
  padding: 0;
}
.rms-einweiser-map:not(.is-zoomed) .rms-paddock-marker small,
.rms-einweiser-map:not(.is-zoomed) .rms-paddock-marker strong {
  display: none;
}
.rms-einweiser-map:not(.is-zoomed) .rms-paddock-marker.is-focus {
  height: 26px;
  min-width: 32px;
  padding: 2px 3px;
}
.rms-einweiser-map:not(.is-zoomed) .rms-paddock-marker.is-focus small,
.rms-einweiser-map:not(.is-zoomed) .rms-paddock-marker.is-focus strong {
  display: block;
}
.rms-einweiser-map.is-zoomed {
  margin: 0;
  max-width: none !important;
  min-width: 1120px !important;
  width: 1120px !important;
  transform: none !important;
}
.rms-einweiser-map.is-zoomed .rms-paddock-marker.is-focus {
  transform: translate(-30%, -15%);
}
.rms-public-paddock__tools {
  margin: 0 0 12px;
}
.rms-einweiser-link {
  display: inline-block;
  background: #111;
  border-bottom: 3px solid #c00000;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}
@keyframes rms-einweiser-pulse {
  0%, 100% { box-shadow: 0 0 0 3px #2563eb, 0 0 10px rgba(37, 99, 235, .55); }
  50% { box-shadow: 0 0 0 6px #2563eb, 0 0 22px rgba(37, 99, 235, .95); }
}

@media (max-width: 900px) and (orientation: portrait) {
  .rms-einweiser-rotate {
    display: block;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 0 0 10px;
    padding: 10px 12px;
    text-align: center;
  }
  .rms-einweiser h1 {
    font-size: 24px;
    margin: 0 0 4px;
  }
  .rms-einweiser .rms-public-paddock__intro {
    font-size: 14px;
    margin: 0 0 10px;
  }
  .rms-einweiser .rms-paddock-legend {
    display: none;
  }
  .rms-einweiser-input {
    font-size: 22px;
    min-height: 52px;
  }
  .rms-einweiser-ok { font-size: 18px; }
  .rms-einweiser-map-scroll { max-height: 48vh; }
}

@media (min-width: 701px) {
  .rms-einweiser-input {
    flex: 1 1 0;
    width: auto;
  }
  .rms-einweiser-submit {
    flex: 0 0 auto;
    width: auto;
  }
  .rms-einweiser-reset {
    width: auto;
  }
}

@media (max-width: 1100px) and (orientation: landscape) {
  .rms-einweiser {
    padding: 8px 8px 16px !important;
  }
  .rms-einweiser-rotate {
    display: none;
  }
  .rms-einweiser h1 {
    font-size: 22px;
    margin: 0 0 2px;
  }
  .rms-einweiser .rms-public-paddock__intro {
    font-size: 13px;
    margin: 0 0 8px;
  }
  .rms-einweiser .rms-einweiser-form {
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  .rms-einweiser-row {
    flex-wrap: wrap;
  }
  .rms-einweiser-input {
    flex: 1 1 0;
    font-size: 18px;
    min-height: 44px;
    width: auto;
  }
  .rms-einweiser-submit {
    flex: 0 0 auto;
    font-size: 16px;
    min-height: 44px;
    width: auto;
  }
  .rms-einweiser-reset {
    width: auto;
  }
  .rms-einweiser .rms-paddock-legend {
    margin: 4px 0;
  }
  .rms-einweiser-result {
    margin-bottom: 8px;
  }
  .rms-einweiser-ok {
    font-size: 18px;
    padding: 8px 12px;
  }
  .rms-einweiser-map-scroll {
    max-height: calc(100vh - 210px);
  }
  .rms-einweiser .rms-public-paddock__note {
    margin-top: 6px;
  }
}
